123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258112259112260112261112262112263112264112265112266112267112268112269112270112271112272112273112274112275112276112277112278112279112280112281112282112283112284112285112286112287112288112289112290112291112292112293112294112295112296112297112298112299112300112301112302112303112304112305112306112307112308112309112310112311112312112313112314112315112316112317112318112319112320112321112322112323112324112325112326112327112328112329112330112331112332112333112334112335112336112337112338112339112340112341112342112343112344112345112346112347112348112349112350112351112352112353112354112355112356112357112358112359112360112361112362112363112364112365112366112367112368112369112370112371112372112373112374112375112376112377112378112379112380112381112382112383112384112385112386112387112388112389112390112391112392112393112394112395112396112397112398112399112400112401112402112403112404112405112406112407112408112409112410112411112412112413112414112415112416112417112418112419112420112421112422112423112424112425112426112427112428112429112430112431112432112433112434112435112436112437112438112439112440112441112442112443112444112445112446112447112448112449112450112451112452112453112454112455112456112457112458112459112460112461112462112463112464112465112466112467112468112469112470112471112472112473112474112475112476112477112478112479112480112481112482112483112484112485112486112487112488112489112490112491112492112493112494112495112496112497112498112499112500112501112502112503112504112505112506112507112508112509112510112511112512112513112514112515112516112517112518112519112520112521112522112523112524112525112526112527112528112529112530112531112532112533112534112535112536112537112538112539112540112541112542112543112544112545112546112547112548112549112550112551112552112553112554112555112556112557112558112559112560112561112562112563112564112565112566112567112568112569112570112571112572112573112574112575112576112577112578112579112580112581112582112583112584112585112586112587112588112589112590112591112592112593112594112595112596112597112598112599112600112601112602112603112604112605112606112607112608112609112610112611112612112613112614112615112616112617112618112619112620112621112622112623112624112625112626112627112628112629112630112631112632112633112634112635112636112637112638112639112640112641112642112643112644112645112646112647112648112649112650112651112652112653112654112655112656112657112658112659112660112661112662112663112664112665112666112667112668112669112670112671112672112673112674112675112676112677112678112679112680112681112682112683112684112685112686112687112688112689112690112691112692112693112694112695112696112697112698112699112700112701112702112703112704112705112706112707112708112709112710112711112712112713112714112715112716112717112718112719112720112721112722112723112724112725112726112727112728112729112730112731112732112733112734112735112736112737112738112739112740112741112742112743112744112745112746112747112748112749112750112751112752112753112754112755112756112757112758112759112760112761112762112763112764112765112766112767112768112769112770112771112772112773112774112775112776112777112778112779112780112781112782112783112784112785112786112787112788112789112790112791112792112793112794112795112796112797112798112799112800112801112802112803112804112805112806112807112808112809112810112811112812112813112814112815112816112817112818112819112820112821112822112823112824112825112826112827112828112829112830112831112832112833112834112835112836112837112838112839112840112841112842112843112844112845112846112847112848112849112850112851112852112853112854112855112856112857112858112859112860112861112862112863112864112865112866112867112868112869112870112871112872112873112874112875112876112877112878112879112880112881112882112883112884112885112886112887112888112889112890112891112892112893112894112895112896112897112898112899112900112901112902112903112904112905112906112907112908112909112910112911112912112913112914112915112916112917112918112919112920112921112922112923112924112925112926112927112928112929112930112931112932112933112934112935112936112937112938112939112940112941112942112943112944112945112946112947112948112949112950112951112952112953112954112955112956112957112958112959112960112961112962112963112964112965112966112967112968112969112970112971112972112973112974112975112976112977112978112979112980112981112982112983112984112985112986112987112988112989112990112991112992112993112994112995112996112997112998112999113000113001113002113003113004113005113006113007113008113009113010113011113012113013113014113015113016113017113018113019113020113021113022113023113024113025113026113027113028113029113030113031113032113033113034113035113036113037113038113039113040113041113042113043113044113045113046113047113048113049113050113051113052113053113054113055113056113057113058113059113060113061113062113063113064113065113066113067113068113069113070113071113072113073113074113075113076113077113078113079113080113081113082113083113084113085113086113087113088113089113090113091113092113093113094113095113096113097113098113099113100113101113102113103113104113105113106113107113108113109113110113111113112113113113114113115113116113117113118113119113120113121113122113123113124113125113126113127113128113129113130113131113132113133113134113135113136113137113138113139113140113141113142113143113144113145113146113147113148113149113150113151113152113153113154113155113156113157113158113159113160113161113162113163113164113165113166113167113168113169113170113171113172113173113174113175113176113177113178113179113180113181113182113183113184113185113186113187113188113189113190113191113192113193113194113195113196113197113198113199113200113201113202113203113204113205113206113207113208113209113210113211113212113213113214113215113216113217113218113219113220113221113222113223113224113225113226113227113228113229113230113231113232113233113234113235113236113237113238113239113240113241113242113243113244113245113246113247113248113249113250113251113252113253113254113255113256113257113258113259113260113261113262113263113264113265113266113267113268113269113270113271113272113273113274113275113276113277113278113279113280113281113282113283113284113285113286113287113288113289113290113291113292113293113294113295113296113297113298113299113300113301113302113303113304113305113306113307113308113309113310113311113312113313113314113315113316113317113318113319113320113321113322113323113324113325113326113327113328113329113330113331113332113333113334113335113336113337113338113339113340113341113342113343113344113345113346113347113348113349113350113351113352113353113354113355113356113357113358113359113360113361113362113363113364113365113366113367113368113369113370113371113372113373113374113375113376113377113378113379113380113381113382113383113384113385113386113387113388113389113390113391113392113393113394113395113396113397113398113399113400113401113402113403113404113405113406113407113408113409113410113411113412113413113414113415113416113417113418113419113420113421113422113423113424113425113426113427113428113429113430113431113432113433113434113435113436113437113438113439113440113441113442113443113444113445113446113447113448113449113450113451113452113453113454113455113456113457113458113459113460113461113462113463113464113465113466113467113468113469113470113471113472113473113474113475113476113477113478113479113480113481113482113483113484113485113486113487113488113489113490113491113492113493113494113495113496113497113498113499113500113501113502113503113504113505113506113507113508113509113510113511113512113513113514113515113516113517113518113519113520113521113522113523113524113525113526113527113528113529113530113531113532113533113534113535113536113537113538113539113540113541113542113543113544113545113546113547113548113549113550113551113552113553113554113555113556113557113558113559113560113561113562113563113564113565113566113567113568113569113570113571113572113573113574113575113576113577113578113579113580113581113582113583113584113585113586113587113588113589113590113591113592113593113594113595113596113597113598113599113600113601113602113603113604113605113606113607113608113609113610113611113612113613113614113615113616113617113618113619113620113621113622113623113624113625113626113627113628113629113630113631113632113633113634113635113636113637113638113639113640113641113642113643113644113645113646113647113648113649113650113651113652113653113654113655113656113657113658113659113660113661113662113663113664113665113666113667113668113669113670113671113672113673113674113675113676113677113678113679113680113681113682113683113684113685113686113687113688113689113690113691113692113693113694113695113696113697113698113699113700113701113702113703113704113705113706113707113708113709113710113711113712113713113714113715113716113717113718113719113720113721113722113723113724113725113726113727113728113729113730113731113732113733113734113735113736113737113738113739113740113741113742113743113744113745113746113747113748113749113750113751113752113753113754113755113756113757113758113759113760113761113762113763113764113765113766113767113768113769113770113771113772113773113774113775113776113777113778113779113780113781113782113783113784113785113786113787113788113789113790113791113792113793113794113795113796113797113798113799113800113801113802113803113804113805113806113807113808113809113810113811113812113813113814113815113816113817113818113819113820113821113822113823113824113825113826113827113828113829113830113831113832113833113834113835113836113837113838113839113840113841113842113843113844113845113846113847113848113849113850113851113852113853113854113855113856113857113858113859113860113861113862113863113864113865113866113867113868113869113870113871113872113873113874113875113876113877113878113879113880113881113882113883113884113885113886113887113888113889113890113891113892113893113894113895113896113897113898113899113900113901113902113903113904113905113906113907113908113909113910113911113912113913113914113915113916113917113918113919113920113921113922113923113924113925113926113927113928113929113930113931113932113933113934113935113936113937113938113939113940113941113942113943113944113945113946113947113948113949113950113951113952113953113954113955113956113957113958113959113960113961113962113963113964113965113966113967113968113969113970113971113972113973113974113975113976113977113978113979113980113981113982113983113984113985113986113987113988113989113990113991113992113993113994113995113996113997113998113999114000114001114002114003114004114005114006114007114008114009114010114011114012114013114014114015114016114017114018114019114020114021114022114023114024114025114026114027114028114029114030114031114032114033114034114035114036114037114038114039114040114041114042114043114044114045114046114047114048114049114050114051114052114053114054114055114056114057114058114059114060114061114062114063114064114065114066114067114068114069114070114071114072114073114074114075114076114077114078114079114080114081114082114083114084114085114086114087114088114089114090114091114092114093114094114095114096114097114098114099114100114101114102114103114104114105114106114107114108114109114110114111114112114113114114114115114116114117114118114119114120114121114122114123114124114125114126114127114128114129114130114131114132114133114134114135114136114137114138114139114140114141114142114143114144114145114146114147114148114149114150114151114152114153114154114155114156114157114158114159114160114161114162114163114164114165114166114167114168114169114170114171114172114173114174114175114176114177114178114179114180114181114182114183114184114185114186114187114188114189114190114191114192114193114194114195114196114197114198114199114200114201114202114203114204114205114206114207114208114209114210114211114212114213114214114215114216114217114218114219114220114221114222114223114224114225114226114227114228114229114230114231114232114233114234114235114236114237114238114239114240114241114242114243114244114245114246114247114248114249114250114251114252114253114254114255114256114257114258114259114260114261114262114263114264114265114266114267114268114269114270114271114272114273114274114275114276114277114278114279114280114281114282114283114284114285114286114287114288114289114290114291114292114293114294114295114296114297114298114299114300114301114302114303114304114305114306114307114308114309114310114311114312114313114314114315114316114317114318114319114320114321114322114323114324114325114326114327114328114329114330114331114332114333114334114335114336114337114338114339114340114341114342114343114344114345114346114347114348114349114350114351114352114353114354114355114356114357114358114359114360114361114362114363114364114365114366114367114368114369114370114371114372114373114374114375114376114377114378114379114380114381114382114383114384114385114386114387114388114389114390114391114392114393114394114395114396114397114398114399114400114401114402114403114404114405114406114407114408114409114410114411114412114413114414114415114416114417114418114419114420114421114422114423114424114425114426114427114428114429114430114431114432114433114434114435114436114437114438114439114440114441114442114443114444114445114446114447114448114449114450114451114452114453114454114455114456114457114458114459114460114461114462114463114464114465114466114467114468114469114470114471114472114473114474114475114476114477114478114479114480114481114482114483114484114485114486114487114488114489114490114491114492114493114494114495114496114497114498114499114500114501114502114503114504114505114506114507114508114509114510114511114512114513114514114515114516114517114518114519114520114521114522114523114524114525114526114527114528114529114530114531114532114533114534114535114536114537114538114539114540114541114542114543114544114545114546114547114548114549114550114551114552114553114554114555114556114557114558114559114560114561114562114563114564114565114566114567114568114569114570114571114572114573114574114575114576114577114578114579114580114581114582114583114584114585114586114587114588114589114590114591114592114593114594114595114596114597114598114599114600114601114602114603114604114605114606114607114608114609114610114611114612114613114614114615114616114617114618114619114620114621114622114623114624114625114626114627114628114629114630114631114632114633114634114635114636114637114638114639114640114641114642114643114644114645114646114647114648114649114650114651114652114653114654114655114656114657114658114659114660114661114662114663114664114665114666114667114668114669114670114671114672114673114674114675114676114677114678114679114680114681114682114683114684114685114686114687114688114689114690114691114692114693114694114695114696114697114698114699114700114701114702114703114704114705114706114707114708114709114710114711114712114713114714114715114716114717114718114719114720114721114722114723114724114725114726114727114728114729114730114731114732114733114734114735114736114737114738114739114740114741114742114743114744114745114746114747114748114749114750114751114752114753114754114755114756114757114758114759114760114761114762114763114764114765114766114767114768114769114770114771114772114773114774114775114776114777114778114779114780114781114782114783114784114785114786114787114788114789114790114791114792114793114794114795114796114797114798114799114800114801114802114803114804114805114806114807114808114809114810114811114812114813114814114815114816114817114818114819114820114821114822114823114824114825114826114827114828114829114830114831114832114833114834114835114836114837114838114839114840114841114842114843114844114845114846114847114848114849114850114851114852114853114854114855114856114857114858114859114860114861114862114863114864114865114866114867114868114869114870114871114872114873114874114875114876114877114878114879114880114881114882114883114884114885114886114887114888114889114890114891114892114893114894114895114896114897114898114899114900114901114902114903114904114905114906114907114908114909114910114911114912114913114914114915114916114917114918114919114920114921114922114923114924114925114926114927114928114929114930114931114932114933114934114935114936114937114938114939114940114941114942114943114944114945114946114947114948114949114950114951114952114953114954114955114956114957114958114959114960114961114962114963114964114965114966114967114968114969114970114971114972114973114974114975114976114977114978114979114980114981114982114983114984114985114986114987114988114989114990114991114992114993114994114995114996114997114998114999115000115001115002115003115004115005115006115007115008115009115010115011115012115013115014115015115016115017115018115019115020115021115022115023115024115025115026115027115028115029115030115031115032115033115034115035115036115037115038115039115040115041115042115043115044115045115046115047115048115049115050115051115052115053115054115055115056115057115058115059115060115061115062115063115064115065115066115067115068115069115070115071115072115073115074115075115076115077115078115079115080115081115082115083115084115085115086115087115088115089115090115091115092115093115094115095115096115097115098115099115100115101115102115103115104115105115106115107115108115109115110115111115112115113115114115115115116115117115118115119115120115121115122115123115124115125115126115127115128115129115130115131115132115133115134115135115136115137115138115139115140115141115142115143115144115145115146115147115148115149115150115151115152115153115154115155115156115157115158115159115160115161115162115163115164115165115166115167115168115169115170115171115172115173115174115175115176115177115178115179115180115181115182115183115184115185115186115187115188115189115190115191115192115193115194115195115196115197115198115199115200115201115202115203115204115205115206115207115208115209115210115211115212115213115214115215115216115217115218115219115220115221115222115223115224115225115226115227115228115229115230115231115232115233115234115235115236115237115238115239115240115241115242115243115244115245115246115247115248115249115250115251115252115253115254115255115256115257115258115259115260115261115262115263115264115265115266115267115268115269115270115271115272115273115274115275115276115277115278115279115280115281115282115283115284115285115286115287115288115289115290115291115292115293115294115295115296115297115298115299115300115301115302115303115304115305115306115307115308115309115310115311115312115313115314115315115316115317115318115319115320115321115322115323115324115325115326115327115328115329115330115331115332115333115334115335115336115337115338115339115340115341115342115343115344115345115346115347115348115349115350115351115352115353115354115355115356115357115358115359115360115361115362115363115364115365115366115367115368115369115370115371115372115373115374115375115376115377115378115379115380115381115382115383115384115385115386115387115388115389115390115391115392115393115394115395115396115397115398115399115400115401115402115403115404115405115406115407115408115409115410115411115412115413115414115415115416115417115418115419115420115421115422115423115424115425115426115427115428115429115430115431115432115433115434115435115436115437115438115439115440115441115442115443115444115445115446115447115448115449115450115451115452115453115454115455115456115457115458115459115460115461115462115463115464115465115466115467115468115469115470115471115472115473115474115475115476115477115478115479115480115481115482115483115484115485115486115487115488115489115490115491115492115493115494115495115496115497115498115499115500115501115502115503115504115505115506115507115508115509115510115511115512115513115514115515115516115517115518115519115520115521115522115523115524115525115526115527115528115529115530115531115532115533115534115535115536115537115538115539115540115541115542115543115544115545115546115547115548115549115550115551115552115553115554115555115556115557115558115559115560115561115562115563115564115565115566115567115568115569115570115571115572115573115574115575115576115577115578115579115580115581115582115583115584115585115586115587115588115589115590115591115592115593115594115595115596115597115598115599115600115601115602115603115604115605115606115607115608115609115610115611115612115613115614115615115616115617115618115619115620115621115622115623115624115625115626115627115628115629115630115631115632115633115634115635115636115637115638115639115640115641115642115643115644115645115646115647115648115649115650115651115652115653115654115655115656115657115658115659115660115661115662115663115664115665115666115667115668115669115670115671115672115673115674115675115676115677115678115679115680115681115682115683115684115685115686115687115688115689115690115691115692115693115694115695115696115697115698115699115700115701115702115703115704115705115706115707115708115709115710115711115712115713115714115715115716115717115718115719115720115721115722115723115724115725115726115727115728115729115730115731115732115733115734115735115736115737115738115739115740115741115742115743115744115745115746115747115748115749115750115751115752115753115754115755115756115757115758115759115760115761115762115763115764115765115766115767115768115769115770115771115772115773115774115775115776115777115778115779115780115781115782115783115784115785115786115787115788115789115790115791115792115793115794115795115796115797115798115799115800115801115802115803115804115805115806115807115808115809115810115811115812115813115814115815115816115817115818115819115820115821115822115823115824115825115826115827115828115829115830115831115832115833115834115835115836115837115838115839115840115841115842115843115844115845115846115847115848115849115850115851115852115853115854115855115856115857115858115859115860115861115862115863115864115865115866115867115868115869115870115871115872115873115874115875115876115877115878115879115880115881115882115883115884115885115886115887115888115889115890115891115892115893115894115895115896115897115898115899115900115901115902115903115904115905115906115907115908115909115910115911115912115913115914115915115916115917115918115919115920115921115922115923115924115925115926115927115928115929115930115931115932115933115934115935115936115937115938115939115940115941115942115943115944115945115946115947115948115949115950115951115952115953115954115955115956115957115958115959115960115961115962115963115964115965115966115967115968115969115970115971115972115973115974115975115976115977115978115979115980115981115982115983115984115985115986115987115988115989115990115991115992115993115994115995115996115997115998115999116000116001116002116003116004116005116006116007116008116009116010116011116012116013116014116015116016116017116018116019116020116021116022116023116024116025116026116027116028116029116030116031116032116033116034116035116036116037116038116039116040116041116042116043116044116045116046116047116048116049116050116051116052116053116054116055116056116057116058116059116060116061116062116063116064116065116066116067116068116069116070116071116072116073116074116075116076116077116078116079116080116081116082116083116084116085116086116087116088116089116090116091116092116093116094116095116096116097116098116099116100116101116102116103116104116105116106116107116108116109116110116111116112116113116114116115116116116117116118116119116120116121116122116123116124116125116126116127116128116129116130116131116132116133116134116135116136116137116138116139116140116141116142116143116144116145116146116147116148116149116150116151116152116153116154116155116156116157116158116159116160116161116162116163116164116165116166116167116168116169116170116171116172116173116174116175116176116177116178116179116180116181116182116183116184116185116186116187116188116189116190116191116192116193116194116195116196116197116198116199116200116201116202116203116204116205116206116207116208116209116210116211116212116213116214116215116216116217116218116219116220116221116222116223116224116225116226116227116228116229116230116231116232116233116234116235116236116237116238116239116240116241116242116243116244116245116246116247116248116249116250116251116252116253116254116255116256116257116258116259116260116261116262116263116264116265116266116267116268116269116270116271116272116273116274116275116276116277116278116279116280116281116282116283116284116285116286116287116288116289116290116291116292116293116294116295116296116297116298116299116300116301116302116303116304116305116306116307116308116309116310116311116312116313116314116315116316116317116318116319116320116321116322116323116324116325116326116327116328116329116330116331116332116333116334116335116336116337116338116339116340116341116342116343116344116345116346116347116348116349116350116351116352116353116354116355116356116357116358116359116360116361116362116363116364116365116366116367116368116369116370116371116372116373116374116375116376116377116378116379116380116381116382116383116384116385116386116387116388116389116390116391116392116393116394116395116396116397116398116399116400116401116402116403116404116405116406116407116408116409116410116411116412116413116414116415116416116417116418116419116420116421116422116423116424116425116426116427116428116429116430116431116432116433116434116435116436116437116438116439116440116441116442116443116444116445116446116447116448116449116450116451116452116453116454116455116456116457116458116459116460116461116462116463116464116465116466116467116468116469116470116471116472116473116474116475116476116477116478116479116480116481116482116483116484116485116486116487116488116489116490116491116492116493116494116495116496116497116498116499116500116501116502116503116504116505116506116507116508116509116510116511116512116513116514116515116516116517116518116519116520116521116522116523116524116525116526116527116528116529116530116531116532116533116534116535116536116537116538116539116540116541116542116543116544116545116546116547116548116549116550116551116552116553116554116555116556116557116558116559116560116561116562116563116564116565116566116567116568116569116570116571116572116573116574116575116576116577116578116579116580116581116582116583116584116585116586116587116588116589116590116591116592116593116594116595116596116597116598116599116600116601116602116603116604116605116606116607116608116609116610116611116612116613116614116615116616116617116618116619116620116621116622116623116624116625116626116627116628116629116630116631116632116633116634116635116636116637116638116639116640116641116642116643116644116645116646116647116648116649116650116651116652116653116654116655116656116657116658116659116660116661116662116663116664116665116666116667116668116669116670116671116672116673116674116675116676116677116678116679116680116681116682116683116684116685116686116687116688116689116690116691116692116693116694116695116696116697116698116699116700116701116702116703116704116705116706116707116708116709116710116711116712116713116714116715116716116717116718116719116720116721116722116723116724116725116726116727116728116729116730116731116732116733116734116735116736116737116738116739116740116741116742116743116744116745116746116747116748116749116750116751116752116753116754116755116756116757116758116759116760116761116762116763116764116765116766116767116768116769116770116771116772116773116774116775116776116777116778116779116780116781116782116783116784116785116786116787116788116789116790116791116792116793116794116795116796116797116798116799116800116801116802116803116804116805116806116807116808116809116810116811116812116813116814116815116816116817116818116819116820116821116822116823116824116825116826116827116828116829116830116831116832116833116834116835116836116837116838116839116840116841116842116843116844116845116846116847116848116849116850116851116852116853116854116855116856116857116858116859116860116861116862116863116864116865116866116867116868116869116870116871116872116873116874116875116876116877116878116879116880116881116882116883116884116885116886116887116888116889116890116891116892116893116894116895116896116897116898116899116900116901116902116903116904116905116906116907116908116909116910116911116912116913116914116915116916116917116918116919116920116921116922116923116924116925116926116927116928116929116930116931116932116933116934116935116936116937116938116939116940116941116942116943116944116945116946116947116948116949116950116951116952116953116954116955116956116957116958116959116960116961116962116963116964116965116966116967116968116969116970116971116972116973116974116975116976116977116978116979116980116981116982116983116984116985116986116987116988116989116990116991116992116993116994116995116996116997116998116999117000117001117002117003117004117005117006117007117008117009117010117011117012117013117014117015117016117017117018117019117020117021117022117023117024117025117026117027117028117029117030117031117032117033117034117035117036117037117038117039117040117041117042117043117044117045117046117047117048117049117050117051117052117053117054117055117056117057117058117059117060117061117062117063117064117065117066117067117068117069117070117071117072117073117074117075117076117077117078117079117080117081117082117083117084117085117086117087117088117089117090117091117092117093117094117095117096117097117098117099117100117101117102117103117104117105117106117107117108117109117110117111117112117113117114117115117116117117117118117119117120117121117122117123117124117125117126117127117128117129117130117131117132117133117134117135117136117137117138117139117140117141117142117143117144117145117146117147117148117149117150117151117152117153117154117155117156117157117158117159117160117161117162117163117164117165117166117167117168117169117170117171117172117173117174117175117176117177117178117179117180117181117182117183117184117185117186117187117188117189117190117191117192117193117194117195117196117197117198117199117200117201117202117203117204117205117206117207117208117209117210117211117212117213117214117215117216117217117218117219117220117221117222117223117224117225117226117227117228117229117230117231117232117233117234117235117236117237117238117239117240117241117242117243117244117245117246117247117248117249117250117251117252117253117254117255117256117257117258117259117260117261117262117263117264117265117266117267117268117269117270117271117272117273117274117275117276117277117278117279117280117281117282117283117284117285117286117287117288117289117290117291117292117293117294117295117296117297117298117299117300117301117302117303117304117305117306117307117308117309117310117311117312117313117314117315117316117317117318117319117320117321117322117323117324117325117326117327117328117329117330117331117332117333117334117335117336117337117338117339117340117341117342117343117344117345117346117347117348117349117350117351117352117353117354117355117356117357117358117359117360117361117362117363117364117365117366117367117368117369117370117371117372117373117374117375117376117377117378117379117380117381117382117383117384117385117386117387117388117389117390117391117392117393117394117395117396117397117398117399117400117401117402117403117404117405117406117407117408117409117410117411117412117413117414117415117416117417117418117419117420117421117422117423117424117425117426117427117428117429117430117431117432117433117434117435117436117437117438117439117440117441117442117443117444117445117446117447117448117449117450117451117452117453117454117455117456117457117458117459117460117461117462117463117464117465117466117467117468117469117470117471117472117473117474117475117476117477117478117479117480117481117482117483117484117485117486117487117488117489117490117491117492117493117494117495117496117497117498117499117500117501117502117503117504117505117506117507117508117509117510117511117512117513117514117515117516117517117518117519117520117521117522117523117524117525117526117527117528117529117530117531117532117533117534117535117536117537117538117539117540117541117542117543117544117545117546117547117548117549117550117551117552117553117554117555117556117557117558117559117560117561117562117563117564117565117566117567117568117569117570117571117572117573117574117575117576117577117578117579117580117581117582117583117584117585117586117587117588117589117590117591117592117593117594117595117596117597117598117599117600117601117602117603117604117605117606117607117608117609117610117611117612117613117614117615117616117617117618117619117620117621117622117623117624117625117626117627117628117629117630117631117632117633117634117635117636117637117638117639117640117641117642117643117644117645117646117647117648117649117650117651117652117653117654117655117656117657117658117659117660117661117662117663117664117665117666117667117668117669117670117671117672117673117674117675117676117677117678117679117680117681117682117683117684117685117686117687117688117689117690117691117692117693117694117695117696117697117698117699117700117701117702117703117704117705117706117707117708117709117710117711117712117713117714117715117716117717117718117719117720117721117722117723117724117725117726117727117728117729117730117731117732117733117734117735117736117737117738117739117740117741117742117743117744117745117746117747117748117749117750117751117752117753117754117755117756117757117758117759117760117761117762117763117764117765117766117767117768117769117770117771117772117773117774117775117776117777117778117779117780117781117782117783117784117785117786117787117788117789117790117791117792117793117794117795117796117797117798117799117800117801117802117803117804117805117806117807117808117809117810117811117812117813117814117815117816117817117818117819117820117821117822117823117824117825117826117827117828117829117830117831117832117833117834117835117836117837117838117839117840117841117842117843117844117845117846117847117848117849117850117851117852117853117854117855117856117857117858117859117860117861117862117863117864117865117866117867117868117869117870117871117872117873117874117875117876117877117878117879117880117881117882117883117884117885117886117887117888117889117890117891117892117893117894117895117896117897117898117899117900117901117902117903117904117905117906117907117908117909117910117911117912117913117914117915117916117917117918117919117920117921117922117923117924117925117926117927117928117929117930117931117932117933117934117935117936117937117938117939117940117941117942117943117944117945117946117947117948117949117950117951117952117953117954117955117956117957117958117959117960117961117962117963117964117965117966117967117968117969117970117971117972117973117974117975117976117977117978117979117980117981117982117983117984117985117986117987117988117989117990117991117992117993117994117995117996117997117998117999118000118001118002118003118004118005118006118007118008118009118010118011118012118013118014118015118016118017118018118019118020118021118022118023118024118025118026118027118028118029118030118031118032118033118034118035118036118037118038118039118040118041118042118043118044118045118046118047118048118049118050118051118052118053118054118055118056118057118058118059118060118061118062118063118064118065118066118067118068118069118070118071118072118073118074118075118076118077118078118079118080118081118082118083118084118085118086118087118088118089118090118091118092118093118094118095118096118097118098118099118100118101118102118103118104118105118106118107118108118109118110118111118112118113118114118115118116118117118118118119118120118121118122118123118124118125118126118127118128118129118130118131118132118133118134118135118136118137118138118139118140118141118142118143118144118145118146118147118148118149118150118151118152118153118154118155118156118157118158118159118160118161118162118163118164118165118166118167118168118169118170118171118172118173118174118175118176118177118178118179118180118181118182118183118184118185118186118187118188118189118190118191118192118193118194118195118196118197118198118199118200118201118202118203118204118205118206118207118208118209118210118211118212118213118214118215118216118217118218118219118220118221118222118223118224118225118226118227118228118229118230118231118232118233118234118235118236118237118238118239118240118241118242118243118244118245118246118247118248118249118250118251118252118253118254118255118256118257118258118259118260118261118262118263118264118265118266118267118268118269118270118271118272118273118274118275118276118277118278118279118280118281118282118283118284118285118286118287118288118289118290118291118292118293118294118295118296118297118298118299118300118301118302118303118304118305118306118307118308118309118310118311118312118313118314118315118316118317118318118319118320118321118322118323118324118325118326118327118328118329118330118331118332118333118334118335118336118337118338118339118340118341118342118343118344118345118346118347118348118349118350118351118352118353118354118355118356118357118358118359118360118361118362118363118364118365118366118367118368118369118370118371118372118373118374118375118376118377118378118379118380118381118382118383118384118385118386118387118388118389118390118391118392118393118394118395118396118397118398118399118400118401118402118403118404118405118406118407118408118409118410118411118412118413118414118415118416118417118418118419118420118421118422118423118424118425118426118427118428118429118430118431118432118433118434118435118436118437118438118439118440118441118442118443118444118445118446118447118448118449118450118451118452118453118454118455118456118457118458118459118460118461118462118463118464118465118466118467118468118469118470118471118472118473118474118475118476118477118478118479118480118481118482118483118484118485118486118487118488118489118490118491118492118493118494118495118496118497118498118499118500118501118502118503118504118505118506118507118508118509118510118511118512118513118514118515118516118517118518118519118520118521118522118523118524118525118526118527118528118529118530118531118532118533118534118535118536118537118538118539118540118541118542118543118544118545118546118547118548118549118550118551118552118553118554118555118556118557118558118559118560118561118562118563118564118565118566118567118568118569118570118571118572118573118574118575118576118577118578118579118580118581118582118583118584118585118586118587118588118589118590118591118592118593118594118595118596118597118598118599118600118601118602118603118604118605118606118607118608118609118610118611118612 |
- // Because of vitejs/vite#12340, there's no way to reliably detect whether we're
- // running as a (possibly bundled/polyfilled) ESM module or as a CommonJS
- // module. In order to work everywhere, we have to provide the load function via
- // a side channel on the global object. We write it as a stack so that multiple
- // cli_pkg packages can depend on one another without clobbering their exports.
- if (!globalThis._cliPkgExports) {
- globalThis._cliPkgExports = [];
- }
- let _cliPkgExports = {};
- globalThis._cliPkgExports.push(_cliPkgExports);
- _cliPkgExports.load = function(_cliPkgRequires, _cliPkgExportParam) {
- var dartNodeIsActuallyNode = typeof process !== "undefined" && (process.versions || {}).hasOwnProperty('node');
- // make sure to keep this as 'var'
- // we don't want block scoping
- var self = dartNodeIsActuallyNode ? Object.create(globalThis) : globalThis;
- self.scheduleImmediate = typeof setImmediate !== "undefined"
- ? function (cb) {
- setImmediate(cb);
- }
- : function(cb) {
- setTimeout(cb, 0);
- };
- // CommonJS globals.
- if (typeof require !== "undefined") {
- self.require = require;
- }
- self.exports = _cliPkgExportParam || _cliPkgExports;
- // Node.js specific exports, check to see if they exist & or polyfilled
- if (typeof process !== "undefined") {
- self.process = process;
- }
- if (typeof __dirname !== "undefined") {
- self.__dirname = __dirname;
- }
- if (typeof __filename !== "undefined") {
- self.__filename = __filename;
- }
- if (typeof Buffer !== "undefined") {
- self.Buffer = Buffer;
- }
- // if we're running in a browser, Dart supports most of this out of box
- // make sure we only run these in Node.js environment
- if (dartNodeIsActuallyNode) {
- // This line is to:
- // 1) Prevent Webpack from bundling.
- // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
- // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
- var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
- // Setting `self.location=` in Electron throws a `TypeError`, so we define it
- // as a property instead to be safe.
- Object.defineProperty(self, "location", {
- value: {
- get href() {
- if (url.pathToFileURL) {
- return url.pathToFileURL(process.cwd()).href + "/";
- } else {
- // This isn't really a correct transformation, but it's the best we have
- // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
- // For example, it will fail for paths that contain characters that need
- // to be escaped in URLs.
- return "file://" + (function() {
- var cwd = process.cwd();
- if (process.platform != "win32") return cwd;
- return "/" + cwd.replace(/\\/g, "/");
- })() + "/"
- }
- }
- }
- });
- (function() {
- function computeCurrentScript() {
- try {
- throw new Error();
- } catch(e) {
- var stack = e.stack;
- var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
- var lastMatch = null;
- do {
- var match = re.exec(stack);
- if (match != null) lastMatch = match;
- } while (match != null);
- return lastMatch[1];
- }
- }
- // Setting `self.document=` isn't known to throw an error anywhere like
- // `self.location=` does on Electron, but it's better to be future-proof
- // just in case..
- var cachedCurrentScript = null;
- Object.defineProperty(self, "document", {
- value: {
- get currentScript() {
- if (cachedCurrentScript == null) {
- cachedCurrentScript = {src: computeCurrentScript()};
- }
- return cachedCurrentScript;
- }
- }
- });
- })();
- self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
- try {
- load(uri);
- successCallback();
- } catch (error) {
- errorCallback(error);
- }
- };
- }
- self.immutable = _cliPkgRequires.immutable;
- self.chokidar = _cliPkgRequires.chokidar;
- self.readline = _cliPkgRequires.readline;
- self.fs = _cliPkgRequires.fs;
- self.nodeModule = _cliPkgRequires.nodeModule;
- self.stream = _cliPkgRequires.stream;
- self.util = _cliPkgRequires.util;
- // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.4.4.
- // The code supports the following hooks:
- // dartPrint(message):
- // if this function is defined it is called instead of the Dart [print]
- // method.
- //
- // dartMainRunner(main, args):
- // if this function is defined, the Dart [main] method will not be invoked
- // directly. Instead, a closure that will invoke [main], and its arguments
- // [args] is passed to [dartMainRunner].
- //
- // dartDeferredLibraryLoader(uri, successCallback, errorCallback, loadId, loadPriority):
- // if this function is defined, it will be called when a deferred library
- // is loaded. It should load and eval the javascript of `uri`, and call
- // successCallback. If it fails to do so, it should call errorCallback with
- // an error. The loadId argument is the deferred import that resulted in
- // this uri being loaded. The loadPriority argument is the priority the
- // library should be loaded with as specified in the code via the
- // load-priority annotation (0: normal, 1: high).
- // dartDeferredLibraryMultiLoader(uris, successCallback, errorCallback, loadId, loadPriority):
- // if this function is defined, it will be called when a deferred library
- // is loaded. It should load and eval the javascript of every URI in `uris`,
- // and call successCallback. If it fails to do so, it should call
- // errorCallback with an error. The loadId argument is the deferred import
- // that resulted in this uri being loaded. The loadPriority argument is the
- // priority the library should be loaded with as specified in the code via
- // the load-priority annotation (0: normal, 1: high).
- //
- // dartCallInstrumentation(id, qualifiedName):
- // if this function is defined, it will be called at each entry of a
- // method or constructor. Used only when compiling programs with
- // --experiment-call-instrumentation.
- (function dartProgram() {
- function copyProperties(from, to) {
- var keys = Object.keys(from);
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- to[key] = from[key];
- }
- }
- function mixinPropertiesHard(from, to) {
- var keys = Object.keys(from);
- for (var i = 0; i < keys.length; i++) {
- var key = keys[i];
- if (!to.hasOwnProperty(key)) {
- to[key] = from[key];
- }
- }
- }
- function mixinPropertiesEasy(from, to) {
- Object.assign(to, from);
- }
- var supportsDirectProtoAccess = function() {
- var cls = function() {
- };
- cls.prototype = {p: {}};
- var object = new cls();
- if (!(Object.getPrototypeOf(object) && Object.getPrototypeOf(object).p === cls.prototype.p))
- return false;
- try {
- if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
- return true;
- if (typeof version == "function" && version.length == 0) {
- var v = version();
- if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
- return true;
- }
- } catch (_) {
- }
- return false;
- }();
- function inherit(cls, sup) {
- cls.prototype.constructor = cls;
- cls.prototype["$is" + cls.name] = cls;
- if (sup != null) {
- if (supportsDirectProtoAccess) {
- Object.setPrototypeOf(cls.prototype, sup.prototype);
- return;
- }
- var clsPrototype = Object.create(sup.prototype);
- copyProperties(cls.prototype, clsPrototype);
- cls.prototype = clsPrototype;
- }
- }
- function inheritMany(sup, classes) {
- for (var i = 0; i < classes.length; i++) {
- inherit(classes[i], sup);
- }
- }
- function mixinEasy(cls, mixin) {
- mixinPropertiesEasy(mixin.prototype, cls.prototype);
- cls.prototype.constructor = cls;
- }
- function mixinHard(cls, mixin) {
- mixinPropertiesHard(mixin.prototype, cls.prototype);
- cls.prototype.constructor = cls;
- }
- function lazy(holder, name, getterName, initializer) {
- var uninitializedSentinel = holder;
- holder[name] = uninitializedSentinel;
- holder[getterName] = function() {
- if (holder[name] === uninitializedSentinel) {
- holder[name] = initializer();
- }
- holder[getterName] = function() {
- return this[name];
- };
- return holder[name];
- };
- }
- function lazyFinal(holder, name, getterName, initializer) {
- var uninitializedSentinel = holder;
- holder[name] = uninitializedSentinel;
- holder[getterName] = function() {
- if (holder[name] === uninitializedSentinel) {
- var value = initializer();
- if (holder[name] !== uninitializedSentinel) {
- A.throwLateFieldADI(name);
- }
- holder[name] = value;
- }
- var finalValue = holder[name];
- holder[getterName] = function() {
- return finalValue;
- };
- return finalValue;
- };
- }
- function makeConstList(list) {
- list.immutable$list = Array;
- list.fixed$length = Array;
- return list;
- }
- function convertToFastObject(properties) {
- function t() {
- }
- t.prototype = properties;
- new t();
- return properties;
- }
- function convertAllToFastObject(arrayOfObjects) {
- for (var i = 0; i < arrayOfObjects.length; ++i) {
- convertToFastObject(arrayOfObjects[i]);
- }
- }
- var functionCounter = 0;
- function instanceTearOffGetter(isIntercepted, parameters) {
- var cache = null;
- return isIntercepted ? function(receiver) {
- if (cache === null)
- cache = A.closureFromTearOff(parameters);
- return new cache(receiver, this);
- } : function() {
- if (cache === null)
- cache = A.closureFromTearOff(parameters);
- return new cache(this, null);
- };
- }
- function staticTearOffGetter(parameters) {
- var cache = null;
- return function() {
- if (cache === null)
- cache = A.closureFromTearOff(parameters).prototype;
- return cache;
- };
- }
- var typesOffset = 0;
- function tearOffParameters(container, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) {
- if (typeof funType == "number") {
- funType += typesOffset;
- }
- return {co: container, iS: isStatic, iI: isIntercepted, rC: requiredParameterCount, dV: optionalParameterDefaultValues, cs: callNames, fs: funsOrNames, fT: funType, aI: applyIndex || 0, nDA: needsDirectAccess};
- }
- function installStaticTearOff(holder, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
- var parameters = tearOffParameters(holder, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, false);
- var getterFunction = staticTearOffGetter(parameters);
- holder[getterName] = getterFunction;
- }
- function installInstanceTearOff(prototype, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) {
- isIntercepted = !!isIntercepted;
- var parameters = tearOffParameters(prototype, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, !!needsDirectAccess);
- var getterFunction = instanceTearOffGetter(isIntercepted, parameters);
- prototype[getterName] = getterFunction;
- }
- function setOrUpdateInterceptorsByTag(newTags) {
- var tags = init.interceptorsByTag;
- if (!tags) {
- init.interceptorsByTag = newTags;
- return;
- }
- copyProperties(newTags, tags);
- }
- function setOrUpdateLeafTags(newTags) {
- var tags = init.leafTags;
- if (!tags) {
- init.leafTags = newTags;
- return;
- }
- copyProperties(newTags, tags);
- }
- function updateTypes(newTypes) {
- var types = init.types;
- var length = types.length;
- types.push.apply(types, newTypes);
- return length;
- }
- function updateHolder(holder, newHolder) {
- copyProperties(newHolder, holder);
- return holder;
- }
- var hunkHelpers = function() {
- var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
- return function(container, getterName, name, funType) {
- return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex, false);
- };
- },
- mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
- return function(container, getterName, name, funType) {
- return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
- };
- };
- return {inherit: inherit, inheritMany: inheritMany, mixin: mixinEasy, mixinHard: mixinHard, 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, lazyFinal: lazyFinal, updateHolder: updateHolder, convertToFastObject: convertToFastObject, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags};
- }();
- function initializeDeferredHunk(hunk) {
- typesOffset = init.types.length;
- hunk(hunkHelpers, init, holders, $);
- }
- var J = {
- makeDispatchRecord(interceptor, proto, extension, indexability) {
- return {i: interceptor, p: proto, e: extension, x: indexability};
- },
- getNativeInterceptor(object) {
- var proto, objectProto, $constructor, interceptor, t1,
- record = object[init.dispatchPropertyName];
- if (record == null)
- if ($.initNativeDispatchFlag == null) {
- A.initNativeDispatch();
- record = object[init.dispatchPropertyName];
- }
- if (record != null) {
- proto = record.p;
- if (false === proto)
- return record.i;
- if (true === proto)
- return object;
- objectProto = Object.getPrototypeOf(object);
- if (proto === objectProto)
- return record.i;
- if (record.e === objectProto)
- throw A.wrapException(A.UnimplementedError$("Return interceptor for " + A.S(proto(object, record))));
- }
- $constructor = object.constructor;
- if ($constructor == null)
- interceptor = null;
- else {
- t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
- if (t1 == null)
- t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js");
- interceptor = $constructor[t1];
- }
- if (interceptor != null)
- return interceptor;
- interceptor = A.lookupAndCacheInterceptor(object);
- if (interceptor != null)
- return interceptor;
- if (typeof object == "function")
- return B.JavaScriptFunction_methods;
- proto = Object.getPrototypeOf(object);
- if (proto == null)
- return B.PlainJavaScriptObject_methods;
- if (proto === Object.prototype)
- return B.PlainJavaScriptObject_methods;
- if (typeof $constructor == "function") {
- t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
- if (t1 == null)
- t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js");
- Object.defineProperty($constructor, t1, {value: B.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
- return B.UnknownJavaScriptObject_methods;
- }
- return B.UnknownJavaScriptObject_methods;
- },
- JSArray_JSArray$fixed($length, $E) {
- if ($length < 0 || $length > 4294967295)
- throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null));
- return J.JSArray_JSArray$markFixed(new Array($length), $E);
- },
- JSArray_JSArray$allocateFixed($length, $E) {
- if ($length > 4294967295)
- throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null));
- return J.JSArray_JSArray$markFixed(new Array($length), $E);
- },
- JSArray_JSArray$growable($length, $E) {
- if ($length < 0)
- throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null));
- return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>"));
- },
- JSArray_JSArray$allocateGrowable($length, $E) {
- if ($length < 0)
- throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null));
- return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>"));
- },
- JSArray_JSArray$markFixed(allocation, $E) {
- return J.JSArray_markFixedList(A._setArrayType(allocation, $E._eval$1("JSArray<0>")));
- },
- JSArray_markFixedList(list) {
- list.fixed$length = Array;
- return list;
- },
- JSArray_markUnmodifiableList(list) {
- list.fixed$length = Array;
- list.immutable$list = Array;
- return list;
- },
- JSArray__compareAny(a, b) {
- return J.compareTo$1$ns(a, b);
- },
- JSString__isWhitespace(codeUnit) {
- if (codeUnit < 256)
- switch (codeUnit) {
- case 9:
- case 10:
- case 11:
- case 12:
- case 13:
- case 32:
- case 133:
- case 160:
- return true;
- default:
- return false;
- }
- switch (codeUnit) {
- case 5760:
- case 8192:
- case 8193:
- case 8194:
- case 8195:
- case 8196:
- case 8197:
- case 8198:
- case 8199:
- case 8200:
- case 8201:
- case 8202:
- case 8232:
- case 8233:
- case 8239:
- case 8287:
- case 12288:
- case 65279:
- return true;
- default:
- return false;
- }
- },
- JSString__skipLeadingWhitespace(string, index) {
- var t1, codeUnit;
- for (t1 = string.length; index < t1;) {
- codeUnit = string.charCodeAt(index);
- if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
- break;
- ++index;
- }
- return index;
- },
- JSString__skipTrailingWhitespace(string, index) {
- var index0, codeUnit;
- for (; index > 0; index = index0) {
- index0 = index - 1;
- codeUnit = string.charCodeAt(index0);
- if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
- break;
- }
- return index;
- },
- getInterceptor$(receiver) {
- if (typeof receiver == "number") {
- if (Math.floor(receiver) == receiver)
- return J.JSInt.prototype;
- return J.JSNumNotInt.prototype;
- }
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return J.JSNull.prototype;
- if (typeof receiver == "boolean")
- return J.JSBool.prototype;
- if (Array.isArray(receiver))
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- if (typeof receiver == "symbol")
- return J.JavaScriptSymbol.prototype;
- if (typeof receiver == "bigint")
- return J.JavaScriptBigInt.prototype;
- return receiver;
- }
- if (receiver instanceof A.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$ansx(receiver) {
- if (typeof receiver == "number")
- return J.JSNumber.prototype;
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (Array.isArray(receiver))
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- if (typeof receiver == "symbol")
- return J.JavaScriptSymbol.prototype;
- if (typeof receiver == "bigint")
- return J.JavaScriptBigInt.prototype;
- return receiver;
- }
- if (receiver instanceof A.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$asx(receiver) {
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (Array.isArray(receiver))
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- if (typeof receiver == "symbol")
- return J.JavaScriptSymbol.prototype;
- if (typeof receiver == "bigint")
- return J.JavaScriptBigInt.prototype;
- return receiver;
- }
- if (receiver instanceof A.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$ax(receiver) {
- if (receiver == null)
- return receiver;
- if (Array.isArray(receiver))
- return J.JSArray.prototype;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- if (typeof receiver == "symbol")
- return J.JavaScriptSymbol.prototype;
- if (typeof receiver == "bigint")
- return J.JavaScriptBigInt.prototype;
- return receiver;
- }
- if (receiver instanceof A.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$in(receiver) {
- if (typeof receiver == "number") {
- if (Math.floor(receiver) == receiver)
- return J.JSInt.prototype;
- return J.JSNumNotInt.prototype;
- }
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof A.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- getInterceptor$n(receiver) {
- if (typeof receiver == "number")
- return J.JSNumber.prototype;
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof A.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- getInterceptor$ns(receiver) {
- if (typeof receiver == "number")
- return J.JSNumber.prototype;
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof A.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- getInterceptor$s(receiver) {
- if (typeof receiver == "string")
- return J.JSString.prototype;
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof A.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- getInterceptor$x(receiver) {
- if (receiver == null)
- return receiver;
- if (typeof receiver != "object") {
- if (typeof receiver == "function")
- return J.JavaScriptFunction.prototype;
- if (typeof receiver == "symbol")
- return J.JavaScriptSymbol.prototype;
- if (typeof receiver == "bigint")
- return J.JavaScriptBigInt.prototype;
- return receiver;
- }
- if (receiver instanceof A.Object)
- return receiver;
- return J.getNativeInterceptor(receiver);
- },
- getInterceptor$z(receiver) {
- if (receiver == null)
- return receiver;
- if (!(receiver instanceof A.Object))
- return J.UnknownJavaScriptObject.prototype;
- return receiver;
- },
- set$AsyncCompiler$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$AsyncCompiler(receiver, value);
- },
- set$CalculationInterpolation$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$CalculationInterpolation(receiver, value);
- },
- set$CalculationOperation$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$CalculationOperation(receiver, value);
- },
- set$Compiler$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$Compiler(receiver, value);
- },
- set$Exception$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$Exception(receiver, value);
- },
- set$FALSE$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
- },
- set$Logger$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$Logger(receiver, value);
- },
- set$NULL$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$NULL(receiver, value);
- },
- set$NodePackageImporter$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$NodePackageImporter(receiver, value);
- },
- set$SassArgumentList$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassArgumentList(receiver, value);
- },
- set$SassBoolean$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassBoolean(receiver, value);
- },
- set$SassCalculation$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassCalculation(receiver, value);
- },
- set$SassColor$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassColor(receiver, value);
- },
- set$SassFunction$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassFunction(receiver, value);
- },
- set$SassList$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassList(receiver, value);
- },
- set$SassMap$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassMap(receiver, value);
- },
- set$SassMixin$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassMixin(receiver, value);
- },
- set$SassNumber$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassNumber(receiver, value);
- },
- set$SassString$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$SassString(receiver, value);
- },
- set$TRUE$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
- },
- set$Value$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$Value(receiver, value);
- },
- set$Version$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$Version(receiver, value);
- },
- set$cli_pkg_main_0_$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
- },
- set$compile$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$compile(receiver, value);
- },
- set$compileAsync$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$compileAsync(receiver, value);
- },
- set$compileString$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$compileString(receiver, value);
- },
- set$compileStringAsync$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$compileStringAsync(receiver, value);
- },
- set$context$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$context(receiver, value);
- },
- set$dartValue$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
- },
- set$deprecations$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$deprecations(receiver, value);
- },
- set$exitCode$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$exitCode(receiver, value);
- },
- set$info$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$info(receiver, value);
- },
- set$initAsyncCompiler$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$initAsyncCompiler(receiver, value);
- },
- set$initCompiler$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$initCompiler(receiver, value);
- },
- set$length$asx(receiver, value) {
- return J.getInterceptor$asx(receiver).set$length(receiver, value);
- },
- set$render$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$render(receiver, value);
- },
- set$renderSync$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
- },
- set$sassFalse$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$sassFalse(receiver, value);
- },
- set$sassNull$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$sassNull(receiver, value);
- },
- set$sassTrue$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$sassTrue(receiver, value);
- },
- set$types$x(receiver, value) {
- return J.getInterceptor$x(receiver).set$types(receiver, value);
- },
- get$$prototype$x(receiver) {
- return J.getInterceptor$x(receiver).get$$prototype(receiver);
- },
- get$_dartException$x(receiver) {
- return J.getInterceptor$x(receiver).get$_dartException(receiver);
- },
- get$alertAscii$x(receiver) {
- return J.getInterceptor$x(receiver).get$alertAscii(receiver);
- },
- get$alertColor$x(receiver) {
- return J.getInterceptor$x(receiver).get$alertColor(receiver);
- },
- get$argv$x(receiver) {
- return J.getInterceptor$x(receiver).get$argv(receiver);
- },
- get$blue$x(receiver) {
- return J.getInterceptor$x(receiver).get$blue(receiver);
- },
- get$brackets$x(receiver) {
- return J.getInterceptor$x(receiver).get$brackets(receiver);
- },
- get$charset$x(receiver) {
- return J.getInterceptor$x(receiver).get$charset(receiver);
- },
- get$code$x(receiver) {
- return J.getInterceptor$x(receiver).get$code(receiver);
- },
- get$current$x(receiver) {
- return J.getInterceptor$x(receiver).get$current(receiver);
- },
- get$dartValue$x(receiver) {
- return J.getInterceptor$x(receiver).get$dartValue(receiver);
- },
- get$debug$x(receiver) {
- return J.getInterceptor$x(receiver).get$debug(receiver);
- },
- get$denominatorUnits$x(receiver) {
- return J.getInterceptor$x(receiver).get$denominatorUnits(receiver);
- },
- get$end$z(receiver) {
- return J.getInterceptor$z(receiver).get$end(receiver);
- },
- get$env$x(receiver) {
- return J.getInterceptor$x(receiver).get$env(receiver);
- },
- get$exitCode$x(receiver) {
- return J.getInterceptor$x(receiver).get$exitCode(receiver);
- },
- get$fatalDeprecations$x(receiver) {
- return J.getInterceptor$x(receiver).get$fatalDeprecations(receiver);
- },
- get$fiber$x(receiver) {
- return J.getInterceptor$x(receiver).get$fiber(receiver);
- },
- get$file$x(receiver) {
- return J.getInterceptor$x(receiver).get$file(receiver);
- },
- get$filename$x(receiver) {
- return J.getInterceptor$x(receiver).get$filename(receiver);
- },
- get$first$ax(receiver) {
- return J.getInterceptor$ax(receiver).get$first(receiver);
- },
- get$functions$x(receiver) {
- return J.getInterceptor$x(receiver).get$functions(receiver);
- },
- get$futureDeprecations$x(receiver) {
- return J.getInterceptor$x(receiver).get$futureDeprecations(receiver);
- },
- get$green$x(receiver) {
- return J.getInterceptor$x(receiver).get$green(receiver);
- },
- get$hashCode$(receiver) {
- return J.getInterceptor$(receiver).get$hashCode(receiver);
- },
- get$id$x(receiver) {
- return J.getInterceptor$x(receiver).get$id(receiver);
- },
- get$importer$x(receiver) {
- return J.getInterceptor$x(receiver).get$importer(receiver);
- },
- get$importers$x(receiver) {
- return J.getInterceptor$x(receiver).get$importers(receiver);
- },
- get$isEmpty$asx(receiver) {
- return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
- },
- get$isNotEmpty$asx(receiver) {
- return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
- },
- get$isTTY$x(receiver) {
- return J.getInterceptor$x(receiver).get$isTTY(receiver);
- },
- get$iterator$ax(receiver) {
- return J.getInterceptor$ax(receiver).get$iterator(receiver);
- },
- get$keys$z(receiver) {
- return J.getInterceptor$z(receiver).get$keys(receiver);
- },
- get$last$ax(receiver) {
- return J.getInterceptor$ax(receiver).get$last(receiver);
- },
- get$length$asx(receiver) {
- return J.getInterceptor$asx(receiver).get$length(receiver);
- },
- get$loadPaths$x(receiver) {
- return J.getInterceptor$x(receiver).get$loadPaths(receiver);
- },
- get$logger$x(receiver) {
- return J.getInterceptor$x(receiver).get$logger(receiver);
- },
- get$message$x(receiver) {
- return J.getInterceptor$x(receiver).get$message(receiver);
- },
- get$mtime$x(receiver) {
- return J.getInterceptor$x(receiver).get$mtime(receiver);
- },
- get$name$x(receiver) {
- return J.getInterceptor$x(receiver).get$name(receiver);
- },
- get$numeratorUnits$x(receiver) {
- return J.getInterceptor$x(receiver).get$numeratorUnits(receiver);
- },
- get$options$x(receiver) {
- return J.getInterceptor$x(receiver).get$options(receiver);
- },
- get$parent$z(receiver) {
- return J.getInterceptor$z(receiver).get$parent(receiver);
- },
- get$path$x(receiver) {
- return J.getInterceptor$x(receiver).get$path(receiver);
- },
- get$platform$x(receiver) {
- return J.getInterceptor$x(receiver).get$platform(receiver);
- },
- get$quietDeps$x(receiver) {
- return J.getInterceptor$x(receiver).get$quietDeps(receiver);
- },
- get$quotes$x(receiver) {
- return J.getInterceptor$x(receiver).get$quotes(receiver);
- },
- get$red$x(receiver) {
- return J.getInterceptor$x(receiver).get$red(receiver);
- },
- get$release$x(receiver) {
- return J.getInterceptor$x(receiver).get$release(receiver);
- },
- get$reversed$ax(receiver) {
- return J.getInterceptor$ax(receiver).get$reversed(receiver);
- },
- get$runtimeType$(receiver) {
- return J.getInterceptor$(receiver).get$runtimeType(receiver);
- },
- get$separator$x(receiver) {
- return J.getInterceptor$x(receiver).get$separator(receiver);
- },
- get$sign$in(receiver) {
- if (typeof receiver === "number")
- return receiver > 0 ? 1 : receiver < 0 ? -1 : receiver;
- return J.getInterceptor$in(receiver).get$sign(receiver);
- },
- get$silenceDeprecations$x(receiver) {
- return J.getInterceptor$x(receiver).get$silenceDeprecations(receiver);
- },
- get$single$ax(receiver) {
- return J.getInterceptor$ax(receiver).get$single(receiver);
- },
- get$sourceMap$x(receiver) {
- return J.getInterceptor$x(receiver).get$sourceMap(receiver);
- },
- get$sourceMapIncludeSources$x(receiver) {
- return J.getInterceptor$x(receiver).get$sourceMapIncludeSources(receiver);
- },
- get$span$z(receiver) {
- return J.getInterceptor$z(receiver).get$span(receiver);
- },
- get$stderr$x(receiver) {
- return J.getInterceptor$x(receiver).get$stderr(receiver);
- },
- get$stdout$x(receiver) {
- return J.getInterceptor$x(receiver).get$stdout(receiver);
- },
- get$style$x(receiver) {
- return J.getInterceptor$x(receiver).get$style(receiver);
- },
- get$syntax$x(receiver) {
- return J.getInterceptor$x(receiver).get$syntax(receiver);
- },
- get$trace$z(receiver) {
- return J.getInterceptor$z(receiver).get$trace(receiver);
- },
- get$url$x(receiver) {
- return J.getInterceptor$x(receiver).get$url(receiver);
- },
- get$verbose$x(receiver) {
- return J.getInterceptor$x(receiver).get$verbose(receiver);
- },
- get$warn$x(receiver) {
- return J.getInterceptor$x(receiver).get$warn(receiver);
- },
- $add$ansx(receiver, a0) {
- if (typeof receiver == "number" && typeof a0 == "number")
- return receiver + a0;
- return J.getInterceptor$ansx(receiver).$add(receiver, a0);
- },
- $eq$(receiver, a0) {
- if (receiver == null)
- return a0 == null;
- if (typeof receiver != "object")
- return a0 != null && receiver === a0;
- return J.getInterceptor$(receiver).$eq(receiver, a0);
- },
- $index$asx(receiver, a0) {
- if (typeof a0 === "number")
- if (Array.isArray(receiver) || typeof receiver == "string" || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
- if (a0 >>> 0 === a0 && a0 < receiver.length)
- return receiver[a0];
- return J.getInterceptor$asx(receiver).$index(receiver, a0);
- },
- $indexSet$ax(receiver, a0, a1) {
- if (typeof a0 === "number")
- if ((Array.isArray(receiver) || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
- return receiver[a0] = a1;
- return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
- },
- $set$2$x(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).$set$2(receiver, a0, a1);
- },
- add$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).add$1(receiver, a0);
- },
- addAll$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
- },
- allMatches$1$s(receiver, a0) {
- return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
- },
- allMatches$2$s(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
- },
- any$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).any$1(receiver, a0);
- },
- apply$2$x(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
- },
- asImmutable$0$x(receiver) {
- return J.getInterceptor$x(receiver).asImmutable$0(receiver);
- },
- asMutable$0$x(receiver) {
- return J.getInterceptor$x(receiver).asMutable$0(receiver);
- },
- canonicalize$4$baseImporter$baseUrl$forImport$x(receiver, a0, a1, a2, a3) {
- return J.getInterceptor$x(receiver).canonicalize$4$baseImporter$baseUrl$forImport(receiver, a0, a1, a2, a3);
- },
- cast$1$0$ax(receiver, $T1) {
- return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
- },
- close$0$x(receiver) {
- return J.getInterceptor$x(receiver).close$0(receiver);
- },
- codeUnitAt$1$s(receiver, a0) {
- return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
- },
- compareTo$1$ns(receiver, a0) {
- return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
- },
- contains$1$asx(receiver, a0) {
- return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
- },
- createInterface$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
- },
- createRequire$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).createRequire$1(receiver, a0);
- },
- elementAt$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
- },
- endsWith$1$s(receiver, a0) {
- return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
- },
- error$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).error$1(receiver, a0);
- },
- every$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).every$1(receiver, a0);
- },
- existsSync$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
- },
- expand$1$1$ax(receiver, a0, $T1) {
- return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
- },
- fillRange$3$ax(receiver, a0, a1, a2) {
- return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
- },
- fold$2$ax(receiver, a0, a1) {
- return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
- },
- forEach$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).forEach$1(receiver, a0);
- },
- getRange$2$ax(receiver, a0, a1) {
- return J.getInterceptor$ax(receiver).getRange$2(receiver, a0, a1);
- },
- getTime$0$x(receiver) {
- return J.getInterceptor$x(receiver).getTime$0(receiver);
- },
- isDirectory$0$x(receiver) {
- return J.getInterceptor$x(receiver).isDirectory$0(receiver);
- },
- isFile$0$x(receiver) {
- return J.getInterceptor$x(receiver).isFile$0(receiver);
- },
- join$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).join$1(receiver, a0);
- },
- listen$1$z(receiver, a0) {
- return J.getInterceptor$z(receiver).listen$1(receiver, a0);
- },
- log$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).log$1(receiver, a0);
- },
- map$1$1$ax(receiver, a0, $T1) {
- return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
- },
- matchAsPrefix$2$s(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
- },
- mkdirSync$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
- },
- noSuchMethod$1$(receiver, a0) {
- return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
- },
- on$2$x(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
- },
- readFileSync$2$x(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
- },
- readdirSync$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
- },
- remove$1$z(receiver, a0) {
- return J.getInterceptor$z(receiver).remove$1(receiver, a0);
- },
- removeRange$2$ax(receiver, a0, a1) {
- return J.getInterceptor$ax(receiver).removeRange$2(receiver, a0, a1);
- },
- replaceFirst$2$s(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).replaceFirst$2(receiver, a0, a1);
- },
- resolve$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).resolve$1(receiver, a0);
- },
- run$0$x(receiver) {
- return J.getInterceptor$x(receiver).run$0(receiver);
- },
- run$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).run$1(receiver, a0);
- },
- setRange$4$ax(receiver, a0, a1, a2, a3) {
- return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
- },
- skip$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
- },
- sort$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
- },
- startsWith$1$s(receiver, a0) {
- return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
- },
- statSync$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
- },
- sublist$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).sublist$1(receiver, a0);
- },
- substring$1$s(receiver, a0) {
- return J.getInterceptor$s(receiver).substring$1(receiver, a0);
- },
- substring$2$s(receiver, a0, a1) {
- return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
- },
- take$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).take$1(receiver, a0);
- },
- then$1$1$x(receiver, a0, $T1) {
- return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1);
- },
- then$1$2$onError$x(receiver, a0, a1, $T1) {
- return J.getInterceptor$x(receiver).then$1$2$onError(receiver, a0, a1, $T1);
- },
- then$2$x(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).then$2(receiver, a0, a1);
- },
- toArray$0$x(receiver) {
- return J.getInterceptor$x(receiver).toArray$0(receiver);
- },
- toList$0$ax(receiver) {
- return J.getInterceptor$ax(receiver).toList$0(receiver);
- },
- toList$1$growable$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
- },
- toRadixString$1$n(receiver, a0) {
- return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
- },
- toSet$0$ax(receiver) {
- return J.getInterceptor$ax(receiver).toSet$0(receiver);
- },
- toString$0$(receiver) {
- return J.getInterceptor$(receiver).toString$0(receiver);
- },
- toString$1$color$(receiver, a0) {
- return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
- },
- trim$0$s(receiver) {
- return J.getInterceptor$s(receiver).trim$0(receiver);
- },
- unlinkSync$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
- },
- watch$2$x(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
- },
- where$1$ax(receiver, a0) {
- return J.getInterceptor$ax(receiver).where$1(receiver, a0);
- },
- write$1$x(receiver, a0) {
- return J.getInterceptor$x(receiver).write$1(receiver, a0);
- },
- writeFileSync$2$x(receiver, a0, a1) {
- return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
- },
- yield$0$x(receiver) {
- return J.getInterceptor$x(receiver).yield$0(receiver);
- },
- Interceptor: function Interceptor() {
- },
- JSBool: function JSBool() {
- },
- JSNull: function JSNull() {
- },
- JavaScriptObject: function JavaScriptObject() {
- },
- LegacyJavaScriptObject: function LegacyJavaScriptObject() {
- },
- PlainJavaScriptObject: function PlainJavaScriptObject() {
- },
- UnknownJavaScriptObject: function UnknownJavaScriptObject() {
- },
- JavaScriptFunction: function JavaScriptFunction() {
- },
- JavaScriptBigInt: function JavaScriptBigInt() {
- },
- JavaScriptSymbol: function JavaScriptSymbol() {
- },
- JSArray: function JSArray(t0) {
- this.$ti = t0;
- },
- JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
- this.$ti = t0;
- },
- ArrayIterator: function ArrayIterator(t0, t1, t2) {
- var _ = this;
- _._iterable = t0;
- _._length = t1;
- _._index = 0;
- _._current = null;
- _.$ti = t2;
- },
- JSNumber: function JSNumber() {
- },
- JSInt: function JSInt() {
- },
- JSNumNotInt: function JSNumNotInt() {
- },
- JSString: function JSString() {
- }
- },
- A = {JS_CONST: function JS_CONST() {
- },
- CastIterable_CastIterable(source, $S, $T) {
- if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
- return new A._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
- return new A.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
- },
- LateError$localNI(localName) {
- return new A.LateError("Local '" + localName + "' has not been initialized.");
- },
- ReachabilityError$(_message) {
- return new A.ReachabilityError(_message);
- },
- hexDigitValue(char) {
- var letter,
- digit = char ^ 48;
- if (digit <= 9)
- return digit;
- letter = char | 32;
- if (97 <= letter && letter <= 102)
- return letter - 87;
- return -1;
- },
- SystemHash_combine(hash, value) {
- hash = hash + value & 536870911;
- hash = hash + ((hash & 524287) << 10) & 536870911;
- return hash ^ hash >>> 6;
- },
- SystemHash_finish(hash) {
- hash = hash + ((hash & 67108863) << 3) & 536870911;
- hash ^= hash >>> 11;
- return hash + ((hash & 16383) << 15) & 536870911;
- },
- checkNotNullable(value, $name, $T) {
- return value;
- },
- isToStringVisiting(object) {
- var t1, i;
- for (t1 = $.toStringVisiting.length, i = 0; i < t1; ++i)
- if (object === $.toStringVisiting[i])
- return true;
- return false;
- },
- SubListIterable$(_iterable, _start, _endOrLength, $E) {
- A.RangeError_checkNotNegative(_start, "start");
- if (_endOrLength != null) {
- A.RangeError_checkNotNegative(_endOrLength, "end");
- if (_start > _endOrLength)
- A.throwExpression(A.RangeError$range(_start, 0, _endOrLength, "start", null));
- }
- return new A.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
- },
- MappedIterable_MappedIterable(iterable, $function, $S, $T) {
- if (type$.EfficientLengthIterable_dynamic._is(iterable))
- return new A.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
- return new A.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
- },
- TakeIterable_TakeIterable(iterable, takeCount, $E) {
- var _s9_ = "takeCount";
- A.ArgumentError_checkNotNull(takeCount, _s9_);
- A.RangeError_checkNotNegative(takeCount, _s9_);
- if (type$.EfficientLengthIterable_dynamic._is(iterable))
- return new A.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
- return new A.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
- },
- SkipIterable_SkipIterable(iterable, count, $E) {
- var _s5_ = "count";
- if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
- A.ArgumentError_checkNotNull(count, _s5_);
- A.RangeError_checkNotNegative(count, _s5_);
- return new A.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
- }
- A.ArgumentError_checkNotNull(count, _s5_);
- A.RangeError_checkNotNegative(count, _s5_);
- return new A.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
- },
- FollowedByIterable_FollowedByIterable$firstEfficient(first, second, $E) {
- if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
- return new A.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
- return new A.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
- },
- IterableElementError_noElement() {
- return new A.StateError("No element");
- },
- IterableElementError_tooMany() {
- return new A.StateError("Too many elements");
- },
- IterableElementError_tooFew() {
- return new A.StateError("Too few elements");
- },
- Sort__doSort(a, left, right, compare) {
- if (right - left <= 32)
- A.Sort__insertionSort(a, left, right, compare);
- else
- A.Sort__dualPivotQuicksort(a, left, right, compare);
- },
- Sort__insertionSort(a, left, right, compare) {
- var i, t1, el, j, j0;
- for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) {
- el = t1.$index(a, i);
- j = i;
- while (true) {
- if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0))
- break;
- j0 = j - 1;
- t1.$indexSet(a, j, t1.$index(a, j0));
- j = j0;
- }
- t1.$indexSet(a, j, el);
- }
- },
- Sort__dualPivotQuicksort(a, left, right, compare) {
- var t0, less, great, pivots_are_equal, k, ak, comp, great0, less0, t2,
- sixth = B.JSInt_methods._tdivFast$1(right - left + 1, 6),
- index1 = left + sixth,
- index5 = right - sixth,
- index3 = B.JSInt_methods._tdivFast$1(left + right, 2),
- index2 = index3 - sixth,
- index4 = index3 + sixth,
- t1 = J.getInterceptor$asx(a),
- el1 = t1.$index(a, index1),
- el2 = t1.$index(a, index2),
- el3 = t1.$index(a, index3),
- el4 = t1.$index(a, index4),
- el5 = t1.$index(a, index5);
- if (compare.call$2(el1, el2) > 0) {
- t0 = el2;
- el2 = el1;
- el1 = t0;
- }
- if (compare.call$2(el4, el5) > 0) {
- t0 = el5;
- el5 = el4;
- el4 = t0;
- }
- if (compare.call$2(el1, el3) > 0) {
- t0 = el3;
- el3 = el1;
- el1 = t0;
- }
- if (compare.call$2(el2, el3) > 0) {
- t0 = el3;
- el3 = el2;
- el2 = t0;
- }
- if (compare.call$2(el1, el4) > 0) {
- t0 = el4;
- el4 = el1;
- el1 = t0;
- }
- if (compare.call$2(el3, el4) > 0) {
- t0 = el4;
- el4 = el3;
- el3 = t0;
- }
- if (compare.call$2(el2, el5) > 0) {
- t0 = el5;
- el5 = el2;
- el2 = t0;
- }
- if (compare.call$2(el2, el3) > 0) {
- t0 = el3;
- el3 = el2;
- el2 = t0;
- }
- if (compare.call$2(el4, el5) > 0) {
- t0 = el5;
- el5 = el4;
- el4 = t0;
- }
- t1.$indexSet(a, index1, el1);
- t1.$indexSet(a, index3, el3);
- t1.$indexSet(a, index5, el5);
- t1.$indexSet(a, index2, t1.$index(a, left));
- t1.$indexSet(a, index4, t1.$index(a, right));
- less = left + 1;
- great = right - 1;
- pivots_are_equal = J.$eq$(compare.call$2(el2, el4), 0);
- if (pivots_are_equal)
- for (k = less; k <= great; ++k) {
- ak = t1.$index(a, k);
- comp = compare.call$2(ak, el2);
- if (comp === 0)
- continue;
- if (comp < 0) {
- if (k !== less) {
- t1.$indexSet(a, k, t1.$index(a, less));
- t1.$indexSet(a, less, ak);
- }
- ++less;
- } else
- for (; true;) {
- comp = compare.call$2(t1.$index(a, great), el2);
- if (comp > 0) {
- --great;
- continue;
- } else {
- great0 = great - 1;
- if (comp < 0) {
- t1.$indexSet(a, k, t1.$index(a, less));
- less0 = less + 1;
- t1.$indexSet(a, less, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- great = great0;
- less = less0;
- break;
- } else {
- t1.$indexSet(a, k, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- great = great0;
- break;
- }
- }
- }
- }
- else
- for (k = less; k <= great; ++k) {
- ak = t1.$index(a, k);
- if (compare.call$2(ak, el2) < 0) {
- if (k !== less) {
- t1.$indexSet(a, k, t1.$index(a, less));
- t1.$indexSet(a, less, ak);
- }
- ++less;
- } else if (compare.call$2(ak, el4) > 0)
- for (; true;)
- if (compare.call$2(t1.$index(a, great), el4) > 0) {
- --great;
- if (great < k)
- break;
- continue;
- } else {
- great0 = great - 1;
- if (compare.call$2(t1.$index(a, great), el2) < 0) {
- t1.$indexSet(a, k, t1.$index(a, less));
- less0 = less + 1;
- t1.$indexSet(a, less, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- less = less0;
- } else {
- t1.$indexSet(a, k, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- }
- great = great0;
- break;
- }
- }
- t2 = less - 1;
- t1.$indexSet(a, left, t1.$index(a, t2));
- t1.$indexSet(a, t2, el2);
- t2 = great + 1;
- t1.$indexSet(a, right, t1.$index(a, t2));
- t1.$indexSet(a, t2, el4);
- A.Sort__doSort(a, left, less - 2, compare);
- A.Sort__doSort(a, great + 2, right, compare);
- if (pivots_are_equal)
- return;
- if (less < index1 && great > index5) {
- for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);)
- ++less;
- for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);)
- --great;
- for (k = less; k <= great; ++k) {
- ak = t1.$index(a, k);
- if (compare.call$2(ak, el2) === 0) {
- if (k !== less) {
- t1.$indexSet(a, k, t1.$index(a, less));
- t1.$indexSet(a, less, ak);
- }
- ++less;
- } else if (compare.call$2(ak, el4) === 0)
- for (; true;)
- if (compare.call$2(t1.$index(a, great), el4) === 0) {
- --great;
- if (great < k)
- break;
- continue;
- } else {
- great0 = great - 1;
- if (compare.call$2(t1.$index(a, great), el2) < 0) {
- t1.$indexSet(a, k, t1.$index(a, less));
- less0 = less + 1;
- t1.$indexSet(a, less, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- less = less0;
- } else {
- t1.$indexSet(a, k, t1.$index(a, great));
- t1.$indexSet(a, great, ak);
- }
- great = great0;
- break;
- }
- }
- A.Sort__doSort(a, less, great, compare);
- } else
- A.Sort__doSort(a, less, great, compare);
- },
- _CastIterableBase: function _CastIterableBase() {
- },
- CastIterator: function CastIterator(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- CastIterable: function CastIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- _CastListBase: function _CastListBase() {
- },
- _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) {
- this.$this = t0;
- this.compare = t1;
- },
- CastList: function CastList(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- CastSet: function CastSet(t0, t1, t2) {
- this._source = t0;
- this._emptySet = t1;
- this.$ti = t2;
- },
- CastMap: function CastMap(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- CastMap_forEach_closure: function CastMap_forEach_closure(t0, t1) {
- this.$this = t0;
- this.f = t1;
- },
- CastMap_entries_closure: function CastMap_entries_closure(t0) {
- this.$this = t0;
- },
- LateError: function LateError(t0) {
- this._message = t0;
- },
- ReachabilityError: function ReachabilityError(t0) {
- this._message = t0;
- },
- CodeUnits: function CodeUnits(t0) {
- this._string = t0;
- },
- nullFuture_closure: function nullFuture_closure() {
- },
- SentinelValue: function SentinelValue() {
- },
- EfficientLengthIterable: function EfficientLengthIterable() {
- },
- ListIterable: function ListIterable() {
- },
- SubListIterable: function SubListIterable(t0, t1, t2, t3) {
- var _ = this;
- _.__internal$_iterable = t0;
- _._start = t1;
- _._endOrLength = t2;
- _.$ti = t3;
- },
- ListIterator: function ListIterator(t0, t1, t2) {
- var _ = this;
- _.__internal$_iterable = t0;
- _.__internal$_length = t1;
- _.__internal$_index = 0;
- _.__internal$_current = null;
- _.$ti = t2;
- },
- MappedIterable: function MappedIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- MappedIterator: function MappedIterator(t0, t1, t2) {
- var _ = this;
- _.__internal$_current = null;
- _._iterator = t0;
- _._f = t1;
- _.$ti = t2;
- },
- MappedListIterable: function MappedListIterable(t0, t1, t2) {
- this._source = t0;
- this._f = t1;
- this.$ti = t2;
- },
- WhereIterable: function WhereIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- WhereIterator: function WhereIterator(t0, t1) {
- this._iterator = t0;
- this._f = t1;
- },
- ExpandIterable: function ExpandIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- ExpandIterator: function ExpandIterator(t0, t1, t2, t3) {
- var _ = this;
- _._iterator = t0;
- _._f = t1;
- _._currentExpansion = t2;
- _.__internal$_current = null;
- _.$ti = t3;
- },
- TakeIterable: function TakeIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._takeCount = t1;
- this.$ti = t2;
- },
- EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._takeCount = t1;
- this.$ti = t2;
- },
- TakeIterator: function TakeIterator(t0, t1, t2) {
- this._iterator = t0;
- this._remaining = t1;
- this.$ti = t2;
- },
- SkipIterable: function SkipIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._skipCount = t1;
- this.$ti = t2;
- },
- EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._skipCount = t1;
- this.$ti = t2;
- },
- SkipIterator: function SkipIterator(t0, t1) {
- this._iterator = t0;
- this._skipCount = t1;
- },
- SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
- this.__internal$_iterable = t0;
- this._f = t1;
- this.$ti = t2;
- },
- SkipWhileIterator: function SkipWhileIterator(t0, t1) {
- this._iterator = t0;
- this._f = t1;
- this._hasSkipped = false;
- },
- EmptyIterable: function EmptyIterable(t0) {
- this.$ti = t0;
- },
- EmptyIterator: function EmptyIterator() {
- },
- FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
- this.__internal$_first = t0;
- this._second = t1;
- this.$ti = t2;
- },
- EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
- this.__internal$_first = t0;
- this._second = t1;
- this.$ti = t2;
- },
- FollowedByIterator: function FollowedByIterator(t0, t1) {
- this._currentIterator = t0;
- this._nextIterable = t1;
- },
- WhereTypeIterable: function WhereTypeIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- WhereTypeIterator: function WhereTypeIterator(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- FixedLengthListMixin: function FixedLengthListMixin() {
- },
- UnmodifiableListMixin: function UnmodifiableListMixin() {
- },
- UnmodifiableListBase: function UnmodifiableListBase() {
- },
- ReversedListIterable: function ReversedListIterable(t0, t1) {
- this._source = t0;
- this.$ti = t1;
- },
- Symbol: function Symbol(t0) {
- this.__internal$_name = t0;
- },
- __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
- },
- ConstantMap_ConstantMap$from(other, $K, $V) {
- var allStrings, k, object, index, index0, map,
- keys = A.List_List$from(other.get$keys(other), true, $K),
- t1 = keys.length,
- _i = 0;
- while (true) {
- if (!(_i < t1)) {
- allStrings = true;
- break;
- }
- k = keys[_i];
- if (typeof k != "string" || "__proto__" === k) {
- allStrings = false;
- break;
- }
- ++_i;
- }
- if (allStrings) {
- object = {};
- for (index = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i, index = index0) {
- k = keys[_i];
- other.$index(0, k);
- index0 = index + 1;
- object[k] = index;
- }
- map = new A.ConstantStringMap(object, A.List_List$from(other.get$values(other), true, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
- map.$keys = keys;
- return map;
- }
- return new A.ConstantMapView(A.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
- },
- ConstantMap__throwUnmodifiable() {
- throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable Map"));
- },
- ConstantSet__throwUnmodifiable() {
- throw A.wrapException(A.UnsupportedError$("Cannot modify constant Set"));
- },
- instantiate1(f, T1) {
- var t1 = new A.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
- t1.Instantiation$1(f);
- return t1;
- },
- unminifyOrTag(rawClassName) {
- var preserved = init.mangledGlobalNames[rawClassName];
- if (preserved != null)
- return preserved;
- return rawClassName;
- },
- isJsIndexable(object, record) {
- var result;
- if (record != null) {
- result = record.x;
- if (result != null)
- return result;
- }
- return type$.JavaScriptIndexingBehavior_dynamic._is(object);
- },
- S(value) {
- var result;
- if (typeof value == "string")
- return value;
- if (typeof value == "number") {
- if (value !== 0)
- return "" + value;
- } else if (true === value)
- return "true";
- else if (false === value)
- return "false";
- else if (value == null)
- return "null";
- result = J.toString$0$(value);
- return result;
- },
- JSInvocationMirror$(_memberName, _internalName, _kind, _arguments, _namedArgumentNames, _typeArgumentCount) {
- return new A.JSInvocationMirror(_memberName, _kind, _arguments, _namedArgumentNames, _typeArgumentCount);
- },
- Primitives_objectHashCode(object) {
- var hash,
- property = $.Primitives__identityHashCodeProperty;
- if (property == null)
- property = $.Primitives__identityHashCodeProperty = Symbol("identityHashCode");
- hash = object[property];
- if (hash == null) {
- hash = Math.random() * 0x3fffffff | 0;
- object[property] = hash;
- }
- return hash;
- },
- Primitives_parseInt(source, radix) {
- var decimalMatch, maxCharCode, digitsPart, t1, i, _null = null,
- match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
- if (match == null)
- return _null;
- decimalMatch = match[3];
- if (radix == null) {
- if (decimalMatch != null)
- return parseInt(source, 10);
- if (match[2] != null)
- return parseInt(source, 16);
- return _null;
- }
- if (radix < 2 || radix > 36)
- throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", _null));
- if (radix === 10 && decimalMatch != null)
- return parseInt(source, 10);
- if (radix < 10 || decimalMatch == null) {
- maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
- digitsPart = match[1];
- for (t1 = digitsPart.length, i = 0; i < t1; ++i)
- if ((digitsPart.charCodeAt(i) | 32) > maxCharCode)
- return _null;
- }
- return parseInt(source, radix);
- },
- Primitives_parseDouble(source) {
- var result, trimmed;
- if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
- return null;
- result = parseFloat(source);
- if (isNaN(result)) {
- trimmed = B.JSString_methods.trim$0(source);
- if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
- return result;
- return null;
- }
- return result;
- },
- Primitives_objectTypeName(object) {
- return A.Primitives__objectTypeNameNewRti(object);
- },
- Primitives__objectTypeNameNewRti(object) {
- var interceptor, dispatchName, $constructor, constructorName;
- if (object instanceof A.Object)
- return A._rtiToString(A.instanceType(object), null);
- interceptor = J.getInterceptor$(object);
- if (interceptor === B.Interceptor_methods || interceptor === B.JavaScriptObject_methods || type$.UnknownJavaScriptObject._is(object)) {
- dispatchName = B.C_JS_CONST(object);
- if (dispatchName !== "Object" && dispatchName !== "")
- return dispatchName;
- $constructor = object.constructor;
- if (typeof $constructor == "function") {
- constructorName = $constructor.name;
- if (typeof constructorName == "string" && constructorName !== "Object" && constructorName !== "")
- return constructorName;
- }
- }
- return A._rtiToString(A.instanceType(object), null);
- },
- Primitives_safeToString(object) {
- if (object == null || typeof object == "number" || A._isBool(object))
- return J.toString$0$(object);
- if (typeof object == "string")
- return JSON.stringify(object);
- if (object instanceof A.Closure)
- return object.toString$0(0);
- if (object instanceof A._Record)
- return object._toString$1(true);
- return "Instance of '" + A.Primitives_objectTypeName(object) + "'";
- },
- Primitives_currentUri() {
- if (!!self.location)
- return self.location.href;
- return null;
- },
- Primitives__fromCharCodeApply(array) {
- var result, i, i0, chunkEnd,
- end = array.length;
- if (end <= 500)
- return String.fromCharCode.apply(null, array);
- for (result = "", i = 0; i < end; i = i0) {
- i0 = i + 500;
- chunkEnd = i0 < end ? i0 : end;
- result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
- }
- return result;
- },
- Primitives_stringFromCodePoints(codePoints) {
- var t1, _i, i,
- a = A._setArrayType([], type$.JSArray_int);
- for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.length === t1 || (0, A.throwConcurrentModificationError)(codePoints), ++_i) {
- i = codePoints[_i];
- if (!A._isInt(i))
- throw A.wrapException(A.argumentErrorValue(i));
- if (i <= 65535)
- a.push(i);
- else if (i <= 1114111) {
- a.push(55296 + (B.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
- a.push(56320 + (i & 1023));
- } else
- throw A.wrapException(A.argumentErrorValue(i));
- }
- return A.Primitives__fromCharCodeApply(a);
- },
- Primitives_stringFromCharCodes(charCodes) {
- var t1, _i, i;
- for (t1 = charCodes.length, _i = 0; _i < t1; ++_i) {
- i = charCodes[_i];
- if (!A._isInt(i))
- throw A.wrapException(A.argumentErrorValue(i));
- if (i < 0)
- throw A.wrapException(A.argumentErrorValue(i));
- if (i > 65535)
- return A.Primitives_stringFromCodePoints(charCodes);
- }
- return A.Primitives__fromCharCodeApply(charCodes);
- },
- Primitives_stringFromNativeUint8List(charCodes, start, end) {
- var i, result, i0, chunkEnd;
- if (end <= 500 && start === 0 && end === charCodes.length)
- return String.fromCharCode.apply(null, charCodes);
- for (i = start, result = ""; i < end; i = i0) {
- i0 = i + 500;
- chunkEnd = i0 < end ? i0 : end;
- result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
- }
- return result;
- },
- Primitives_stringFromCharCode(charCode) {
- var bits;
- if (0 <= charCode) {
- if (charCode <= 65535)
- return String.fromCharCode(charCode);
- if (charCode <= 1114111) {
- bits = charCode - 65536;
- return String.fromCharCode((B.JSInt_methods._shrOtherPositive$1(bits, 10) | 55296) >>> 0, bits & 1023 | 56320);
- }
- }
- throw A.wrapException(A.RangeError$range(charCode, 0, 1114111, null, null));
- },
- Primitives_lazyAsJsDate(receiver) {
- if (receiver.date === void 0)
- receiver.date = new Date(receiver._value);
- return receiver.date;
- },
- Primitives_getYear(receiver) {
- var t1 = A.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
- return t1;
- },
- Primitives_getMonth(receiver) {
- var t1 = A.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
- return t1;
- },
- Primitives_getDay(receiver) {
- var t1 = A.Primitives_lazyAsJsDate(receiver).getDate() + 0;
- return t1;
- },
- Primitives_getHours(receiver) {
- var t1 = A.Primitives_lazyAsJsDate(receiver).getHours() + 0;
- return t1;
- },
- Primitives_getMinutes(receiver) {
- var t1 = A.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
- return t1;
- },
- Primitives_getSeconds(receiver) {
- var t1 = A.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
- return t1;
- },
- Primitives_getMilliseconds(receiver) {
- var t1 = A.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
- return t1;
- },
- Primitives_functionNoSuchMethod($function, positionalArguments, namedArguments) {
- var $arguments, namedArgumentList, t1 = {};
- t1.argumentCount = 0;
- $arguments = [];
- namedArgumentList = [];
- t1.argumentCount = positionalArguments.length;
- B.JSArray_methods.addAll$1($arguments, positionalArguments);
- t1.names = "";
- if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
- namedArguments.forEach$1(0, new A.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
- return J.noSuchMethod$1$($function, new A.JSInvocationMirror(B.Symbol_call, 0, $arguments, namedArgumentList, 0));
- },
- Primitives_applyFunction($function, positionalArguments, namedArguments) {
- var t1, argumentCount, jsStub;
- if (Array.isArray(positionalArguments))
- t1 = namedArguments == null || namedArguments.__js_helper$_length === 0;
- else
- t1 = false;
- if (t1) {
- argumentCount = positionalArguments.length;
- if (argumentCount === 0) {
- if (!!$function.call$0)
- return $function.call$0();
- } else if (argumentCount === 1) {
- if (!!$function.call$1)
- return $function.call$1(positionalArguments[0]);
- } else if (argumentCount === 2) {
- if (!!$function.call$2)
- return $function.call$2(positionalArguments[0], positionalArguments[1]);
- } else if (argumentCount === 3) {
- if (!!$function.call$3)
- return $function.call$3(positionalArguments[0], positionalArguments[1], positionalArguments[2]);
- } else if (argumentCount === 4) {
- if (!!$function.call$4)
- return $function.call$4(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3]);
- } else if (argumentCount === 5)
- if (!!$function.call$5)
- return $function.call$5(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3], positionalArguments[4]);
- jsStub = $function["call" + "$" + argumentCount];
- if (jsStub != null)
- return jsStub.apply($function, positionalArguments);
- }
- return A.Primitives__generalApplyFunction($function, positionalArguments, namedArguments);
- },
- Primitives__generalApplyFunction($function, positionalArguments, namedArguments) {
- var defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, maxArguments, missingDefaults, keys, _i, defaultValue, used, t2,
- $arguments = Array.isArray(positionalArguments) ? positionalArguments : A.List_List$of(positionalArguments, true, type$.dynamic),
- argumentCount = $arguments.length,
- requiredParameterCount = $function.$requiredArgCount;
- if (argumentCount < requiredParameterCount)
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- defaultValuesClosure = $function.$defaultValues;
- t1 = defaultValuesClosure == null;
- defaultValues = !t1 ? defaultValuesClosure() : null;
- interceptor = J.getInterceptor$($function);
- jsFunction = interceptor["call*"];
- if (typeof jsFunction == "string")
- jsFunction = interceptor[jsFunction];
- if (t1) {
- if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- if (argumentCount === requiredParameterCount)
- return jsFunction.apply($function, $arguments);
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- }
- if (Array.isArray(defaultValues)) {
- if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- maxArguments = requiredParameterCount + defaultValues.length;
- if (argumentCount > maxArguments)
- return A.Primitives_functionNoSuchMethod($function, $arguments, null);
- if (argumentCount < maxArguments) {
- missingDefaults = defaultValues.slice(argumentCount - requiredParameterCount);
- if ($arguments === positionalArguments)
- $arguments = A.List_List$of($arguments, true, type$.dynamic);
- B.JSArray_methods.addAll$1($arguments, missingDefaults);
- }
- return jsFunction.apply($function, $arguments);
- } else {
- if (argumentCount > requiredParameterCount)
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- if ($arguments === positionalArguments)
- $arguments = A.List_List$of($arguments, true, type$.dynamic);
- keys = Object.keys(defaultValues);
- if (namedArguments == null)
- for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) {
- defaultValue = defaultValues[keys[_i]];
- if (B.C__Required === defaultValue)
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- B.JSArray_methods.add$1($arguments, defaultValue);
- }
- else {
- for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) {
- t2 = keys[_i];
- if (namedArguments.containsKey$1(t2)) {
- ++used;
- B.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
- } else {
- defaultValue = defaultValues[t2];
- if (B.C__Required === defaultValue)
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- B.JSArray_methods.add$1($arguments, defaultValue);
- }
- }
- if (used !== namedArguments.__js_helper$_length)
- return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
- }
- return jsFunction.apply($function, $arguments);
- }
- },
- Primitives_extractStackTrace(error) {
- var jsError = error.$thrownJsError;
- if (jsError == null)
- return null;
- return A.getTraceFromException(jsError);
- },
- diagnoseIndexError(indexable, index) {
- var $length, _s5_ = "index";
- if (!A._isInt(index))
- return new A.ArgumentError(true, index, _s5_, null);
- $length = J.get$length$asx(indexable);
- if (index < 0 || index >= $length)
- return A.IndexError$withLength(index, $length, indexable, null, _s5_);
- return A.RangeError$value(index, _s5_, null);
- },
- diagnoseRangeError(start, end, $length) {
- if (start < 0 || start > $length)
- return A.RangeError$range(start, 0, $length, "start", null);
- if (end != null)
- if (end < start || end > $length)
- return A.RangeError$range(end, start, $length, "end", null);
- return new A.ArgumentError(true, end, "end", null);
- },
- argumentErrorValue(object) {
- return new A.ArgumentError(true, object, null, null);
- },
- checkNum(value) {
- return value;
- },
- wrapException(ex) {
- return A.initializeExceptionWrapper(new Error(), ex);
- },
- initializeExceptionWrapper(wrapper, ex) {
- var t1;
- if (ex == null)
- ex = new A.TypeError();
- wrapper.dartException = ex;
- t1 = A.toStringWrapper;
- if ("defineProperty" in Object) {
- Object.defineProperty(wrapper, "message", {get: t1});
- wrapper.name = "";
- } else
- wrapper.toString = t1;
- return wrapper;
- },
- toStringWrapper() {
- return J.toString$0$(this.dartException);
- },
- throwExpression(ex) {
- throw A.wrapException(ex);
- },
- throwExpressionWithWrapper(ex, wrapper) {
- throw A.initializeExceptionWrapper(wrapper, ex);
- },
- throwConcurrentModificationError(collection) {
- throw A.wrapException(A.ConcurrentModificationError$(collection));
- },
- TypeErrorDecoder_extractPattern(message) {
- var match, $arguments, argumentsExpr, expr, method, receiver;
- message = A.quoteStringForRegExp(message.replace(String({}), "$receiver$"));
- match = message.match(/\\\$[a-zA-Z]+\\\$/g);
- if (match == null)
- match = A._setArrayType([], type$.JSArray_String);
- $arguments = match.indexOf("\\$arguments\\$");
- argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
- expr = match.indexOf("\\$expr\\$");
- method = match.indexOf("\\$method\\$");
- receiver = match.indexOf("\\$receiver\\$");
- return new A.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);
- },
- TypeErrorDecoder_provokeCallErrorOn(expression) {
- return function($expr$) {
- var $argumentsExpr$ = "$arguments$";
- try {
- $expr$.$method$($argumentsExpr$);
- } catch (e) {
- return e.message;
- }
- }(expression);
- },
- TypeErrorDecoder_provokePropertyErrorOn(expression) {
- return function($expr$) {
- try {
- $expr$.$method$;
- } catch (e) {
- return e.message;
- }
- }(expression);
- },
- JsNoSuchMethodError$(_message, match) {
- var t1 = match == null,
- t2 = t1 ? null : match.method;
- return new A.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
- },
- unwrapException(ex) {
- if (ex == null)
- return new A.NullThrownFromJavaScriptException(ex);
- if (ex instanceof A.ExceptionAndStackTrace)
- return A.saveStackTrace(ex, ex.dartException);
- if (typeof ex !== "object")
- return ex;
- if ("dartException" in ex)
- return A.saveStackTrace(ex, ex.dartException);
- return A._unwrapNonDartException(ex);
- },
- saveStackTrace(ex, error) {
- if (type$.Error._is(error))
- if (error.$thrownJsError == null)
- error.$thrownJsError = ex;
- return error;
- },
- _unwrapNonDartException(ex) {
- var message, number, ieErrorCode, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match;
- if (!("message" in ex))
- return ex;
- message = ex.message;
- if ("number" in ex && typeof ex.number == "number") {
- number = ex.number;
- ieErrorCode = number & 65535;
- if ((B.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
- switch (ieErrorCode) {
- case 438:
- return A.saveStackTrace(ex, A.JsNoSuchMethodError$(A.S(message) + " (Error " + ieErrorCode + ")", null));
- case 445:
- case 5007:
- A.S(message);
- return A.saveStackTrace(ex, new A.NullError());
- }
- }
- if (ex instanceof TypeError) {
- nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
- notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
- nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
- nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
- undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
- undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
- nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
- $.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
- undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
- undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
- match = nsme.matchTypeError$1(message);
- if (match != null)
- return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match));
- else {
- match = notClosure.matchTypeError$1(message);
- if (match != null) {
- match.method = "call";
- return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match));
- } else if (nullCall.matchTypeError$1(message) != null || nullLiteralCall.matchTypeError$1(message) != null || undefCall.matchTypeError$1(message) != null || undefLiteralCall.matchTypeError$1(message) != null || nullProperty.matchTypeError$1(message) != null || nullLiteralCall.matchTypeError$1(message) != null || undefProperty.matchTypeError$1(message) != null || undefLiteralProperty.matchTypeError$1(message) != null)
- return A.saveStackTrace(ex, new A.NullError());
- }
- return A.saveStackTrace(ex, new A.UnknownJsTypeError(typeof message == "string" ? message : ""));
- }
- if (ex instanceof RangeError) {
- if (typeof message == "string" && message.indexOf("call stack") !== -1)
- return new A.StackOverflowError();
- message = function(ex) {
- try {
- return String(ex);
- } catch (e) {
- }
- return null;
- }(ex);
- return A.saveStackTrace(ex, new A.ArgumentError(false, null, null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
- }
- if (typeof InternalError == "function" && ex instanceof InternalError)
- if (typeof message == "string" && message === "too much recursion")
- return new A.StackOverflowError();
- return ex;
- },
- getTraceFromException(exception) {
- var trace;
- if (exception instanceof A.ExceptionAndStackTrace)
- return exception.stackTrace;
- if (exception == null)
- return new A._StackTrace(exception);
- trace = exception.$cachedTrace;
- if (trace != null)
- return trace;
- trace = new A._StackTrace(exception);
- if (typeof exception === "object")
- exception.$cachedTrace = trace;
- return trace;
- },
- objectHashCode(object) {
- if (object == null)
- return J.get$hashCode$(object);
- if (typeof object == "object")
- return A.Primitives_objectHashCode(object);
- return J.get$hashCode$(object);
- },
- constantHashCode(key) {
- if (typeof key == "number")
- return B.JSNumber_methods.get$hashCode(key);
- if (key instanceof A._Type)
- return A.Primitives_objectHashCode(key);
- if (key instanceof A._Record)
- return key.get$hashCode(key);
- if (key instanceof A.Symbol)
- return key.get$hashCode(0);
- return A.objectHashCode(key);
- },
- fillLiteralMap(keyValuePairs, result) {
- var index, index0, index1,
- $length = keyValuePairs.length;
- for (index = 0; index < $length; index = index1) {
- index0 = index + 1;
- index1 = index0 + 1;
- result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
- }
- return result;
- },
- fillLiteralSet(values, result) {
- var index,
- $length = values.length;
- for (index = 0; index < $length; ++index)
- result.add$1(0, values[index]);
- return result;
- },
- _invokeClosure(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
- switch (numberOfArguments) {
- case 0:
- return closure.call$0();
- case 1:
- return closure.call$1(arg1);
- case 2:
- return closure.call$2(arg1, arg2);
- case 3:
- return closure.call$3(arg1, arg2, arg3);
- case 4:
- return closure.call$4(arg1, arg2, arg3, arg4);
- }
- throw A.wrapException(new A._Exception("Unsupported number of arguments for wrapped closure"));
- },
- convertDartClosureToJS(closure, arity) {
- var $function;
- if (closure == null)
- return null;
- $function = closure.$identity;
- if (!!$function)
- return $function;
- $function = A.convertDartClosureToJSUncached(closure, arity);
- closure.$identity = $function;
- return $function;
- },
- convertDartClosureToJSUncached(closure, arity) {
- var entry;
- switch (arity) {
- case 0:
- entry = closure.call$0;
- break;
- case 1:
- entry = closure.call$1;
- break;
- case 2:
- entry = closure.call$2;
- break;
- case 3:
- entry = closure.call$3;
- break;
- case 4:
- entry = closure.call$4;
- break;
- default:
- entry = null;
- }
- if (entry != null)
- return entry.bind(closure);
- return function(closure, arity, invoke) {
- return function(a1, a2, a3, a4) {
- return invoke(closure, arity, a1, a2, a3, a4);
- };
- }(closure, arity, A._invokeClosure);
- },
- Closure_fromTearOff(parameters) {
- var $prototype, $constructor, t2, trampoline, applyTrampoline, i, stub, stub0, stubName, stubCallName,
- container = parameters.co,
- isStatic = parameters.iS,
- isIntercepted = parameters.iI,
- needsDirectAccess = parameters.nDA,
- applyTrampolineIndex = parameters.aI,
- funsOrNames = parameters.fs,
- callNames = parameters.cs,
- $name = funsOrNames[0],
- callName = callNames[0],
- $function = container[$name],
- t1 = parameters.fT;
- t1.toString;
- $prototype = isStatic ? Object.create(new A.StaticClosure().constructor.prototype) : Object.create(new A.BoundClosure(null, null).constructor.prototype);
- $prototype.$initialize = $prototype.constructor;
- $constructor = isStatic ? function static_tear_off() {
- this.$initialize();
- } : function tear_off(a, b) {
- this.$initialize(a, b);
- };
- $prototype.constructor = $constructor;
- $constructor.prototype = $prototype;
- $prototype.$_name = $name;
- $prototype.$_target = $function;
- t2 = !isStatic;
- if (t2)
- trampoline = A.Closure_forwardCallTo($name, $function, isIntercepted, needsDirectAccess);
- else {
- $prototype.$static_name = $name;
- trampoline = $function;
- }
- $prototype.$signature = A.Closure__computeSignatureFunctionNewRti(t1, isStatic, isIntercepted);
- $prototype[callName] = trampoline;
- for (applyTrampoline = trampoline, i = 1; i < funsOrNames.length; ++i) {
- stub = funsOrNames[i];
- if (typeof stub == "string") {
- stub0 = container[stub];
- stubName = stub;
- stub = stub0;
- } else
- stubName = "";
- stubCallName = callNames[i];
- if (stubCallName != null) {
- if (t2)
- stub = A.Closure_forwardCallTo(stubName, stub, isIntercepted, needsDirectAccess);
- $prototype[stubCallName] = stub;
- }
- if (i === applyTrampolineIndex)
- applyTrampoline = stub;
- }
- $prototype["call*"] = applyTrampoline;
- $prototype.$requiredArgCount = parameters.rC;
- $prototype.$defaultValues = parameters.dV;
- return $constructor;
- },
- Closure__computeSignatureFunctionNewRti(functionType, isStatic, isIntercepted) {
- if (typeof functionType == "number")
- return functionType;
- if (typeof functionType == "string") {
- if (isStatic)
- throw A.wrapException("Cannot compute signature for static tearoff.");
- return function(recipe, evalOnReceiver) {
- return function() {
- return evalOnReceiver(this, recipe);
- };
- }(functionType, A.BoundClosure_evalRecipe);
- }
- throw A.wrapException("Error in functionType of tearoff");
- },
- Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function) {
- var getReceiver = A.BoundClosure_receiverOf;
- switch (needsDirectAccess ? -1 : arity) {
- case 0:
- return function(entry, receiverOf) {
- return function() {
- return receiverOf(this)[entry]();
- };
- }(stubName, getReceiver);
- case 1:
- return function(entry, receiverOf) {
- return function(a) {
- return receiverOf(this)[entry](a);
- };
- }(stubName, getReceiver);
- case 2:
- return function(entry, receiverOf) {
- return function(a, b) {
- return receiverOf(this)[entry](a, b);
- };
- }(stubName, getReceiver);
- case 3:
- return function(entry, receiverOf) {
- return function(a, b, c) {
- return receiverOf(this)[entry](a, b, c);
- };
- }(stubName, getReceiver);
- case 4:
- return function(entry, receiverOf) {
- return function(a, b, c, d) {
- return receiverOf(this)[entry](a, b, c, d);
- };
- }(stubName, getReceiver);
- case 5:
- return function(entry, receiverOf) {
- return function(a, b, c, d, e) {
- return receiverOf(this)[entry](a, b, c, d, e);
- };
- }(stubName, getReceiver);
- default:
- return function(f, receiverOf) {
- return function() {
- return f.apply(receiverOf(this), arguments);
- };
- }($function, getReceiver);
- }
- },
- Closure_forwardCallTo(stubName, $function, isIntercepted, needsDirectAccess) {
- if (isIntercepted)
- return A.Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess);
- return A.Closure_cspForwardCall($function.length, needsDirectAccess, stubName, $function);
- },
- Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function) {
- var getReceiver = A.BoundClosure_receiverOf,
- getInterceptor = A.BoundClosure_interceptorOf;
- switch (needsDirectAccess ? -1 : arity) {
- case 0:
- throw A.wrapException(new A.RuntimeError("Intercepted function with no arguments."));
- case 1:
- return function(entry, interceptorOf, receiverOf) {
- return function() {
- return interceptorOf(this)[entry](receiverOf(this));
- };
- }(stubName, getInterceptor, getReceiver);
- case 2:
- return function(entry, interceptorOf, receiverOf) {
- return function(a) {
- return interceptorOf(this)[entry](receiverOf(this), a);
- };
- }(stubName, getInterceptor, getReceiver);
- case 3:
- return function(entry, interceptorOf, receiverOf) {
- return function(a, b) {
- return interceptorOf(this)[entry](receiverOf(this), a, b);
- };
- }(stubName, getInterceptor, getReceiver);
- case 4:
- return function(entry, interceptorOf, receiverOf) {
- return function(a, b, c) {
- return interceptorOf(this)[entry](receiverOf(this), a, b, c);
- };
- }(stubName, getInterceptor, getReceiver);
- case 5:
- return function(entry, interceptorOf, receiverOf) {
- return function(a, b, c, d) {
- return interceptorOf(this)[entry](receiverOf(this), a, b, c, d);
- };
- }(stubName, getInterceptor, getReceiver);
- case 6:
- return function(entry, interceptorOf, receiverOf) {
- return function(a, b, c, d, e) {
- return interceptorOf(this)[entry](receiverOf(this), a, b, c, d, e);
- };
- }(stubName, getInterceptor, getReceiver);
- default:
- return function(f, interceptorOf, receiverOf) {
- return function() {
- var a = [receiverOf(this)];
- Array.prototype.push.apply(a, arguments);
- return f.apply(interceptorOf(this), a);
- };
- }($function, getInterceptor, getReceiver);
- }
- },
- Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess) {
- var arity, t1;
- if ($.BoundClosure__interceptorFieldNameCache == null)
- $.BoundClosure__interceptorFieldNameCache = A.BoundClosure__computeFieldNamed("interceptor");
- if ($.BoundClosure__receiverFieldNameCache == null)
- $.BoundClosure__receiverFieldNameCache = A.BoundClosure__computeFieldNamed("receiver");
- arity = $function.length;
- t1 = A.Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function);
- return t1;
- },
- closureFromTearOff(parameters) {
- return A.Closure_fromTearOff(parameters);
- },
- BoundClosure_evalRecipe(closure, recipe) {
- return A._Universe_evalInEnvironment(init.typeUniverse, A.instanceType(closure._receiver), recipe);
- },
- BoundClosure_receiverOf(closure) {
- return closure._receiver;
- },
- BoundClosure_interceptorOf(closure) {
- return closure._interceptor;
- },
- BoundClosure__computeFieldNamed(fieldName) {
- var t1, i, $name,
- template = new A.BoundClosure("receiver", "interceptor"),
- names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
- for (t1 = names.length, i = 0; i < t1; ++i) {
- $name = names[i];
- if (template[$name] === fieldName)
- return $name;
- }
- throw A.wrapException(A.ArgumentError$("Field name " + fieldName + " not found.", null));
- },
- throwCyclicInit(staticName) {
- throw A.wrapException(new A._CyclicInitializationError(staticName));
- },
- getIsolateAffinityTag($name) {
- return init.getIsolateTag($name);
- },
- LinkedHashMapKeyIterator$(_map, _modifications) {
- var t1 = new A.LinkedHashMapKeyIterator(_map, _modifications);
- t1.__js_helper$_cell = _map.__js_helper$_first;
- return t1;
- },
- defineProperty(obj, property, value) {
- Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
- },
- lookupAndCacheInterceptor(obj) {
- var interceptor, interceptorClass, altTag, mark, t1,
- tag = $.getTagFunction.call$1(obj),
- record = $.dispatchRecordsForInstanceTags[tag];
- if (record != null) {
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- return record.i;
- }
- interceptor = $.interceptorsForUncacheableTags[tag];
- if (interceptor != null)
- return interceptor;
- interceptorClass = init.interceptorsByTag[tag];
- if (interceptorClass == null) {
- altTag = $.alternateTagFunction.call$2(obj, tag);
- if (altTag != null) {
- record = $.dispatchRecordsForInstanceTags[altTag];
- if (record != null) {
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- return record.i;
- }
- interceptor = $.interceptorsForUncacheableTags[altTag];
- if (interceptor != null)
- return interceptor;
- interceptorClass = init.interceptorsByTag[altTag];
- tag = altTag;
- }
- }
- if (interceptorClass == null)
- return null;
- interceptor = interceptorClass.prototype;
- mark = tag[0];
- if (mark === "!") {
- record = A.makeLeafDispatchRecord(interceptor);
- $.dispatchRecordsForInstanceTags[tag] = record;
- Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- return record.i;
- }
- if (mark === "~") {
- $.interceptorsForUncacheableTags[tag] = interceptor;
- return interceptor;
- }
- if (mark === "-") {
- t1 = A.makeLeafDispatchRecord(interceptor);
- Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
- return t1.i;
- }
- if (mark === "+")
- return A.patchInteriorProto(obj, interceptor);
- if (mark === "*")
- throw A.wrapException(A.UnimplementedError$(tag));
- if (init.leafTags[tag] === true) {
- t1 = A.makeLeafDispatchRecord(interceptor);
- Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
- return t1.i;
- } else
- return A.patchInteriorProto(obj, interceptor);
- },
- patchInteriorProto(obj, interceptor) {
- var proto = Object.getPrototypeOf(obj);
- Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
- return interceptor;
- },
- makeLeafDispatchRecord(interceptor) {
- return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
- },
- makeDefaultDispatchRecord(tag, interceptorClass, proto) {
- var interceptor = interceptorClass.prototype;
- if (init.leafTags[tag] === true)
- return A.makeLeafDispatchRecord(interceptor);
- else
- return J.makeDispatchRecord(interceptor, proto, null, null);
- },
- initNativeDispatch() {
- if (true === $.initNativeDispatchFlag)
- return;
- $.initNativeDispatchFlag = true;
- A.initNativeDispatchContinue();
- },
- initNativeDispatchContinue() {
- var map, tags, fun, i, tag, proto, record, interceptorClass;
- $.dispatchRecordsForInstanceTags = Object.create(null);
- $.interceptorsForUncacheableTags = Object.create(null);
- A.initHooks();
- map = init.interceptorsByTag;
- tags = Object.getOwnPropertyNames(map);
- if (typeof window != "undefined") {
- window;
- fun = function() {
- };
- for (i = 0; i < tags.length; ++i) {
- tag = tags[i];
- proto = $.prototypeForTagFunction.call$1(tag);
- if (proto != null) {
- record = A.makeDefaultDispatchRecord(tag, map[tag], proto);
- if (record != null) {
- Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
- fun.prototype = proto;
- }
- }
- }
- }
- for (i = 0; i < tags.length; ++i) {
- tag = tags[i];
- if (/^[A-Za-z_]/.test(tag)) {
- interceptorClass = map[tag];
- map["!" + tag] = interceptorClass;
- map["~" + tag] = interceptorClass;
- map["-" + tag] = interceptorClass;
- map["+" + tag] = interceptorClass;
- map["*" + tag] = interceptorClass;
- }
- }
- },
- initHooks() {
- var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
- hooks = B.C_JS_CONST0();
- hooks = A.applyHooksTransformer(B.C_JS_CONST1, A.applyHooksTransformer(B.C_JS_CONST2, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST4, A.applyHooksTransformer(B.C_JS_CONST5, A.applyHooksTransformer(B.C_JS_CONST6(B.C_JS_CONST), hooks)))))));
- if (typeof dartNativeDispatchHooksTransformer != "undefined") {
- transformers = dartNativeDispatchHooksTransformer;
- if (typeof transformers == "function")
- transformers = [transformers];
- if (Array.isArray(transformers))
- for (i = 0; i < transformers.length; ++i) {
- transformer = transformers[i];
- if (typeof transformer == "function")
- hooks = transformer(hooks) || hooks;
- }
- }
- getTag = hooks.getTag;
- getUnknownTag = hooks.getUnknownTag;
- prototypeForTag = hooks.prototypeForTag;
- $.getTagFunction = new A.initHooks_closure(getTag);
- $.alternateTagFunction = new A.initHooks_closure0(getUnknownTag);
- $.prototypeForTagFunction = new A.initHooks_closure1(prototypeForTag);
- },
- applyHooksTransformer(transformer, hooks) {
- return transformer(hooks) || hooks;
- },
- _RecordN__equalValues(a, b) {
- var i;
- for (i = 0; i < a.length; ++i)
- if (!J.$eq$(a[i], b[i]))
- return false;
- return true;
- },
- createRecordTypePredicate(shape, fieldRtis) {
- var $length = fieldRtis.length,
- $function = init.rttc["" + $length + ";" + shape];
- if ($function == null)
- return null;
- if ($length === 0)
- return $function;
- if ($length === $function.length)
- return $function.apply(null, fieldRtis);
- return $function(fieldRtis);
- },
- JSSyntaxRegExp_makeNative(source, multiLine, caseSensitive, unicode, dotAll, global) {
- var m = multiLine ? "m" : "",
- i = caseSensitive ? "" : "i",
- u = unicode ? "u" : "",
- s = dotAll ? "s" : "",
- g = global ? "g" : "",
- regexp = function(source, modifiers) {
- try {
- return new RegExp(source, modifiers);
- } catch (e) {
- return e;
- }
- }(source, m + i + u + s + g);
- if (regexp instanceof RegExp)
- return regexp;
- throw A.wrapException(A.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
- },
- stringContainsUnchecked(receiver, other, startIndex) {
- var t1;
- if (typeof other == "string")
- return receiver.indexOf(other, startIndex) >= 0;
- else if (other instanceof A.JSSyntaxRegExp) {
- t1 = B.JSString_methods.substring$1(receiver, startIndex);
- return other._nativeRegExp.test(t1);
- } else
- return !J.allMatches$1$s(other, B.JSString_methods.substring$1(receiver, startIndex)).get$isEmpty(0);
- },
- escapeReplacement(replacement) {
- if (replacement.indexOf("$", 0) >= 0)
- return replacement.replace(/\$/g, "$$$$");
- return replacement;
- },
- stringReplaceFirstRE(receiver, regexp, replacement, startIndex) {
- var match = regexp._execGlobal$2(receiver, startIndex);
- if (match == null)
- return receiver;
- return A.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(0), replacement);
- },
- quoteStringForRegExp(string) {
- if (/[[\]{}()*+?.\\^$|]/.test(string))
- return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
- return string;
- },
- stringReplaceAllUnchecked(receiver, pattern, replacement) {
- var nativeRegexp;
- if (typeof pattern == "string")
- return A.stringReplaceAllUncheckedString(receiver, pattern, replacement);
- if (pattern instanceof A.JSSyntaxRegExp) {
- nativeRegexp = pattern.get$_nativeGlobalVersion();
- nativeRegexp.lastIndex = 0;
- return receiver.replace(nativeRegexp, A.escapeReplacement(replacement));
- }
- return A.stringReplaceAllGeneral(receiver, pattern, replacement);
- },
- stringReplaceAllGeneral(receiver, pattern, replacement) {
- var t1, startIndex, t2, match;
- for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), startIndex = 0, t2 = ""; t1.moveNext$0();) {
- match = t1.get$current(t1);
- t2 = t2 + receiver.substring(startIndex, match.get$start(match)) + replacement;
- startIndex = match.get$end(match);
- }
- t1 = t2 + receiver.substring(startIndex);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- stringReplaceAllUncheckedString(receiver, pattern, replacement) {
- var $length, t1, i;
- if (pattern === "") {
- if (receiver === "")
- return replacement;
- $length = receiver.length;
- t1 = "" + replacement;
- for (i = 0; i < $length; ++i)
- t1 = t1 + receiver[i] + replacement;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- if (receiver.indexOf(pattern, 0) < 0)
- return receiver;
- if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
- return receiver.split(pattern).join(replacement);
- return receiver.replace(new RegExp(A.quoteStringForRegExp(pattern), "g"), A.escapeReplacement(replacement));
- },
- stringReplaceFirstUnchecked(receiver, pattern, replacement, startIndex) {
- var index, t1, matches, match;
- if (typeof pattern == "string") {
- index = receiver.indexOf(pattern, startIndex);
- if (index < 0)
- return receiver;
- return A.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
- }
- if (pattern instanceof A.JSSyntaxRegExp)
- return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, A.escapeReplacement(replacement)) : A.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
- t1 = J.allMatches$2$s(pattern, receiver, startIndex);
- matches = t1.get$iterator(t1);
- if (!matches.moveNext$0())
- return receiver;
- match = matches.get$current(matches);
- return B.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
- },
- stringReplaceRangeUnchecked(receiver, start, end, replacement) {
- return receiver.substring(0, start) + replacement + receiver.substring(end);
- },
- _Record_1: function _Record_1(t0) {
- this._0 = t0;
- },
- _Record_2: function _Record_2(t0, t1) {
- this._0 = t0;
- this._1 = t1;
- },
- _Record_2_forImport: function _Record_2_forImport(t0, t1) {
- this._0 = t0;
- this._1 = t1;
- },
- _Record_2_imports_modules: function _Record_2_imports_modules(t0, t1) {
- this._0 = t0;
- this._1 = t1;
- },
- _Record_2_loadedUrls_stylesheet: function _Record_2_loadedUrls_stylesheet(t0, t1) {
- this._0 = t0;
- this._1 = t1;
- },
- _Record_2_sourceMap: function _Record_2_sourceMap(t0, t1) {
- this._0 = t0;
- this._1 = t1;
- },
- _Record_3: function _Record_3(t0, t1, t2) {
- this._0 = t0;
- this._1 = t1;
- this._2 = t2;
- },
- _Record_3_forImport: function _Record_3_forImport(t0, t1, t2) {
- this._0 = t0;
- this._1 = t1;
- this._2 = t2;
- },
- _Record_3_importer_isDependency: function _Record_3_importer_isDependency(t0, t1, t2) {
- this._0 = t0;
- this._1 = t1;
- this._2 = t2;
- },
- _Record_3_originalUrl: function _Record_3_originalUrl(t0, t1, t2) {
- this._0 = t0;
- this._1 = t1;
- this._2 = t2;
- },
- _Record_5_named_namedNodes_positional_positionalNodes_separator: function _Record_5_named_namedNodes_positional_positionalNodes_separator(t0) {
- this._values = t0;
- },
- ConstantMapView: function ConstantMapView(t0, t1) {
- this._map = t0;
- this.$ti = t1;
- },
- ConstantMap: function ConstantMap() {
- },
- ConstantStringMap: function ConstantStringMap(t0, t1, t2) {
- this._jsIndex = t0;
- this._values = t1;
- this.$ti = t2;
- },
- _KeysOrValues: function _KeysOrValues(t0, t1) {
- this._elements = t0;
- this.$ti = t1;
- },
- _KeysOrValuesOrElementsIterator: function _KeysOrValuesOrElementsIterator(t0, t1, t2) {
- var _ = this;
- _._elements = t0;
- _.__js_helper$_length = t1;
- _.__js_helper$_index = 0;
- _.__js_helper$_current = null;
- _.$ti = t2;
- },
- ConstantSet: function ConstantSet() {
- },
- ConstantStringSet: function ConstantStringSet(t0, t1, t2) {
- this._jsIndex = t0;
- this.__js_helper$_length = t1;
- this.$ti = t2;
- },
- GeneralConstantSet: function GeneralConstantSet(t0, t1) {
- this._elements = t0;
- this.$ti = t1;
- },
- Instantiation: function Instantiation() {
- },
- Instantiation1: function Instantiation1(t0, t1) {
- this._genericClosure = t0;
- this.$ti = t1;
- },
- JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
- var _ = this;
- _.__js_helper$_memberName = t0;
- _.__js_helper$_kind = t1;
- _._arguments = t2;
- _._namedArgumentNames = t3;
- _._typeArgumentCount = t4;
- },
- Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.namedArgumentList = t1;
- this.$arguments = t2;
- },
- TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._pattern = t0;
- _._arguments = t1;
- _._argumentsExpr = t2;
- _._expr = t3;
- _._method = t4;
- _._receiver = t5;
- },
- NullError: function NullError() {
- },
- JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
- this.__js_helper$_message = t0;
- this._method = t1;
- this._receiver = t2;
- },
- UnknownJsTypeError: function UnknownJsTypeError(t0) {
- this.__js_helper$_message = t0;
- },
- NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) {
- this._irritant = t0;
- },
- ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
- this.dartException = t0;
- this.stackTrace = t1;
- },
- _StackTrace: function _StackTrace(t0) {
- this._exception = t0;
- this._trace = null;
- },
- Closure: function Closure() {
- },
- Closure0Args: function Closure0Args() {
- },
- Closure2Args: function Closure2Args() {
- },
- TearOffClosure: function TearOffClosure() {
- },
- StaticClosure: function StaticClosure() {
- },
- BoundClosure: function BoundClosure(t0, t1) {
- this._receiver = t0;
- this._interceptor = t1;
- },
- _CyclicInitializationError: function _CyclicInitializationError(t0) {
- this.variableName = t0;
- },
- RuntimeError: function RuntimeError(t0) {
- this.message = t0;
- },
- _Required: function _Required() {
- },
- JsLinkedHashMap: function JsLinkedHashMap(t0) {
- var _ = this;
- _.__js_helper$_length = 0;
- _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
- _.__js_helper$_modifications = 0;
- _.$ti = t0;
- },
- JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
- this.$this = t0;
- },
- JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
- this.$this = t0;
- },
- LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
- var _ = this;
- _.hashMapCellKey = t0;
- _.hashMapCellValue = t1;
- _.__js_helper$_previous = _.__js_helper$_next = null;
- },
- LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
- this.__js_helper$_map = t0;
- this.$ti = t1;
- },
- LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
- var _ = this;
- _.__js_helper$_map = t0;
- _.__js_helper$_modifications = t1;
- _.__js_helper$_current = _.__js_helper$_cell = null;
- },
- JsIdentityLinkedHashMap: function JsIdentityLinkedHashMap(t0) {
- var _ = this;
- _.__js_helper$_length = 0;
- _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
- _.__js_helper$_modifications = 0;
- _.$ti = t0;
- },
- JsConstantLinkedHashMap: function JsConstantLinkedHashMap(t0) {
- var _ = this;
- _.__js_helper$_length = 0;
- _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
- _.__js_helper$_modifications = 0;
- _.$ti = t0;
- },
- initHooks_closure: function initHooks_closure(t0) {
- this.getTag = t0;
- },
- initHooks_closure0: function initHooks_closure0(t0) {
- this.getUnknownTag = t0;
- },
- initHooks_closure1: function initHooks_closure1(t0) {
- this.prototypeForTag = t0;
- },
- _Record: function _Record() {
- },
- _Record2: function _Record2() {
- },
- _Record1: function _Record1() {
- },
- _Record3: function _Record3() {
- },
- _RecordN: function _RecordN() {
- },
- JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
- var _ = this;
- _.pattern = t0;
- _._nativeRegExp = t1;
- _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
- },
- _MatchImplementation: function _MatchImplementation(t0) {
- this._match = t0;
- },
- _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
- this._re = t0;
- this.__js_helper$_string = t1;
- this.__js_helper$_start = t2;
- },
- _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
- var _ = this;
- _._regExp = t0;
- _.__js_helper$_string = t1;
- _._nextIndex = t2;
- _.__js_helper$_current = null;
- },
- StringMatch: function StringMatch(t0, t1) {
- this.start = t0;
- this.pattern = t1;
- },
- _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
- this._input = t0;
- this._pattern = t1;
- this.__js_helper$_index = t2;
- },
- _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
- var _ = this;
- _._input = t0;
- _._pattern = t1;
- _.__js_helper$_index = t2;
- _.__js_helper$_current = null;
- },
- throwLateFieldADI(fieldName) {
- A.throwExpressionWithWrapper(new A.LateError("Field '" + fieldName + "' has been assigned during initialization."), new Error());
- },
- throwUnnamedLateFieldNI() {
- A.throwExpressionWithWrapper(new A.LateError("Field '' has not been initialized."), new Error());
- },
- throwUnnamedLateFieldAI() {
- A.throwExpressionWithWrapper(new A.LateError("Field '' has already been initialized."), new Error());
- },
- throwUnnamedLateFieldADI() {
- A.throwExpressionWithWrapper(new A.LateError("Field '' has been assigned during initialization."), new Error());
- },
- _Cell$() {
- var t1 = new A._Cell();
- return t1.__late_helper$_value = t1;
- },
- _Cell: function _Cell() {
- this.__late_helper$_value = null;
- },
- _ensureNativeList(list) {
- return list;
- },
- NativeInt8List__create1(arg) {
- return new Int8Array(arg);
- },
- NativeUint8List_NativeUint8List($length) {
- return new Uint8Array($length);
- },
- _checkValidIndex(index, list, $length) {
- if (index >>> 0 !== index || index >= $length)
- throw A.wrapException(A.diagnoseIndexError(list, index));
- },
- _checkValidRange(start, end, $length) {
- var t1;
- if (!(start >>> 0 !== start))
- if (end == null)
- t1 = start > $length;
- else
- t1 = end >>> 0 !== end || start > end || end > $length;
- else
- t1 = true;
- if (t1)
- throw A.wrapException(A.diagnoseRangeError(start, end, $length));
- if (end == null)
- return $length;
- return end;
- },
- NativeByteBuffer: function NativeByteBuffer() {
- },
- NativeTypedData: function NativeTypedData() {
- },
- NativeByteData: function NativeByteData() {
- },
- NativeTypedArray: function NativeTypedArray() {
- },
- NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
- },
- NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
- },
- NativeFloat32List: function NativeFloat32List() {
- },
- NativeFloat64List: function NativeFloat64List() {
- },
- NativeInt16List: function NativeInt16List() {
- },
- NativeInt32List: function NativeInt32List() {
- },
- NativeInt8List: function NativeInt8List() {
- },
- NativeUint16List: function NativeUint16List() {
- },
- NativeUint32List: function NativeUint32List() {
- },
- NativeUint8ClampedList: function NativeUint8ClampedList() {
- },
- NativeUint8List: function NativeUint8List() {
- },
- _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
- },
- _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
- },
- _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
- },
- _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
- },
- Rti__getQuestionFromStar(universe, rti) {
- var question = rti._precomputed1;
- return question == null ? rti._precomputed1 = A._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
- },
- Rti__getFutureFromFutureOr(universe, rti) {
- var future = rti._precomputed1;
- return future == null ? rti._precomputed1 = A._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
- },
- Rti__isUnionOfFunctionType(rti) {
- var kind = rti._kind;
- if (kind === 6 || kind === 7 || kind === 8)
- return A.Rti__isUnionOfFunctionType(rti._primary);
- return kind === 12 || kind === 13;
- },
- Rti__getCanonicalRecipe(rti) {
- return rti._canonicalRecipe;
- },
- pairwiseIsTest(fieldRtis, values) {
- var i,
- $length = values.length;
- for (i = 0; i < $length; ++i)
- if (!fieldRtis[i]._is(values[i]))
- return false;
- return true;
- },
- findType(recipe) {
- return A._Universe_eval(init.typeUniverse, recipe, false);
- },
- instantiatedGenericFunctionType(genericFunctionRti, instantiationRti) {
- var t1, cache, key, probe, rti;
- if (genericFunctionRti == null)
- return null;
- t1 = instantiationRti._rest;
- cache = genericFunctionRti._bindCache;
- if (cache == null)
- cache = genericFunctionRti._bindCache = new Map();
- key = instantiationRti._canonicalRecipe;
- probe = cache.get(key);
- if (probe != null)
- return probe;
- rti = A._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
- cache.set(key, rti);
- return rti;
- },
- _substitute(universe, rti, typeArguments, depth) {
- var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, t1, fields, substitutedFields, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
- kind = rti._kind;
- switch (kind) {
- case 5:
- case 1:
- case 2:
- case 3:
- case 4:
- return rti;
- case 6:
- baseType = rti._primary;
- substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
- if (substitutedBaseType === baseType)
- return rti;
- return A._Universe__lookupStarRti(universe, substitutedBaseType, true);
- case 7:
- baseType = rti._primary;
- substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
- if (substitutedBaseType === baseType)
- return rti;
- return A._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
- case 8:
- baseType = rti._primary;
- substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
- if (substitutedBaseType === baseType)
- return rti;
- return A._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
- case 9:
- interfaceTypeArguments = rti._rest;
- substitutedInterfaceTypeArguments = A._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
- if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
- return rti;
- return A._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
- case 10:
- base = rti._primary;
- substitutedBase = A._substitute(universe, base, typeArguments, depth);
- $arguments = rti._rest;
- substitutedArguments = A._substituteArray(universe, $arguments, typeArguments, depth);
- if (substitutedBase === base && substitutedArguments === $arguments)
- return rti;
- return A._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
- case 11:
- t1 = rti._primary;
- fields = rti._rest;
- substitutedFields = A._substituteArray(universe, fields, typeArguments, depth);
- if (substitutedFields === fields)
- return rti;
- return A._Universe__lookupRecordRti(universe, t1, substitutedFields);
- case 12:
- returnType = rti._primary;
- substitutedReturnType = A._substitute(universe, returnType, typeArguments, depth);
- functionParameters = rti._rest;
- substitutedFunctionParameters = A._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
- if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
- return rti;
- return A._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
- case 13:
- bounds = rti._rest;
- depth += bounds.length;
- substitutedBounds = A._substituteArray(universe, bounds, typeArguments, depth);
- base = rti._primary;
- substitutedBase = A._substitute(universe, base, typeArguments, depth);
- if (substitutedBounds === bounds && substitutedBase === base)
- return rti;
- return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
- case 14:
- index = rti._primary;
- if (index < depth)
- return rti;
- argument = typeArguments[index - depth];
- if (argument == null)
- return rti;
- return argument;
- default:
- throw A.wrapException(A.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
- }
- },
- _substituteArray(universe, rtiArray, typeArguments, depth) {
- var changed, i, rti, substitutedRti,
- $length = rtiArray.length,
- result = A._Utils_newArrayOrEmpty($length);
- for (changed = false, i = 0; i < $length; ++i) {
- rti = rtiArray[i];
- substitutedRti = A._substitute(universe, rti, typeArguments, depth);
- if (substitutedRti !== rti)
- changed = true;
- result[i] = substitutedRti;
- }
- return changed ? result : rtiArray;
- },
- _substituteNamed(universe, namedArray, typeArguments, depth) {
- var changed, i, t1, t2, rti, substitutedRti,
- $length = namedArray.length,
- result = A._Utils_newArrayOrEmpty($length);
- for (changed = false, i = 0; i < $length; i += 3) {
- t1 = namedArray[i];
- t2 = namedArray[i + 1];
- rti = namedArray[i + 2];
- substitutedRti = A._substitute(universe, rti, typeArguments, depth);
- if (substitutedRti !== rti)
- changed = true;
- result.splice(i, 3, t1, t2, substitutedRti);
- }
- return changed ? result : namedArray;
- },
- _substituteFunctionParameters(universe, functionParameters, typeArguments, depth) {
- var result,
- requiredPositional = functionParameters._requiredPositional,
- substitutedRequiredPositional = A._substituteArray(universe, requiredPositional, typeArguments, depth),
- optionalPositional = functionParameters._optionalPositional,
- substitutedOptionalPositional = A._substituteArray(universe, optionalPositional, typeArguments, depth),
- named = functionParameters._named,
- substitutedNamed = A._substituteNamed(universe, named, typeArguments, depth);
- if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named)
- return functionParameters;
- result = new A._FunctionParameters();
- result._requiredPositional = substitutedRequiredPositional;
- result._optionalPositional = substitutedOptionalPositional;
- result._named = substitutedNamed;
- return result;
- },
- _setArrayType(target, rti) {
- target[init.arrayRti] = rti;
- return target;
- },
- closureFunctionType(closure) {
- var signature = closure.$signature;
- if (signature != null) {
- if (typeof signature == "number")
- return A.getTypeFromTypesTable(signature);
- return closure.$signature();
- }
- return null;
- },
- instanceOrFunctionType(object, testRti) {
- var rti;
- if (A.Rti__isUnionOfFunctionType(testRti))
- if (object instanceof A.Closure) {
- rti = A.closureFunctionType(object);
- if (rti != null)
- return rti;
- }
- return A.instanceType(object);
- },
- instanceType(object) {
- if (object instanceof A.Object)
- return A._instanceType(object);
- if (Array.isArray(object))
- return A._arrayInstanceType(object);
- return A._instanceTypeFromConstructor(J.getInterceptor$(object));
- },
- _arrayInstanceType(object) {
- var rti = object[init.arrayRti],
- defaultRti = type$.JSArray_dynamic;
- if (rti == null)
- return defaultRti;
- if (rti.constructor !== defaultRti.constructor)
- return defaultRti;
- return rti;
- },
- _instanceType(object) {
- var rti = object.$ti;
- return rti != null ? rti : A._instanceTypeFromConstructor(object);
- },
- _instanceTypeFromConstructor(instance) {
- var $constructor = instance.constructor,
- probe = $constructor.$ccache;
- if (probe != null)
- return probe;
- return A._instanceTypeFromConstructorMiss(instance, $constructor);
- },
- _instanceTypeFromConstructorMiss(instance, $constructor) {
- var effectiveConstructor = instance instanceof A.Closure ? Object.getPrototypeOf(Object.getPrototypeOf(instance)).constructor : $constructor,
- rti = A._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
- $constructor.$ccache = rti;
- return rti;
- },
- getTypeFromTypesTable(index) {
- var rti,
- table = init.types,
- type = table[index];
- if (typeof type == "string") {
- rti = A._Universe_eval(init.typeUniverse, type, false);
- table[index] = rti;
- return rti;
- }
- return type;
- },
- getRuntimeTypeOfDartObject(object) {
- return A.createRuntimeType(A._instanceType(object));
- },
- getRuntimeTypeOfClosure(closure) {
- var rti = A.closureFunctionType(closure);
- return A.createRuntimeType(rti == null ? A.instanceType(closure) : rti);
- },
- _structuralTypeOf(object) {
- var functionRti;
- if (object instanceof A._Record)
- return A.evaluateRtiForRecord(object.$recipe, object._getFieldValues$0());
- functionRti = object instanceof A.Closure ? A.closureFunctionType(object) : null;
- if (functionRti != null)
- return functionRti;
- if (type$.TrustedGetRuntimeType._is(object))
- return J.get$runtimeType$(object)._rti;
- if (Array.isArray(object))
- return A._arrayInstanceType(object);
- return A.instanceType(object);
- },
- createRuntimeType(rti) {
- var t1 = rti._cachedRuntimeType;
- return t1 == null ? rti._cachedRuntimeType = A._createRuntimeType(rti) : t1;
- },
- _createRuntimeType(rti) {
- var starErasedRti, t1,
- s = rti._canonicalRecipe,
- starErasedRecipe = s.replace(/\*/g, "");
- if (starErasedRecipe === s)
- return rti._cachedRuntimeType = new A._Type(rti);
- starErasedRti = A._Universe_eval(init.typeUniverse, starErasedRecipe, true);
- t1 = starErasedRti._cachedRuntimeType;
- return t1 == null ? starErasedRti._cachedRuntimeType = A._createRuntimeType(starErasedRti) : t1;
- },
- evaluateRtiForRecord(recordRecipe, valuesList) {
- var bindings, i,
- values = valuesList,
- $length = values.length;
- if ($length === 0)
- return type$.Record_0;
- bindings = A._Universe_evalInEnvironment(init.typeUniverse, A._structuralTypeOf(values[0]), "@<0>");
- for (i = 1; i < $length; ++i)
- bindings = A._Universe_bind(init.typeUniverse, bindings, A._structuralTypeOf(values[i]));
- return A._Universe_evalInEnvironment(init.typeUniverse, bindings, recordRecipe);
- },
- typeLiteral(recipe) {
- return A.createRuntimeType(A._Universe_eval(init.typeUniverse, recipe, false));
- },
- _installSpecializedIsTest(object) {
- var t1, unstarred, unstarredKind, isFn, $name, predicate, testRti = this;
- if (testRti === type$.Object)
- return A._finishIsFn(testRti, object, A._isObject);
- if (!A.isSoundTopType(testRti))
- t1 = testRti === type$.legacy_Object;
- else
- t1 = true;
- if (t1)
- return A._finishIsFn(testRti, object, A._isTop);
- t1 = testRti._kind;
- if (t1 === 7)
- return A._finishIsFn(testRti, object, A._generalNullableIsTestImplementation);
- if (t1 === 1)
- return A._finishIsFn(testRti, object, A._isNever);
- unstarred = t1 === 6 ? testRti._primary : testRti;
- unstarredKind = unstarred._kind;
- if (unstarredKind === 8)
- return A._finishIsFn(testRti, object, A._isFutureOr);
- if (unstarred === type$.int)
- isFn = A._isInt;
- else if (unstarred === type$.double || unstarred === type$.num)
- isFn = A._isNum;
- else if (unstarred === type$.String)
- isFn = A._isString;
- else
- isFn = unstarred === type$.bool ? A._isBool : null;
- if (isFn != null)
- return A._finishIsFn(testRti, object, isFn);
- if (unstarredKind === 9) {
- $name = unstarred._primary;
- if (unstarred._rest.every(A.isDefinitelyTopType)) {
- testRti._specializedTestResource = "$is" + $name;
- if ($name === "List")
- return A._finishIsFn(testRti, object, A._isListTestViaProperty);
- return A._finishIsFn(testRti, object, A._isTestViaProperty);
- }
- } else if (unstarredKind === 11) {
- predicate = A.createRecordTypePredicate(unstarred._primary, unstarred._rest);
- return A._finishIsFn(testRti, object, predicate == null ? A._isNever : predicate);
- }
- return A._finishIsFn(testRti, object, A._generalIsTestImplementation);
- },
- _finishIsFn(testRti, object, isFn) {
- testRti._is = isFn;
- return testRti._is(object);
- },
- _installSpecializedAsCheck(object) {
- var t1, testRti = this,
- asFn = A._generalAsCheckImplementation;
- if (!A.isSoundTopType(testRti))
- t1 = testRti === type$.legacy_Object;
- else
- t1 = true;
- if (t1)
- asFn = A._asTop;
- else if (testRti === type$.Object)
- asFn = A._asObject;
- else {
- t1 = A.isNullable(testRti);
- if (t1)
- asFn = A._generalNullableAsCheckImplementation;
- }
- testRti._as = asFn;
- return testRti._as(object);
- },
- _nullIs(testRti) {
- var t1,
- kind = testRti._kind;
- if (!A.isSoundTopType(testRti))
- if (!(testRti === type$.legacy_Object))
- if (!(testRti === type$.legacy_Never))
- if (kind !== 7)
- if (!(kind === 6 && A._nullIs(testRti._primary)))
- t1 = kind === 8 && A._nullIs(testRti._primary) || testRti === type$.Null || testRti === type$.JSNull;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- _generalIsTestImplementation(object) {
- var testRti = this;
- if (object == null)
- return A._nullIs(testRti);
- return A.isSubtype(init.typeUniverse, A.instanceOrFunctionType(object, testRti), testRti);
- },
- _generalNullableIsTestImplementation(object) {
- if (object == null)
- return true;
- return this._primary._is(object);
- },
- _isTestViaProperty(object) {
- var tag, testRti = this;
- if (object == null)
- return A._nullIs(testRti);
- tag = testRti._specializedTestResource;
- if (object instanceof A.Object)
- return !!object[tag];
- return !!J.getInterceptor$(object)[tag];
- },
- _isListTestViaProperty(object) {
- var tag, testRti = this;
- if (object == null)
- return A._nullIs(testRti);
- if (typeof object != "object")
- return false;
- if (Array.isArray(object))
- return true;
- tag = testRti._specializedTestResource;
- if (object instanceof A.Object)
- return !!object[tag];
- return !!J.getInterceptor$(object)[tag];
- },
- _generalAsCheckImplementation(object) {
- var testRti = this;
- if (object == null) {
- if (A.isNullable(testRti))
- return object;
- } else if (testRti._is(object))
- return object;
- A._failedAsCheck(object, testRti);
- },
- _generalNullableAsCheckImplementation(object) {
- var testRti = this;
- if (object == null)
- return object;
- else if (testRti._is(object))
- return object;
- A._failedAsCheck(object, testRti);
- },
- _failedAsCheck(object, testRti) {
- throw A.wrapException(A._TypeError$fromMessage(A._Error_compose(object, A._rtiToString(testRti, null))));
- },
- _Error_compose(object, checkedTypeDescription) {
- return A.Error_safeToString(object) + ": type '" + A._rtiToString(A._structuralTypeOf(object), null) + "' is not a subtype of type '" + checkedTypeDescription + "'";
- },
- _TypeError$fromMessage(message) {
- return new A._TypeError("TypeError: " + message);
- },
- _TypeError__TypeError$forType(object, type) {
- return new A._TypeError("TypeError: " + A._Error_compose(object, type));
- },
- _isFutureOr(object) {
- var testRti = this,
- unstarred = testRti._kind === 6 ? testRti._primary : testRti;
- return unstarred._primary._is(object) || A.Rti__getFutureFromFutureOr(init.typeUniverse, unstarred)._is(object);
- },
- _isObject(object) {
- return object != null;
- },
- _asObject(object) {
- if (object != null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "Object"));
- },
- _isTop(object) {
- return true;
- },
- _asTop(object) {
- return object;
- },
- _isNever(object) {
- return false;
- },
- _isBool(object) {
- return true === object || false === object;
- },
- _asBool(object) {
- if (true === object)
- return true;
- if (false === object)
- return false;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "bool"));
- },
- _asBoolS(object) {
- if (true === object)
- return true;
- if (false === object)
- return false;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "bool"));
- },
- _asBoolQ(object) {
- if (true === object)
- return true;
- if (false === object)
- return false;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "bool?"));
- },
- _asDouble(object) {
- if (typeof object == "number")
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "double"));
- },
- _asDoubleS(object) {
- if (typeof object == "number")
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "double"));
- },
- _asDoubleQ(object) {
- if (typeof object == "number")
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "double?"));
- },
- _isInt(object) {
- return typeof object == "number" && Math.floor(object) === object;
- },
- _asInt(object) {
- if (typeof object == "number" && Math.floor(object) === object)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "int"));
- },
- _asIntS(object) {
- if (typeof object == "number" && Math.floor(object) === object)
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "int"));
- },
- _asIntQ(object) {
- if (typeof object == "number" && Math.floor(object) === object)
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "int?"));
- },
- _isNum(object) {
- return typeof object == "number";
- },
- _asNum(object) {
- if (typeof object == "number")
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "num"));
- },
- _asNumS(object) {
- if (typeof object == "number")
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "num"));
- },
- _asNumQ(object) {
- if (typeof object == "number")
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "num?"));
- },
- _isString(object) {
- return typeof object == "string";
- },
- _asString(object) {
- if (typeof object == "string")
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "String"));
- },
- _asStringS(object) {
- if (typeof object == "string")
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "String"));
- },
- _asStringQ(object) {
- if (typeof object == "string")
- return object;
- if (object == null)
- return object;
- throw A.wrapException(A._TypeError__TypeError$forType(object, "String?"));
- },
- _rtiArrayToString(array, genericContext) {
- var s, sep, i;
- for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
- s += sep + A._rtiToString(array[i], genericContext);
- return s;
- },
- _recordRtiToString(recordType, genericContext) {
- var fieldCount, names, namesIndex, s, comma, i,
- partialShape = recordType._primary,
- fields = recordType._rest;
- if ("" === partialShape)
- return "(" + A._rtiArrayToString(fields, genericContext) + ")";
- fieldCount = fields.length;
- names = partialShape.split(",");
- namesIndex = names.length - fieldCount;
- for (s = "(", comma = "", i = 0; i < fieldCount; ++i, comma = ", ") {
- s += comma;
- if (namesIndex === 0)
- s += "{";
- s += A._rtiToString(fields[i], genericContext);
- if (namesIndex >= 0)
- s += " " + names[namesIndex];
- ++namesIndex;
- }
- return s + "})";
- },
- _functionRtiToString(functionType, genericContext, bounds) {
- var boundsLength, outerContextLength, offset, i, t1, t2, typeParametersText, typeSep, boundRti, kind, t3, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", ";
- if (bounds != null) {
- boundsLength = bounds.length;
- if (genericContext == null) {
- genericContext = A._setArrayType([], type$.JSArray_String);
- outerContextLength = null;
- } else
- outerContextLength = genericContext.length;
- offset = genericContext.length;
- for (i = boundsLength; i > 0; --i)
- genericContext.push("T" + (offset + i));
- for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
- typeParametersText = B.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
- boundRti = bounds[i];
- kind = boundRti._kind;
- if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1))
- t3 = boundRti === t2;
- else
- t3 = true;
- if (!t3)
- typeParametersText += " extends " + A._rtiToString(boundRti, genericContext);
- }
- typeParametersText += ">";
- } else {
- typeParametersText = "";
- outerContextLength = null;
- }
- t1 = functionType._primary;
- parameters = functionType._rest;
- requiredPositional = parameters._requiredPositional;
- requiredPositionalLength = requiredPositional.length;
- optionalPositional = parameters._optionalPositional;
- optionalPositionalLength = optionalPositional.length;
- named = parameters._named;
- namedLength = named.length;
- returnTypeText = A._rtiToString(t1, genericContext);
- for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
- argumentsText += sep + A._rtiToString(requiredPositional[i], genericContext);
- if (optionalPositionalLength > 0) {
- argumentsText += sep + "[";
- for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
- argumentsText += sep + A._rtiToString(optionalPositional[i], genericContext);
- argumentsText += "]";
- }
- if (namedLength > 0) {
- argumentsText += sep + "{";
- for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) {
- argumentsText += sep;
- if (named[i + 1])
- argumentsText += "required ";
- argumentsText += A._rtiToString(named[i + 2], genericContext) + " " + named[i];
- }
- argumentsText += "}";
- }
- if (outerContextLength != null) {
- genericContext.toString;
- genericContext.length = outerContextLength;
- }
- return typeParametersText + "(" + argumentsText + ") => " + returnTypeText;
- },
- _rtiToString(rti, genericContext) {
- var questionArgument, s, argumentKind, $name, $arguments, t1,
- kind = rti._kind;
- if (kind === 5)
- return "erased";
- if (kind === 2)
- return "dynamic";
- if (kind === 3)
- return "void";
- if (kind === 1)
- return "Never";
- if (kind === 4)
- return "any";
- if (kind === 6)
- return A._rtiToString(rti._primary, genericContext);
- if (kind === 7) {
- questionArgument = rti._primary;
- s = A._rtiToString(questionArgument, genericContext);
- argumentKind = questionArgument._kind;
- return (argumentKind === 12 || argumentKind === 13 ? "(" + s + ")" : s) + "?";
- }
- if (kind === 8)
- return "FutureOr<" + A._rtiToString(rti._primary, genericContext) + ">";
- if (kind === 9) {
- $name = A._unminifyOrTag(rti._primary);
- $arguments = rti._rest;
- return $arguments.length > 0 ? $name + ("<" + A._rtiArrayToString($arguments, genericContext) + ">") : $name;
- }
- if (kind === 11)
- return A._recordRtiToString(rti, genericContext);
- if (kind === 12)
- return A._functionRtiToString(rti, genericContext, null);
- if (kind === 13)
- return A._functionRtiToString(rti._primary, genericContext, rti._rest);
- if (kind === 14) {
- t1 = rti._primary;
- return genericContext[genericContext.length - 1 - t1];
- }
- return "?";
- },
- _unminifyOrTag(rawClassName) {
- var preserved = init.mangledGlobalNames[rawClassName];
- if (preserved != null)
- return preserved;
- return rawClassName;
- },
- _Universe_findRule(universe, targetType) {
- var rule = universe.tR[targetType];
- for (; typeof rule == "string";)
- rule = universe.tR[rule];
- return rule;
- },
- _Universe_findErasedType(universe, cls) {
- var $length, erased, $arguments, i, $interface,
- t1 = universe.eT,
- probe = t1[cls];
- if (probe == null)
- return A._Universe_eval(universe, cls, false);
- else if (typeof probe == "number") {
- $length = probe;
- erased = A._Universe__lookupTerminalRti(universe, 5, "#");
- $arguments = A._Utils_newArrayOrEmpty($length);
- for (i = 0; i < $length; ++i)
- $arguments[i] = erased;
- $interface = A._Universe__lookupInterfaceRti(universe, cls, $arguments);
- t1[cls] = $interface;
- return $interface;
- } else
- return probe;
- },
- _Universe_addRules(universe, rules) {
- return A._Utils_objectAssign(universe.tR, rules);
- },
- _Universe_addErasedTypes(universe, types) {
- return A._Utils_objectAssign(universe.eT, types);
- },
- _Universe_eval(universe, recipe, normalize) {
- var rti,
- t1 = universe.eC,
- probe = t1.get(recipe);
- if (probe != null)
- return probe;
- rti = A._Parser_parse(A._Parser_create(universe, null, recipe, normalize));
- t1.set(recipe, rti);
- return rti;
- },
- _Universe_evalInEnvironment(universe, environment, recipe) {
- var probe, rti,
- cache = environment._evalCache;
- if (cache == null)
- cache = environment._evalCache = new Map();
- probe = cache.get(recipe);
- if (probe != null)
- return probe;
- rti = A._Parser_parse(A._Parser_create(universe, environment, recipe, true));
- cache.set(recipe, rti);
- return rti;
- },
- _Universe_bind(universe, environment, argumentsRti) {
- var argumentsRecipe, probe, rti,
- cache = environment._bindCache;
- if (cache == null)
- cache = environment._bindCache = new Map();
- argumentsRecipe = argumentsRti._canonicalRecipe;
- probe = cache.get(argumentsRecipe);
- if (probe != null)
- return probe;
- rti = A._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
- cache.set(argumentsRecipe, rti);
- return rti;
- },
- _Universe__installTypeTests(universe, rti) {
- rti._as = A._installSpecializedAsCheck;
- rti._is = A._installSpecializedIsTest;
- return rti;
- },
- _Universe__lookupTerminalRti(universe, kind, key) {
- var rti, t1,
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new A.Rti(null, null);
- rti._kind = kind;
- rti._canonicalRecipe = key;
- t1 = A._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__lookupStarRti(universe, baseType, normalize) {
- var t1,
- key = baseType._canonicalRecipe + "*",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = A._Universe__createStarRti(universe, baseType, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createStarRti(universe, baseType, key, normalize) {
- var baseKind, t1, rti;
- if (normalize) {
- baseKind = baseType._kind;
- if (!A.isSoundTopType(baseType))
- t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6;
- else
- t1 = true;
- if (t1)
- return baseType;
- }
- rti = new A.Rti(null, null);
- rti._kind = 6;
- rti._primary = baseType;
- rti._canonicalRecipe = key;
- return A._Universe__installTypeTests(universe, rti);
- },
- _Universe__lookupQuestionRti(universe, baseType, normalize) {
- var t1,
- key = baseType._canonicalRecipe + "?",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = A._Universe__createQuestionRti(universe, baseType, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createQuestionRti(universe, baseType, key, normalize) {
- var baseKind, t1, starArgument, rti;
- if (normalize) {
- baseKind = baseType._kind;
- if (!A.isSoundTopType(baseType))
- if (!(baseType === type$.Null || baseType === type$.JSNull))
- if (baseKind !== 7)
- t1 = baseKind === 8 && A.isNullable(baseType._primary);
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1)
- return baseType;
- else if (baseKind === 1 || baseType === type$.legacy_Never)
- return type$.Null;
- else if (baseKind === 6) {
- starArgument = baseType._primary;
- if (starArgument._kind === 8 && A.isNullable(starArgument._primary))
- return starArgument;
- else
- return A.Rti__getQuestionFromStar(universe, baseType);
- }
- }
- rti = new A.Rti(null, null);
- rti._kind = 7;
- rti._primary = baseType;
- rti._canonicalRecipe = key;
- return A._Universe__installTypeTests(universe, rti);
- },
- _Universe__lookupFutureOrRti(universe, baseType, normalize) {
- var t1,
- key = baseType._canonicalRecipe + "/",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = A._Universe__createFutureOrRti(universe, baseType, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createFutureOrRti(universe, baseType, key, normalize) {
- var t1, rti;
- if (normalize) {
- t1 = baseType._kind;
- if (A.isSoundTopType(baseType) || baseType === type$.Object || baseType === type$.legacy_Object)
- return baseType;
- else if (t1 === 1)
- return A._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
- else if (baseType === type$.Null || baseType === type$.JSNull)
- return type$.nullable_Future_Null;
- }
- rti = new A.Rti(null, null);
- rti._kind = 8;
- rti._primary = baseType;
- rti._canonicalRecipe = key;
- return A._Universe__installTypeTests(universe, rti);
- },
- _Universe__lookupGenericFunctionParameterRti(universe, index) {
- var rti, t1,
- key = "" + index + "^",
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new A.Rti(null, null);
- rti._kind = 14;
- rti._primary = index;
- rti._canonicalRecipe = key;
- t1 = A._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__canonicalRecipeJoin($arguments) {
- var s, sep, i,
- $length = $arguments.length;
- for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
- s += sep + $arguments[i]._canonicalRecipe;
- return s;
- },
- _Universe__canonicalRecipeJoinNamed($arguments) {
- var s, sep, i, t1, nameSep,
- $length = $arguments.length;
- for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") {
- t1 = $arguments[i];
- nameSep = $arguments[i + 1] ? "!" : ":";
- s += sep + t1 + nameSep + $arguments[i + 2]._canonicalRecipe;
- }
- return s;
- },
- _Universe__lookupInterfaceRti(universe, $name, $arguments) {
- var probe, rti, t1,
- s = $name;
- if ($arguments.length > 0)
- s += "<" + A._Universe__canonicalRecipeJoin($arguments) + ">";
- probe = universe.eC.get(s);
- if (probe != null)
- return probe;
- rti = new A.Rti(null, null);
- rti._kind = 9;
- rti._primary = $name;
- rti._rest = $arguments;
- if ($arguments.length > 0)
- rti._precomputed1 = $arguments[0];
- rti._canonicalRecipe = s;
- t1 = A._Universe__installTypeTests(universe, rti);
- universe.eC.set(s, t1);
- return t1;
- },
- _Universe__lookupBindingRti(universe, base, $arguments) {
- var newBase, newArguments, key, probe, rti, t1;
- if (base._kind === 10) {
- newBase = base._primary;
- newArguments = base._rest.concat($arguments);
- } else {
- newArguments = $arguments;
- newBase = base;
- }
- key = newBase._canonicalRecipe + (";<" + A._Universe__canonicalRecipeJoin(newArguments) + ">");
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new A.Rti(null, null);
- rti._kind = 10;
- rti._primary = newBase;
- rti._rest = newArguments;
- rti._canonicalRecipe = key;
- t1 = A._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__lookupRecordRti(universe, partialShapeTag, fields) {
- var rti, t1,
- key = "+" + (partialShapeTag + "(" + A._Universe__canonicalRecipeJoin(fields) + ")"),
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new A.Rti(null, null);
- rti._kind = 11;
- rti._primary = partialShapeTag;
- rti._rest = fields;
- rti._canonicalRecipe = key;
- t1 = A._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__lookupFunctionRti(universe, returnType, parameters) {
- var sep, key, probe, rti, t1,
- s = returnType._canonicalRecipe,
- requiredPositional = parameters._requiredPositional,
- requiredPositionalLength = requiredPositional.length,
- optionalPositional = parameters._optionalPositional,
- optionalPositionalLength = optionalPositional.length,
- named = parameters._named,
- namedLength = named.length,
- recipe = "(" + A._Universe__canonicalRecipeJoin(requiredPositional);
- if (optionalPositionalLength > 0) {
- sep = requiredPositionalLength > 0 ? "," : "";
- recipe += sep + "[" + A._Universe__canonicalRecipeJoin(optionalPositional) + "]";
- }
- if (namedLength > 0) {
- sep = requiredPositionalLength > 0 ? "," : "";
- recipe += sep + "{" + A._Universe__canonicalRecipeJoinNamed(named) + "}";
- }
- key = s + (recipe + ")");
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- rti = new A.Rti(null, null);
- rti._kind = 12;
- rti._primary = returnType;
- rti._rest = parameters;
- rti._canonicalRecipe = key;
- t1 = A._Universe__installTypeTests(universe, rti);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__lookupGenericFunctionRti(universe, baseFunctionType, bounds, normalize) {
- var t1,
- key = baseFunctionType._canonicalRecipe + ("<" + A._Universe__canonicalRecipeJoin(bounds) + ">"),
- probe = universe.eC.get(key);
- if (probe != null)
- return probe;
- t1 = A._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
- universe.eC.set(key, t1);
- return t1;
- },
- _Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize) {
- var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
- if (normalize) {
- $length = bounds.length;
- typeArguments = A._Utils_newArrayOrEmpty($length);
- for (count = 0, i = 0; i < $length; ++i) {
- bound = bounds[i];
- if (bound._kind === 1) {
- typeArguments[i] = bound;
- ++count;
- }
- }
- if (count > 0) {
- substitutedBase = A._substitute(universe, baseFunctionType, typeArguments, 0);
- substitutedBounds = A._substituteArray(universe, bounds, typeArguments, 0);
- return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
- }
- }
- rti = new A.Rti(null, null);
- rti._kind = 13;
- rti._primary = baseFunctionType;
- rti._rest = bounds;
- rti._canonicalRecipe = key;
- return A._Universe__installTypeTests(universe, rti);
- },
- _Parser_create(universe, environment, recipe, normalize) {
- return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
- },
- _Parser_parse(parser) {
- var t2, i, ch, t3, array, end, item,
- source = parser.r,
- t1 = parser.s;
- for (t2 = source.length, i = 0; i < t2;) {
- ch = source.charCodeAt(i);
- if (ch >= 48 && ch <= 57)
- i = A._Parser_handleDigit(i + 1, ch, source, t1);
- else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124)
- i = A._Parser_handleIdentifier(parser, i, source, t1, false);
- else if (ch === 46)
- i = A._Parser_handleIdentifier(parser, i, source, t1, true);
- else {
- ++i;
- switch (ch) {
- case 44:
- break;
- case 58:
- t1.push(false);
- break;
- case 33:
- t1.push(true);
- break;
- case 59:
- t1.push(A._Parser_toType(parser.u, parser.e, t1.pop()));
- break;
- case 94:
- t1.push(A._Universe__lookupGenericFunctionParameterRti(parser.u, t1.pop()));
- break;
- case 35:
- t1.push(A._Universe__lookupTerminalRti(parser.u, 5, "#"));
- break;
- case 64:
- t1.push(A._Universe__lookupTerminalRti(parser.u, 2, "@"));
- break;
- case 126:
- t1.push(A._Universe__lookupTerminalRti(parser.u, 3, "~"));
- break;
- case 60:
- t1.push(parser.p);
- parser.p = t1.length;
- break;
- case 62:
- A._Parser_handleTypeArguments(parser, t1);
- break;
- case 38:
- A._Parser_handleExtendedOperations(parser, t1);
- break;
- case 42:
- t3 = parser.u;
- t1.push(A._Universe__lookupStarRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
- break;
- case 63:
- t3 = parser.u;
- t1.push(A._Universe__lookupQuestionRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
- break;
- case 47:
- t3 = parser.u;
- t1.push(A._Universe__lookupFutureOrRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
- break;
- case 40:
- t1.push(-3);
- t1.push(parser.p);
- parser.p = t1.length;
- break;
- case 41:
- A._Parser_handleArguments(parser, t1);
- break;
- case 91:
- t1.push(parser.p);
- parser.p = t1.length;
- break;
- case 93:
- array = t1.splice(parser.p);
- A._Parser_toTypes(parser.u, parser.e, array);
- parser.p = t1.pop();
- t1.push(array);
- t1.push(-1);
- break;
- case 123:
- t1.push(parser.p);
- parser.p = t1.length;
- break;
- case 125:
- array = t1.splice(parser.p);
- A._Parser_toTypesNamed(parser.u, parser.e, array);
- parser.p = t1.pop();
- t1.push(array);
- t1.push(-2);
- break;
- case 43:
- end = source.indexOf("(", i);
- t1.push(source.substring(i, end));
- t1.push(-4);
- t1.push(parser.p);
- parser.p = t1.length;
- i = end + 1;
- break;
- default:
- throw "Bad character " + ch;
- }
- }
- }
- item = t1.pop();
- return A._Parser_toType(parser.u, parser.e, item);
- },
- _Parser_handleDigit(i, digit, source, stack) {
- var t1, ch,
- value = digit - 48;
- for (t1 = source.length; i < t1; ++i) {
- ch = source.charCodeAt(i);
- if (!(ch >= 48 && ch <= 57))
- break;
- value = value * 10 + (ch - 48);
- }
- stack.push(value);
- return i;
- },
- _Parser_handleIdentifier(parser, start, source, stack, hasPeriod) {
- var t1, ch, t2, string, environment, recipe,
- i = start + 1;
- for (t1 = source.length; i < t1; ++i) {
- ch = source.charCodeAt(i);
- if (ch === 46) {
- if (hasPeriod)
- break;
- hasPeriod = true;
- } else {
- if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124))
- t2 = ch >= 48 && ch <= 57;
- else
- t2 = true;
- if (!t2)
- break;
- }
- }
- string = source.substring(start, i);
- if (hasPeriod) {
- t1 = parser.u;
- environment = parser.e;
- if (environment._kind === 10)
- environment = environment._primary;
- recipe = A._Universe_findRule(t1, environment._primary)[string];
- if (recipe == null)
- A.throwExpression('No "' + string + '" in "' + A.Rti__getCanonicalRecipe(environment) + '"');
- stack.push(A._Universe_evalInEnvironment(t1, environment, recipe));
- } else
- stack.push(string);
- return i;
- },
- _Parser_handleTypeArguments(parser, stack) {
- var base,
- t1 = parser.u,
- $arguments = A._Parser_collectArray(parser, stack),
- head = stack.pop();
- if (typeof head == "string")
- stack.push(A._Universe__lookupInterfaceRti(t1, head, $arguments));
- else {
- base = A._Parser_toType(t1, parser.e, head);
- switch (base._kind) {
- case 12:
- stack.push(A._Universe__lookupGenericFunctionRti(t1, base, $arguments, parser.n));
- break;
- default:
- stack.push(A._Universe__lookupBindingRti(t1, base, $arguments));
- break;
- }
- }
- },
- _Parser_handleArguments(parser, stack) {
- var optionalPositional, named, requiredPositional, returnType, parameters, _null = null,
- t1 = parser.u,
- head = stack.pop();
- if (typeof head == "number")
- switch (head) {
- case -1:
- optionalPositional = stack.pop();
- named = _null;
- break;
- case -2:
- named = stack.pop();
- optionalPositional = _null;
- break;
- default:
- stack.push(head);
- named = _null;
- optionalPositional = named;
- break;
- }
- else {
- stack.push(head);
- named = _null;
- optionalPositional = named;
- }
- requiredPositional = A._Parser_collectArray(parser, stack);
- head = stack.pop();
- switch (head) {
- case -3:
- head = stack.pop();
- if (optionalPositional == null)
- optionalPositional = t1.sEA;
- if (named == null)
- named = t1.sEA;
- returnType = A._Parser_toType(t1, parser.e, head);
- parameters = new A._FunctionParameters();
- parameters._requiredPositional = requiredPositional;
- parameters._optionalPositional = optionalPositional;
- parameters._named = named;
- stack.push(A._Universe__lookupFunctionRti(t1, returnType, parameters));
- return;
- case -4:
- stack.push(A._Universe__lookupRecordRti(t1, stack.pop(), requiredPositional));
- return;
- default:
- throw A.wrapException(A.AssertionError$("Unexpected state under `()`: " + A.S(head)));
- }
- },
- _Parser_handleExtendedOperations(parser, stack) {
- var $top = stack.pop();
- if (0 === $top) {
- stack.push(A._Universe__lookupTerminalRti(parser.u, 1, "0&"));
- return;
- }
- if (1 === $top) {
- stack.push(A._Universe__lookupTerminalRti(parser.u, 4, "1&"));
- return;
- }
- throw A.wrapException(A.AssertionError$("Unexpected extended operation " + A.S($top)));
- },
- _Parser_collectArray(parser, stack) {
- var array = stack.splice(parser.p);
- A._Parser_toTypes(parser.u, parser.e, array);
- parser.p = stack.pop();
- return array;
- },
- _Parser_toType(universe, environment, item) {
- if (typeof item == "string")
- return A._Universe__lookupInterfaceRti(universe, item, universe.sEA);
- else if (typeof item == "number") {
- environment.toString;
- return A._Parser_indexToType(universe, environment, item);
- } else
- return item;
- },
- _Parser_toTypes(universe, environment, items) {
- var i,
- $length = items.length;
- for (i = 0; i < $length; ++i)
- items[i] = A._Parser_toType(universe, environment, items[i]);
- },
- _Parser_toTypesNamed(universe, environment, items) {
- var i,
- $length = items.length;
- for (i = 2; i < $length; i += 3)
- items[i] = A._Parser_toType(universe, environment, items[i]);
- },
- _Parser_indexToType(universe, environment, index) {
- var typeArguments, len,
- kind = environment._kind;
- if (kind === 10) {
- if (index === 0)
- return environment._primary;
- typeArguments = environment._rest;
- len = typeArguments.length;
- if (index <= len)
- return typeArguments[index - 1];
- index -= len;
- environment = environment._primary;
- kind = environment._kind;
- } else if (index === 0)
- return environment;
- if (kind !== 9)
- throw A.wrapException(A.AssertionError$("Indexed base must be an interface type"));
- typeArguments = environment._rest;
- if (index <= typeArguments.length)
- return typeArguments[index - 1];
- throw A.wrapException(A.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
- },
- isSubtype(universe, s, t) {
- var result,
- sCache = s._isSubtypeCache;
- if (sCache == null)
- sCache = s._isSubtypeCache = new Map();
- result = sCache.get(t);
- if (result == null) {
- result = A._isSubtype(universe, s, null, t, null, false) ? 1 : 0;
- sCache.set(t, result);
- }
- if (0 === result)
- return false;
- if (1 === result)
- return true;
- return true;
- },
- _isSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
- var t1, sKind, leftTypeVariable, tKind, t2, sBounds, tBounds, sLength, i, sBound, tBound;
- if (s === t)
- return true;
- if (!A.isSoundTopType(t))
- t1 = t === type$.legacy_Object;
- else
- t1 = true;
- if (t1)
- return true;
- sKind = s._kind;
- if (sKind === 4)
- return true;
- if (A.isSoundTopType(s))
- return false;
- t1 = s._kind;
- if (t1 === 1)
- return true;
- leftTypeVariable = sKind === 14;
- if (leftTypeVariable)
- if (A._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv, false))
- return true;
- tKind = t._kind;
- t1 = s === type$.Null || s === type$.JSNull;
- if (t1) {
- if (tKind === 8)
- return A._isSubtype(universe, s, sEnv, t._primary, tEnv, false);
- return t === type$.Null || t === type$.JSNull || tKind === 7 || tKind === 6;
- }
- if (t === type$.Object) {
- if (sKind === 8)
- return A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
- if (sKind === 6)
- return A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
- return sKind !== 7;
- }
- if (sKind === 6)
- return A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
- if (tKind === 6) {
- t1 = A.Rti__getQuestionFromStar(universe, t);
- return A._isSubtype(universe, s, sEnv, t1, tEnv, false);
- }
- if (sKind === 8) {
- if (!A._isSubtype(universe, s._primary, sEnv, t, tEnv, false))
- return false;
- return A._isSubtype(universe, A.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv, false);
- }
- if (sKind === 7) {
- t1 = A._isSubtype(universe, type$.Null, sEnv, t, tEnv, false);
- return t1 && A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
- }
- if (tKind === 8) {
- if (A._isSubtype(universe, s, sEnv, t._primary, tEnv, false))
- return true;
- return A._isSubtype(universe, s, sEnv, A.Rti__getFutureFromFutureOr(universe, t), tEnv, false);
- }
- if (tKind === 7) {
- t1 = A._isSubtype(universe, s, sEnv, type$.Null, tEnv, false);
- return t1 || A._isSubtype(universe, s, sEnv, t._primary, tEnv, false);
- }
- if (leftTypeVariable)
- return false;
- t1 = sKind !== 12;
- if ((!t1 || sKind === 13) && t === type$.Function)
- return true;
- t2 = sKind === 11;
- if (t2 && t === type$.Record)
- return true;
- if (tKind === 13) {
- if (s === type$.JavaScriptFunction)
- return true;
- if (sKind !== 13)
- return false;
- sBounds = s._rest;
- tBounds = t._rest;
- sLength = sBounds.length;
- if (sLength !== tBounds.length)
- return false;
- sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
- tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
- for (i = 0; i < sLength; ++i) {
- sBound = sBounds[i];
- tBound = tBounds[i];
- if (!A._isSubtype(universe, sBound, sEnv, tBound, tEnv, false) || !A._isSubtype(universe, tBound, tEnv, sBound, sEnv, false))
- return false;
- }
- return A._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv, false);
- }
- if (tKind === 12) {
- if (s === type$.JavaScriptFunction)
- return true;
- if (t1)
- return false;
- return A._isFunctionSubtype(universe, s, sEnv, t, tEnv, false);
- }
- if (sKind === 9) {
- if (tKind !== 9)
- return false;
- return A._isInterfaceSubtype(universe, s, sEnv, t, tEnv, false);
- }
- if (t2 && tKind === 11)
- return A._isRecordSubtype(universe, s, sEnv, t, tEnv, false);
- return false;
- },
- _isFunctionSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
- var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName, sIsRequired;
- if (!A._isSubtype(universe, s._primary, sEnv, t._primary, tEnv, false))
- return false;
- sParameters = s._rest;
- tParameters = t._rest;
- sRequiredPositional = sParameters._requiredPositional;
- tRequiredPositional = tParameters._requiredPositional;
- sRequiredPositionalLength = sRequiredPositional.length;
- tRequiredPositionalLength = tRequiredPositional.length;
- if (sRequiredPositionalLength > tRequiredPositionalLength)
- return false;
- requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
- sOptionalPositional = sParameters._optionalPositional;
- tOptionalPositional = tParameters._optionalPositional;
- sOptionalPositionalLength = sOptionalPositional.length;
- tOptionalPositionalLength = tOptionalPositional.length;
- if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
- return false;
- for (i = 0; i < sRequiredPositionalLength; ++i) {
- t1 = sRequiredPositional[i];
- if (!A._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv, false))
- return false;
- }
- for (i = 0; i < requiredPositionalDelta; ++i) {
- t1 = sOptionalPositional[i];
- if (!A._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv, false))
- return false;
- }
- for (i = 0; i < tOptionalPositionalLength; ++i) {
- t1 = sOptionalPositional[requiredPositionalDelta + i];
- if (!A._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv, false))
- return false;
- }
- sNamed = sParameters._named;
- tNamed = tParameters._named;
- sNamedLength = sNamed.length;
- tNamedLength = tNamed.length;
- for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) {
- tName = tNamed[tIndex];
- for (; true;) {
- if (sIndex >= sNamedLength)
- return false;
- sName = sNamed[sIndex];
- sIndex += 3;
- if (tName < sName)
- return false;
- sIsRequired = sNamed[sIndex - 2];
- if (sName < tName) {
- if (sIsRequired)
- return false;
- continue;
- }
- t1 = tNamed[tIndex + 1];
- if (sIsRequired && !t1)
- return false;
- t1 = sNamed[sIndex - 1];
- if (!A._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv, false))
- return false;
- break;
- }
- }
- for (; sIndex < sNamedLength;) {
- if (sNamed[sIndex + 1])
- return false;
- sIndex += 3;
- }
- return true;
- },
- _isInterfaceSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
- var rule, recipes, $length, supertypeArgs, i,
- sName = s._primary,
- tName = t._primary;
- for (; sName !== tName;) {
- rule = universe.tR[sName];
- if (rule == null)
- return false;
- if (typeof rule == "string") {
- sName = rule;
- continue;
- }
- recipes = rule[tName];
- if (recipes == null)
- return false;
- $length = recipes.length;
- supertypeArgs = $length > 0 ? new Array($length) : init.typeUniverse.sEA;
- for (i = 0; i < $length; ++i)
- supertypeArgs[i] = A._Universe_evalInEnvironment(universe, s, recipes[i]);
- return A._areArgumentsSubtypes(universe, supertypeArgs, null, sEnv, t._rest, tEnv, false);
- }
- return A._areArgumentsSubtypes(universe, s._rest, null, sEnv, t._rest, tEnv, false);
- },
- _areArgumentsSubtypes(universe, sArgs, sVariances, sEnv, tArgs, tEnv, isLegacy) {
- var i,
- $length = sArgs.length;
- for (i = 0; i < $length; ++i)
- if (!A._isSubtype(universe, sArgs[i], sEnv, tArgs[i], tEnv, false))
- return false;
- return true;
- },
- _isRecordSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
- var i,
- sFields = s._rest,
- tFields = t._rest,
- sCount = sFields.length;
- if (sCount !== tFields.length)
- return false;
- if (s._primary !== t._primary)
- return false;
- for (i = 0; i < sCount; ++i)
- if (!A._isSubtype(universe, sFields[i], sEnv, tFields[i], tEnv, false))
- return false;
- return true;
- },
- isNullable(t) {
- var t1,
- kind = t._kind;
- if (!(t === type$.Null || t === type$.JSNull))
- if (!A.isSoundTopType(t))
- if (kind !== 7)
- if (!(kind === 6 && A.isNullable(t._primary)))
- t1 = kind === 8 && A.isNullable(t._primary);
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- isDefinitelyTopType(t) {
- var t1;
- if (!A.isSoundTopType(t))
- t1 = t === type$.legacy_Object;
- else
- t1 = true;
- return t1;
- },
- isSoundTopType(t) {
- var kind = t._kind;
- return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object;
- },
- _Utils_objectAssign(o, other) {
- var i, key,
- keys = Object.keys(other),
- $length = keys.length;
- for (i = 0; i < $length; ++i) {
- key = keys[i];
- o[key] = other[key];
- }
- },
- _Utils_newArrayOrEmpty($length) {
- return $length > 0 ? new Array($length) : init.typeUniverse.sEA;
- },
- Rti: function Rti(t0, t1) {
- var _ = this;
- _._as = t0;
- _._is = t1;
- _._cachedRuntimeType = _._specializedTestResource = _._isSubtypeCache = _._precomputed1 = null;
- _._kind = 0;
- _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
- },
- _FunctionParameters: function _FunctionParameters() {
- this._named = this._optionalPositional = this._requiredPositional = null;
- },
- _Type: function _Type(t0) {
- this._rti = t0;
- },
- _Error: function _Error() {
- },
- _TypeError: function _TypeError(t0) {
- this.__rti$_message = t0;
- },
- _AsyncRun__initializeScheduleImmediate() {
- var div, span, t1 = {};
- if (self.scheduleImmediate != null)
- return A.async__AsyncRun__scheduleImmediateJsOverride$closure();
- if (self.MutationObserver != null && self.document != null) {
- div = self.document.createElement("div");
- span = self.document.createElement("span");
- t1.storedCallback = null;
- new self.MutationObserver(A.convertDartClosureToJS(new A._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
- return new A._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
- } else if (self.setImmediate != null)
- return A.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
- return A.async__AsyncRun__scheduleImmediateWithTimer$closure();
- },
- _AsyncRun__scheduleImmediateJsOverride(callback) {
- self.scheduleImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
- },
- _AsyncRun__scheduleImmediateWithSetImmediate(callback) {
- self.setImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
- },
- _AsyncRun__scheduleImmediateWithTimer(callback) {
- A.Timer__createTimer(B.Duration_0, callback);
- },
- Timer__createTimer(duration, callback) {
- var milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000);
- return A._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
- },
- _TimerImpl$(milliseconds, callback) {
- var t1 = new A._TimerImpl(true);
- t1._TimerImpl$2(milliseconds, callback);
- return t1;
- },
- _TimerImpl$periodic(milliseconds, callback) {
- var t1 = new A._TimerImpl(false);
- t1._TimerImpl$periodic$2(milliseconds, callback);
- return t1;
- },
- _makeAsyncAwaitCompleter($T) {
- return new A._AsyncAwaitCompleter(new A._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
- },
- _asyncStartSync(bodyFunction, completer) {
- bodyFunction.call$2(0, null);
- completer.isSync = true;
- return completer._future;
- },
- _asyncAwait(object, bodyFunction) {
- A._awaitOnObject(object, bodyFunction);
- },
- _asyncReturn(object, completer) {
- completer.complete$1(object);
- },
- _asyncRethrow(object, completer) {
- completer.completeError$2(A.unwrapException(object), A.getTraceFromException(object));
- },
- _awaitOnObject(object, bodyFunction) {
- var t1, future,
- thenCallback = new A._awaitOnObject_closure(bodyFunction),
- errorCallback = new A._awaitOnObject_closure0(bodyFunction);
- if (object instanceof A._Future)
- object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
- else {
- t1 = type$.dynamic;
- if (object instanceof A._Future)
- object.then$1$2$onError(0, thenCallback, errorCallback, t1);
- else {
- future = new A._Future($.Zone__current, type$._Future_dynamic);
- future._state = 8;
- future._resultOrListeners = object;
- future._thenAwait$1$2(thenCallback, errorCallback, t1);
- }
- }
- },
- _wrapJsFunctionForAsync($function) {
- var $protected = function(fn, ERROR) {
- return function(errorCode, result) {
- while (true) {
- try {
- fn(errorCode, result);
- break;
- } catch (error) {
- result = error;
- errorCode = ERROR;
- }
- }
- };
- }($function, 1);
- return $.Zone__current.registerBinaryCallback$3$1(new A._wrapJsFunctionForAsync_closure($protected), type$.void, type$.int, type$.dynamic);
- },
- _SyncStarIterator__terminatedBody(_1, _2, _3) {
- return 0;
- },
- AsyncError$(error, stackTrace) {
- var t1 = A.checkNotNullable(error, "error", type$.Object);
- return new A.AsyncError(t1, stackTrace == null ? A.AsyncError_defaultStackTrace(error) : stackTrace);
- },
- AsyncError_defaultStackTrace(error) {
- var stackTrace;
- if (type$.Error._is(error)) {
- stackTrace = error.get$stackTrace();
- if (stackTrace != null)
- return stackTrace;
- }
- return B._StringStackTrace_uwd;
- },
- Future_Future$value(value, $T) {
- var t1;
- $T._as(value);
- t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
- t1._asyncComplete$1(value);
- return t1;
- },
- Future_Future$error(error, stackTrace, $T) {
- var t1, replacement;
- A.checkNotNullable(error, "error", type$.Object);
- t1 = $.Zone__current;
- if (t1 !== B.C__RootZone) {
- replacement = t1.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- stackTrace = replacement.stackTrace;
- }
- }
- if (stackTrace == null)
- stackTrace = A.AsyncError_defaultStackTrace(error);
- t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
- t1._asyncCompleteError$2(error, stackTrace);
- return t1;
- },
- Future_wait(futures, eagerError, $T) {
- var handleError, future, pos, e, st, t1, t2, exception, _box_0 = {}, cleanUp = null,
- _future = new A._Future($.Zone__current, $T._eval$1("_Future<List<0>>"));
- _box_0.values = null;
- _box_0.remaining = 0;
- _box_0.stackTrace = _box_0.error = null;
- handleError = new A.Future_wait_handleError(_box_0, cleanUp, eagerError, _future);
- try {
- for (t1 = J.get$iterator$ax(futures), t2 = type$.Null; t1.moveNext$0();) {
- future = t1.get$current(t1);
- pos = _box_0.remaining;
- J.then$1$2$onError$x(future, new A.Future_wait_closure(_box_0, pos, _future, $T, cleanUp, eagerError), handleError, t2);
- ++_box_0.remaining;
- }
- t1 = _box_0.remaining;
- if (t1 === 0) {
- t1 = _future;
- t1._completeWithValue$1(A._setArrayType([], $T._eval$1("JSArray<0>")));
- return t1;
- }
- _box_0.values = A.List_List$filled(t1, null, false, $T._eval$1("0?"));
- } catch (exception) {
- e = A.unwrapException(exception);
- st = A.getTraceFromException(exception);
- if (_box_0.remaining === 0 || eagerError)
- return A.Future_Future$error(e, st, $T._eval$1("List<0>"));
- else {
- _box_0.error = e;
- _box_0.stackTrace = st;
- }
- }
- return _future;
- },
- _Future$zoneValue(value, _zone, $T) {
- var t1 = new A._Future(_zone, $T._eval$1("_Future<0>"));
- t1._state = 8;
- t1._resultOrListeners = value;
- return t1;
- },
- _Future$value(value, $T) {
- var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
- t1._state = 8;
- t1._resultOrListeners = value;
- return t1;
- },
- _Future__chainCoreFutureSync(source, target) {
- var t1, listeners;
- for (; t1 = source._state, (t1 & 4) !== 0;)
- source = source._resultOrListeners;
- t1 |= target._state & 1;
- source._state = t1;
- if ((t1 & 24) !== 0) {
- listeners = target._removeListeners$0();
- target._cloneResult$1(source);
- A._Future__propagateToListeners(target, listeners);
- } else {
- listeners = target._resultOrListeners;
- target._setChained$1(source);
- source._prependListeners$1(listeners);
- }
- },
- _Future__chainCoreFutureAsync(source, target) {
- var t2, listeners, _box_0 = {},
- t1 = _box_0.source = source;
- for (; t2 = t1._state, (t2 & 4) !== 0;) {
- t1 = t1._resultOrListeners;
- _box_0.source = t1;
- }
- if ((t2 & 24) === 0) {
- listeners = target._resultOrListeners;
- target._setChained$1(t1);
- _box_0.source._prependListeners$1(listeners);
- return;
- }
- if ((t2 & 16) === 0 && target._resultOrListeners == null) {
- target._cloneResult$1(t1);
- return;
- }
- target._state ^= 2;
- target._zone.scheduleMicrotask$1(new A._Future__chainCoreFutureAsync_closure(_box_0, target));
- },
- _Future__propagateToListeners(source, listeners) {
- var _box_0, t2, t3, hasError, nextListener, nextListener0, sourceResult, t4, zone, oldZone, result, current, _box_1 = {},
- t1 = _box_1.source = source;
- for (; true;) {
- _box_0 = {};
- t2 = t1._state;
- t3 = (t2 & 16) === 0;
- hasError = !t3;
- if (listeners == null) {
- if (hasError && (t2 & 1) === 0) {
- t2 = t1._resultOrListeners;
- t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
- }
- return;
- }
- _box_0.listener = listeners;
- nextListener = listeners._nextListener;
- for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) {
- t1._nextListener = null;
- A._Future__propagateToListeners(_box_1.source, t1);
- _box_0.listener = nextListener;
- nextListener0 = nextListener._nextListener;
- }
- t2 = _box_1.source;
- sourceResult = t2._resultOrListeners;
- _box_0.listenerHasError = hasError;
- _box_0.listenerValueOrError = sourceResult;
- if (t3) {
- t4 = t1.state;
- t4 = (t4 & 1) !== 0 || (t4 & 15) === 8;
- } else
- t4 = true;
- if (t4) {
- zone = t1.result._zone;
- if (hasError) {
- t1 = t2._zone;
- t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
- } else
- t1 = false;
- if (t1) {
- t1 = _box_1.source;
- t2 = t1._resultOrListeners;
- t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
- return;
- }
- oldZone = $.Zone__current;
- if (oldZone !== zone)
- $.Zone__current = zone;
- else
- oldZone = null;
- t1 = _box_0.listener.state;
- if ((t1 & 15) === 8)
- new A._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0();
- else if (t3) {
- if ((t1 & 1) !== 0)
- new A._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0();
- } else if ((t1 & 2) !== 0)
- new A._Future__propagateToListeners_handleError(_box_1, _box_0).call$0();
- if (oldZone != null)
- $.Zone__current = oldZone;
- t1 = _box_0.listenerValueOrError;
- if (t1 instanceof A._Future) {
- t2 = _box_0.listener.$ti;
- t2 = t2._eval$1("Future<2>")._is(t1) || !t2._rest[1]._is(t1);
- } else
- t2 = false;
- if (t2) {
- result = _box_0.listener.result;
- if ((t1._state & 24) !== 0) {
- current = result._resultOrListeners;
- result._resultOrListeners = null;
- listeners = result._reverseListeners$1(current);
- result._state = t1._state & 30 | result._state & 1;
- result._resultOrListeners = t1._resultOrListeners;
- _box_1.source = t1;
- continue;
- } else
- A._Future__chainCoreFutureSync(t1, result);
- return;
- }
- }
- result = _box_0.listener.result;
- current = result._resultOrListeners;
- result._resultOrListeners = null;
- listeners = result._reverseListeners$1(current);
- t1 = _box_0.listenerHasError;
- t2 = _box_0.listenerValueOrError;
- if (!t1) {
- result._state = 8;
- result._resultOrListeners = t2;
- } else {
- result._state = result._state & 1 | 16;
- result._resultOrListeners = t2;
- }
- _box_1.source = result;
- t1 = result;
- }
- },
- _registerErrorHandler(errorHandler, zone) {
- if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
- return zone.registerBinaryCallback$3$1(errorHandler, type$.dynamic, type$.Object, type$.StackTrace);
- if (type$.dynamic_Function_Object._is(errorHandler))
- return zone.registerUnaryCallback$2$1(errorHandler, type$.dynamic, type$.Object);
- throw A.wrapException(A.ArgumentError$value(errorHandler, "onError", string$.Error_));
- },
- _microtaskLoop() {
- var entry, next;
- for (entry = $._nextCallback; entry != null; entry = $._nextCallback) {
- $._lastPriorityCallback = null;
- next = entry.next;
- $._nextCallback = next;
- if (next == null)
- $._lastCallback = null;
- entry.callback.call$0();
- }
- },
- _startMicrotaskLoop() {
- $._isInCallbackLoop = true;
- try {
- A._microtaskLoop();
- } finally {
- $._lastPriorityCallback = null;
- $._isInCallbackLoop = false;
- if ($._nextCallback != null)
- $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure());
- }
- },
- _scheduleAsyncCallback(callback) {
- var newEntry = new A._AsyncCallbackEntry(callback),
- lastCallback = $._lastCallback;
- if (lastCallback == null) {
- $._nextCallback = $._lastCallback = newEntry;
- if (!$._isInCallbackLoop)
- $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure());
- } else
- $._lastCallback = lastCallback.next = newEntry;
- },
- _schedulePriorityAsyncCallback(callback) {
- var entry, lastPriorityCallback, next,
- t1 = $._nextCallback;
- if (t1 == null) {
- A._scheduleAsyncCallback(callback);
- $._lastPriorityCallback = $._lastCallback;
- return;
- }
- entry = new A._AsyncCallbackEntry(callback);
- lastPriorityCallback = $._lastPriorityCallback;
- if (lastPriorityCallback == null) {
- entry.next = t1;
- $._nextCallback = $._lastPriorityCallback = entry;
- } else {
- next = lastPriorityCallback.next;
- entry.next = next;
- $._lastPriorityCallback = lastPriorityCallback.next = entry;
- if (next == null)
- $._lastCallback = entry;
- }
- },
- scheduleMicrotask(callback) {
- var t1, _null = null,
- currentZone = $.Zone__current;
- if (B.C__RootZone === currentZone) {
- A._rootScheduleMicrotask(_null, _null, B.C__RootZone, callback);
- return;
- }
- if (B.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
- t1 = B.C__RootZone.get$errorZone() === currentZone.get$errorZone();
- else
- t1 = false;
- if (t1) {
- A._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1$1(callback, type$.void));
- return;
- }
- t1 = $.Zone__current;
- t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
- },
- Stream_Stream$fromFuture(future, $T) {
- var _null = null,
- t1 = $T._eval$1("_SyncStreamController<0>"),
- controller = new A._SyncStreamController(_null, _null, _null, _null, t1);
- future.then$1$2$onError(0, new A.Stream_Stream$fromFuture_closure(controller, $T), new A.Stream_Stream$fromFuture_closure0(controller), type$.Null);
- return new A._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
- },
- StreamIterator_StreamIterator(stream) {
- return new A._StreamIterator(A.checkNotNullable(stream, "stream", type$.Object));
- },
- StreamController_StreamController(onCancel, onListen, onPause, onResume, sync, $T) {
- return sync ? new A._SyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new A._AsyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>"));
- },
- _runGuarded(notificationHandler) {
- var e, s, exception;
- if (notificationHandler == null)
- return;
- try {
- notificationHandler.call$0();
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- $.Zone__current.handleUncaughtError$2(e, s);
- }
- },
- _ControllerSubscription$(_controller, onData, onError, onDone, cancelOnError, $T) {
- var t1 = $.Zone__current,
- t2 = cancelOnError ? 1 : 0,
- t3 = onError != null ? 32 : 0,
- t4 = A._BufferingStreamSubscription__registerDataHandler(t1, onData, $T),
- t5 = A._BufferingStreamSubscription__registerErrorHandler(t1, onError),
- t6 = onDone == null ? A.async___nullDoneHandler$closure() : onDone;
- return new A._ControllerSubscription(_controller, t4, t5, t1.registerCallback$1$1(t6, type$.void), t1, t2 | t3, $T._eval$1("_ControllerSubscription<0>"));
- },
- _AddStreamState_makeErrorHandler(controller) {
- return new A._AddStreamState_makeErrorHandler_closure(controller);
- },
- _BufferingStreamSubscription__registerDataHandler(zone, handleData, $T) {
- var t1 = handleData == null ? A.async___nullDataHandler$closure() : handleData;
- return zone.registerUnaryCallback$2$1(t1, type$.void, $T);
- },
- _BufferingStreamSubscription__registerErrorHandler(zone, handleError) {
- if (handleError == null)
- handleError = A.async___nullErrorHandler$closure();
- if (type$.void_Function_Object_StackTrace._is(handleError))
- return zone.registerBinaryCallback$3$1(handleError, type$.dynamic, type$.Object, type$.StackTrace);
- if (type$.void_Function_Object._is(handleError))
- return zone.registerUnaryCallback$2$1(handleError, type$.dynamic, type$.Object);
- throw A.wrapException(A.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.", null));
- },
- _nullDataHandler(value) {
- },
- _nullErrorHandler(error, stackTrace) {
- $.Zone__current.handleUncaughtError$2(error, stackTrace);
- },
- _nullDoneHandler() {
- },
- Timer_Timer(duration, callback) {
- var t1 = $.Zone__current;
- if (t1 === B.C__RootZone)
- return t1.createTimer$2(duration, callback);
- return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
- },
- _rootHandleUncaughtError($self, $parent, zone, error, stackTrace) {
- A._rootHandleError(error, stackTrace);
- },
- _rootHandleError(error, stackTrace) {
- A._schedulePriorityAsyncCallback(new A._rootHandleError_closure(error, stackTrace));
- },
- _rootRun($self, $parent, zone, f) {
- var old,
- t1 = $.Zone__current;
- if (t1 === zone)
- return f.call$0();
- $.Zone__current = zone;
- old = t1;
- try {
- t1 = f.call$0();
- return t1;
- } finally {
- $.Zone__current = old;
- }
- },
- _rootRunUnary($self, $parent, zone, f, arg) {
- var old,
- t1 = $.Zone__current;
- if (t1 === zone)
- return f.call$1(arg);
- $.Zone__current = zone;
- old = t1;
- try {
- t1 = f.call$1(arg);
- return t1;
- } finally {
- $.Zone__current = old;
- }
- },
- _rootRunBinary($self, $parent, zone, f, arg1, arg2) {
- var old,
- t1 = $.Zone__current;
- if (t1 === zone)
- return f.call$2(arg1, arg2);
- $.Zone__current = zone;
- old = t1;
- try {
- t1 = f.call$2(arg1, arg2);
- return t1;
- } finally {
- $.Zone__current = old;
- }
- },
- _rootRegisterCallback($self, $parent, zone, f) {
- return f;
- },
- _rootRegisterUnaryCallback($self, $parent, zone, f) {
- return f;
- },
- _rootRegisterBinaryCallback($self, $parent, zone, f) {
- return f;
- },
- _rootErrorCallback($self, $parent, zone, error, stackTrace) {
- return null;
- },
- _rootScheduleMicrotask($self, $parent, zone, f) {
- var t1, t2;
- if (B.C__RootZone !== zone) {
- t1 = B.C__RootZone.get$errorZone();
- t2 = zone.get$errorZone();
- f = t1 !== t2 ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
- }
- A._scheduleAsyncCallback(f);
- },
- _rootCreateTimer($self, $parent, zone, duration, callback) {
- return A.Timer__createTimer(duration, B.C__RootZone !== zone ? zone.bindCallback$1$1(callback, type$.void) : callback);
- },
- _rootCreatePeriodicTimer($self, $parent, zone, duration, callback) {
- var milliseconds;
- if (B.C__RootZone !== zone)
- callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer);
- milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000);
- return A._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
- },
- _rootPrint($self, $parent, zone, line) {
- A.printString(line);
- },
- _printToZone(line) {
- $.Zone__current.print$1(line);
- },
- _rootFork($self, $parent, zone, specification, zoneValues) {
- var valueMap, t1, handleUncaughtError;
- $.printToZone = A.async___printToZone$closure();
- if (specification == null)
- specification = B._ZoneSpecification_48t;
- if (zoneValues == null)
- valueMap = zone.get$_async$_map();
- else {
- t1 = type$.nullable_Object;
- valueMap = A.HashMap_HashMap$from(zoneValues, t1, t1);
- }
- t1 = new A._CustomZone(zone.get$_run(), zone.get$_runUnary(), zone.get$_runBinary(), zone.get$_registerCallback(), zone.get$_registerUnaryCallback(), zone.get$_registerBinaryCallback(), zone.get$_errorCallback(), zone.get$_scheduleMicrotask(), zone.get$_createTimer(), zone.get$_createPeriodicTimer(), zone.get$_print(), zone.get$_fork(), zone.get$_handleUncaughtError(), zone, valueMap);
- handleUncaughtError = specification.handleUncaughtError;
- if (handleUncaughtError != null)
- t1._handleUncaughtError = new A._ZoneFunction(t1, handleUncaughtError);
- return t1;
- },
- runZoned(body, zoneValues, $R) {
- A.checkNotNullable(body, "body", $R._eval$1("0()"));
- return A._runZoned(body, zoneValues, null, $R);
- },
- _runZoned(body, zoneValues, specification, $R) {
- return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1$1(0, body, $R);
- },
- _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
- this._box_0 = t0;
- },
- _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.div = t1;
- this.span = t2;
- },
- _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
- this.callback = t0;
- },
- _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
- this.callback = t0;
- },
- _TimerImpl: function _TimerImpl(t0) {
- this._once = t0;
- this._handle = null;
- this._tick = 0;
- },
- _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
- this.$this = t0;
- this.callback = t1;
- },
- _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.milliseconds = t1;
- _.start = t2;
- _.callback = t3;
- },
- _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
- this._future = t0;
- this.isSync = false;
- this.$ti = t1;
- },
- _awaitOnObject_closure: function _awaitOnObject_closure(t0) {
- this.bodyFunction = t0;
- },
- _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
- this.bodyFunction = t0;
- },
- _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
- this.$protected = t0;
- },
- _SyncStarIterator: function _SyncStarIterator(t0) {
- var _ = this;
- _._body = t0;
- _._suspendedBodies = _._nestedIterator = _._datum = _._async$_current = null;
- },
- _SyncStarIterable: function _SyncStarIterable(t0, t1) {
- this._outerHelper = t0;
- this.$ti = t1;
- },
- AsyncError: function AsyncError(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- },
- Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.cleanUp = t1;
- _.eagerError = t2;
- _._future = t3;
- },
- Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.pos = t1;
- _._future = t2;
- _.T = t3;
- _.cleanUp = t4;
- _.eagerError = t5;
- },
- _Completer: function _Completer() {
- },
- _AsyncCompleter: function _AsyncCompleter(t0, t1) {
- this.future = t0;
- this.$ti = t1;
- },
- _SyncCompleter: function _SyncCompleter(t0, t1) {
- this.future = t0;
- this.$ti = t1;
- },
- _FutureListener: function _FutureListener(t0, t1, t2, t3, t4) {
- var _ = this;
- _._nextListener = null;
- _.result = t0;
- _.state = t1;
- _.callback = t2;
- _.errorCallback = t3;
- _.$ti = t4;
- },
- _Future: function _Future(t0, t1) {
- var _ = this;
- _._state = 0;
- _._zone = t0;
- _._resultOrListeners = null;
- _.$ti = t1;
- },
- _Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
- this.$this = t0;
- this.listener = t1;
- },
- _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
- this.$this = t0;
- },
- _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
- this.$this = t0;
- },
- _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
- this.$this = t0;
- this.e = t1;
- this.s = t2;
- },
- _Future__chainCoreFutureAsync_closure: function _Future__chainCoreFutureAsync_closure(t0, t1) {
- this._box_0 = t0;
- this.target = t1;
- },
- _Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
- this.$this = t0;
- this.error = t1;
- this.stackTrace = t2;
- },
- _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) {
- this._box_0 = t0;
- this._box_1 = t1;
- this.hasError = t2;
- },
- _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
- this.originalSource = t0;
- },
- _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) {
- this._box_0 = t0;
- this.sourceResult = t1;
- },
- _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) {
- this._box_1 = t0;
- this._box_0 = t1;
- },
- _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
- this.callback = t0;
- this.next = null;
- },
- Stream: function Stream() {
- },
- Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
- this.controller = t0;
- this.T = t1;
- },
- Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
- this.controller = t0;
- },
- Stream_length_closure: function Stream_length_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- Stream_length_closure0: function Stream_length_closure0(t0, t1) {
- this._box_0 = t0;
- this.future = t1;
- },
- _StreamController: function _StreamController() {
- },
- _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
- this.$this = t0;
- },
- _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
- this.$this = t0;
- },
- _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
- },
- _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
- },
- _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
- var _ = this;
- _._varData = null;
- _._state = 0;
- _._doneFuture = null;
- _.onListen = t0;
- _.onPause = t1;
- _.onResume = t2;
- _.onCancel = t3;
- _.$ti = t4;
- },
- _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
- var _ = this;
- _._varData = null;
- _._state = 0;
- _._doneFuture = null;
- _.onListen = t0;
- _.onPause = t1;
- _.onResume = t2;
- _.onCancel = t3;
- _.$ti = t4;
- },
- _ControllerStream: function _ControllerStream(t0, t1) {
- this._controller = t0;
- this.$ti = t1;
- },
- _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._controller = t0;
- _._onData = t1;
- _._onError = t2;
- _._onDone = t3;
- _._zone = t4;
- _._state = t5;
- _._pending = _._cancelFuture = null;
- _.$ti = t6;
- },
- _AddStreamState: function _AddStreamState() {
- },
- _AddStreamState_makeErrorHandler_closure: function _AddStreamState_makeErrorHandler_closure(t0) {
- this.controller = t0;
- },
- _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
- this.$this = t0;
- },
- _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
- this._varData = t0;
- this.addStreamFuture = t1;
- this.addSubscription = t2;
- },
- _BufferingStreamSubscription: function _BufferingStreamSubscription() {
- },
- _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
- this.$this = t0;
- this.error = t1;
- this.stackTrace = t2;
- },
- _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
- this.$this = t0;
- },
- _StreamImpl: function _StreamImpl() {
- },
- _DelayedEvent: function _DelayedEvent() {
- },
- _DelayedData: function _DelayedData(t0) {
- this.value = t0;
- this.next = null;
- },
- _DelayedError: function _DelayedError(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- this.next = null;
- },
- _DelayedDone: function _DelayedDone() {
- },
- _PendingEvents: function _PendingEvents() {
- this._state = 0;
- this.lastPendingEvent = this.firstPendingEvent = null;
- },
- _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
- this.$this = t0;
- this.dispatch = t1;
- },
- _StreamIterator: function _StreamIterator(t0) {
- this._subscription = null;
- this._stateData = t0;
- this._async$_hasValue = false;
- },
- _ForwardingStream: function _ForwardingStream() {
- },
- _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._stream = t0;
- _._subscription = null;
- _._onData = t1;
- _._onError = t2;
- _._onDone = t3;
- _._zone = t4;
- _._state = t5;
- _._pending = _._cancelFuture = null;
- _.$ti = t6;
- },
- _ExpandStream: function _ExpandStream(t0, t1, t2) {
- this._expand = t0;
- this._async$_source = t1;
- this.$ti = t2;
- },
- _ZoneFunction: function _ZoneFunction(t0, t1) {
- this.zone = t0;
- this.$function = t1;
- },
- _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
- var _ = this;
- _.handleUncaughtError = t0;
- _.run = t1;
- _.runUnary = t2;
- _.runBinary = t3;
- _.registerCallback = t4;
- _.registerUnaryCallback = t5;
- _.registerBinaryCallback = t6;
- _.errorCallback = t7;
- _.scheduleMicrotask = t8;
- _.createTimer = t9;
- _.createPeriodicTimer = t10;
- _.print = t11;
- _.fork = t12;
- },
- _ZoneDelegate: function _ZoneDelegate(t0) {
- this._delegationTarget = t0;
- },
- _Zone: function _Zone() {
- },
- _CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
- var _ = this;
- _._run = t0;
- _._runUnary = t1;
- _._runBinary = t2;
- _._registerCallback = t3;
- _._registerUnaryCallback = t4;
- _._registerBinaryCallback = t5;
- _._errorCallback = t6;
- _._scheduleMicrotask = t7;
- _._createTimer = t8;
- _._createPeriodicTimer = t9;
- _._print = t10;
- _._fork = t11;
- _._handleUncaughtError = t12;
- _._delegateCache = null;
- _.parent = t13;
- _._async$_map = t14;
- },
- _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
- this.$this = t0;
- this.registered = t1;
- this.R = t2;
- },
- _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.registered = t1;
- _.T = t2;
- _.R = t3;
- },
- _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
- this.$this = t0;
- this.registered = t1;
- },
- _rootHandleError_closure: function _rootHandleError_closure(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- },
- _RootZone: function _RootZone() {
- },
- _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
- this.$this = t0;
- this.f = t1;
- this.R = t2;
- },
- _RootZone_bindUnaryCallback_closure: function _RootZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.f = t1;
- _.T = t2;
- _.R = t3;
- },
- _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
- this.$this = t0;
- this.f = t1;
- },
- HashMap_HashMap($K, $V) {
- return new A._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
- },
- _HashMap__getTableEntry(table, key) {
- var entry = table[key];
- return entry === table ? null : entry;
- },
- _HashMap__setTableEntry(table, key, value) {
- if (value == null)
- table[key] = table;
- else
- table[key] = value;
- },
- _HashMap__newHashTable() {
- var table = Object.create(null);
- A._HashMap__setTableEntry(table, "<non-identifier-key>", table);
- delete table["<non-identifier-key>"];
- return table;
- },
- LinkedHashMap_LinkedHashMap(equals, hashCode, isValidKey, $K, $V) {
- if (isValidKey == null)
- if (hashCode == null) {
- if (equals == null)
- return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
- hashCode = A.collection___defaultHashCode$closure();
- } else {
- if (A.core__identityHashCode$closure() === hashCode && A.core__identical$closure() === equals)
- return new A.JsIdentityLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsIdentityLinkedHashMap<1,2>"));
- if (equals == null)
- equals = A.collection___defaultEquals$closure();
- }
- else {
- if (hashCode == null)
- hashCode = A.collection___defaultHashCode$closure();
- if (equals == null)
- equals = A.collection___defaultEquals$closure();
- }
- return A._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
- },
- LinkedHashMap_LinkedHashMap$_literal(keyValuePairs, $K, $V) {
- return A.fillLiteralMap(keyValuePairs, new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
- },
- LinkedHashMap_LinkedHashMap$_empty($K, $V) {
- return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
- },
- _LinkedCustomHashMap$(_equals, _hashCode, validKey, $K, $V) {
- var t1 = validKey != null ? validKey : new A._LinkedCustomHashMap_closure($K);
- return new A._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
- },
- LinkedHashSet_LinkedHashSet($E) {
- return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
- },
- LinkedHashSet_LinkedHashSet$_empty($E) {
- return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
- },
- LinkedHashSet_LinkedHashSet$_literal(values, $E) {
- return A.fillLiteralSet(values, new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
- },
- _LinkedHashSet__newHashTable() {
- var table = Object.create(null);
- table["<non-identifier-key>"] = table;
- delete table["<non-identifier-key>"];
- return table;
- },
- _LinkedHashSetIterator$(_set, _modifications, $E) {
- var t1 = new A._LinkedHashSetIterator(_set, _modifications, $E._eval$1("_LinkedHashSetIterator<0>"));
- t1._cell = _set._first;
- return t1;
- },
- UnmodifiableListView$(source, $E) {
- return new A.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
- },
- _defaultEquals(a, b) {
- return J.$eq$(a, b);
- },
- _defaultHashCode(a) {
- return J.get$hashCode$(a);
- },
- HashMap_HashMap$from(other, $K, $V) {
- var result = A.HashMap_HashMap($K, $V);
- other.forEach$1(0, new A.HashMap_HashMap$from_closure(result, $K, $V));
- return result;
- },
- LinkedHashMap_LinkedHashMap$from(other, $K, $V) {
- var result = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
- other.forEach$1(0, new A.LinkedHashMap_LinkedHashMap$from_closure(result, $K, $V));
- return result;
- },
- LinkedHashMap_LinkedHashMap$of(other, $K, $V) {
- var t1 = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
- t1.addAll$1(0, other);
- return t1;
- },
- LinkedHashSet_LinkedHashSet$from(elements, $E) {
- var t1, _i,
- result = A.LinkedHashSet_LinkedHashSet($E);
- for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i)
- result.add$1(0, $E._as(elements[_i]));
- return result;
- },
- LinkedHashSet_LinkedHashSet$of(elements, $E) {
- var t1 = A.LinkedHashSet_LinkedHashSet($E);
- t1.addAll$1(0, elements);
- return t1;
- },
- ListBase__compareAny(a, b) {
- var t1 = type$.Comparable_dynamic;
- return J.compareTo$1$ns(t1._as(a), t1._as(b));
- },
- MapBase_mapToString(m) {
- var result, t1 = {};
- if (A.isToStringVisiting(m))
- return "{...}";
- result = new A.StringBuffer("");
- try {
- $.toStringVisiting.push(m);
- result._contents += "{";
- t1.first = true;
- m.forEach$1(0, new A.MapBase_mapToString_closure(t1, result));
- result._contents += "}";
- } finally {
- $.toStringVisiting.pop();
- }
- t1 = result._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- MapBase__fillMapWithIterables(map, keys, values) {
- var keyIterator = keys.get$iterator(keys),
- valueIterator = values.get$iterator(values),
- hasNextKey = keyIterator.moveNext$0(),
- hasNextValue = valueIterator.moveNext$0();
- while (true) {
- if (!(hasNextKey && hasNextValue))
- break;
- map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
- hasNextKey = keyIterator.moveNext$0();
- hasNextValue = valueIterator.moveNext$0();
- }
- if (hasNextKey || hasNextValue)
- throw A.wrapException(A.ArgumentError$("Iterables do not have same length.", null));
- },
- ListQueue$($E) {
- return new A.ListQueue(A.List_List$filled(A.ListQueue__calculateCapacity(null), null, false, $E._eval$1("0?")), $E._eval$1("ListQueue<0>"));
- },
- ListQueue__calculateCapacity(initialCapacity) {
- return 8;
- },
- ListQueue__nextPowerOf2(number) {
- var nextNumber;
- number = (number << 1 >>> 0) - 1;
- for (; true; number = nextNumber) {
- nextNumber = (number & number - 1) >>> 0;
- if (nextNumber === 0)
- return number;
- }
- },
- _ListQueueIterator$(queue, $E) {
- return new A._ListQueueIterator(queue, queue._tail, queue._modificationCount, queue._head, $E._eval$1("_ListQueueIterator<0>"));
- },
- _UnmodifiableSetMixin__throwUnmodifiable() {
- throw A.wrapException(A.UnsupportedError$("Cannot change an unmodifiable set"));
- },
- _HashMap: function _HashMap(t0) {
- var _ = this;
- _._collection$_length = 0;
- _._collection$_keys = _._collection$_rest = _._nums = _._strings = null;
- _.$ti = t0;
- },
- _HashMap_values_closure: function _HashMap_values_closure(t0) {
- this.$this = t0;
- },
- _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
- this.$this = t0;
- },
- _IdentityHashMap: function _IdentityHashMap(t0) {
- var _ = this;
- _._collection$_length = 0;
- _._collection$_keys = _._collection$_rest = _._nums = _._strings = null;
- _.$ti = t0;
- },
- _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
- this._map = t0;
- this.$ti = t1;
- },
- _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1, t2) {
- var _ = this;
- _._map = t0;
- _._collection$_keys = t1;
- _._offset = 0;
- _._collection$_current = null;
- _.$ti = t2;
- },
- _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
- var _ = this;
- _._equals = t0;
- _._hashCode = t1;
- _._validKey = t2;
- _.__js_helper$_length = 0;
- _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
- _.__js_helper$_modifications = 0;
- _.$ti = t3;
- },
- _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
- this.K = t0;
- },
- _LinkedHashSet: function _LinkedHashSet(t0) {
- var _ = this;
- _._collection$_length = 0;
- _._last = _._first = _._collection$_rest = _._nums = _._strings = null;
- _._modifications = 0;
- _.$ti = t0;
- },
- _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
- var _ = this;
- _._collection$_length = 0;
- _._last = _._first = _._collection$_rest = _._nums = _._strings = null;
- _._modifications = 0;
- _.$ti = t0;
- },
- _LinkedHashSetCell: function _LinkedHashSetCell(t0) {
- this._element = t0;
- this._previous = this._next = null;
- },
- _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1, t2) {
- var _ = this;
- _._set = t0;
- _._modifications = t1;
- _._collection$_current = _._cell = null;
- _.$ti = t2;
- },
- UnmodifiableListView: function UnmodifiableListView(t0, t1) {
- this._collection$_source = t0;
- this.$ti = t1;
- },
- HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) {
- this.result = t0;
- this.K = t1;
- this.V = t2;
- },
- LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0, t1, t2) {
- this.result = t0;
- this.K = t1;
- this.V = t2;
- },
- ListBase: function ListBase() {
- },
- MapBase: function MapBase() {
- },
- MapBase_addAll_closure: function MapBase_addAll_closure(t0) {
- this.$this = t0;
- },
- MapBase_entries_closure: function MapBase_entries_closure(t0) {
- this.$this = t0;
- },
- MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
- this._box_0 = t0;
- this.result = t1;
- },
- UnmodifiableMapBase: function UnmodifiableMapBase() {
- },
- _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
- this._map = t0;
- this.$ti = t1;
- },
- _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1, t2) {
- var _ = this;
- _._collection$_keys = t0;
- _._map = t1;
- _._collection$_current = null;
- _.$ti = t2;
- },
- _UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
- },
- MapView: function MapView() {
- },
- UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
- this._map = t0;
- this.$ti = t1;
- },
- ListQueue: function ListQueue(t0, t1) {
- var _ = this;
- _._table = t0;
- _._modificationCount = _._tail = _._head = 0;
- _.$ti = t1;
- },
- _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3, t4) {
- var _ = this;
- _._queue = t0;
- _._collection$_end = t1;
- _._modificationCount = t2;
- _._collection$_position = t3;
- _._collection$_current = null;
- _.$ti = t4;
- },
- SetBase: function SetBase() {
- },
- _SetBase: function _SetBase() {
- },
- _UnmodifiableSetMixin: function _UnmodifiableSetMixin() {
- },
- UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
- this._collection$_source = t0;
- this.$ti = t1;
- },
- _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
- },
- _UnmodifiableSetView_SetBase__UnmodifiableSetMixin: function _UnmodifiableSetView_SetBase__UnmodifiableSetMixin() {
- },
- _parseJson(source, reviver) {
- var e, exception, t1, parsed = null;
- try {
- parsed = JSON.parse(source);
- } catch (exception) {
- e = A.unwrapException(exception);
- t1 = A.FormatException$(String(e), null, null);
- throw A.wrapException(t1);
- }
- t1 = A._convertJsonToDartLazy(parsed);
- return t1;
- },
- _convertJsonToDartLazy(object) {
- var i;
- if (object == null)
- return null;
- if (typeof object != "object")
- return object;
- if (!Array.isArray(object))
- return new A._JsonMap(object, Object.create(null));
- for (i = 0; i < object.length; ++i)
- object[i] = A._convertJsonToDartLazy(object[i]);
- return object;
- },
- _Utf8Decoder__makeNativeUint8List(codeUnits, start, end) {
- var bytes, t1, i, b,
- $length = end - start;
- if ($length <= 4096)
- bytes = $.$get$_Utf8Decoder__reusableBuffer();
- else
- bytes = new Uint8Array($length);
- for (t1 = J.getInterceptor$asx(codeUnits), i = 0; i < $length; ++i) {
- b = t1.$index(codeUnits, start + i);
- if ((b & 255) !== b)
- b = 255;
- bytes[i] = b;
- }
- return bytes;
- },
- _Utf8Decoder__convertInterceptedUint8List(allowMalformed, codeUnits, start, end) {
- var decoder = allowMalformed ? $.$get$_Utf8Decoder__decoderNonfatal() : $.$get$_Utf8Decoder__decoder();
- if (decoder == null)
- return null;
- if (0 === start && end === codeUnits.length)
- return A._Utf8Decoder__useTextDecoder(decoder, codeUnits);
- return A._Utf8Decoder__useTextDecoder(decoder, codeUnits.subarray(start, end));
- },
- _Utf8Decoder__useTextDecoder(decoder, codeUnits) {
- var t1, exception;
- try {
- t1 = decoder.decode(codeUnits);
- return t1;
- } catch (exception) {
- }
- return null;
- },
- Base64Codec__checkPadding(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
- if (B.JSInt_methods.$mod($length, 4) !== 0)
- throw A.wrapException(A.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
- if (firstPadding + paddingCount !== $length)
- throw A.wrapException(A.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
- if (paddingCount > 2)
- throw A.wrapException(A.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
- },
- _Base64Encoder_encodeChunk(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
- var t1, i, byteOr, byte, outputIndex0, outputIndex1,
- bits = state >>> 2,
- expectedChars = 3 - (state & 3);
- for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
- byte = t1.$index(bytes, i);
- byteOr = (byteOr | byte) >>> 0;
- bits = (bits << 8 | byte) & 16777215;
- --expectedChars;
- if (expectedChars === 0) {
- outputIndex0 = outputIndex + 1;
- output[outputIndex] = alphabet.charCodeAt(bits >>> 18 & 63);
- outputIndex = outputIndex0 + 1;
- output[outputIndex0] = alphabet.charCodeAt(bits >>> 12 & 63);
- outputIndex0 = outputIndex + 1;
- output[outputIndex] = alphabet.charCodeAt(bits >>> 6 & 63);
- outputIndex = outputIndex0 + 1;
- output[outputIndex0] = alphabet.charCodeAt(bits & 63);
- bits = 0;
- expectedChars = 3;
- }
- }
- if (byteOr >= 0 && byteOr <= 255) {
- if (isLast && expectedChars < 3) {
- outputIndex0 = outputIndex + 1;
- outputIndex1 = outputIndex0 + 1;
- if (3 - expectedChars === 1) {
- output[outputIndex] = alphabet.charCodeAt(bits >>> 2 & 63);
- output[outputIndex0] = alphabet.charCodeAt(bits << 4 & 63);
- output[outputIndex1] = 61;
- output[outputIndex1 + 1] = 61;
- } else {
- output[outputIndex] = alphabet.charCodeAt(bits >>> 10 & 63);
- output[outputIndex0] = alphabet.charCodeAt(bits >>> 4 & 63);
- output[outputIndex1] = alphabet.charCodeAt(bits << 2 & 63);
- output[outputIndex1 + 1] = 61;
- }
- return 0;
- }
- return (bits << 2 | 3 - expectedChars) >>> 0;
- }
- for (i = start; i < end;) {
- byte = t1.$index(bytes, i);
- if (byte < 0 || byte > 255)
- break;
- ++i;
- }
- throw A.wrapException(A.ArgumentError$value(bytes, "Not a byte value at index " + i + ": 0x" + J.toRadixString$1$n(t1.$index(bytes, i), 16), null));
- },
- JsonUnsupportedObjectError$(unsupportedObject, cause, partialResult) {
- return new A.JsonUnsupportedObjectError(unsupportedObject, cause);
- },
- _defaultToEncodable(object) {
- return object.toJson$0();
- },
- _JsonStringStringifier$(_sink, _toEncodable) {
- return new A._JsonStringStringifier(_sink, [], A.convert___defaultToEncodable$closure());
- },
- _JsonStringStringifier_stringify(object, toEncodable, indent) {
- var t1,
- output = new A.StringBuffer(""),
- stringifier = A._JsonStringStringifier$(output, toEncodable);
- stringifier.writeObject$1(object);
- t1 = output._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Utf8Decoder_errorDescription(state) {
- switch (state) {
- case 65:
- return "Missing extension byte";
- case 67:
- return "Unexpected extension byte";
- case 69:
- return "Invalid UTF-8 byte";
- case 71:
- return "Overlong encoding";
- case 73:
- return "Out of unicode range";
- case 75:
- return "Encoded surrogate";
- case 77:
- return "Unfinished UTF-8 octet sequence";
- default:
- return "";
- }
- },
- _JsonMap: function _JsonMap(t0, t1) {
- this._original = t0;
- this._processed = t1;
- this._data = null;
- },
- _JsonMap_values_closure: function _JsonMap_values_closure(t0) {
- this.$this = t0;
- },
- _JsonMap_addAll_closure: function _JsonMap_addAll_closure(t0) {
- this.$this = t0;
- },
- _JsonMapKeyIterable: function _JsonMapKeyIterable(t0) {
- this._convert$_parent = t0;
- },
- _Utf8Decoder__decoder_closure: function _Utf8Decoder__decoder_closure() {
- },
- _Utf8Decoder__decoderNonfatal_closure: function _Utf8Decoder__decoderNonfatal_closure() {
- },
- AsciiCodec: function AsciiCodec() {
- },
- _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
- },
- AsciiEncoder: function AsciiEncoder(t0) {
- this._subsetMask = t0;
- },
- Base64Codec: function Base64Codec() {
- },
- Base64Encoder: function Base64Encoder() {
- },
- _Base64Encoder: function _Base64Encoder(t0) {
- this._convert$_state = 0;
- this._alphabet = t0;
- },
- _Base64EncoderSink: function _Base64EncoderSink() {
- },
- _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
- this._sink = t0;
- this._encoder = t1;
- },
- ByteConversionSink: function ByteConversionSink() {
- },
- Codec: function Codec() {
- },
- Converter: function Converter() {
- },
- Encoding: function Encoding() {
- },
- JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
- this.unsupportedObject = t0;
- this.cause = t1;
- },
- JsonCyclicError: function JsonCyclicError(t0, t1) {
- this.unsupportedObject = t0;
- this.cause = t1;
- },
- JsonCodec: function JsonCodec() {
- },
- JsonEncoder: function JsonEncoder(t0) {
- this._toEncodable = t0;
- },
- JsonDecoder: function JsonDecoder(t0) {
- this._reviver = t0;
- },
- _JsonStringifier: function _JsonStringifier() {
- },
- _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
- this._box_0 = t0;
- this.keyValueList = t1;
- },
- _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
- this._sink = t0;
- this._seen = t1;
- this._toEncodable = t2;
- },
- StringConversionSink: function StringConversionSink() {
- },
- _StringSinkConversionSink: function _StringSinkConversionSink(t0) {
- this._stringSink = t0;
- },
- _StringCallbackSink: function _StringCallbackSink(t0, t1) {
- this._convert$_callback = t0;
- this._stringSink = t1;
- },
- _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1, t2) {
- this._decoder = t0;
- this._sink = t1;
- this._stringSink = t2;
- },
- Utf8Codec: function Utf8Codec() {
- },
- Utf8Encoder: function Utf8Encoder() {
- },
- _Utf8Encoder: function _Utf8Encoder(t0) {
- this._bufferIndex = 0;
- this._buffer = t0;
- },
- Utf8Decoder: function Utf8Decoder(t0) {
- this._allowMalformed = t0;
- },
- _Utf8Decoder: function _Utf8Decoder(t0) {
- this.allowMalformed = t0;
- this._convert$_state = 16;
- this._charOrIndex = 0;
- },
- identityHashCode(object) {
- return A.objectHashCode(object);
- },
- Function_apply($function, positionalArguments) {
- return A.Primitives_applyFunction($function, positionalArguments, null);
- },
- Expando$() {
- return new A.Expando(new WeakMap());
- },
- Expando__checkType(object) {
- if (A._isBool(object) || typeof object == "number" || typeof object == "string" || object instanceof A._Record)
- A.Expando__badExpandoKey(object);
- },
- Expando__badExpandoKey(object) {
- throw A.wrapException(A.ArgumentError$value(object, "object", "Expandos are not allowed on strings, numbers, bools, records or null"));
- },
- int_parse(source, radix) {
- var value = A.Primitives_parseInt(source, radix);
- if (value != null)
- return value;
- throw A.wrapException(A.FormatException$(source, null, null));
- },
- double_parse(source) {
- var value = A.Primitives_parseDouble(source);
- if (value != null)
- return value;
- throw A.wrapException(A.FormatException$("Invalid double", source, null));
- },
- Error__throw(error, stackTrace) {
- error = A.wrapException(error);
- error.stack = stackTrace.toString$0(0);
- throw error;
- throw A.wrapException("unreachable");
- },
- List_List$filled($length, fill, growable, $E) {
- var i,
- result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
- if ($length !== 0 && fill != null)
- for (i = 0; i < result.length; ++i)
- result[i] = fill;
- return result;
- },
- List_List$from(elements, growable, $E) {
- var t1,
- list = A._setArrayType([], $E._eval$1("JSArray<0>"));
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- list.push(t1.get$current(t1));
- if (growable)
- return list;
- return J.JSArray_markFixedList(list);
- },
- List_List$of(elements, growable, $E) {
- var t1;
- if (growable)
- return A.List_List$_of(elements, $E);
- t1 = J.JSArray_markFixedList(A.List_List$_of(elements, $E));
- return t1;
- },
- List_List$_of(elements, $E) {
- var list, t1;
- if (Array.isArray(elements))
- return A._setArrayType(elements.slice(0), $E._eval$1("JSArray<0>"));
- list = A._setArrayType([], $E._eval$1("JSArray<0>"));
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- list.push(t1.get$current(t1));
- return list;
- },
- List_List$unmodifiable(elements, $E) {
- return J.JSArray_markUnmodifiableList(A.List_List$from(elements, false, $E));
- },
- String_String$fromCharCodes(charCodes, start, end) {
- var t1, t2, maxLength, array, len;
- A.RangeError_checkNotNegative(start, "start");
- t1 = end == null;
- t2 = !t1;
- if (t2) {
- maxLength = end - start;
- if (maxLength < 0)
- throw A.wrapException(A.RangeError$range(end, start, null, "end", null));
- if (maxLength === 0)
- return "";
- }
- if (Array.isArray(charCodes)) {
- array = charCodes;
- len = array.length;
- if (t1)
- end = len;
- return A.Primitives_stringFromCharCodes(start > 0 || end < len ? array.slice(start, end) : array);
- }
- if (type$.NativeUint8List._is(charCodes))
- return A.String__stringFromUint8List(charCodes, start, end);
- if (t2)
- charCodes = J.take$1$ax(charCodes, end);
- if (start > 0)
- charCodes = J.skip$1$ax(charCodes, start);
- return A.Primitives_stringFromCharCodes(A.List_List$of(charCodes, true, type$.int));
- },
- String_String$fromCharCode(charCode) {
- return A.Primitives_stringFromCharCode(charCode);
- },
- String__stringFromUint8List(charCodes, start, endOrNull) {
- var len = charCodes.length;
- if (start >= len)
- return "";
- return A.Primitives_stringFromNativeUint8List(charCodes, start, endOrNull == null || endOrNull > len ? len : endOrNull);
- },
- RegExp_RegExp(source, multiLine) {
- return new A.JSSyntaxRegExp(source, A.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
- },
- identical(a, b) {
- return a == null ? b == null : a === b;
- },
- StringBuffer__writeAll(string, objects, separator) {
- var iterator = J.get$iterator$ax(objects);
- if (!iterator.moveNext$0())
- return string;
- if (separator.length === 0) {
- do
- string += A.S(iterator.get$current(iterator));
- while (iterator.moveNext$0());
- } else {
- string += A.S(iterator.get$current(iterator));
- for (; iterator.moveNext$0();)
- string = string + separator + A.S(iterator.get$current(iterator));
- }
- return string;
- },
- NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, invocation) {
- return new A.NoSuchMethodError(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments());
- },
- Uri_base() {
- var cachedUri, uri,
- current = A.Primitives_currentUri();
- if (current == null)
- throw A.wrapException(A.UnsupportedError$("'Uri.base' is not supported"));
- cachedUri = $.Uri__cachedBaseUri;
- if (cachedUri != null && current === $.Uri__cachedBaseString)
- return cachedUri;
- uri = A.Uri_parse(current);
- $.Uri__cachedBaseUri = uri;
- $.Uri__cachedBaseString = current;
- return uri;
- },
- _Uri__uriEncode(canonicalTable, text, encoding, spaceToPlus) {
- var t1, bytes, i, t2, byte,
- _s16_ = "0123456789ABCDEF";
- if (encoding === B.C_Utf8Codec) {
- t1 = $.$get$_Uri__needsNoEncoding();
- t1 = t1._nativeRegExp.test(text);
- } else
- t1 = false;
- if (t1)
- return text;
- bytes = B.C_Utf8Encoder.convert$1(text);
- for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
- byte = bytes[i];
- if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
- t2 += A.Primitives_stringFromCharCode(byte);
- else
- t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
- }
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- },
- StackTrace_current() {
- return A.getTraceFromException(new Error());
- },
- DateTime__fourDigits(n) {
- var absN = Math.abs(n),
- sign = n < 0 ? "-" : "";
- if (absN >= 1000)
- return "" + n;
- if (absN >= 100)
- return sign + "0" + absN;
- if (absN >= 10)
- return sign + "00" + absN;
- return sign + "000" + absN;
- },
- DateTime__threeDigits(n) {
- if (n >= 100)
- return "" + n;
- if (n >= 10)
- return "0" + n;
- return "00" + n;
- },
- DateTime__twoDigits(n) {
- if (n >= 10)
- return "" + n;
- return "0" + n;
- },
- Duration$(milliseconds) {
- return new A.Duration(1000 * milliseconds);
- },
- Error_safeToString(object) {
- if (typeof object == "number" || A._isBool(object) || object == null)
- return J.toString$0$(object);
- if (typeof object == "string")
- return JSON.stringify(object);
- return A.Primitives_safeToString(object);
- },
- Error_throwWithStackTrace(error, stackTrace) {
- A.checkNotNullable(error, "error", type$.Object);
- A.checkNotNullable(stackTrace, "stackTrace", type$.StackTrace);
- A.Error__throw(error, stackTrace);
- },
- AssertionError$(message) {
- return new A.AssertionError(message);
- },
- ArgumentError$(message, $name) {
- return new A.ArgumentError(false, null, $name, message);
- },
- ArgumentError$value(value, $name, message) {
- return new A.ArgumentError(true, value, $name, message);
- },
- ArgumentError_checkNotNull(argument, $name) {
- return argument;
- },
- RangeError$(message) {
- var _null = null;
- return new A.RangeError(_null, _null, false, _null, _null, message);
- },
- RangeError$value(value, $name, message) {
- return new A.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message);
- },
- RangeError$range(invalidValue, minValue, maxValue, $name, message) {
- return new A.RangeError(minValue, maxValue, true, invalidValue, $name, message == null ? "Invalid value" : message);
- },
- RangeError_checkValueInInterval(value, minValue, maxValue, $name) {
- if (value < minValue || value > maxValue)
- throw A.wrapException(A.RangeError$range(value, minValue, maxValue, $name, null));
- return value;
- },
- RangeError_checkValidRange(start, end, $length) {
- if (0 > start || start > $length)
- throw A.wrapException(A.RangeError$range(start, 0, $length, "start", null));
- if (end != null) {
- if (start > end || end > $length)
- throw A.wrapException(A.RangeError$range(end, start, $length, "end", null));
- return end;
- }
- return $length;
- },
- RangeError_checkNotNegative(value, $name) {
- if (value < 0)
- throw A.wrapException(A.RangeError$range(value, 0, null, $name, null));
- return value;
- },
- IndexError$withLength(invalidValue, $length, indexable, message, $name) {
- return new A.IndexError($length, true, invalidValue, $name, "Index out of range");
- },
- IndexError_check(index, $length, indexable, message, $name) {
- if (0 > index || index >= $length)
- throw A.wrapException(A.IndexError$withLength(index, $length, indexable, message, $name == null ? "index" : $name));
- return index;
- },
- UnsupportedError$(message) {
- return new A.UnsupportedError(message);
- },
- UnimplementedError$(message) {
- return new A.UnimplementedError(message);
- },
- StateError$(message) {
- return new A.StateError(message);
- },
- ConcurrentModificationError$(modifiedObject) {
- return new A.ConcurrentModificationError(modifiedObject);
- },
- FormatException$(message, source, offset) {
- return new A.FormatException(message, source, offset);
- },
- Iterable_Iterable$generate(count, generator, $E) {
- if (count <= 0)
- return new A.EmptyIterable($E._eval$1("EmptyIterable<0>"));
- return new A._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
- },
- Iterable_iterableToShortString(iterable, leftDelimiter, rightDelimiter) {
- var parts, t1;
- if (A.isToStringVisiting(iterable)) {
- if (leftDelimiter === "(" && rightDelimiter === ")")
- return "(...)";
- return leftDelimiter + "..." + rightDelimiter;
- }
- parts = A._setArrayType([], type$.JSArray_String);
- $.toStringVisiting.push(iterable);
- try {
- A._iterablePartsToStrings(iterable, parts);
- } finally {
- $.toStringVisiting.pop();
- }
- t1 = A.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- Iterable_iterableToFullString(iterable, leftDelimiter, rightDelimiter) {
- var buffer, t1;
- if (A.isToStringVisiting(iterable))
- return leftDelimiter + "..." + rightDelimiter;
- buffer = new A.StringBuffer(leftDelimiter);
- $.toStringVisiting.push(iterable);
- try {
- t1 = buffer;
- t1._contents = A.StringBuffer__writeAll(t1._contents, iterable, ", ");
- } finally {
- $.toStringVisiting.pop();
- }
- buffer._contents += rightDelimiter;
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _iterablePartsToStrings(iterable, parts) {
- var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
- it = iterable.get$iterator(iterable),
- $length = 0, count = 0;
- while (true) {
- if (!($length < 80 || count < 3))
- break;
- if (!it.moveNext$0())
- return;
- next = A.S(it.get$current(it));
- parts.push(next);
- $length += next.length + 2;
- ++count;
- }
- if (!it.moveNext$0()) {
- if (count <= 5)
- return;
- ultimateString = parts.pop();
- penultimateString = parts.pop();
- } else {
- penultimate = it.get$current(it);
- ++count;
- if (!it.moveNext$0()) {
- if (count <= 4) {
- parts.push(A.S(penultimate));
- return;
- }
- ultimateString = A.S(penultimate);
- penultimateString = parts.pop();
- $length += ultimateString.length + 2;
- } else {
- ultimate = it.get$current(it);
- ++count;
- for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
- ultimate0 = it.get$current(it);
- ++count;
- if (count > 100) {
- while (true) {
- if (!($length > 75 && count > 3))
- break;
- $length -= parts.pop().length + 2;
- --count;
- }
- parts.push("...");
- return;
- }
- }
- penultimateString = A.S(penultimate);
- ultimateString = A.S(ultimate);
- $length += ultimateString.length + penultimateString.length + 4;
- }
- }
- if (count > parts.length + 2) {
- $length += 5;
- elision = "...";
- } else
- elision = null;
- while (true) {
- if (!($length > 80 && parts.length > 3))
- break;
- $length -= parts.pop().length + 2;
- if (elision == null) {
- $length += 5;
- elision = "...";
- }
- }
- if (elision != null)
- parts.push(elision);
- parts.push(penultimateString);
- parts.push(ultimateString);
- },
- Map_castFrom(source, $K, $V, K2, V2) {
- return new A.CastMap(source, $K._eval$1("@<0>")._bind$1($V)._bind$1(K2)._bind$1(V2)._eval$1("CastMap<1,2,3,4>"));
- },
- Object_hash(object1, object2, object3, object4) {
- var t1;
- if (B.C_SentinelValue === object3) {
- t1 = J.get$hashCode$(object1);
- object2 = J.get$hashCode$(object2);
- return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2));
- }
- if (B.C_SentinelValue === object4) {
- t1 = J.get$hashCode$(object1);
- object2 = J.get$hashCode$(object2);
- object3 = J.get$hashCode$(object3);
- return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2), object3));
- }
- t1 = J.get$hashCode$(object1);
- object2 = J.get$hashCode$(object2);
- object3 = J.get$hashCode$(object3);
- object4 = J.get$hashCode$(object4);
- object4 = A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2), object3), object4));
- return object4;
- },
- Object_hashAll(objects) {
- var t1, _i,
- hash = $.$get$_hashSeed();
- for (t1 = objects.length, _i = 0; _i < objects.length; objects.length === t1 || (0, A.throwConcurrentModificationError)(objects), ++_i)
- hash = A.SystemHash_combine(hash, J.get$hashCode$(objects[_i]));
- return A.SystemHash_finish(hash);
- },
- print(object) {
- var line = A.S(object),
- toZone = $.printToZone;
- if (toZone == null)
- A.printString(line);
- else
- toZone.call$1(line);
- },
- Set_Set$unmodifiable(elements, $E) {
- return new A.UnmodifiableSetView(A.LinkedHashSet_LinkedHashSet$of(elements, $E), $E._eval$1("UnmodifiableSetView<0>"));
- },
- Set_castFrom(source, newSet, $S, $T) {
- return new A.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
- },
- _combineSurrogatePair(start, end) {
- return 65536 + ((start & 1023) << 10) + (end & 1023);
- },
- Uri_Uri$dataFromString($content, encoding, mimeType) {
- var encodingName, t1,
- buffer = new A.StringBuffer(""),
- indices = A._setArrayType([-1], type$.JSArray_int);
- if (encoding == null)
- encodingName = null;
- else
- encodingName = "utf-8";
- if (encoding == null)
- encoding = B.C_AsciiCodec;
- A.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
- indices.push(buffer._contents.length);
- buffer._contents += ",";
- A.UriData__uriEncodeBytes(B.List_42A, encoding.encode$1($content), buffer);
- t1 = buffer._contents;
- return new A.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
- },
- Uri_parse(uri) {
- var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, userInfoStart, userInfo, host, portNumber, port, path, query, _null = null,
- end = uri.length;
- if (end >= 5) {
- delta = ((uri.charCodeAt(4) ^ 58) * 3 | uri.charCodeAt(0) ^ 100 | uri.charCodeAt(1) ^ 97 | uri.charCodeAt(2) ^ 116 | uri.charCodeAt(3) ^ 97) >>> 0;
- if (delta === 0)
- return A.UriData__parse(end < end ? B.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
- else if (delta === 32)
- return A.UriData__parse(B.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
- }
- indices = A.List_List$filled(8, 0, false, type$.int);
- indices[0] = 0;
- indices[1] = -1;
- indices[2] = -1;
- indices[7] = -1;
- indices[3] = 0;
- indices[4] = 0;
- indices[5] = end;
- indices[6] = end;
- if (A._scan(uri, 0, end, 0, indices) >= 14)
- indices[7] = end;
- schemeEnd = indices[1];
- if (schemeEnd >= 0)
- if (A._scan(uri, 0, schemeEnd, 20, indices) === 20)
- indices[7] = schemeEnd;
- hostStart = indices[2] + 1;
- portStart = indices[3];
- pathStart = indices[4];
- queryStart = indices[5];
- fragmentStart = indices[6];
- if (fragmentStart < queryStart)
- queryStart = fragmentStart;
- if (pathStart < hostStart)
- pathStart = queryStart;
- else if (pathStart <= schemeEnd)
- pathStart = schemeEnd + 1;
- if (portStart < hostStart)
- portStart = pathStart;
- isSimple = indices[7] < 0;
- if (isSimple)
- if (hostStart > schemeEnd + 3) {
- scheme = _null;
- isSimple = false;
- } else {
- t1 = portStart > 0;
- if (t1 && portStart + 1 === pathStart) {
- scheme = _null;
- isSimple = false;
- } else {
- if (!B.JSString_methods.startsWith$2(uri, "\\", pathStart))
- if (hostStart > 0)
- t2 = B.JSString_methods.startsWith$2(uri, "\\", hostStart - 1) || B.JSString_methods.startsWith$2(uri, "\\", hostStart - 2);
- else
- t2 = false;
- else
- t2 = true;
- if (t2) {
- scheme = _null;
- isSimple = false;
- } else {
- if (!(queryStart < end && queryStart === pathStart + 2 && B.JSString_methods.startsWith$2(uri, "..", pathStart)))
- t2 = queryStart > pathStart + 2 && B.JSString_methods.startsWith$2(uri, "/..", queryStart - 3);
- else
- t2 = true;
- if (t2)
- scheme = _null;
- else if (schemeEnd === 4)
- if (B.JSString_methods.startsWith$2(uri, "file", 0)) {
- if (hostStart <= 0) {
- if (!B.JSString_methods.startsWith$2(uri, "/", pathStart)) {
- schemeAuth = "file:///";
- delta = 3;
- } else {
- schemeAuth = "file://";
- delta = 2;
- }
- uri = schemeAuth + B.JSString_methods.substring$2(uri, pathStart, end);
- schemeEnd -= 0;
- t1 = delta - 0;
- queryStart += t1;
- fragmentStart += t1;
- end = uri.length;
- hostStart = 7;
- portStart = 7;
- pathStart = 7;
- } else if (pathStart === queryStart) {
- ++fragmentStart;
- queryStart0 = queryStart + 1;
- uri = B.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
- ++end;
- queryStart = queryStart0;
- }
- scheme = "file";
- } else if (B.JSString_methods.startsWith$2(uri, "http", 0)) {
- if (t1 && portStart + 3 === pathStart && B.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
- fragmentStart -= 3;
- pathStart0 = pathStart - 3;
- queryStart -= 3;
- uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
- end -= 3;
- pathStart = pathStart0;
- }
- scheme = "http";
- } else
- scheme = _null;
- else if (schemeEnd === 5 && B.JSString_methods.startsWith$2(uri, "https", 0)) {
- if (t1 && portStart + 4 === pathStart && B.JSString_methods.startsWith$2(uri, "443", portStart + 1)) {
- fragmentStart -= 4;
- pathStart0 = pathStart - 4;
- queryStart -= 4;
- uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
- end -= 3;
- pathStart = pathStart0;
- }
- scheme = "https";
- } else
- scheme = _null;
- isSimple = !t2;
- }
- }
- }
- else
- scheme = _null;
- if (isSimple) {
- if (end < uri.length) {
- uri = B.JSString_methods.substring$2(uri, 0, end);
- schemeEnd -= 0;
- hostStart -= 0;
- portStart -= 0;
- pathStart -= 0;
- queryStart -= 0;
- fragmentStart -= 0;
- }
- return new A._SimpleUri(uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
- }
- if (scheme == null)
- if (schemeEnd > 0)
- scheme = A._Uri__makeScheme(uri, 0, schemeEnd);
- else {
- if (schemeEnd === 0)
- A._Uri__fail(uri, 0, "Invalid empty scheme");
- scheme = "";
- }
- if (hostStart > 0) {
- userInfoStart = schemeEnd + 3;
- userInfo = userInfoStart < hostStart ? A._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
- host = A._Uri__makeHost(uri, hostStart, portStart, false);
- t1 = portStart + 1;
- if (t1 < pathStart) {
- portNumber = A.Primitives_parseInt(B.JSString_methods.substring$2(uri, t1, pathStart), _null);
- port = A._Uri__makePort(portNumber == null ? A.throwExpression(A.FormatException$("Invalid port", uri, t1)) : portNumber, scheme);
- } else
- port = _null;
- } else {
- port = _null;
- host = port;
- userInfo = "";
- }
- path = A._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
- query = queryStart < fragmentStart ? A._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
- return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragmentStart < end ? A._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
- },
- Uri_decodeComponent(encodedComponent) {
- return A._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, B.C_Utf8Codec, false);
- },
- Uri__parseIPv4Address(host, start, end) {
- var i, partStart, partIndex, char, part, partIndex0,
- _s43_ = "IPv4 address should contain exactly 4 parts",
- _s37_ = "each part must be in the range 0..255",
- error = new A.Uri__parseIPv4Address_error(host),
- result = new Uint8Array(4);
- for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
- char = host.charCodeAt(i);
- if (char !== 46) {
- if ((char ^ 48) > 9)
- error.call$2("invalid character", i);
- } else {
- if (partIndex === 3)
- error.call$2(_s43_, i);
- part = A.int_parse(B.JSString_methods.substring$2(host, partStart, i), null);
- if (part > 255)
- error.call$2(_s37_, partStart);
- partIndex0 = partIndex + 1;
- result[partIndex] = part;
- partStart = i + 1;
- partIndex = partIndex0;
- }
- }
- if (partIndex !== 3)
- error.call$2(_s43_, end);
- part = A.int_parse(B.JSString_methods.substring$2(host, partStart, end), null);
- if (part > 255)
- error.call$2(_s37_, partStart);
- result[partIndex] = part;
- return result;
- },
- Uri_parseIPv6Address(host, start, end) {
- var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j, _null = null,
- error = new A.Uri_parseIPv6Address_error(host),
- parseHex = new A.Uri_parseIPv6Address_parseHex(error, host);
- if (host.length < 2)
- error.call$2("address is too short", _null);
- parts = A._setArrayType([], type$.JSArray_int);
- for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
- char = host.charCodeAt(i);
- if (char === 58) {
- if (i === start) {
- ++i;
- if (host.charCodeAt(i) !== 58)
- error.call$2("invalid start colon.", i);
- partStart = i;
- }
- if (i === partStart) {
- if (wildcardSeen)
- error.call$2("only one wildcard `::` is allowed", i);
- parts.push(-1);
- wildcardSeen = true;
- } else
- parts.push(parseHex.call$2(partStart, i));
- partStart = i + 1;
- } else if (char === 46)
- seenDot = true;
- }
- if (parts.length === 0)
- error.call$2("too few parts", _null);
- atEnd = partStart === end;
- t1 = B.JSArray_methods.get$last(parts);
- if (atEnd && t1 !== -1)
- error.call$2("expected a part after last `:`", end);
- if (!atEnd)
- if (!seenDot)
- parts.push(parseHex.call$2(partStart, end));
- else {
- last = A.Uri__parseIPv4Address(host, partStart, end);
- parts.push((last[0] << 8 | last[1]) >>> 0);
- parts.push((last[2] << 8 | last[3]) >>> 0);
- }
- if (wildcardSeen) {
- if (parts.length > 7)
- error.call$2("an address with a wildcard must have less than 7 parts", _null);
- } else if (parts.length !== 8)
- error.call$2("an address without a wildcard must contain exactly 8 parts", _null);
- bytes = new Uint8Array(16);
- for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
- value = parts[i];
- if (value === -1)
- for (j = 0; j < wildCardLength; ++j) {
- bytes[index] = 0;
- bytes[index + 1] = 0;
- index += 2;
- }
- else {
- bytes[index] = B.JSInt_methods._shrOtherPositive$1(value, 8);
- bytes[index + 1] = value & 255;
- index += 2;
- }
- }
- return bytes;
- },
- _Uri$_internal(scheme, _userInfo, _host, _port, path, _query, _fragment) {
- return new A._Uri(scheme, _userInfo, _host, _port, path, _query, _fragment);
- },
- _Uri__Uri(host, path, pathSegments, scheme) {
- var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
- scheme = scheme == null ? "" : A._Uri__makeScheme(scheme, 0, scheme.length);
- userInfo = A._Uri__makeUserInfo(_null, 0, 0);
- host = A._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
- query = A._Uri__makeQuery(_null, 0, 0, _null);
- fragment = A._Uri__makeFragment(_null, 0, 0);
- port = A._Uri__makePort(_null, scheme);
- isFile = scheme === "file";
- if (host == null)
- t1 = userInfo.length !== 0 || port != null || isFile;
- else
- t1 = false;
- if (t1)
- host = "";
- t1 = host == null;
- hasAuthority = !t1;
- path = A._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
- t2 = scheme.length === 0;
- if (t2 && t1 && !B.JSString_methods.startsWith$1(path, "/"))
- path = A._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
- else
- path = A._Uri__removeDotSegments(path);
- return A._Uri$_internal(scheme, userInfo, t1 && B.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
- },
- _Uri__defaultPort(scheme) {
- if (scheme === "http")
- return 80;
- if (scheme === "https")
- return 443;
- return 0;
- },
- _Uri__fail(uri, index, message) {
- throw A.wrapException(A.FormatException$(message, uri, index));
- },
- _Uri__Uri$file(path, windows) {
- return windows ? A._Uri__makeWindowsFileUrl(path, false) : A._Uri__makeFileUri(path, false);
- },
- _Uri__checkNonWindowsPathReservedCharacters(segments, argumentError) {
- var t1, _i, segment, t2, t3;
- for (t1 = segments.length, _i = 0; _i < t1; ++_i) {
- segment = segments[_i];
- t2 = J.getInterceptor$asx(segment);
- t3 = t2.get$length(segment);
- if (0 > t3)
- A.throwExpression(A.RangeError$range(0, 0, t2.get$length(segment), null, null));
- if (A.stringContainsUnchecked(segment, "/", 0)) {
- t1 = A.UnsupportedError$("Illegal path character " + A.S(segment));
- throw A.wrapException(t1);
- }
- }
- },
- _Uri__checkWindowsPathReservedCharacters(segments, argumentError, firstSegment) {
- var t1, t2, t3, t4;
- for (t1 = A.SubListIterable$(segments, firstSegment, null, A._arrayInstanceType(segments)._precomputed1), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- t4 = A.RegExp_RegExp('["*/:<>?\\\\|]', false);
- if (A.stringContainsUnchecked(t3, t4, 0))
- if (argumentError)
- throw A.wrapException(A.ArgumentError$("Illegal character in path", null));
- else
- throw A.wrapException(A.UnsupportedError$("Illegal character in path: " + t3));
- }
- },
- _Uri__checkWindowsDriveLetter(charCode, argumentError) {
- var t1,
- _s21_ = "Illegal drive letter ";
- if (!(65 <= charCode && charCode <= 90))
- t1 = 97 <= charCode && charCode <= 122;
- else
- t1 = true;
- if (t1)
- return;
- if (argumentError)
- throw A.wrapException(A.ArgumentError$(_s21_ + A.String_String$fromCharCode(charCode), null));
- else
- throw A.wrapException(A.UnsupportedError$(_s21_ + A.String_String$fromCharCode(charCode)));
- },
- _Uri__makeFileUri(path, slashTerminated) {
- var _null = null,
- segments = A._setArrayType(path.split("/"), type$.JSArray_String);
- if (B.JSString_methods.startsWith$1(path, "/"))
- return A._Uri__Uri(_null, _null, segments, "file");
- else
- return A._Uri__Uri(_null, _null, segments, _null);
- },
- _Uri__makeWindowsFileUrl(path, slashTerminated) {
- var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
- if (B.JSString_methods.startsWith$1(path, "\\\\?\\"))
- if (B.JSString_methods.startsWith$2(path, "UNC\\", 4))
- path = B.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
- else {
- path = B.JSString_methods.substring$1(path, 4);
- if (path.length < 3 || path.charCodeAt(1) !== 58 || path.charCodeAt(2) !== 92)
- throw A.wrapException(A.ArgumentError$value(path, "path", "Windows paths with \\\\?\\ prefix must be absolute"));
- }
- else
- path = A.stringReplaceAllUnchecked(path, "/", _s1_);
- t1 = path.length;
- if (t1 > 1 && path.charCodeAt(1) === 58) {
- A._Uri__checkWindowsDriveLetter(path.charCodeAt(0), true);
- if (t1 === 2 || path.charCodeAt(2) !== 92)
- throw A.wrapException(A.ArgumentError$value(path, "path", "Windows paths with drive letter must be absolute"));
- pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
- A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
- return A._Uri__Uri(_null, _null, pathSegments, _s4_);
- }
- if (B.JSString_methods.startsWith$1(path, _s1_))
- if (B.JSString_methods.startsWith$2(path, _s1_, 1)) {
- pathStart = B.JSString_methods.indexOf$2(path, _s1_, 2);
- t1 = pathStart < 0;
- hostPart = t1 ? B.JSString_methods.substring$1(path, 2) : B.JSString_methods.substring$2(path, 2, pathStart);
- pathSegments = A._setArrayType((t1 ? "" : B.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
- A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
- return A._Uri__Uri(hostPart, _null, pathSegments, _s4_);
- } else {
- pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
- A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
- return A._Uri__Uri(_null, _null, pathSegments, _s4_);
- }
- else {
- pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
- A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
- return A._Uri__Uri(_null, _null, pathSegments, _null);
- }
- },
- _Uri__makePort(port, scheme) {
- if (port != null && port === A._Uri__defaultPort(scheme))
- return null;
- return port;
- },
- _Uri__makeHost(host, start, end, strictIPv6) {
- var t1, t2, index, zoneIDstart, zoneID, i;
- if (host == null)
- return null;
- if (start === end)
- return "";
- if (host.charCodeAt(start) === 91) {
- t1 = end - 1;
- if (host.charCodeAt(t1) !== 93)
- A._Uri__fail(host, start, "Missing end `]` to match `[` in host");
- t2 = start + 1;
- index = A._Uri__checkZoneID(host, t2, t1);
- if (index < t1) {
- zoneIDstart = index + 1;
- zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
- } else
- zoneID = "";
- A.Uri_parseIPv6Address(host, t2, index);
- return B.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
- }
- for (i = start; i < end; ++i)
- if (host.charCodeAt(i) === 58) {
- index = B.JSString_methods.indexOf$2(host, "%", start);
- index = index >= start && index < end ? index : end;
- if (index < end) {
- zoneIDstart = index + 1;
- zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
- } else
- zoneID = "";
- A.Uri_parseIPv6Address(host, start, index);
- return "[" + B.JSString_methods.substring$2(host, start, index) + zoneID + "]";
- }
- return A._Uri__normalizeRegName(host, start, end);
- },
- _Uri__checkZoneID(host, start, end) {
- var index = B.JSString_methods.indexOf$2(host, "%", start);
- return index >= start && index < end ? index : end;
- },
- _Uri__normalizeZoneID(host, start, end, prefix) {
- var index, sectionStart, isNormalized, char, replacement, t1, t2, tail, sourceLength, slice,
- buffer = prefix !== "" ? new A.StringBuffer(prefix) : null;
- for (index = start, sectionStart = index, isNormalized = true; index < end;) {
- char = host.charCodeAt(index);
- if (char === 37) {
- replacement = A._Uri__normalizeEscape(host, index, true);
- t1 = replacement == null;
- if (t1 && isNormalized) {
- index += 3;
- continue;
- }
- if (buffer == null)
- buffer = new A.StringBuffer("");
- t2 = buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
- if (t1)
- replacement = B.JSString_methods.substring$2(host, index, index + 3);
- else if (replacement === "%")
- A._Uri__fail(host, index, "ZoneID should not contain % anymore");
- buffer._contents = t2 + replacement;
- index += 3;
- sectionStart = index;
- isNormalized = true;
- } else if (char < 127 && (B.List_piR[char >>> 4] & 1 << (char & 15)) !== 0) {
- if (isNormalized && 65 <= char && 90 >= char) {
- if (buffer == null)
- buffer = new A.StringBuffer("");
- if (sectionStart < index) {
- buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
- sectionStart = index;
- }
- isNormalized = false;
- }
- ++index;
- } else {
- if ((char & 64512) === 55296 && index + 1 < end) {
- tail = host.charCodeAt(index + 1);
- if ((tail & 64512) === 56320) {
- char = (char & 1023) << 10 | tail & 1023 | 65536;
- sourceLength = 2;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- slice = B.JSString_methods.substring$2(host, sectionStart, index);
- if (buffer == null) {
- buffer = new A.StringBuffer("");
- t1 = buffer;
- } else
- t1 = buffer;
- t1._contents += slice;
- t2 = A._Uri__escapeChar(char);
- t1._contents += t2;
- index += sourceLength;
- sectionStart = index;
- }
- }
- if (buffer == null)
- return B.JSString_methods.substring$2(host, start, end);
- if (sectionStart < end) {
- slice = B.JSString_methods.substring$2(host, sectionStart, end);
- buffer._contents += slice;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__normalizeRegName(host, start, end) {
- var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
- for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
- char = host.charCodeAt(index);
- if (char === 37) {
- replacement = A._Uri__normalizeEscape(host, index, true);
- t1 = replacement == null;
- if (t1 && isNormalized) {
- index += 3;
- continue;
- }
- if (buffer == null)
- buffer = new A.StringBuffer("");
- slice = B.JSString_methods.substring$2(host, sectionStart, index);
- if (!isNormalized)
- slice = slice.toLowerCase();
- t2 = buffer._contents += slice;
- if (t1) {
- replacement = B.JSString_methods.substring$2(host, index, index + 3);
- sourceLength = 3;
- } else if (replacement === "%") {
- replacement = "%25";
- sourceLength = 1;
- } else
- sourceLength = 3;
- buffer._contents = t2 + replacement;
- index += sourceLength;
- sectionStart = index;
- isNormalized = true;
- } else if (char < 127 && (B.List_4AN[char >>> 4] & 1 << (char & 15)) !== 0) {
- if (isNormalized && 65 <= char && 90 >= char) {
- if (buffer == null)
- buffer = new A.StringBuffer("");
- if (sectionStart < index) {
- buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
- sectionStart = index;
- }
- isNormalized = false;
- }
- ++index;
- } else if (char <= 93 && (B.List_VOY[char >>> 4] & 1 << (char & 15)) !== 0)
- A._Uri__fail(host, index, "Invalid character");
- else {
- if ((char & 64512) === 55296 && index + 1 < end) {
- tail = host.charCodeAt(index + 1);
- if ((tail & 64512) === 56320) {
- char = (char & 1023) << 10 | tail & 1023 | 65536;
- sourceLength = 2;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- slice = B.JSString_methods.substring$2(host, sectionStart, index);
- if (!isNormalized)
- slice = slice.toLowerCase();
- if (buffer == null) {
- buffer = new A.StringBuffer("");
- t1 = buffer;
- } else
- t1 = buffer;
- t1._contents += slice;
- t2 = A._Uri__escapeChar(char);
- t1._contents += t2;
- index += sourceLength;
- sectionStart = index;
- }
- }
- if (buffer == null)
- return B.JSString_methods.substring$2(host, start, end);
- if (sectionStart < end) {
- slice = B.JSString_methods.substring$2(host, sectionStart, end);
- if (!isNormalized)
- slice = slice.toLowerCase();
- buffer._contents += slice;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__makeScheme(scheme, start, end) {
- var i, containsUpperCase, codeUnit;
- if (start === end)
- return "";
- if (!A._Uri__isAlphabeticCharacter(scheme.charCodeAt(start)))
- A._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
- for (i = start, containsUpperCase = false; i < end; ++i) {
- codeUnit = scheme.charCodeAt(i);
- if (!(codeUnit < 128 && (B.List_GVy[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
- A._Uri__fail(scheme, i, "Illegal scheme character");
- if (65 <= codeUnit && codeUnit <= 90)
- containsUpperCase = true;
- }
- scheme = B.JSString_methods.substring$2(scheme, start, end);
- return A._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
- },
- _Uri__canonicalizeScheme(scheme) {
- if (scheme === "http")
- return "http";
- if (scheme === "file")
- return "file";
- if (scheme === "https")
- return "https";
- if (scheme === "package")
- return "package";
- return scheme;
- },
- _Uri__makeUserInfo(userInfo, start, end) {
- if (userInfo == null)
- return "";
- return A._Uri__normalizeOrSubstring(userInfo, start, end, B.List_2jN, false, false);
- },
- _Uri__makePath(path, start, end, pathSegments, scheme, hasAuthority) {
- var result,
- isFile = scheme === "file",
- ensureLeadingSlash = isFile || hasAuthority;
- if (path == null) {
- if (pathSegments == null)
- return isFile ? "/" : "";
- result = new A.MappedListIterable(pathSegments, new A._Uri__makePath_closure(), A._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
- } else if (pathSegments != null)
- throw A.wrapException(A.ArgumentError$("Both path and pathSegments specified", null));
- else
- result = A._Uri__normalizeOrSubstring(path, start, end, B.List_M2I, true, true);
- if (result.length === 0) {
- if (isFile)
- return "/";
- } else if (ensureLeadingSlash && !B.JSString_methods.startsWith$1(result, "/"))
- result = "/" + result;
- return A._Uri__normalizePath(result, scheme, hasAuthority);
- },
- _Uri__normalizePath(path, scheme, hasAuthority) {
- var t1 = scheme.length === 0;
- if (t1 && !hasAuthority && !B.JSString_methods.startsWith$1(path, "/") && !B.JSString_methods.startsWith$1(path, "\\"))
- return A._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
- return A._Uri__removeDotSegments(path);
- },
- _Uri__makeQuery(query, start, end, queryParameters) {
- if (query != null)
- return A._Uri__normalizeOrSubstring(query, start, end, B.List_42A, true, false);
- return null;
- },
- _Uri__makeFragment(fragment, start, end) {
- if (fragment == null)
- return null;
- return A._Uri__normalizeOrSubstring(fragment, start, end, B.List_42A, true, false);
- },
- _Uri__normalizeEscape(source, index, lowerCase) {
- var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
- t1 = index + 2;
- if (t1 >= source.length)
- return "%";
- firstDigit = source.charCodeAt(index + 1);
- secondDigit = source.charCodeAt(t1);
- firstDigitValue = A.hexDigitValue(firstDigit);
- secondDigitValue = A.hexDigitValue(secondDigit);
- if (firstDigitValue < 0 || secondDigitValue < 0)
- return "%";
- value = firstDigitValue * 16 + secondDigitValue;
- if (value < 127 && (B.List_piR[B.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
- return A.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
- if (firstDigit >= 97 || secondDigit >= 97)
- return B.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
- return null;
- },
- _Uri__escapeChar(char) {
- var codeUnits, flag, encodedBytes, index, byte,
- _s16_ = "0123456789ABCDEF";
- if (char < 128) {
- codeUnits = new Uint8Array(3);
- codeUnits[0] = 37;
- codeUnits[1] = _s16_.charCodeAt(char >>> 4);
- codeUnits[2] = _s16_.charCodeAt(char & 15);
- } else {
- if (char > 2047)
- if (char > 65535) {
- flag = 240;
- encodedBytes = 4;
- } else {
- flag = 224;
- encodedBytes = 3;
- }
- else {
- flag = 192;
- encodedBytes = 2;
- }
- codeUnits = new Uint8Array(3 * encodedBytes);
- for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
- byte = B.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
- codeUnits[index] = 37;
- codeUnits[index + 1] = _s16_.charCodeAt(byte >>> 4);
- codeUnits[index + 2] = _s16_.charCodeAt(byte & 15);
- index += 3;
- }
- }
- return A.String_String$fromCharCodes(codeUnits, 0, null);
- },
- _Uri__normalizeOrSubstring(component, start, end, charTable, escapeDelimiters, replaceBackslash) {
- var t1 = A._Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash);
- return t1 == null ? B.JSString_methods.substring$2(component, start, end) : t1;
- },
- _Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash) {
- var t1, index, sectionStart, buffer, char, replacement, sourceLength, t2, tail, t3, _null = null;
- for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
- char = component.charCodeAt(index);
- if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
- ++index;
- else {
- if (char === 37) {
- replacement = A._Uri__normalizeEscape(component, index, false);
- if (replacement == null) {
- index += 3;
- continue;
- }
- if ("%" === replacement) {
- replacement = "%25";
- sourceLength = 1;
- } else
- sourceLength = 3;
- } else if (char === 92 && replaceBackslash) {
- replacement = "/";
- sourceLength = 1;
- } else if (t1 && char <= 93 && (B.List_VOY[char >>> 4] & 1 << (char & 15)) !== 0) {
- A._Uri__fail(component, index, "Invalid character");
- sourceLength = _null;
- replacement = sourceLength;
- } else {
- if ((char & 64512) === 55296) {
- t2 = index + 1;
- if (t2 < end) {
- tail = component.charCodeAt(t2);
- if ((tail & 64512) === 56320) {
- char = (char & 1023) << 10 | tail & 1023 | 65536;
- sourceLength = 2;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- } else
- sourceLength = 1;
- replacement = A._Uri__escapeChar(char);
- }
- if (buffer == null) {
- buffer = new A.StringBuffer("");
- t2 = buffer;
- } else
- t2 = buffer;
- t3 = t2._contents += B.JSString_methods.substring$2(component, sectionStart, index);
- t2._contents = t3 + A.S(replacement);
- index += sourceLength;
- sectionStart = index;
- }
- }
- if (buffer == null)
- return _null;
- if (sectionStart < end) {
- t1 = B.JSString_methods.substring$2(component, sectionStart, end);
- buffer._contents += t1;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__mayContainDotSegments(path) {
- if (B.JSString_methods.startsWith$1(path, "."))
- return true;
- return B.JSString_methods.indexOf$1(path, "/.") !== -1;
- },
- _Uri__removeDotSegments(path) {
- var output, t1, t2, appendSlash, _i, segment;
- if (!A._Uri__mayContainDotSegments(path))
- return path;
- output = A._setArrayType([], type$.JSArray_String);
- for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
- segment = t1[_i];
- if (J.$eq$(segment, "..")) {
- if (output.length !== 0) {
- output.pop();
- if (output.length === 0)
- output.push("");
- }
- appendSlash = true;
- } else {
- appendSlash = "." === segment;
- if (!appendSlash)
- output.push(segment);
- }
- }
- if (appendSlash)
- output.push("");
- return B.JSArray_methods.join$1(output, "/");
- },
- _Uri__normalizeRelativePath(path, allowScheme) {
- var output, t1, t2, appendSlash, _i, segment;
- if (!A._Uri__mayContainDotSegments(path))
- return !allowScheme ? A._Uri__escapeScheme(path) : path;
- output = A._setArrayType([], type$.JSArray_String);
- for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
- segment = t1[_i];
- if (".." === segment) {
- appendSlash = output.length !== 0 && B.JSArray_methods.get$last(output) !== "..";
- if (appendSlash)
- output.pop();
- else
- output.push("..");
- } else {
- appendSlash = "." === segment;
- if (!appendSlash)
- output.push(segment);
- }
- }
- t1 = output.length;
- if (t1 !== 0)
- t1 = t1 === 1 && output[0].length === 0;
- else
- t1 = true;
- if (t1)
- return "./";
- if (appendSlash || B.JSArray_methods.get$last(output) === "..")
- output.push("");
- if (!allowScheme)
- output[0] = A._Uri__escapeScheme(output[0]);
- return B.JSArray_methods.join$1(output, "/");
- },
- _Uri__escapeScheme(path) {
- var i, char,
- t1 = path.length;
- if (t1 >= 2 && A._Uri__isAlphabeticCharacter(path.charCodeAt(0)))
- for (i = 1; i < t1; ++i) {
- char = path.charCodeAt(i);
- if (char === 58)
- return B.JSString_methods.substring$2(path, 0, i) + "%3A" + B.JSString_methods.substring$1(path, i + 1);
- if (char > 127 || (B.List_GVy[char >>> 4] & 1 << (char & 15)) === 0)
- break;
- }
- return path;
- },
- _Uri__packageNameEnd(uri, path) {
- if (uri.isScheme$1("package") && uri._host == null)
- return A._skipPackageNameChars(path, 0, path.length);
- return -1;
- },
- _Uri__toWindowsFilePath(uri) {
- var t2, host,
- segments = uri.get$pathSegments(),
- t1 = segments.length,
- hasDriveLetter = t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58;
- if (hasDriveLetter) {
- A._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
- A._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
- } else
- A._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
- t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "" + "\\" : "";
- if (uri.get$hasAuthority()) {
- host = uri.get$host();
- if (host.length !== 0)
- t2 = t2 + "\\" + host + "\\";
- }
- t2 = A.StringBuffer__writeAll(t2, segments, "\\");
- t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _Uri__hexCharPairToByte(s, pos) {
- var byte, i, charCode;
- for (byte = 0, i = 0; i < 2; ++i) {
- charCode = s.charCodeAt(pos + i);
- if (48 <= charCode && charCode <= 57)
- byte = byte * 16 + charCode - 48;
- else {
- charCode |= 32;
- if (97 <= charCode && charCode <= 102)
- byte = byte * 16 + charCode - 87;
- else
- throw A.wrapException(A.ArgumentError$("Invalid URL encoding", null));
- }
- }
- return byte;
- },
- _Uri__uriDecode(text, start, end, encoding, plusToSpace) {
- var simple, codeUnit, t1, bytes,
- i = start;
- while (true) {
- if (!(i < end)) {
- simple = true;
- break;
- }
- codeUnit = text.charCodeAt(i);
- if (codeUnit <= 127)
- t1 = codeUnit === 37;
- else
- t1 = true;
- if (t1) {
- simple = false;
- break;
- }
- ++i;
- }
- if (simple)
- if (B.C_Utf8Codec === encoding)
- return B.JSString_methods.substring$2(text, start, end);
- else
- bytes = new A.CodeUnits(B.JSString_methods.substring$2(text, start, end));
- else {
- bytes = A._setArrayType([], type$.JSArray_int);
- for (t1 = text.length, i = start; i < end; ++i) {
- codeUnit = text.charCodeAt(i);
- if (codeUnit > 127)
- throw A.wrapException(A.ArgumentError$("Illegal percent encoding in URI", null));
- if (codeUnit === 37) {
- if (i + 3 > t1)
- throw A.wrapException(A.ArgumentError$("Truncated URI", null));
- bytes.push(A._Uri__hexCharPairToByte(text, i + 1));
- i += 2;
- } else
- bytes.push(codeUnit);
- }
- }
- return B.Utf8Decoder_false.convert$1(bytes);
- },
- _Uri__isAlphabeticCharacter(codeUnit) {
- var lowerCase = codeUnit | 32;
- return 97 <= lowerCase && lowerCase <= 122;
- },
- UriData__writeUri(mimeType, charsetName, parameters, buffer, indices) {
- var t1, slashIndex;
- if (mimeType != null)
- t1 = 10 === mimeType.length && A._caseInsensitiveCompareStart("text/plain", mimeType, 0) >= 0;
- else
- t1 = true;
- if (t1)
- mimeType = "";
- if (mimeType.length === 0 || mimeType === "application/octet-stream")
- t1 = buffer._contents += mimeType;
- else {
- slashIndex = A.UriData__validateMimeType(mimeType);
- if (slashIndex < 0)
- throw A.wrapException(A.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
- t1 = A._Uri__uriEncode(B.List_oyU, B.JSString_methods.substring$2(mimeType, 0, slashIndex), B.C_Utf8Codec, false);
- t1 = buffer._contents += t1;
- buffer._contents = t1 + "/";
- t1 = A._Uri__uriEncode(B.List_oyU, B.JSString_methods.substring$1(mimeType, slashIndex + 1), B.C_Utf8Codec, false);
- t1 = buffer._contents += t1;
- }
- if (charsetName != null) {
- indices.push(t1.length);
- indices.push(buffer._contents.length + 8);
- buffer._contents += ";charset=";
- t1 = A._Uri__uriEncode(B.List_oyU, charsetName, B.C_Utf8Codec, false);
- buffer._contents += t1;
- }
- },
- UriData__validateMimeType(mimeType) {
- var t1, slashIndex, i;
- for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
- if (mimeType.charCodeAt(i) !== 47)
- continue;
- if (slashIndex < 0) {
- slashIndex = i;
- continue;
- }
- return -1;
- }
- return slashIndex;
- },
- UriData__parse(text, start, sourceUri) {
- var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
- _s17_ = "Invalid MIME type",
- indices = A._setArrayType([start - 1], type$.JSArray_int);
- for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
- char = text.charCodeAt(i);
- if (char === 44 || char === 59)
- break;
- if (char === 47) {
- if (slashIndex < 0) {
- slashIndex = i;
- continue;
- }
- throw A.wrapException(A.FormatException$(_s17_, text, i));
- }
- }
- if (slashIndex < 0 && i > start)
- throw A.wrapException(A.FormatException$(_s17_, text, i));
- for (; char !== 44;) {
- indices.push(i);
- ++i;
- for (equalsIndex = -1; i < t1; ++i) {
- char = text.charCodeAt(i);
- if (char === 61) {
- if (equalsIndex < 0)
- equalsIndex = i;
- } else if (char === 59 || char === 44)
- break;
- }
- if (equalsIndex >= 0)
- indices.push(equalsIndex);
- else {
- lastSeparator = B.JSArray_methods.get$last(indices);
- if (char !== 44 || i !== lastSeparator + 7 || !B.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
- throw A.wrapException(A.FormatException$("Expecting '='", text, i));
- break;
- }
- }
- indices.push(i);
- t2 = i + 1;
- if ((indices.length & 1) === 1)
- text = B.C_Base64Codec.normalize$3(text, t2, t1);
- else {
- data = A._Uri__normalize(text, t2, t1, B.List_42A, true, false);
- if (data != null)
- text = B.JSString_methods.replaceRange$3(text, t2, t1, data);
- }
- return new A.UriData(text, indices, sourceUri);
- },
- UriData__uriEncodeBytes(canonicalTable, bytes, buffer) {
- var t1, byteOr, i, byte, t2,
- _s16_ = "0123456789ABCDEF";
- for (t1 = bytes.length, byteOr = 0, i = 0; i < t1; ++i) {
- byte = bytes[i];
- byteOr |= byte;
- if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0) {
- t2 = A.Primitives_stringFromCharCode(byte);
- buffer._contents += t2;
- } else {
- t2 = A.Primitives_stringFromCharCode(37);
- buffer._contents += t2;
- t2 = A.Primitives_stringFromCharCode(_s16_.charCodeAt(byte >>> 4));
- buffer._contents += t2;
- t2 = A.Primitives_stringFromCharCode(_s16_.charCodeAt(byte & 15));
- buffer._contents += t2;
- }
- }
- if ((byteOr & 4294967040) !== 0)
- for (i = 0; i < t1; ++i) {
- byte = bytes[i];
- if (byte > 255)
- throw A.wrapException(A.ArgumentError$value(byte, "non-byte value", null));
- }
- },
- _createTables() {
- var _i, t1, t2, t3, b,
- _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
- _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "\\", _s1_3 = "?", _s1_4 = "#", _s2_ = "/\\",
- tables = J.JSArray_JSArray$allocateGrowable(22, type$.Uint8List);
- for (_i = 0; _i < 22; ++_i)
- tables[_i] = new Uint8Array(96);
- t1 = new A._createTables_build(tables);
- t2 = new A._createTables_setChars();
- t3 = new A._createTables_setRange();
- b = t1.call$2(0, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, _s1_, 14);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s1_1, 3);
- t2.call$3(b, _s1_2, 227);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(14, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, _s1_, 15);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s2_, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(15, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, "%", 225);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s1_1, 9);
- t2.call$3(b, _s1_2, 233);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(1, 225);
- t2.call$3(b, _s77_, 1);
- t2.call$3(b, _s1_0, 34);
- t2.call$3(b, _s1_1, 10);
- t2.call$3(b, _s1_2, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(2, 235);
- t2.call$3(b, _s77_, 139);
- t2.call$3(b, _s1_1, 131);
- t2.call$3(b, _s1_2, 131);
- t2.call$3(b, _s1_, 146);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(3, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_1, 68);
- t2.call$3(b, _s1_2, 68);
- t2.call$3(b, _s1_, 18);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(4, 229);
- t2.call$3(b, _s77_, 5);
- t3.call$3(b, "AZ", 229);
- t2.call$3(b, _s1_0, 102);
- t2.call$3(b, "@", 68);
- t2.call$3(b, "[", 232);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 138);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(5, 229);
- t2.call$3(b, _s77_, 5);
- t3.call$3(b, "AZ", 229);
- t2.call$3(b, _s1_0, 102);
- t2.call$3(b, "@", 68);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 138);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(6, 231);
- t3.call$3(b, "19", 7);
- t2.call$3(b, "@", 68);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 138);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(7, 231);
- t3.call$3(b, "09", 7);
- t2.call$3(b, "@", 68);
- t2.call$3(b, _s1_1, 138);
- t2.call$3(b, _s1_2, 138);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- t2.call$3(t1.call$2(8, 8), "]", 5);
- b = t1.call$2(9, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 16);
- t2.call$3(b, _s2_, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(16, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 17);
- t2.call$3(b, _s2_, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(17, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_1, 9);
- t2.call$3(b, _s1_2, 233);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(10, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 18);
- t2.call$3(b, _s1_1, 10);
- t2.call$3(b, _s1_2, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(18, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_, 19);
- t2.call$3(b, _s2_, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(19, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s2_, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(11, 235);
- t2.call$3(b, _s77_, 11);
- t2.call$3(b, _s1_1, 10);
- t2.call$3(b, _s1_2, 234);
- t2.call$3(b, _s1_3, 172);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(12, 236);
- t2.call$3(b, _s77_, 12);
- t2.call$3(b, _s1_3, 12);
- t2.call$3(b, _s1_4, 205);
- b = t1.call$2(13, 237);
- t2.call$3(b, _s77_, 13);
- t2.call$3(b, _s1_3, 13);
- t3.call$3(t1.call$2(20, 245), "az", 21);
- b = t1.call$2(21, 245);
- t3.call$3(b, "az", 21);
- t3.call$3(b, "09", 21);
- t2.call$3(b, "+-.", 21);
- return tables;
- },
- _scan(uri, start, end, state, indices) {
- var i, table, char, transition,
- tables = $.$get$_scannerTables();
- for (i = start; i < end; ++i) {
- table = tables[state];
- char = uri.charCodeAt(i) ^ 96;
- transition = table[char > 95 ? 31 : char];
- state = transition & 31;
- indices[transition >>> 5] = i;
- }
- return state;
- },
- _SimpleUri__packageNameEnd(uri) {
- if (uri._schemeEnd === 7 && B.JSString_methods.startsWith$1(uri._uri, "package") && uri._hostStart <= 0)
- return A._skipPackageNameChars(uri._uri, uri._pathStart, uri._queryStart);
- return -1;
- },
- _skipPackageNameChars(source, start, end) {
- var i, dots, char;
- for (i = start, dots = 0; i < end; ++i) {
- char = source.charCodeAt(i);
- if (char === 47)
- return dots !== 0 ? i : -1;
- if (char === 37 || char === 58)
- return -1;
- dots |= char ^ 46;
- }
- return -1;
- },
- _caseInsensitiveCompareStart(prefix, string, start) {
- var t1, result, i, stringChar, delta, lowerChar;
- for (t1 = prefix.length, result = 0, i = 0; i < t1; ++i) {
- stringChar = string.charCodeAt(start + i);
- delta = prefix.charCodeAt(i) ^ stringChar;
- if (delta !== 0) {
- if (delta === 32) {
- lowerChar = stringChar | delta;
- if (97 <= lowerChar && lowerChar <= 122) {
- result = 32;
- continue;
- }
- }
- return -1;
- }
- }
- return result;
- },
- NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
- this._box_0 = t0;
- this.sb = t1;
- },
- DateTime: function DateTime(t0, t1) {
- this._value = t0;
- this.isUtc = t1;
- },
- Duration: function Duration(t0) {
- this._duration = t0;
- },
- _Enum: function _Enum() {
- },
- Error: function Error() {
- },
- AssertionError: function AssertionError(t0) {
- this.message = t0;
- },
- TypeError: function TypeError() {
- },
- ArgumentError: function ArgumentError(t0, t1, t2, t3) {
- var _ = this;
- _._hasValue = t0;
- _.invalidValue = t1;
- _.name = t2;
- _.message = t3;
- },
- RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.start = t0;
- _.end = t1;
- _._hasValue = t2;
- _.invalidValue = t3;
- _.name = t4;
- _.message = t5;
- },
- IndexError: function IndexError(t0, t1, t2, t3, t4) {
- var _ = this;
- _.length = t0;
- _._hasValue = t1;
- _.invalidValue = t2;
- _.name = t3;
- _.message = t4;
- },
- NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
- var _ = this;
- _._core$_receiver = t0;
- _._memberName = t1;
- _._core$_arguments = t2;
- _._namedArguments = t3;
- },
- UnsupportedError: function UnsupportedError(t0) {
- this.message = t0;
- },
- UnimplementedError: function UnimplementedError(t0) {
- this.message = t0;
- },
- StateError: function StateError(t0) {
- this.message = t0;
- },
- ConcurrentModificationError: function ConcurrentModificationError(t0) {
- this.modifiedObject = t0;
- },
- OutOfMemoryError: function OutOfMemoryError() {
- },
- StackOverflowError: function StackOverflowError() {
- },
- _Exception: function _Exception(t0) {
- this.message = t0;
- },
- FormatException: function FormatException(t0, t1, t2) {
- this.message = t0;
- this.source = t1;
- this.offset = t2;
- },
- Iterable: function Iterable() {
- },
- _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
- this.length = t0;
- this._generator = t1;
- this.$ti = t2;
- },
- MapEntry: function MapEntry(t0, t1, t2) {
- this.key = t0;
- this.value = t1;
- this.$ti = t2;
- },
- Null: function Null() {
- },
- Object: function Object() {
- },
- _StringStackTrace: function _StringStackTrace(t0) {
- this._stackTrace = t0;
- },
- Runes: function Runes(t0) {
- this.string = t0;
- },
- RuneIterator: function RuneIterator(t0) {
- var _ = this;
- _.string = t0;
- _._nextPosition = _._position = 0;
- _._currentCodePoint = -1;
- },
- StringBuffer: function StringBuffer(t0) {
- this._contents = t0;
- },
- Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
- this.host = t0;
- },
- Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
- this.host = t0;
- },
- Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
- this.error = t0;
- this.host = t1;
- },
- _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.scheme = t0;
- _._userInfo = t1;
- _._host = t2;
- _._port = t3;
- _.path = t4;
- _._query = t5;
- _._fragment = t6;
- _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $;
- },
- _Uri__makePath_closure: function _Uri__makePath_closure() {
- },
- UriData: function UriData(t0, t1, t2) {
- this._text = t0;
- this._separatorIndices = t1;
- this._uriCache = t2;
- },
- _createTables_build: function _createTables_build(t0) {
- this.tables = t0;
- },
- _createTables_setChars: function _createTables_setChars() {
- },
- _createTables_setRange: function _createTables_setRange() {
- },
- _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _._uri = t0;
- _._schemeEnd = t1;
- _._hostStart = t2;
- _._portStart = t3;
- _._pathStart = t4;
- _._queryStart = t5;
- _._fragmentStart = t6;
- _._schemeCache = t7;
- _._hashCodeCache = null;
- },
- _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.scheme = t0;
- _._userInfo = t1;
- _._host = t2;
- _._port = t3;
- _.path = t4;
- _._query = t5;
- _._fragment = t6;
- _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $;
- },
- Expando: function Expando(t0) {
- this._jsWeakMap = t0;
- },
- _convertDartFunctionFast(f) {
- var ret,
- existing = f.$dart_jsFunction;
- if (existing != null)
- return existing;
- ret = function(_call, f) {
- return function() {
- return _call(f, Array.prototype.slice.apply(arguments));
- };
- }(A._callDartFunctionFast, f);
- ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
- f.$dart_jsFunction = ret;
- return ret;
- },
- _convertDartFunctionFastCaptureThis(f) {
- var ret,
- existing = f._$dart_jsFunctionCaptureThis;
- if (existing != null)
- return existing;
- ret = function(_call, f) {
- return function() {
- return _call(f, this, Array.prototype.slice.apply(arguments));
- };
- }(A._callDartFunctionFastCaptureThis, f);
- ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
- f._$dart_jsFunctionCaptureThis = ret;
- return ret;
- },
- _callDartFunctionFast(callback, $arguments) {
- return A.Function_apply(callback, $arguments);
- },
- _callDartFunctionFastCaptureThis(callback, $self, $arguments) {
- var t1 = [$self];
- B.JSArray_methods.addAll$1(t1, $arguments);
- return A.Function_apply(callback, t1);
- },
- allowInterop(f) {
- if (typeof f == "function")
- return f;
- else
- return A._convertDartFunctionFast(f);
- },
- allowInteropCaptureThis(f) {
- if (typeof f == "function")
- throw A.wrapException(A.ArgumentError$("Function is already a JS function so cannot capture this.", null));
- else
- return A._convertDartFunctionFastCaptureThis(f);
- },
- _noJsifyRequired(o) {
- return o == null || A._isBool(o) || typeof o == "number" || typeof o == "string" || type$.Int8List._is(o) || type$.Uint8List._is(o) || type$.Uint8ClampedList._is(o) || type$.Int16List._is(o) || type$.Uint16List._is(o) || type$.Int32List._is(o) || type$.Uint32List._is(o) || type$.Float32List._is(o) || type$.Float64List._is(o) || type$.ByteBuffer._is(o) || type$.ByteData._is(o);
- },
- jsify(object) {
- if (A._noJsifyRequired(object))
- return object;
- return new A.jsify__convert(new A._IdentityHashMap(type$._IdentityHashMap_of_nullable_Object_and_nullable_Object)).call$1(object);
- },
- callConstructor(constr, $arguments) {
- var args, factoryFunction;
- if ($arguments instanceof Array)
- switch ($arguments.length) {
- case 0:
- return new constr();
- case 1:
- return new constr($arguments[0]);
- case 2:
- return new constr($arguments[0], $arguments[1]);
- case 3:
- return new constr($arguments[0], $arguments[1], $arguments[2]);
- case 4:
- return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
- }
- args = [null];
- B.JSArray_methods.addAll$1(args, $arguments);
- factoryFunction = constr.bind.apply(constr, args);
- String(factoryFunction);
- return new factoryFunction();
- },
- promiseToFuture0(jsPromise, $T) {
- var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")),
- completer = new A._AsyncCompleter(t1, $T._eval$1("_AsyncCompleter<0>"));
- jsPromise.then(A.convertDartClosureToJS(new A.promiseToFuture_closure1(completer), 1), A.convertDartClosureToJS(new A.promiseToFuture_closure2(completer), 1));
- return t1;
- },
- jsify__convert: function jsify__convert(t0) {
- this._convertedObjects = t0;
- },
- promiseToFuture_closure1: function promiseToFuture_closure1(t0) {
- this.completer = t0;
- },
- promiseToFuture_closure2: function promiseToFuture_closure2(t0) {
- this.completer = t0;
- },
- NullRejectionException: function NullRejectionException(t0) {
- this.isUndefined = t0;
- },
- max(a, b) {
- return Math.max(a, b);
- },
- pow(x, exponent) {
- return Math.pow(x, exponent);
- },
- Random_Random() {
- return B.C__JSRandom;
- },
- _JSRandom: function _JSRandom() {
- },
- ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._arg_parser$_options = t0;
- _._aliases = t1;
- _.options = t2;
- _.commands = t3;
- _._optionsAndSeparators = t4;
- _.allowTrailingOptions = t5;
- _.usageLineLength = t6;
- },
- ArgParser__addOption_closure: function ArgParser__addOption_closure(t0) {
- this.$this = t0;
- },
- ArgParserException$(message, commands) {
- return new A.ArgParserException(commands == null ? B.List_empty : A.List_List$unmodifiable(commands, type$.String), message, null, null);
- },
- ArgParserException: function ArgParserException(t0, t1, t2, t3) {
- var _ = this;
- _.commands = t0;
- _.message = t1;
- _.source = t2;
- _.offset = t3;
- },
- ArgResults: function ArgResults(t0, t1, t2, t3) {
- var _ = this;
- _._parser = t0;
- _._parsed = t1;
- _.name = t2;
- _.rest = t3;
- },
- Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
- var _ = this;
- _.name = t0;
- _.abbr = t1;
- _.help = t2;
- _.valueHelp = t3;
- _.allowed = t4;
- _.allowedHelp = t5;
- _.defaultsTo = t6;
- _.negatable = t7;
- _.callback = t8;
- _.type = t9;
- _.splitCommas = t10;
- _.mandatory = t11;
- _.hide = t12;
- },
- OptionType: function OptionType(t0) {
- this.name = t0;
- },
- Parser$(_commandName, _grammar, _args, _parent, rest) {
- var t1 = A._setArrayType([], type$.JSArray_String);
- if (rest != null)
- B.JSArray_methods.addAll$1(t1, rest);
- return new A.Parser0(_commandName, _parent, _grammar, _args, t1, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
- },
- _isLetterOrDigit(codeUnit) {
- var t1;
- if (!(codeUnit >= 65 && codeUnit <= 90))
- if (!(codeUnit >= 97 && codeUnit <= 122))
- t1 = codeUnit >= 48 && codeUnit <= 57;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._commandName = t0;
- _._parser$_parent = t1;
- _._grammar = t2;
- _._args = t3;
- _._parser$_rest = t4;
- _._results = t5;
- },
- Parser_parse_closure: function Parser_parse_closure(t0) {
- this.$this = t0;
- },
- Parser__setOption_closure: function Parser__setOption_closure() {
- },
- _Usage: function _Usage(t0, t1, t2) {
- var _ = this;
- _._usage$_optionsAndSeparators = t0;
- _._usage$_buffer = t1;
- _._currentColumn = 0;
- _.___Usage__columnWidths_FI = $;
- _._newlinesNeeded = 0;
- _.lineLength = t2;
- },
- _Usage__writeOption_closure: function _Usage__writeOption_closure() {
- },
- _Usage__buildAllowedList_closure: function _Usage__buildAllowedList_closure(t0) {
- this.option = t0;
- },
- FutureGroup: function FutureGroup(t0, t1, t2) {
- var _ = this;
- _._future_group$_pending = 0;
- _._future_group$_closed = false;
- _._future_group$_completer = t0;
- _._future_group$_values = t1;
- _.$ti = t2;
- },
- FutureGroup_add_closure: function FutureGroup_add_closure(t0, t1) {
- this.$this = t0;
- this.index = t1;
- },
- FutureGroup_add_closure0: function FutureGroup_add_closure0(t0) {
- this.$this = t0;
- },
- ErrorResult: function ErrorResult(t0, t1) {
- this.error = t0;
- this.stackTrace = t1;
- },
- ValueResult: function ValueResult(t0, t1) {
- this.value = t0;
- this.$ti = t1;
- },
- StreamCompleter: function StreamCompleter(t0, t1) {
- this._stream_completer$_stream = t0;
- this.$ti = t1;
- },
- _CompleterStream: function _CompleterStream(t0) {
- this._sourceStream = this._stream_completer$_controller = null;
- this.$ti = t0;
- },
- StreamGroup: function StreamGroup(t0, t1, t2) {
- var _ = this;
- _.__StreamGroup__controller_A = $;
- _._closed = false;
- _._stream_group$_state = t0;
- _._subscriptions = t1;
- _.$ti = t2;
- },
- StreamGroup_add_closure: function StreamGroup_add_closure() {
- },
- StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
- this.$this = t0;
- this.stream = t1;
- },
- StreamGroup__onListen_closure: function StreamGroup__onListen_closure() {
- },
- StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure(t0) {
- this.$this = t0;
- },
- StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
- this.$this = t0;
- this.stream = t1;
- },
- _StreamGroupState: function _StreamGroupState(t0) {
- this.name = t0;
- },
- StreamQueue: function StreamQueue(t0, t1, t2, t3) {
- var _ = this;
- _._stream_queue$_source = t0;
- _._stream_queue$_subscription = null;
- _._isDone = false;
- _._eventsReceived = 0;
- _._eventQueue = t1;
- _._requestQueue = t2;
- _.$ti = t3;
- },
- StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
- this.$this = t0;
- },
- StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
- this.$this = t0;
- },
- StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
- this.$this = t0;
- },
- _NextRequest: function _NextRequest(t0, t1) {
- this._completer = t0;
- this.$ti = t1;
- },
- isNodeJs() {
- var t1 = self.process;
- if (t1 == null)
- t1 = null;
- else {
- t1 = J.get$release$x(t1);
- t1 = t1 == null ? null : J.get$name$x(t1);
- }
- return J.$eq$(t1, "node");
- },
- isBrowser() {
- return !A.isNodeJs() && self.document != null && typeof self.document.querySelector == "function";
- },
- wrapJSExceptions(callback) {
- var error, error0, error1, error2, t1, exception;
- if (!$.$get$_isStrictMode())
- return callback.call$0();
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (typeof t1 == "string") {
- error = t1;
- throw A.wrapException(error);
- } else if (A._isBool(t1)) {
- error0 = t1;
- throw A.wrapException(error0);
- } else if (typeof t1 == "number") {
- error1 = t1;
- throw A.wrapException(error1);
- } else {
- error2 = t1;
- if (typeof error2 == "symbol" || typeof error2 == "bigint" || error2 == null)
- throw A.wrapException(error2.toString());
- throw exception;
- }
- }
- },
- _isStrictMode_closure: function _isStrictMode_closure() {
- },
- Repl: function Repl(t0, t1, t2, t3) {
- var _ = this;
- _.prompt = t0;
- _.continuation = t1;
- _.validator = t2;
- _.__Repl__adapter_A = $;
- _.history = t3;
- },
- alwaysValid_closure: function alwaysValid_closure() {
- },
- ReplAdapter: function ReplAdapter(t0) {
- this.repl = t0;
- this.rl = null;
- },
- ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.rl = t2;
- _.runController = t3;
- },
- ReplAdapter_runAsync__closure: function ReplAdapter_runAsync__closure(t0) {
- this.lineController = t0;
- },
- Stdin: function Stdin() {
- },
- Stdout: function Stdout() {
- },
- ReadlineModule: function ReadlineModule() {
- },
- ReadlineOptions: function ReadlineOptions() {
- },
- ReadlineInterface: function ReadlineInterface() {
- },
- EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) {
- this.$ti = t0;
- },
- _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin: function _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin() {
- },
- DefaultEquality: function DefaultEquality() {
- },
- IterableEquality: function IterableEquality() {
- },
- ListEquality: function ListEquality() {
- },
- _MapEntry: function _MapEntry(t0, t1, t2) {
- this.equality = t0;
- this.key = t1;
- this.value = t2;
- },
- MapEquality: function MapEquality(t0) {
- this.$ti = t0;
- },
- QueueList$(initialCapacity, $E) {
- return new A.QueueList(A.List_List$filled(A.QueueList__computeInitialCapacity(initialCapacity), null, false, $E._eval$1("0?")), 0, 0, $E._eval$1("QueueList<0>"));
- },
- QueueList_QueueList$from(source, $E) {
- var $length, queue, t1;
- if (type$.List_dynamic._is(source)) {
- $length = J.get$length$asx(source);
- queue = A.QueueList$($length + 1, $E);
- J.setRange$4$ax(queue._queue_list$_table, 0, $length, source, 0);
- queue._queue_list$_tail = $length;
- return queue;
- } else {
- t1 = A.QueueList$(null, $E);
- t1.addAll$1(0, source);
- return t1;
- }
- },
- QueueList__computeInitialCapacity(initialCapacity) {
- if (initialCapacity == null || initialCapacity < 8)
- return 8;
- ++initialCapacity;
- if ((initialCapacity & initialCapacity - 1) >>> 0 === 0)
- return initialCapacity;
- return A.QueueList__nextPowerOf2(initialCapacity);
- },
- QueueList__nextPowerOf2(number) {
- var nextNumber;
- number = (number << 1 >>> 0) - 1;
- for (; true; number = nextNumber) {
- nextNumber = (number & number - 1) >>> 0;
- if (nextNumber === 0)
- return number;
- }
- },
- QueueList: function QueueList(t0, t1, t2, t3) {
- var _ = this;
- _._queue_list$_table = t0;
- _._queue_list$_head = t1;
- _._queue_list$_tail = t2;
- _.$ti = t3;
- },
- _CastQueueList: function _CastQueueList(t0, t1, t2, t3, t4) {
- var _ = this;
- _._queue_list$_delegate = t0;
- _._queue_list$_table = t1;
- _._queue_list$_head = t2;
- _._queue_list$_tail = t3;
- _.$ti = t4;
- },
- _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
- },
- UnionSet: function UnionSet(t0, t1) {
- this._sets = t0;
- this.$ti = t1;
- },
- UnionSet__iterable_closure: function UnionSet__iterable_closure(t0) {
- this.$this = t0;
- },
- UnionSet_contains_closure: function UnionSet_contains_closure(t0, t1) {
- this.$this = t0;
- this.element = t1;
- },
- _UnionSet_SetBase_UnmodifiableSetMixin: function _UnionSet_SetBase_UnmodifiableSetMixin() {
- },
- UnmodifiableSetMixin__throw() {
- throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable Set"));
- },
- UnmodifiableSetView0: function UnmodifiableSetView0(t0, t1) {
- this._base = t0;
- this.$ti = t1;
- },
- UnmodifiableSetMixin: function UnmodifiableSetMixin() {
- },
- _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
- },
- _DelegatingIterableBase: function _DelegatingIterableBase() {
- },
- DelegatingSet: function DelegatingSet(t0, t1) {
- this._base = t0;
- this.$ti = t1;
- },
- MapKeySet: function MapKeySet(t0, t1) {
- this._baseMap = t0;
- this.$ti = t1;
- },
- MapKeySet_difference_closure: function MapKeySet_difference_closure(t0, t1) {
- this.$this = t0;
- this.other = t1;
- },
- _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() {
- },
- BufferModule: function BufferModule() {
- },
- BufferConstants: function BufferConstants() {
- },
- Buffer: function Buffer() {
- },
- ConsoleModule: function ConsoleModule() {
- },
- Console: function Console() {
- },
- EventEmitter: function EventEmitter() {
- },
- fs() {
- var t1 = $._fs;
- return t1 == null ? $._fs = self.fs : t1;
- },
- FS: function FS() {
- },
- FSConstants: function FSConstants() {
- },
- FSWatcher: function FSWatcher() {
- },
- ReadStream: function ReadStream() {
- },
- ReadStreamOptions: function ReadStreamOptions() {
- },
- WriteStream: function WriteStream() {
- },
- WriteStreamOptions: function WriteStreamOptions() {
- },
- FileOptions: function FileOptions() {
- },
- StatOptions: function StatOptions() {
- },
- MkdirOptions: function MkdirOptions() {
- },
- RmdirOptions: function RmdirOptions() {
- },
- WatchOptions: function WatchOptions() {
- },
- WatchFileOptions: function WatchFileOptions() {
- },
- Stats: function Stats() {
- },
- Promise: function Promise() {
- },
- Date: function Date() {
- },
- JsError: function JsError() {
- },
- Atomics: function Atomics() {
- },
- Modules: function Modules() {
- },
- Module: function Module() {
- },
- Net: function Net() {
- },
- Socket: function Socket() {
- },
- NetAddress: function NetAddress() {
- },
- NetServer: function NetServer() {
- },
- NodeJsError: function NodeJsError() {
- },
- JsAssertionError: function JsAssertionError() {
- },
- JsRangeError: function JsRangeError() {
- },
- JsReferenceError: function JsReferenceError() {
- },
- JsSyntaxError: function JsSyntaxError() {
- },
- JsTypeError: function JsTypeError() {
- },
- JsSystemError: function JsSystemError() {
- },
- Process: function Process() {
- },
- CPUUsage: function CPUUsage() {
- },
- Release: function Release() {
- },
- StreamModule: function StreamModule() {
- },
- Readable: function Readable() {
- },
- Writable: function Writable() {
- },
- Duplex: function Duplex() {
- },
- Transform: function Transform() {
- },
- WritableOptions: function WritableOptions() {
- },
- ReadableOptions: function ReadableOptions() {
- },
- Immediate: function Immediate() {
- },
- Timeout: function Timeout() {
- },
- TTY: function TTY() {
- },
- TTYReadStream: function TTYReadStream() {
- },
- TTYWriteStream: function TTYWriteStream() {
- },
- jsify0(dartObject) {
- if (A._isBasicType(dartObject))
- return dartObject;
- return A.jsify(dartObject);
- },
- _isBasicType(value) {
- return false;
- },
- promiseToFuture(promise, $T) {
- var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")),
- completer = new A._SyncCompleter(t1, $T._eval$1("_SyncCompleter<0>"));
- J.then$2$x(promise, A.allowInterop(new A.promiseToFuture_closure(completer)), A.allowInterop(new A.promiseToFuture_closure0(completer)));
- return t1;
- },
- futureToPromise(future, $T) {
- return new self.Promise(A.allowInterop(new A.futureToPromise_closure(future, $T)));
- },
- Util: function Util() {
- },
- promiseToFuture_closure: function promiseToFuture_closure(t0) {
- this.completer = t0;
- },
- promiseToFuture_closure0: function promiseToFuture_closure0(t0) {
- this.completer = t0;
- },
- futureToPromise_closure: function futureToPromise_closure(t0, t1) {
- this.future = t0;
- this.T = t1;
- },
- futureToPromise__closure: function futureToPromise__closure(t0, t1) {
- this.resolve = t0;
- this.T = t1;
- },
- Context_Context(style) {
- return new A.Context(style, ".");
- },
- _parseUri(uri) {
- if (typeof uri == "string")
- return A.Uri_parse(uri);
- if (type$.Uri._is(uri))
- return uri;
- throw A.wrapException(A.ArgumentError$value(uri, "uri", "Value must be a String or a Uri"));
- },
- _validateArgList(method, args) {
- var numArgs, i, numArgs0, message, t1, t2, t3, t4;
- for (numArgs = args.length, i = 1; i < numArgs; ++i) {
- if (args[i] == null || args[i - 1] != null)
- continue;
- for (; numArgs >= 1; numArgs = numArgs0) {
- numArgs0 = numArgs - 1;
- if (args[numArgs0] != null)
- break;
- }
- message = new A.StringBuffer("");
- t1 = "" + (method + "(");
- message._contents = t1;
- t2 = A._arrayInstanceType(args);
- t3 = t2._eval$1("SubListIterable<1>");
- t4 = new A.SubListIterable(args, 0, numArgs, t3);
- t4.SubListIterable$3(args, 0, numArgs, t2._precomputed1);
- t3 = t1 + new A.MappedListIterable(t4, new A._validateArgList_closure(), t3._eval$1("MappedListIterable<ListIterable.E,String>")).join$1(0, ", ");
- message._contents = t3;
- message._contents = t3 + ("): part " + (i - 1) + " was null, but part " + i + " was not.");
- throw A.wrapException(A.ArgumentError$(message.toString$0(0), null));
- }
- },
- Context: function Context(t0, t1) {
- this.style = t0;
- this._context$_current = t1;
- },
- Context_joinAll_closure: function Context_joinAll_closure() {
- },
- Context_split_closure: function Context_split_closure() {
- },
- _validateArgList_closure: function _validateArgList_closure() {
- },
- _PathDirection: function _PathDirection(t0) {
- this.name = t0;
- },
- _PathRelation: function _PathRelation(t0) {
- this.name = t0;
- },
- InternalStyle: function InternalStyle() {
- },
- ParsedPath_ParsedPath$parse(path, style) {
- var t1, parts, separators, start, i,
- root = style.getRoot$1(path),
- isRootRelative = style.isRootRelative$1(path);
- if (root != null)
- path = B.JSString_methods.substring$1(path, root.length);
- t1 = type$.JSArray_String;
- parts = A._setArrayType([], t1);
- separators = A._setArrayType([], t1);
- t1 = path.length;
- if (t1 !== 0 && style.isSeparator$1(path.charCodeAt(0))) {
- separators.push(path[0]);
- start = 1;
- } else {
- separators.push("");
- start = 0;
- }
- for (i = start; i < t1; ++i)
- if (style.isSeparator$1(path.charCodeAt(i))) {
- parts.push(B.JSString_methods.substring$2(path, start, i));
- separators.push(path[i]);
- start = i + 1;
- }
- if (start < t1) {
- parts.push(B.JSString_methods.substring$1(path, start));
- separators.push("");
- }
- return new A.ParsedPath(style, root, isRootRelative, parts, separators);
- },
- ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) {
- var _ = this;
- _.style = t0;
- _.root = t1;
- _.isRootRelative = t2;
- _.parts = t3;
- _.separators = t4;
- },
- ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() {
- },
- ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() {
- },
- PathException$(message) {
- return new A.PathException(message);
- },
- PathException: function PathException(t0) {
- this.message = t0;
- },
- PathMap__create(context, $V) {
- var t1 = {};
- t1.context = context;
- t1.context = $.$get$context();
- return A.LinkedHashMap_LinkedHashMap(new A.PathMap__create_closure(t1), new A.PathMap__create_closure0(t1), new A.PathMap__create_closure1(), type$.nullable_String, $V);
- },
- PathMap: function PathMap(t0, t1) {
- this._map = t0;
- this.$ti = t1;
- },
- PathMap__create_closure: function PathMap__create_closure(t0) {
- this._box_0 = t0;
- },
- PathMap__create_closure0: function PathMap__create_closure0(t0) {
- this._box_0 = t0;
- },
- PathMap__create_closure1: function PathMap__create_closure1() {
- },
- Style__getPlatformStyle() {
- if (A.Uri_base().get$scheme() !== "file")
- return $.$get$Style_url();
- var t1 = A.Uri_base();
- if (!B.JSString_methods.endsWith$1(t1.get$path(t1), "/"))
- return $.$get$Style_url();
- if (A._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b")
- return $.$get$Style_windows();
- return $.$get$Style_posix();
- },
- Style: function Style() {
- },
- PosixStyle: function PosixStyle(t0, t1, t2) {
- this.separatorPattern = t0;
- this.needsSeparatorPattern = t1;
- this.rootPattern = t2;
- },
- UrlStyle: function UrlStyle(t0, t1, t2, t3) {
- var _ = this;
- _.separatorPattern = t0;
- _.needsSeparatorPattern = t1;
- _.rootPattern = t2;
- _.relativeRootPattern = t3;
- },
- WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
- var _ = this;
- _.separatorPattern = t0;
- _.needsSeparatorPattern = t1;
- _.rootPattern = t2;
- _.relativeRootPattern = t3;
- },
- WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
- },
- Version$_(major, minor, patch, preRelease, build, _text) {
- var t1 = preRelease == null ? A._setArrayType([], type$.JSArray_Object) : A.Version__splitParts(preRelease),
- t2 = build == null ? A._setArrayType([], type$.JSArray_Object) : A.Version__splitParts(build);
- if (major < 0)
- A.throwExpression(A.ArgumentError$("Major version must be non-negative.", null));
- if (minor < 0)
- A.throwExpression(A.ArgumentError$("Minor version must be non-negative.", null));
- if (patch < 0)
- A.throwExpression(A.ArgumentError$("Patch version must be non-negative.", null));
- return new A.Version(major, minor, patch, t1, t2, _text);
- },
- Version_Version(major, minor, patch, pre) {
- var text = "" + major + "." + minor + "." + patch;
- if (pre != null)
- text += "-" + pre;
- return A.Version$_(major, minor, patch, pre, null, text);
- },
- Version___parse_tearOff(text) {
- return A.Version_Version$parse(text);
- },
- Version_Version$parse(text) {
- var major, minor, patch, preRelease, build, t1, exception, _null = null,
- _s17_ = 'Could not parse "',
- match = $.$get$completeVersion().firstMatch$1(text);
- if (match == null)
- throw A.wrapException(A.FormatException$(_s17_ + text + '".', _null, _null));
- try {
- t1 = match._match[1];
- t1.toString;
- major = A.int_parse(t1, _null);
- t1 = match._match[2];
- t1.toString;
- minor = A.int_parse(t1, _null);
- t1 = match._match[3];
- t1.toString;
- patch = A.int_parse(t1, _null);
- preRelease = match._match[5];
- build = match._match[8];
- t1 = A.Version$_(major, minor, patch, preRelease, build, text);
- return t1;
- } catch (exception) {
- if (type$.FormatException._is(A.unwrapException(exception)))
- throw A.wrapException(A.FormatException$(_s17_ + text + '".', _null, _null));
- else
- throw exception;
- }
- },
- Version__splitParts(text) {
- var t1 = type$.MappedListIterable_String_Object;
- return A.List_List$of(new A.MappedListIterable(A._setArrayType(text.split("."), type$.JSArray_String), new A.Version__splitParts_closure(), t1), true, t1._eval$1("ListIterable.E"));
- },
- Version: function Version(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.major = t0;
- _.minor = t1;
- _.patch = t2;
- _.preRelease = t3;
- _.build = t4;
- _._version$_text = t5;
- },
- Version__splitParts_closure: function Version__splitParts_closure() {
- },
- VersionRange_VersionRange(includeMax, max) {
- return new A.VersionRange(null, max, false, true);
- },
- VersionRange: function VersionRange(t0, t1, t2, t3) {
- var _ = this;
- _.min = t0;
- _.max = t1;
- _.includeMin = t2;
- _.includeMax = t3;
- },
- CssMediaQuery_parseList(contents, interpolationMap, logger) {
- var t1 = A.SpanScanner$(contents, null);
- return new A.MediaQueryParser(t1, logger, interpolationMap).parse$0();
- },
- CssMediaQuery$type(type, conditions, modifier) {
- return new A.CssMediaQuery(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String));
- },
- CssMediaQuery$condition(conditions, conjunction) {
- var t1 = A.List_List$unmodifiable(conditions, type$.String);
- if (t1.length > 1 && conjunction == null)
- A.throwExpression(A.ArgumentError$(string$.If_con, null));
- return new A.CssMediaQuery(null, null, conjunction !== false, t1);
- },
- CssMediaQuery: function CssMediaQuery(t0, t1, t2, t3) {
- var _ = this;
- _.modifier = t0;
- _.type = t1;
- _.conjunction = t2;
- _.conditions = t3;
- },
- _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
- this._name = t0;
- },
- MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
- this.query = t0;
- },
- ModifiableCssAtRule$($name, span, childless, value) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
- return new A.ModifiableCssAtRule($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.isChildless = t2;
- _.span = t3;
- _.children = t4;
- _._children = t5;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssComment: function ModifiableCssComment(t0, t1) {
- var _ = this;
- _.text = t0;
- _.span = t1;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssDeclaration$($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
- var t2,
- t1 = valueSpanForMap == null ? value.span : valueSpanForMap;
- if (parsedAsCustomProperty)
- if (!J.startsWith$1$s($name.value, "--"))
- A.throwExpression(A.ArgumentError$(string$.parsed, null));
- else {
- t2 = value.value;
- if (!(t2 instanceof A.SassString))
- A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeTypeOfDartObject(t2).toString$0(0) + ").", null));
- }
- return new A.ModifiableCssDeclaration($name, value, parsedAsCustomProperty, t1, span);
- },
- ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.parsedAsCustomProperty = t2;
- _.valueSpanForMap = t3;
- _.span = t4;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssImport: function ModifiableCssImport(t0, t1, t2) {
- var _ = this;
- _.url = t0;
- _.modifiers = t1;
- _.span = t2;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssKeyframeBlock$(selector, span) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
- return new A.ModifiableCssKeyframeBlock(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _._children = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssMediaRule$(queries, span) {
- var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery),
- t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
- if (J.get$isEmpty$asx(queries))
- A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty."));
- return new A.ModifiableCssMediaRule(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
- },
- ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
- var _ = this;
- _.queries = t0;
- _.span = t1;
- _.children = t2;
- _._children = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssNode: function ModifiableCssNode() {
- },
- ModifiableCssNode_hasFollowingSibling_closure: function ModifiableCssNode_hasFollowingSibling_closure() {
- },
- ModifiableCssParentNode: function ModifiableCssParentNode() {
- },
- ModifiableCssStyleRule$(_selector, span, fromPlainCss, originalSelector) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
- return new A.ModifiableCssStyleRule(_selector, originalSelector, span, fromPlainCss, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._style_rule$_selector = t0;
- _.originalSelector = t1;
- _.span = t2;
- _.fromPlainCss = t3;
- _.children = t4;
- _._children = t5;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssStylesheet$(span) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
- return new A.ModifiableCssStylesheet(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
- var _ = this;
- _.span = t0;
- _.children = t1;
- _._children = t2;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- ModifiableCssSupportsRule$(condition, span) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
- return new A.ModifiableCssSupportsRule(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
- },
- ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _._children = t3;
- _._indexInParent = _._parent = null;
- _.isGroupEnd = false;
- },
- CssNode: function CssNode() {
- },
- CssParentNode: function CssParentNode() {
- },
- _IsInvisibleVisitor: function _IsInvisibleVisitor(t0, t1) {
- this.includeBogus = t0;
- this.includeComments = t1;
- },
- __IsInvisibleVisitor_Object_EveryCssVisitor: function __IsInvisibleVisitor_Object_EveryCssVisitor() {
- },
- CssStylesheet: function CssStylesheet(t0, t1) {
- this.children = t0;
- this.span = t1;
- },
- CssValue: function CssValue(t0, t1, t2) {
- this.value = t0;
- this.span = t1;
- this.$ti = t2;
- },
- _FakeAstNode: function _FakeAstNode(t0) {
- this._callback = t0;
- },
- Argument: function Argument(t0, t1, t2) {
- this.name = t0;
- this.defaultValue = t1;
- this.span = t2;
- },
- ArgumentDeclaration_ArgumentDeclaration$parse(contents, url) {
- return A.ScssParser$(contents, null, url).parseArgumentDeclaration$0();
- },
- ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) {
- this.$arguments = t0;
- this.restArgument = t1;
- this.span = t2;
- },
- ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() {
- },
- ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() {
- },
- ArgumentInvocation$empty(span) {
- return new A.ArgumentInvocation(B.List_empty9, B.Map_empty6, null, null, span);
- },
- ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.named = t1;
- _.rest = t2;
- _.keywordRest = t3;
- _.span = t4;
- },
- AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
- var _ = this;
- _.include = t0;
- _.names = t1;
- _._all = t2;
- _._at_root_query$_rule = t3;
- },
- ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.expression = t1;
- _.isGuarded = t2;
- _.span = t3;
- },
- _IsCalculationSafeVisitor: function _IsCalculationSafeVisitor() {
- },
- _IsCalculationSafeVisitor_visitListExpression_closure: function _IsCalculationSafeVisitor_visitListExpression_closure(t0) {
- this.$this = t0;
- },
- BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
- var _ = this;
- _.operator = t0;
- _.left = t1;
- _.right = t2;
- _.allowsSlash = t3;
- },
- BinaryOperator: function BinaryOperator(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.operator = t1;
- _.precedence = t2;
- _.isAssociative = t3;
- _._name = t4;
- },
- BooleanExpression: function BooleanExpression(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- ColorExpression: function ColorExpression(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- FunctionExpression: function FunctionExpression(t0, t1, t2, t3, t4) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.originalName = t2;
- _.$arguments = t3;
- _.span = t4;
- },
- IfExpression: function IfExpression(t0, t1) {
- this.$arguments = t0;
- this.span = t1;
- },
- InterpolatedFunctionExpression: function InterpolatedFunctionExpression(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.span = t2;
- },
- ListExpression: function ListExpression(t0, t1, t2, t3) {
- var _ = this;
- _.contents = t0;
- _.separator = t1;
- _.hasBrackets = t2;
- _.span = t3;
- },
- ListExpression_toString_closure: function ListExpression_toString_closure(t0) {
- this.$this = t0;
- },
- MapExpression: function MapExpression(t0, t1) {
- this.pairs = t0;
- this.span = t1;
- },
- NullExpression: function NullExpression(t0) {
- this.span = t0;
- },
- NumberExpression: function NumberExpression(t0, t1, t2) {
- this.value = t0;
- this.unit = t1;
- this.span = t2;
- },
- ParenthesizedExpression: function ParenthesizedExpression(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- SelectorExpression: function SelectorExpression(t0) {
- this.span = t0;
- },
- StringExpression_quoteText(text) {
- var t1,
- quote = A.StringExpression__bestQuote(A._setArrayType([text], type$.JSArray_String)),
- buffer = new A.StringBuffer("");
- buffer._contents = "" + A.Primitives_stringFromCharCode(quote);
- A.StringExpression__quoteInnerText(text, quote, buffer, true);
- t1 = A.Primitives_stringFromCharCode(quote);
- t1 = buffer._contents += t1;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- StringExpression__quoteInnerText(text, quote, buffer, $static) {
- var t1, t2, i, _1_0, _0_0, t3, t4, t0;
- for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) {
- _1_0 = text.charCodeAt(i);
- if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(97);
- if (i !== t2) {
- _0_0 = text.charCodeAt(i + 1);
- if (!(_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12))
- if (!(_0_0 >= 48 && _0_0 <= 57))
- if (!(_0_0 >= 97 && _0_0 <= 102))
- t3 = _0_0 >= 65 && _0_0 <= 70;
- else
- t3 = true;
- else
- t3 = true;
- else
- t3 = true;
- if (t3)
- buffer.writeCharCode$1(32);
- }
- continue;
- }
- t3 = 92 === _1_0;
- if (t3)
- t4 = _1_0;
- else
- t4 = null;
- if (!t3) {
- t3 = _1_0 === quote;
- if (t3)
- t4 = _1_0;
- t0 = t4;
- t4 = t3;
- t3 = t0;
- if (!t4)
- if (35 === _1_0)
- if ($static)
- if (i < t2) {
- t4 = text.charCodeAt(i + 1) === 123;
- if (t4)
- t3 = _1_0;
- } else
- t4 = false;
- else
- t4 = false;
- else
- t4 = false;
- else
- t4 = true;
- } else {
- t3 = t4;
- t4 = true;
- }
- if (t4) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(t3);
- continue;
- }
- buffer.writeCharCode$1(_1_0);
- }
- },
- StringExpression__bestQuote(strings) {
- var t1, t2, t3, containsDoubleQuote, t4, t5;
- for (t1 = J.get$iterator$ax(strings), t2 = type$.CodeUnits, t3 = t2._eval$1("ListIterator<ListBase.E>"), t2 = t2._eval$1("ListBase.E"), containsDoubleQuote = false; t1.moveNext$0();)
- for (t4 = new A.CodeUnits(t1.get$current(t1)), t4 = new A.ListIterator(t4, t4.get$length(0), t3); t4.moveNext$0();) {
- t5 = t4.__internal$_current;
- if (t5 == null)
- t5 = t2._as(t5);
- if (t5 === 39)
- return 34;
- if (t5 === 34)
- containsDoubleQuote = true;
- }
- return containsDoubleQuote ? 39 : 34;
- },
- StringExpression: function StringExpression(t0, t1) {
- this.text = t0;
- this.hasQuotes = t1;
- },
- SupportsExpression: function SupportsExpression(t0) {
- this.condition = t0;
- },
- UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) {
- this.operator = t0;
- this.operand = t1;
- this.span = t2;
- },
- UnaryOperator: function UnaryOperator(t0, t1, t2) {
- this.name = t0;
- this.operator = t1;
- this._name = t2;
- },
- ValueExpression: function ValueExpression(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- VariableExpression: function VariableExpression(t0, t1, t2) {
- this.namespace = t0;
- this.name = t1;
- this.span = t2;
- },
- DynamicImport: function DynamicImport(t0, t1) {
- this.urlString = t0;
- this.span = t1;
- },
- StaticImport: function StaticImport(t0, t1, t2) {
- this.url = t0;
- this.modifiers = t1;
- this.span = t2;
- },
- Interpolation$(contents, span) {
- var t1 = new A.Interpolation(A.List_List$unmodifiable(contents, type$.Object), span);
- t1.Interpolation$2(contents, span);
- return t1;
- },
- Interpolation: function Interpolation(t0, t1) {
- this.contents = t0;
- this.span = t1;
- },
- Interpolation_toString_closure: function Interpolation_toString_closure() {
- },
- AtRootRule$(children, span, query) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.AtRootRule(query, span, t1, t2);
- },
- AtRootRule: function AtRootRule(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- AtRule$($name, span, children, value) {
- var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement),
- t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.AtRule($name, value, span, t1, t2 === true);
- },
- AtRule: function AtRule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- CallableDeclaration: function CallableDeclaration() {
- },
- ContentBlock$($arguments, children, span) {
- var _s8_ = "@content",
- t1 = A.stringReplaceAllUnchecked(_s8_, "_", "-"),
- t2 = A.List_List$unmodifiable(children, type$.Statement),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
- return new A.ContentBlock(t1, _s8_, $arguments, span, t2, t3);
- },
- ContentBlock: function ContentBlock(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.originalName = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- ContentRule: function ContentRule(t0, t1) {
- this.$arguments = t0;
- this.span = t1;
- },
- DebugRule: function DebugRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- Declaration$($name, value, span) {
- return new A.Declaration($name, value, span, null, false);
- },
- Declaration$nested($name, children, span, value) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.Declaration($name, value, span, t1, t2);
- },
- Declaration: function Declaration(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- EachRule$(variables, list, children, span) {
- var t1 = A.List_List$unmodifiable(variables, type$.String),
- t2 = A.List_List$unmodifiable(children, type$.Statement),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
- return new A.EachRule(t1, list, span, t2, t3);
- },
- EachRule: function EachRule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.variables = t0;
- _.list = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- EachRule_toString_closure: function EachRule_toString_closure() {
- },
- ErrorRule: function ErrorRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- ExtendRule: function ExtendRule(t0, t1, t2) {
- this.selector = t0;
- this.isOptional = t1;
- this.span = t2;
- },
- ForRule$(variable, from, to, children, span, exclusive) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.ForRule(variable, from, to, exclusive, span, t1, t2);
- },
- ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.variable = t0;
- _.from = t1;
- _.to = t2;
- _.isExclusive = t3;
- _.span = t4;
- _.children = t5;
- _.hasDeclarations = t6;
- },
- ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _.url = t0;
- _.shownMixinsAndFunctions = t1;
- _.shownVariables = t2;
- _.hiddenMixinsAndFunctions = t3;
- _.hiddenVariables = t4;
- _.prefix = t5;
- _.configuration = t6;
- _.span = t7;
- },
- FunctionRule$($name, $arguments, children, span, comment) {
- var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
- t2 = A.List_List$unmodifiable(children, type$.Statement),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
- return new A.FunctionRule(t1, $name, $arguments, span, t2, t3);
- },
- FunctionRule: function FunctionRule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.originalName = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- IfClause$(expression, children) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement);
- return new A.IfClause(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure()));
- },
- ElseClause$(children) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement);
- return new A.ElseClause(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure()));
- },
- IfRule: function IfRule(t0, t1, t2) {
- this.clauses = t0;
- this.lastClause = t1;
- this.span = t2;
- },
- IfRule_toString_closure: function IfRule_toString_closure() {
- },
- IfRuleClause: function IfRuleClause() {
- },
- IfRuleClause$__closure: function IfRuleClause$__closure() {
- },
- IfRuleClause$___closure: function IfRuleClause$___closure() {
- },
- IfClause: function IfClause(t0, t1, t2) {
- this.expression = t0;
- this.children = t1;
- this.hasDeclarations = t2;
- },
- ElseClause: function ElseClause(t0, t1) {
- this.children = t0;
- this.hasDeclarations = t1;
- },
- ImportRule: function ImportRule(t0, t1) {
- this.imports = t0;
- this.span = t1;
- },
- IncludeRule: function IncludeRule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.originalName = t2;
- _.$arguments = t3;
- _.content = t4;
- _.span = t5;
- },
- LoudComment: function LoudComment(t0) {
- this.text = t0;
- },
- MediaRule$(query, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.MediaRule(query, span, t1, t2);
- },
- MediaRule: function MediaRule(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- MixinRule$($name, $arguments, children, span, comment) {
- var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
- t2 = A.List_List$unmodifiable(children, type$.Statement),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
- return new A.MixinRule(t1, $name, $arguments, span, t2, t3);
- },
- MixinRule: function MixinRule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.__MixinRule_hasContent_FI = $;
- _.name = t0;
- _.originalName = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- _HasContentVisitor: function _HasContentVisitor() {
- },
- __HasContentVisitor_Object_StatementSearchVisitor: function __HasContentVisitor_Object_StatementSearchVisitor() {
- },
- ParentStatement: function ParentStatement() {
- },
- ParentStatement_closure: function ParentStatement_closure() {
- },
- ParentStatement__closure: function ParentStatement__closure() {
- },
- ReturnRule: function ReturnRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- SilentComment: function SilentComment(t0, t1) {
- this.text = t0;
- this.span = t1;
- },
- StyleRule$(selector, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.StyleRule(selector, span, t1, t2);
- },
- StyleRule: function StyleRule(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- Stylesheet$(children, span) {
- var t1 = A._setArrayType([], type$.JSArray_UseRule),
- t2 = A._setArrayType([], type$.JSArray_ForwardRule),
- t3 = A.List_List$unmodifiable(children, type$.Statement),
- t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure());
- t1 = new A.Stylesheet(span, false, t1, t2, t3, t4);
- t1.Stylesheet$internal$3$plainCss(children, span, false);
- return t1;
- },
- Stylesheet$internal(children, span, plainCss) {
- var t1 = A._setArrayType([], type$.JSArray_UseRule),
- t2 = A._setArrayType([], type$.JSArray_ForwardRule),
- t3 = A.List_List$unmodifiable(children, type$.Statement),
- t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure());
- t1 = new A.Stylesheet(span, plainCss, t1, t2, t3, t4);
- t1.Stylesheet$internal$3$plainCss(children, span, plainCss);
- return t1;
- },
- Stylesheet_Stylesheet$parse(contents, syntax, logger, url) {
- var error, stackTrace, url0, t1, exception, t2;
- try {
- switch (syntax) {
- case B.Syntax_Sass_sass:
- t1 = A.SpanScanner$(contents, url);
- t1 = new A.SassParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, logger, null).parse$0();
- return t1;
- case B.Syntax_SCSS_scss:
- t1 = A.ScssParser$(contents, logger, url).parse$0();
- return t1;
- case B.Syntax_CSS_css:
- t1 = A.SpanScanner$(contents, url);
- t1 = new A.CssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, logger, null).parse$0();
- return t1;
- default:
- t1 = A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null);
- throw A.wrapException(t1);
- }
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
- url0 = t1.get$sourceUrl(t1);
- if (url0 == null || J.toString$0$(url0) === "stdin")
- throw exception;
- t1 = type$.Uri;
- throw A.wrapException(A.throwWithTrace(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)), error, stackTrace));
- } else
- throw exception;
- }
- },
- Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.span = t0;
- _.plainCss = t1;
- _._uses = t2;
- _._forwards = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- SupportsRule$(condition, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.SupportsRule(condition, span, t1, t2);
- },
- SupportsRule: function SupportsRule(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- UseRule: function UseRule(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.namespace = t1;
- _.configuration = t2;
- _.span = t3;
- },
- VariableDeclaration$($name, expression, span, comment, global, guarded, namespace) {
- if (namespace != null && global)
- A.throwExpression(A.ArgumentError$(string$.Other_, null));
- return new A.VariableDeclaration(namespace, $name, expression, guarded, global, span);
- },
- VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.expression = t2;
- _.isGuarded = t3;
- _.isGlobal = t4;
- _.span = t5;
- },
- WarnRule: function WarnRule(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- WhileRule$(condition, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
- return new A.WhileRule(condition, span, t1, t2);
- },
- WhileRule: function WhileRule(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- SupportsAnything: function SupportsAnything(t0, t1) {
- this.contents = t0;
- this.span = t1;
- },
- SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
- this.name = t0;
- this.value = t1;
- this.span = t2;
- },
- SupportsFunction: function SupportsFunction(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.span = t2;
- },
- SupportsInterpolation: function SupportsInterpolation(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- SupportsNegation: function SupportsNegation(t0, t1) {
- this.condition = t0;
- this.span = t1;
- },
- SupportsOperation$(left, right, operator, span) {
- var lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- return new A.SupportsOperation(left, right, operator, span);
- },
- SupportsOperation: function SupportsOperation(t0, t1, t2, t3) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.operator = t2;
- _.span = t3;
- },
- Selector: function Selector() {
- },
- _IsInvisibleVisitor0: function _IsInvisibleVisitor0(t0) {
- this.includeBogus = t0;
- },
- _IsBogusVisitor: function _IsBogusVisitor(t0) {
- this.includeLeadingCombinator = t0;
- },
- _IsBogusVisitor_visitComplexSelector_closure: function _IsBogusVisitor_visitComplexSelector_closure(t0) {
- this.$this = t0;
- },
- _IsUselessVisitor: function _IsUselessVisitor() {
- },
- _IsUselessVisitor_visitComplexSelector_closure: function _IsUselessVisitor_visitComplexSelector_closure(t0) {
- this.$this = t0;
- },
- __IsBogusVisitor_Object_AnySelectorVisitor: function __IsBogusVisitor_Object_AnySelectorVisitor() {
- },
- __IsInvisibleVisitor_Object_AnySelectorVisitor: function __IsInvisibleVisitor_Object_AnySelectorVisitor() {
- },
- __IsUselessVisitor_Object_AnySelectorVisitor: function __IsUselessVisitor_Object_AnySelectorVisitor() {
- },
- AttributeSelector: function AttributeSelector(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.op = t1;
- _.value = t2;
- _.modifier = t3;
- _.span = t4;
- },
- AttributeOperator: function AttributeOperator(t0, t1) {
- this._attribute$_text = t0;
- this._name = t1;
- },
- ClassSelector: function ClassSelector(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- Combinator: function Combinator(t0, t1) {
- this._combinator$_text = t0;
- this._name = t1;
- },
- ComplexSelector$(leadingCombinators, components, span, lineBreak) {
- var t1 = A.List_List$unmodifiable(leadingCombinators, type$.CssValue_Combinator),
- t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent);
- if (t1.length === 0 && t2.length === 0)
- A.throwExpression(A.ArgumentError$(string$.leadin, null));
- return new A.ComplexSelector(t1, t2, lineBreak, span);
- },
- ComplexSelector: function ComplexSelector(t0, t1, t2, t3) {
- var _ = this;
- _.leadingCombinators = t0;
- _.components = t1;
- _.lineBreak = t2;
- _.__ComplexSelector_specificity_FI = $;
- _.span = t3;
- },
- ComplexSelector_specificity_closure: function ComplexSelector_specificity_closure() {
- },
- ComplexSelectorComponent: function ComplexSelectorComponent(t0, t1, t2) {
- this.selector = t0;
- this.combinators = t1;
- this.span = t2;
- },
- ComplexSelectorComponent_toString_closure: function ComplexSelectorComponent_toString_closure() {
- },
- CompoundSelector$(components, span) {
- var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector);
- if (t1.length === 0)
- A.throwExpression(A.ArgumentError$("components may not be empty.", null));
- return new A.CompoundSelector(t1, span);
- },
- CompoundSelector: function CompoundSelector(t0, t1) {
- var _ = this;
- _.components = t0;
- _.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = _.__CompoundSelector_specificity_FI = $;
- _.span = t1;
- },
- CompoundSelector_specificity_closure: function CompoundSelector_specificity_closure() {
- },
- CompoundSelector_hasComplicatedSuperselectorSemantics_closure: function CompoundSelector_hasComplicatedSuperselectorSemantics_closure() {
- },
- IDSelector: function IDSelector(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
- this.$this = t0;
- },
- SelectorList$(components, span) {
- var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector);
- if (t1.length === 0)
- A.throwExpression(A.ArgumentError$("components may not be empty.", null));
- return new A.SelectorList(t1, span);
- },
- SelectorList_SelectorList$parse(contents, allowParent, interpolationMap, logger, plainCss) {
- return A.SelectorParser$(contents, allowParent, interpolationMap, logger, plainCss, null).parse$0();
- },
- SelectorList: function SelectorList(t0, t1) {
- this.components = t0;
- this.span = t1;
- },
- SelectorList_asSassList_closure: function SelectorList_asSassList_closure() {
- },
- SelectorList_nestWithin_closure: function SelectorList_nestWithin_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.preserveParentSelectors = t1;
- _.implicitParent = t2;
- _.parent = t3;
- },
- SelectorList_nestWithin__closure: function SelectorList_nestWithin__closure(t0) {
- this.complex = t0;
- },
- SelectorList_nestWithin__closure0: function SelectorList_nestWithin__closure0(t0) {
- this.complex = t0;
- },
- SelectorList__nestWithinCompound_closure: function SelectorList__nestWithinCompound_closure() {
- },
- SelectorList__nestWithinCompound_closure0: function SelectorList__nestWithinCompound_closure0(t0) {
- this.parent = t0;
- },
- SelectorList__nestWithinCompound_closure1: function SelectorList__nestWithinCompound_closure1(t0, t1, t2) {
- this.parentSelector = t0;
- this.resolvedSimples = t1;
- this.component = t2;
- },
- SelectorList_withAdditionalCombinators_closure: function SelectorList_withAdditionalCombinators_closure(t0) {
- this.combinators = t0;
- },
- _ParentSelectorVisitor: function _ParentSelectorVisitor() {
- },
- __ParentSelectorVisitor_Object_SelectorSearchVisitor: function __ParentSelectorVisitor_Object_SelectorSearchVisitor() {
- },
- ParentSelector: function ParentSelector(t0, t1) {
- this.suffix = t0;
- this.span = t1;
- },
- PlaceholderSelector: function PlaceholderSelector(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- PseudoSelector$($name, span, argument, element, selector) {
- var t1 = !element,
- t2 = t1 && !A.PseudoSelector__isFakePseudoElement($name);
- return new A.PseudoSelector($name, A.unvendor($name), t2, t1, argument, selector, span);
- },
- PseudoSelector__isFakePseudoElement($name) {
- switch ($name.charCodeAt(0)) {
- case 97:
- case 65:
- return A.equalsIgnoreCase($name, "after");
- case 98:
- case 66:
- return A.equalsIgnoreCase($name, "before");
- case 102:
- case 70:
- return A.equalsIgnoreCase($name, "first-line") || A.equalsIgnoreCase($name, "first-letter");
- default:
- return false;
- }
- },
- PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.name = t0;
- _.normalizedName = t1;
- _.isClass = t2;
- _.isSyntacticClass = t3;
- _.argument = t4;
- _.selector = t5;
- _.__PseudoSelector_specificity_FI = $;
- _.span = t6;
- },
- PseudoSelector_specificity_closure: function PseudoSelector_specificity_closure(t0) {
- this.$this = t0;
- },
- PseudoSelector_specificity__closure: function PseudoSelector_specificity__closure() {
- },
- PseudoSelector_specificity__closure0: function PseudoSelector_specificity__closure0() {
- },
- PseudoSelector_unify_closure: function PseudoSelector_unify_closure() {
- },
- QualifiedName: function QualifiedName(t0, t1) {
- this.name = t0;
- this.namespace = t1;
- },
- SimpleSelector: function SimpleSelector() {
- },
- SimpleSelector_isSuperselector_closure: function SimpleSelector_isSuperselector_closure(t0) {
- this.$this = t0;
- },
- SimpleSelector_isSuperselector__closure: function SimpleSelector_isSuperselector__closure(t0) {
- this.$this = t0;
- },
- TypeSelector: function TypeSelector(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- UniversalSelector: function UniversalSelector(t0, t1) {
- this.namespace = t0;
- this.span = t1;
- },
- compileAsync(path, charset, fatalDeprecations, futureDeprecations, importCache, logger, quietDeps, silenceDeprecations, sourceMap, style, syntax, verbose) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
- $async$returnValue, t3, t0, stylesheet, result, t1, t2;
- var $async$compileAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Deprecation;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t2.addAll$1(0, silenceDeprecations);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t3.addAll$1(0, fatalDeprecations);
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t1.addAll$1(0, futureDeprecations);
- logger = A.DeprecationProcessingLogger$(logger, t3, t1, !verbose, t2);
- t1 = syntax === A.Syntax_forPath(path);
- $async$goto = t1 ? 3 : 5;
- break;
- case 3:
- // then
- t1 = $.$get$FilesystemImporter_cwd();
- t2 = A.isNodeJs() ? self.process : null;
- if (!J.$eq$(t2 == null ? null : J.get$platform$x(t2), "win32")) {
- t2 = A.isNodeJs() ? self.process : null;
- t2 = J.$eq$(t2 == null ? null : J.get$platform$x(t2), "darwin");
- } else
- t2 = true;
- if (t2) {
- t2 = $.$get$context();
- t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
- t0 = t3;
- t3 = t2;
- t2 = t0;
- } else {
- t2 = $.$get$context();
- t3 = t2.canonicalize$1(0, path);
- t0 = t3;
- t3 = t2;
- t2 = t0;
- }
- $async$goto = 6;
- return A._asyncAwait(importCache.importCanonical$3$originalUrl(t1, t3.toUri$1(t2), t3.toUri$1(path)), $async$compileAsync);
- case 6:
- // returning from await.
- t3 = $async$result;
- t3.toString;
- stylesheet = t3;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t1 = A.readFile(path);
- stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, logger, $.$get$context().toUri$1(path));
- case 4:
- // join
- $async$goto = 7;
- return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, $.$get$FilesystemImporter_cwd(), null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileAsync);
- case 7:
- // returning from await.
- result = $async$result;
- logger.summarize$1$js(false);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$compileAsync, $async$completer);
- },
- compileStringAsync(source, charset, fatalDeprecations, futureDeprecations, importCache, importer, logger, quietDeps, silenceDeprecations, sourceMap, style, syntax, verbose) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
- $async$returnValue, t3, stylesheet, result, t1, t2;
- var $async$compileStringAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Deprecation;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t2.addAll$1(0, silenceDeprecations);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t3.addAll$1(0, fatalDeprecations);
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t1.addAll$1(0, futureDeprecations);
- logger = A.DeprecationProcessingLogger$(logger, t3, t1, !verbose, t2);
- stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, logger, null);
- $async$goto = 3;
- return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileStringAsync);
- case 3:
- // returning from await.
- result = $async$result;
- logger.summarize$1$js(false);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$compileStringAsync, $async$completer);
- },
- _compileStylesheet0(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
- $async$returnValue, serializeResult, resultSourceMap, $async$temp1;
- var $async$_compileStylesheet0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = A;
- $async$goto = 3;
- return A._asyncAwait(A._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0);
- case 3:
- // returning from await.
- serializeResult = $async$temp1.serialize($async$result._1, charset, indentWidth, false, lineFeed, sourceMap, style, true);
- resultSourceMap = serializeResult._1;
- if (resultSourceMap != null)
- A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure0(stylesheet, importCache));
- $async$returnValue = new A.CompileResult(serializeResult);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_compileStylesheet0, $async$completer);
- },
- _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- AsyncEnvironment$() {
- var t1 = type$.String,
- t2 = type$.Module_AsyncCallable,
- t3 = type$.AstNode,
- t4 = type$.int,
- t5 = type$.AsyncCallable,
- t6 = type$.JSArray_Map_String_AsyncCallable;
- return new A.AsyncEnvironment(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_AsyncCallable), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
- },
- AsyncEnvironment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- return new A.AsyncEnvironment(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
- },
- _EnvironmentModule__EnvironmentModule0(environment, css, preModuleComments, extensionStore, forwarded) {
- var t1, t2, t3, t4, t5, t6, module, result, t7;
- if (forwarded == null)
- forwarded = B.Set_empty2;
- t1 = type$.dynamic;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t2 = type$.Module_AsyncCallable, t3 = type$.List_CssComment, t4 = A.MapExtensions_get_pairs(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment; t4.moveNext$0();) {
- t6 = t4.get$current(t4);
- module = t6._0;
- result = A.List_List$from(t6._1, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1.$indexSet(0, module, result);
- }
- t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
- t2 = A._EnvironmentModule__makeModulesByVariable0(forwarded);
- t3 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure5(), type$.Map_String_Value), type$.Value);
- t4 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure6(), type$.Map_String_AstNode), type$.AstNode);
- t5 = type$.Map_String_AsyncCallable;
- t6 = type$.AsyncCallable;
- t7 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure7(), t5), t6);
- t6 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure8(), t5), t6);
- t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._async_environment$_allModules, new A._EnvironmentModule__EnvironmentModule_closure9());
- return A._EnvironmentModule$_0(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._async_environment$_allModules, new A._EnvironmentModule__EnvironmentModule_closure10()));
- },
- _EnvironmentModule__makeModulesByVariable0(forwarded) {
- var modulesByVariable, t1, t2, t3, t4, t5;
- if (forwarded.get$isEmpty(forwarded))
- return B.Map_empty8;
- modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof A._EnvironmentModule0) {
- for (t3 = t2._async_environment$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t5 = t4.get$variables();
- A.setAll(modulesByVariable, t5.get$keys(t5), t4);
- }
- A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables)), t2);
- } else {
- t3 = t2.get$variables();
- A.setAll(modulesByVariable, t3.get$keys(t3), t2);
- }
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap0(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
- if (otherMaps.get$isEmpty(otherMaps))
- return localMap;
- t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3.get$isNotEmpty(t3))
- t1.push(t3);
- }
- t1.push(localMap);
- if (t1.length === 1)
- return localMap;
- return A.MergedMapView$(t1, type$.String, $V);
- },
- _EnvironmentModule$_0(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new A._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
- var _ = this;
- _._async_environment$_modules = t0;
- _._async_environment$_namespaceNodes = t1;
- _._async_environment$_globalModules = t2;
- _._async_environment$_importedModules = t3;
- _._async_environment$_forwardedModules = t4;
- _._async_environment$_nestedForwardedModules = t5;
- _._async_environment$_allModules = t6;
- _._async_environment$_variables = t7;
- _._async_environment$_variableNodes = t8;
- _._async_environment$_variableIndices = t9;
- _._async_environment$_functions = t10;
- _._async_environment$_functionIndices = t11;
- _._async_environment$_mixins = t12;
- _._async_environment$_mixinIndices = t13;
- _._async_environment$_content = t14;
- _._async_environment$_inMixin = false;
- _._async_environment$_inSemiGlobalScope = true;
- _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null;
- },
- AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- AsyncEnvironment_toModule_closure: function AsyncEnvironment_toModule_closure() {
- },
- AsyncEnvironment_toDummyModule_closure: function AsyncEnvironment_toDummyModule_closure() {
- },
- _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extensionStore = t5;
- _.css = t6;
- _.preModuleComments = t7;
- _.transitivelyContainsCss = t8;
- _.transitivelyContainsExtensions = t9;
- _._async_environment$_environment = t10;
- _._async_environment$_modulesByVariable = t11;
- },
- _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() {
- },
- _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() {
- },
- _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() {
- },
- _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() {
- },
- _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() {
- },
- _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() {
- },
- AsyncImportCache__toImporters(importers, loadPaths, packageConfig) {
- var t1, t2, t3, t4, _i, path, _null = null,
- sassPath = A.getEnvironmentVariable("SASS_PATH");
- if (A.isBrowser()) {
- t1 = A._setArrayType([], type$.JSArray_AsyncImporter_2);
- B.JSArray_methods.addAll$1(t1, importers);
- return t1;
- }
- t1 = A._setArrayType([], type$.JSArray_AsyncImporter_2);
- B.JSArray_methods.addAll$1(t1, importers);
- for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- if (sassPath != null) {
- t2 = A.isNodeJs() ? self.process : _null;
- t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
- t4 = t3.length;
- _i = 0;
- for (; _i < t4; ++_i) {
- path = t3[_i];
- t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- }
- return t1;
- },
- AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._async_import_cache$_importers = t0;
- _._async_import_cache$_logger = t1;
- _._async_import_cache$_canonicalizeCache = t2;
- _._async_import_cache$_perImporterCanonicalizeCache = t3;
- _._async_import_cache$_nonCanonicalRelativeUrls = t4;
- _._async_import_cache$_importCache = t5;
- _._async_import_cache$_resultsCache = t6;
- },
- AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.baseImporter = t1;
- _.resolvedUrl = t2;
- _.baseUrl = t3;
- _.forImport = t4;
- _.key = t5;
- _.url = t6;
- },
- AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- _.quiet = t4;
- },
- AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) {
- this.canonicalUrl = t0;
- },
- AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() {
- },
- AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() {
- },
- AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) {
- this.canonicalUrl = t0;
- },
- AsyncBuiltInCallable$mixin($name, $arguments, callback, acceptsContent, url) {
- return new A.AsyncBuiltInCallable($name, A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure(callback), false);
- },
- AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _._async_built_in$_arguments = t1;
- _._async_built_in$_callback = t2;
- _.acceptsContent = t3;
- },
- AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) {
- this.callback = t0;
- },
- BuiltInCallable$function($name, $arguments, callback, url) {
- return new A.BuiltInCallable($name, A._setArrayType([new A._Record_2(A.ScssParser$("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value), false);
- },
- BuiltInCallable$mixin($name, $arguments, callback, acceptsContent, url) {
- return new A.BuiltInCallable($name, A._setArrayType([new A._Record_2(A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure(callback))], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value), acceptsContent);
- },
- BuiltInCallable$overloadedFunction($name, overloads) {
- var t2, t3, t4, t5, t6, args, callback,
- t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value);
- for (t2 = type$.String, t3 = A.MapExtensions_get_pairs(overloads, t2, type$.Value_Function_List_Value), t3 = t3.get$iterator(t3), t4 = "@function " + $name + "(", t5 = type$.VariableDeclaration; t3.moveNext$0();) {
- t6 = t3.get$current(t3);
- args = t6._0;
- callback = t6._1;
- t6 = A.SpanScanner$(t4 + args + ") {", null);
- t1.push(new A._Record_2(new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t2, t5), t6, B.StderrLogger_false, null).parseArgumentDeclaration$0(), callback));
- }
- return new A.BuiltInCallable($name, t1, false);
- },
- BuiltInCallable: function BuiltInCallable(t0, t1, t2) {
- this.name = t0;
- this._overloads = t1;
- this.acceptsContent = t2;
- },
- BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) {
- this.callback = t0;
- },
- PlainCssCallable: function PlainCssCallable(t0) {
- this.name = t0;
- },
- UserDefinedCallable: function UserDefinedCallable(t0, t1, t2, t3) {
- var _ = this;
- _.declaration = t0;
- _.environment = t1;
- _.inDependency = t2;
- _.$ti = t3;
- },
- _compileStylesheet(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
- var serializeResult = A.serialize(A._EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet)._1, charset, indentWidth, false, lineFeed, sourceMap, style, true),
- resultSourceMap = serializeResult._1;
- if (resultSourceMap != null)
- A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure(stylesheet, importCache));
- return new A.CompileResult(serializeResult);
- },
- _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- CompileResult: function CompileResult(t0) {
- this._serialize = t0;
- },
- Configuration: function Configuration(t0, t1) {
- this._configuration$_values = t0;
- this.__originalConfiguration = t1;
- },
- ExplicitConfiguration: function ExplicitConfiguration(t0, t1, t2) {
- this.nodeWithSpan = t0;
- this._configuration$_values = t1;
- this.__originalConfiguration = t2;
- },
- ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
- this.value = t0;
- this.configurationSpan = t1;
- this.assignmentNode = t2;
- },
- Deprecation_fromId(id) {
- return A.IterableExtension_firstWhereOrNull(B.List_Yb0, new A.Deprecation_fromId_closure(id));
- },
- Deprecation_forVersion(version) {
- var t2, _i, deprecation, $self, t3,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
- for (t2 = A.VersionRange_VersionRange(true, version).get$allows(), _i = 0; _i < 19; ++_i) {
- deprecation = B.List_Yb0[_i];
- $self = deprecation._deprecatedIn;
- t3 = $self == null ? null : A.Version___parse_tearOff($self);
- t3 = t3 == null ? null : t2.call$1(t3);
- if (t3 == null ? false : t3)
- t1.add$1(0, deprecation);
- }
- return t1;
- },
- Deprecation: function Deprecation(t0, t1, t2, t3) {
- var _ = this;
- _.id = t0;
- _._deprecatedIn = t1;
- _.isFuture = t2;
- _._name = t3;
- },
- Deprecation_fromId_closure: function Deprecation_fromId_closure(t0) {
- this.id = t0;
- },
- Environment$() {
- var t1 = type$.String,
- t2 = type$.Module_Callable,
- t3 = type$.AstNode,
- t4 = type$.int,
- t5 = type$.Callable,
- t6 = type$.JSArray_Map_String_Callable;
- return new A.Environment(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_Callable), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
- },
- Environment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- return new A.Environment(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
- },
- _EnvironmentModule__EnvironmentModule(environment, css, preModuleComments, extensionStore, forwarded) {
- var t1, t2, t3, t4, t5, t6, module, result, t7;
- if (forwarded == null)
- forwarded = B.Set_empty0;
- t1 = type$.dynamic;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t2 = type$.Module_Callable, t3 = type$.List_CssComment, t4 = A.MapExtensions_get_pairs(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment; t4.moveNext$0();) {
- t6 = t4.get$current(t4);
- module = t6._0;
- result = A.List_List$from(t6._1, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1.$indexSet(0, module, result);
- }
- t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
- t2 = A._EnvironmentModule__makeModulesByVariable(forwarded);
- t3 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure(), type$.Map_String_Value), type$.Value);
- t4 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure0(), type$.Map_String_AstNode), type$.AstNode);
- t5 = type$.Map_String_Callable;
- t6 = type$.Callable;
- t7 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure1(), t5), t6);
- t6 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure2(), t5), t6);
- t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._allModules, new A._EnvironmentModule__EnvironmentModule_closure3());
- return A._EnvironmentModule$_(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._allModules, new A._EnvironmentModule__EnvironmentModule_closure4()));
- },
- _EnvironmentModule__makeModulesByVariable(forwarded) {
- var modulesByVariable, t1, t2, t3, t4, t5;
- if (forwarded.get$isEmpty(forwarded))
- return B.Map_empty1;
- modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof A._EnvironmentModule) {
- for (t3 = t2._modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t5 = t4.get$variables();
- A.setAll(modulesByVariable, t5.get$keys(t5), t4);
- }
- A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment$_environment._variables)), t2);
- } else {
- t3 = t2.get$variables();
- A.setAll(modulesByVariable, t3.get$keys(t3), t2);
- }
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
- if (otherMaps.get$isEmpty(otherMaps))
- return localMap;
- t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3.get$isNotEmpty(t3))
- t1.push(t3);
- }
- t1.push(localMap);
- if (t1.length === 1)
- return localMap;
- return A.MergedMapView$(t1, type$.String, $V);
- },
- _EnvironmentModule$_(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new A._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
- var _ = this;
- _._environment$_modules = t0;
- _._namespaceNodes = t1;
- _._globalModules = t2;
- _._importedModules = t3;
- _._forwardedModules = t4;
- _._nestedForwardedModules = t5;
- _._allModules = t6;
- _._variables = t7;
- _._variableNodes = t8;
- _._variableIndices = t9;
- _._functions = t10;
- _._functionIndices = t11;
- _._mixins = t12;
- _._mixinIndices = t13;
- _._content = t14;
- _._inMixin = false;
- _._inSemiGlobalScope = true;
- _._lastVariableIndex = _._lastVariableName = null;
- },
- Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) {
- this.name = t0;
- },
- Environment_toModule_closure: function Environment_toModule_closure() {
- },
- Environment_toDummyModule_closure: function Environment_toDummyModule_closure() {
- },
- _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extensionStore = t5;
- _.css = t6;
- _.preModuleComments = t7;
- _.transitivelyContainsCss = t8;
- _.transitivelyContainsExtensions = t9;
- _._environment$_environment = t10;
- _._modulesByVariable = t11;
- },
- _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() {
- },
- _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() {
- },
- _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() {
- },
- _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() {
- },
- _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() {
- },
- _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() {
- },
- SassException$(message, span, loadedUrls) {
- return new A.SassException(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- MultiSpanSassException$(message, span, primaryLabel, secondarySpans, loadedUrls) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassException(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- SassRuntimeException$(message, span, trace, loadedUrls) {
- return new A.SassRuntimeException(trace, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- MultiSpanSassRuntimeException$(message, span, primaryLabel, secondarySpans, trace, loadedUrls) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassRuntimeException(trace, primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- SassFormatException$(message, span, loadedUrls) {
- return new A.SassFormatException(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- MultiSpanSassFormatException$(message, span, primaryLabel, secondarySpans, loadedUrls) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassFormatException(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- SassScriptException$(message, argumentName) {
- return new A.SassScriptException(argumentName == null ? message : "$" + argumentName + ": " + message);
- },
- MultiSpanSassScriptException$(message, primaryLabel, secondarySpans) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassScriptException(primaryLabel, t1, message);
- },
- SassException: function SassException(t0, t1, t2) {
- this.loadedUrls = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3, t4) {
- var _ = this;
- _.primaryLabel = t0;
- _.secondarySpans = t1;
- _.loadedUrls = t2;
- _._span_exception$_message = t3;
- _._span = t4;
- },
- SassRuntimeException: function SassRuntimeException(t0, t1, t2, t3) {
- var _ = this;
- _.trace = t0;
- _.loadedUrls = t1;
- _._span_exception$_message = t2;
- _._span = t3;
- },
- MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.trace = t0;
- _.primaryLabel = t1;
- _.secondarySpans = t2;
- _.loadedUrls = t3;
- _._span_exception$_message = t4;
- _._span = t5;
- },
- SassFormatException: function SassFormatException(t0, t1, t2) {
- this.loadedUrls = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- MultiSpanSassFormatException: function MultiSpanSassFormatException(t0, t1, t2, t3, t4) {
- var _ = this;
- _.primaryLabel = t0;
- _.secondarySpans = t1;
- _.loadedUrls = t2;
- _._span_exception$_message = t3;
- _._span = t4;
- },
- SassScriptException: function SassScriptException(t0) {
- this.message = t0;
- },
- MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) {
- this.primaryLabel = t0;
- this.secondarySpans = t1;
- this.message = t2;
- },
- compileStylesheet(options, graph, source, destination, ifModified) {
- return A.compileStylesheet$body(options, graph, source, destination, ifModified);
- },
- compileStylesheet$body(options, graph, source, destination, ifModified) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_int_and_String_and_nullable_String),
- $async$returnValue, $async$handler = 2, $async$currentError, error, stackTrace, message, error0, stackTrace0, path, message0, exception, t1, $async$exception;
- var $async$compileStylesheet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return A._asyncAwait(A._compileStylesheetWithoutErrorHandling(options, graph, source, destination, ifModified), $async$compileStylesheet);
- case 7:
- // returning from await.
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- if (destination != null && !options.get$emitErrorCss())
- A._tryDelete(destination);
- message = J.toString$1$color$(error, options.get$color());
- if (A._asBool(options._options.$index(0, "trace"))) {
- t1 = A.getTrace(error);
- if (t1 == null)
- t1 = stackTrace;
- } else
- t1 = null;
- $async$returnValue = A._getErrorWithStackTrace(65, message, t1);
- // goto return
- $async$goto = 1;
- break;
- } else if (t1 instanceof A.FileSystemException) {
- error0 = t1;
- stackTrace0 = A.getTraceFromException($async$exception);
- path = error0.path;
- message0 = path == null ? error0.message : "Error reading " + $.$get$context().relative$2$from(path, null) + ": " + error0.message + ".";
- if (A._asBool(options._options.$index(0, "trace"))) {
- t1 = A.getTrace(error0);
- if (t1 == null)
- t1 = stackTrace0;
- } else
- t1 = null;
- $async$returnValue = A._getErrorWithStackTrace(66, message0, t1);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$compileStylesheet, $async$completer);
- },
- _compileStylesheetWithoutErrorHandling(options, graph, source, destination, ifModified) {
- return A._compileStylesheetWithoutErrorHandling$body(options, graph, source, destination, ifModified);
- },
- _compileStylesheetWithoutErrorHandling$body(options, graph, source, destination, ifModified) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$handler = 2, $async$currentError, syntax, result, importCache, error, t1, exception, t2, t3, t4, t5, t6, t7, t8, t9, t10, result0, t11, t12, t13, t14, logger, stylesheet, t0, css, buffer, sourceName, destinationName, nowStr, timestamp, importer, $async$exception;
- var $async$_compileStylesheetWithoutErrorHandling = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- importer = $.$get$FilesystemImporter_cwd();
- if (ifModified)
- try {
- if (source != null)
- if (destination != null) {
- t1 = A.absolute(source, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
- t1 = !graph.modifiedSince$3($.$get$context().toUri$1(t1), A.modificationTime(destination), importer);
- } else
- t1 = false;
- else
- t1 = false;
- if (t1) {
- // goto return
- $async$goto = 1;
- break;
- }
- } catch (exception) {
- if (!(A.unwrapException(exception) instanceof A.FileSystemException))
- throw exception;
- }
- syntax = null;
- if (A._asBoolQ(options._ifParsed$1("indented")) === true)
- syntax = B.Syntax_Sass_sass;
- else if (source != null)
- syntax = A.Syntax_forPath(source);
- else
- syntax = B.Syntax_SCSS_scss;
- result = null;
- $async$handler = 4;
- t1 = options._options;
- $async$goto = A._asBool(t1.$index(0, "async")) ? 7 : 9;
- break;
- case 7:
- // then
- t2 = options.get$pkgImporters();
- t3 = type$.List_String._as(t1.$index(0, "load-path"));
- t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
- t5 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl;
- t6 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport;
- t7 = type$.Uri;
- t3 = A.AsyncImportCache__toImporters(t2, t3, null);
- importCache = new A.AsyncImportCache(t3, t4, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t5), A.LinkedHashMap_LinkedHashMap$_empty(t6, t5), A.LinkedHashMap_LinkedHashMap$_empty(t6, t7), A.LinkedHashMap_LinkedHashMap$_empty(t7, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t7, type$.ImporterResult));
- $async$goto = source == null ? 10 : 12;
- break;
- case 10:
- // then
- $async$goto = 13;
- return A._asyncAwait(A.readStdin(), $async$_compileStylesheetWithoutErrorHandling);
- case 13:
- // returning from await.
- t2 = $async$result;
- t3 = syntax;
- t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
- t5 = $.$get$FilesystemImporter_cwd();
- t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
- t7 = A._asBool(t1.$index(0, "quiet-deps"));
- t8 = A._asBool(t1.$index(0, "verbose"));
- t9 = options.get$emitSourceMap();
- t1 = A._asBool(t1.$index(0, "charset"));
- t10 = options.get$silenceDeprecations(0);
- $async$goto = 14;
- return A._asyncAwait(A.compileStringAsync(t2, t1, options.get$fatalDeprecations(0), options.get$futureDeprecations(0), importCache, t5, t4, t7, t10, t9, t6, t3, t8), $async$_compileStylesheetWithoutErrorHandling);
- case 14:
- // returning from await.
- result0 = $async$result;
- // goto join
- $async$goto = 11;
- break;
- case 12:
- // else
- t2 = syntax;
- t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
- t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
- t5 = A._asBool(t1.$index(0, "quiet-deps"));
- t6 = A._asBool(t1.$index(0, "verbose"));
- t7 = options.get$emitSourceMap();
- t1 = A._asBool(t1.$index(0, "charset"));
- t8 = options.get$silenceDeprecations(0);
- $async$goto = 15;
- return A._asyncAwait(A.compileAsync(source, t1, options.get$fatalDeprecations(0), options.get$futureDeprecations(0), importCache, t3, t5, t8, t7, t4, t2, t6), $async$_compileStylesheetWithoutErrorHandling);
- case 15:
- // returning from await.
- result0 = $async$result;
- case 11:
- // join
- result = result0;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = source == null ? 16 : 18;
- break;
- case 16:
- // then
- $async$goto = 19;
- return A._asyncAwait(A.readStdin(), $async$_compileStylesheetWithoutErrorHandling);
- case 19:
- // returning from await.
- t2 = $async$result;
- t3 = syntax;
- t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
- t5 = $.$get$FilesystemImporter_cwd();
- t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
- t7 = A._asBool(t1.$index(0, "quiet-deps"));
- t8 = A._asBool(t1.$index(0, "verbose"));
- t9 = options.get$emitSourceMap();
- t1 = A._asBool(t1.$index(0, "charset"));
- t10 = options.get$silenceDeprecations(0);
- t11 = options.get$fatalDeprecations(0);
- t12 = options.get$futureDeprecations(0);
- t13 = type$.Deprecation;
- t14 = A.LinkedHashSet_LinkedHashSet$_empty(t13);
- t14.addAll$1(0, t10);
- t10 = A.LinkedHashSet_LinkedHashSet$_empty(t13);
- t10.addAll$1(0, t11);
- t11 = A.LinkedHashSet_LinkedHashSet$_empty(t13);
- t11.addAll$1(0, t12);
- logger = A.DeprecationProcessingLogger$(t4, t10, t11, !t8, t14);
- stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_scss : t3, logger, null);
- result0 = A._compileStylesheet(stylesheet, logger, graph.importCache, null, t5, null, t6, true, null, null, t7, t9, t1);
- logger.summarize$1$js(false);
- // goto join
- $async$goto = 17;
- break;
- case 18:
- // else
- t2 = syntax;
- t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
- importCache = graph.importCache;
- t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
- t5 = A._asBool(t1.$index(0, "quiet-deps"));
- t6 = A._asBool(t1.$index(0, "verbose"));
- t7 = options.get$emitSourceMap();
- t1 = A._asBool(t1.$index(0, "charset"));
- t8 = options.get$silenceDeprecations(0);
- t9 = options.get$fatalDeprecations(0);
- t10 = options.get$futureDeprecations(0);
- t11 = type$.Deprecation;
- t12 = A.LinkedHashSet_LinkedHashSet$_empty(t11);
- t12.addAll$1(0, t8);
- t8 = A.LinkedHashSet_LinkedHashSet$_empty(t11);
- t8.addAll$1(0, t9);
- t9 = A.LinkedHashSet_LinkedHashSet$_empty(t11);
- t9.addAll$1(0, t10);
- logger = A.DeprecationProcessingLogger$(t3, t8, t9, !t6, t12);
- t3 = t2 == null || t2 === A.Syntax_forPath(source);
- if (t3) {
- t2 = $.$get$FilesystemImporter_cwd();
- t3 = A.isNodeJs() ? self.process : null;
- if (!J.$eq$(t3 == null ? null : J.get$platform$x(t3), "win32")) {
- t3 = A.isNodeJs() ? self.process : null;
- t3 = J.$eq$(t3 == null ? null : J.get$platform$x(t3), "darwin");
- } else
- t3 = true;
- if (t3) {
- t3 = $.$get$context();
- t6 = A._realCasePath(A.absolute(t3.normalize$1(source), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
- t0 = t6;
- t6 = t3;
- t3 = t0;
- } else {
- t3 = $.$get$context();
- t6 = t3.canonicalize$1(0, source);
- t0 = t6;
- t6 = t3;
- t3 = t0;
- }
- t6 = importCache.importCanonical$3$originalUrl(t2, t6.toUri$1(t3), t6.toUri$1(source));
- t6.toString;
- stylesheet = t6;
- } else {
- t3 = A.readFile(source);
- if (t2 == null)
- t2 = A.Syntax_forPath(source);
- stylesheet = A.Stylesheet_Stylesheet$parse(t3, t2, logger, $.$get$context().toUri$1(source));
- }
- result0 = A._compileStylesheet(stylesheet, logger, importCache, null, $.$get$FilesystemImporter_cwd(), null, t4, true, null, null, t5, t7, t1);
- logger.summarize$1$js(false);
- case 17:
- // join
- result = result0;
- case 8:
- // join
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- if (options.get$emitErrorCss())
- if (destination == null)
- A.print(error.toCssString$0());
- else {
- A.ensureDir($.$get$context().dirname$1(destination));
- A.writeFile(destination, error.toCssString$0() + "\n");
- }
- throw $async$exception;
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- css = result._serialize._0 + A._writeSourceMap(options, result._serialize._1, destination);
- if (destination == null) {
- if (css.length !== 0)
- A.print(css);
- } else {
- A.ensureDir($.$get$context().dirname$1(destination));
- A.writeFile(destination, css + "\n");
- }
- t1 = options._options;
- if (!A._asBool(t1.$index(0, "quiet")))
- t1 = !A._asBool(t1.$index(0, "update")) && !A._asBool(t1.$index(0, "watch"));
- else
- t1 = true;
- if (t1) {
- // goto return
- $async$goto = 1;
- break;
- }
- buffer = new A.StringBuffer("");
- if (source == null)
- sourceName = "stdin";
- else {
- t1 = $.$get$context();
- sourceName = t1.prettyUri$1(t1.toUri$1(source));
- }
- destination.toString;
- t1 = $.$get$context();
- destinationName = t1.prettyUri$1(t1.toUri$1(destination));
- nowStr = new A.DateTime(Date.now(), false).toString$0(0);
- timestamp = B.JSString_methods.substring$2(nowStr, 0, nowStr.length - 7);
- t1 = options.get$color() ? buffer._contents = "" + "\x1b[90m" : "";
- t1 = buffer._contents = t1 + ("[" + timestamp + "] ");
- if (options.get$color())
- t1 = buffer._contents = t1 + "\x1b[32m";
- t1 += "Compiled " + sourceName + " to " + destinationName + ".";
- buffer._contents = t1;
- if (options.get$color())
- buffer._contents = t1 + "\x1b[0m";
- t1 = A.isNodeJs() ? self.process : null;
- if (t1 != null) {
- t1 = J.get$stdout$x(t1);
- J.write$1$x(t1, buffer.toString$0(0) + "\n");
- } else {
- t1 = self.console;
- J.log$1$x(t1, buffer);
- }
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_compileStylesheetWithoutErrorHandling, $async$completer);
- },
- _writeSourceMap(options, sourceMap, destination) {
- var t1, sourceMapText, url, sourceMapPath, t2, escapedUrl;
- if (sourceMap == null)
- return "";
- if (destination != null) {
- t1 = $.$get$context();
- sourceMap.targetUrl = t1.toUri$1(A.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()).toString$0(0);
- }
- A.mapInPlace(sourceMap.urls, new A._writeSourceMap_closure(options, destination));
- t1 = options._options;
- sourceMapText = B.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(A._asBool(t1.$index(0, "embed-sources"))), null);
- if (A._asBool(t1.$index(0, "embed-source-map")))
- url = A.Uri_Uri$dataFromString(sourceMapText, B.C_Utf8Codec, "application/json");
- else {
- destination.toString;
- sourceMapPath = destination + ".map";
- t2 = $.$get$context();
- A.ensureDir(t2.dirname$1(sourceMapPath));
- A.writeFile(sourceMapPath, sourceMapText);
- url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination)));
- }
- t2 = url.toString$0(0);
- escapedUrl = A.stringReplaceAllUnchecked(t2, "*/", "%2A/");
- t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0) === B.OutputStyle_1 ? "" : "\n\n";
- return t1 + ("/*# sourceMappingURL=" + escapedUrl + " */");
- },
- _tryDelete(path) {
- var exception;
- try {
- A.deleteFile(path);
- } catch (exception) {
- if (!(A.unwrapException(exception) instanceof A.FileSystemException))
- throw exception;
- }
- },
- _getErrorWithStackTrace(exitCode, error, stackTrace) {
- return new A._Record_3(exitCode, error, stackTrace != null ? B.JSString_methods.trimRight$0(A.Trace_Trace$from(stackTrace).get$terse().toString$0(0)) : null);
- },
- _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) {
- this.options = t0;
- this.destination = t1;
- },
- ExecutableOptions__separator(text) {
- var t1 = $.$get$ExecutableOptions__separatorBar(),
- t2 = B.JSString_methods.$mul(t1, 3),
- t3 = A.hasTerminal() ? "\x1b[1m" : "",
- t4 = A.hasTerminal() ? "\x1b[0m" : "";
- return t2 + " " + t3 + text + t4 + " " + B.JSString_methods.$mul(t1, 35 - text.length);
- },
- ExecutableOptions__fail(message) {
- return A.throwExpression(A.UsageException$(message));
- },
- ExecutableOptions_ExecutableOptions$parse(args) {
- var options, error, t1, t2, exception;
- try {
- t1 = $.$get$ExecutableOptions__parser();
- t2 = A.ListQueue$(type$.String);
- t2.addAll$1(0, args);
- t2 = A.Parser$(null, t1, t2, null, null).parse$0();
- if (t2.wasParsed$1("poll") && !A._asBool(t2.$index(0, "watch")))
- A.ExecutableOptions__fail("--poll may not be passed without --watch.");
- options = new A.ExecutableOptions(t2);
- if (A._asBool(options._options.$index(0, "help")))
- A.ExecutableOptions__fail("Compile Sass to CSS.");
- return options;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- error = t1;
- A.ExecutableOptions__fail(J.get$message$x(error));
- } else
- throw exception;
- }
- },
- UsageException$(message) {
- return new A.UsageException(message);
- },
- ExecutableOptions: function ExecutableOptions(t0) {
- var _ = this;
- _._options = t0;
- _.__ExecutableOptions_interactive_FI = $;
- _._sourcesToDestinations = null;
- _.__ExecutableOptions__sourceDirectoriesToDestinations_F = $;
- _._fatalDeprecations = null;
- },
- ExecutableOptions__parser_closure: function ExecutableOptions__parser_closure() {
- },
- ExecutableOptions_interactive_closure: function ExecutableOptions_interactive_closure(t0) {
- this.$this = t0;
- },
- ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() {
- },
- ExecutableOptions_fatalDeprecations_closure: function ExecutableOptions_fatalDeprecations_closure(t0) {
- this.$this = t0;
- },
- UsageException: function UsageException(t0) {
- this.message = t0;
- },
- watch(options, graph) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, t1, t2, t3, t4, t5, t6, dirWatcher, sourcesToDestinations, t0;
- var $async$watch = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- options._ensureSources$0();
- t1 = options.__ExecutableOptions__sourceDirectoriesToDestinations_F;
- t1 === $ && A.throwUnnamedLateFieldNI();
- t2 = type$.String;
- t1 = t1.cast$2$0(0, t2, t2);
- t1 = A.List_List$of(t1.get$keys(t1), true, t2);
- for (options._ensureSources$0(), t3 = options._sourcesToDestinations.cast$2$0(0, t2, t2), t3 = J.get$iterator$ax(t3.get$keys(t3)); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t1.push($.$get$context().dirname$1(t4));
- }
- t3 = options._options;
- B.JSArray_methods.addAll$1(t1, type$.List_String._as(t3.$index(0, "load-path")));
- t4 = A._asBool(t3.$index(0, "poll"));
- t5 = type$.Stream_WatchEvent;
- t6 = A.PathMap__create(null, t5);
- t5 = new A.StreamGroup(B._StreamGroupState_dormant, A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.nullable_StreamSubscription_WatchEvent), type$.StreamGroup_WatchEvent);
- t5.__StreamGroup__controller_A = A.StreamController_StreamController(t5.get$_onCancel(), t5.get$_onListen(), t5.get$_onPause(), t5.get$_onResume(), true, type$.WatchEvent);
- dirWatcher = new A.MultiDirWatcher(new A.PathMap(t6, type$.PathMap_Stream_WatchEvent), t5, t4);
- $async$goto = 3;
- return A._asyncAwait(A.Future_wait(new A.MappedListIterable(t1, new A.watch_closure(dirWatcher), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Future<~>>")), false, type$.void), $async$watch);
- case 3:
- // returning from await.
- options._ensureSources$0();
- sourcesToDestinations = options._sourcesToDestinations.cast$2$0(0, t2, t2);
- for (t1 = J.get$iterator$ax(sourcesToDestinations.get$keys(sourcesToDestinations)); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- t4 = $.$get$FilesystemImporter_cwd();
- t5 = self.process;
- if (t5 == null)
- t5 = null;
- else {
- t5 = J.get$release$x(t5);
- t5 = t5 == null ? null : J.get$name$x(t5);
- }
- t5 = J.$eq$(t5, "node") ? self.process : null;
- if (!J.$eq$(t5 == null ? null : J.get$platform$x(t5), "win32")) {
- t5 = self.process;
- if (t5 == null)
- t5 = null;
- else {
- t5 = J.get$release$x(t5);
- t5 = t5 == null ? null : J.get$name$x(t5);
- }
- t5 = J.$eq$(t5, "node") ? self.process : null;
- t5 = J.$eq$(t5 == null ? null : J.get$platform$x(t5), "darwin");
- } else
- t5 = true;
- if (t5) {
- t5 = $.$get$context();
- t6 = A._realCasePath(t5.absolute$15(t5.normalize$1(t2), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
- t0 = t6;
- t6 = t5;
- t5 = t0;
- } else {
- t5 = $.$get$context();
- t6 = t5.canonicalize$1(0, t2);
- t0 = t6;
- t6 = t5;
- t5 = t0;
- }
- graph.addCanonical$4$recanonicalize(t4, t6.toUri$1(t5), t6.toUri$1(t2), false);
- }
- $async$goto = 4;
- return A._asyncAwait(A.compileStylesheets(options, graph, sourcesToDestinations, true), $async$watch);
- case 4:
- // returning from await.
- if (!$async$result && A._asBool(t3.$index(0, "stop-on-error"))) {
- t1 = dirWatcher._group.__StreamGroup__controller_A;
- t1 === $ && A.throwUnnamedLateFieldNI();
- new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$1(0, null).cancel$0();
- // goto return
- $async$goto = 1;
- break;
- }
- A.print("Sass is watching for changes. Press Ctrl-C to stop.\n");
- $async$goto = 5;
- return A._asyncAwait(new A._Watcher(options, graph).watch$1(0, dirWatcher), $async$watch);
- case 5:
- // returning from await.
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$watch, $async$completer);
- },
- watch_closure: function watch_closure(t0) {
- this.dirWatcher = t0;
- },
- _Watcher: function _Watcher(t0, t1) {
- this._watch$_options = t0;
- this._graph = t1;
- },
- _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() {
- },
- EmptyExtensionStore: function EmptyExtensionStore() {
- },
- Extension: function Extension(t0, t1, t2, t3, t4) {
- var _ = this;
- _.extender = t0;
- _.target = t1;
- _.mediaContext = t2;
- _.isOptional = t3;
- _.span = t4;
- },
- Extender: function Extender(t0, t1) {
- this.selector = t0;
- this.isOriginal = t1;
- this._extension = null;
- },
- ExtensionStore__extendOrReplace(selector, source, targets, mode, span) {
- var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, compound, t9, t10, t11, _i0, simple, t12, _i1, t13, t14,
- extender = A.ExtensionStore$_mode(mode);
- if (!selector.accept$1(B._IsInvisibleVisitor_true))
- extender._originals.addAll$1(0, selector.components);
- for (t1 = targets.components, t2 = t1.length, t3 = source.components, t4 = t3.length, t5 = type$.ComplexSelector, t6 = type$.Extension, t7 = type$.SimpleSelector, t8 = type$.Map_ComplexSelector_Extension, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- compound = complex.get$singleCompound();
- if (compound == null)
- throw A.wrapException(A.SassScriptException$("Can't extend complex selector " + A.S(complex) + ".", null));
- t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8);
- for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) {
- simple = t10[_i0];
- t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6);
- for (_i1 = 0; _i1 < t4; ++_i1) {
- complex = t3[_i1];
- complex.get$specificity();
- t13 = new A.Extender(complex, false);
- t14 = new A.Extension(t13, simple, null, true, span);
- t13._extension = t14;
- t12.$indexSet(0, complex, t14);
- }
- t9.$indexSet(0, simple, t12);
- }
- selector = extender._extendList$2(selector, t9);
- }
- return selector;
- },
- ExtensionStore$() {
- var t1 = type$.SimpleSelector;
- return new A.ExtensionStore(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList, type$.List_CssMediaQuery), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), B.ExtendMode_normal_normal);
- },
- ExtensionStore$_mode(_mode) {
- var t1 = type$.SimpleSelector;
- return new A.ExtensionStore(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList, type$.List_CssMediaQuery), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), _mode);
- },
- ExtensionStore: function ExtensionStore(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._selectors = t0;
- _._extensions = t1;
- _._extensionsByExtender = t2;
- _._mediaContexts = t3;
- _._sourceSpecificity = t4;
- _._originals = t5;
- _._mode = t6;
- },
- ExtensionStore_extensionsWhereTarget_closure: function ExtensionStore_extensionsWhereTarget_closure() {
- },
- ExtensionStore__registerSelector_closure: function ExtensionStore__registerSelector_closure() {
- },
- ExtensionStore_addExtension_closure: function ExtensionStore_addExtension_closure() {
- },
- ExtensionStore_addExtension_closure0: function ExtensionStore_addExtension_closure0() {
- },
- ExtensionStore_addExtension_closure1: function ExtensionStore_addExtension_closure1(t0) {
- this.complex = t0;
- },
- ExtensionStore__extendExistingExtensions_closure: function ExtensionStore__extendExistingExtensions_closure() {
- },
- ExtensionStore__extendExistingExtensions_closure0: function ExtensionStore__extendExistingExtensions_closure0() {
- },
- ExtensionStore_addExtensions_closure: function ExtensionStore_addExtensions_closure() {
- },
- ExtensionStore__extendComplex_closure: function ExtensionStore__extendComplex_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.complex = t2;
- },
- ExtensionStore__extendComplex__closure: function ExtensionStore__extendComplex__closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.complex = t2;
- },
- ExtensionStore__extendCompound_closure: function ExtensionStore__extendCompound_closure() {
- },
- ExtensionStore__extendCompound_closure0: function ExtensionStore__extendCompound_closure0() {
- },
- ExtensionStore__extendCompound_closure1: function ExtensionStore__extendCompound_closure1(t0) {
- this.original = t0;
- },
- ExtensionStore__extendSimple_withoutPseudo: function ExtensionStore__extendSimple_withoutPseudo(t0, t1, t2) {
- this.$this = t0;
- this.extensions = t1;
- this.targetsUsed = t2;
- },
- ExtensionStore__extendSimple_closure: function ExtensionStore__extendSimple_closure(t0, t1) {
- this.$this = t0;
- this.withoutPseudo = t1;
- },
- ExtensionStore__extendSimple_closure0: function ExtensionStore__extendSimple_closure0() {
- },
- ExtensionStore__extendPseudo_closure: function ExtensionStore__extendPseudo_closure() {
- },
- ExtensionStore__extendPseudo_closure0: function ExtensionStore__extendPseudo_closure0() {
- },
- ExtensionStore__extendPseudo_closure1: function ExtensionStore__extendPseudo_closure1() {
- },
- ExtensionStore__extendPseudo_closure2: function ExtensionStore__extendPseudo_closure2(t0) {
- this.pseudo = t0;
- },
- ExtensionStore__extendPseudo_closure3: function ExtensionStore__extendPseudo_closure3(t0, t1) {
- this.pseudo = t0;
- this.selector = t1;
- },
- ExtensionStore__trim_closure: function ExtensionStore__trim_closure(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- ExtensionStore__trim_closure0: function ExtensionStore__trim_closure0(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- ExtensionStore_clone_closure: function ExtensionStore_clone_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.newSelectors = t1;
- _.oldToNewSelectors = t2;
- _.newMediaContexts = t3;
- },
- unifyComplex(complexes, span) {
- var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, t4, _0_6_isSet, _0_6, t5, newLeadingCombinator, base, _1_1, newTrailingCombinator, _i, t6, t7, t8, _null = null,
- t1 = J.getInterceptor$asx(complexes);
- if (t1.get$length(complexes) === 1)
- return complexes;
- for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3.accept$1(B.C__IsUselessVisitor))
- return _null;
- t4 = t3.components;
- _0_6_isSet = t4.length === 1;
- if (_0_6_isSet) {
- _0_6 = t3.leadingCombinators;
- t5 = _0_6.length === 1;
- } else {
- _0_6 = _null;
- t5 = false;
- }
- if (t5) {
- newLeadingCombinator = (_0_6_isSet ? _0_6 : t3.leadingCombinators)[0];
- if (leadingCombinator == null)
- leadingCombinator = newLeadingCombinator;
- else if (!(leadingCombinator.$ti._is(newLeadingCombinator) && J.$eq$(newLeadingCombinator.value, leadingCombinator.value)))
- return _null;
- }
- base = B.JSArray_methods.get$last(t4);
- _1_1 = base.combinators;
- if (_1_1.length === 1) {
- newTrailingCombinator = _1_1[0];
- if (trailingCombinator != null)
- t3 = !(trailingCombinator.$ti._is(newTrailingCombinator) && J.$eq$(newTrailingCombinator.value, trailingCombinator.value));
- else
- t3 = false;
- if (t3)
- return _null;
- trailingCombinator = newTrailingCombinator;
- }
- if (unifiedBase == null)
- unifiedBase = base.selector.components;
- else
- for (t3 = base.selector.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
- unifiedBase = t3[_i].unify$1(unifiedBase);
- if (unifiedBase == null)
- return _null;
- }
- }
- t2 = type$.JSArray_ComplexSelector;
- t3 = A._setArrayType([], t2);
- for (t4 = t1.get$iterator(complexes); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- t6 = t5.components;
- t7 = t6.length;
- if (t7 > 1) {
- t8 = t5.leadingCombinators;
- t3.push(A.ComplexSelector$(t8, B.JSArray_methods.take$1(t6, t7 - 1), t5.span, t5.lineBreak));
- }
- }
- t4 = leadingCombinator == null ? B.List_empty0 : A._setArrayType([leadingCombinator], type$.JSArray_CssValue_Combinator);
- unifiedBase.toString;
- t5 = A.CompoundSelector$(unifiedBase, span);
- t6 = trailingCombinator == null ? B.List_empty0 : A._setArrayType([trailingCombinator], type$.JSArray_CssValue_Combinator);
- base = A.ComplexSelector$(t4, A._setArrayType([new A.ComplexSelectorComponent(t5, A.List_List$unmodifiable(t6, type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent), span, t1.any$1(complexes, new A.unifyComplex_closure()));
- if (t3.length === 0)
- t1 = A._setArrayType([base], t2);
- else {
- t1 = A.List_List$of(A.IterableExtension_get_exceptLast(t3), true, type$.ComplexSelector);
- t1.push(B.JSArray_methods.get$last(t3).concatenate$2(base, span));
- }
- return A.weave(t1, span, false);
- },
- unifyCompound(compound1, compound2) {
- var t1, t2, _i, unified,
- result = compound2.components;
- for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i, result = unified) {
- unified = t1[_i].unify$1(result);
- if (unified == null)
- return null;
- }
- return A.CompoundSelector$(result, compound1.span);
- },
- unifyUniversalAndElement(selector1, selector2) {
- var namespace, $name, t1,
- _0_0 = A._namespaceAndName(selector1, "selector1"),
- namespace1 = _0_0._0,
- name1 = _0_0._1,
- _1_0 = A._namespaceAndName(selector2, "selector2"),
- namespace2 = _1_0._0,
- name2 = _1_0._1;
- if (namespace1 == namespace2 || namespace2 === "*")
- namespace = namespace1;
- else {
- if (namespace1 !== "*")
- return null;
- namespace = namespace2;
- }
- if (name1 == name2 || name2 == null)
- $name = name1;
- else {
- if (!(name1 == null || name1 === "*"))
- return null;
- $name = name2;
- }
- t1 = selector1.span;
- return $name == null ? new A.UniversalSelector(namespace, t1) : new A.TypeSelector(new A.QualifiedName($name, namespace), t1);
- },
- _namespaceAndName(selector, $name) {
- var t1, _0_4;
- $label0$0: {
- if (selector instanceof A.UniversalSelector) {
- t1 = new A._Record_2(selector.namespace, null);
- break $label0$0;
- }
- if (selector instanceof A.TypeSelector) {
- _0_4 = selector.name;
- t1 = new A._Record_2(_0_4.namespace, _0_4.name);
- break $label0$0;
- }
- t1 = A.throwExpression(A.ArgumentError$value(selector, $name, string$.must_b));
- }
- return t1;
- },
- weave(complexes, span, forceLineBreak) {
- var complex, t2, prefixes, t3, t4, t5, t6, i, t7, t8, _i, t9, t10, _i0, parentPrefix, t11, t12,
- t1 = J.getInterceptor$asx(complexes);
- if (t1.get$length(complexes) === 1) {
- complex = t1.$index(complexes, 0);
- if (!forceLineBreak || complex.lineBreak)
- return complexes;
- return A._setArrayType([A.ComplexSelector$(complex.leadingCombinators, complex.components, complex.span, true)], type$.JSArray_ComplexSelector);
- }
- t2 = type$.JSArray_ComplexSelector;
- prefixes = A._setArrayType([t1.get$first(complexes)], t2);
- for (t1 = t1.skip$1(complexes, 1), t3 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t3._eval$1("ListIterator<ListIterable.E>")), t4 = type$.ComplexSelectorComponent, t3 = t3._eval$1("ListIterable.E"); t1.moveNext$0();) {
- t5 = t1.__internal$_current;
- if (t5 == null)
- t5 = t3._as(t5);
- t6 = t5.components;
- if (t6.length === 1) {
- for (i = 0; i < prefixes.length; ++i)
- prefixes[i] = prefixes[i].concatenate$3$forceLineBreak(t5, span, forceLineBreak);
- continue;
- }
- t7 = A._setArrayType([], t2);
- for (t8 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t8 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) {
- t9 = A._weaveParents(prefixes[_i], t5, span);
- if (t9 == null)
- t9 = B.List_empty1;
- t10 = t9.length;
- _i0 = 0;
- for (; _i0 < t9.length; t9.length === t10 || (0, A.throwConcurrentModificationError)(t9), ++_i0) {
- parentPrefix = t9[_i0];
- t11 = B.JSArray_methods.get$last(t6);
- t12 = A.List_List$of(parentPrefix.components, true, t4);
- t12.push(t11);
- t11 = parentPrefix.lineBreak || forceLineBreak;
- t7.push(A.ComplexSelector$(parentPrefix.leadingCombinators, t12, span, t11));
- }
- }
- prefixes = t7;
- }
- return prefixes;
- },
- _weaveParents(prefix, base, span) {
- var t1, queue1, queue2, trailingCombinators, _0_1, _0_3, _0_3_isSet, rootish1, t2, rootish2, _0_30, rootish, t3, rootish_case_0, t0, rootish_case_1, groups1, groups2, lcs, choices, t4, _i, group, t5, t6, t7, _i0, chunk, t8, t9, _null = null,
- leadingCombinators = A._mergeLeadingCombinators(prefix.leadingCombinators, base.leadingCombinators);
- if (leadingCombinators == null)
- return _null;
- t1 = type$.ComplexSelectorComponent;
- queue1 = A.QueueList_QueueList$from(prefix.components, t1);
- queue2 = A.QueueList_QueueList$from(A.IterableExtension_get_exceptLast(base.components), t1);
- trailingCombinators = A._mergeTrailingCombinators(queue1, queue2, span, _null);
- if (trailingCombinators == null)
- return _null;
- $label0$0: {
- _0_1 = A._firstIfRootish(queue1);
- _0_3 = A._firstIfRootish(queue2);
- _0_3_isSet = _0_1 != null;
- if (_0_3_isSet) {
- rootish1 = _0_1 == null ? t1._as(_0_1) : _0_1;
- t2 = _0_3 != null;
- if (t2)
- rootish2 = _0_3 == null ? t1._as(_0_3) : _0_3;
- else
- rootish2 = _null;
- _0_30 = _0_3;
- } else {
- rootish2 = _null;
- rootish1 = rootish2;
- _0_30 = rootish1;
- t2 = false;
- }
- if (t2) {
- rootish = A.unifyCompound(rootish1.selector, rootish2.selector);
- if (rootish == null)
- return _null;
- t1 = rootish1.combinators;
- t2 = rootish1.span;
- t3 = type$.CssValue_Combinator;
- queue1.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(t1, t3), t2));
- queue2.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(rootish2.combinators, t3), t2));
- break $label0$0;
- }
- if (_0_1 != null) {
- rootish_case_0 = _0_1;
- if (_0_3_isSet)
- t2 = _0_30;
- else {
- t2 = _0_3;
- _0_30 = t2;
- _0_3_isSet = true;
- }
- t2 = t2 == null;
- t3 = t2 ? rootish_case_0 : _null;
- t0 = t3;
- t3 = t2;
- t2 = t0;
- } else {
- t2 = _null;
- t3 = false;
- }
- if (!t3)
- if (_0_1 == null) {
- if (_0_3_isSet)
- t3 = _0_30;
- else {
- t3 = _0_3;
- _0_30 = t3;
- _0_3_isSet = true;
- }
- t3 = t3 != null;
- if (t3) {
- rootish_case_1 = _0_3_isSet ? _0_30 : _0_3;
- if (rootish_case_1 == null)
- rootish_case_1 = t1._as(rootish_case_1);
- t1 = rootish_case_1;
- } else
- t1 = t2;
- t2 = t3;
- } else {
- t1 = t2;
- t2 = false;
- }
- else {
- t1 = t2;
- t2 = true;
- }
- if (t2) {
- queue1.addFirst$1(t1);
- queue2.addFirst$1(t1);
- }
- }
- groups1 = A._groupSelectors(queue1);
- groups2 = A._groupSelectors(queue2);
- t1 = type$.List_ComplexSelectorComponent;
- lcs = A.longestCommonSubsequence(groups2, groups1, new A._weaveParents_closure(span), t1);
- choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent);
- for (t2 = lcs.length, t3 = type$.JSArray_Iterable_ComplexSelectorComponent, t4 = type$.JSArray_ComplexSelectorComponent, _i = 0; _i < lcs.length; lcs.length === t2 || (0, A.throwConcurrentModificationError)(lcs), ++_i) {
- group = lcs[_i];
- t5 = A._setArrayType([], t3);
- for (t6 = A._chunks(groups1, groups2, new A._weaveParents_closure0(group), t1), t7 = t6.length, _i0 = 0; _i0 < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i0) {
- chunk = t6[_i0];
- t8 = A._setArrayType([], t4);
- for (t9 = B.JSArray_methods.get$iterator(chunk); t9.moveNext$0();)
- B.JSArray_methods.addAll$1(t8, t9.get$current(0));
- t5.push(t8);
- }
- choices.push(t5);
- choices.push(A._setArrayType([group], t3));
- groups1.removeFirst$0();
- groups2.removeFirst$0();
- }
- t2 = A._setArrayType([], t3);
- for (t1 = A._chunks(groups1, groups2, new A._weaveParents_closure1(), t1), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- chunk = t1[_i];
- t5 = A._setArrayType([], t4);
- for (t6 = B.JSArray_methods.get$iterator(chunk); t6.moveNext$0();)
- B.JSArray_methods.addAll$1(t5, t6.get$current(0));
- t2.push(t5);
- }
- choices.push(t2);
- B.JSArray_methods.addAll$1(choices, trailingCombinators);
- t1 = A._setArrayType([], type$.JSArray_ComplexSelector);
- for (t2 = J.get$iterator$ax(A.paths(new A.WhereIterable(choices, new A._weaveParents_closure2(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent), type$.Iterable_ComplexSelectorComponent)), t3 = !prefix.lineBreak, t5 = base.lineBreak; t2.moveNext$0();) {
- t6 = t2.get$current(t2);
- t7 = A._setArrayType([], t4);
- for (t6 = J.get$iterator$ax(t6); t6.moveNext$0();)
- B.JSArray_methods.addAll$1(t7, t6.get$current(t6));
- t1.push(A.ComplexSelector$(leadingCombinators, t7, span, !t3 || t5));
- }
- return t1;
- },
- _firstIfRootish(queue) {
- var first, t1, t2, _i, simple, t3;
- if (queue.get$length(0) >= 1) {
- first = queue.$index(0, 0);
- for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- simple = t1[_i];
- if (simple instanceof A.PseudoSelector)
- if (simple.isClass)
- t3 = $._rootishPseudoClasses.contains$1(0, simple.normalizedName);
- else
- t3 = false;
- else
- t3 = false;
- if (t3) {
- queue.removeFirst$0();
- return first;
- }
- }
- }
- return null;
- },
- _mergeLeadingCombinators(combinators1, combinators2) {
- var _0_4, t1, _0_7_isSet, _0_7, t2, _0_11_isSet, _0_11, _0_4_isSet, combinators, _null = null;
- $label0$0: {
- _0_4 = combinators2;
- t1 = type$.List_CssValue_Combinator;
- _0_7_isSet = t1._is(combinators1);
- if (_0_7_isSet) {
- _0_7 = combinators1.length;
- t2 = _0_7;
- t2 = t2 > 1;
- } else {
- _0_7 = _null;
- t2 = false;
- }
- if (!t2) {
- t2 = _0_4;
- _0_11_isSet = t1._is(t2);
- if (_0_11_isSet) {
- t2 = _0_4;
- _0_11 = (t2 == null ? t1._as(t2) : t2).length;
- t2 = _0_11;
- _0_4_isSet = true;
- t2 = t2 > 1;
- } else {
- _0_11 = _null;
- _0_4_isSet = true;
- t2 = false;
- }
- } else {
- _0_11 = _null;
- _0_4_isSet = true;
- _0_11_isSet = false;
- t2 = true;
- }
- if (t2) {
- t1 = _null;
- break $label0$0;
- }
- if (t1._is(combinators1)) {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- _0_7 = combinators1.length;
- t2 = _0_7;
- }
- t2 = t2 <= 0;
- if (t2)
- if (_0_4_isSet)
- combinators = _0_4;
- else {
- combinators = combinators2;
- _0_4 = combinators;
- _0_4_isSet = true;
- }
- else
- combinators = _null;
- } else {
- combinators = _null;
- t2 = false;
- }
- if (!t2) {
- if (_0_4_isSet)
- t2 = _0_4;
- else {
- t2 = combinators2;
- _0_4 = t2;
- _0_4_isSet = true;
- }
- if (t1._is(t2)) {
- if (_0_11_isSet)
- t1 = _0_11;
- else {
- t2 = _0_4_isSet ? _0_4 : combinators2;
- _0_11 = (t2 == null ? t1._as(t2) : t2).length;
- t1 = _0_11;
- }
- t1 = t1 <= 0;
- } else
- t1 = false;
- combinators = combinators1;
- } else
- t1 = true;
- if (t1) {
- t1 = combinators;
- break $label0$0;
- }
- t1 = B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null;
- break $label0$0;
- }
- return t1;
- },
- _mergeTrailingCombinators(components1, components2, span, result) {
- var _0_1, t1, _1_1, t2, t3, _4_1, _4_3, _4_4_isSet, _4_4, _4_5, component1, component2, t4, t5, choices, _2_0, _4_4_isSet0, _4_9, _4_6_isSet, _4_6, _4_7, nextComponents, followingComponents, _4_7_isSet, _4_10_isSet, _4_10, _4_5_isSet, next, following, _3_0, siblingComponents_case_0, t0, siblingComponents_case_1, combinator1, combinator2, unified, combinator_case_0, combinatorComponents_case_0, descendantComponents_case_0, t6, combinator_case_1, descendantComponents_case_1, combinatorComponents_case_1, _null = null;
- if (result == null)
- result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent);
- $label0$0: {
- _0_1 = components1.get$length(0);
- if (_0_1 >= 1) {
- t1 = components1.$index(0, _0_1 - 1).combinators;
- break $label0$0;
- }
- t1 = B.List_empty0;
- break $label0$0;
- }
- $label1$1: {
- _1_1 = components2.get$length(0);
- if (_1_1 >= 1) {
- t2 = components2.$index(0, _1_1 - 1).combinators;
- break $label1$1;
- }
- t2 = B.List_empty0;
- break $label1$1;
- }
- t3 = t1.length;
- if (t3 === 0 && t2.length === 0)
- return result;
- if (t3 > 1 || t2.length > 1)
- return _null;
- $label2$2: {
- t3 = A.IterableExtension_get_firstOrNull(t1);
- t3 = t3 == null ? _null : t3.value;
- t2 = A.IterableExtension_get_firstOrNull(t2);
- t2 = [t3, t2 == null ? _null : t2.value, components1, components2];
- _4_1 = t2[0];
- _4_3 = B.Combinator_y18 === _4_1;
- _4_4_isSet = _4_3;
- if (_4_4_isSet) {
- _4_4 = t2[1];
- _4_5 = B.Combinator_y18 === _4_4;
- t3 = _4_5;
- } else {
- _4_4 = _null;
- _4_5 = _4_4;
- t3 = false;
- }
- if (t3) {
- component1 = components1.removeLast$0(0);
- component2 = components2.removeLast$0(0);
- t2 = component1.selector;
- t3 = component2.selector;
- if (A.compoundIsSuperselector(t2, t3, _null))
- result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- else {
- t4 = type$.JSArray_ComplexSelectorComponent;
- t5 = type$.JSArray_List_ComplexSelectorComponent;
- if (A.compoundIsSuperselector(t3, t2, _null))
- result.addFirst$1(A._setArrayType([A._setArrayType([component1], t4)], t5));
- else {
- choices = A._setArrayType([A._setArrayType([component1, component2], t4), A._setArrayType([component2, component1], t4)], t5);
- _2_0 = A.unifyCompound(t2, t3);
- if (_2_0 != null)
- choices.push(A._setArrayType([new A.ComplexSelectorComponent(_2_0, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator), type$.CssValue_Combinator), span)], t4));
- result.addFirst$1(choices);
- }
- }
- break $label2$2;
- }
- if (_4_3) {
- if (_4_4_isSet) {
- t3 = _4_4;
- _4_4_isSet0 = _4_4_isSet;
- } else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet0 = true;
- }
- _4_9 = B.Combinator_gRV === t3;
- _4_6_isSet = _4_9;
- if (_4_6_isSet) {
- _4_6 = t2[2];
- _4_7 = t2[3];
- nextComponents = _4_7;
- followingComponents = _4_6;
- } else {
- nextComponents = _null;
- followingComponents = nextComponents;
- _4_7 = followingComponents;
- _4_6 = _4_7;
- }
- t3 = _4_6_isSet;
- _4_7_isSet = t3;
- } else {
- nextComponents = _null;
- followingComponents = nextComponents;
- _4_7 = followingComponents;
- _4_6 = _4_7;
- _4_9 = _4_6;
- _4_4_isSet0 = _4_4_isSet;
- _4_6_isSet = false;
- _4_7_isSet = false;
- t3 = false;
- }
- _4_10_isSet = !t3;
- if (_4_10_isSet) {
- _4_10 = B.Combinator_gRV === _4_1;
- t3 = _4_10;
- if (t3) {
- if (_4_4_isSet) {
- t3 = _4_5;
- _4_5_isSet = _4_4_isSet;
- _4_4_isSet = _4_4_isSet0;
- } else {
- if (_4_4_isSet0) {
- t3 = _4_4;
- _4_4_isSet = _4_4_isSet0;
- } else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- _4_5 = B.Combinator_y18 === t3;
- t3 = _4_5;
- _4_5_isSet = true;
- }
- if (t3) {
- if (_4_6_isSet)
- nextComponents = _4_6;
- else {
- _4_6 = t2[2];
- nextComponents = _4_6;
- _4_6_isSet = true;
- }
- if (_4_7_isSet)
- followingComponents = _4_7;
- else {
- _4_7 = t2[3];
- followingComponents = _4_7;
- _4_7_isSet = true;
- }
- }
- } else {
- _4_5_isSet = _4_4_isSet;
- _4_4_isSet = _4_4_isSet0;
- t3 = false;
- }
- } else {
- _4_10 = _null;
- _4_5_isSet = _4_4_isSet;
- _4_4_isSet = _4_4_isSet0;
- t3 = true;
- }
- if (t3) {
- next = nextComponents.removeLast$0(0);
- following = followingComponents.removeLast$0(0);
- t1 = following.selector;
- t2 = next.selector;
- t3 = type$.JSArray_ComplexSelectorComponent;
- t4 = type$.JSArray_List_ComplexSelectorComponent;
- if (A.compoundIsSuperselector(t1, t2, _null))
- result.addFirst$1(A._setArrayType([A._setArrayType([next], t3)], t4));
- else {
- t4 = A._setArrayType([A._setArrayType([following, next], t3)], t4);
- _3_0 = A.unifyCompound(t1, t2);
- if (_3_0 != null)
- t4.push(A._setArrayType([new A.ComplexSelectorComponent(_3_0, A.List_List$unmodifiable(next.combinators, type$.CssValue_Combinator), span)], t3));
- result.addFirst$1(t4);
- }
- break $label2$2;
- }
- if (B.Combinator_8I8 === _4_1) {
- if (_4_3)
- t3 = _4_9;
- else {
- if (_4_4_isSet)
- t3 = _4_4;
- else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- _4_9 = B.Combinator_gRV === t3;
- t3 = _4_9;
- }
- if (!t3)
- if (_4_5_isSet)
- t3 = _4_5;
- else {
- if (_4_4_isSet)
- t3 = _4_4;
- else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- _4_5 = B.Combinator_y18 === t3;
- t3 = _4_5;
- }
- else
- t3 = true;
- if (t3) {
- if (_4_7_isSet)
- siblingComponents_case_0 = _4_7;
- else {
- _4_7 = t2[3];
- siblingComponents_case_0 = _4_7;
- _4_7_isSet = true;
- }
- t4 = siblingComponents_case_0;
- } else
- t4 = _null;
- t0 = t4;
- t4 = t3;
- t3 = t0;
- } else {
- t3 = _null;
- t4 = false;
- }
- if (!t4) {
- if (_4_10_isSet)
- t4 = _4_10;
- else {
- _4_10 = B.Combinator_gRV === _4_1;
- t4 = _4_10;
- }
- if (!t4)
- t4 = _4_3;
- else
- t4 = true;
- if (t4) {
- if (_4_4_isSet)
- t4 = _4_4;
- else {
- _4_4 = t2[1];
- t4 = _4_4;
- _4_4_isSet = true;
- }
- t4 = B.Combinator_8I8 === t4;
- if (t4) {
- if (_4_6_isSet)
- siblingComponents_case_1 = _4_6;
- else {
- _4_6 = t2[2];
- siblingComponents_case_1 = _4_6;
- _4_6_isSet = true;
- }
- t3 = siblingComponents_case_1;
- }
- } else
- t4 = false;
- } else
- t4 = true;
- if (t4) {
- result.addFirst$1(A._setArrayType([A._setArrayType([t3.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- break $label2$2;
- }
- t3 = _4_1 == null;
- t4 = !t3;
- if (t4) {
- combinator1 = _4_1;
- if (_4_4_isSet)
- t5 = _4_4;
- else {
- _4_4 = t2[1];
- t5 = _4_4;
- _4_4_isSet = true;
- }
- if (t5 != null) {
- if (_4_4_isSet)
- combinator2 = _4_4;
- else {
- _4_4 = t2[1];
- combinator2 = _4_4;
- _4_4_isSet = true;
- }
- t5 = combinator1 === (combinator2 == null ? type$.Combinator._as(combinator2) : combinator2);
- } else
- t5 = false;
- } else
- t5 = false;
- if (t5) {
- unified = A.unifyCompound(components1.removeLast$0(0).selector, components2.removeLast$0(0).selector);
- if (unified == null)
- return _null;
- result.addFirst$1(A._setArrayType([A._setArrayType([new A.ComplexSelectorComponent(unified, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator), type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- break $label2$2;
- }
- if (t4) {
- combinator_case_0 = _4_1;
- if (_4_4_isSet)
- t1 = _4_4;
- else {
- _4_4 = t2[1];
- t1 = _4_4;
- _4_4_isSet = true;
- }
- t1 = t1 == null;
- if (t1) {
- if (_4_6_isSet)
- combinatorComponents_case_0 = _4_6;
- else {
- _4_6 = t2[2];
- combinatorComponents_case_0 = _4_6;
- _4_6_isSet = true;
- }
- if (_4_7_isSet)
- descendantComponents_case_0 = _4_7;
- else {
- _4_7 = t2[3];
- descendantComponents_case_0 = _4_7;
- _4_7_isSet = true;
- }
- t4 = descendantComponents_case_0;
- t6 = t4;
- t4 = combinator_case_0;
- t5 = combinatorComponents_case_0;
- } else {
- t6 = _null;
- t5 = t6;
- t4 = t5;
- }
- t0 = t6;
- t6 = t1;
- t1 = t4;
- t4 = t5;
- t5 = t0;
- } else {
- t5 = _null;
- t4 = t5;
- t1 = t4;
- t6 = false;
- }
- if (!t6)
- if (t3) {
- if (_4_4_isSet)
- t3 = _4_4;
- else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- t3 = t3 != null;
- if (t3) {
- combinator_case_1 = _4_4_isSet ? _4_4 : t2[1];
- if (combinator_case_1 == null)
- combinator_case_1 = type$.Combinator._as(combinator_case_1);
- descendantComponents_case_1 = _4_6_isSet ? _4_6 : t2[2];
- combinatorComponents_case_1 = _4_7_isSet ? _4_7 : t2[3];
- t1 = combinatorComponents_case_1;
- t2 = descendantComponents_case_1;
- t4 = t2;
- t2 = t1;
- t1 = combinator_case_1;
- } else {
- t2 = t4;
- t4 = t5;
- }
- t0 = t4;
- t4 = t3;
- t3 = t0;
- } else {
- t3 = t5;
- t2 = t4;
- t4 = false;
- }
- else {
- t3 = t5;
- t2 = t4;
- t4 = true;
- }
- if (t4) {
- if (t1 === B.Combinator_8I8) {
- t1 = A.IterableExtension_get_lastOrNull(t3);
- t1 = t1 == null ? _null : A.compoundIsSuperselector(t1.selector, t2.get$last(t2).selector, _null);
- t1 = t1 === true;
- } else
- t1 = false;
- if (t1)
- t3.removeLast$0(0);
- result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
- break $label2$2;
- }
- return _null;
- }
- return A._mergeTrailingCombinators(components1, components2, span, result);
- },
- _mustUnify(complex1, complex2) {
- var t2, t3, t4,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector);
- for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();)
- for (t3 = B.JSArray_methods.get$iterator(t2.get$current(t2).selector.components), t4 = new A.WhereIterator(t3, A.functions___isUnique$closure()); t4.moveNext$0();)
- t1.add$1(0, t3.get$current(0));
- if (t1._collection$_length === 0)
- return false;
- return J.any$1$ax(complex2, new A._mustUnify_closure(t1));
- },
- _isUnique(simple) {
- var t1;
- if (!(simple instanceof A.IDSelector))
- t1 = simple instanceof A.PseudoSelector && !simple.isClass;
- else
- t1 = true;
- return t1;
- },
- _chunks(queue1, queue2, done, $T) {
- var chunk2, _0_4, _0_5_isSet, _0_1, _0_7, _0_5, chunk, _0_5_isSet0, t2, _null = null,
- t1 = $T._eval$1("JSArray<0>"),
- chunk1 = A._setArrayType([], t1);
- for (; !done.call$1(queue1);)
- chunk1.push(queue1.removeFirst$0());
- chunk2 = A._setArrayType([], t1);
- for (; !done.call$1(queue2);)
- chunk2.push(queue2.removeFirst$0());
- $label0$0: {
- _0_4 = chunk1.length <= 0;
- _0_5_isSet = _0_4;
- _0_1 = chunk1;
- if (_0_5_isSet) {
- _0_7 = chunk2.length <= 0;
- t1 = _0_7;
- _0_5 = chunk2;
- } else {
- _0_5 = _null;
- _0_7 = _0_5;
- t1 = false;
- }
- if (t1) {
- t1 = A._setArrayType([], $T._eval$1("JSArray<List<0>>"));
- break $label0$0;
- }
- if (_0_4)
- if (_0_5_isSet) {
- chunk = _0_5;
- _0_5_isSet0 = _0_5_isSet;
- } else {
- chunk = chunk2;
- _0_5 = chunk;
- _0_5_isSet0 = true;
- }
- else {
- chunk = _null;
- _0_5_isSet0 = _0_5_isSet;
- }
- if (!_0_4) {
- if (_0_5_isSet)
- t1 = _0_7;
- else {
- _0_7 = (_0_5_isSet0 ? _0_5 : chunk2).length <= 0;
- t1 = _0_7;
- }
- chunk = _0_1;
- } else
- t1 = true;
- if (t1) {
- t1 = A._setArrayType([chunk], $T._eval$1("JSArray<List<0>>"));
- break $label0$0;
- }
- t1 = A.List_List$of(chunk1, true, $T);
- B.JSArray_methods.addAll$1(t1, chunk2);
- t2 = A.List_List$of(chunk2, true, $T);
- B.JSArray_methods.addAll$1(t2, chunk1);
- t2 = A._setArrayType([t1, t2], $T._eval$1("JSArray<List<0>>"));
- t1 = t2;
- break $label0$0;
- }
- return t1;
- },
- paths(choices, $T) {
- return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new A.paths_closure($T));
- },
- _groupSelectors(complex) {
- var t2, t3, t4,
- groups = A.QueueList$(null, type$.List_ComplexSelectorComponent),
- t1 = type$.JSArray_ComplexSelectorComponent,
- group = A._setArrayType([], t1);
- for (t2 = complex.$ti, t3 = new A.ListIterator(complex, complex.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t3.moveNext$0();) {
- t4 = t3.__internal$_current;
- if (t4 == null)
- t4 = t2._as(t4);
- group.push(t4);
- if (t4.combinators.length === 0) {
- groups._queue_list$_add$1(group);
- group = A._setArrayType([], t1);
- }
- }
- if (group.length !== 0)
- groups._queue_list$_add$1(group);
- return groups;
- },
- listIsSuperselector(list1, list2) {
- return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure(list1));
- },
- _complexIsParentSuperselector(complex1, complex2) {
- var t1, base, t2;
- if (J.get$length$asx(complex1) > J.get$length$asx(complex2))
- return false;
- t1 = $.$get$bogusSpan();
- base = new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([new A.PlaceholderSelector("<temp>", t1)], type$.JSArray_SimpleSelector), t1), A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), t1);
- t1 = type$.ComplexSelectorComponent;
- t2 = A.List_List$of(complex1, true, t1);
- t2.push(base);
- t1 = A.List_List$of(complex2, true, t1);
- t1.push(base);
- return A.complexIsSuperselector(t2, t1);
- },
- complexIsSuperselector(complex1, complex2) {
- var t1, t2, previousCombinator, i1, i2, remaining1, remaining2, component1, t3, t4, endOfSubselector, component2, t5, combinator1, _null = null;
- if (B.JSArray_methods.get$last(complex1).combinators.length !== 0)
- return false;
- if (B.JSArray_methods.get$last(complex2).combinators.length !== 0)
- return false;
- for (t1 = A._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), previousCombinator = _null, i1 = 0, i2 = 0; true; previousCombinator = combinator1) {
- remaining1 = complex1.length - i1;
- remaining2 = complex2.length - i2;
- if (remaining1 === 0 || remaining2 === 0)
- return false;
- if (remaining1 > remaining2)
- return false;
- component1 = complex1[i1];
- t3 = component1.combinators;
- if (t3.length > 1)
- return false;
- if (remaining1 === 1)
- if (B.JSArray_methods.any$1(complex2, new A.complexIsSuperselector_closure()))
- return false;
- else {
- t1 = component1.selector;
- t2 = B.JSArray_methods.get$last(complex2).selector;
- return A.compoundIsSuperselector(t1, t2, t1.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, complex2.length - 1) : _null);
- }
- for (t4 = component1.selector, endOfSubselector = i2; true;) {
- component2 = complex2[endOfSubselector];
- if (component2.combinators.length > 1)
- return false;
- t5 = component2.selector;
- if (A.compoundIsSuperselector(t4, t5, t4.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, endOfSubselector) : _null))
- break;
- ++endOfSubselector;
- if (endOfSubselector === complex2.length - 1)
- return false;
- }
- t4 = new A.SubListIterable(complex2, 0, endOfSubselector, t1);
- t4.SubListIterable$3(complex2, 0, endOfSubselector, t2);
- if (!A._compatibleWithPreviousCombinator(previousCombinator, t4.skip$1(0, i2)))
- return false;
- component2 = complex2[endOfSubselector];
- combinator1 = A.IterableExtension_get_firstOrNull(t3);
- if (!A._isSupercombinator(combinator1, A.IterableExtension_get_firstOrNull(component2.combinators)))
- return false;
- ++i1;
- i2 = endOfSubselector + 1;
- if (complex1.length - i1 === 1) {
- t3 = combinator1 == null;
- if (J.$eq$(t3 ? _null : combinator1.value, B.Combinator_y18)) {
- t3 = complex2.length - 1;
- t4 = new A.SubListIterable(complex2, 0, t3, t1);
- t4.SubListIterable$3(complex2, 0, t3, t2);
- if (!t4.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure0(combinator1)))
- return false;
- } else if (!t3)
- if (complex2.length - i2 > 1)
- return false;
- }
- }
- },
- _compatibleWithPreviousCombinator(previous, parents) {
- if (parents.get$isEmpty(parents))
- return true;
- if (previous == null)
- return true;
- if (previous.value !== B.Combinator_y18)
- return false;
- return parents.every$1(0, new A._compatibleWithPreviousCombinator_closure());
- },
- _isSupercombinator(combinator1, combinator2) {
- var t1, t2;
- if (!J.$eq$(combinator1, combinator2)) {
- t1 = combinator1 == null;
- if (t1)
- t2 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_8I8);
- else
- t2 = false;
- if (!t2)
- if (J.$eq$(t1 ? null : combinator1.value, B.Combinator_y18))
- t1 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_gRV);
- else
- t1 = false;
- else
- t1 = true;
- } else
- t1 = true;
- return t1;
- },
- compoundIsSuperselector(compound1, compound2, parents) {
- var t1, _0_1, _0_5, _0_5_isSet, t2, pseudo1, index1, t3, pseudo2, index2, _0_50, t4, t5, _i, simple1, _null = null;
- if (!compound1.get$hasComplicatedSuperselectorSemantics() && !compound2.get$hasComplicatedSuperselectorSemantics()) {
- t1 = compound1.components;
- if (t1.length > compound2.components.length)
- return false;
- return B.JSArray_methods.every$1(t1, new A.compoundIsSuperselector_closure(compound2));
- }
- _0_1 = A._findPseudoElementIndexed(compound1);
- _0_5 = A._findPseudoElementIndexed(compound2);
- t1 = type$.Record_2_nullable_Object_and_nullable_Object;
- _0_5_isSet = t1._is(_0_1);
- if (_0_5_isSet) {
- t2 = _0_1 == null;
- pseudo1 = (t2 ? t1._as(_0_1) : _0_1)._0;
- index1 = (t2 ? t1._as(_0_1) : _0_1)._1;
- t2 = t1._is(_0_5);
- if (t2) {
- t3 = _0_5 == null;
- pseudo2 = (t3 ? t1._as(_0_5) : _0_5)._0;
- index2 = (t3 ? t1._as(_0_5) : _0_5)._1;
- } else {
- index2 = _null;
- pseudo2 = index2;
- }
- t1 = t2;
- _0_50 = _0_5;
- } else {
- index2 = _null;
- pseudo2 = index2;
- index1 = pseudo2;
- pseudo1 = index1;
- _0_50 = pseudo1;
- t1 = false;
- }
- if (t1) {
- if (pseudo1.isSuperselector$1(pseudo2)) {
- t1 = compound1.components;
- t2 = type$.int;
- t3 = A._arrayInstanceType(t1)._precomputed1;
- t4 = compound2.components;
- t5 = A._arrayInstanceType(t4)._precomputed1;
- t1 = A._compoundComponentsIsSuperselector(A.SubListIterable$(t1, 0, A.checkNotNullable(index1, "count", t2), t3), A.SubListIterable$(t4, 0, A.checkNotNullable(index2, "count", t2), t5), parents) && A._compoundComponentsIsSuperselector(A.SubListIterable$(t1, index1 + 1, _null, t3), A.SubListIterable$(t4, index2 + 1, _null, t5), parents);
- } else
- t1 = false;
- return t1;
- }
- if (_0_1 == null)
- t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
- else
- t1 = true;
- if (t1)
- return false;
- for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) {
- simple1 = t1[_i];
- if (simple1 instanceof A.PseudoSelector)
- t4 = simple1.selector != null;
- else
- t4 = false;
- if (t4) {
- if (!A._selectorPseudoIsSuperselector(simple1, compound2, parents))
- return false;
- } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector()))
- return false;
- }
- return true;
- },
- _findPseudoElementIndexed(compound) {
- var t1, t2, i, simple;
- for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) {
- simple = t1[i];
- if (simple instanceof A.PseudoSelector && !simple.isClass)
- return new A._Record_2(simple, i);
- }
- return null;
- },
- _compoundComponentsIsSuperselector(compound1, compound2, parents) {
- var t1;
- if (compound1.get$length(0) === 0)
- return true;
- if (compound2.get$length(0) === 0)
- compound2 = A._setArrayType([new A.UniversalSelector("*", $.$get$bogusSpan())], type$.JSArray_SimpleSelector);
- t1 = $.$get$bogusSpan();
- return A.compoundIsSuperselector(A.CompoundSelector$(compound1, t1), A.CompoundSelector$(compound2, t1), parents);
- },
- _selectorPseudoIsSuperselector(pseudo1, compound2, parents) {
- var selector1 = pseudo1.selector;
- if (selector1 == null)
- throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null));
- switch (pseudo1.normalizedName) {
- case "is":
- case "matches":
- case "any":
- case "where":
- return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure(selector1)) || B.JSArray_methods.any$1(selector1.components, new A._selectorPseudoIsSuperselector_closure0(parents, compound2));
- case "has":
- case "host":
- case "host-context":
- return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure1(selector1));
- case "slotted":
- return A._selectorPseudoArgs(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure2(selector1));
- case "not":
- return B.JSArray_methods.every$1(selector1.components, new A._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
- case "current":
- return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure4(selector1));
- case "nth-child":
- case "nth-last-child":
- return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure5(pseudo1, selector1));
- default:
- throw A.wrapException("unreachable");
- }
- },
- _selectorPseudoArgs(compound, $name, isClass) {
- var t1 = type$.WhereTypeIterable_PseudoSelector;
- return A.IterableNullableExtension_whereNotNull(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>")), new A._selectorPseudoArgs_closure0(), t1._eval$1("MappedIterable<Iterable.E,SelectorList?>")), type$.SelectorList);
- },
- unifyComplex_closure: function unifyComplex_closure() {
- },
- _weaveParents_closure: function _weaveParents_closure(t0) {
- this.span = t0;
- },
- _weaveParents_closure0: function _weaveParents_closure0(t0) {
- this.group = t0;
- },
- _weaveParents_closure1: function _weaveParents_closure1() {
- },
- _weaveParents_closure2: function _weaveParents_closure2() {
- },
- _mustUnify_closure: function _mustUnify_closure(t0) {
- this.uniqueSelectors = t0;
- },
- _mustUnify__closure: function _mustUnify__closure(t0) {
- this.uniqueSelectors = t0;
- },
- paths_closure: function paths_closure(t0) {
- this.T = t0;
- },
- paths__closure: function paths__closure(t0, t1) {
- this.paths = t0;
- this.T = t1;
- },
- paths___closure: function paths___closure(t0, t1) {
- this.option = t0;
- this.T = t1;
- },
- listIsSuperselector_closure: function listIsSuperselector_closure(t0) {
- this.list1 = t0;
- },
- listIsSuperselector__closure: function listIsSuperselector__closure(t0) {
- this.complex1 = t0;
- },
- complexIsSuperselector_closure: function complexIsSuperselector_closure() {
- },
- complexIsSuperselector_closure0: function complexIsSuperselector_closure0(t0) {
- this.combinator1 = t0;
- },
- _compatibleWithPreviousCombinator_closure: function _compatibleWithPreviousCombinator_closure() {
- },
- compoundIsSuperselector_closure: function compoundIsSuperselector_closure(t0) {
- this.compound2 = t0;
- },
- _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
- this.parents = t0;
- this.compound2 = t1;
- },
- _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
- this.compound2 = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
- this.complex = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0, t1) {
- this.pseudo1 = t0;
- this.selector1 = t1;
- },
- _selectorPseudoArgs_closure: function _selectorPseudoArgs_closure(t0, t1) {
- this.isClass = t0;
- this.name = t1;
- },
- _selectorPseudoArgs_closure0: function _selectorPseudoArgs_closure0() {
- },
- MergedExtension_merge(left, right) {
- var t2, t3, t4,
- t1 = left.extender.selector;
- if (!t1.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target))
- throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null));
- t2 = left.mediaContext;
- t3 = t2 == null;
- if (!t3) {
- t4 = right.mediaContext;
- t4 = t4 != null && !B.C_ListEquality.equals$2(0, t2, t4);
- } else
- t4 = false;
- if (t4)
- throw A.wrapException(A.SassException$("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span, null));
- if (right.isOptional && right.mediaContext == null)
- return left;
- if (left.isOptional && t3)
- return right;
- if (t3)
- t2 = right.mediaContext;
- t1.get$specificity();
- t1 = new A.Extender(t1, false);
- return t1._extension = new A.MergedExtension(left, right, t1, left.target, t2, true, left.span);
- },
- MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.extender = t2;
- _.target = t3;
- _.mediaContext = t4;
- _.isOptional = t5;
- _.span = t6;
- },
- ExtendMode: function ExtendMode(t0, t1) {
- this.name = t0;
- this._name = t1;
- },
- globalFunctions_closure: function globalFunctions_closure() {
- },
- _updateComponents($arguments, adjust, change, scale) {
- var keywords, alpha, red, green, blue, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t2, t3, t4, t5, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
- if (argumentList._list$_contents.length !== 0)
- throw A.wrapException(A.SassScriptException$(string$.Only_op, _null));
- argumentList._wereKeywordsAccessed = true;
- keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, type$.String, type$.Value);
- t1 = new A._updateComponents_getParam(keywords, scale, change);
- alpha = t1.call$3$checkUnitless("alpha", 1, true);
- red = t1.call$2("red", 255);
- green = t1.call$2("green", 255);
- blue = t1.call$2("blue", 255);
- hue = scale ? _null : A.NullableExtension_andThen(keywords.remove$1(0, "hue"), new A._updateComponents_closure());
- saturation = t1.call$3$checkPercent("saturation", 100, true);
- lightness = t1.call$3$checkPercent("lightness", 100, true);
- whiteness = t1.call$3$assertPercent("whiteness", 100, true);
- blackness = t1.call$3$assertPercent("blackness", 100, true);
- t1 = keywords.__js_helper$_length;
- if (t1 !== 0)
- throw A.wrapException(A.SassScriptException$("No " + A.pluralize("argument", t1, _null) + " named " + A.toSentence(keywords.get$keys(0).map$1$1(0, new A._updateComponents_closure0(), type$.Object), "or") + ".", _null));
- hasRgb = red != null || green != null || blue != null;
- hasSL = saturation != null || lightness != null;
- hasWB = whiteness != null || blackness != null;
- if (hasRgb)
- t1 = hasSL || hasWB || hue != null;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters.", _null));
- if (hasSL && hasWB)
- throw A.wrapException(A.SassScriptException$(string$.HSL_pa, _null));
- t1 = new A._updateComponents_updateValue(change, adjust);
- t2 = new A._updateComponents_updateRgb(t1);
- if (hasRgb) {
- t3 = t2.call$2(color.get$red(0), red);
- t4 = t2.call$2(color.get$green(0), green);
- t2 = t2.call$2(color.get$blue(0), blue);
- return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color._alpha, alpha, 1), t2, t4, t3);
- } else if (hasWB) {
- if (change)
- t2 = hue;
- else {
- t2 = color.get$hue(0);
- t2 += hue == null ? 0 : hue;
- }
- t3 = t1.call$3(color.get$whiteness(0), whiteness, 100);
- t4 = t1.call$3(color.get$blackness(0), blackness, 100);
- t5 = color._alpha;
- t1 = t1.call$3(t5, alpha, 1);
- if (t2 == null)
- t2 = color.get$hue(0);
- if (t3 == null)
- t3 = color.get$whiteness(0);
- if (t4 == null)
- t4 = color.get$blackness(0);
- return A.SassColor_SassColor$hwb(t2, t3, t4, t1 == null ? t5 : t1);
- } else {
- t2 = hue == null;
- if (!t2 || hasSL) {
- if (change)
- t2 = hue;
- else {
- t3 = color.get$hue(0);
- t3 += t2 ? 0 : hue;
- t2 = t3;
- }
- t3 = t1.call$3(color.get$saturation(0), saturation, 100);
- t4 = t1.call$3(color.get$lightness(0), lightness, 100);
- return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color._alpha, alpha, 1), t2, t4, t3);
- } else if (alpha != null)
- return color.changeAlpha$1(t1.call$3(color._alpha, alpha, 1));
- else
- return color;
- }
- },
- _functionString($name, $arguments) {
- return new A.SassString($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure(), type$.String).join$1(0, ", ") + ")", false);
- },
- _removedColorFunction($name, argument, negative) {
- return A.BuiltInCallable$function($name, "$color, $amount", new A._removedColorFunction_closure($name, argument, negative), "sass:color");
- },
- _rgb($name, $arguments) {
- var t2, red, green, blue, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return A._functionString($name, $arguments);
- red = t1.$index($arguments, 0).assertNumber$1("red");
- green = t1.$index($arguments, 1).assertNumber$1("green");
- blue = t1.$index($arguments, 2).assertNumber$1("blue");
- t1 = A.fuzzyRound(A._percentageOrUnitless(red, 255, "red"));
- t2 = A.fuzzyRound(A._percentageOrUnitless(green, 255, "green"));
- t3 = A.fuzzyRound(A._percentageOrUnitless(blue, 255, "blue"));
- t4 = A.NullableExtension_andThen(alpha, new A._rgb_closure());
- return A.SassColor$rgbInternal(t1, t2, t3, t4 == null ? 1 : t4, B._ColorFormatEnum_rgbFunction);
- },
- _rgbTwoArg($name, $arguments) {
- var t2, color,
- t1 = J.getInterceptor$asx($arguments);
- if (!t1.$index($arguments, 0).get$isVar())
- t2 = !(t1.$index($arguments, 0) instanceof A.SassColor) && t1.$index($arguments, 1).get$isVar();
- else
- t2 = true;
- if (t2)
- return A._functionString($name, $arguments);
- else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
- color = t1.$index($arguments, 0).assertColor$1("color");
- return new A.SassString($name + "(" + color.get$red(0) + ", " + color.get$green(0) + ", " + color.get$blue(0) + ", " + A.serializeValue(t1.$index($arguments, 1), false, true) + ")", false);
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(A._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
- },
- _hsl($name, $arguments) {
- var t2, hue, saturation, lightness, t3,
- _s10_ = "saturation",
- _s9_ = "lightness",
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return A._functionString($name, $arguments);
- hue = A._angleValue(t1.$index($arguments, 0), "hue");
- saturation = t1.$index($arguments, 1).assertNumber$1(_s10_);
- lightness = t1.$index($arguments, 2).assertNumber$1(_s9_);
- A._checkPercent(saturation, _s10_);
- A._checkPercent(lightness, _s9_);
- t1 = B.JSNumber_methods.clamp$2(saturation._number$_value, 0, 100);
- t2 = B.JSNumber_methods.clamp$2(lightness._number$_value, 0, 100);
- t3 = A.NullableExtension_andThen(alpha, new A._hsl_closure());
- return A.SassColor$hslInternal(hue, t1, t2, t3 == null ? 1 : t3, B._ColorFormatEnum_hslFunction);
- },
- _angleValue(angleValue, $name) {
- var angle = angleValue.assertNumber$1($name);
- if (angle.compatibleWithUnit$1("deg"))
- return angle.coerceValueToUnit$1("deg");
- A.warnForDeprecation("$" + $name + ": Passing a unit other than deg (" + angle.toString$0(0) + string$.x29x20is_d + angle.unitSuggestion$1($name) + string$.x0a_See_, B.Deprecation_2jN);
- return angle._number$_value;
- },
- _checkPercent(number, $name) {
- if (number.hasUnit$1("%"))
- return;
- A.warnForDeprecation("$" + $name + ": Passing a number without unit % (" + number.toString$0(0) + string$.x29x20is_d + number.unitSuggestion$2($name, "%") + string$.x0a_Morex3a, B.Deprecation_2jN);
- },
- _hwb($arguments) {
- var t2, t3,
- _s9_ = "whiteness",
- _s9_0 = "blackness",
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
- hue = A._angleValue(t1.$index($arguments, 0), "hue"),
- whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_),
- blackness = t1.$index($arguments, 2).assertNumber$1(_s9_0);
- whiteness.assertUnit$2("%", _s9_);
- blackness.assertUnit$2("%", _s9_0);
- t1 = whiteness.valueInRange$3(0, 100, _s9_);
- t2 = blackness.valueInRange$3(0, 100, _s9_0);
- t3 = A.NullableExtension_andThen(alpha, new A._hwb_closure());
- return A.SassColor_SassColor$hwb(hue, t1, t2, t3 == null ? 1 : t3);
- },
- _parseChannels($name, argumentNames, channels) {
- var list, t1, channels0, alphaFromSlashList, isCommaSeparated, isBracketed, buffer, _0_4, _1_0, _1_2_isSet, _1_2, t2, _null = null,
- _s17_ = "$channels must be";
- if (channels.get$isVar())
- return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value));
- if (channels.get$separator(channels) === B.ListSeparator_cQA) {
- list = channels.get$asList();
- t1 = list.length;
- if (t1 !== 2)
- throw A.wrapException(A.SassScriptException$(string$.Only_2 + t1 + " " + A.pluralize("was", t1, "were") + " passed.", _null));
- channels0 = list[0];
- alphaFromSlashList = list[1];
- if (!alphaFromSlashList.get$isSpecialNumber())
- alphaFromSlashList.assertNumber$1("alpha");
- if (list[0].get$isVar())
- return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value));
- } else {
- alphaFromSlashList = _null;
- channels0 = channels;
- }
- isCommaSeparated = channels0.get$separator(channels0) === B.ListSeparator_ECn;
- isBracketed = channels0.get$hasBrackets();
- if (isCommaSeparated || isBracketed) {
- buffer = new A.StringBuffer(_s17_);
- if (isBracketed) {
- t1 = _s17_ + " an unbracketed";
- buffer._contents = t1;
- } else
- t1 = _s17_;
- if (isCommaSeparated) {
- t1 += isBracketed ? "," : " a";
- buffer._contents = t1;
- t1 = buffer._contents = t1 + " space-separated";
- }
- buffer._contents = t1 + " list.";
- throw A.wrapException(A.SassScriptException$(buffer.toString$0(0), _null));
- }
- list = channels0.get$asList();
- if (list.length >= 2) {
- _0_4 = list[0];
- t1 = _0_4;
- if (t1 instanceof A.SassString) {
- type$.SassString._as(_0_4);
- t1 = !_0_4._hasQuotes && A.equalsIgnoreCase(_0_4._string$_text, "from");
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value));
- t1 = list.length;
- if (t1 > 3)
- throw A.wrapException(A.SassScriptException$("Only 3 elements allowed, but " + t1 + " were passed.", _null));
- else if (t1 < 3) {
- if (!B.JSArray_methods.any$1(list, new A._parseChannels_closure()))
- if (list.length !== 0) {
- t1 = B.JSArray_methods.get$last(list);
- if (t1 instanceof A.SassString)
- if (t1._hasQuotes) {
- t1 = t1._string$_text;
- t1 = A.startsWithIgnoreCase(t1, "var(") && B.JSString_methods.contains$1(t1, "/");
- } else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return A._functionString($name, A._setArrayType([channels], type$.JSArray_Value));
- else
- throw A.wrapException(A.SassScriptException$("Missing element " + argumentNames[list.length] + ".", _null));
- }
- if (alphaFromSlashList != null) {
- t1 = A.List_List$of(list, true, type$.Value);
- t1.push(alphaFromSlashList);
- return t1;
- }
- _1_0 = list[2];
- $label0$0: {
- _1_2_isSet = _1_0 instanceof A.SassNumber;
- if (_1_2_isSet) {
- _1_2 = _1_0.asSlash;
- t1 = type$.Record_2_nullable_Object_and_nullable_Object._is(_1_2);
- } else {
- _1_2 = _null;
- t1 = false;
- }
- if (t1) {
- if (_1_2_isSet)
- t1 = _1_2;
- else {
- _1_2 = _1_0.asSlash;
- t1 = _1_2;
- _1_2_isSet = true;
- }
- if (t1 == null)
- t1 = type$.Record_2_nullable_Object_and_nullable_Object._as(t1);
- t2 = _1_2_isSet ? _1_2 : _1_0.asSlash;
- if (t2 == null)
- t2 = type$.Record_2_nullable_Object_and_nullable_Object._as(t2);
- t2 = A._setArrayType([list[0], list[1], t1._0, t2._1], type$.JSArray_Value);
- t1 = t2;
- break $label0$0;
- }
- if (_1_0 instanceof A.SassString)
- if (!_1_0._hasQuotes)
- t1 = B.JSString_methods.contains$1(_1_0._string$_text, "/");
- else
- t1 = false;
- else
- t1 = false;
- if (t1) {
- t1 = A._functionString($name, A._setArrayType([channels0], type$.JSArray_Value));
- break $label0$0;
- }
- t1 = list;
- break $label0$0;
- }
- return t1;
- },
- _percentageOrUnitless(number, max, $name) {
- var value;
- if (!number.get$hasUnits())
- value = number._number$_value;
- else if (number.hasUnit$1("%"))
- value = max * number._number$_value / 100;
- else
- throw A.wrapException(A.SassScriptException$("$" + $name + ": Expected " + number.toString$0(0) + ' to have unit "%" or no units.', null));
- return B.JSNumber_methods.clamp$2(value, 0, max);
- },
- _mixColors(color1, color2, weight) {
- var weightScale, normalizedWeight, t1, t2, alphaDistance, t3, weight1, weight2;
- A._checkPercent(weight, "weight");
- weightScale = weight.valueInRange$3(0, 100, "weight") / 100;
- normalizedWeight = weightScale * 2 - 1;
- t1 = color1._alpha;
- t2 = color2._alpha;
- alphaDistance = t1 - t2;
- t3 = normalizedWeight * alphaDistance;
- weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2;
- weight2 = 1 - weight1;
- return A.SassColor$rgb(A.fuzzyRound(color1.get$red(0) * weight1 + color2.get$red(0) * weight2), A.fuzzyRound(color1.get$green(0) * weight1 + color2.get$green(0) * weight2), A.fuzzyRound(color1.get$blue(0) * weight1 + color2.get$blue(0) * weight2), t1 * weightScale + t2 * (1 - weightScale));
- },
- _opacify($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
- },
- _transparentize($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
- },
- _function4($name, $arguments, callback) {
- return A.BuiltInCallable$function($name, $arguments, callback, "sass:color");
- },
- global_closure0: function global_closure0() {
- },
- global_closure1: function global_closure1() {
- },
- global_closure2: function global_closure2() {
- },
- global_closure3: function global_closure3() {
- },
- global_closure4: function global_closure4() {
- },
- global_closure5: function global_closure5() {
- },
- global_closure6: function global_closure6() {
- },
- global_closure7: function global_closure7() {
- },
- global_closure8: function global_closure8() {
- },
- global_closure9: function global_closure9() {
- },
- global_closure10: function global_closure10() {
- },
- global_closure11: function global_closure11() {
- },
- global_closure12: function global_closure12() {
- },
- global_closure13: function global_closure13() {
- },
- global_closure14: function global_closure14() {
- },
- global_closure15: function global_closure15() {
- },
- global_closure16: function global_closure16() {
- },
- global_closure17: function global_closure17() {
- },
- global_closure18: function global_closure18() {
- },
- global_closure19: function global_closure19() {
- },
- global_closure20: function global_closure20() {
- },
- global_closure21: function global_closure21() {
- },
- global_closure22: function global_closure22() {
- },
- global_closure23: function global_closure23() {
- },
- global_closure24: function global_closure24() {
- },
- global_closure25: function global_closure25() {
- },
- global__closure: function global__closure() {
- },
- global_closure26: function global_closure26() {
- },
- module_closure1: function module_closure1() {
- },
- module_closure2: function module_closure2() {
- },
- module_closure3: function module_closure3() {
- },
- module_closure4: function module_closure4() {
- },
- module_closure5: function module_closure5() {
- },
- module_closure6: function module_closure6() {
- },
- module_closure7: function module_closure7() {
- },
- module_closure8: function module_closure8() {
- },
- module__closure1: function module__closure1() {
- },
- module_closure9: function module_closure9() {
- },
- _red_closure: function _red_closure() {
- },
- _green_closure: function _green_closure() {
- },
- _blue_closure: function _blue_closure() {
- },
- _mix_closure: function _mix_closure() {
- },
- _hue_closure: function _hue_closure() {
- },
- _saturation_closure: function _saturation_closure() {
- },
- _lightness_closure: function _lightness_closure() {
- },
- _complement_closure: function _complement_closure() {
- },
- _adjust_closure: function _adjust_closure() {
- },
- _scale_closure: function _scale_closure() {
- },
- _change_closure: function _change_closure() {
- },
- _ieHexStr_closure: function _ieHexStr_closure() {
- },
- _ieHexStr_closure_hexString: function _ieHexStr_closure_hexString() {
- },
- _updateComponents_getParam: function _updateComponents_getParam(t0, t1, t2) {
- this.keywords = t0;
- this.scale = t1;
- this.change = t2;
- },
- _updateComponents_closure: function _updateComponents_closure() {
- },
- _updateComponents_closure0: function _updateComponents_closure0() {
- },
- _updateComponents_updateValue: function _updateComponents_updateValue(t0, t1) {
- this.change = t0;
- this.adjust = t1;
- },
- _updateComponents_updateRgb: function _updateComponents_updateRgb(t0) {
- this.updateValue = t0;
- },
- _functionString_closure: function _functionString_closure() {
- },
- _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) {
- this.name = t0;
- this.argument = t1;
- this.negative = t2;
- },
- _rgb_closure: function _rgb_closure() {
- },
- _hsl_closure: function _hsl_closure() {
- },
- _hwb_closure: function _hwb_closure() {
- },
- _parseChannels_closure: function _parseChannels_closure() {
- },
- _function3($name, $arguments, callback) {
- return A.BuiltInCallable$function($name, $arguments, callback, "sass:list");
- },
- _length_closure0: function _length_closure0() {
- },
- _nth_closure: function _nth_closure() {
- },
- _setNth_closure: function _setNth_closure() {
- },
- _join_closure: function _join_closure() {
- },
- _append_closure0: function _append_closure0() {
- },
- _zip_closure: function _zip_closure() {
- },
- _zip__closure: function _zip__closure() {
- },
- _zip__closure0: function _zip__closure0(t0) {
- this._box_0 = t0;
- },
- _zip__closure1: function _zip__closure1(t0) {
- this._box_0 = t0;
- },
- _index_closure0: function _index_closure0() {
- },
- _separator_closure: function _separator_closure() {
- },
- _isBracketed_closure: function _isBracketed_closure() {
- },
- _slash_closure: function _slash_closure() {
- },
- _modify(map, keys, modify, addNesting) {
- var keyIterator = J.get$iterator$ax(keys);
- return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map);
- },
- _deepMergeImpl(map1, map2) {
- var t2, t3, result, t4, key, value, _1_1, _1_3, _1_3_isSet, resultMap, _1_30, valueMap, merged, _null = null,
- t1 = map1._map$_contents;
- if (t1.get$isEmpty(t1))
- return map2;
- t2 = map2._map$_contents;
- if (t2.get$isEmpty(t2))
- return map1;
- t3 = type$.Value;
- result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3);
- for (t1 = A.MapExtensions_get_pairs(t2, t3, t3), t1 = t1.get$iterator(t1), t2 = type$.SassMap; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- key = t4._0;
- value = t4._1;
- t4 = result.$index(0, key);
- _1_1 = t4 == null ? _null : t4.tryMap$0();
- _1_3 = value.tryMap$0();
- _1_3_isSet = _1_1 != null;
- if (_1_3_isSet) {
- resultMap = _1_1 == null ? t2._as(_1_1) : _1_1;
- t4 = _1_3 != null;
- _1_30 = _1_3;
- } else {
- resultMap = _null;
- _1_30 = resultMap;
- t4 = false;
- }
- if (t4) {
- valueMap = _1_3_isSet ? _1_30 : _1_3;
- merged = A._deepMergeImpl(resultMap, valueMap == null ? t2._as(valueMap) : valueMap);
- if (merged === resultMap)
- continue;
- result.$indexSet(0, key, merged);
- } else
- result.$indexSet(0, key, value);
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(result, t3, t3));
- },
- _function2($name, $arguments, callback) {
- return A.BuiltInCallable$function($name, $arguments, callback, "sass:map");
- },
- _get_closure: function _get_closure() {
- },
- _set_closure: function _set_closure() {
- },
- _set__closure0: function _set__closure0(t0) {
- this.$arguments = t0;
- },
- _set_closure0: function _set_closure0() {
- },
- _set__closure: function _set__closure(t0) {
- this._box_0 = t0;
- },
- _merge_closure: function _merge_closure() {
- },
- _merge_closure0: function _merge_closure0() {
- },
- _merge__closure: function _merge__closure(t0) {
- this.map2 = t0;
- },
- _deepMerge_closure: function _deepMerge_closure() {
- },
- _deepRemove_closure: function _deepRemove_closure() {
- },
- _deepRemove__closure: function _deepRemove__closure(t0) {
- this.keys = t0;
- },
- _remove_closure: function _remove_closure() {
- },
- _remove_closure0: function _remove_closure0() {
- },
- _keys_closure: function _keys_closure() {
- },
- _values_closure: function _values_closure() {
- },
- _hasKey_closure: function _hasKey_closure() {
- },
- _modify_modifyNestedMap: function _modify_modifyNestedMap(t0, t1, t2) {
- this.keyIterator = t0;
- this.modify = t1;
- this.addNesting = t2;
- },
- _singleArgumentMathFunc($name, mathFunc) {
- return A.BuiltInCallable$function($name, "$number", new A._singleArgumentMathFunc_closure(mathFunc), "sass:math");
- },
- _numberFunction($name, transform) {
- return A.BuiltInCallable$function($name, "$number", new A._numberFunction_closure(transform), "sass:math");
- },
- _function1($name, $arguments, callback) {
- return A.BuiltInCallable$function($name, $arguments, callback, "sass:math");
- },
- global_closure: function global_closure() {
- },
- module_closure0: function module_closure0() {
- },
- _ceil_closure: function _ceil_closure() {
- },
- _clamp_closure: function _clamp_closure() {
- },
- _floor_closure: function _floor_closure() {
- },
- _max_closure: function _max_closure() {
- },
- _min_closure: function _min_closure() {
- },
- _round_closure: function _round_closure() {
- },
- _hypot_closure: function _hypot_closure() {
- },
- _hypot__closure: function _hypot__closure() {
- },
- _log_closure: function _log_closure() {
- },
- _pow_closure: function _pow_closure() {
- },
- _atan2_closure: function _atan2_closure() {
- },
- _compatible_closure: function _compatible_closure() {
- },
- _isUnitless_closure: function _isUnitless_closure() {
- },
- _unit_closure: function _unit_closure() {
- },
- _percentage_closure: function _percentage_closure() {
- },
- _randomFunction_closure: function _randomFunction_closure() {
- },
- _div_closure: function _div_closure() {
- },
- _singleArgumentMathFunc_closure: function _singleArgumentMathFunc_closure(t0) {
- this.mathFunc = t0;
- },
- _numberFunction_closure: function _numberFunction_closure(t0) {
- this.transform = t0;
- },
- _function5($name, $arguments, callback) {
- return A.BuiltInCallable$function($name, $arguments, callback, "sass:meta");
- },
- global_closure27: function global_closure27() {
- },
- global_closure28: function global_closure28() {
- },
- global_closure29: function global_closure29() {
- },
- global_closure30: function global_closure30() {
- },
- local_closure: function local_closure() {
- },
- local_closure0: function local_closure0() {
- },
- local__closure: function local__closure() {
- },
- local_closure1: function local_closure1() {
- },
- _prependParent(compound) {
- var _0_3, _0_4, _0_4_isSet, rest, _null = null,
- t1 = A.EvaluationContext_currentOrNull(),
- span = (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan(),
- _0_0 = compound.components;
- $label0$0: {
- _0_3 = _0_0.length >= 1;
- if (_0_3) {
- _0_4 = _0_0[0];
- t1 = _0_4;
- t1 = t1 instanceof A.UniversalSelector;
- } else {
- _0_4 = _null;
- t1 = false;
- }
- if (t1) {
- t1 = _null;
- break $label0$0;
- }
- if (_0_3) {
- t1 = _0_4;
- if (t1 instanceof A.TypeSelector) {
- t1 = _0_4;
- t1 = type$.TypeSelector._as(t1).name.namespace != null;
- _0_4_isSet = true;
- } else {
- _0_4_isSet = true;
- t1 = false;
- }
- } else {
- _0_4_isSet = _0_3;
- t1 = false;
- }
- if (t1) {
- t1 = _null;
- break $label0$0;
- }
- if (_0_3) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- _0_4 = _0_0[0];
- t1 = _0_4;
- _0_4_isSet = true;
- }
- t1 = t1 instanceof A.TypeSelector;
- } else
- t1 = false;
- if (t1) {
- t1 = _0_4_isSet ? _0_4 : _0_0[0];
- type$.TypeSelector._as(t1);
- rest = B.JSArray_methods.sublist$1(_0_0, 1);
- t1 = A._setArrayType([new A.ParentSelector(t1.name.name, span)], type$.JSArray_SimpleSelector);
- B.JSArray_methods.addAll$1(t1, rest);
- t1 = A.CompoundSelector$(t1, span);
- break $label0$0;
- }
- t1 = A._setArrayType([new A.ParentSelector(_null, span)], type$.JSArray_SimpleSelector);
- B.JSArray_methods.addAll$1(t1, _0_0);
- t1 = A.CompoundSelector$(t1, span);
- break $label0$0;
- }
- return t1;
- },
- _function0($name, $arguments, callback) {
- return A.BuiltInCallable$function($name, $arguments, callback, "sass:selector");
- },
- _nest_closure: function _nest_closure() {
- },
- _nest__closure: function _nest__closure(t0) {
- this._box_0 = t0;
- },
- _nest__closure0: function _nest__closure0() {
- },
- _append_closure: function _append_closure() {
- },
- _append__closure: function _append__closure() {
- },
- _append__closure0: function _append__closure0(t0) {
- this.span = t0;
- },
- _append___closure: function _append___closure(t0, t1) {
- this.parent = t0;
- this.span = t1;
- },
- _extend_closure: function _extend_closure() {
- },
- _replace_closure: function _replace_closure() {
- },
- _unify_closure: function _unify_closure() {
- },
- _isSuperselector_closure: function _isSuperselector_closure() {
- },
- _simpleSelectors_closure: function _simpleSelectors_closure() {
- },
- _simpleSelectors__closure: function _simpleSelectors__closure() {
- },
- _parse_closure: function _parse_closure() {
- },
- _codepointForIndex(index, lengthInCodepoints, allowNegative) {
- var result;
- if (index === 0)
- return 0;
- if (index > 0)
- return Math.min(index - 1, lengthInCodepoints);
- result = lengthInCodepoints + index;
- if (result < 0 && !allowNegative)
- return 0;
- return result;
- },
- _function($name, $arguments, callback) {
- return A.BuiltInCallable$function($name, $arguments, callback, "sass:string");
- },
- module_closure: function module_closure() {
- },
- module__closure: function module__closure(t0) {
- this.string = t0;
- },
- module__closure0: function module__closure0(t0) {
- this.string = t0;
- },
- _unquote_closure: function _unquote_closure() {
- },
- _quote_closure: function _quote_closure() {
- },
- _length_closure: function _length_closure() {
- },
- _insert_closure: function _insert_closure() {
- },
- _index_closure: function _index_closure() {
- },
- _slice_closure: function _slice_closure() {
- },
- _toUpperCase_closure: function _toUpperCase_closure() {
- },
- _toLowerCase_closure: function _toLowerCase_closure() {
- },
- _uniqueId_closure: function _uniqueId_closure() {
- },
- ImportCache$(importers, loadPaths, logger) {
- var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl,
- t2 = type$.Record_3_Importer_and_Uri_and_bool_forImport,
- t3 = type$.Uri,
- t4 = A.ImportCache__toImporters(importers, loadPaths, null);
- return new A.ImportCache(t4, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult));
- },
- ImportCache__toImporters(importers, loadPaths, packageConfig) {
- var t1, t2, t3, t4, _i, path, _null = null,
- sassPath = A.getEnvironmentVariable("SASS_PATH");
- if (A.isBrowser()) {
- t1 = A._setArrayType([], type$.JSArray_Importer);
- B.JSArray_methods.addAll$1(t1, importers);
- return t1;
- }
- t1 = A._setArrayType([], type$.JSArray_Importer);
- B.JSArray_methods.addAll$1(t1, importers);
- for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- if (sassPath != null) {
- t2 = A.isNodeJs() ? self.process : _null;
- t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
- t4 = t3.length;
- _i = 0;
- for (; _i < t4; ++_i) {
- path = t3[_i];
- t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- }
- return t1;
- },
- ImportCache: function ImportCache(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._importers = t0;
- _._logger = t1;
- _._canonicalizeCache = t2;
- _._perImporterCanonicalizeCache = t3;
- _._nonCanonicalRelativeUrls = t4;
- _._importCache = t5;
- _._resultsCache = t6;
- },
- ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.baseImporter = t1;
- _.resolvedUrl = t2;
- _.baseUrl = t3;
- _.forImport = t4;
- _.key = t5;
- _.url = t6;
- },
- ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- _.quiet = t4;
- },
- ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) {
- this.canonicalUrl = t0;
- },
- ImportCache_humanize_closure0: function ImportCache_humanize_closure0() {
- },
- ImportCache_humanize_closure1: function ImportCache_humanize_closure1() {
- },
- ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) {
- this.canonicalUrl = t0;
- },
- ImportCache_clearCanonicalize_closure: function ImportCache_clearCanonicalize_closure(t0, t1) {
- this.$this = t0;
- this.url = t1;
- },
- Importer: function Importer() {
- },
- AsyncImporter: function AsyncImporter() {
- },
- CanonicalizeContext: function CanonicalizeContext(t0, t1) {
- this._fromImport = t0;
- this._containingUrl = t1;
- this._wasContainingUrlAccessed = false;
- },
- FilesystemImporter: function FilesystemImporter(t0, t1) {
- this._loadPath = t0;
- this._loadPathDeprecated = t1;
- },
- FilesystemImporter_canonicalize_closure: function FilesystemImporter_canonicalize_closure() {
- },
- NoOpImporter: function NoOpImporter() {
- },
- NodePackageImporter: function NodePackageImporter() {
- this.__NodePackageImporter__entryPointDirectory_F = $;
- },
- NodePackageImporter__nodePackageExportsResolve_closure: function NodePackageImporter__nodePackageExportsResolve_closure() {
- },
- NodePackageImporter__nodePackageExportsResolve_closure0: function NodePackageImporter__nodePackageExportsResolve_closure0() {
- },
- NodePackageImporter__nodePackageExportsResolve_closure1: function NodePackageImporter__nodePackageExportsResolve_closure1() {
- },
- NodePackageImporter__nodePackageExportsResolve_closure2: function NodePackageImporter__nodePackageExportsResolve_closure2(t0, t1, t2) {
- this.$this = t0;
- this.exports = t1;
- this.packageRoot = t2;
- },
- NodePackageImporter__nodePackageExportsResolve__closure: function NodePackageImporter__nodePackageExportsResolve__closure(t0, t1, t2) {
- this.$this = t0;
- this.variant = t1;
- this.packageRoot = t2;
- },
- NodePackageImporter__nodePackageExportsResolve__closure0: function NodePackageImporter__nodePackageExportsResolve__closure0() {
- },
- NodePackageImporter__getMainExport_closure: function NodePackageImporter__getMainExport_closure() {
- },
- ImporterResult: function ImporterResult(t0, t1, t2) {
- this.contents = t0;
- this._sourceMapUrl = t1;
- this.syntax = t2;
- },
- fromImport() {
- var t1 = type$.nullable_CanonicalizeContext._as($.Zone__current.$index(0, B.Symbol__canonicalizeContext));
- t1 = t1 == null ? null : t1._fromImport;
- return t1 === true;
- },
- canonicalizeContext() {
- var t1,
- _0_0 = $.Zone__current.$index(0, B.Symbol__canonicalizeContext);
- $label0$0: {
- if (_0_0 == null)
- A.throwExpression(A.StateError$(string$.canoni));
- if (_0_0 instanceof A.CanonicalizeContext) {
- t1 = _0_0;
- break $label0$0;
- }
- t1 = A.throwExpression(A.StateError$(string$.Unexpe + A.S(_0_0) + "."));
- }
- return t1;
- },
- resolveImportPath(path) {
- var t1,
- extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
- if (extension === ".sass" || extension === ".scss" || extension === ".css") {
- t1 = A.fromImport() ? new A.resolveImportPath_closure(path, extension).call$0() : null;
- return t1 == null ? A._exactlyOne(A._tryPath(path)) : t1;
- }
- t1 = A.fromImport() ? new A.resolveImportPath_closure0(path).call$0() : null;
- if (t1 == null)
- t1 = A._exactlyOne(A._tryPathWithExtensions(path));
- return t1 == null ? A._tryPathAsDirectory(path) : t1;
- },
- _tryPathWithExtensions(path) {
- var result = A._tryPath(path + ".sass");
- B.JSArray_methods.addAll$1(result, A._tryPath(path + ".scss"));
- return result.length !== 0 ? result : A._tryPath(path + ".css");
- },
- _tryPath(path) {
- var t1 = $.$get$context(),
- partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null);
- t1 = A._setArrayType([], type$.JSArray_String);
- if (A.fileExists(partial))
- t1.push(partial);
- if (A.fileExists(path))
- t1.push(path);
- return t1;
- },
- _tryPathAsDirectory(path) {
- var t1;
- if (!A.dirExists(path))
- return null;
- t1 = A.fromImport() ? new A._tryPathAsDirectory_closure(path).call$0() : null;
- return t1 == null ? A._exactlyOne(A._tryPathWithExtensions(A.join(path, "index", null))) : t1;
- },
- _exactlyOne(paths) {
- var _0_1, t1, path;
- $label0$0: {
- _0_1 = paths.length;
- if (_0_1 <= 0) {
- t1 = null;
- break $label0$0;
- }
- if (_0_1 === 1) {
- path = paths[0];
- t1 = path;
- break $label0$0;
- }
- t1 = A.throwExpression(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure(), type$.String).join$1(0, "\n"));
- }
- return t1;
- },
- resolveImportPath_closure: function resolveImportPath_closure(t0, t1) {
- this.path = t0;
- this.extension = t1;
- },
- resolveImportPath_closure0: function resolveImportPath_closure0(t0) {
- this.path = t0;
- },
- _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) {
- this.path = t0;
- },
- _exactlyOne_closure: function _exactlyOne_closure() {
- },
- InterpolationBuffer: function InterpolationBuffer(t0, t1) {
- this._interpolation_buffer$_text = t0;
- this._interpolation_buffer$_contents = t1;
- },
- InterpolationMap$(_interpolation, targetLocations) {
- var t1 = A.List_List$unmodifiable(targetLocations, type$.SourceLocation),
- t2 = _interpolation.contents.length,
- expectedLocations = Math.max(0, t2 - 1);
- if (t1.length !== expectedLocations)
- A.throwExpression(A.ArgumentError$("InterpolationMap must have " + A.S(expectedLocations) + string$.x20targe + t2 + " components.", null));
- return new A.InterpolationMap(_interpolation, t1);
- },
- InterpolationMap: function InterpolationMap(t0, t1) {
- this._interpolation = t0;
- this._targetLocations = t1;
- },
- InterpolationMap_mapException_closure: function InterpolationMap_mapException_closure() {
- },
- _realCasePath(path) {
- var prefix, _null = null,
- t1 = A.isNodeJs() ? self.process : _null;
- if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
- t1 = A.isNodeJs() ? self.process : _null;
- t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
- } else
- t1 = true;
- if (!t1)
- return path;
- t1 = A.isNodeJs() ? self.process : _null;
- if (J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
- prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path));
- t1 = prefix.length;
- if (t1 !== 0 && A.CharacterExtension_get_isAlphabetic(prefix.charCodeAt(0)))
- path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1);
- }
- return new A._realCasePath_helper().call$1(path);
- },
- _realCasePath_helper: function _realCasePath_helper() {
- },
- _realCasePath_helper_closure: function _realCasePath_helper_closure(t0, t1, t2) {
- this.helper = t0;
- this.dirname = t1;
- this.path = t2;
- },
- _realCasePath_helper__closure: function _realCasePath_helper__closure(t0) {
- this.basename = t0;
- },
- printError(message) {
- var t1 = A.isNodeJs() ? self.process : null;
- if (t1 != null) {
- t1 = J.get$stderr$x(t1);
- J.write$1$x(t1, A.S(message == null ? "" : message) + "\n");
- } else {
- t1 = self.console;
- J.error$1$x(t1, message == null ? "" : message);
- }
- },
- readFile(path) {
- var contents, sourceFile, t1, i;
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("readFile() is only supported on Node.js"));
- contents = A._asString(A._readFile(path, "utf8"));
- if (!B.JSString_methods.contains$1(contents, "\ufffd"))
- return contents;
- sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
- for (t1 = contents.length, i = 0; i < t1; ++i) {
- if (contents.charCodeAt(i) !== 65533)
- continue;
- throw A.wrapException(A.SassException$("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0(), null));
- }
- return contents;
- },
- _readFile(path, encoding) {
- return A._systemErrorToFileSystemException(new A._readFile_closure(path, encoding));
- },
- writeFile(path, contents) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("writeFile() is only supported on Node.js"));
- return A._systemErrorToFileSystemException(new A.writeFile_closure(path, contents));
- },
- deleteFile(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("deleteFile() is only supported on Node.js"));
- return A._systemErrorToFileSystemException(new A.deleteFile_closure(path));
- },
- readStdin() {
- return A.readStdin$body();
- },
- readStdin$body() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, t3, completer, sink, t1, t2;
- var $async$readStdin = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = A.isNodeJs() ? self.process : null;
- if (t2 == null)
- throw A.wrapException(A.UnsupportedError$("readStdin() is only supported on Node.js"));
- t3 = new A._Future($.Zone__current, type$._Future_String);
- completer = new A._AsyncCompleter(t3, type$._AsyncCompleter_String);
- t1.contents = null;
- sink = new A._StringCallbackSink(new A.readStdin_closure(t1, completer), new A.StringBuffer("")).asUtf8Sink$1(false);
- t1 = J.getInterceptor$x(t2);
- J.on$2$x(t1.get$stdin(t2), "data", A.allowInterop(new A.readStdin_closure0(sink)));
- J.on$2$x(t1.get$stdin(t2), "end", A.allowInterop(new A.readStdin_closure1(sink)));
- J.on$2$x(t1.get$stdin(t2), "error", A.allowInterop(new A.readStdin_closure2(completer)));
- $async$returnValue = t3;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$readStdin, $async$completer);
- },
- fileExists(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$(string$.fileEx));
- return A._systemErrorToFileSystemException(new A.fileExists_closure(path));
- },
- dirExists(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("dirExists() is only supported on Node.js"));
- return A._systemErrorToFileSystemException(new A.dirExists_closure(path));
- },
- ensureDir(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("ensureDir() is only supported on Node.js"));
- return A._systemErrorToFileSystemException(new A.ensureDir_closure(path));
- },
- listDir(path, recursive) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("listDir() is only supported on Node.js"));
- return A._systemErrorToFileSystemException(new A.listDir_closure(recursive, path));
- },
- modificationTime(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("modificationTime() is only supported on Node.js"));
- return A._systemErrorToFileSystemException(new A.modificationTime_closure(path));
- },
- getEnvironmentVariable($name) {
- var t1 = A.isNodeJs() ? self.process : null,
- env = t1 == null ? null : J.get$env$x(t1);
- if (env == null)
- t1 = null;
- else
- t1 = A._asStringQ(env[$name]);
- return t1;
- },
- _systemErrorToFileSystemException(callback) {
- var error, t1, exception, t2;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- error = A.unwrapException(exception);
- if (!type$.JsSystemError._is(error))
- throw exception;
- t1 = error;
- t2 = J.getInterceptor$x(t1);
- throw A.wrapException(new A.FileSystemException(J.substring$2$s(t2.get$message(t1), (A.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + A.S(t2.get$syscall(t1)) + " '" + A.S(t2.get$path(t1)) + "'").length), J.get$path$x(error)));
- }
- },
- hasTerminal() {
- var t1 = A.isNodeJs() ? self.process : null;
- return J.$eq$(t1 == null ? null : J.get$isTTY$x(J.get$stdout$x(t1)), true);
- },
- isWindows() {
- var t1 = A.isNodeJs() ? self.process : null;
- return J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32");
- },
- watchDir(path, poll) {
- var watcher, t2, t3, t1 = {};
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("watchDir() is only supported on Node.js"));
- watcher = J.watch$2$x(self.chokidar, path, {disableGlobbing: true, usePolling: poll});
- t1.controller = null;
- t2 = J.getInterceptor$x(watcher);
- t2.on$2(watcher, "add", A.allowInterop(new A.watchDir_closure(t1)));
- t2.on$2(watcher, "change", A.allowInterop(new A.watchDir_closure0(t1)));
- t2.on$2(watcher, "unlink", A.allowInterop(new A.watchDir_closure1(t1)));
- t2.on$2(watcher, "error", A.allowInterop(new A.watchDir_closure2(t1)));
- t3 = new A._Future($.Zone__current, type$._Future_Stream_WatchEvent);
- t2.on$2(watcher, "ready", A.allowInterop(new A.watchDir_closure3(t1, watcher, new A._AsyncCompleter(t3, type$._AsyncCompleter_Stream_WatchEvent))));
- return t3;
- },
- FileSystemException: function FileSystemException(t0, t1) {
- this.message = t0;
- this.path = t1;
- },
- _readFile_closure: function _readFile_closure(t0, t1) {
- this.path = t0;
- this.encoding = t1;
- },
- writeFile_closure: function writeFile_closure(t0, t1) {
- this.path = t0;
- this.contents = t1;
- },
- deleteFile_closure: function deleteFile_closure(t0) {
- this.path = t0;
- },
- readStdin_closure: function readStdin_closure(t0, t1) {
- this._box_0 = t0;
- this.completer = t1;
- },
- readStdin_closure0: function readStdin_closure0(t0) {
- this.sink = t0;
- },
- readStdin_closure1: function readStdin_closure1(t0) {
- this.sink = t0;
- },
- readStdin_closure2: function readStdin_closure2(t0) {
- this.completer = t0;
- },
- fileExists_closure: function fileExists_closure(t0) {
- this.path = t0;
- },
- dirExists_closure: function dirExists_closure(t0) {
- this.path = t0;
- },
- ensureDir_closure: function ensureDir_closure(t0) {
- this.path = t0;
- },
- listDir_closure: function listDir_closure(t0, t1) {
- this.recursive = t0;
- this.path = t1;
- },
- listDir__closure: function listDir__closure(t0) {
- this.path = t0;
- },
- listDir__closure0: function listDir__closure0() {
- },
- listDir_closure_list: function listDir_closure_list() {
- },
- listDir__list_closure: function listDir__list_closure(t0, t1) {
- this.parent = t0;
- this.list = t1;
- },
- modificationTime_closure: function modificationTime_closure(t0) {
- this.path = t0;
- },
- watchDir_closure: function watchDir_closure(t0) {
- this._box_0 = t0;
- },
- watchDir_closure0: function watchDir_closure0(t0) {
- this._box_0 = t0;
- },
- watchDir_closure1: function watchDir_closure1(t0) {
- this._box_0 = t0;
- },
- watchDir_closure2: function watchDir_closure2(t0) {
- this._box_0 = t0;
- },
- watchDir_closure3: function watchDir_closure3(t0, t1, t2) {
- this._box_0 = t0;
- this.watcher = t1;
- this.completer = t2;
- },
- watchDir__closure: function watchDir__closure(t0) {
- this.watcher = t0;
- },
- JSArray0: function JSArray0() {
- },
- Chokidar: function Chokidar() {
- },
- ChokidarOptions: function ChokidarOptions() {
- },
- ChokidarWatcher: function ChokidarWatcher() {
- },
- JSFunction: function JSFunction() {
- },
- ImmutableList: function ImmutableList() {
- },
- ImmutableMap: function ImmutableMap() {
- },
- NodeImporterResult: function NodeImporterResult() {
- },
- RenderContext: function RenderContext() {
- },
- RenderContextOptions: function RenderContextOptions() {
- },
- RenderContextResult: function RenderContextResult() {
- },
- RenderContextResultStats: function RenderContextResultStats() {
- },
- JSModule: function JSModule() {
- },
- JSModuleRequire: function JSModuleRequire() {
- },
- JSClass: function JSClass() {
- },
- JSUrl: function JSUrl() {
- },
- jsThrow0(error) {
- return type$.Never._as($.$get$_jsThrow0().call$1(error));
- },
- _PropertyDescriptor: function _PropertyDescriptor() {
- },
- _RequireMain: function _RequireMain() {
- },
- WarnForDeprecation_warnForDeprecation(_this, deprecation, message, span, trace) {
- if (deprecation.isFuture && !(_this instanceof A.DeprecationProcessingLogger))
- return;
- if (_this instanceof A.DeprecationProcessingLogger)
- _this.internalWarn$4$deprecation$span$trace(message, deprecation, span, trace);
- else
- _this.warn$4$deprecation$span$trace(0, message, true, span, trace);
- },
- LoggerWithDeprecationType0: function LoggerWithDeprecationType0() {
- },
- _QuietLogger: function _QuietLogger() {
- },
- DeprecationProcessingLogger$(_inner, fatalDeprecations, futureDeprecations, limitRepetition, silenceDeprecations) {
- var t1 = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(type$.Deprecation, type$.int), _inner, silenceDeprecations, fatalDeprecations, futureDeprecations, limitRepetition);
- t1.DeprecationProcessingLogger$5$fatalDeprecations$futureDeprecations$limitRepetition$silenceDeprecations(_inner, fatalDeprecations, futureDeprecations, limitRepetition, silenceDeprecations);
- return t1;
- },
- DeprecationProcessingLogger: function DeprecationProcessingLogger(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._warningCounts = t0;
- _._inner = t1;
- _.silenceDeprecations = t2;
- _.fatalDeprecations = t3;
- _.futureDeprecations = t4;
- _.limitRepetition = t5;
- },
- DeprecationProcessingLogger_summarize_closure: function DeprecationProcessingLogger_summarize_closure() {
- },
- DeprecationProcessingLogger_summarize_closure0: function DeprecationProcessingLogger_summarize_closure0() {
- },
- StderrLogger: function StderrLogger(t0) {
- this.color = t0;
- },
- TrackingLogger: function TrackingLogger(t0) {
- this._tracking$_logger = t0;
- this._emittedDebug = this._emittedWarning = false;
- },
- BuiltInModule$($name, functions, mixins, variables, $T) {
- var t1 = A._Uri__Uri(null, $name, null, "sass"),
- t2 = A.BuiltInModule__callableMap(functions, $T),
- t3 = A.BuiltInModule__callableMap(mixins, $T),
- t4 = variables == null ? B.Map_empty5 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value);
- return new A.BuiltInModule(t1, t2, t3, t4, $T._eval$1("BuiltInModule<0>"));
- },
- BuiltInModule__callableMap(callables, $T) {
- var t2, _i, callable,
- t1 = type$.String;
- if (callables == null)
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- else {
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) {
- callable = callables[_i];
- t1.$indexSet(0, J.get$name$x(callable), callable);
- }
- t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- }
- return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- },
- BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) {
- var _ = this;
- _.url = t0;
- _.functions = t1;
- _.mixins = t2;
- _.variables = t3;
- _.$ti = t4;
- },
- ForwardedModuleView_ifNecessary(inner, rule, $T) {
- var t1;
- if (rule.prefix == null)
- if (rule.shownMixinsAndFunctions == null)
- if (rule.shownVariables == null) {
- t1 = rule.hiddenMixinsAndFunctions;
- t1 = t1 == null ? null : t1._base.get$isEmpty(0);
- if (t1 === true) {
- t1 = rule.hiddenVariables;
- t1 = t1 == null ? null : t1._base.get$isEmpty(0);
- t1 = t1 === true;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- return inner;
- else
- return A.ForwardedModuleView$(inner, rule, $T);
- },
- ForwardedModuleView$(_inner, _rule, $T) {
- var t1 = _rule.prefix,
- t2 = _rule.shownVariables,
- t3 = _rule.hiddenVariables,
- t4 = _rule.shownMixinsAndFunctions,
- t5 = _rule.hiddenMixinsAndFunctions;
- return new A.ForwardedModuleView(_inner, _rule, A.ForwardedModuleView__forwardedMap(_inner.get$variables(), t1, t2, t3, type$.Value), A.ForwardedModuleView__forwardedMap(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode), A.ForwardedModuleView__forwardedMap(_inner.get$functions(_inner), t1, t4, t5, $T), A.ForwardedModuleView__forwardedMap(_inner.get$mixins(), t1, t4, t5, $T), $T._eval$1("ForwardedModuleView<0>"));
- },
- ForwardedModuleView__forwardedMap(map, prefix, safelist, blocklist, $V) {
- var t2,
- t1 = prefix == null;
- if (t1)
- if (safelist == null)
- t2 = blocklist == null || blocklist._base.get$isEmpty(0);
- else
- t2 = false;
- else
- t2 = false;
- if (t2)
- return map;
- if (!t1)
- map = new A.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0>"));
- if (safelist != null)
- map = new A.LimitedMapView(map, safelist._base.intersection$1(new A.MapKeySet(map, type$.MapKeySet_nullable_Object)), type$.$env_1_1_String._bind$1($V)._eval$1("LimitedMapView<1,2>"));
- else if (blocklist != null && blocklist._base.get$isNotEmpty(0))
- map = A.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
- return map;
- },
- ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._forwarded_view$_inner = t0;
- _._rule = t1;
- _.variables = t2;
- _.variableNodes = t3;
- _.functions = t4;
- _.mixins = t5;
- _.$ti = t6;
- },
- ShadowedModuleView_ifNecessary(inner, functions, mixins, variables, $T) {
- return A.ShadowedModuleView__needsBlocklist(inner.get$variables(), variables) || A.ShadowedModuleView__needsBlocklist(inner.get$functions(inner), functions) || A.ShadowedModuleView__needsBlocklist(inner.get$mixins(), mixins) ? new A.ShadowedModuleView(inner, A.ShadowedModuleView__shadowedMap(inner.get$variables(), variables, type$.Value), A.ShadowedModuleView__shadowedMap(inner.get$variableNodes(), variables, type$.AstNode), A.ShadowedModuleView__shadowedMap(inner.get$functions(inner), functions, $T), A.ShadowedModuleView__shadowedMap(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView<0>")) : null;
- },
- ShadowedModuleView__shadowedMap(map, blocklist, $V) {
- var t1 = A.ShadowedModuleView__needsBlocklist(map, blocklist);
- return !t1 ? map : A.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
- },
- ShadowedModuleView__needsBlocklist(map, blocklist) {
- return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
- },
- ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._shadowed_view$_inner = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.$ti = t5;
- },
- AtRootQueryParser$(contents, logger, url) {
- var t1 = A.SpanScanner$(contents, url);
- return new A.AtRootQueryParser(t1, logger, null);
- },
- AtRootQueryParser: function AtRootQueryParser(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._interpolationMap = t2;
- },
- AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
- this.$this = t0;
- },
- _disallowedFunctionNames_closure: function _disallowedFunctionNames_closure() {
- },
- CssParser: function CssParser(t0, t1, t2, t3) {
- var _ = this;
- _._isUseAllowed = true;
- _._inExpression = _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
- _._globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- _._interpolationMap = t3;
- },
- KeyframeSelectorParser$(contents, interpolationMap, logger) {
- var t1 = A.SpanScanner$(contents, null);
- return new A.KeyframeSelectorParser(t1, logger, interpolationMap);
- },
- KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._interpolationMap = t2;
- },
- KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) {
- this.$this = t0;
- },
- MediaQueryParser: function MediaQueryParser(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._interpolationMap = t2;
- },
- MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
- this.$this = t0;
- },
- Parser_isIdentifier(text) {
- var t1, t2, exception, logger = null;
- try {
- t1 = logger;
- t2 = A.SpanScanner$(text, null);
- new A.Parser(t2, t1 == null ? B.StderrLogger_false : t1, null)._parseIdentifier$0();
- return true;
- } catch (exception) {
- if (type$.SassFormatException._is(A.unwrapException(exception)))
- return false;
- else
- throw exception;
- }
- },
- Parser: function Parser(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._interpolationMap = t2;
- },
- Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
- this.$this = t0;
- },
- Parser_escape_closure: function Parser_escape_closure() {
- },
- Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
- this.caseSensitive = t0;
- this.char = t1;
- },
- Parser_spanFrom_closure: function Parser_spanFrom_closure(t0, t1) {
- this.$this = t0;
- this.span = t1;
- },
- SassParser: function SassParser(t0, t1, t2, t3) {
- var _ = this;
- _._currentIndentation = 0;
- _._spaces = _._nextIndentationEnd = _._nextIndentation = null;
- _._isUseAllowed = true;
- _._inExpression = _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
- _._globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- _._interpolationMap = t3;
- },
- SassParser_styleRuleSelector_closure: function SassParser_styleRuleSelector_closure() {
- },
- SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) {
- this.$this = t0;
- this.child = t1;
- this.children = t2;
- },
- SassParser__peekIndentation_closure: function SassParser__peekIndentation_closure() {
- },
- SassParser__peekIndentation_closure0: function SassParser__peekIndentation_closure0() {
- },
- ScssParser$(contents, logger, url) {
- var t1 = A.SpanScanner$(contents, url),
- t2 = logger == null ? B.StderrLogger_false : logger;
- return new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), t1, t2, null);
- },
- ScssParser: function ScssParser(t0, t1, t2, t3) {
- var _ = this;
- _._isUseAllowed = true;
- _._inExpression = _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
- _._globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- _._interpolationMap = t3;
- },
- SelectorParser$(contents, allowParent, interpolationMap, logger, plainCss, url) {
- var t1 = A.SpanScanner$(contents, url);
- return new A.SelectorParser(allowParent, plainCss, t1, logger == null ? B.StderrLogger_false : logger, interpolationMap);
- },
- SelectorParser: function SelectorParser(t0, t1, t2, t3, t4) {
- var _ = this;
- _._allowParent = t0;
- _._plainCss = t1;
- _.scanner = t2;
- _.logger = t3;
- _._interpolationMap = t4;
- },
- SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) {
- this.$this = t0;
- },
- SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser: function StylesheetParser() {
- },
- StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
- },
- StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
- this.$this = t0;
- this.production = t1;
- this.T = t2;
- },
- StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
- this.declaration = t0;
- },
- StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.wasInStyleRule = t2;
- _.start = t3;
- },
- StylesheetParser__tryDeclarationChildren_closure: function StylesheetParser__tryDeclarationChildren_closure(t0, t1) {
- this.name = t0;
- this.value = t1;
- },
- StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
- this.query = t0;
- },
- StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
- },
- StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.wasInControlDirective = t1;
- _.variables = t2;
- _.list = t3;
- },
- StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.precedingComment = t2;
- },
- StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.wasInControlDirective = t2;
- _.variable = t3;
- _.from = t4;
- _.to = t5;
- },
- StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
- this.$this = t0;
- this.variables = t1;
- this.identifiers = t2;
- },
- StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
- this.contentArguments_ = t0;
- },
- StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
- this.query = t0;
- },
- StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.name = t1;
- _.$arguments = t2;
- _.precedingComment = t3;
- },
- StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.name = t2;
- _.value = t3;
- },
- StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
- this.condition = t0;
- },
- StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
- this.$this = t0;
- this.wasInControlDirective = t1;
- this.condition = t2;
- },
- StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
- this._box_0 = t0;
- this.name = t1;
- },
- StylesheetParser__expression_resetState: function StylesheetParser__expression_resetState(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.start = t2;
- },
- StylesheetParser__expression_resolveOneOperation: function StylesheetParser__expression_resolveOneOperation(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser__expression_resolveOperations: function StylesheetParser__expression_resolveOperations(t0, t1) {
- this._box_0 = t0;
- this.resolveOneOperation = t1;
- },
- StylesheetParser__expression_addSingleExpression: function StylesheetParser__expression_addSingleExpression(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.resetState = t2;
- _.resolveOperations = t3;
- },
- StylesheetParser__expression_addOperator: function StylesheetParser__expression_addOperator(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.resolveOneOperation = t2;
- },
- StylesheetParser__expression_resolveSpaceExpressions: function StylesheetParser__expression_resolveSpaceExpressions(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.resolveOperations = t2;
- },
- StylesheetParser_expressionUntilComma_closure: function StylesheetParser_expressionUntilComma_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser__isHexColor_closure: function StylesheetParser__isHexColor_closure() {
- },
- StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
- },
- StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
- },
- StylesheetParser_namespacedExpression_closure: function StylesheetParser_namespacedExpression_closure(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- StylesheetParser_trySpecialFunction_closure: function StylesheetParser_trySpecialFunction_closure() {
- },
- StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
- this.$this = t0;
- },
- StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- StylesheetNode$_(_stylesheet, importer, canonicalUrl, allUpstream) {
- var t1 = new A.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream._1, allUpstream._0, A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode));
- t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream);
- return t1;
- },
- StylesheetGraph: function StylesheetGraph(t0, t1, t2) {
- this._nodes = t0;
- this.importCache = t1;
- this._transitiveModificationTimes = t2;
- },
- StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) {
- this.$this = t0;
- },
- StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) {
- this.node = t0;
- this.transitiveModificationTime = t1;
- },
- StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.baseImporter = t2;
- _.baseUrl = t3;
- },
- StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- },
- StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.canonicalUrl = t2;
- },
- StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.baseImporter = t2;
- _.baseUrl = t3;
- _.forImport = t4;
- },
- StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._stylesheet = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _._upstream = t3;
- _._upstreamImports = t4;
- _._downstream = t5;
- },
- Syntax_forPath(path) {
- var t1,
- _0_0 = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
- $label0$0: {
- if (".sass" === _0_0) {
- t1 = B.Syntax_Sass_sass;
- break $label0$0;
- }
- if (".css" === _0_0) {
- t1 = B.Syntax_CSS_css;
- break $label0$0;
- }
- t1 = B.Syntax_SCSS_scss;
- break $label0$0;
- }
- return t1;
- },
- Syntax: function Syntax(t0, t1) {
- this._syntax$_name = t0;
- this._name = t1;
- },
- Box: function Box(t0, t1) {
- this._box$_inner = t0;
- this.$ti = t1;
- },
- ModifiableBox: function ModifiableBox(t0, t1) {
- this.value = t0;
- this.$ti = t1;
- },
- LazyFileSpan: function LazyFileSpan(t0) {
- this._builder = t0;
- this._lazy_file_span$_span = null;
- },
- LimitedMapView$blocklist(_map, blocklist, $K, $V) {
- var t2, key,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty($K);
- for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
- key = t2.get$current(t2);
- if (!blocklist.contains$1(0, key))
- t1.add$1(0, key);
- }
- return new A.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
- },
- LimitedMapView: function LimitedMapView(t0, t1, t2) {
- this._limited_map_view$_map = t0;
- this._limited_map_view$_keys = t1;
- this.$ti = t2;
- },
- MapExtensions_get_pairs(_this, $K, $V) {
- return _this.get$entries(_this).map$1$1(0, new A.MapExtensions_get_pairs_closure($K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("+(1,2)"));
- },
- MapExtensions_get_pairs_closure: function MapExtensions_get_pairs_closure(t0, t1) {
- this.K = t0;
- this.V = t1;
- },
- MergedMapView$(maps, $K, $V) {
- var t1 = $K._eval$1("@<0>")._bind$1($V);
- t1 = new A.MergedMapView(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView<1,2>"));
- t1.MergedMapView$1(maps, $K, $V);
- return t1;
- },
- MergedMapView: function MergedMapView(t0, t1) {
- this._mapsByKey = t0;
- this.$ti = t1;
- },
- MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) {
- this._watchers = t0;
- this._group = t1;
- this._poll = t2;
- },
- MultiSpan: function MultiSpan(t0, t1, t2) {
- this._multi_span$_primary = t0;
- this.primaryLabel = t1;
- this.secondarySpans = t2;
- },
- NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
- this._no_source_map_buffer$_buffer = t0;
- },
- PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
- this._prefixed_map_view$_map = t0;
- this._prefix = t1;
- this.$ti = t2;
- },
- _PrefixedKeys: function _PrefixedKeys(t0) {
- this._view = t0;
- },
- _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
- this.$this = t0;
- },
- PublicMemberMapView: function PublicMemberMapView(t0, t1) {
- this._public_member_map_view$_inner = t0;
- this.$ti = t1;
- },
- SourceMapBuffer: function SourceMapBuffer(t0, t1) {
- var _ = this;
- _._source_map_buffer$_buffer = t0;
- _._entries = t1;
- _._column = _._line = 0;
- _._inSpan = false;
- },
- SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) {
- this._box_0 = t0;
- this.prefixLength = t1;
- },
- UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) {
- this._unprefixed_map_view$_map = t0;
- this._unprefixed_map_view$_prefix = t1;
- this.$ti = t2;
- },
- _UnprefixedKeys: function _UnprefixedKeys(t0) {
- this._unprefixed_map_view$_view = t0;
- },
- _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) {
- this.$this = t0;
- },
- _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) {
- this.$this = t0;
- },
- toSentence(iter, conjunction) {
- if (iter.get$length(iter) === 1)
- return J.toString$0$(iter.get$first(iter));
- return A.IterableExtension_get_exceptLast(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter.get$last(iter)));
- },
- indent(string, indentation) {
- return new A.MappedListIterable(A._setArrayType(string.split("\n"), type$.JSArray_String), new A.indent_closure(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
- },
- pluralize($name, number, plural) {
- if (number === 1)
- return $name;
- if (plural != null)
- return plural;
- return $name + "s";
- },
- trimAscii(string, excludeEscape) {
- var t1,
- start = A._firstNonWhitespace(string);
- if (start == null)
- t1 = "";
- else {
- t1 = A._lastNonWhitespace(string, true);
- t1.toString;
- t1 = B.JSString_methods.substring$2(string, start, t1 + 1);
- }
- return t1;
- },
- trimAsciiRight(string, excludeEscape) {
- var end = A._lastNonWhitespace(string, excludeEscape);
- return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1);
- },
- _firstNonWhitespace(string) {
- var t1, i, t2;
- for (t1 = string.length, i = 0; i < t1; ++i) {
- t2 = string.charCodeAt(i);
- if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
- return i;
- }
- return null;
- },
- _lastNonWhitespace(string, excludeEscape) {
- var i, i0, codeUnit;
- for (i = string.length - 1, i0 = i; i0 >= 0; --i0) {
- codeUnit = string.charCodeAt(i0);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
- if (excludeEscape && i0 !== 0 && i0 !== i && codeUnit === 92)
- return i0 + 1;
- else
- return i0;
- }
- return null;
- },
- isPublic(member) {
- var start = member.charCodeAt(0);
- return start !== 45 && start !== 95;
- },
- flattenVertically(iterable, $T) {
- var result,
- t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"),
- queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure($T), t1), true, t1._eval$1("ListIterable.E"));
- if (queues.length === 1)
- return B.JSArray_methods.get$first(queues);
- result = A._setArrayType([], $T._eval$1("JSArray<0>"));
- for (; queues.length !== 0;) {
- if (!!queues.fixed$length)
- A.throwExpression(A.UnsupportedError$("removeWhere"));
- B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure0(result, $T), true);
- }
- return result;
- },
- codepointIndexToCodeUnitIndex(string, codepointIndex) {
- var codeUnitIndex, i, codeUnitIndex0;
- for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
- codeUnitIndex0 = codeUnitIndex + 1;
- codeUnitIndex = string.charCodeAt(codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0;
- }
- return codeUnitIndex;
- },
- codeUnitIndexToCodepointIndex(string, codeUnitIndex) {
- var codepointIndex, i;
- for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (string.charCodeAt(i) >>> 10 === 54 ? i + 1 : i) + 1)
- ++codepointIndex;
- return codepointIndex;
- },
- frameForSpan(span, member, url) {
- var t2, t3,
- t1 = url == null ? span.get$sourceUrl(span) : url;
- if (t1 == null)
- t1 = $.$get$_noSourceUrl();
- t2 = span.get$start(span);
- t2 = t2.file.getLine$1(t2.offset);
- t3 = span.get$start(span);
- return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
- },
- declarationName(span) {
- var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
- return A.trimAsciiRight(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false);
- },
- unvendor($name) {
- var i,
- t1 = $name.length;
- if (t1 < 2)
- return $name;
- if ($name.charCodeAt(0) !== 45)
- return $name;
- if ($name.charCodeAt(1) === 45)
- return $name;
- for (i = 2; i < t1; ++i)
- if ($name.charCodeAt(i) === 45)
- return B.JSString_methods.substring$1($name, i + 1);
- return $name;
- },
- equalsIgnoreCase(string1, string2) {
- var t1, i;
- if (string1 === string2)
- return true;
- if (string1 == null)
- return false;
- t1 = string1.length;
- if (t1 !== string2.length)
- return false;
- for (i = 0; i < t1; ++i)
- if (!A.characterEqualsIgnoreCase(string1.charCodeAt(i), string2.charCodeAt(i)))
- return false;
- return true;
- },
- startsWithIgnoreCase(string, prefix) {
- var i,
- t1 = prefix.length;
- if (string.length < t1)
- return false;
- for (i = 0; i < t1; ++i)
- if (!A.characterEqualsIgnoreCase(string.charCodeAt(i), prefix.charCodeAt(i)))
- return false;
- return true;
- },
- mapInPlace(list, $function) {
- var i;
- for (i = 0; i < list.length; ++i)
- list[i] = $function.call$1(list[i]);
- },
- longestCommonSubsequence(list1, list2, select, $T) {
- var t1, _i, selections, i, i0, j, selection, j0,
- _length = list1.get$length(0) + 1,
- lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int);
- for (t1 = type$.int, _i = 0; _i < _length; ++_i)
- lengths[_i] = A.List_List$filled(((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0) + 1, 0, false, t1);
- _length = list1.get$length(0);
- selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>"));
- for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i)
- selections[_i] = A.List_List$filled((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0, null, false, t1);
- for (i = 0; i < (list1._queue_list$_tail - list1._queue_list$_head & J.get$length$asx(list1._queue_list$_table) - 1) >>> 0; i = i0)
- for (i0 = i + 1, j = 0; j < (list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0; j = j0) {
- selection = select.call$2(list1.$index(0, i), list2.$index(0, j));
- selections[i][j] = selection;
- t1 = lengths[i0];
- j0 = j + 1;
- t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1;
- }
- return new A.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(list1.get$length(0) - 1, list2.get$length(0) - 1);
- },
- removeFirstWhere(list, test, orElse) {
- var i;
- for (i = 0; i < list.length; ++i) {
- if (!test.call$1(list[i]))
- continue;
- B.JSArray_methods.removeAt$1(list, i);
- return;
- }
- orElse.call$0();
- },
- mapAddAll2(destination, source, K1, K2, $V) {
- source.forEach$1(0, new A.mapAddAll2_closure(destination, K1, K2, $V));
- },
- setAll(map, keys, value) {
- var t1;
- for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
- map.$indexSet(0, t1.get$current(t1), value);
- },
- rotateSlice(list, start, end) {
- var i, next,
- element = list.$index(0, end - 1);
- for (i = start; i < end; ++i, element = next) {
- next = list.$index(0, i);
- list.$indexSet(0, i, element);
- }
- },
- mapAsync(iterable, callback, $E, $F) {
- return A.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
- },
- mapAsync$body(iterable, callback, $E, $F, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t2, _i, t1, $async$temp1;
- var $async$mapAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = A._setArrayType([], $F._eval$1("JSArray<0>"));
- t2 = iterable.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 6;
- return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$mapAsync, $async$completer);
- },
- putIfAbsentAsync(map, key, ifAbsent, $K, $V) {
- return A.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V);
- },
- putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t1, value;
- var $async$putIfAbsentAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (map.containsKey$1(key)) {
- t1 = map.$index(0, key);
- $async$returnValue = t1 == null ? $V._as(t1) : t1;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync);
- case 3:
- // returning from await.
- value = $async$result;
- map.$indexSet(0, key, value);
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$putIfAbsentAsync, $async$completer);
- },
- copyMapOfMap(map, K1, K2, $V) {
- var t3, key, child,
- t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"),
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(K1, t1);
- for (t1 = A.MapExtensions_get_pairs(map, K1, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- key = t3._0;
- child = t3._1;
- t3 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V);
- t3.addAll$1(0, child);
- t2.$indexSet(0, key, t3);
- }
- return t2;
- },
- copyMapOfList(map, $K, $E) {
- var t3,
- t1 = $E._eval$1("List<0>"),
- t2 = A.LinkedHashMap_LinkedHashMap$_empty($K, t1);
- for (t1 = A.MapExtensions_get_pairs(map, $K, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- t2.$indexSet(0, t3._0, J.toList$0$ax(t3._1));
- }
- return t2;
- },
- consumeEscapedCharacter(scanner) {
- var _1_0, value, i, next, t1;
- scanner.expectChar$1(92);
- _1_0 = scanner.peekChar$0();
- if (_1_0 == null)
- return 65533;
- if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12)
- scanner.error$1(0, "Expected escape sequence.");
- if (A.CharacterExtension_get_isHex(_1_0)) {
- for (value = 0, i = 0; i < 6; ++i) {
- next = scanner.peekChar$0();
- if (next != null) {
- if (!(next >= 48 && next <= 57))
- if (!(next >= 97 && next <= 102))
- t1 = next >= 65 && next <= 70;
- else
- t1 = true;
- else
- t1 = true;
- t1 = !t1;
- } else
- t1 = true;
- if (t1)
- break;
- value = (value << 4 >>> 0) + A.asHex(scanner.readChar$0());
- }
- t1 = scanner.peekChar$0();
- if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)
- scanner.readChar$0();
- $label0$1: {
- if (0 !== value)
- t1 = value >= 55296 && value <= 57343 || value >= 1114111;
- else
- t1 = true;
- if (t1) {
- t1 = 65533;
- break $label0$1;
- }
- t1 = value;
- break $label0$1;
- }
- return t1;
- }
- return scanner.readChar$0();
- },
- throwWithTrace(error, originalError, trace) {
- var t1 = A.getTrace(originalError);
- A.attachTrace(error, t1 == null ? trace : t1);
- throw A.wrapException(error);
- },
- attachTrace(error, trace) {
- var t1;
- if (trace.toString$0(0).length === 0)
- return;
- t1 = $.$get$_traces();
- A.Expando__checkType(error);
- if (t1._jsWeakMap.get(error) == null)
- t1.$indexSet(0, error, trace);
- },
- getTrace(error) {
- var t1;
- if (typeof error == "string" || typeof error == "number" || A._isBool(error))
- t1 = null;
- else {
- t1 = $.$get$_traces();
- A.Expando__checkType(error);
- t1 = t1._jsWeakMap.get(error);
- }
- return t1;
- },
- indent_closure: function indent_closure(t0) {
- this.indentation = t0;
- },
- flattenVertically_closure: function flattenVertically_closure(t0) {
- this.T = t0;
- },
- flattenVertically_closure0: function flattenVertically_closure0(t0, t1) {
- this.result = t0;
- this.T = t1;
- },
- longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) {
- this.selections = t0;
- this.lengths = t1;
- this.T = t2;
- },
- mapAddAll2_closure: function mapAddAll2_closure(t0, t1, t2, t3) {
- var _ = this;
- _.destination = t0;
- _.K1 = t1;
- _.K2 = t2;
- _.V = t3;
- },
- SassApiValue_assertSelector(_this, allowParent, $name) {
- var error, stackTrace, t1, exception,
- string = _this._selectorString$1($name);
- try {
- t1 = A.SelectorList_SelectorList$parse(string, allowParent, null, null, false);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassFormatException._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
- A.throwWithTrace(new A.SassScriptException($name == null ? t1 : "$" + $name + ": " + t1), error, stackTrace);
- } else
- throw exception;
- }
- },
- SassApiValue_assertCompoundSelector(_this, $name) {
- var error, stackTrace, t1, exception,
- allowParent = false,
- string = _this._selectorString$1($name);
- try {
- t1 = A.SelectorParser$(string, allowParent, null, null, false, null).parseCompoundSelector$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassFormatException._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
- A.throwWithTrace(new A.SassScriptException("$" + $name + ": " + t1), error, stackTrace);
- } else
- throw exception;
- }
- },
- Value: function Value() {
- },
- SassArgumentList$(contents, keywords, separator) {
- var t1 = type$.Value;
- t1 = new A.SassArgumentList(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false);
- t1.SassList$3$brackets(contents, separator, false);
- return t1;
- },
- SassArgumentList: function SassArgumentList(t0, t1, t2, t3) {
- var _ = this;
- _._keywords = t0;
- _._wereKeywordsAccessed = false;
- _._list$_contents = t1;
- _._separator = t2;
- _._hasBrackets = t3;
- },
- SassBoolean: function SassBoolean(t0) {
- this.value = t0;
- },
- SassCalculation_calc(argument) {
- var t1,
- _0_0 = A.SassCalculation__simplify(argument);
- $label0$0: {
- if (_0_0 instanceof A.SassNumber) {
- t1 = _0_0;
- break $label0$0;
- }
- if (_0_0 instanceof A.SassCalculation) {
- t1 = _0_0;
- break $label0$0;
- }
- t1 = new A.SassCalculation("calc", A.List_List$unmodifiable([_0_0], type$.Object));
- break $label0$0;
- }
- return t1;
- },
- SassCalculation_min($arguments) {
- var minimum, _i, arg, t2,
- args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
- t1 = args.length;
- if (t1 === 0)
- throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null));
- for (minimum = null, _i = 0; _i < t1; ++_i) {
- arg = args[_i];
- if (arg instanceof A.SassNumber)
- t2 = minimum != null && !minimum.isComparableTo$1(arg);
- else
- t2 = true;
- if (t2) {
- minimum = null;
- break;
- } else if (minimum == null || minimum.greaterThan$1(arg).value)
- minimum = arg;
- }
- if (minimum != null)
- return minimum;
- A.SassCalculation__verifyCompatibleNumbers(args);
- return new A.SassCalculation("min", args);
- },
- SassCalculation_max($arguments) {
- var maximum, _i, arg, t2,
- args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
- t1 = args.length;
- if (t1 === 0)
- throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null));
- for (maximum = null, _i = 0; _i < t1; ++_i) {
- arg = args[_i];
- if (arg instanceof A.SassNumber)
- t2 = maximum != null && !maximum.isComparableTo$1(arg);
- else
- t2 = true;
- if (t2) {
- maximum = null;
- break;
- } else if (maximum == null || maximum.lessThan$1(arg).value)
- maximum = arg;
- }
- if (maximum != null)
- return maximum;
- A.SassCalculation__verifyCompatibleNumbers(args);
- return new A.SassCalculation("max", args);
- },
- SassCalculation_hypot($arguments) {
- var first, subtotal, i, number, value, t2, t3,
- args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
- t1 = args.length;
- if (t1 === 0)
- throw A.wrapException(A.ArgumentError$("hypot() must have at least one argument.", null));
- A.SassCalculation__verifyCompatibleNumbers(args);
- first = B.JSArray_methods.get$first(args);
- if (!(first instanceof A.SassNumber) || first.hasUnit$1("%"))
- return new A.SassCalculation("hypot", args);
- for (subtotal = 0, i = 0; i < t1;) {
- number = args[i];
- if (!(number instanceof A.SassNumber) || !number.hasCompatibleUnits$1(first))
- return new A.SassCalculation("hypot", args);
- ++i;
- value = number.convertValueToMatch$3(first, "numbers[" + i + "]", "numbers[1]");
- subtotal += value * value;
- }
- t1 = Math.sqrt(subtotal);
- t2 = J.getInterceptor$x(first);
- t3 = t2.get$numeratorUnits(first);
- return A.SassNumber_SassNumber$withUnits(t1, t2.get$denominatorUnits(first), t3);
- },
- SassCalculation_abs(argument) {
- argument = A.SassCalculation__simplify(argument);
- if (!(argument instanceof A.SassNumber))
- return new A.SassCalculation("abs", A._setArrayType([argument], type$.JSArray_Object));
- if (argument.hasUnit$1("%"))
- A.warnForDeprecation(string$.Passinp + argument.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + argument.toString$0(0) + string$.x7d__Mor, B.Deprecation_GFc);
- return A.SassNumber_SassNumber(Math.abs(argument._number$_value), null).coerceToMatch$1(argument);
- },
- SassCalculation_exp(argument) {
- argument = A.SassCalculation__simplify(argument);
- if (!(argument instanceof A.SassNumber))
- return new A.SassCalculation("exp", A._setArrayType([argument], type$.JSArray_Object));
- argument.assertNoUnits$0();
- return A.pow0(A.SassNumber_SassNumber(2.718281828459045, null), argument);
- },
- SassCalculation_sign(argument) {
- var t1, _0_2, t2, arg;
- argument = A.SassCalculation__simplify(argument);
- $label0$0: {
- t1 = argument instanceof A.SassNumber;
- if (t1) {
- _0_2 = argument._number$_value;
- if (!isNaN(_0_2))
- t2 = 0 === _0_2;
- else
- t2 = true;
- } else
- t2 = false;
- if (t2) {
- t1 = argument;
- break $label0$0;
- }
- if (t1) {
- t1 = !argument.hasUnit$1("%");
- arg = argument;
- } else {
- arg = null;
- t1 = false;
- }
- if (t1) {
- t1 = A.SassNumber_SassNumber(J.get$sign$in(arg._number$_value), null).coerceToMatch$1(argument);
- break $label0$0;
- }
- t1 = new A.SassCalculation("sign", A._setArrayType([argument], type$.JSArray_Object));
- break $label0$0;
- }
- return t1;
- },
- SassCalculation_clamp(min, value, max) {
- var t1, args;
- if (value == null && max != null)
- throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null));
- min = A.SassCalculation__simplify(min);
- value = A.NullableExtension_andThen(value, A.calculation_SassCalculation__simplify$closure());
- max = A.NullableExtension_andThen(max, A.calculation_SassCalculation__simplify$closure());
- if (min instanceof A.SassNumber && value instanceof A.SassNumber && max instanceof A.SassNumber && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) {
- if (value.lessThanOrEquals$1(min).value)
- return min;
- if (value.greaterThanOrEquals$1(max).value)
- return max;
- return value;
- }
- t1 = [min];
- if (value != null)
- t1.push(value);
- if (max != null)
- t1.push(max);
- args = A.List_List$unmodifiable(t1, type$.Object);
- A.SassCalculation__verifyCompatibleNumbers(args);
- A.SassCalculation__verifyLength(args, 3);
- return new A.SassCalculation("clamp", args);
- },
- SassCalculation_pow(base, exponent) {
- var t1 = A._setArrayType([base], type$.JSArray_Object);
- if (exponent != null)
- t1.push(exponent);
- A.SassCalculation__verifyLength(t1, 2);
- base = A.SassCalculation__simplify(base);
- exponent = A.NullableExtension_andThen(exponent, A.calculation_SassCalculation__simplify$closure());
- if (!(base instanceof A.SassNumber) || !(exponent instanceof A.SassNumber))
- return new A.SassCalculation("pow", t1);
- base.assertNoUnits$0();
- exponent.assertNoUnits$0();
- return A.pow0(base, exponent);
- },
- SassCalculation_log(number, base) {
- var t1, t2;
- number = A.SassCalculation__simplify(number);
- base = A.NullableExtension_andThen(base, A.calculation_SassCalculation__simplify$closure());
- t1 = A._setArrayType([number], type$.JSArray_Object);
- t2 = base != null;
- if (t2)
- t1.push(base);
- if (number instanceof A.SassNumber)
- t2 = t2 && !(base instanceof A.SassNumber);
- else
- t2 = true;
- if (t2)
- return new A.SassCalculation("log", t1);
- number.assertNoUnits$0();
- if (base instanceof A.SassNumber) {
- base.assertNoUnits$0();
- return A.log(number, base);
- }
- return A.log(number, null);
- },
- SassCalculation_atan2(y, x) {
- var t1;
- y = A.SassCalculation__simplify(y);
- x = A.NullableExtension_andThen(x, A.calculation_SassCalculation__simplify$closure());
- t1 = A._setArrayType([y], type$.JSArray_Object);
- if (x != null)
- t1.push(x);
- A.SassCalculation__verifyLength(t1, 2);
- A.SassCalculation__verifyCompatibleNumbers(t1);
- if (!(y instanceof A.SassNumber) || !(x instanceof A.SassNumber) || y.hasUnit$1("%") || x.hasUnit$1("%") || !y.hasCompatibleUnits$1(x))
- return new A.SassCalculation("atan2", t1);
- return A.SassNumber_SassNumber$withUnits(Math.atan2(y._number$_value, x.convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- SassCalculation_rem(dividend, modulus) {
- var t1, result;
- dividend = A.SassCalculation__simplify(dividend);
- modulus = A.NullableExtension_andThen(modulus, A.calculation_SassCalculation__simplify$closure());
- t1 = A._setArrayType([dividend], type$.JSArray_Object);
- if (modulus != null)
- t1.push(modulus);
- A.SassCalculation__verifyLength(t1, 2);
- A.SassCalculation__verifyCompatibleNumbers(t1);
- if (!(dividend instanceof A.SassNumber) || !(modulus instanceof A.SassNumber) || !dividend.hasCompatibleUnits$1(modulus))
- return new A.SassCalculation("rem", t1);
- result = dividend.modulo$1(modulus);
- t1 = modulus._number$_value;
- if (A.DoubleWithSignedZero_get_signIncludingZero(t1) !== A.DoubleWithSignedZero_get_signIncludingZero(dividend._number$_value)) {
- if (t1 == 1 / 0 || t1 == -1 / 0)
- return dividend;
- if (result._number$_value === 0)
- return result.unaryMinus$0();
- return result.minus$1(modulus);
- }
- return result;
- },
- SassCalculation_mod(dividend, modulus) {
- var t1;
- dividend = A.SassCalculation__simplify(dividend);
- modulus = A.NullableExtension_andThen(modulus, A.calculation_SassCalculation__simplify$closure());
- t1 = A._setArrayType([dividend], type$.JSArray_Object);
- if (modulus != null)
- t1.push(modulus);
- A.SassCalculation__verifyLength(t1, 2);
- A.SassCalculation__verifyCompatibleNumbers(t1);
- if (!(dividend instanceof A.SassNumber) || !(modulus instanceof A.SassNumber) || !dividend.hasCompatibleUnits$1(modulus))
- return new A.SassCalculation("mod", t1);
- return dividend.modulo$1(modulus);
- },
- SassCalculation_round(strategyOrNumber, numberOrStep, step) {
- var _0_4, _0_5_isSet, _0_20, _0_6, t1, _0_50, _0_6_isSet, number, t2, _0_2_isSet, _0_10_isSet, _0_8, _0_12_isSet, _0_12, _0_14_isSet, _0_14, _0_16_isSet, _0_16, t3, strategy, _0_8_isSet, t4, rest, _null = null, _s5_ = "round",
- _0_1 = A.SassCalculation__simplify(strategyOrNumber),
- _0_2 = A.NullableExtension_andThen(numberOrStep, A.calculation_SassCalculation__simplify$closure()),
- _0_5 = A.NullableExtension_andThen(step, A.calculation_SassCalculation__simplify$closure()),
- _0_10 = _0_1,
- _0_4_isSet = _0_1 instanceof A.SassNumber;
- if (_0_4_isSet) {
- type$.SassNumber._as(_0_10);
- _0_4 = _0_2 == null;
- _0_5_isSet = _0_4;
- _0_20 = _0_2;
- if (_0_5_isSet) {
- _0_6 = _0_5 == null;
- t1 = _0_6;
- _0_50 = _0_5;
- } else {
- _0_50 = _null;
- _0_6 = _0_50;
- t1 = false;
- }
- _0_6_isSet = _0_5_isSet;
- number = _0_10;
- _0_1 = number;
- } else {
- number = _null;
- _0_50 = number;
- _0_6 = _0_50;
- _0_20 = _0_6;
- _0_4 = _0_20;
- _0_1 = _0_10;
- _0_6_isSet = false;
- _0_5_isSet = false;
- t1 = false;
- }
- if (t1) {
- t1 = B.JSNumber_methods.round$0(number._number$_value);
- t2 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits(t1, number.get$denominatorUnits(number), t2);
- }
- if (_0_1 instanceof A.SassNumber) {
- if (_0_4_isSet) {
- t1 = _0_20;
- _0_2_isSet = _0_4_isSet;
- } else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- type$.SassNumber._as(t1);
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_5_isSet)
- t2 = _0_50;
- else {
- t2 = _0_5;
- _0_50 = t2;
- _0_5_isSet = true;
- }
- _0_6 = t2 == null;
- t2 = _0_6;
- _0_6_isSet = true;
- }
- t2 = t2 && !_0_1.hasCompatibleUnits$1(t1);
- step = t1;
- t1 = t2;
- } else {
- step = _null;
- t1 = false;
- }
- number = _0_1;
- } else {
- step = _null;
- number = step;
- _0_2_isSet = _0_4_isSet;
- t1 = false;
- }
- if (t1) {
- t1 = type$.JSArray_Object;
- A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], t1));
- return new A.SassCalculation(_s5_, A._setArrayType([number, step], t1));
- }
- if (_0_1 instanceof A.SassNumber) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- type$.SassNumber._as(t1);
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_5_isSet)
- t2 = _0_50;
- else {
- t2 = _0_5;
- _0_50 = t2;
- _0_5_isSet = true;
- }
- _0_6 = t2 == null;
- t2 = _0_6;
- _0_6_isSet = true;
- }
- step = t1;
- t1 = t2;
- } else {
- step = _null;
- t1 = false;
- }
- number = _0_1;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- if (t1) {
- A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], type$.JSArray_Object));
- return A.SassCalculation__roundWithStep("nearest", number, step);
- }
- _0_10_isSet = _0_1 instanceof A.SassString;
- if (_0_10_isSet) {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_12_isSet = !t1;
- if (_0_12_isSet) {
- _0_12 = "up" === _0_8;
- t1 = _0_12;
- _0_14_isSet = !t1;
- if (_0_14_isSet) {
- _0_14 = "down" === _0_8;
- t1 = _0_14;
- _0_16_isSet = !t1;
- if (_0_16_isSet) {
- _0_16 = "to-zero" === _0_8;
- t1 = _0_16;
- } else {
- _0_16 = _null;
- t1 = true;
- }
- } else {
- _0_16 = _null;
- _0_14 = _0_16;
- _0_16_isSet = false;
- t1 = true;
- }
- } else {
- _0_16 = _null;
- _0_14 = _0_16;
- _0_12 = _0_14;
- _0_14_isSet = false;
- _0_16_isSet = false;
- t1 = true;
- }
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- t2 = type$.SassNumber;
- t2._as(t1);
- if (_0_5_isSet)
- t3 = _0_50;
- else {
- t3 = _0_5;
- _0_50 = t3;
- _0_5_isSet = true;
- }
- if (t3 instanceof A.SassNumber) {
- if (_0_5_isSet)
- t3 = _0_50;
- else {
- t3 = _0_5;
- _0_50 = t3;
- _0_5_isSet = true;
- }
- t2._as(t3);
- t2 = !t1.hasCompatibleUnits$1(t3);
- step = t3;
- } else {
- step = _null;
- t2 = false;
- }
- number = t1;
- t1 = t2;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- step = _null;
- number = step;
- strategy = number;
- t1 = false;
- }
- } else {
- step = _null;
- number = step;
- strategy = number;
- _0_16 = strategy;
- _0_14 = _0_16;
- _0_12 = _0_14;
- _0_8 = _0_12;
- _0_10 = _0_8;
- _0_12_isSet = false;
- _0_14_isSet = false;
- _0_16_isSet = false;
- t1 = false;
- }
- if (t1) {
- t1 = type$.JSArray_Object;
- A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], t1));
- return new A.SassCalculation(_s5_, A._setArrayType([strategy, number, step], t1));
- }
- if (_0_1 instanceof A.SassString) {
- if (_0_10_isSet) {
- t1 = _0_10;
- _0_8_isSet = _0_10_isSet;
- } else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- _0_8_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- t2 = type$.SassNumber;
- t2._as(t1);
- if (_0_5_isSet)
- t3 = _0_50;
- else {
- t3 = _0_5;
- _0_50 = t3;
- _0_5_isSet = true;
- }
- t3 = t3 instanceof A.SassNumber;
- if (t3) {
- if (_0_5_isSet)
- t4 = _0_50;
- else {
- t4 = _0_5;
- _0_50 = t4;
- _0_5_isSet = true;
- }
- t2._as(t4);
- step = t4;
- } else
- step = _null;
- t2 = t3;
- number = t1;
- t1 = t2;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- step = _null;
- number = step;
- strategy = number;
- t1 = false;
- }
- } else {
- step = _null;
- number = step;
- strategy = number;
- _0_8_isSet = _0_10_isSet;
- t1 = false;
- }
- if (t1) {
- A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], type$.JSArray_Object));
- return A.SassCalculation__roundWithStep(strategy._string$_text, number, step);
- }
- if (_0_1 instanceof A.SassString) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassString) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- type$.SassString._as(t1);
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_5_isSet)
- t2 = _0_50;
- else {
- t2 = _0_5;
- _0_50 = t2;
- _0_5_isSet = true;
- }
- _0_6 = t2 == null;
- t2 = _0_6;
- _0_6_isSet = true;
- }
- rest = t1;
- t1 = t2;
- } else {
- rest = _null;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- rest = _null;
- strategy = rest;
- t1 = false;
- }
- } else {
- rest = _null;
- strategy = rest;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation(_s5_, A._setArrayType([strategy, rest], type$.JSArray_Object));
- if (_0_1 instanceof A.SassString) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 != null)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$(string$.If_str, _null));
- if (_0_1 instanceof A.SassString) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- _0_4 = t1 == null;
- t1 = _0_4;
- _0_4_isSet = true;
- }
- if (t1)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$(string$.Number, _null));
- if (_0_1 instanceof A.SassString) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- _0_4 = t1 == null;
- t1 = _0_4;
- _0_4_isSet = true;
- }
- if (t1)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- rest = _0_1;
- } else {
- rest = _null;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation(_s5_, A._setArrayType([rest], type$.JSArray_Object));
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- _0_4 = t1 == null;
- t1 = _0_4;
- }
- if (t1)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$("Single argument " + A.S(_0_1) + " expected to be simplifiable.", _null));
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 != null) {
- if (_0_2_isSet)
- step = _0_20;
- else {
- step = _0_2;
- _0_20 = step;
- _0_2_isSet = true;
- }
- if (step == null)
- step = type$.Object._as(step);
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- }
- } else {
- step = _null;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation(_s5_, A._setArrayType([_0_1, step], type$.JSArray_Object));
- if (_0_1 instanceof A.SassString) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string$_text;
- t1 = _0_8;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = false;
- if (!t1)
- if (_0_1 instanceof A.SassString)
- t1 = _0_1.get$isVar();
- else
- t1 = false;
- else
- t1 = true;
- if (t1) {
- type$.SassString._as(_0_1);
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 != null) {
- if (_0_2_isSet)
- number = _0_20;
- else {
- number = _0_2;
- _0_20 = number;
- _0_2_isSet = true;
- }
- if (number == null)
- number = type$.Object._as(number);
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- t1 = t1 != null;
- if (t1) {
- if (_0_5_isSet)
- step = _0_50;
- else {
- step = _0_5;
- _0_50 = step;
- _0_5_isSet = true;
- }
- if (step == null)
- step = type$.Object._as(step);
- } else
- step = _null;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- step = _null;
- number = step;
- strategy = number;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation(_s5_, A._setArrayType([strategy, number, step], type$.JSArray_Object));
- if ((_0_2_isSet ? _0_20 : _0_2) != null)
- t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$(A.S(strategyOrNumber) + string$.x20must_b, _null));
- t1 = A.SassScriptException$("Invalid parameters.", _null);
- throw A.wrapException(t1);
- },
- SassCalculation_operateInternal(operator, left, right, inLegacySassFunction, simplify) {
- var t1;
- if (!simplify)
- return new A.CalculationOperation(operator, left, right);
- left = A.SassCalculation__simplify(left);
- right = A.SassCalculation__simplify(right);
- if (B.CalculationOperator_g2q === operator || B.CalculationOperator_CxF === operator) {
- if (left instanceof A.SassNumber)
- if (right instanceof A.SassNumber)
- t1 = inLegacySassFunction ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right);
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- return operator === B.CalculationOperator_g2q ? left.plus$1(right) : left.minus$1(right);
- A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([left, right], type$.JSArray_Object));
- if (right instanceof A.SassNumber) {
- t1 = right._number$_value;
- t1 = t1 < 0 && !A.fuzzyEquals(t1, 0);
- } else
- t1 = false;
- if (t1) {
- right = right.times$1(A.SassNumber_SassNumber(-1, null));
- operator = operator === B.CalculationOperator_g2q ? B.CalculationOperator_CxF : B.CalculationOperator_g2q;
- }
- return new A.CalculationOperation(operator, left, right);
- } else if (left instanceof A.SassNumber && right instanceof A.SassNumber)
- return operator === B.CalculationOperator_171 ? left.times$1(right) : left.dividedBy$1(right);
- else
- return new A.CalculationOperation(operator, left, right);
- },
- SassCalculation__roundWithStep(strategy, number, step) {
- var _0_2, t1, _0_6, _0_8_isSet, _0_8, _0_9_isSet, _0_9, _0_11, _0_13, stepWithNumberUnit, t2, _null = null;
- if (!A.LinkedHashSet_LinkedHashSet$_literal(["nearest", "up", "down", "to-zero"], type$.String).contains$1(0, strategy))
- throw A.wrapException(A.ArgumentError$(strategy + string$.x20must_b, _null));
- _0_2 = number._number$_value;
- if (_0_2 == 1 / 0 || _0_2 == -1 / 0) {
- t1 = step._number$_value;
- t1 = t1 == 1 / 0 || t1 == -1 / 0;
- } else
- t1 = false;
- if (!t1) {
- t1 = step._number$_value;
- t1 = t1 === 0 || isNaN(_0_2) || isNaN(t1);
- } else
- t1 = true;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits(0 / 0, number.get$denominatorUnits(number), t1);
- }
- if (_0_2 == 1 / 0 || _0_2 == -1 / 0)
- return number;
- t1 = step._number$_value;
- if (t1 == 1 / 0 || t1 == -1 / 0) {
- $label0$0: {
- if (0 === _0_2) {
- t1 = number;
- break $label0$0;
- }
- _0_6 = "nearest" === strategy;
- t1 = _0_6;
- _0_8_isSet = !t1;
- if (_0_8_isSet) {
- _0_8 = "to-zero" === strategy;
- _0_9_isSet = _0_8;
- } else {
- _0_8 = _null;
- _0_9_isSet = true;
- }
- if (_0_9_isSet) {
- _0_9 = _0_2 > 0;
- t1 = _0_9;
- } else {
- _0_9 = _null;
- t1 = false;
- }
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits(0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- if (!_0_6)
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = "to-zero" === strategy;
- t1 = _0_8;
- }
- else
- t1 = true;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits(-0.0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- _0_11 = "up" === strategy;
- t1 = _0_11;
- if (t1)
- if (_0_9_isSet)
- t1 = _0_9;
- else {
- _0_9 = _0_2 > 0;
- t1 = _0_9;
- }
- else
- t1 = false;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits(1 / 0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- if (_0_11) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits(-0.0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- _0_13 = "down" === strategy;
- t1 = _0_13;
- if (t1)
- t1 = _0_2 < 0;
- else
- t1 = false;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits(-1 / 0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- if (_0_13) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits(0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- t1 = A.throwExpression(A.UnsupportedError$("Invalid argument: " + strategy + "."));
- }
- return t1;
- }
- stepWithNumberUnit = step.convertValueToMatch$1(number);
- $label1$1: {
- if ("nearest" === strategy) {
- t1 = B.JSNumber_methods.round$0(_0_2 / stepWithNumberUnit);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- break $label1$1;
- }
- if ("up" === strategy) {
- t2 = _0_2 / stepWithNumberUnit;
- t1 = t1 < 0 ? B.JSNumber_methods.floor$0(t2) : B.JSNumber_methods.ceil$0(t2);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- break $label1$1;
- }
- if ("down" === strategy) {
- t2 = _0_2 / stepWithNumberUnit;
- t1 = t1 < 0 ? B.JSNumber_methods.ceil$0(t2) : B.JSNumber_methods.floor$0(t2);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- break $label1$1;
- }
- if ("to-zero" === strategy) {
- t1 = _0_2 / stepWithNumberUnit;
- if (_0_2 < 0) {
- t1 = B.JSNumber_methods.ceil$0(t1);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- } else {
- t1 = B.JSNumber_methods.floor$0(t1);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- }
- break $label1$1;
- }
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits(0 / 0, number.get$denominatorUnits(number), t1);
- break $label1$1;
- }
- return t1;
- },
- SassCalculation__simplify(arg) {
- var t1, _0_11_isSet, _0_11, _0_12, _0_15, _0_16_isSet, _0_16, text, _0_12_isSet, _0_15_isSet, value, _null = null,
- _s32_ = " can't be used in a calculation.";
- $label0$0: {
- if (arg instanceof A.SassNumber || arg instanceof A.CalculationOperation) {
- t1 = arg;
- break $label0$0;
- }
- t1 = arg instanceof A.SassString;
- if (t1 && !arg._hasQuotes) {
- t1 = arg;
- break $label0$0;
- }
- if (t1)
- A.throwExpression(A.SassScriptException$("Quoted string " + arg.toString$0(0) + _s32_, _null));
- _0_11_isSet = arg instanceof A.SassCalculation;
- if (_0_11_isSet) {
- _0_11 = "calc" === arg.name;
- if (_0_11) {
- _0_12 = arg.$arguments;
- _0_15 = _0_12.length === 1;
- _0_16_isSet = _0_15;
- if (_0_16_isSet) {
- _0_16 = _0_12[0];
- t1 = _0_16;
- if (t1 instanceof A.SassString) {
- type$.SassString._as(_0_16);
- if (!_0_16._hasQuotes) {
- text = _0_16._string$_text;
- t1 = A.SassCalculation__needsParentheses(text);
- } else {
- text = _null;
- t1 = false;
- }
- } else {
- text = _null;
- t1 = false;
- }
- } else {
- text = _null;
- _0_16 = text;
- t1 = false;
- }
- } else {
- text = _null;
- _0_16 = text;
- _0_12 = _0_16;
- _0_15 = _0_12;
- _0_16_isSet = false;
- t1 = false;
- }
- _0_12_isSet = _0_11;
- _0_15_isSet = _0_12_isSet;
- } else {
- text = _null;
- _0_16 = text;
- _0_12 = _0_16;
- _0_15 = _0_12;
- _0_11 = _0_15;
- _0_15_isSet = false;
- _0_12_isSet = false;
- _0_16_isSet = false;
- t1 = false;
- }
- if (t1) {
- t1 = new A.SassString("(" + A.S(text) + ")", false);
- break $label0$0;
- }
- if (_0_11_isSet)
- if (_0_11)
- if (_0_15_isSet)
- t1 = _0_15;
- else {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- _0_12 = arg.$arguments;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- _0_15 = t1.length === 1;
- t1 = _0_15;
- }
- else
- t1 = false;
- else
- t1 = false;
- if (t1) {
- if (_0_16_isSet)
- value = _0_16;
- else {
- _0_16 = (_0_12_isSet ? _0_12 : arg.$arguments)[0];
- value = _0_16;
- }
- t1 = value;
- break $label0$0;
- }
- if (_0_11_isSet) {
- t1 = arg;
- break $label0$0;
- }
- if (arg instanceof A.Value)
- A.throwExpression(A.SassScriptException$("Value " + arg.toString$0(0) + _s32_, _null));
- t1 = A.throwExpression(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", _null));
- }
- return t1;
- },
- SassCalculation__needsParentheses(text) {
- var t1, couldBeVar, second, third, fourth, i, t2,
- first = text.charCodeAt(0);
- if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47 || first === 42)
- return true;
- t1 = text.length;
- couldBeVar = t1 >= 4 && A.characterEqualsIgnoreCase(first, 118);
- if (t1 < 2)
- return false;
- second = text.charCodeAt(1);
- if (second === 32 || second === 9 || second === 10 || second === 13 || second === 12 || second === 47 || second === 42)
- return true;
- couldBeVar = couldBeVar && A.characterEqualsIgnoreCase(second, 97);
- if (t1 < 3)
- return false;
- third = text.charCodeAt(2);
- if (third === 32 || third === 9 || third === 10 || third === 13 || third === 12 || third === 47 || third === 42)
- return true;
- couldBeVar = couldBeVar && A.characterEqualsIgnoreCase(third, 114);
- if (t1 < 4)
- return false;
- fourth = text.charCodeAt(3);
- if (couldBeVar && fourth === 40)
- return true;
- if (fourth === 32 || fourth === 9 || fourth === 10 || fourth === 13 || fourth === 12 || fourth === 47 || fourth === 42)
- return true;
- for (i = 4; i < t1; ++i) {
- t2 = text.charCodeAt(i);
- if (t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || t2 === 47 || t2 === 42)
- return true;
- }
- return false;
- },
- SassCalculation__verifyCompatibleNumbers(args) {
- var t1, _i, t2, arg, i, number1, j, number2;
- for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) {
- arg = args[_i];
- if (arg instanceof A.SassNumber && arg.get$hasComplexUnits())
- throw A.wrapException(A.SassScriptException$("Number " + A.S(arg) + " isn't compatible with CSS calculations.", null));
- }
- for (t1 = t2, i = 0; i < t1 - 1; ++i) {
- number1 = args[i];
- if (!(number1 instanceof A.SassNumber))
- continue;
- for (j = i + 1; t1 = args.length, j < t1; ++j) {
- number2 = args[j];
- if (!(number2 instanceof A.SassNumber))
- continue;
- if (number1.hasPossiblyCompatibleUnits$1(number2))
- continue;
- throw A.wrapException(A.SassScriptException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null));
- }
- }
- },
- SassCalculation__verifyLength(args, expectedLength) {
- var t1;
- if (args.length === expectedLength)
- return;
- if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure()))
- return;
- t1 = args.length;
- throw A.wrapException(A.SassScriptException$("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize("was", t1, "were") + " passed.", null));
- },
- SassCalculation__singleArgument($name, argument, mathFunc, forbidUnits) {
- argument = A.SassCalculation__simplify(argument);
- if (!(argument instanceof A.SassNumber))
- return new A.SassCalculation($name, A._setArrayType([argument], type$.JSArray_Object));
- if (forbidUnits)
- argument.assertNoUnits$0();
- return mathFunc.call$1(argument);
- },
- SassCalculation: function SassCalculation(t0, t1) {
- this.name = t0;
- this.$arguments = t1;
- },
- SassCalculation__verifyLength_closure: function SassCalculation__verifyLength_closure() {
- },
- CalculationOperation: function CalculationOperation(t0, t1, t2) {
- this._operator = t0;
- this._left = t1;
- this._right = t2;
- },
- CalculationOperator: function CalculationOperator(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.operator = t1;
- _.precedence = t2;
- _._name = t3;
- },
- SassColor$rgb(red, green, blue, alpha) {
- var _null = null,
- t1 = new A.SassColor(red, green, blue, _null, _null, _null, A.fuzzyAssertRange(A.SassColor__handleNullAlpha(alpha), 0, 1, "alpha"), _null);
- A.RangeError_checkValueInInterval(t1.get$red(0), 0, 255, "red");
- A.RangeError_checkValueInInterval(t1.get$green(0), 0, 255, "green");
- A.RangeError_checkValueInInterval(t1.get$blue(0), 0, 255, "blue");
- return t1;
- },
- SassColor$rgbInternal(_red, _green, _blue, alpha, format) {
- var t1 = new A.SassColor(_red, _green, _blue, null, null, null, A.fuzzyAssertRange(alpha, 0, 1, "alpha"), format);
- A.RangeError_checkValueInInterval(t1.get$red(0), 0, 255, "red");
- A.RangeError_checkValueInInterval(t1.get$green(0), 0, 255, "green");
- A.RangeError_checkValueInInterval(t1.get$blue(0), 0, 255, "blue");
- return t1;
- },
- SassColor$hslInternal(hue, saturation, lightness, alpha, format) {
- return new A.SassColor(null, null, null, B.JSNumber_methods.$mod(hue, 360), A.fuzzyAssertRange(saturation, 0, 100, "saturation"), A.fuzzyAssertRange(lightness, 0, 100, "lightness"), A.fuzzyAssertRange(alpha, 0, 1, "alpha"), format);
- },
- SassColor_SassColor$hwb(hue, whiteness, blackness, alpha) {
- var t2, t1 = {},
- scaledHue = B.JSNumber_methods.$mod(hue, 360) / 360,
- scaledWhiteness = t1.scaledWhiteness = A.fuzzyAssertRange(whiteness, 0, 100, "whiteness") / 100,
- scaledBlackness = A.fuzzyAssertRange(blackness, 0, 100, "blackness") / 100,
- sum = scaledWhiteness + scaledBlackness;
- if (sum > 1) {
- t2 = t1.scaledWhiteness = scaledWhiteness / sum;
- scaledBlackness /= sum;
- } else
- t2 = scaledWhiteness;
- t2 = new A.SassColor_SassColor$hwb_toRgb(t1, 1 - t2 - scaledBlackness);
- return A.SassColor$rgb(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha);
- },
- SassColor__handleNullAlpha(alpha) {
- return alpha;
- },
- SassColor__hueToRgb(m1, m2, hue) {
- var t1;
- if (hue < 0)
- ++hue;
- if (hue > 1)
- --hue;
- $label0$0: {
- if (hue < 0.16666666666666666) {
- t1 = m1 + (m2 - m1) * hue * 6;
- break $label0$0;
- }
- if (hue < 0.5) {
- t1 = m2;
- break $label0$0;
- }
- if (hue < 0.6666666666666666) {
- t1 = m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
- break $label0$0;
- }
- t1 = m1;
- break $label0$0;
- }
- return t1;
- },
- SassColor: function SassColor(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _._red = t0;
- _._green = t1;
- _._blue = t2;
- _._hue = t3;
- _._saturation = t4;
- _._lightness = t5;
- _._alpha = t6;
- _.format = t7;
- },
- SassColor_SassColor$hwb_toRgb: function SassColor_SassColor$hwb_toRgb(t0, t1) {
- this._box_0 = t0;
- this.factor = t1;
- },
- _ColorFormatEnum: function _ColorFormatEnum(t0) {
- this._color$_name = t0;
- },
- SpanColorFormat: function SpanColorFormat(t0) {
- this._color$_span = t0;
- },
- SassFunction: function SassFunction(t0) {
- this.callable = t0;
- },
- SassList$(contents, _separator, brackets) {
- var t1 = new A.SassList(A.List_List$unmodifiable(contents, type$.Value), _separator, brackets);
- t1.SassList$3$brackets(contents, _separator, brackets);
- return t1;
- },
- SassList: function SassList(t0, t1, t2) {
- this._list$_contents = t0;
- this._separator = t1;
- this._hasBrackets = t2;
- },
- SassList_isBlank_closure: function SassList_isBlank_closure() {
- },
- ListSeparator: function ListSeparator(t0, t1, t2) {
- this._list$_name = t0;
- this.separator = t1;
- this._name = t2;
- },
- SassMap: function SassMap(t0) {
- this._map$_contents = t0;
- },
- SassMixin: function SassMixin(t0) {
- this.callable = t0;
- },
- _SassNull: function _SassNull() {
- },
- conversionFactor(unit1, unit2) {
- var _0_0;
- if (unit1 === unit2)
- return 1;
- _0_0 = B.Map_gQqJO.$index(0, unit1);
- if (_0_0 != null)
- return _0_0.$index(0, unit2);
- return null;
- },
- SassNumber_SassNumber(value, unit) {
- return unit == null ? new A.UnitlessSassNumber(value, null) : new A.SingleUnitSassNumber(unit, value, null);
- },
- SassNumber_SassNumber$withUnits(value, denominatorUnits, numeratorUnits) {
- var _0_4, t1, _0_6, _0_8_isSet, _0_8, _0_10_isSet, _0_10, _0_7, t2, _0_4_isSet, unit, _0_7_isSet, numerators, t3, denominators, unsimplifiedDenominators, valueDouble, _i, denominator, simplifiedAway, i, factor, _1_2, _1_7_isSet, _1_7, _null = null,
- _0_6_isSet = !false;
- if (_0_6_isSet) {
- _0_4 = (numeratorUnits === null ? type$.List_String._as(numeratorUnits) : numeratorUnits).length;
- t1 = _0_4;
- _0_6 = t1 <= 0;
- _0_8_isSet = _0_6;
- } else {
- _0_4 = _null;
- _0_6 = _0_4;
- _0_8_isSet = true;
- }
- if (_0_8_isSet) {
- _0_8 = denominatorUnits == null;
- t1 = _0_8;
- _0_10_isSet = !t1;
- if (_0_10_isSet) {
- _0_10 = (denominatorUnits == null ? type$.List_String._as(denominatorUnits) : denominatorUnits).length <= 0;
- t1 = _0_10;
- } else {
- _0_10 = _null;
- t1 = true;
- }
- _0_7 = denominatorUnits;
- } else {
- _0_10 = _null;
- _0_7 = _0_10;
- _0_8 = _0_7;
- _0_10_isSet = false;
- t1 = false;
- }
- if (t1)
- return new A.UnitlessSassNumber(value, _null);
- t1 = type$.List_String;
- if (t1._is(numeratorUnits)) {
- if (_0_6_isSet) {
- t2 = _0_4;
- _0_4_isSet = _0_6_isSet;
- } else {
- _0_4 = numeratorUnits.length;
- t2 = _0_4;
- _0_4_isSet = true;
- }
- if (t2 === 1) {
- unit = numeratorUnits[0];
- if (_0_8_isSet) {
- t2 = _0_8;
- _0_7_isSet = _0_8_isSet;
- } else {
- _0_8 = denominatorUnits == null;
- t2 = _0_8;
- _0_7 = denominatorUnits;
- _0_8_isSet = true;
- _0_7_isSet = true;
- }
- if (!t2)
- if (_0_10_isSet)
- t2 = _0_10;
- else {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- t2 = denominatorUnits;
- _0_7 = t2;
- _0_7_isSet = true;
- }
- _0_10 = (t2 == null ? t1._as(t2) : t2).length <= 0;
- t2 = _0_10;
- _0_10_isSet = true;
- }
- else
- t2 = true;
- } else {
- unit = _null;
- _0_7_isSet = _0_8_isSet;
- t2 = false;
- }
- } else {
- unit = _null;
- _0_7_isSet = _0_8_isSet;
- _0_4_isSet = _0_6_isSet;
- t2 = false;
- }
- if (t2)
- return new A.SingleUnitSassNumber(unit, value, _null);
- t2 = numeratorUnits === null;
- if (!t2) {
- numerators = numeratorUnits;
- if (_0_8_isSet)
- t3 = _0_8;
- else {
- if (_0_7_isSet)
- t3 = _0_7;
- else {
- t3 = denominatorUnits;
- _0_7 = t3;
- _0_7_isSet = true;
- }
- _0_8 = t3 == null;
- t3 = _0_8;
- }
- if (!t3)
- if (_0_10_isSet)
- t3 = _0_10;
- else {
- if (_0_7_isSet)
- t3 = _0_7;
- else {
- t3 = denominatorUnits;
- _0_7 = t3;
- _0_7_isSet = true;
- }
- _0_10 = (t3 == null ? t1._as(t3) : t3).length <= 0;
- t3 = _0_10;
- }
- else
- t3 = true;
- } else {
- numerators = _null;
- t3 = false;
- }
- if (t3)
- return new A.ComplexSassNumber(A.List_List$unmodifiable(numerators, type$.String), B.List_empty, value, _null);
- if (!false)
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_4_isSet)
- t2 = _0_4;
- else {
- _0_4 = (t2 ? t1._as(numeratorUnits) : numeratorUnits).length;
- t2 = _0_4;
- }
- _0_6 = t2 <= 0;
- t2 = _0_6;
- }
- else
- t2 = true;
- if (t2) {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- t2 = denominatorUnits;
- _0_7 = t2;
- _0_7_isSet = true;
- }
- t2 = t2 != null;
- if (t2) {
- denominators = _0_7_isSet ? _0_7 : denominatorUnits;
- if (denominators == null)
- denominators = t1._as(denominators);
- } else
- denominators = _null;
- t1 = t2;
- } else {
- denominators = _null;
- t1 = false;
- }
- if (t1)
- return new A.ComplexSassNumber(B.List_empty, A.List_List$unmodifiable(denominators, type$.String), value, _null);
- numerators = A._setArrayType(numeratorUnits.slice(0), A._arrayInstanceType(numeratorUnits));
- unsimplifiedDenominators = A._setArrayType(denominatorUnits.slice(0), A.instanceType(denominatorUnits));
- denominators = A._setArrayType([], type$.JSArray_String);
- for (t1 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t1 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) {
- denominator = unsimplifiedDenominators[_i];
- i = 0;
- while (true) {
- if (!(i < numerators.length)) {
- simplifiedAway = false;
- break;
- }
- c$0: {
- factor = A.conversionFactor(denominator, numerators[i]);
- if (factor == null)
- break c$0;
- valueDouble *= factor;
- B.JSArray_methods.removeAt$1(numerators, i);
- simplifiedAway = true;
- break;
- }
- ++i;
- }
- if (!simplifiedAway)
- denominators.push(denominator);
- }
- $label0$1: {
- _1_2 = numerators.length;
- t1 = _1_2;
- _1_7_isSet = t1 <= 0;
- if (_1_7_isSet) {
- _1_7 = denominators.length <= 0;
- t1 = _1_7;
- } else {
- _1_7 = _null;
- t1 = false;
- }
- if (t1) {
- t1 = new A.UnitlessSassNumber(valueDouble, _null);
- break $label0$1;
- }
- if (_1_2 === 1) {
- unit = numerators[0];
- t1 = _1_7_isSet ? _1_7 : denominators.length <= 0;
- } else {
- unit = _null;
- t1 = false;
- }
- if (t1) {
- t1 = new A.SingleUnitSassNumber(unit, valueDouble, _null);
- break $label0$1;
- }
- t1 = type$.String;
- t1 = new A.ComplexSassNumber(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null);
- break $label0$1;
- }
- return t1;
- },
- SassNumber: function SassNumber() {
- },
- SassNumber__coerceOrConvertValue_compatibilityException: function SassNumber__coerceOrConvertValue_compatibilityException(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.other = t1;
- _.otherName = t2;
- _.otherHasUnits = t3;
- _.name = t4;
- _.newNumerators = t5;
- _.newDenominators = t6;
- },
- SassNumber__coerceOrConvertValue_closure: function SassNumber__coerceOrConvertValue_closure(t0, t1) {
- this._box_0 = t0;
- this.newNumerator = t1;
- },
- SassNumber__coerceOrConvertValue_closure0: function SassNumber__coerceOrConvertValue_closure0(t0) {
- this.compatibilityException = t0;
- },
- SassNumber__coerceOrConvertValue_closure1: function SassNumber__coerceOrConvertValue_closure1(t0, t1) {
- this._box_0 = t0;
- this.newDenominator = t1;
- },
- SassNumber__coerceOrConvertValue_closure2: function SassNumber__coerceOrConvertValue_closure2(t0) {
- this.compatibilityException = t0;
- },
- SassNumber_plus_closure: function SassNumber_plus_closure() {
- },
- SassNumber_minus_closure: function SassNumber_minus_closure() {
- },
- SassNumber_multiplyUnits_closure: function SassNumber_multiplyUnits_closure(t0, t1) {
- this._box_0 = t0;
- this.numerator = t1;
- },
- SassNumber_multiplyUnits_closure0: function SassNumber_multiplyUnits_closure0(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber_multiplyUnits_closure1: function SassNumber_multiplyUnits_closure1(t0, t1) {
- this._box_0 = t0;
- this.numerator = t1;
- },
- SassNumber_multiplyUnits_closure2: function SassNumber_multiplyUnits_closure2(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0) {
- this.units2 = t0;
- },
- SassNumber__canonicalizeUnitList_closure: function SassNumber__canonicalizeUnitList_closure() {
- },
- SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure(t0) {
- this.$this = t0;
- },
- SassNumber_unitSuggestion_closure: function SassNumber_unitSuggestion_closure() {
- },
- SassNumber_unitSuggestion_closure0: function SassNumber_unitSuggestion_closure0() {
- },
- ComplexSassNumber: function ComplexSassNumber(t0, t1, t2, t3) {
- var _ = this;
- _._numeratorUnits = t0;
- _._denominatorUnits = t1;
- _._number$_value = t2;
- _.hashCache = null;
- _.asSlash = t3;
- },
- SingleUnitSassNumber: function SingleUnitSassNumber(t0, t1, t2) {
- var _ = this;
- _._unit = t0;
- _._number$_value = t1;
- _.hashCache = null;
- _.asSlash = t2;
- },
- SingleUnitSassNumber__coerceToUnit_closure: function SingleUnitSassNumber__coerceToUnit_closure(t0, t1) {
- this.$this = t0;
- this.unit = t1;
- },
- SingleUnitSassNumber__coerceValueToUnit_closure: function SingleUnitSassNumber__coerceValueToUnit_closure(t0) {
- this.$this = t0;
- },
- SingleUnitSassNumber_multiplyUnits_closure: function SingleUnitSassNumber_multiplyUnits_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- SingleUnitSassNumber_multiplyUnits_closure0: function SingleUnitSassNumber_multiplyUnits_closure0(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- UnitlessSassNumber: function UnitlessSassNumber(t0, t1) {
- this._number$_value = t0;
- this.hashCache = null;
- this.asSlash = t1;
- },
- SassString$(_text, quotes) {
- return new A.SassString(_text, quotes);
- },
- SassString: function SassString(t0, t1) {
- var _ = this;
- _._string$_text = t0;
- _._hasQuotes = t1;
- _.__SassString__sassLength_FI = $;
- _._hashCache = null;
- },
- AnySelectorVisitor: function AnySelectorVisitor() {
- },
- AnySelectorVisitor_visitComplexSelector_closure: function AnySelectorVisitor_visitComplexSelector_closure(t0) {
- this.$this = t0;
- },
- AnySelectorVisitor_visitCompoundSelector_closure: function AnySelectorVisitor_visitCompoundSelector_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t1 = type$.Uri,
- t2 = type$.Module_AsyncCallable,
- t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode);
- t1 = new A._EvaluateVisitor0(importCache, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.AsyncCallable), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.AsyncEnvironment$(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode), t3, B.Configuration_Map_empty_null);
- t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
- return t1;
- },
- _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._async_evaluate$_importCache = t0;
- _._async_evaluate$_nodeImporter = t1;
- _._async_evaluate$_builtInFunctions = t2;
- _._async_evaluate$_builtInModules = t3;
- _._async_evaluate$_modules = t4;
- _._async_evaluate$_moduleConfigurations = t5;
- _._async_evaluate$_moduleNodes = t6;
- _._async_evaluate$_logger = t7;
- _._async_evaluate$_warningsEmitted = t8;
- _._async_evaluate$_quietDeps = t9;
- _._async_evaluate$_sourceMap = t10;
- _._async_evaluate$_environment = t11;
- _._async_evaluate$_declarationName = _._async_evaluate$__parent = _._async_evaluate$_mediaQuerySources = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRuleIgnoringAtRoot = null;
- _._async_evaluate$_member = "root stylesheet";
- _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = _._async_evaluate$_currentCallable = null;
- _._async_evaluate$_inSupportsDeclaration = _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false;
- _._async_evaluate$_loadedUrls = t12;
- _._async_evaluate$_activeModules = t13;
- _._async_evaluate$_stack = t14;
- _._async_evaluate$_importer = null;
- _._async_evaluate$_inDependency = false;
- _._async_evaluate$__extensionStore = _._async_evaluate$_preModuleComments = _._async_evaluate$_outOfOrderImports = _._async_evaluate$__endOfImports = _._async_evaluate$__root = _._async_evaluate$__stylesheet = null;
- _._async_evaluate$_configuration = t15;
- },
- _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0, t1, t2) {
- this.values = t0;
- this.span = t1;
- this.callableNode = t2;
- },
- _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor_run__closure0: function _EvaluateVisitor_run__closure0(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.node = t2;
- },
- _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1) {
- this._box_1 = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__loadModule__closure1: function _EvaluateVisitor__loadModule__closure1(t0, t1) {
- this.$this = t0;
- this.message = t1;
- },
- _EvaluateVisitor__loadModule__closure2: function _EvaluateVisitor__loadModule__closure2(t0, t1, t2) {
- this._box_0 = t0;
- this.callback = t1;
- this.firstLoad = t2;
- },
- _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.stylesheet = t2;
- _.extensionStore = t3;
- _.configuration = t4;
- _.css = t5;
- _.preModuleComments = t6;
- },
- _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() {
- },
- _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_visitModule0: function _EvaluateVisitor__combineCss_visitModule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.seen = t1;
- _.clone = t2;
- _.css = t3;
- _.imports = t4;
- _.sorted = t5;
- },
- _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() {
- },
- _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.children = t2;
- },
- _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) {
- this.$this = t0;
- this.children = t1;
- },
- _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() {
- },
- _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0) {
- this.fromNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0, t1) {
- this.toNumber = t0;
- this.fromNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- _.fromNumber = t5;
- },
- _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__registerCommentsForModule_closure0: function _EvaluateVisitor__registerCommentsForModule_closure0() {
- },
- _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0, t1) {
- this.$this = t0;
- this.clause = t1;
- },
- _EvaluateVisitor_visitIfRule___closure0: function _EvaluateVisitor_visitIfRule___closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure3: function _EvaluateVisitor__visitDynamicImport__closure3(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport__closure4: function _EvaluateVisitor__visitDynamicImport__closure4() {
- },
- _EvaluateVisitor__visitDynamicImport__closure5: function _EvaluateVisitor__visitDynamicImport__closure5() {
- },
- _EvaluateVisitor__visitDynamicImport__closure6: function _EvaluateVisitor__visitDynamicImport__closure6(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.loadsUserDefinedModules = t2;
- _.environment = t3;
- _.children = t4;
- },
- _EvaluateVisitor__applyMixin_closure1: function _EvaluateVisitor__applyMixin_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure2: function _EvaluateVisitor__applyMixin__closure2(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin_closure2: function _EvaluateVisitor__applyMixin_closure2(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure1: function _EvaluateVisitor__applyMixin__closure1(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin___closure0: function _EvaluateVisitor__applyMixin___closure0(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin____closure0: function _EvaluateVisitor__applyMixin____closure0(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0, t1) {
- this.$this = t0;
- this.queries = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.mergedSources = t3;
- _.node = t4;
- },
- _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4() {
- },
- _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() {
- },
- _EvaluateVisitor__warnForBogusCombinators_closure0: function _EvaluateVisitor__warnForBogusCombinators_closure0() {
- },
- _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() {
- },
- _EvaluateVisitor__visitSupportsCondition_closure0: function _EvaluateVisitor__visitSupportsCondition_closure0(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__slash_recommendation0: function _EvaluateVisitor__slash_recommendation0() {
- },
- _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitUnaryOperationExpression_closure0: function _EvaluateVisitor_visitUnaryOperationExpression_closure0(t0, t1) {
- this.node = t0;
- this.operand = t1;
- },
- _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3() {
- },
- _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__checkCalculationArguments_check0: function _EvaluateVisitor__checkCalculationArguments_check0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__visitCalculationExpression_closure0: function _EvaluateVisitor__visitCalculationExpression_closure0(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.inLegacySassFunction = t3;
- },
- _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.$function = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() {
- },
- _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2(t0, t1, t2) {
- this._box_0 = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1) {
- this._box_0 = t0;
- this.evaluated = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() {
- },
- _EvaluateVisitor__evaluateArguments_closure3: function _EvaluateVisitor__evaluateArguments_closure3() {
- },
- _EvaluateVisitor__evaluateArguments_closure4: function _EvaluateVisitor__evaluateArguments_closure4(t0, t1) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- },
- _EvaluateVisitor__evaluateArguments_closure5: function _EvaluateVisitor__evaluateArguments_closure5(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.namedNodes = t3;
- },
- _EvaluateVisitor__evaluateArguments_closure6: function _EvaluateVisitor__evaluateArguments_closure6() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3(t0) {
- this.restArgs = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4(t0, t1, t2) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- this.restArgs = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.restArgs = t3;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6(t0, t1, t2) {
- this.$this = t0;
- this.keywordRestNodeForSpan = t1;
- this.keywordRestArgs = t2;
- },
- _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.values = t1;
- _.convert = t2;
- _.expressionNode = t3;
- _.map = t4;
- _.nodeWithSpan = t5;
- },
- _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.node = t2;
- _.mergedSources = t3;
- },
- _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() {
- },
- _EvaluateVisitor__performInterpolationHelper_closure0: function _EvaluateVisitor__performInterpolationHelper_closure0(t0) {
- this.interpolation = t0;
- },
- _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__expressionNode_closure0: function _EvaluateVisitor__expressionNode_closure0(t0, t1) {
- this.$this = t0;
- this.expression = t1;
- },
- _EvaluateVisitor__withoutSlash_recommendation0: function _EvaluateVisitor__withoutSlash_recommendation0() {
- },
- _EvaluateVisitor__stackFrame_closure0: function _EvaluateVisitor__stackFrame_closure0(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) {
- this._async_evaluate$_visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() {
- },
- _EvaluationContext0: function _EvaluationContext0(t0, t1) {
- this._async_evaluate$_visitor = t0;
- this._async_evaluate$_defaultWarnNodeWithSpan = t1;
- },
- cloneCssStylesheet(stylesheet, extensionStore) {
- var _0_0 = extensionStore.clone$0();
- return new A._Record_2(new A._CloneCssVisitor(_0_0._1)._visitChildren$2(A.ModifiableCssStylesheet$(stylesheet.get$span(stylesheet)), stylesheet), _0_0._0);
- },
- _CloneCssVisitor: function _CloneCssVisitor(t0) {
- this._oldToNewSelectors = t0;
- },
- _EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t1 = type$.Uri,
- t2 = type$.Module_Callable,
- t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode);
- t1 = new A._EvaluateVisitor(importCache, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Callable), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.Environment$(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode), t3, B.Configuration_Map_empty_null);
- t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
- return t1;
- },
- Evaluator: function Evaluator(t0, t1) {
- this._visitor = t0;
- this._importer = t1;
- },
- _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._evaluate$_importCache = t0;
- _._evaluate$_nodeImporter = t1;
- _._builtInFunctions = t2;
- _._builtInModules = t3;
- _._modules = t4;
- _._moduleConfigurations = t5;
- _._moduleNodes = t6;
- _._evaluate$_logger = t7;
- _._warningsEmitted = t8;
- _._quietDeps = t9;
- _._sourceMap = t10;
- _._environment = t11;
- _._declarationName = _.__parent = _._mediaQuerySources = _._mediaQueries = _._styleRuleIgnoringAtRoot = null;
- _._member = "root stylesheet";
- _._importSpan = _._callableNode = _._currentCallable = null;
- _._inSupportsDeclaration = _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false;
- _._loadedUrls = t12;
- _._activeModules = t13;
- _._stack = t14;
- _._importer = null;
- _._inDependency = false;
- _.__extensionStore = _._preModuleComments = _._outOfOrderImports = _.__endOfImports = _.__root = _.__stylesheet = null;
- _._configuration = t15;
- },
- _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1, t2) {
- this.values = t0;
- this.span = t1;
- this.callableNode = t2;
- },
- _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor_run__closure: function _EvaluateVisitor_run__closure(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.node = t2;
- },
- _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.expression = t2;
- },
- _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) {
- this.$this = t0;
- this.expression = t1;
- },
- _EvaluateVisitor_runExpression___closure: function _EvaluateVisitor_runExpression___closure(t0, t1) {
- this.$this = t0;
- this.expression = t1;
- },
- _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.statement = t2;
- },
- _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_runStatement___closure: function _EvaluateVisitor_runStatement___closure(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1) {
- this._box_1 = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__loadModule__closure: function _EvaluateVisitor__loadModule__closure(t0, t1) {
- this.$this = t0;
- this.message = t1;
- },
- _EvaluateVisitor__loadModule__closure0: function _EvaluateVisitor__loadModule__closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.callback = t1;
- this.firstLoad = t2;
- },
- _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.stylesheet = t2;
- _.extensionStore = t3;
- _.configuration = t4;
- _.css = t5;
- _.preModuleComments = t6;
- },
- _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() {
- },
- _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_visitModule: function _EvaluateVisitor__combineCss_visitModule(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.seen = t1;
- _.clone = t2;
- _.css = t3;
- _.imports = t4;
- _.sorted = t5;
- },
- _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() {
- },
- _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.children = t2;
- },
- _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) {
- this.$this = t0;
- this.children = t1;
- },
- _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1() {
- },
- _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0) {
- this.fromNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0, t1) {
- this.toNumber = t0;
- this.fromNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- _.fromNumber = t5;
- },
- _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__registerCommentsForModule_closure: function _EvaluateVisitor__registerCommentsForModule_closure() {
- },
- _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0, t1) {
- this.$this = t0;
- this.clause = t1;
- },
- _EvaluateVisitor_visitIfRule___closure: function _EvaluateVisitor_visitIfRule___closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0() {
- },
- _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1() {
- },
- _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.loadsUserDefinedModules = t2;
- _.environment = t3;
- _.children = t4;
- },
- _EvaluateVisitor__applyMixin_closure: function _EvaluateVisitor__applyMixin_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure0: function _EvaluateVisitor__applyMixin__closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin_closure0: function _EvaluateVisitor__applyMixin_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure: function _EvaluateVisitor__applyMixin__closure(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin___closure: function _EvaluateVisitor__applyMixin___closure(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin____closure: function _EvaluateVisitor__applyMixin____closure(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1) {
- this.$this = t0;
- this.queries = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.mergedSources = t3;
- _.node = t4;
- },
- _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0() {
- },
- _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1() {
- },
- _EvaluateVisitor__warnForBogusCombinators_closure: function _EvaluateVisitor__warnForBogusCombinators_closure() {
- },
- _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() {
- },
- _EvaluateVisitor__visitSupportsCondition_closure: function _EvaluateVisitor__visitSupportsCondition_closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__slash_recommendation: function _EvaluateVisitor__slash_recommendation() {
- },
- _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitUnaryOperationExpression_closure: function _EvaluateVisitor_visitUnaryOperationExpression_closure(t0, t1) {
- this.node = t0;
- this.operand = t1;
- },
- _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0() {
- },
- _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__checkCalculationArguments_check: function _EvaluateVisitor__checkCalculationArguments_check(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__visitCalculationExpression_closure: function _EvaluateVisitor__visitCalculationExpression_closure(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.inLegacySassFunction = t3;
- },
- _EvaluateVisitor_visitInterpolatedFunctionExpression_closure: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.$function = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() {
- },
- _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0(t0, t1) {
- this._box_0 = t0;
- this.evaluated = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1() {
- },
- _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure() {
- },
- _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0, t1) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- },
- _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.namedNodes = t3;
- },
- _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure(t0) {
- this.restArgs = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0(t0, t1, t2) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- this.restArgs = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.restArgs = t3;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2(t0, t1, t2) {
- this.$this = t0;
- this.keywordRestNodeForSpan = t1;
- this.keywordRestArgs = t2;
- },
- _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.values = t1;
- _.convert = t2;
- _.expressionNode = t3;
- _.map = t4;
- _.nodeWithSpan = t5;
- },
- _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.node = t2;
- _.mergedSources = t3;
- },
- _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() {
- },
- _EvaluateVisitor__performInterpolationHelper_closure: function _EvaluateVisitor__performInterpolationHelper_closure(t0) {
- this.interpolation = t0;
- },
- _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__expressionNode_closure: function _EvaluateVisitor__expressionNode_closure(t0, t1) {
- this.$this = t0;
- this.expression = t1;
- },
- _EvaluateVisitor__withoutSlash_recommendation: function _EvaluateVisitor__withoutSlash_recommendation() {
- },
- _EvaluateVisitor__stackFrame_closure: function _EvaluateVisitor__stackFrame_closure(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor: function _ImportedCssVisitor(t0) {
- this._visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() {
- },
- _EvaluationContext: function _EvaluationContext(t0, t1) {
- this._visitor = t0;
- this._defaultWarnNodeWithSpan = t1;
- },
- EveryCssVisitor: function EveryCssVisitor() {
- },
- EveryCssVisitor_visitCssAtRule_closure: function EveryCssVisitor_visitCssAtRule_closure(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssKeyframeBlock_closure: function EveryCssVisitor_visitCssKeyframeBlock_closure(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssMediaRule_closure: function EveryCssVisitor_visitCssMediaRule_closure(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssStyleRule_closure: function EveryCssVisitor_visitCssStyleRule_closure(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssStylesheet_closure: function EveryCssVisitor_visitCssStylesheet_closure(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssSupportsRule_closure: function EveryCssVisitor_visitCssSupportsRule_closure(t0) {
- this.$this = t0;
- },
- expressionToCalc(expression) {
- var t4,
- t1 = A._setArrayType([B.C__MakeExpressionCalculationSafe.visitBinaryOperationExpression$1(expression)], type$.JSArray_Expression),
- t2 = expression.get$span(0),
- t3 = type$.Expression;
- t1 = A.List_List$unmodifiable(t1, t3);
- t3 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3);
- t4 = expression.get$span(0);
- return new A.FunctionExpression(null, A.stringReplaceAllUnchecked("calc", "_", "-"), "calc", new A.ArgumentInvocation(t1, t3, null, null, t2), t4);
- },
- _MakeExpressionCalculationSafe: function _MakeExpressionCalculationSafe() {
- },
- __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor: function __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor() {
- },
- _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1, t2, t3, t4) {
- var _ = this;
- _._find_dependencies$_uses = t0;
- _._find_dependencies$_forwards = t1;
- _._metaLoadCss = t2;
- _._imports = t3;
- _._metaNamespaces = t4;
- },
- DependencyReport: function DependencyReport(t0, t1, t2, t3) {
- var _ = this;
- _.uses = t0;
- _.forwards = t1;
- _.metaLoadCss = t2;
- _.imports = t3;
- },
- __FindDependenciesVisitor_Object_RecursiveStatementVisitor: function __FindDependenciesVisitor_Object_RecursiveStatementVisitor() {
- },
- RecursiveStatementVisitor: function RecursiveStatementVisitor() {
- },
- ReplaceExpressionVisitor: function ReplaceExpressionVisitor() {
- },
- ReplaceExpressionVisitor_visitListExpression_closure: function ReplaceExpressionVisitor_visitListExpression_closure(t0) {
- this.$this = t0;
- },
- ReplaceExpressionVisitor_visitArgumentInvocation_closure: function ReplaceExpressionVisitor_visitArgumentInvocation_closure(t0) {
- this.$this = t0;
- },
- ReplaceExpressionVisitor_visitInterpolation_closure: function ReplaceExpressionVisitor_visitInterpolation_closure(t0) {
- this.$this = t0;
- },
- SelectorSearchVisitor: function SelectorSearchVisitor() {
- },
- SelectorSearchVisitor_visitComplexSelector_closure: function SelectorSearchVisitor_visitComplexSelector_closure(t0) {
- this.$this = t0;
- },
- SelectorSearchVisitor_visitCompoundSelector_closure: function SelectorSearchVisitor_visitCompoundSelector_closure(t0) {
- this.$this = t0;
- },
- serialize(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
- var t1, css, t2, prefix,
- visitor = A._SerializeVisitor$(2, inspect, lineFeed, true, sourceMap, style, true);
- node.accept$1(visitor);
- t1 = visitor._serialize$_buffer;
- css = t1.toString$0(0);
- if (charset) {
- t2 = new A.CodeUnits(css);
- t2 = t2.any$1(t2, new A.serialize_closure());
- } else
- t2 = false;
- if (t2)
- prefix = style === B.OutputStyle_1 ? "\ufeff" : '@charset "UTF-8";\n';
- else
- prefix = "";
- t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
- return new A._Record_2_sourceMap(prefix + css, t1);
- },
- serializeValue(value, inspect, quote) {
- var visitor = A._SerializeVisitor$(null, inspect, null, quote, false, null, true);
- value.accept$1(visitor);
- return visitor._serialize$_buffer.toString$0(0);
- },
- serializeSelector(selector, inspect) {
- var visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
- selector.accept$1(visitor);
- return visitor._serialize$_buffer.toString$0(0);
- },
- _SerializeVisitor$(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
- var t1 = sourceMap ? new A.SourceMapBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer(new A.StringBuffer("")),
- t2 = style == null ? B.OutputStyle_0 : style,
- t3 = indentWidth == null ? 2 : indentWidth;
- A.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
- return new A._SerializeVisitor(t1, t2, inspect, quote, 32, t3, B.LineFeed_lf);
- },
- serialize_closure: function serialize_closure() {
- },
- _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._serialize$_buffer = t0;
- _._indentation = 0;
- _._style = t1;
- _._inspect = t2;
- _._quote = t3;
- _._indentCharacter = t4;
- _._indentWidth = t5;
- _._serialize$_lineFeed = t6;
- },
- _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
- },
- _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
- this.$this = t0;
- },
- _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0) {
- this.$this = t0;
- },
- _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
- },
- _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1) {
- this.$this = t0;
- this.child = t1;
- },
- _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1) {
- this.$this = t0;
- this.child = t1;
- },
- OutputStyle: function OutputStyle(t0) {
- this._name = t0;
- },
- LineFeed: function LineFeed(t0) {
- this._name = t0;
- },
- StatementSearchVisitor: function StatementSearchVisitor() {
- },
- StatementSearchVisitor_visitIfRule_closure: function StatementSearchVisitor_visitIfRule_closure(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitIfRule__closure0: function StatementSearchVisitor_visitIfRule__closure0(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitIfRule_closure0: function StatementSearchVisitor_visitIfRule_closure0(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitIfRule__closure: function StatementSearchVisitor_visitIfRule__closure(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitChildren_closure: function StatementSearchVisitor_visitChildren_closure(t0) {
- this.$this = t0;
- },
- Entry: function Entry(t0, t1, t2) {
- this.source = t0;
- this.target = t1;
- this.identifierName = t2;
- },
- SingleMapping_SingleMapping$fromEntries(entries) {
- var lines, t1, t2, urls, names, files, targetEntries, t3, lineNum, _i, sourceEntry, t4, t5, sourceUrl, t6, urlId,
- sourceEntries = J.toList$0$ax(entries);
- B.JSArray_methods.sort$0(sourceEntries);
- lines = A._setArrayType([], type$.JSArray_TargetLineEntry);
- t1 = type$.String;
- t2 = type$.int;
- urls = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- names = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- files = A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.SourceFile);
- targetEntries = A._Cell$();
- for (t2 = sourceEntries.length, t3 = type$.JSArray_TargetEntry, lineNum = null, _i = 0; _i < sourceEntries.length; sourceEntries.length === t2 || (0, A.throwConcurrentModificationError)(sourceEntries), ++_i) {
- sourceEntry = sourceEntries[_i];
- if (lineNum == null || sourceEntry.target.line > lineNum) {
- lineNum = sourceEntry.target.line;
- t4 = A._setArrayType([], t3);
- targetEntries.__late_helper$_value = t4;
- lines.push(new A.TargetLineEntry(lineNum, t4));
- }
- t4 = sourceEntry.source;
- t5 = t4.file;
- sourceUrl = t5.url;
- t6 = sourceUrl == null ? "" : sourceUrl.toString$0(0);
- urlId = urls.putIfAbsent$2(t6, new A.SingleMapping_SingleMapping$fromEntries_closure(urls));
- files.putIfAbsent$2(urlId, new A.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry));
- t6 = targetEntries.__late_helper$_value;
- if (t6 === targetEntries)
- A.throwExpression(A.LateError$localNI(""));
- t4 = t4.offset;
- J.add$1$ax(t6, new A.TargetEntry(sourceEntry.target.column, urlId, t5.getLine$1(t4), t5.getColumn$1(t4), null));
- }
- t2 = urls.get$values(0);
- t2 = A.MappedIterable_MappedIterable(t2, new A.SingleMapping_SingleMapping$fromEntries_closure1(files), A._instanceType(t2)._eval$1("Iterable.E"), type$.nullable_SourceFile);
- t2 = A.List_List$of(t2, true, A._instanceType(t2)._eval$1("Iterable.E"));
- t3 = urls.$ti._eval$1("LinkedHashMapKeyIterable<1>");
- t4 = names.$ti._eval$1("LinkedHashMapKeyIterable<1>");
- return new A.SingleMapping(A.List_List$of(new A.LinkedHashMapKeyIterable(urls, t3), true, t3._eval$1("Iterable.E")), A.List_List$of(new A.LinkedHashMapKeyIterable(names, t4), true, t4._eval$1("Iterable.E")), t2, lines, null, A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.dynamic));
- },
- Mapping: function Mapping() {
- },
- SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.urls = t0;
- _.names = t1;
- _.files = t2;
- _.lines = t3;
- _.targetUrl = t4;
- _.sourceRoot = null;
- _.extensions = t5;
- },
- SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) {
- this.urls = t0;
- },
- SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) {
- this.sourceEntry = t0;
- },
- SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) {
- this.files = t0;
- },
- SingleMapping_toJson_closure: function SingleMapping_toJson_closure() {
- },
- SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) {
- this.result = t0;
- },
- TargetLineEntry: function TargetLineEntry(t0, t1) {
- this.line = t0;
- this.entries = t1;
- },
- TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) {
- var _ = this;
- _.column = t0;
- _.sourceUrlId = t1;
- _.sourceLine = t2;
- _.sourceColumn = t3;
- _.sourceNameId = t4;
- },
- SourceFile$fromString(text, url) {
- var t1 = new A.CodeUnits(text),
- t2 = A._setArrayType([0], type$.JSArray_int),
- t3 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url);
- t2 = new A.SourceFile(t3, t2, new Uint32Array(A._ensureNativeList(t1.toList$0(t1))));
- t2.SourceFile$decoded$2$url(t1, url);
- return t2;
- },
- SourceFile$decoded(decodedChars, url) {
- var t1 = A._setArrayType([0], type$.JSArray_int),
- t2 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url);
- t1 = new A.SourceFile(t2, t1, new Uint32Array(A._ensureNativeList(J.toList$0$ax(decodedChars))));
- t1.SourceFile$decoded$2$url(decodedChars, url);
- return t1;
- },
- FileLocation$_(file, offset) {
- if (offset < 0)
- A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (offset > file._decodedChars.length)
- A.throwExpression(A.RangeError$("Offset " + offset + string$.x20must_n + file.get$length(0) + "."));
- return new A.FileLocation(file, offset);
- },
- _FileSpan$(file, _start, _end) {
- if (_end < _start)
- A.throwExpression(A.ArgumentError$("End " + _end + " must come after start " + _start + ".", null));
- else if (_end > file._decodedChars.length)
- A.throwExpression(A.RangeError$("End " + _end + string$.x20must_n + file.get$length(0) + "."));
- else if (_start < 0)
- A.throwExpression(A.RangeError$("Start may not be negative, was " + _start + "."));
- return new A._FileSpan(file, _start, _end);
- },
- FileSpanExtension_subspan(_this, start, end) {
- var t1, startOffset, t2;
- A.RangeError_checkValidRange(start, end, _this.get$length(_this));
- if (start === 0)
- t1 = end == null || end === _this.get$length(_this);
- else
- t1 = false;
- if (t1)
- return _this;
- startOffset = _this.get$start(_this).offset;
- t1 = _this.get$file(_this);
- t2 = end == null ? _this.get$end(_this).offset : startOffset + end;
- return t1.span$2(0, startOffset + start, t2);
- },
- SourceFile: function SourceFile(t0, t1, t2) {
- var _ = this;
- _.url = t0;
- _._lineStarts = t1;
- _._decodedChars = t2;
- _._cachedLine = null;
- },
- FileLocation: function FileLocation(t0, t1) {
- this.file = t0;
- this.offset = t1;
- },
- _FileSpan: function _FileSpan(t0, t1, t2) {
- this.file = t0;
- this._file$_start = t1;
- this._end = t2;
- },
- Highlighter$(span, color) {
- var t1 = A.Highlighter__collateLines(A._setArrayType([A._Highlight$(span, null, true)], type$.JSArray__Highlight)),
- t2 = new A.Highlighter_closure(color).call$0(),
- t3 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1),
- t4 = A.Highlighter__contiguous(t1) ? 0 : 3,
- t5 = A._arrayInstanceType(t1);
- return new A.Highlighter(t1, t2, null, 1 + Math.max(t3.length, t4), new A.MappedListIterable(t1, new A.Highlighter$__closure(), t5._eval$1("MappedListIterable<1,int>")).reduce$1(0, B.CONSTANT), !A.isAllTheSame(new A.MappedListIterable(t1, new A.Highlighter$__closure0(), t5._eval$1("MappedListIterable<1,Object?>"))), new A.StringBuffer(""));
- },
- Highlighter$multiple(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) {
- var t2, t3, t4, t5, t6,
- t1 = A._setArrayType([A._Highlight$(primarySpan, primaryLabel, true)], type$.JSArray__Highlight);
- for (t2 = secondarySpans.get$entries(secondarySpans), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(A._Highlight$(t3.key, t3.value, false));
- }
- t1 = A.Highlighter__collateLines(t1);
- if (color)
- t2 = primaryColor == null ? "\x1b[31m" : primaryColor;
- else
- t2 = null;
- if (color)
- t3 = "\x1b[34m";
- else
- t3 = null;
- t4 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1);
- t5 = A.Highlighter__contiguous(t1) ? 0 : 3;
- t6 = A._arrayInstanceType(t1);
- return new A.Highlighter(t1, t2, t3, 1 + Math.max(t4.length, t5), new A.MappedListIterable(t1, new A.Highlighter$__closure(), t6._eval$1("MappedListIterable<1,int>")).reduce$1(0, B.CONSTANT), !A.isAllTheSame(new A.MappedListIterable(t1, new A.Highlighter$__closure0(), t6._eval$1("MappedListIterable<1,Object?>"))), new A.StringBuffer(""));
- },
- Highlighter__contiguous(lines) {
- var i, thisLine, nextLine;
- for (i = 0; i < lines.length - 1;) {
- thisLine = lines[i];
- ++i;
- nextLine = lines[i];
- if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url))
- return false;
- }
- return true;
- },
- Highlighter__collateLines(highlights) {
- var t1, t2, t3,
- highlightsByUrl = A.groupBy(highlights, new A.Highlighter__collateLines_closure(), type$._Highlight, type$.Object);
- for (t1 = highlightsByUrl.get$values(0), t2 = A._instanceType(t1), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1]), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f, t2._eval$1("MappedIterator<1,2>")), t2 = t2._rest[1]; t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- J.sort$1$ax(t3, new A.Highlighter__collateLines_closure0());
- }
- t1 = highlightsByUrl.get$entries(0);
- t2 = A._instanceType(t1)._eval$1("ExpandIterable<Iterable.E,_Line>");
- return A.List_List$of(new A.ExpandIterable(t1, new A.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E"));
- },
- _Highlight$(span, label, primary) {
- var t2,
- t1 = new A._Highlight_closure(span).call$0();
- if (label == null)
- t2 = null;
- else
- t2 = A.stringReplaceAllUnchecked(label, "\r\n", "\n");
- return new A._Highlight(t1, primary, t2);
- },
- _Highlight__normalizeNewlines(span) {
- var endOffset, t1, i, t2, t3, t4,
- text = span.get$text();
- if (!B.JSString_methods.contains$1(text, "\r\n"))
- return span;
- endOffset = span.get$end(span).get$offset();
- for (t1 = text.length - 1, i = 0; i < t1; ++i)
- if (text.charCodeAt(i) === 13 && text.charCodeAt(i + 1) === 10)
- --endOffset;
- t1 = span.get$start(span);
- t2 = span.get$sourceUrl(span);
- t3 = span.get$end(span).get$line();
- t2 = A.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2);
- t3 = A.stringReplaceAllUnchecked(text, "\r\n", "\n");
- t4 = span.get$context(span);
- return A.SourceSpanWithContext$(t1, t2, t3, A.stringReplaceAllUnchecked(t4, "\r\n", "\n"));
- },
- _Highlight__normalizeTrailingNewline(span) {
- var context, text, start, end, t1, t2, t3;
- if (!B.JSString_methods.endsWith$1(span.get$context(span), "\n"))
- return span;
- if (B.JSString_methods.endsWith$1(span.get$text(), "\n\n"))
- return span;
- context = B.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1);
- text = span.get$text();
- start = span.get$start(span);
- end = span.get$end(span);
- if (B.JSString_methods.endsWith$1(span.get$text(), "\n")) {
- t1 = A.findLineStart(span.get$context(span), span.get$text(), span.get$start(span).get$column());
- t1.toString;
- t1 = t1 + span.get$start(span).get$column() + span.get$length(span) === span.get$context(span).length;
- } else
- t1 = false;
- if (t1) {
- text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
- if (text.length === 0)
- end = start;
- else {
- t1 = span.get$end(span).get$offset();
- t2 = span.get$sourceUrl(span);
- t3 = span.get$end(span).get$line();
- end = A.SourceLocation$(t1 - 1, A._Highlight__lastLineLength(context), t3 - 1, t2);
- start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span);
- }
- }
- return A.SourceSpanWithContext$(start, end, text, context);
- },
- _Highlight__normalizeEndOfLine(span) {
- var text, t1, t2, t3, t4;
- if (span.get$end(span).get$column() !== 0)
- return span;
- if (span.get$end(span).get$line() === span.get$start(span).get$line())
- return span;
- text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
- t1 = span.get$start(span);
- t2 = span.get$end(span).get$offset();
- t3 = span.get$sourceUrl(span);
- t4 = span.get$end(span).get$line();
- t3 = A.SourceLocation$(t2 - 1, text.length - B.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3);
- return A.SourceSpanWithContext$(t1, t3, text, B.JSString_methods.endsWith$1(span.get$context(span), "\n") ? B.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1) : span.get$context(span));
- },
- _Highlight__lastLineLength(text) {
- var t1 = text.length;
- if (t1 === 0)
- return 0;
- else if (text.charCodeAt(t1 - 1) === 10)
- return t1 === 1 ? 0 : t1 - B.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1;
- else
- return t1 - B.JSString_methods.lastIndexOf$1(text, "\n") - 1;
- },
- Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._lines = t0;
- _._primaryColor = t1;
- _._secondaryColor = t2;
- _._paddingBeforeSidebar = t3;
- _._maxMultilineSpans = t4;
- _._multipleFiles = t5;
- _._highlighter$_buffer = t6;
- },
- Highlighter_closure: function Highlighter_closure(t0) {
- this.color = t0;
- },
- Highlighter$__closure: function Highlighter$__closure() {
- },
- Highlighter$___closure: function Highlighter$___closure() {
- },
- Highlighter$__closure0: function Highlighter$__closure0() {
- },
- Highlighter__collateLines_closure: function Highlighter__collateLines_closure() {
- },
- Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() {
- },
- Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() {
- },
- Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) {
- this.line = t0;
- },
- Highlighter_highlight_closure: function Highlighter_highlight_closure() {
- },
- Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) {
- this.$this = t0;
- },
- Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) {
- this.$this = t0;
- this.startLine = t1;
- this.line = t2;
- },
- Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) {
- this.$this = t0;
- this.highlight = t1;
- },
- Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) {
- this.$this = t0;
- },
- Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.current = t2;
- _.startLine = t3;
- _.line = t4;
- _.highlight = t5;
- _.endLine = t6;
- },
- Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) {
- this.$this = t0;
- this.vertical = t1;
- },
- Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.text = t1;
- _.startColumn = t2;
- _.endColumn = t3;
- },
- Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) {
- this.$this = t0;
- this.line = t1;
- this.highlight = t2;
- },
- Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) {
- this.$this = t0;
- this.line = t1;
- this.highlight = t2;
- },
- Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.coversWholeLine = t1;
- _.line = t2;
- _.highlight = t3;
- },
- Highlighter__writeLabel_closure: function Highlighter__writeLabel_closure(t0, t1) {
- this.$this = t0;
- this.lines = t1;
- },
- Highlighter__writeLabel_closure0: function Highlighter__writeLabel_closure0(t0, t1) {
- this.$this = t0;
- this.text = t1;
- },
- Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.end = t2;
- },
- _Highlight: function _Highlight(t0, t1, t2) {
- this.span = t0;
- this.isPrimary = t1;
- this.label = t2;
- },
- _Highlight_closure: function _Highlight_closure(t0) {
- this.span = t0;
- },
- _Line: function _Line(t0, t1, t2, t3) {
- var _ = this;
- _.text = t0;
- _.number = t1;
- _.url = t2;
- _.highlights = t3;
- },
- SourceLocation$(offset, column, line, sourceUrl) {
- var t1 = line == null,
- t2 = t1 ? 0 : line,
- t3 = column == null,
- t4 = t3 ? offset : column;
- if (offset < 0)
- A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (!t1 && line < 0)
- A.throwExpression(A.RangeError$("Line may not be negative, was " + A.S(line) + "."));
- else if (!t3 && column < 0)
- A.throwExpression(A.RangeError$("Column may not be negative, was " + A.S(column) + "."));
- return new A.SourceLocation(sourceUrl, offset, t2, t4);
- },
- SourceLocation: function SourceLocation(t0, t1, t2, t3) {
- var _ = this;
- _.sourceUrl = t0;
- _.offset = t1;
- _.line = t2;
- _.column = t3;
- },
- SourceLocationMixin: function SourceLocationMixin() {
- },
- SourceSpanExtension_messageMultiple(_this, message, label, secondarySpans, color, primaryColor, secondaryColor) {
- var t2, t3,
- t1 = _this.get$start(_this);
- t1 = t1.file.getLine$1(t1.offset);
- t2 = _this.get$start(_this);
- t2 = "" + ("line " + (t1 + 1) + ", column " + (t2.file.getColumn$1(t2.offset) + 1));
- if (_this.get$sourceUrl(_this) != null) {
- t1 = _this.get$sourceUrl(_this);
- t3 = $.$get$context();
- t1.toString;
- t1 = t2 + (" of " + t3.prettyUri$1(t1));
- } else
- t1 = t2;
- t1 = t1 + (": " + message + "\n") + A.Highlighter$multiple(_this, label, secondarySpans, color, primaryColor, secondaryColor).highlight$0();
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- SourceSpanBase: function SourceSpanBase() {
- },
- SourceSpanException: function SourceSpanException() {
- },
- SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
- this.source = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- MultiSourceSpanException: function MultiSourceSpanException() {
- },
- MultiSourceSpanFormatException: function MultiSourceSpanFormatException(t0, t1, t2, t3, t4) {
- var _ = this;
- _.source = t0;
- _.primaryLabel = t1;
- _.secondarySpans = t2;
- _._span_exception$_message = t3;
- _._span = t4;
- },
- SourceSpanMixin: function SourceSpanMixin() {
- },
- SourceSpanWithContext$(start, end, text, _context) {
- var t1 = new A.SourceSpanWithContext(_context, start, end, text);
- t1.SourceSpanBase$3(start, end, text);
- if (!B.JSString_methods.contains$1(_context, text))
- A.throwExpression(A.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".', null));
- if (A.findLineStart(_context, text, start.get$column()) == null)
- A.throwExpression(A.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".', null));
- return t1;
- },
- SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) {
- var _ = this;
- _._context = t0;
- _.start = t1;
- _.end = t2;
- _.text = t3;
- },
- Chain_Chain$parse(chain) {
- var t1, t2,
- _s51_ = string$.x3d_____;
- if (chain.length === 0)
- return new A.Chain(A.List_List$unmodifiable(A._setArrayType([], type$.JSArray_Trace), type$.Trace));
- t1 = $.$get$vmChainGap();
- if (B.JSString_methods.contains$1(chain, t1)) {
- t1 = B.JSString_methods.split$1(chain, t1);
- t2 = A._arrayInstanceType(t1);
- return new A.Chain(A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(t1, new A.Chain_Chain$parse_closure(), t2._eval$1("WhereIterable<1>")), A.trace_Trace___parseVM_tearOff$closure(), t2._eval$1("MappedIterable<1,Trace>")), type$.Trace));
- }
- if (!B.JSString_methods.contains$1(chain, _s51_))
- return new A.Chain(A.List_List$unmodifiable(A._setArrayType([A.Trace_Trace$parse(chain)], type$.JSArray_Trace), type$.Trace));
- return new A.Chain(A.List_List$unmodifiable(new A.MappedListIterable(A._setArrayType(chain.split(_s51_), type$.JSArray_String), A.trace_Trace___parseFriendly_tearOff$closure(), type$.MappedListIterable_String_Trace), type$.Trace));
- },
- Chain: function Chain(t0) {
- this.traces = t0;
- },
- Chain_Chain$parse_closure: function Chain_Chain$parse_closure() {
- },
- Chain_toTrace_closure: function Chain_toTrace_closure() {
- },
- Chain_toString_closure0: function Chain_toString_closure0() {
- },
- Chain_toString__closure0: function Chain_toString__closure0() {
- },
- Chain_toString_closure: function Chain_toString_closure(t0) {
- this.longest = t0;
- },
- Chain_toString__closure: function Chain_toString__closure(t0) {
- this.longest = t0;
- },
- Frame___parseVM_tearOff(frame) {
- return A.Frame_Frame$parseVM(frame);
- },
- Frame_Frame$parseVM(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame));
- },
- Frame___parseV8_tearOff(frame) {
- return A.Frame_Frame$parseV8(frame);
- },
- Frame_Frame$parseV8(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame));
- },
- Frame_Frame$_parseFirefoxEval(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$_parseFirefoxEval_closure(frame));
- },
- Frame___parseFirefox_tearOff(frame) {
- return A.Frame_Frame$parseFirefox(frame);
- },
- Frame_Frame$parseFirefox(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame));
- },
- Frame___parseFriendly_tearOff(frame) {
- return A.Frame_Frame$parseFriendly(frame);
- },
- Frame_Frame$parseFriendly(frame) {
- return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame));
- },
- Frame__uriOrPathToUri(uriOrPath) {
- if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__uriRegExp()))
- return A.Uri_parse(uriOrPath);
- else if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()))
- return A._Uri__Uri$file(uriOrPath, true);
- else if (B.JSString_methods.startsWith$1(uriOrPath, "/"))
- return A._Uri__Uri$file(uriOrPath, false);
- if (B.JSString_methods.contains$1(uriOrPath, "\\"))
- return $.$get$windows().toUri$1(uriOrPath);
- return A.Uri_parse(uriOrPath);
- },
- Frame__catchFormatException(text, body) {
- var t1, exception;
- try {
- t1 = body.call$0();
- return t1;
- } catch (exception) {
- if (type$.FormatException._is(A.unwrapException(exception)))
- return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), text);
- else
- throw exception;
- }
- },
- Frame: function Frame(t0, t1, t2, t3) {
- var _ = this;
- _.uri = t0;
- _.line = t1;
- _.column = t2;
- _.member = t3;
- },
- Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseV8_closure_parseLocation: function Frame_Frame$parseV8_closure_parseLocation(t0) {
- this.frame = t0;
- },
- Frame_Frame$_parseFirefoxEval_closure: function Frame_Frame$_parseFirefoxEval_closure(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) {
- this.frame = t0;
- },
- Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) {
- this.frame = t0;
- },
- LazyTrace: function LazyTrace(t0) {
- this._thunk = t0;
- this.__LazyTrace__trace_FI = $;
- },
- LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) {
- this.$this = t0;
- },
- Trace_Trace$from(trace) {
- if (type$.Trace._is(trace))
- return trace;
- if (trace instanceof A.Chain)
- return trace.toTrace$0();
- return new A.LazyTrace(new A.Trace_Trace$from_closure(trace));
- },
- Trace_Trace$parse(trace) {
- var error, t1, exception;
- try {
- if (trace.length === 0) {
- t1 = A.Trace$(A._setArrayType([], type$.JSArray_Frame), null);
- return t1;
- }
- if (B.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
- t1 = A.Trace$parseV8(trace);
- return t1;
- }
- if (B.JSString_methods.contains$1(trace, "\tat ")) {
- t1 = A.Trace$parseJSCore(trace);
- return t1;
- }
- if (B.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace()) || B.JSString_methods.contains$1(trace, $.$get$_firefoxEvalTrace())) {
- t1 = A.Trace$parseFirefox(trace);
- return t1;
- }
- if (B.JSString_methods.contains$1(trace, string$.x3d_____)) {
- t1 = A.Chain_Chain$parse(trace).toTrace$0();
- return t1;
- }
- if (B.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
- t1 = A.Trace$parseFriendly(trace);
- return t1;
- }
- t1 = A.Trace$parseVM(trace);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- error = t1;
- throw A.wrapException(A.FormatException$(J.get$message$x(error) + "\nStack trace:\n" + trace, null, null));
- } else
- throw exception;
- }
- },
- Trace___parseVM_tearOff(trace) {
- return A.Trace$parseVM(trace);
- },
- Trace$parseVM(trace) {
- var t1 = A.List_List$unmodifiable(A.Trace__parseVM(trace), type$.Frame);
- return new A.Trace(t1, new A._StringStackTrace(trace));
- },
- Trace__parseVM(trace) {
- var $frames,
- t1 = B.JSString_methods.trim$0(trace),
- t2 = $.$get$vmChainGap(),
- t3 = type$.WhereIterable_String,
- lines = new A.WhereIterable(A._setArrayType(A.stringReplaceAllUnchecked(t1, t2, "").split("\n"), type$.JSArray_String), new A.Trace__parseVM_closure(), t3);
- if (!lines.get$iterator(0).moveNext$0())
- return A._setArrayType([], type$.JSArray_Frame);
- t1 = A.TakeIterable_TakeIterable(lines, lines.get$length(0) - 1, t3._eval$1("Iterable.E"));
- t1 = A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseVM_tearOff$closure(), A._instanceType(t1)._eval$1("Iterable.E"), type$.Frame);
- $frames = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
- if (!J.endsWith$1$s(lines.get$last(0), ".da"))
- B.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(lines.get$last(0)));
- return $frames;
- },
- Trace$parseV8(trace) {
- var t1 = A.SubListIterable$(A._setArrayType(trace.split("\n"), type$.JSArray_String), 1, null, type$.String).super$Iterable$skipWhile(0, new A.Trace$parseV8_closure()),
- t2 = type$.Frame;
- t2 = A.List_List$unmodifiable(A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseV8_tearOff$closure(), t1.$ti._eval$1("Iterable.E"), t2), t2);
- return new A.Trace(t2, new A._StringStackTrace(trace));
- },
- Trace$parseJSCore(trace) {
- var t1 = A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(A._setArrayType(trace.split("\n"), type$.JSArray_String), new A.Trace$parseJSCore_closure(), type$.WhereIterable_String), A.frame_Frame___parseV8_tearOff$closure(), type$.MappedIterable_String_Frame), type$.Frame);
- return new A.Trace(t1, new A._StringStackTrace(trace));
- },
- Trace$parseFirefox(trace) {
- var t1 = A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(A._setArrayType(B.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new A.Trace$parseFirefox_closure(), type$.WhereIterable_String), A.frame_Frame___parseFirefox_tearOff$closure(), type$.MappedIterable_String_Frame), type$.Frame);
- return new A.Trace(t1, new A._StringStackTrace(trace));
- },
- Trace___parseFriendly_tearOff(trace) {
- return A.Trace$parseFriendly(trace);
- },
- Trace$parseFriendly(trace) {
- var t1 = trace.length === 0 ? A._setArrayType([], type$.JSArray_Frame) : new A.MappedIterable(new A.WhereIterable(A._setArrayType(B.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new A.Trace$parseFriendly_closure(), type$.WhereIterable_String), A.frame_Frame___parseFriendly_tearOff$closure(), type$.MappedIterable_String_Frame);
- t1 = A.List_List$unmodifiable(t1, type$.Frame);
- return new A.Trace(t1, new A._StringStackTrace(trace));
- },
- Trace$($frames, original) {
- var t1 = A.List_List$unmodifiable($frames, type$.Frame);
- return new A.Trace(t1, new A._StringStackTrace(original == null ? "" : original));
- },
- Trace: function Trace(t0, t1) {
- this.frames = t0;
- this.original = t1;
- },
- Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
- this.trace = t0;
- },
- Trace__parseVM_closure: function Trace__parseVM_closure() {
- },
- Trace$parseV8_closure: function Trace$parseV8_closure() {
- },
- Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
- },
- Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
- },
- Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
- },
- Trace_terse_closure: function Trace_terse_closure() {
- },
- Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
- this.oldPredicate = t0;
- },
- Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
- this._box_0 = t0;
- },
- Trace_toString_closure0: function Trace_toString_closure0() {
- },
- Trace_toString_closure: function Trace_toString_closure(t0) {
- this.longest = t0;
- },
- UnparsedFrame: function UnparsedFrame(t0, t1) {
- this.uri = t0;
- this.member = t1;
- },
- TransformByHandlers_transformByHandlers(_this, onData, onDone, $S, $T) {
- var _null = null, t1 = {},
- controller = A.StreamController_StreamController(_null, _null, _null, _null, true, $T);
- t1.subscription = null;
- controller.onListen = new A.TransformByHandlers_transformByHandlers_closure(t1, _this, onData, controller, A.instantiate1(A.from_handlers__TransformByHandlers__defaultHandleError$closure(), $T), onDone, $S);
- return controller.get$stream();
- },
- TransformByHandlers__defaultHandleError(error, stackTrace, sink) {
- sink.addError$2(error, stackTrace);
- },
- TransformByHandlers_transformByHandlers_closure: function TransformByHandlers_transformByHandlers_closure(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._box_1 = t0;
- _._this = t1;
- _.handleData = t2;
- _.controller = t3;
- _.handleError = t4;
- _.handleDone = t5;
- _.S = t6;
- },
- TransformByHandlers_transformByHandlers__closure: function TransformByHandlers_transformByHandlers__closure(t0, t1, t2) {
- this.handleData = t0;
- this.controller = t1;
- this.S = t2;
- },
- TransformByHandlers_transformByHandlers__closure1: function TransformByHandlers_transformByHandlers__closure1(t0, t1) {
- this.handleError = t0;
- this.controller = t1;
- },
- TransformByHandlers_transformByHandlers__closure0: function TransformByHandlers_transformByHandlers__closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.handleDone = t1;
- this.controller = t2;
- },
- TransformByHandlers_transformByHandlers__closure2: function TransformByHandlers_transformByHandlers__closure2(t0, t1) {
- this._box_1 = t0;
- this._box_0 = t1;
- },
- RateLimit__debounceAggregate(_this, duration, collect, leading, trailing, $T, $S) {
- var t1 = {};
- t1.soFar = t1.timer = null;
- t1.emittedLatestAsLeading = t1.shouldClose = t1.hasPending = false;
- return A.TransformByHandlers_transformByHandlers(_this, new A.RateLimit__debounceAggregate_closure(t1, $S, collect, false, duration, true, $T), new A.RateLimit__debounceAggregate_closure0(t1, true, $S), $T, $S);
- },
- _collect($event, soFar, $T) {
- var t1 = soFar == null ? A._setArrayType([], $T._eval$1("JSArray<0>")) : soFar;
- J.add$1$ax(t1, $event);
- return t1;
- },
- RateLimit__debounceAggregate_closure: function RateLimit__debounceAggregate_closure(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._box_0 = t0;
- _.S = t1;
- _.collect = t2;
- _.leading = t3;
- _.duration = t4;
- _.trailing = t5;
- _.T = t6;
- },
- RateLimit__debounceAggregate_closure_emit: function RateLimit__debounceAggregate_closure_emit(t0, t1, t2) {
- this._box_0 = t0;
- this.sink = t1;
- this.S = t2;
- },
- RateLimit__debounceAggregate__closure: function RateLimit__debounceAggregate__closure(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.trailing = t1;
- _.emit = t2;
- _.sink = t3;
- },
- RateLimit__debounceAggregate_closure0: function RateLimit__debounceAggregate_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.trailing = t1;
- this.S = t2;
- },
- StringScannerException$(message, span, source) {
- return new A.StringScannerException(source, message, span);
- },
- StringScannerException: function StringScannerException(t0, t1, t2) {
- this.source = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- LineScanner$(string) {
- return new A.LineScanner(null, string);
- },
- LineScanner: function LineScanner(t0, t1) {
- var _ = this;
- _._line_scanner$_column = _._line_scanner$_line = 0;
- _.sourceUrl = t0;
- _.string = t1;
- _._string_scanner$_position = 0;
- _._lastMatchPosition = _._lastMatch = null;
- },
- SpanScanner$(string, sourceUrl) {
- var t2,
- t1 = A.SourceFile$fromString(string, sourceUrl);
- if (sourceUrl == null)
- t2 = null;
- else
- t2 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
- return new A.SpanScanner(t1, t2, string);
- },
- SpanScanner: function SpanScanner(t0, t1, t2) {
- var _ = this;
- _._sourceFile = t0;
- _.sourceUrl = t1;
- _.string = t2;
- _._string_scanner$_position = 0;
- _._lastMatchPosition = _._lastMatch = null;
- },
- _SpanScannerState: function _SpanScannerState(t0, t1) {
- this._scanner = t0;
- this.position = t1;
- },
- StringScanner$(string, position, sourceUrl) {
- var t1;
- if (sourceUrl == null)
- t1 = null;
- else
- t1 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
- return new A.StringScanner(t1, string);
- },
- StringScanner: function StringScanner(t0, t1) {
- var _ = this;
- _.sourceUrl = t0;
- _.string = t1;
- _._string_scanner$_position = 0;
- _._lastMatchPosition = _._lastMatch = null;
- },
- AsciiGlyphSet: function AsciiGlyphSet() {
- },
- UnicodeGlyphSet: function UnicodeGlyphSet() {
- },
- WatchEvent: function WatchEvent(t0, t1) {
- this.type = t0;
- this.path = t1;
- },
- ChangeType: function ChangeType(t0) {
- this._watch_event$_name = t0;
- },
- AnySelectorVisitor0: function AnySelectorVisitor0() {
- },
- AnySelectorVisitor_visitComplexSelector_closure0: function AnySelectorVisitor_visitComplexSelector_closure0(t0) {
- this.$this = t0;
- },
- AnySelectorVisitor_visitCompoundSelector_closure0: function AnySelectorVisitor_visitCompoundSelector_closure0(t0) {
- this.$this = t0;
- },
- SupportsAnything0: function SupportsAnything0(t0, t1) {
- this.contents = t0;
- this.span = t1;
- },
- Argument0: function Argument0(t0, t1, t2) {
- this.name = t0;
- this.defaultValue = t1;
- this.span = t2;
- },
- ArgumentDeclaration_ArgumentDeclaration$parse0(contents, url) {
- return A.ScssParser$0(contents, null, url).parseArgumentDeclaration$0();
- },
- ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) {
- this.$arguments = t0;
- this.restArgument = t1;
- this.span = t2;
- },
- ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() {
- },
- ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() {
- },
- ArgumentInvocation$empty0(span) {
- return new A.ArgumentInvocation0(B.List_empty20, B.Map_empty14, null, null, span);
- },
- ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.positional = t0;
- _.named = t1;
- _.rest = t2;
- _.keywordRest = t3;
- _.span = t4;
- },
- argumentListClass_closure: function argumentListClass_closure() {
- },
- argumentListClass__closure: function argumentListClass__closure() {
- },
- argumentListClass__closure0: function argumentListClass__closure0() {
- },
- SassArgumentList$0(contents, keywords, separator) {
- var t1 = type$.Value_2;
- t1 = new A.SassArgumentList0(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false);
- t1.SassList$3$brackets0(contents, separator, false);
- return t1;
- },
- SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) {
- var _ = this;
- _._argument_list$_keywords = t0;
- _._argument_list$_wereKeywordsAccessed = false;
- _._list1$_contents = t1;
- _._list1$_separator = t2;
- _._list1$_hasBrackets = t3;
- },
- JSArray1: function JSArray1() {
- },
- AsyncImporter0: function AsyncImporter0() {
- },
- JSToDartAsyncImporter: function JSToDartAsyncImporter(t0, t1, t2) {
- this._async0$_canonicalize = t0;
- this._load = t1;
- this._nonCanonicalSchemes = t2;
- },
- JSToDartAsyncImporter_canonicalize_closure: function JSToDartAsyncImporter_canonicalize_closure(t0, t1) {
- this.$this = t0;
- this.url = t1;
- },
- JSToDartAsyncImporter_load_closure: function JSToDartAsyncImporter_load_closure(t0, t1) {
- this.$this = t0;
- this.url = t1;
- },
- AsyncBuiltInCallable$mixin0($name, $arguments, callback, acceptsContent, url) {
- return new A.AsyncBuiltInCallable0($name, A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure0(callback), false);
- },
- AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _._async_built_in0$_arguments = t1;
- _._async_built_in0$_callback = t2;
- _.acceptsContent = t3;
- },
- AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) {
- this.callback = t0;
- },
- compileAsync0(path, charset, fatalDeprecations, functions, futureDeprecations, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, useSpaces, verbose) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
- $async$returnValue, t3, t4, t0, stylesheet, result, t1, t2;
- var $async$compileAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Deprecation_3;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (silenceDeprecations != null)
- t2.addAll$1(0, silenceDeprecations);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (fatalDeprecations != null)
- t3.addAll$1(0, fatalDeprecations);
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (futureDeprecations != null)
- t1.addAll$1(0, futureDeprecations);
- logger = A.DeprecationProcessingLogger$0(logger, t3, t1, !verbose, t2);
- t1 = nodeImporter == null;
- if (t1)
- t2 = syntax == null || syntax === A.Syntax_forPath0(path);
- else
- t2 = false;
- $async$goto = t2 ? 3 : 5;
- break;
- case 3:
- // then
- if (importCache == null)
- importCache = A.AsyncImportCache$none(logger);
- t2 = $.$get$FilesystemImporter_cwd0();
- t3 = A.isNodeJs() ? self.process : null;
- if (!J.$eq$(t3 == null ? null : J.get$platform$x(t3), "win32")) {
- t3 = A.isNodeJs() ? self.process : null;
- t3 = J.$eq$(t3 == null ? null : J.get$platform$x(t3), "darwin");
- } else
- t3 = true;
- if (t3) {
- t3 = $.$get$context();
- t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
- t0 = t4;
- t4 = t3;
- t3 = t0;
- } else {
- t3 = $.$get$context();
- t4 = t3.canonicalize$1(0, path);
- t0 = t4;
- t4 = t3;
- t3 = t0;
- }
- $async$goto = 6;
- return A._asyncAwait(importCache.importCanonical$3$originalUrl(t2, t4.toUri$1(t3), t4.toUri$1(path)), $async$compileAsync0);
- case 6:
- // returning from await.
- t4 = $async$result;
- t4.toString;
- stylesheet = t4;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t2 = A.readFile0(path);
- t3 = syntax == null ? A.Syntax_forPath0(path) : syntax;
- stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, logger, $.$get$context().toUri$1(path));
- case 4:
- // join
- $async$goto = 7;
- return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, $.$get$FilesystemImporter_cwd0(), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileAsync0);
- case 7:
- // returning from await.
- result = $async$result;
- logger.summarize$1$js(!t1);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$compileAsync0, $async$completer);
- },
- compileStringAsync0(source, charset, fatalDeprecations, functions, futureDeprecations, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, url, useSpaces, verbose) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
- $async$returnValue, t3, stylesheet, result, t1, t2;
- var $async$compileStringAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Deprecation_3;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (silenceDeprecations != null)
- t2.addAll$1(0, silenceDeprecations);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (fatalDeprecations != null)
- t3.addAll$1(0, fatalDeprecations);
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (futureDeprecations != null)
- t1.addAll$1(0, futureDeprecations);
- logger = A.DeprecationProcessingLogger$0(logger, t3, t1, !verbose, t2);
- stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, logger, url);
- if (importer == null)
- t1 = A.isBrowser() ? new A.NoOpImporter0() : $.$get$FilesystemImporter_cwd0();
- else
- t1 = importer;
- $async$goto = 3;
- return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, t1, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileStringAsync0);
- case 3:
- // returning from await.
- result = $async$result;
- logger.summarize$1$js(nodeImporter != null);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$compileStringAsync0, $async$completer);
- },
- _compileStylesheet2(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
- $async$returnValue, evaluateResult, serializeResult, resultSourceMap;
- var $async$_compileStylesheet2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait(A._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2);
- case 3:
- // returning from await.
- evaluateResult = $async$result;
- serializeResult = A.serialize0(evaluateResult._1, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces);
- resultSourceMap = serializeResult._1;
- if (resultSourceMap != null && importCache != null)
- A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure2(stylesheet, importCache));
- $async$returnValue = new A.CompileResult0(evaluateResult, serializeResult);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_compileStylesheet2, $async$completer);
- },
- _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- AsyncEnvironment$0() {
- var t1 = type$.String,
- t2 = type$.Module_AsyncCallable_2,
- t3 = type$.AstNode_2,
- t4 = type$.int,
- t5 = type$.AsyncCallable_2,
- t6 = type$.JSArray_Map_String_AsyncCallable_2;
- return new A.AsyncEnvironment0(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_AsyncCallable_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
- },
- AsyncEnvironment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- return new A.AsyncEnvironment0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
- },
- _EnvironmentModule__EnvironmentModule2(environment, css, preModuleComments, extensionStore, forwarded) {
- var t1, t2, t3, t4, t5, t6, module, result, t7;
- if (forwarded == null)
- forwarded = B.Set_empty6;
- t1 = type$.dynamic;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t2 = type$.Module_AsyncCallable_2, t3 = type$.List_CssComment_2, t4 = A.MapExtensions_get_pairs0(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment_2; t4.moveNext$0();) {
- t6 = t4.get$current(t4);
- module = t6._0;
- result = A.List_List$from(t6._1, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1.$indexSet(0, module, result);
- }
- t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
- t2 = A._EnvironmentModule__makeModulesByVariable2(forwarded);
- t3 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure17(), type$.Map_String_Value_2), type$.Value_2);
- t4 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure18(), type$.Map_String_AstNode_2), type$.AstNode_2);
- t5 = type$.Map_String_AsyncCallable_2;
- t6 = type$.AsyncCallable_2;
- t7 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure19(), t5), t6);
- t6 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure20(), t5), t6);
- t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._async_environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure21());
- return A._EnvironmentModule$_2(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._async_environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure22()));
- },
- _EnvironmentModule__makeModulesByVariable2(forwarded) {
- var modulesByVariable, t1, t2, t3, t4, t5;
- if (forwarded.get$isEmpty(forwarded))
- return B.Map_empty16;
- modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable_2);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof A._EnvironmentModule2) {
- for (t3 = t2._async_environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t5 = t4.get$variables();
- A.setAll0(modulesByVariable, t5.get$keys(t5), t4);
- }
- A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables)), t2);
- } else {
- t3 = t2.get$variables();
- A.setAll0(modulesByVariable, t3.get$keys(t3), t2);
- }
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap2(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
- if (otherMaps.get$isEmpty(otherMaps))
- return localMap;
- t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3.get$isNotEmpty(t3))
- t1.push(t3);
- }
- t1.push(localMap);
- if (t1.length === 1)
- return localMap;
- return A.MergedMapView$0(t1, type$.String, $V);
- },
- _EnvironmentModule$_2(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new A._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
- var _ = this;
- _._async_environment0$_modules = t0;
- _._async_environment0$_namespaceNodes = t1;
- _._async_environment0$_globalModules = t2;
- _._async_environment0$_importedModules = t3;
- _._async_environment0$_forwardedModules = t4;
- _._async_environment0$_nestedForwardedModules = t5;
- _._async_environment0$_allModules = t6;
- _._async_environment0$_variables = t7;
- _._async_environment0$_variableNodes = t8;
- _._async_environment0$_variableIndices = t9;
- _._async_environment0$_functions = t10;
- _._async_environment0$_functionIndices = t11;
- _._async_environment0$_mixins = t12;
- _._async_environment0$_mixinIndices = t13;
- _._async_environment0$_content = t14;
- _._async_environment0$_inMixin = false;
- _._async_environment0$_inSemiGlobalScope = true;
- _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null;
- },
- AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) {
- this.name = t0;
- },
- AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- AsyncEnvironment_toModule_closure0: function AsyncEnvironment_toModule_closure0() {
- },
- AsyncEnvironment_toDummyModule_closure0: function AsyncEnvironment_toDummyModule_closure0() {
- },
- _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extensionStore = t5;
- _.css = t6;
- _.preModuleComments = t7;
- _.transitivelyContainsCss = t8;
- _.transitivelyContainsExtensions = t9;
- _._async_environment0$_environment = t10;
- _._async_environment0$_modulesByVariable = t11;
- },
- _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() {
- },
- _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() {
- },
- _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() {
- },
- _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() {
- },
- _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() {
- },
- _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() {
- },
- _EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t4,
- t1 = type$.Uri,
- t2 = type$.Module_AsyncCallable_2,
- t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode_2);
- if (importCache == null)
- t4 = nodeImporter == null ? A.AsyncImportCache$none(logger) : null;
- else
- t4 = importCache;
- t1 = new A._EvaluateVisitor2(t4, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.AsyncCallable_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.AsyncEnvironment$0(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode_2), t3, B.Configuration_Map_empty_null0);
- t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
- return t1;
- },
- _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._async_evaluate0$_importCache = t0;
- _._async_evaluate0$_nodeImporter = t1;
- _._async_evaluate0$_builtInFunctions = t2;
- _._async_evaluate0$_builtInModules = t3;
- _._async_evaluate0$_modules = t4;
- _._async_evaluate0$_moduleConfigurations = t5;
- _._async_evaluate0$_moduleNodes = t6;
- _._async_evaluate0$_logger = t7;
- _._async_evaluate0$_warningsEmitted = t8;
- _._async_evaluate0$_quietDeps = t9;
- _._async_evaluate0$_sourceMap = t10;
- _._async_evaluate0$_environment = t11;
- _._async_evaluate0$_declarationName = _._async_evaluate0$__parent = _._async_evaluate0$_mediaQuerySources = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRuleIgnoringAtRoot = null;
- _._async_evaluate0$_member = "root stylesheet";
- _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = _._async_evaluate0$_currentCallable = null;
- _._async_evaluate0$_inSupportsDeclaration = _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false;
- _._async_evaluate0$_loadedUrls = t12;
- _._async_evaluate0$_activeModules = t13;
- _._async_evaluate0$_stack = t14;
- _._async_evaluate0$_importer = null;
- _._async_evaluate0$_inDependency = false;
- _._async_evaluate0$__extensionStore = _._async_evaluate0$_preModuleComments = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$__endOfImports = _._async_evaluate0$__root = _._async_evaluate0$__stylesheet = null;
- _._async_evaluate0$_configuration = t15;
- },
- _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure39: function _EvaluateVisitor_closure39(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure40: function _EvaluateVisitor_closure40(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure41: function _EvaluateVisitor_closure41(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure42: function _EvaluateVisitor_closure42(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure43: function _EvaluateVisitor_closure43(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure44: function _EvaluateVisitor_closure44(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure45: function _EvaluateVisitor_closure45(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure46: function _EvaluateVisitor_closure46(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure14: function _EvaluateVisitor__closure14(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure47: function _EvaluateVisitor_closure47(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure13: function _EvaluateVisitor__closure13(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure48: function _EvaluateVisitor_closure48(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure49: function _EvaluateVisitor_closure49(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure11: function _EvaluateVisitor__closure11(t0, t1, t2) {
- this.values = t0;
- this.span = t1;
- this.callableNode = t2;
- },
- _EvaluateVisitor__closure12: function _EvaluateVisitor__closure12(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure50: function _EvaluateVisitor_closure50(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor_run__closure2: function _EvaluateVisitor_run__closure2(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.node = t2;
- },
- _EvaluateVisitor__loadModule_closure5: function _EvaluateVisitor__loadModule_closure5(t0, t1) {
- this._box_1 = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__loadModule_closure6: function _EvaluateVisitor__loadModule_closure6(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__loadModule__closure5: function _EvaluateVisitor__loadModule__closure5(t0, t1) {
- this.$this = t0;
- this.message = t1;
- },
- _EvaluateVisitor__loadModule__closure6: function _EvaluateVisitor__loadModule__closure6(t0, t1, t2) {
- this._box_0 = t0;
- this.callback = t1;
- this.firstLoad = t2;
- },
- _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.stylesheet = t2;
- _.extensionStore = t3;
- _.configuration = t4;
- _.css = t5;
- _.preModuleComments = t6;
- },
- _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() {
- },
- _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_visitModule2: function _EvaluateVisitor__combineCss_visitModule2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.seen = t1;
- _.clone = t2;
- _.css = t3;
- _.imports = t4;
- _.sorted = t5;
- },
- _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() {
- },
- _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure8: function _EvaluateVisitor_visitAtRule_closure8(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure9: function _EvaluateVisitor_visitAtRule_closure9(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.children = t2;
- },
- _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) {
- this.$this = t0;
- this.children = t1;
- },
- _EvaluateVisitor_visitAtRule_closure10: function _EvaluateVisitor_visitAtRule_closure10() {
- },
- _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0) {
- this.fromNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0, t1) {
- this.toNumber = t0;
- this.fromNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- _.fromNumber = t5;
- },
- _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__registerCommentsForModule_closure2: function _EvaluateVisitor__registerCommentsForModule_closure2() {
- },
- _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0, t1) {
- this.$this = t0;
- this.clause = t1;
- },
- _EvaluateVisitor_visitIfRule___closure2: function _EvaluateVisitor_visitIfRule___closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure11: function _EvaluateVisitor__visitDynamicImport__closure11(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport__closure12: function _EvaluateVisitor__visitDynamicImport__closure12() {
- },
- _EvaluateVisitor__visitDynamicImport__closure13: function _EvaluateVisitor__visitDynamicImport__closure13() {
- },
- _EvaluateVisitor__visitDynamicImport__closure14: function _EvaluateVisitor__visitDynamicImport__closure14(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.loadsUserDefinedModules = t2;
- _.environment = t3;
- _.children = t4;
- },
- _EvaluateVisitor__applyMixin_closure5: function _EvaluateVisitor__applyMixin_closure5(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure6: function _EvaluateVisitor__applyMixin__closure6(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin_closure6: function _EvaluateVisitor__applyMixin_closure6(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure5: function _EvaluateVisitor__applyMixin__closure5(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin___closure2: function _EvaluateVisitor__applyMixin___closure2(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin____closure2: function _EvaluateVisitor__applyMixin____closure2(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitMediaRule_closure8: function _EvaluateVisitor_visitMediaRule_closure8(t0, t1) {
- this.$this = t0;
- this.queries = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure9: function _EvaluateVisitor_visitMediaRule_closure9(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.mergedSources = t3;
- _.node = t4;
- },
- _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure10: function _EvaluateVisitor_visitMediaRule_closure10(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12() {
- },
- _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13() {
- },
- _EvaluateVisitor__warnForBogusCombinators_closure2: function _EvaluateVisitor__warnForBogusCombinators_closure2() {
- },
- _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() {
- },
- _EvaluateVisitor__visitSupportsCondition_closure2: function _EvaluateVisitor__visitSupportsCondition_closure2(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__slash_recommendation2: function _EvaluateVisitor__slash_recommendation2() {
- },
- _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitUnaryOperationExpression_closure2: function _EvaluateVisitor_visitUnaryOperationExpression_closure2(t0, t1) {
- this.node = t0;
- this.operand = t1;
- },
- _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure8: function _EvaluateVisitor_visitFunctionExpression_closure8(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitFunctionExpression_closure9: function _EvaluateVisitor_visitFunctionExpression_closure9() {
- },
- _EvaluateVisitor_visitFunctionExpression_closure10: function _EvaluateVisitor_visitFunctionExpression_closure10(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__checkCalculationArguments_check2: function _EvaluateVisitor__checkCalculationArguments_check2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__visitCalculationExpression_closure2: function _EvaluateVisitor__visitCalculationExpression_closure2(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.inLegacySassFunction = t3;
- },
- _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.$function = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() {
- },
- _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure8: function _EvaluateVisitor__runBuiltInCallable_closure8(t0, t1, t2) {
- this._box_0 = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure9: function _EvaluateVisitor__runBuiltInCallable_closure9(t0, t1) {
- this._box_0 = t0;
- this.evaluated = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure10: function _EvaluateVisitor__runBuiltInCallable_closure10() {
- },
- _EvaluateVisitor__evaluateArguments_closure11: function _EvaluateVisitor__evaluateArguments_closure11() {
- },
- _EvaluateVisitor__evaluateArguments_closure12: function _EvaluateVisitor__evaluateArguments_closure12(t0, t1) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- },
- _EvaluateVisitor__evaluateArguments_closure13: function _EvaluateVisitor__evaluateArguments_closure13(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.namedNodes = t3;
- },
- _EvaluateVisitor__evaluateArguments_closure14: function _EvaluateVisitor__evaluateArguments_closure14() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11(t0) {
- this.restArgs = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12(t0, t1, t2) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- this.restArgs = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.restArgs = t3;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14(t0, t1, t2) {
- this.$this = t0;
- this.keywordRestNodeForSpan = t1;
- this.keywordRestArgs = t2;
- },
- _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.values = t1;
- _.convert = t2;
- _.expressionNode = t3;
- _.map = t4;
- _.nodeWithSpan = t5;
- },
- _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure8: function _EvaluateVisitor_visitCssMediaRule_closure8(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure9: function _EvaluateVisitor_visitCssMediaRule_closure9(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.node = t2;
- _.mergedSources = t3;
- },
- _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure10: function _EvaluateVisitor_visitCssMediaRule_closure10(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() {
- },
- _EvaluateVisitor__performInterpolationHelper_closure2: function _EvaluateVisitor__performInterpolationHelper_closure2(t0) {
- this.interpolation = t0;
- },
- _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__expressionNode_closure2: function _EvaluateVisitor__expressionNode_closure2(t0, t1) {
- this.$this = t0;
- this.expression = t1;
- },
- _EvaluateVisitor__withoutSlash_recommendation2: function _EvaluateVisitor__withoutSlash_recommendation2() {
- },
- _EvaluateVisitor__stackFrame_closure2: function _EvaluateVisitor__stackFrame_closure2(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) {
- this._async_evaluate0$_visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() {
- },
- _EvaluationContext2: function _EvaluationContext2(t0, t1) {
- this._async_evaluate0$_visitor = t0;
- this._async_evaluate0$_defaultWarnNodeWithSpan = t1;
- },
- JSToDartAsyncFileImporter: function JSToDartAsyncFileImporter(t0) {
- this._findFileUrl = t0;
- },
- JSToDartAsyncFileImporter_canonicalize_closure: function JSToDartAsyncFileImporter_canonicalize_closure(t0, t1) {
- this.$this = t0;
- this.url = t1;
- },
- AsyncImportCache$(importers, loadPaths, logger, packageConfig) {
- var t1 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2,
- t2 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2,
- t3 = type$.Uri,
- t4 = A.AsyncImportCache__toImporters0(importers, loadPaths, packageConfig);
- return new A.AsyncImportCache0(t4, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
- },
- AsyncImportCache$none(logger) {
- var t1 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2,
- t2 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2,
- t3 = type$.Uri;
- return new A.AsyncImportCache0(B.List_empty25, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
- },
- AsyncImportCache__toImporters0(importers, loadPaths, packageConfig) {
- var t1, t2, t3, t4, _i, path, _null = null,
- sassPath = A.getEnvironmentVariable0("SASS_PATH");
- if (A.isBrowser()) {
- t1 = A._setArrayType([], type$.JSArray_AsyncImporter);
- if (importers != null)
- B.JSArray_methods.addAll$1(t1, importers);
- return t1;
- }
- t1 = A._setArrayType([], type$.JSArray_AsyncImporter);
- if (importers != null)
- B.JSArray_methods.addAll$1(t1, importers);
- if (loadPaths != null)
- for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- if (sassPath != null) {
- t2 = A.isNodeJs() ? self.process : _null;
- t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
- t4 = t3.length;
- _i = 0;
- for (; _i < t4; ++_i) {
- path = t3[_i];
- t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- }
- return t1;
- },
- AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._async_import_cache0$_importers = t0;
- _._async_import_cache0$_logger = t1;
- _._async_import_cache0$_canonicalizeCache = t2;
- _._async_import_cache0$_perImporterCanonicalizeCache = t3;
- _._async_import_cache0$_nonCanonicalRelativeUrls = t4;
- _._async_import_cache0$_importCache = t5;
- _._async_import_cache0$_resultsCache = t6;
- },
- AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.baseImporter = t1;
- _.resolvedUrl = t2;
- _.baseUrl = t3;
- _.forImport = t4;
- _.key = t5;
- _.url = t6;
- },
- AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- _.quiet = t4;
- },
- AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3(t0) {
- this.canonicalUrl = t0;
- },
- AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() {
- },
- AsyncImportCache_humanize_closure5: function AsyncImportCache_humanize_closure5() {
- },
- AsyncImportCache_humanize_closure6: function AsyncImportCache_humanize_closure6(t0) {
- this.canonicalUrl = t0;
- },
- AtRootQueryParser$0(contents, logger, url) {
- var t1 = A.SpanScanner$(contents, url);
- return new A.AtRootQueryParser0(t1, logger, null);
- },
- AtRootQueryParser0: function AtRootQueryParser0(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._parser0$_interpolationMap = t2;
- },
- AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
- this.$this = t0;
- },
- AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
- var _ = this;
- _.include = t0;
- _.names = t1;
- _._at_root_query0$_all = t2;
- _._at_root_query0$_rule = t3;
- },
- AtRootRule$0(children, span, query) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.AtRootRule0(query, span, t1, t2);
- },
- AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- ModifiableCssAtRule$0($name, span, childless, value) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- return new A.ModifiableCssAtRule0($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.isChildless = t2;
- _.span = t3;
- _.children = t4;
- _._node$_children = t5;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- AtRule$0($name, span, children, value) {
- var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.AtRule0($name, value, span, t1, t2 === true);
- },
- AtRule0: function AtRule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.op = t1;
- _.value = t2;
- _.modifier = t3;
- _.span = t4;
- },
- AttributeOperator0: function AttributeOperator0(t0, t1) {
- this._attribute0$_text = t0;
- this._name = t1;
- },
- BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
- var _ = this;
- _.operator = t0;
- _.left = t1;
- _.right = t2;
- _.allowsSlash = t3;
- },
- BinaryOperator0: function BinaryOperator0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.operator = t1;
- _.precedence = t2;
- _.isAssociative = t3;
- _._name = t4;
- },
- BooleanExpression0: function BooleanExpression0(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- booleanClass_closure: function booleanClass_closure() {
- },
- booleanClass__closure: function booleanClass__closure() {
- },
- legacyBooleanClass_closure: function legacyBooleanClass_closure() {
- },
- legacyBooleanClass__closure: function legacyBooleanClass__closure() {
- },
- legacyBooleanClass__closure0: function legacyBooleanClass__closure0() {
- },
- SassBoolean0: function SassBoolean0(t0) {
- this.value = t0;
- },
- Box0: function Box0(t0, t1) {
- this._box0$_inner = t0;
- this.$ti = t1;
- },
- ModifiableBox0: function ModifiableBox0(t0, t1) {
- this.value = t0;
- this.$ti = t1;
- },
- BuiltInCallable$function0($name, $arguments, callback, url) {
- return new A.BuiltInCallable0($name, A._setArrayType([new A._Record_2(A.ScssParser$0("@function " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), false);
- },
- BuiltInCallable$mixin0($name, $arguments, callback, acceptsContent, url) {
- return new A.BuiltInCallable0($name, A._setArrayType([new A._Record_2(A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", null, url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure0(callback))], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), acceptsContent);
- },
- BuiltInCallable$overloadedFunction0($name, overloads) {
- var t2, t3, t4, t5, t6, args, callback,
- t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2);
- for (t2 = type$.String, t3 = A.MapExtensions_get_pairs0(overloads, t2, type$.Value_Function_List_Value_2), t3 = t3.get$iterator(t3), t4 = "@function " + $name + "(", t5 = type$.VariableDeclaration_2; t3.moveNext$0();) {
- t6 = t3.get$current(t3);
- args = t6._0;
- callback = t6._1;
- t6 = A.SpanScanner$(t4 + args + ") {", null);
- t1.push(new A._Record_2(new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(t2, t5), t6, B.StderrLogger_false0, null).parseArgumentDeclaration$0(), callback));
- }
- return new A.BuiltInCallable0($name, t1, false);
- },
- BuiltInCallable0: function BuiltInCallable0(t0, t1, t2) {
- this.name = t0;
- this._built_in$_overloads = t1;
- this.acceptsContent = t2;
- },
- BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) {
- this.callback = t0;
- },
- BuiltInModule$0($name, functions, mixins, variables, $T) {
- var t1 = A._Uri__Uri(null, $name, null, "sass"),
- t2 = A.BuiltInModule__callableMap0(functions, $T),
- t3 = A.BuiltInModule__callableMap0(mixins, $T),
- t4 = variables == null ? B.Map_empty13 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value_2);
- return new A.BuiltInModule0(t1, t2, t3, t4, $T._eval$1("BuiltInModule0<0>"));
- },
- BuiltInModule__callableMap0(callables, $T) {
- var t2, _i, callable,
- t1 = type$.String;
- if (callables == null)
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- else {
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
- for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) {
- callable = callables[_i];
- t1.$indexSet(0, J.get$name$x(callable), callable);
- }
- t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- }
- return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
- },
- BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.url = t0;
- _.functions = t1;
- _.mixins = t2;
- _.variables = t3;
- _.$ti = t4;
- },
- _assertCalculationValue(arg) {
- var t1;
- $label0$0: {
- if (!(arg instanceof A.SassNumber0))
- t1 = arg instanceof A.SassString0 && !arg._string0$_hasQuotes || arg instanceof A.SassCalculation0 || arg instanceof A.CalculationOperation0 || arg instanceof A.CalculationInterpolation;
- else
- t1 = true;
- if (t1) {
- t1 = null;
- break $label0$0;
- }
- t1 = A.jsThrow0(new self.Error("Argument `" + A.S(arg) + "` must be one of SassNumber, unquoted SassString, SassCalculation, CalculationOperation, CalculationInterpolation"));
- }
- return t1;
- },
- _isValidClampArg(arg) {
- var t1;
- $label0$0: {
- if (!(arg instanceof A.CalculationInterpolation))
- t1 = arg instanceof A.SassString0 && !arg._string0$_hasQuotes;
- else
- t1 = true;
- if (t1)
- break $label0$0;
- break $label0$0;
- }
- return t1;
- },
- calculationClass_closure: function calculationClass_closure() {
- },
- calculationClass__closure: function calculationClass__closure() {
- },
- calculationClass__closure0: function calculationClass__closure0() {
- },
- calculationClass__closure1: function calculationClass__closure1() {
- },
- calculationClass__closure2: function calculationClass__closure2() {
- },
- calculationClass__closure3: function calculationClass__closure3() {
- },
- calculationClass__closure4: function calculationClass__closure4() {
- },
- calculationClass__closure5: function calculationClass__closure5() {
- },
- calculationOperationClass_closure: function calculationOperationClass_closure() {
- },
- calculationOperationClass__closure: function calculationOperationClass__closure() {
- },
- calculationOperationClass___closure: function calculationOperationClass___closure(t0) {
- this.strOperator = t0;
- },
- calculationOperationClass__closure0: function calculationOperationClass__closure0() {
- },
- calculationOperationClass__closure1: function calculationOperationClass__closure1() {
- },
- calculationOperationClass__closure2: function calculationOperationClass__closure2() {
- },
- calculationOperationClass__closure3: function calculationOperationClass__closure3() {
- },
- calculationOperationClass__closure4: function calculationOperationClass__closure4() {
- },
- calculationInterpolationClass_closure: function calculationInterpolationClass_closure() {
- },
- calculationInterpolationClass__closure: function calculationInterpolationClass__closure() {
- },
- calculationInterpolationClass__closure0: function calculationInterpolationClass__closure0() {
- },
- calculationInterpolationClass__closure1: function calculationInterpolationClass__closure1() {
- },
- calculationInterpolationClass__closure2: function calculationInterpolationClass__closure2() {
- },
- SassCalculation_calc0(argument) {
- var t1,
- _0_0 = A.SassCalculation__simplify0(argument);
- $label0$0: {
- if (_0_0 instanceof A.SassNumber0) {
- t1 = _0_0;
- break $label0$0;
- }
- if (_0_0 instanceof A.SassCalculation0) {
- t1 = _0_0;
- break $label0$0;
- }
- t1 = new A.SassCalculation0("calc", A.List_List$unmodifiable([_0_0], type$.Object));
- break $label0$0;
- }
- return t1;
- },
- SassCalculation_min0($arguments) {
- var minimum, _i, arg, t2,
- args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
- t1 = args.length;
- if (t1 === 0)
- throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null));
- for (minimum = null, _i = 0; _i < t1; ++_i) {
- arg = args[_i];
- if (arg instanceof A.SassNumber0)
- t2 = minimum != null && !minimum.isComparableTo$1(arg);
- else
- t2 = true;
- if (t2) {
- minimum = null;
- break;
- } else if (minimum == null || minimum.greaterThan$1(arg).value)
- minimum = arg;
- }
- if (minimum != null)
- return minimum;
- A.SassCalculation__verifyCompatibleNumbers0(args);
- return new A.SassCalculation0("min", args);
- },
- SassCalculation_max0($arguments) {
- var maximum, _i, arg, t2,
- args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
- t1 = args.length;
- if (t1 === 0)
- throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null));
- for (maximum = null, _i = 0; _i < t1; ++_i) {
- arg = args[_i];
- if (arg instanceof A.SassNumber0)
- t2 = maximum != null && !maximum.isComparableTo$1(arg);
- else
- t2 = true;
- if (t2) {
- maximum = null;
- break;
- } else if (maximum == null || maximum.lessThan$1(arg).value)
- maximum = arg;
- }
- if (maximum != null)
- return maximum;
- A.SassCalculation__verifyCompatibleNumbers0(args);
- return new A.SassCalculation0("max", args);
- },
- SassCalculation_hypot0($arguments) {
- var first, subtotal, i, number, value, t2, t3,
- args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
- t1 = args.length;
- if (t1 === 0)
- throw A.wrapException(A.ArgumentError$("hypot() must have at least one argument.", null));
- A.SassCalculation__verifyCompatibleNumbers0(args);
- first = B.JSArray_methods.get$first(args);
- if (!(first instanceof A.SassNumber0) || first.hasUnit$1("%"))
- return new A.SassCalculation0("hypot", args);
- for (subtotal = 0, i = 0; i < t1;) {
- number = args[i];
- if (!(number instanceof A.SassNumber0) || !number.hasCompatibleUnits$1(first))
- return new A.SassCalculation0("hypot", args);
- ++i;
- value = number.convertValueToMatch$3(first, "numbers[" + i + "]", "numbers[1]");
- subtotal += value * value;
- }
- t1 = Math.sqrt(subtotal);
- t2 = J.getInterceptor$x(first);
- t3 = t2.get$numeratorUnits(first);
- return A.SassNumber_SassNumber$withUnits0(t1, t2.get$denominatorUnits(first), t3);
- },
- SassCalculation_abs0(argument) {
- argument = A.SassCalculation__simplify0(argument);
- if (!(argument instanceof A.SassNumber0))
- return new A.SassCalculation0("abs", A._setArrayType([argument], type$.JSArray_Object));
- if (argument.hasUnit$1("%"))
- A.warnForDeprecation0(string$.Passinp + argument.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + argument.toString$0(0) + string$.x7d__Mor, B.Deprecation_jYb);
- return A.SassNumber_SassNumber0(Math.abs(argument._number1$_value), null).coerceToMatch$1(argument);
- },
- SassCalculation_exp0(argument) {
- argument = A.SassCalculation__simplify0(argument);
- if (!(argument instanceof A.SassNumber0))
- return new A.SassCalculation0("exp", A._setArrayType([argument], type$.JSArray_Object));
- argument.assertNoUnits$0();
- return A.pow1(A.SassNumber_SassNumber0(2.718281828459045, null), argument);
- },
- SassCalculation_sign0(argument) {
- var t1, _0_2, t2, arg;
- argument = A.SassCalculation__simplify0(argument);
- $label0$0: {
- t1 = argument instanceof A.SassNumber0;
- if (t1) {
- _0_2 = argument._number1$_value;
- if (!isNaN(_0_2))
- t2 = 0 === _0_2;
- else
- t2 = true;
- } else
- t2 = false;
- if (t2) {
- t1 = argument;
- break $label0$0;
- }
- if (t1) {
- t1 = !argument.hasUnit$1("%");
- arg = argument;
- } else {
- arg = null;
- t1 = false;
- }
- if (t1) {
- t1 = A.SassNumber_SassNumber0(J.get$sign$in(arg._number1$_value), null).coerceToMatch$1(argument);
- break $label0$0;
- }
- t1 = new A.SassCalculation0("sign", A._setArrayType([argument], type$.JSArray_Object));
- break $label0$0;
- }
- return t1;
- },
- SassCalculation_clamp0(min, value, max) {
- var t1, args;
- if (value == null && max != null)
- throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null));
- min = A.SassCalculation__simplify0(min);
- value = A.NullableExtension_andThen0(value, A.calculation0_SassCalculation__simplify$closure());
- max = A.NullableExtension_andThen0(max, A.calculation0_SassCalculation__simplify$closure());
- if (min instanceof A.SassNumber0 && value instanceof A.SassNumber0 && max instanceof A.SassNumber0 && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) {
- if (value.lessThanOrEquals$1(min).value)
- return min;
- if (value.greaterThanOrEquals$1(max).value)
- return max;
- return value;
- }
- t1 = [min];
- if (value != null)
- t1.push(value);
- if (max != null)
- t1.push(max);
- args = A.List_List$unmodifiable(t1, type$.Object);
- A.SassCalculation__verifyCompatibleNumbers0(args);
- A.SassCalculation__verifyLength0(args, 3);
- return new A.SassCalculation0("clamp", args);
- },
- SassCalculation_pow0(base, exponent) {
- var t1 = A._setArrayType([base], type$.JSArray_Object);
- if (exponent != null)
- t1.push(exponent);
- A.SassCalculation__verifyLength0(t1, 2);
- base = A.SassCalculation__simplify0(base);
- exponent = A.NullableExtension_andThen0(exponent, A.calculation0_SassCalculation__simplify$closure());
- if (!(base instanceof A.SassNumber0) || !(exponent instanceof A.SassNumber0))
- return new A.SassCalculation0("pow", t1);
- base.assertNoUnits$0();
- exponent.assertNoUnits$0();
- return A.pow1(base, exponent);
- },
- SassCalculation_log0(number, base) {
- var t1, t2;
- number = A.SassCalculation__simplify0(number);
- base = A.NullableExtension_andThen0(base, A.calculation0_SassCalculation__simplify$closure());
- t1 = A._setArrayType([number], type$.JSArray_Object);
- t2 = base != null;
- if (t2)
- t1.push(base);
- if (number instanceof A.SassNumber0)
- t2 = t2 && !(base instanceof A.SassNumber0);
- else
- t2 = true;
- if (t2)
- return new A.SassCalculation0("log", t1);
- number.assertNoUnits$0();
- if (base instanceof A.SassNumber0) {
- base.assertNoUnits$0();
- return A.log0(number, base);
- }
- return A.log0(number, null);
- },
- SassCalculation_atan20(y, x) {
- var t1;
- y = A.SassCalculation__simplify0(y);
- x = A.NullableExtension_andThen0(x, A.calculation0_SassCalculation__simplify$closure());
- t1 = A._setArrayType([y], type$.JSArray_Object);
- if (x != null)
- t1.push(x);
- A.SassCalculation__verifyLength0(t1, 2);
- A.SassCalculation__verifyCompatibleNumbers0(t1);
- if (!(y instanceof A.SassNumber0) || !(x instanceof A.SassNumber0) || y.hasUnit$1("%") || x.hasUnit$1("%") || !y.hasCompatibleUnits$1(x))
- return new A.SassCalculation0("atan2", t1);
- return A.SassNumber_SassNumber$withUnits0(Math.atan2(y._number1$_value, x.convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- SassCalculation_rem0(dividend, modulus) {
- var t1, result;
- dividend = A.SassCalculation__simplify0(dividend);
- modulus = A.NullableExtension_andThen0(modulus, A.calculation0_SassCalculation__simplify$closure());
- t1 = A._setArrayType([dividend], type$.JSArray_Object);
- if (modulus != null)
- t1.push(modulus);
- A.SassCalculation__verifyLength0(t1, 2);
- A.SassCalculation__verifyCompatibleNumbers0(t1);
- if (!(dividend instanceof A.SassNumber0) || !(modulus instanceof A.SassNumber0) || !dividend.hasCompatibleUnits$1(modulus))
- return new A.SassCalculation0("rem", t1);
- result = dividend.modulo$1(modulus);
- t1 = modulus._number1$_value;
- if (A.DoubleWithSignedZero_get_signIncludingZero0(t1) !== A.DoubleWithSignedZero_get_signIncludingZero0(dividend._number1$_value)) {
- if (t1 == 1 / 0 || t1 == -1 / 0)
- return dividend;
- if (result._number1$_value === 0)
- return result.unaryMinus$0();
- return result.minus$1(modulus);
- }
- return result;
- },
- SassCalculation_mod0(dividend, modulus) {
- var t1;
- dividend = A.SassCalculation__simplify0(dividend);
- modulus = A.NullableExtension_andThen0(modulus, A.calculation0_SassCalculation__simplify$closure());
- t1 = A._setArrayType([dividend], type$.JSArray_Object);
- if (modulus != null)
- t1.push(modulus);
- A.SassCalculation__verifyLength0(t1, 2);
- A.SassCalculation__verifyCompatibleNumbers0(t1);
- if (!(dividend instanceof A.SassNumber0) || !(modulus instanceof A.SassNumber0) || !dividend.hasCompatibleUnits$1(modulus))
- return new A.SassCalculation0("mod", t1);
- return dividend.modulo$1(modulus);
- },
- SassCalculation_round0(strategyOrNumber, numberOrStep, step) {
- var _0_4, _0_5_isSet, _0_20, _0_6, t1, _0_50, _0_6_isSet, number, t2, _0_2_isSet, _0_10_isSet, _0_8, _0_12_isSet, _0_12, _0_14_isSet, _0_14, _0_16_isSet, _0_16, t3, strategy, _0_8_isSet, t4, rest, _null = null, _s5_ = "round",
- _0_1 = A.SassCalculation__simplify0(strategyOrNumber),
- _0_2 = A.NullableExtension_andThen0(numberOrStep, A.calculation0_SassCalculation__simplify$closure()),
- _0_5 = A.NullableExtension_andThen0(step, A.calculation0_SassCalculation__simplify$closure()),
- _0_10 = _0_1,
- _0_4_isSet = _0_1 instanceof A.SassNumber0;
- if (_0_4_isSet) {
- type$.SassNumber_2._as(_0_10);
- _0_4 = _0_2 == null;
- _0_5_isSet = _0_4;
- _0_20 = _0_2;
- if (_0_5_isSet) {
- _0_6 = _0_5 == null;
- t1 = _0_6;
- _0_50 = _0_5;
- } else {
- _0_50 = _null;
- _0_6 = _0_50;
- t1 = false;
- }
- _0_6_isSet = _0_5_isSet;
- number = _0_10;
- _0_1 = number;
- } else {
- number = _null;
- _0_50 = number;
- _0_6 = _0_50;
- _0_20 = _0_6;
- _0_4 = _0_20;
- _0_1 = _0_10;
- _0_6_isSet = false;
- _0_5_isSet = false;
- t1 = false;
- }
- if (t1) {
- t1 = B.JSNumber_methods.round$0(number._number1$_value);
- t2 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits0(t1, number.get$denominatorUnits(number), t2);
- }
- if (_0_1 instanceof A.SassNumber0) {
- if (_0_4_isSet) {
- t1 = _0_20;
- _0_2_isSet = _0_4_isSet;
- } else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber0) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- type$.SassNumber_2._as(t1);
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_5_isSet)
- t2 = _0_50;
- else {
- t2 = _0_5;
- _0_50 = t2;
- _0_5_isSet = true;
- }
- _0_6 = t2 == null;
- t2 = _0_6;
- _0_6_isSet = true;
- }
- t2 = t2 && !_0_1.hasCompatibleUnits$1(t1);
- step = t1;
- t1 = t2;
- } else {
- step = _null;
- t1 = false;
- }
- number = _0_1;
- } else {
- step = _null;
- number = step;
- _0_2_isSet = _0_4_isSet;
- t1 = false;
- }
- if (t1) {
- t1 = type$.JSArray_Object;
- A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], t1));
- return new A.SassCalculation0(_s5_, A._setArrayType([number, step], t1));
- }
- if (_0_1 instanceof A.SassNumber0) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber0) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- type$.SassNumber_2._as(t1);
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_5_isSet)
- t2 = _0_50;
- else {
- t2 = _0_5;
- _0_50 = t2;
- _0_5_isSet = true;
- }
- _0_6 = t2 == null;
- t2 = _0_6;
- _0_6_isSet = true;
- }
- step = t1;
- t1 = t2;
- } else {
- step = _null;
- t1 = false;
- }
- number = _0_1;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- if (t1) {
- A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], type$.JSArray_Object));
- return A.SassCalculation__roundWithStep0("nearest", number, step);
- }
- _0_10_isSet = _0_1 instanceof A.SassString0;
- if (_0_10_isSet) {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_12_isSet = !t1;
- if (_0_12_isSet) {
- _0_12 = "up" === _0_8;
- t1 = _0_12;
- _0_14_isSet = !t1;
- if (_0_14_isSet) {
- _0_14 = "down" === _0_8;
- t1 = _0_14;
- _0_16_isSet = !t1;
- if (_0_16_isSet) {
- _0_16 = "to-zero" === _0_8;
- t1 = _0_16;
- } else {
- _0_16 = _null;
- t1 = true;
- }
- } else {
- _0_16 = _null;
- _0_14 = _0_16;
- _0_16_isSet = false;
- t1 = true;
- }
- } else {
- _0_16 = _null;
- _0_14 = _0_16;
- _0_12 = _0_14;
- _0_14_isSet = false;
- _0_16_isSet = false;
- t1 = true;
- }
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber0) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- t2 = type$.SassNumber_2;
- t2._as(t1);
- if (_0_5_isSet)
- t3 = _0_50;
- else {
- t3 = _0_5;
- _0_50 = t3;
- _0_5_isSet = true;
- }
- if (t3 instanceof A.SassNumber0) {
- if (_0_5_isSet)
- t3 = _0_50;
- else {
- t3 = _0_5;
- _0_50 = t3;
- _0_5_isSet = true;
- }
- t2._as(t3);
- t2 = !t1.hasCompatibleUnits$1(t3);
- step = t3;
- } else {
- step = _null;
- t2 = false;
- }
- number = t1;
- t1 = t2;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- step = _null;
- number = step;
- strategy = number;
- t1 = false;
- }
- } else {
- step = _null;
- number = step;
- strategy = number;
- _0_16 = strategy;
- _0_14 = _0_16;
- _0_12 = _0_14;
- _0_8 = _0_12;
- _0_10 = _0_8;
- _0_12_isSet = false;
- _0_14_isSet = false;
- _0_16_isSet = false;
- t1 = false;
- }
- if (t1) {
- t1 = type$.JSArray_Object;
- A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], t1));
- return new A.SassCalculation0(_s5_, A._setArrayType([strategy, number, step], t1));
- }
- if (_0_1 instanceof A.SassString0) {
- if (_0_10_isSet) {
- t1 = _0_10;
- _0_8_isSet = _0_10_isSet;
- } else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- _0_8_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassNumber0) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- t2 = type$.SassNumber_2;
- t2._as(t1);
- if (_0_5_isSet)
- t3 = _0_50;
- else {
- t3 = _0_5;
- _0_50 = t3;
- _0_5_isSet = true;
- }
- t3 = t3 instanceof A.SassNumber0;
- if (t3) {
- if (_0_5_isSet)
- t4 = _0_50;
- else {
- t4 = _0_5;
- _0_50 = t4;
- _0_5_isSet = true;
- }
- t2._as(t4);
- step = t4;
- } else
- step = _null;
- t2 = t3;
- number = t1;
- t1 = t2;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- step = _null;
- number = step;
- strategy = number;
- t1 = false;
- }
- } else {
- step = _null;
- number = step;
- strategy = number;
- _0_8_isSet = _0_10_isSet;
- t1 = false;
- }
- if (t1) {
- A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], type$.JSArray_Object));
- return A.SassCalculation__roundWithStep0(strategy._string0$_text, number, step);
- }
- if (_0_1 instanceof A.SassString0) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 instanceof A.SassString0) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- type$.SassString_2._as(t1);
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_5_isSet)
- t2 = _0_50;
- else {
- t2 = _0_5;
- _0_50 = t2;
- _0_5_isSet = true;
- }
- _0_6 = t2 == null;
- t2 = _0_6;
- _0_6_isSet = true;
- }
- rest = t1;
- t1 = t2;
- } else {
- rest = _null;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- rest = _null;
- strategy = rest;
- t1 = false;
- }
- } else {
- rest = _null;
- strategy = rest;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation0(_s5_, A._setArrayType([strategy, rest], type$.JSArray_Object));
- if (_0_1 instanceof A.SassString0) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 != null)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$0(string$.If_str, _null));
- if (_0_1 instanceof A.SassString0) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- _0_10_isSet = true;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- _0_14_isSet = true;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- _0_16_isSet = true;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- if (t1) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- _0_4 = t1 == null;
- t1 = _0_4;
- _0_4_isSet = true;
- }
- if (t1)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$0(string$.Number, _null));
- if (_0_1 instanceof A.SassString0) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- _0_4 = t1 == null;
- t1 = _0_4;
- _0_4_isSet = true;
- }
- if (t1)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- rest = _0_1;
- } else {
- rest = _null;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation0(_s5_, A._setArrayType([rest], type$.JSArray_Object));
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- _0_4 = t1 == null;
- t1 = _0_4;
- }
- if (t1)
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- _0_6_isSet = true;
- }
- else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$0("Single argument " + A.S(_0_1) + " expected to be simplifiable.", _null));
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 != null) {
- if (_0_2_isSet)
- step = _0_20;
- else {
- step = _0_2;
- _0_20 = step;
- _0_2_isSet = true;
- }
- if (step == null)
- step = type$.Object._as(step);
- if (_0_6_isSet)
- t1 = _0_6;
- else {
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- _0_6 = t1 == null;
- t1 = _0_6;
- }
- } else {
- step = _null;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation0(_s5_, A._setArrayType([_0_1, step], type$.JSArray_Object));
- if (_0_1 instanceof A.SassString0) {
- if (_0_10_isSet)
- t1 = _0_10;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_10 = "nearest" === t1;
- t1 = _0_10;
- }
- if (!t1) {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_12 = "up" === t1;
- t1 = _0_12;
- }
- if (!t1) {
- if (_0_14_isSet)
- t1 = _0_14;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- _0_8_isSet = true;
- }
- _0_14 = "down" === t1;
- t1 = _0_14;
- }
- if (!t1)
- if (_0_16_isSet)
- t1 = _0_16;
- else {
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = _0_1._string0$_text;
- t1 = _0_8;
- }
- _0_16 = "to-zero" === t1;
- t1 = _0_16;
- }
- else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = true;
- } else
- t1 = false;
- if (!t1)
- if (_0_1 instanceof A.SassString0)
- t1 = _0_1.get$isVar();
- else
- t1 = false;
- else
- t1 = true;
- if (t1) {
- type$.SassString_2._as(_0_1);
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- if (t1 != null) {
- if (_0_2_isSet)
- number = _0_20;
- else {
- number = _0_2;
- _0_20 = number;
- _0_2_isSet = true;
- }
- if (number == null)
- number = type$.Object._as(number);
- if (_0_5_isSet)
- t1 = _0_50;
- else {
- t1 = _0_5;
- _0_50 = t1;
- _0_5_isSet = true;
- }
- t1 = t1 != null;
- if (t1) {
- if (_0_5_isSet)
- step = _0_50;
- else {
- step = _0_5;
- _0_50 = step;
- _0_5_isSet = true;
- }
- if (step == null)
- step = type$.Object._as(step);
- } else
- step = _null;
- } else {
- step = _null;
- number = step;
- t1 = false;
- }
- strategy = _0_1;
- } else {
- step = _null;
- number = step;
- strategy = number;
- t1 = false;
- }
- if (t1)
- return new A.SassCalculation0(_s5_, A._setArrayType([strategy, number, step], type$.JSArray_Object));
- if ((_0_2_isSet ? _0_20 : _0_2) != null)
- t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$0(A.S(strategyOrNumber) + string$.x20must_b, _null));
- t1 = A.SassScriptException$0("Invalid parameters.", _null);
- throw A.wrapException(t1);
- },
- SassCalculation_operateInternal0(operator, left, right, inLegacySassFunction, simplify) {
- var t1;
- if (!simplify)
- return new A.CalculationOperation0(operator, left, right);
- left = A.SassCalculation__simplify0(left);
- right = A.SassCalculation__simplify0(right);
- if (B.CalculationOperator_g2q0 === operator || B.CalculationOperator_CxF0 === operator) {
- if (left instanceof A.SassNumber0)
- if (right instanceof A.SassNumber0)
- t1 = inLegacySassFunction ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right);
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- return operator === B.CalculationOperator_g2q0 ? left.plus$1(right) : left.minus$1(right);
- A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([left, right], type$.JSArray_Object));
- if (right instanceof A.SassNumber0) {
- t1 = right._number1$_value;
- t1 = t1 < 0 && !A.fuzzyEquals0(t1, 0);
- } else
- t1 = false;
- if (t1) {
- right = right.times$1(A.SassNumber_SassNumber0(-1, null));
- operator = operator === B.CalculationOperator_g2q0 ? B.CalculationOperator_CxF0 : B.CalculationOperator_g2q0;
- }
- return new A.CalculationOperation0(operator, left, right);
- } else if (left instanceof A.SassNumber0 && right instanceof A.SassNumber0)
- return operator === B.CalculationOperator_1710 ? left.times$1(right) : left.dividedBy$1(right);
- else
- return new A.CalculationOperation0(operator, left, right);
- },
- SassCalculation__roundWithStep0(strategy, number, step) {
- var _0_2, t1, _0_6, _0_8_isSet, _0_8, _0_9_isSet, _0_9, _0_11, _0_13, stepWithNumberUnit, t2, _null = null;
- if (!A.LinkedHashSet_LinkedHashSet$_literal(["nearest", "up", "down", "to-zero"], type$.String).contains$1(0, strategy))
- throw A.wrapException(A.ArgumentError$(strategy + string$.x20must_b, _null));
- _0_2 = number._number1$_value;
- if (_0_2 == 1 / 0 || _0_2 == -1 / 0) {
- t1 = step._number1$_value;
- t1 = t1 == 1 / 0 || t1 == -1 / 0;
- } else
- t1 = false;
- if (!t1) {
- t1 = step._number1$_value;
- t1 = t1 === 0 || isNaN(_0_2) || isNaN(t1);
- } else
- t1 = true;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits0(0 / 0, number.get$denominatorUnits(number), t1);
- }
- if (_0_2 == 1 / 0 || _0_2 == -1 / 0)
- return number;
- t1 = step._number1$_value;
- if (t1 == 1 / 0 || t1 == -1 / 0) {
- $label0$0: {
- if (0 === _0_2) {
- t1 = number;
- break $label0$0;
- }
- _0_6 = "nearest" === strategy;
- t1 = _0_6;
- _0_8_isSet = !t1;
- if (_0_8_isSet) {
- _0_8 = "to-zero" === strategy;
- _0_9_isSet = _0_8;
- } else {
- _0_8 = _null;
- _0_9_isSet = true;
- }
- if (_0_9_isSet) {
- _0_9 = _0_2 > 0;
- t1 = _0_9;
- } else {
- _0_9 = _null;
- t1 = false;
- }
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits0(0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- if (!_0_6)
- if (_0_8_isSet)
- t1 = _0_8;
- else {
- _0_8 = "to-zero" === strategy;
- t1 = _0_8;
- }
- else
- t1 = true;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits0(-0.0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- _0_11 = "up" === strategy;
- t1 = _0_11;
- if (t1)
- if (_0_9_isSet)
- t1 = _0_9;
- else {
- _0_9 = _0_2 > 0;
- t1 = _0_9;
- }
- else
- t1 = false;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits0(1 / 0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- if (_0_11) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits0(-0.0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- _0_13 = "down" === strategy;
- t1 = _0_13;
- if (t1)
- t1 = _0_2 < 0;
- else
- t1 = false;
- if (t1) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits0(-1 / 0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- if (_0_13) {
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits0(0, number.get$denominatorUnits(number), t1);
- break $label0$0;
- }
- t1 = A.throwExpression(A.UnsupportedError$("Invalid argument: " + strategy + "."));
- }
- return t1;
- }
- stepWithNumberUnit = step.convertValueToMatch$1(number);
- $label1$1: {
- if ("nearest" === strategy) {
- t1 = B.JSNumber_methods.round$0(_0_2 / stepWithNumberUnit);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- break $label1$1;
- }
- if ("up" === strategy) {
- t2 = _0_2 / stepWithNumberUnit;
- t1 = t1 < 0 ? B.JSNumber_methods.floor$0(t2) : B.JSNumber_methods.ceil$0(t2);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- break $label1$1;
- }
- if ("down" === strategy) {
- t2 = _0_2 / stepWithNumberUnit;
- t1 = t1 < 0 ? B.JSNumber_methods.ceil$0(t2) : B.JSNumber_methods.floor$0(t2);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- break $label1$1;
- }
- if ("to-zero" === strategy) {
- t1 = _0_2 / stepWithNumberUnit;
- if (_0_2 < 0) {
- t1 = B.JSNumber_methods.ceil$0(t1);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- } else {
- t1 = B.JSNumber_methods.floor$0(t1);
- t2 = number.get$numeratorUnits(number);
- t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
- t1 = t2;
- }
- break $label1$1;
- }
- t1 = number.get$numeratorUnits(number);
- t1 = A.SassNumber_SassNumber$withUnits0(0 / 0, number.get$denominatorUnits(number), t1);
- break $label1$1;
- }
- return t1;
- },
- SassCalculation__simplify0(arg) {
- var t1, _0_11_isSet, _0_11, _0_12, _0_15, _0_16_isSet, _0_16, text, _0_12_isSet, _0_15_isSet, value, _null = null,
- _s32_ = " can't be used in a calculation.";
- $label0$0: {
- if (arg instanceof A.SassNumber0 || arg instanceof A.CalculationOperation0) {
- t1 = arg;
- break $label0$0;
- }
- if (arg instanceof A.CalculationInterpolation) {
- t1 = new A.SassString0("(" + arg._calculation0$_value + ")", false);
- break $label0$0;
- }
- t1 = arg instanceof A.SassString0;
- if (t1 && !arg._string0$_hasQuotes) {
- t1 = arg;
- break $label0$0;
- }
- if (t1)
- A.throwExpression(A.SassScriptException$0("Quoted string " + arg.toString$0(0) + _s32_, _null));
- _0_11_isSet = arg instanceof A.SassCalculation0;
- if (_0_11_isSet) {
- _0_11 = "calc" === arg.name;
- if (_0_11) {
- _0_12 = arg.$arguments;
- _0_15 = _0_12.length === 1;
- _0_16_isSet = _0_15;
- if (_0_16_isSet) {
- _0_16 = _0_12[0];
- t1 = _0_16;
- if (t1 instanceof A.SassString0) {
- type$.SassString_2._as(_0_16);
- if (!_0_16._string0$_hasQuotes) {
- text = _0_16._string0$_text;
- t1 = A.SassCalculation__needsParentheses0(text);
- } else {
- text = _null;
- t1 = false;
- }
- } else {
- text = _null;
- t1 = false;
- }
- } else {
- text = _null;
- _0_16 = text;
- t1 = false;
- }
- } else {
- text = _null;
- _0_16 = text;
- _0_12 = _0_16;
- _0_15 = _0_12;
- _0_16_isSet = false;
- t1 = false;
- }
- _0_12_isSet = _0_11;
- _0_15_isSet = _0_12_isSet;
- } else {
- text = _null;
- _0_16 = text;
- _0_12 = _0_16;
- _0_15 = _0_12;
- _0_11 = _0_15;
- _0_15_isSet = false;
- _0_12_isSet = false;
- _0_16_isSet = false;
- t1 = false;
- }
- if (t1) {
- t1 = new A.SassString0("(" + A.S(text) + ")", false);
- break $label0$0;
- }
- if (_0_11_isSet)
- if (_0_11)
- if (_0_15_isSet)
- t1 = _0_15;
- else {
- if (_0_12_isSet)
- t1 = _0_12;
- else {
- _0_12 = arg.$arguments;
- t1 = _0_12;
- _0_12_isSet = true;
- }
- _0_15 = t1.length === 1;
- t1 = _0_15;
- }
- else
- t1 = false;
- else
- t1 = false;
- if (t1) {
- if (_0_16_isSet)
- value = _0_16;
- else {
- _0_16 = (_0_12_isSet ? _0_12 : arg.$arguments)[0];
- value = _0_16;
- }
- t1 = value;
- break $label0$0;
- }
- if (_0_11_isSet) {
- t1 = arg;
- break $label0$0;
- }
- if (arg instanceof A.Value0)
- A.throwExpression(A.SassScriptException$0("Value " + arg.toString$0(0) + _s32_, _null));
- t1 = A.throwExpression(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", _null));
- }
- return t1;
- },
- SassCalculation__needsParentheses0(text) {
- var t1, couldBeVar, second, third, fourth, i, t2,
- first = text.charCodeAt(0);
- if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47 || first === 42)
- return true;
- t1 = text.length;
- couldBeVar = t1 >= 4 && A.characterEqualsIgnoreCase0(first, 118);
- if (t1 < 2)
- return false;
- second = text.charCodeAt(1);
- if (second === 32 || second === 9 || second === 10 || second === 13 || second === 12 || second === 47 || second === 42)
- return true;
- couldBeVar = couldBeVar && A.characterEqualsIgnoreCase0(second, 97);
- if (t1 < 3)
- return false;
- third = text.charCodeAt(2);
- if (third === 32 || third === 9 || third === 10 || third === 13 || third === 12 || third === 47 || third === 42)
- return true;
- couldBeVar = couldBeVar && A.characterEqualsIgnoreCase0(third, 114);
- if (t1 < 4)
- return false;
- fourth = text.charCodeAt(3);
- if (couldBeVar && fourth === 40)
- return true;
- if (fourth === 32 || fourth === 9 || fourth === 10 || fourth === 13 || fourth === 12 || fourth === 47 || fourth === 42)
- return true;
- for (i = 4; i < t1; ++i) {
- t2 = text.charCodeAt(i);
- if (t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || t2 === 47 || t2 === 42)
- return true;
- }
- return false;
- },
- SassCalculation__verifyCompatibleNumbers0(args) {
- var t1, _i, t2, arg, i, number1, j, number2;
- for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) {
- arg = args[_i];
- if (arg instanceof A.SassNumber0 && arg.get$hasComplexUnits())
- throw A.wrapException(A.SassScriptException$0("Number " + A.S(arg) + " isn't compatible with CSS calculations.", null));
- }
- for (t1 = t2, i = 0; i < t1 - 1; ++i) {
- number1 = args[i];
- if (!(number1 instanceof A.SassNumber0))
- continue;
- for (j = i + 1; t1 = args.length, j < t1; ++j) {
- number2 = args[j];
- if (!(number2 instanceof A.SassNumber0))
- continue;
- if (number1.hasPossiblyCompatibleUnits$1(number2))
- continue;
- throw A.wrapException(A.SassScriptException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null));
- }
- }
- },
- SassCalculation__verifyLength0(args, expectedLength) {
- var t1;
- if (args.length === expectedLength)
- return;
- if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure0()))
- return;
- t1 = args.length;
- throw A.wrapException(A.SassScriptException$0("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", null));
- },
- SassCalculation__singleArgument0($name, argument, mathFunc, forbidUnits) {
- argument = A.SassCalculation__simplify0(argument);
- if (!(argument instanceof A.SassNumber0))
- return new A.SassCalculation0($name, A._setArrayType([argument], type$.JSArray_Object));
- if (forbidUnits)
- argument.assertNoUnits$0();
- return mathFunc.call$1(argument);
- },
- SassCalculation0: function SassCalculation0(t0, t1) {
- this.name = t0;
- this.$arguments = t1;
- },
- SassCalculation__verifyLength_closure0: function SassCalculation__verifyLength_closure0() {
- },
- CalculationOperation0: function CalculationOperation0(t0, t1, t2) {
- this._calculation0$_operator = t0;
- this._calculation0$_left = t1;
- this._calculation0$_right = t2;
- },
- CalculationOperator0: function CalculationOperator0(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.operator = t1;
- _.precedence = t2;
- _._name = t3;
- },
- CalculationInterpolation: function CalculationInterpolation(t0) {
- this._calculation0$_value = t0;
- },
- CallableDeclaration0: function CallableDeclaration0() {
- },
- updateCanonicalizeContextPrototype() {
- var t1 = type$.JSClass._as(new A.CanonicalizeContext0(false, null).constructor);
- A.LinkedHashMap_LinkedHashMap$_literal(["fromImport", new A.updateCanonicalizeContextPrototype_closure(), "containingUrl", new A.updateCanonicalizeContextPrototype_closure0()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(t1));
- return null;
- },
- updateCanonicalizeContextPrototype_closure: function updateCanonicalizeContextPrototype_closure() {
- },
- updateCanonicalizeContextPrototype_closure0: function updateCanonicalizeContextPrototype_closure0() {
- },
- CanonicalizeContext0: function CanonicalizeContext0(t0, t1) {
- this._canonicalize_context$_fromImport = t0;
- this._canonicalize_context$_containingUrl = t1;
- this._canonicalize_context$_wasContainingUrlAccessed = false;
- },
- Chokidar0: function Chokidar0() {
- },
- ChokidarOptions0: function ChokidarOptions0() {
- },
- ChokidarWatcher0: function ChokidarWatcher0() {
- },
- ClassSelector0: function ClassSelector0(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- cloneCssStylesheet0(stylesheet, extensionStore) {
- var _0_0 = extensionStore.clone$0();
- return new A._Record_2(new A._CloneCssVisitor0(_0_0._1)._clone_css$_visitChildren$2(A.ModifiableCssStylesheet$0(stylesheet.get$span(stylesheet)), stylesheet), _0_0._0);
- },
- _CloneCssVisitor0: function _CloneCssVisitor0(t0) {
- this._clone_css$_oldToNewSelectors = t0;
- },
- ColorExpression0: function ColorExpression0(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- _updateComponents0($arguments, adjust, change, scale) {
- var keywords, alpha, red, green, blue, hue, saturation, lightness, whiteness, blackness, hasRgb, hasSL, hasWB, t2, t3, t4, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- if (argumentList._list1$_contents.length !== 0)
- throw A.wrapException(A.SassScriptException$0(string$.Only_op, _null));
- argumentList._argument_list$_wereKeywordsAccessed = true;
- keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, type$.String, type$.Value_2);
- t1 = new A._updateComponents_getParam0(keywords, scale, change);
- alpha = t1.call$3$checkUnitless("alpha", 1, true);
- red = t1.call$2("red", 255);
- green = t1.call$2("green", 255);
- blue = t1.call$2("blue", 255);
- hue = scale ? _null : A.NullableExtension_andThen0(keywords.remove$1(0, "hue"), new A._updateComponents_closure1());
- saturation = t1.call$3$checkPercent("saturation", 100, true);
- lightness = t1.call$3$checkPercent("lightness", 100, true);
- whiteness = t1.call$3$assertPercent("whiteness", 100, true);
- blackness = t1.call$3$assertPercent("blackness", 100, true);
- t1 = keywords.__js_helper$_length;
- if (t1 !== 0)
- throw A.wrapException(A.SassScriptException$0("No " + A.pluralize0("argument", t1, _null) + " named " + A.toSentence0(keywords.get$keys(0).map$1$1(0, new A._updateComponents_closure2(), type$.Object), "or") + ".", _null));
- hasRgb = red != null || green != null || blue != null;
- hasSL = saturation != null || lightness != null;
- hasWB = whiteness != null || blackness != null;
- if (hasRgb)
- t1 = hasSL || hasWB || hue != null;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(A.SassScriptException$0(string$.RGB_pa + (hasWB ? "HWB" : "HSL") + " parameters.", _null));
- if (hasSL && hasWB)
- throw A.wrapException(A.SassScriptException$0(string$.HSL_pa, _null));
- t1 = new A._updateComponents_updateValue0(change, adjust);
- t2 = new A._updateComponents_updateRgb0(t1);
- if (hasRgb) {
- t3 = t2.call$2(color.get$red(0), red);
- t4 = t2.call$2(color.get$green(0), green);
- t2 = t2.call$2(color.get$blue(0), blue);
- return color.changeRgb$4$alpha$blue$green$red(t1.call$3(color._color1$_alpha, alpha, 1), t2, t4, t3);
- } else if (hasWB) {
- if (change)
- t2 = hue;
- else {
- t2 = color.get$hue(0);
- t2 += hue == null ? 0 : hue;
- }
- t3 = t1.call$3(color.get$whiteness(0), whiteness, 100);
- t4 = t1.call$3(color.get$blackness(0), blackness, 100);
- return color.changeHwb$4$alpha$blackness$hue$whiteness(t1.call$3(color._color1$_alpha, alpha, 1), t4, t2, t3);
- } else {
- t2 = hue == null;
- if (!t2 || hasSL) {
- if (change)
- t2 = hue;
- else {
- t3 = color.get$hue(0);
- t3 += t2 ? 0 : hue;
- t2 = t3;
- }
- t3 = t1.call$3(color.get$saturation(0), saturation, 100);
- t4 = t1.call$3(color.get$lightness(0), lightness, 100);
- return color.changeHsl$4$alpha$hue$lightness$saturation(t1.call$3(color._color1$_alpha, alpha, 1), t2, t4, t3);
- } else if (alpha != null)
- return color.changeAlpha$1(t1.call$3(color._color1$_alpha, alpha, 1));
- else
- return color;
- }
- },
- _functionString0($name, $arguments) {
- return new A.SassString0($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure0(), type$.String).join$1(0, ", ") + ")", false);
- },
- _removedColorFunction0($name, argument, negative) {
- return A.BuiltInCallable$function0($name, "$color, $amount", new A._removedColorFunction_closure0($name, argument, negative), "sass:color");
- },
- _rgb0($name, $arguments) {
- var t2, red, green, blue, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return A._functionString0($name, $arguments);
- red = t1.$index($arguments, 0).assertNumber$1("red");
- green = t1.$index($arguments, 1).assertNumber$1("green");
- blue = t1.$index($arguments, 2).assertNumber$1("blue");
- t1 = A.fuzzyRound0(A._percentageOrUnitless0(red, 255, "red"));
- t2 = A.fuzzyRound0(A._percentageOrUnitless0(green, 255, "green"));
- t3 = A.fuzzyRound0(A._percentageOrUnitless0(blue, 255, "blue"));
- t4 = A.NullableExtension_andThen0(alpha, new A._rgb_closure0());
- return A.SassColor$rgbInternal0(t1, t2, t3, t4 == null ? 1 : t4, B._ColorFormatEnum_rgbFunction0);
- },
- _rgbTwoArg0($name, $arguments) {
- var t2, color,
- t1 = J.getInterceptor$asx($arguments);
- if (!t1.$index($arguments, 0).get$isVar())
- t2 = !(t1.$index($arguments, 0) instanceof A.SassColor0) && t1.$index($arguments, 1).get$isVar();
- else
- t2 = true;
- if (t2)
- return A._functionString0($name, $arguments);
- else if (t1.$index($arguments, 1).get$isSpecialNumber()) {
- color = t1.$index($arguments, 0).assertColor$1("color");
- return new A.SassString0($name + "(" + color.get$red(0) + ", " + color.get$green(0) + ", " + color.get$blue(0) + ", " + A.serializeValue0(t1.$index($arguments, 1), false, true) + ")", false);
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeAlpha$1(A._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha"));
- },
- _hsl0($name, $arguments) {
- var t2, hue, saturation, lightness, t3,
- _s10_ = "saturation",
- _s9_ = "lightness",
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null;
- if (!t1.$index($arguments, 0).get$isSpecialNumber())
- if (!t1.$index($arguments, 1).get$isSpecialNumber())
- if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
- t2 = alpha == null ? null : alpha.get$isSpecialNumber();
- t2 = t2 === true;
- } else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- return A._functionString0($name, $arguments);
- hue = A._angleValue0(t1.$index($arguments, 0), "hue");
- saturation = t1.$index($arguments, 1).assertNumber$1(_s10_);
- lightness = t1.$index($arguments, 2).assertNumber$1(_s9_);
- A._checkPercent0(saturation, _s10_);
- A._checkPercent0(lightness, _s9_);
- t1 = B.JSNumber_methods.clamp$2(saturation._number1$_value, 0, 100);
- t2 = B.JSNumber_methods.clamp$2(lightness._number1$_value, 0, 100);
- t3 = A.NullableExtension_andThen0(alpha, new A._hsl_closure0());
- return A.SassColor$hslInternal0(hue, t1, t2, t3 == null ? 1 : t3, B._ColorFormatEnum_hslFunction0);
- },
- _angleValue0(angleValue, $name) {
- var angle = angleValue.assertNumber$1($name);
- if (angle.compatibleWithUnit$1("deg"))
- return angle.coerceValueToUnit$1("deg");
- A.warnForDeprecation0("$" + $name + ": Passing a unit other than deg (" + angle.toString$0(0) + string$.x29x20is_d + angle.unitSuggestion$1($name) + string$.x0a_See_, B.Deprecation_oCX);
- return angle._number1$_value;
- },
- _checkPercent0(number, $name) {
- if (number.hasUnit$1("%"))
- return;
- A.warnForDeprecation0("$" + $name + ": Passing a number without unit % (" + number.toString$0(0) + string$.x29x20is_d + number.unitSuggestion$2($name, "%") + string$.x0a_Morex3a, B.Deprecation_oCX);
- },
- _hwb0($arguments) {
- var t2, t3,
- _s9_ = "whiteness",
- _s9_0 = "blackness",
- t1 = J.getInterceptor$asx($arguments),
- alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
- hue = A._angleValue0(t1.$index($arguments, 0), "hue"),
- whiteness = t1.$index($arguments, 1).assertNumber$1(_s9_),
- blackness = t1.$index($arguments, 2).assertNumber$1(_s9_0);
- whiteness.assertUnit$2("%", _s9_);
- blackness.assertUnit$2("%", _s9_0);
- t1 = whiteness.valueInRange$3(0, 100, _s9_);
- t2 = blackness.valueInRange$3(0, 100, _s9_0);
- t3 = A.NullableExtension_andThen0(alpha, new A._hwb_closure0());
- return A.SassColor_SassColor$hwb0(hue, t1, t2, t3 == null ? 1 : t3);
- },
- _parseChannels0($name, argumentNames, channels) {
- var list, t1, channels0, alphaFromSlashList, isCommaSeparated, isBracketed, buffer, _0_4, _1_0, _1_2_isSet, _1_2, t2, _null = null,
- _s17_ = "$channels must be";
- if (channels.get$isVar())
- return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2));
- if (channels.get$separator(channels) === B.ListSeparator_cQA0) {
- list = channels.get$asList();
- t1 = list.length;
- if (t1 !== 2)
- throw A.wrapException(A.SassScriptException$0(string$.Only_2 + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", _null));
- channels0 = list[0];
- alphaFromSlashList = list[1];
- if (!alphaFromSlashList.get$isSpecialNumber())
- alphaFromSlashList.assertNumber$1("alpha");
- if (list[0].get$isVar())
- return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2));
- } else {
- alphaFromSlashList = _null;
- channels0 = channels;
- }
- isCommaSeparated = channels0.get$separator(channels0) === B.ListSeparator_ECn0;
- isBracketed = channels0.get$hasBrackets();
- if (isCommaSeparated || isBracketed) {
- buffer = new A.StringBuffer(_s17_);
- if (isBracketed) {
- t1 = _s17_ + " an unbracketed";
- buffer._contents = t1;
- } else
- t1 = _s17_;
- if (isCommaSeparated) {
- t1 += isBracketed ? "," : " a";
- buffer._contents = t1;
- t1 = buffer._contents = t1 + " space-separated";
- }
- buffer._contents = t1 + " list.";
- throw A.wrapException(A.SassScriptException$0(buffer.toString$0(0), _null));
- }
- list = channels0.get$asList();
- if (list.length >= 2) {
- _0_4 = list[0];
- t1 = _0_4;
- if (t1 instanceof A.SassString0) {
- type$.SassString_2._as(_0_4);
- t1 = !_0_4._string0$_hasQuotes && A.equalsIgnoreCase0(_0_4._string0$_text, "from");
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2));
- t1 = list.length;
- if (t1 > 3)
- throw A.wrapException(A.SassScriptException$0("Only 3 elements allowed, but " + t1 + " were passed.", _null));
- else if (t1 < 3) {
- if (!B.JSArray_methods.any$1(list, new A._parseChannels_closure0()))
- if (list.length !== 0) {
- t1 = B.JSArray_methods.get$last(list);
- if (t1 instanceof A.SassString0)
- if (t1._string0$_hasQuotes) {
- t1 = t1._string0$_text;
- t1 = A.startsWithIgnoreCase0(t1, "var(") && B.JSString_methods.contains$1(t1, "/");
- } else
- t1 = false;
- else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return A._functionString0($name, A._setArrayType([channels], type$.JSArray_Value_2));
- else
- throw A.wrapException(A.SassScriptException$0("Missing element " + argumentNames[list.length] + ".", _null));
- }
- if (alphaFromSlashList != null) {
- t1 = A.List_List$of(list, true, type$.Value_2);
- t1.push(alphaFromSlashList);
- return t1;
- }
- _1_0 = list[2];
- $label0$0: {
- _1_2_isSet = _1_0 instanceof A.SassNumber0;
- if (_1_2_isSet) {
- _1_2 = _1_0.asSlash;
- t1 = type$.Record_2_nullable_Object_and_nullable_Object._is(_1_2);
- } else {
- _1_2 = _null;
- t1 = false;
- }
- if (t1) {
- if (_1_2_isSet)
- t1 = _1_2;
- else {
- _1_2 = _1_0.asSlash;
- t1 = _1_2;
- _1_2_isSet = true;
- }
- if (t1 == null)
- t1 = type$.Record_2_nullable_Object_and_nullable_Object._as(t1);
- t2 = _1_2_isSet ? _1_2 : _1_0.asSlash;
- if (t2 == null)
- t2 = type$.Record_2_nullable_Object_and_nullable_Object._as(t2);
- t2 = A._setArrayType([list[0], list[1], t1._0, t2._1], type$.JSArray_Value_2);
- t1 = t2;
- break $label0$0;
- }
- if (_1_0 instanceof A.SassString0)
- if (!_1_0._string0$_hasQuotes)
- t1 = B.JSString_methods.contains$1(_1_0._string0$_text, "/");
- else
- t1 = false;
- else
- t1 = false;
- if (t1) {
- t1 = A._functionString0($name, A._setArrayType([channels0], type$.JSArray_Value_2));
- break $label0$0;
- }
- t1 = list;
- break $label0$0;
- }
- return t1;
- },
- _percentageOrUnitless0(number, max, $name) {
- var value;
- if (!number.get$hasUnits())
- value = number._number1$_value;
- else if (number.hasUnit$1("%"))
- value = max * number._number1$_value / 100;
- else
- throw A.wrapException(A.SassScriptException$0("$" + $name + ": Expected " + number.toString$0(0) + ' to have unit "%" or no units.', null));
- return B.JSNumber_methods.clamp$2(value, 0, max);
- },
- _mixColors0(color1, color2, weight) {
- var weightScale, normalizedWeight, t1, t2, alphaDistance, t3, weight1, weight2;
- A._checkPercent0(weight, "weight");
- weightScale = weight.valueInRange$3(0, 100, "weight") / 100;
- normalizedWeight = weightScale * 2 - 1;
- t1 = color1._color1$_alpha;
- t2 = color2._color1$_alpha;
- alphaDistance = t1 - t2;
- t3 = normalizedWeight * alphaDistance;
- weight1 = ((t3 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t3)) + 1) / 2;
- weight2 = 1 - weight1;
- return A.SassColor$rgb0(A.fuzzyRound0(color1.get$red(0) * weight1 + color2.get$red(0) * weight2), A.fuzzyRound0(color1.get$green(0) * weight1 + color2.get$green(0) * weight2), A.fuzzyRound0(color1.get$blue(0) * weight1 + color2.get$blue(0) * weight2), t1 * weightScale + t2 * (1 - weightScale));
- },
- _opacify0($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha + t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
- },
- _transparentize0($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color");
- return color.changeAlpha$1(B.JSNumber_methods.clamp$2(color._color1$_alpha - t1.$index($arguments, 1).assertNumber$1("amount").valueInRangeWithUnit$4(0, 1, "amount", ""), 0, 1));
- },
- _function11($name, $arguments, callback) {
- return A.BuiltInCallable$function0($name, $arguments, callback, "sass:color");
- },
- global_closure32: function global_closure32() {
- },
- global_closure33: function global_closure33() {
- },
- global_closure34: function global_closure34() {
- },
- global_closure35: function global_closure35() {
- },
- global_closure36: function global_closure36() {
- },
- global_closure37: function global_closure37() {
- },
- global_closure38: function global_closure38() {
- },
- global_closure39: function global_closure39() {
- },
- global_closure40: function global_closure40() {
- },
- global_closure41: function global_closure41() {
- },
- global_closure42: function global_closure42() {
- },
- global_closure43: function global_closure43() {
- },
- global_closure44: function global_closure44() {
- },
- global_closure45: function global_closure45() {
- },
- global_closure46: function global_closure46() {
- },
- global_closure47: function global_closure47() {
- },
- global_closure48: function global_closure48() {
- },
- global_closure49: function global_closure49() {
- },
- global_closure50: function global_closure50() {
- },
- global_closure51: function global_closure51() {
- },
- global_closure52: function global_closure52() {
- },
- global_closure53: function global_closure53() {
- },
- global_closure54: function global_closure54() {
- },
- global_closure55: function global_closure55() {
- },
- global_closure56: function global_closure56() {
- },
- global_closure57: function global_closure57() {
- },
- global__closure0: function global__closure0() {
- },
- global_closure58: function global_closure58() {
- },
- module_closure12: function module_closure12() {
- },
- module_closure13: function module_closure13() {
- },
- module_closure14: function module_closure14() {
- },
- module_closure15: function module_closure15() {
- },
- module_closure16: function module_closure16() {
- },
- module_closure17: function module_closure17() {
- },
- module_closure18: function module_closure18() {
- },
- module_closure19: function module_closure19() {
- },
- module__closure4: function module__closure4() {
- },
- module_closure20: function module_closure20() {
- },
- _red_closure0: function _red_closure0() {
- },
- _green_closure0: function _green_closure0() {
- },
- _blue_closure0: function _blue_closure0() {
- },
- _mix_closure0: function _mix_closure0() {
- },
- _hue_closure0: function _hue_closure0() {
- },
- _saturation_closure0: function _saturation_closure0() {
- },
- _lightness_closure0: function _lightness_closure0() {
- },
- _complement_closure0: function _complement_closure0() {
- },
- _adjust_closure0: function _adjust_closure0() {
- },
- _scale_closure0: function _scale_closure0() {
- },
- _change_closure0: function _change_closure0() {
- },
- _ieHexStr_closure0: function _ieHexStr_closure0() {
- },
- _ieHexStr_closure_hexString0: function _ieHexStr_closure_hexString0() {
- },
- _updateComponents_getParam0: function _updateComponents_getParam0(t0, t1, t2) {
- this.keywords = t0;
- this.scale = t1;
- this.change = t2;
- },
- _updateComponents_closure1: function _updateComponents_closure1() {
- },
- _updateComponents_closure2: function _updateComponents_closure2() {
- },
- _updateComponents_updateValue0: function _updateComponents_updateValue0(t0, t1) {
- this.change = t0;
- this.adjust = t1;
- },
- _updateComponents_updateRgb0: function _updateComponents_updateRgb0(t0) {
- this.updateValue = t0;
- },
- _functionString_closure0: function _functionString_closure0() {
- },
- _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) {
- this.name = t0;
- this.argument = t1;
- this.negative = t2;
- },
- _rgb_closure0: function _rgb_closure0() {
- },
- _hsl_closure0: function _hsl_closure0() {
- },
- _hwb_closure0: function _hwb_closure0() {
- },
- _parseChannels_closure0: function _parseChannels_closure0() {
- },
- colorClass_closure: function colorClass_closure() {
- },
- colorClass__closure: function colorClass__closure() {
- },
- colorClass__closure0: function colorClass__closure0() {
- },
- colorClass__closure1: function colorClass__closure1() {
- },
- colorClass__closure2: function colorClass__closure2() {
- },
- colorClass__closure3: function colorClass__closure3() {
- },
- colorClass__closure4: function colorClass__closure4() {
- },
- colorClass__closure5: function colorClass__closure5() {
- },
- colorClass__closure6: function colorClass__closure6() {
- },
- colorClass__closure7: function colorClass__closure7() {
- },
- colorClass__closure8: function colorClass__closure8() {
- },
- colorClass__closure9: function colorClass__closure9() {
- },
- _Channels: function _Channels() {
- },
- _NodeSassColor: function _NodeSassColor() {
- },
- legacyColorClass_closure: function legacyColorClass_closure() {
- },
- legacyColorClass_closure0: function legacyColorClass_closure0() {
- },
- legacyColorClass_closure1: function legacyColorClass_closure1() {
- },
- legacyColorClass_closure2: function legacyColorClass_closure2() {
- },
- legacyColorClass_closure3: function legacyColorClass_closure3() {
- },
- legacyColorClass_closure4: function legacyColorClass_closure4() {
- },
- legacyColorClass_closure5: function legacyColorClass_closure5() {
- },
- legacyColorClass_closure6: function legacyColorClass_closure6() {
- },
- legacyColorClass_closure7: function legacyColorClass_closure7() {
- },
- SassColor$rgb0(red, green, blue, alpha) {
- var _null = null,
- t1 = new A.SassColor0(red, green, blue, _null, _null, _null, A.fuzzyAssertRange0(A.SassColor__handleNullAlpha0(alpha), 0, 1, "alpha"), _null);
- A.RangeError_checkValueInInterval(t1.get$red(0), 0, 255, "red");
- A.RangeError_checkValueInInterval(t1.get$green(0), 0, 255, "green");
- A.RangeError_checkValueInInterval(t1.get$blue(0), 0, 255, "blue");
- return t1;
- },
- SassColor$rgbInternal0(_red, _green, _blue, alpha, format) {
- var t1 = new A.SassColor0(_red, _green, _blue, null, null, null, A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), format);
- A.RangeError_checkValueInInterval(t1.get$red(0), 0, 255, "red");
- A.RangeError_checkValueInInterval(t1.get$green(0), 0, 255, "green");
- A.RangeError_checkValueInInterval(t1.get$blue(0), 0, 255, "blue");
- return t1;
- },
- SassColor$hsl(hue, saturation, lightness, alpha) {
- var _null = null,
- t1 = A.SassColor__handleNullAlpha0(alpha);
- return new A.SassColor0(_null, _null, _null, B.JSNumber_methods.$mod(hue, 360), A.fuzzyAssertRange0(saturation, 0, 100, "saturation"), A.fuzzyAssertRange0(lightness, 0, 100, "lightness"), A.fuzzyAssertRange0(t1, 0, 1, "alpha"), _null);
- },
- SassColor$hslInternal0(hue, saturation, lightness, alpha, format) {
- return new A.SassColor0(null, null, null, B.JSNumber_methods.$mod(hue, 360), A.fuzzyAssertRange0(saturation, 0, 100, "saturation"), A.fuzzyAssertRange0(lightness, 0, 100, "lightness"), A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), format);
- },
- SassColor_SassColor$hwb0(hue, whiteness, blackness, alpha) {
- var t2, t1 = {},
- scaledHue = B.JSNumber_methods.$mod(hue, 360) / 360,
- scaledWhiteness = t1.scaledWhiteness = A.fuzzyAssertRange0(whiteness, 0, 100, "whiteness") / 100,
- scaledBlackness = A.fuzzyAssertRange0(blackness, 0, 100, "blackness") / 100,
- sum = scaledWhiteness + scaledBlackness;
- if (sum > 1) {
- t2 = t1.scaledWhiteness = scaledWhiteness / sum;
- scaledBlackness /= sum;
- } else
- t2 = scaledWhiteness;
- t2 = new A.SassColor_SassColor$hwb_toRgb0(t1, 1 - t2 - scaledBlackness);
- return A.SassColor$rgb0(t2.call$1(scaledHue + 0.3333333333333333), t2.call$1(scaledHue), t2.call$1(scaledHue - 0.3333333333333333), alpha);
- },
- SassColor__handleNullAlpha0(alpha) {
- if (alpha != null)
- return alpha;
- A.warnForDeprecation0("Passing null for alpha in the JS API is deprecated.\nTo preserve current behavior, pass 1 or undefined instead.\nMore info: https://sass-lang.com/d/null-alpha", B.Deprecation_omH);
- return 1;
- },
- SassColor__hueToRgb0(m1, m2, hue) {
- var t1;
- if (hue < 0)
- ++hue;
- if (hue > 1)
- --hue;
- $label0$0: {
- if (hue < 0.16666666666666666) {
- t1 = m1 + (m2 - m1) * hue * 6;
- break $label0$0;
- }
- if (hue < 0.5) {
- t1 = m2;
- break $label0$0;
- }
- if (hue < 0.6666666666666666) {
- t1 = m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
- break $label0$0;
- }
- t1 = m1;
- break $label0$0;
- }
- return t1;
- },
- SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _._color1$_red = t0;
- _._color1$_green = t1;
- _._color1$_blue = t2;
- _._color1$_hue = t3;
- _._color1$_saturation = t4;
- _._color1$_lightness = t5;
- _._color1$_alpha = t6;
- _.format = t7;
- },
- SassColor_SassColor$hwb_toRgb0: function SassColor_SassColor$hwb_toRgb0(t0, t1) {
- this._box_0 = t0;
- this.factor = t1;
- },
- _ColorFormatEnum0: function _ColorFormatEnum0(t0) {
- this._color1$_name = t0;
- },
- SpanColorFormat0: function SpanColorFormat0(t0) {
- this._color1$_span = t0;
- },
- Combinator0: function Combinator0(t0, t1) {
- this._combinator0$_text = t0;
- this._name = t1;
- },
- ModifiableCssComment0: function ModifiableCssComment0(t0, t1) {
- var _ = this;
- _.text = t0;
- _.span = t1;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- compile0(path, options) {
- var color, ascii, logger, result, error, stackTrace, t1, color0, ascii0, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, exception, _null = null;
- if (!A.isNodeJs())
- A.jsThrow(new self.Error("The compile() method is only available in Node.js."));
- t1 = options == null;
- color0 = t1 ? _null : J.get$alertColor$x(options);
- color = color0 == null ? A.hasTerminal0() : color0;
- ascii0 = t1 ? _null : J.get$alertAscii$x(options);
- ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0;
- t2 = t1 ? _null : J.get$logger$x(options);
- t3 = ascii;
- if (t3 == null)
- t3 = $._glyphs === B.C_AsciiGlyphSet;
- logger = new A.JSToDartLogger(t2, new A.StderrLogger0(color), t3);
- try {
- t2 = t1 ? _null : J.get$loadPaths$x(options);
- t3 = t1 ? _null : J.get$quietDeps$x(options);
- if (t3 == null)
- t3 = false;
- t4 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options));
- t5 = t1 ? _null : J.get$verbose$x(options);
- if (t5 == null)
- t5 = false;
- t6 = t1 ? _null : J.get$charset$x(options);
- if (t6 == null)
- t6 = true;
- t7 = t1 ? _null : J.get$sourceMap$x(options);
- if (t7 == null)
- t7 = false;
- t8 = logger;
- if (t1)
- t9 = _null;
- else {
- t9 = J.get$importers$x(options);
- t9 = t9 == null ? _null : J.map$1$1$ax(t9, A.compile___parseImporter$closure(), type$.Importer);
- }
- t10 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false);
- t11 = t1 ? _null : J.get$fatalDeprecations$x(options);
- t11 = A._parseDeprecations(logger, t11, true);
- t12 = t1 ? _null : J.get$silenceDeprecations$x(options);
- t12 = A._parseDeprecations(logger, t12, false);
- t13 = t1 ? _null : J.get$futureDeprecations$x(options);
- t13 = A._parseDeprecations(logger, t13, false);
- result = A.compile(path, t6, t11, new A.CastList(t10, A._arrayInstanceType(t10)._eval$1("CastList<1,Callable>")), t13, A.ImportCache$0(t9, t2, t8 == null ? new A.StderrLogger0(color) : t8, _null), _null, _null, t8, _null, t3, t12, t7, t4, _null, true, t5);
- t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options);
- if (t1 == null)
- t1 = false;
- t1 = A._convertResult(result, t1);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwNodeException(error, ascii, color, stackTrace);
- } else
- throw exception;
- }
- },
- compileString0(text, options) {
- var logger, result, error, stackTrace, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, exception, _null = null,
- t1 = options == null,
- color0 = t1 ? _null : J.get$alertColor$x(options),
- color = color0 == null ? A.hasTerminal0() : color0,
- ascii0 = t1 ? _null : J.get$alertAscii$x(options),
- ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0,
- t2 = t1 ? _null : J.get$logger$x(options),
- t3 = ascii;
- if (t3 == null)
- t3 = $._glyphs === B.C_AsciiGlyphSet;
- logger = new A.JSToDartLogger(t2, new A.StderrLogger0(color), t3);
- try {
- t2 = A.parseSyntax(t1 ? _null : J.get$syntax$x(options));
- t3 = t1 ? _null : A.NullableExtension_andThen0(J.get$url$x(options), A.utils1__jsToDartUrl$closure());
- t4 = t1 ? _null : J.get$loadPaths$x(options);
- t5 = t1 ? _null : J.get$quietDeps$x(options);
- if (t5 == null)
- t5 = false;
- t6 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options));
- t7 = t1 ? _null : J.get$verbose$x(options);
- if (t7 == null)
- t7 = false;
- t8 = t1 ? _null : J.get$charset$x(options);
- if (t8 == null)
- t8 = true;
- t9 = t1 ? _null : J.get$sourceMap$x(options);
- if (t9 == null)
- t9 = false;
- t10 = logger;
- if (t1)
- t11 = _null;
- else {
- t11 = J.get$importers$x(options);
- t11 = t11 == null ? _null : J.map$1$1$ax(t11, A.compile___parseImporter$closure(), type$.Importer);
- }
- t12 = t1 ? _null : A.NullableExtension_andThen0(J.get$importer$x(options), A.compile___parseImporter$closure());
- if (t12 == null)
- t12 = (t1 ? _null : J.get$url$x(options)) == null ? new A.NoOpImporter0() : _null;
- t13 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false);
- t14 = t1 ? _null : J.get$fatalDeprecations$x(options);
- t14 = A._parseDeprecations(logger, t14, true);
- t15 = t1 ? _null : J.get$silenceDeprecations$x(options);
- t15 = A._parseDeprecations(logger, t15, false);
- t16 = t1 ? _null : J.get$futureDeprecations$x(options);
- t16 = A._parseDeprecations(logger, t16, false);
- result = A.compileString(text, t8, t14, new A.CastList(t13, A._arrayInstanceType(t13)._eval$1("CastList<1,Callable>")), t16, A.ImportCache$0(t11, t4, t10 == null ? new A.StderrLogger0(color) : t10, _null), t12, _null, _null, t10, _null, t5, t15, t9, t6, t2, t3, true, t7);
- t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options);
- if (t1 == null)
- t1 = false;
- t1 = A._convertResult(result, t1);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwNodeException(error, ascii, color, stackTrace);
- } else
- throw exception;
- }
- },
- compileAsync1(path, options) {
- var t1, color, ascii;
- if (!A.isNodeJs())
- A.jsThrow(new self.Error("The compileAsync() method is only available in Node.js."));
- t1 = options == null;
- color = t1 ? null : J.get$alertColor$x(options);
- if (color == null)
- color = A.hasTerminal0();
- ascii = t1 ? null : J.get$alertAscii$x(options);
- if (ascii == null)
- ascii = $._glyphs === B.C_AsciiGlyphSet;
- t1 = t1 ? null : J.get$logger$x(options);
- return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileAsync_closure(path, color, options, new A.JSToDartLogger(t1, new A.StderrLogger0(color), ascii)).call$0()), ascii, color);
- },
- compileStringAsync1(text, options) {
- var ascii,
- t1 = options == null,
- color = t1 ? null : J.get$alertColor$x(options);
- if (color == null)
- color = A.hasTerminal0();
- ascii = t1 ? null : J.get$alertAscii$x(options);
- if (ascii == null)
- ascii = $._glyphs === B.C_AsciiGlyphSet;
- t1 = t1 ? null : J.get$logger$x(options);
- return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileStringAsync_closure(text, options, color, new A.JSToDartLogger(t1, new A.StderrLogger0(color), ascii)).call$0()), ascii, color);
- },
- _convertResult(result, includeSourceContents) {
- var loadedUrls,
- t1 = result._compile_result$_serialize,
- t2 = t1._1,
- sourceMap = t2 == null ? null : t2.toJson$1$includeSourceContents(includeSourceContents);
- if (type$.Map_String_dynamic._is(sourceMap) && !sourceMap.containsKey$1("sources"))
- sourceMap.$indexSet(0, "sources", A._setArrayType([], type$.JSArray_String));
- loadedUrls = A.toJSArray(result._evaluate._0.map$1$1(0, A.utils1__dartToJSUrl$closure(), type$.nullable_Object));
- t1 = t1._0;
- return sourceMap == null ? {css: t1, loadedUrls: loadedUrls} : {css: t1, sourceMap: A.jsify0(sourceMap), loadedUrls: loadedUrls};
- },
- _wrapAsyncSassExceptions(promise, ascii, color) {
- return J.then$2$x(promise, null, A.allowInterop(new A._wrapAsyncSassExceptions_closure(color, ascii)));
- },
- _parseOutputStyle0(style) {
- var t1;
- $label0$0: {
- if (style == null || "expanded" === style) {
- t1 = B.OutputStyle_00;
- break $label0$0;
- }
- if ("compressed" === style) {
- t1 = B.OutputStyle_10;
- break $label0$0;
- }
- t1 = A.jsThrow(new self.Error('Unknown output style "' + A.S(style) + '".'));
- }
- return t1;
- },
- _parseAsyncImporter(importer) {
- var t1, canonicalize, load, _0_0;
- if (importer instanceof A.NodePackageImporter0)
- return importer;
- if (importer == null)
- A.jsThrow(new self.Error("Importers may not be null."));
- type$.JSImporter._as(importer);
- t1 = J.getInterceptor$x(importer);
- canonicalize = t1.get$canonicalize(importer);
- load = t1.get$load(importer);
- _0_0 = t1.get$findFileUrl(importer);
- if (_0_0 != null)
- if (canonicalize != null || load != null)
- A.jsThrow(new self.Error(string$.An_impa));
- else
- return new A.JSToDartAsyncFileImporter(_0_0);
- else if (canonicalize == null || load == null)
- A.jsThrow(new self.Error(string$.An_impu));
- else {
- t1 = A._normalizeNonCanonicalSchemes(t1.get$nonCanonicalScheme(importer));
- t1 = t1 == null ? B.Set_empty7 : A.Set_Set$unmodifiable(t1, type$.String);
- t1.forEach$1(0, A.utils2__validateUrlScheme$closure());
- return new A.JSToDartAsyncImporter(canonicalize, load, t1);
- }
- },
- _parseImporter0(importer) {
- var t1, canonicalize, load, _0_0;
- if (importer instanceof A.NodePackageImporter0)
- return importer;
- if (importer == null)
- A.jsThrow(new self.Error("Importers may not be null."));
- type$.JSImporter._as(importer);
- t1 = J.getInterceptor$x(importer);
- canonicalize = t1.get$canonicalize(importer);
- load = t1.get$load(importer);
- _0_0 = t1.get$findFileUrl(importer);
- if (_0_0 != null)
- if (canonicalize != null || load != null)
- A.jsThrow(new self.Error(string$.An_impa));
- else
- return new A.JSToDartFileImporter(_0_0);
- else if (canonicalize == null || load == null)
- A.jsThrow(new self.Error(string$.An_impu));
- else {
- t1 = A._normalizeNonCanonicalSchemes(t1.get$nonCanonicalScheme(importer));
- t1 = t1 == null ? B.Set_empty7 : A.Set_Set$unmodifiable(t1, type$.String);
- t1.forEach$1(0, A.utils2__validateUrlScheme$closure());
- return new A.JSToDartImporter(canonicalize, load, t1);
- }
- },
- _normalizeNonCanonicalSchemes(schemes) {
- var t1;
- $label0$0: {
- if (typeof schemes == "string") {
- t1 = A._setArrayType([schemes], type$.JSArray_String);
- break $label0$0;
- }
- if (type$.List_dynamic._is(schemes)) {
- t1 = J.cast$1$0$ax(schemes, type$.String);
- break $label0$0;
- }
- if (schemes == null) {
- t1 = null;
- break $label0$0;
- }
- t1 = A.jsThrow(new self.Error('nonCanonicalScheme must be a string or list of strings, was "' + A.S(schemes) + '"'));
- }
- return t1;
- },
- _simplifyValue(value) {
- var _0_1, t1, t2, _0_4, _0_3, _0_4_isSet, _0_5, _0_40, _0_8, first, _0_10, min, _null = null;
- $label1$1: {
- if (value instanceof A.SassCalculation0) {
- _0_1 = value.name;
- t1 = value.$arguments;
- t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>");
- _0_4 = A.List_List$of(new A.MappedListIterable(t1, A.compile___simplifyCalcArg$closure(), t2), true, t2._eval$1("ListIterable.E"));
- $label0$0: {
- _0_3 = "calc" === _0_1;
- _0_4_isSet = _0_3;
- if (_0_4_isSet) {
- _0_5 = _0_4.length;
- t1 = _0_5;
- _0_40 = _0_4;
- t1 = t1 === 1;
- } else {
- _0_40 = _null;
- _0_5 = _0_40;
- t1 = false;
- }
- if (t1) {
- _0_8 = (_0_4_isSet ? _0_40 : _0_4)[0];
- first = _0_8;
- type$.Value_2._as(first);
- t1 = first;
- break $label0$0;
- }
- if (_0_3)
- A.throwExpression(A.ArgumentError$("calc() requires exactly one argument.", _null));
- _0_10 = "clamp" === _0_1;
- t1 = _0_10;
- if (t1) {
- if (_0_4_isSet)
- t1 = _0_5;
- else {
- _0_5 = _0_4.length;
- t1 = _0_5;
- _0_40 = _0_4;
- _0_4_isSet = true;
- }
- t1 = t1 === 3;
- } else
- t1 = false;
- if (t1) {
- if (_0_4_isSet)
- t1 = _0_40;
- else {
- t1 = _0_4;
- _0_40 = t1;
- _0_4_isSet = true;
- }
- _0_8 = t1[0];
- min = _0_8;
- if (_0_4_isSet)
- t1 = _0_40;
- else {
- t1 = _0_4;
- _0_40 = t1;
- _0_4_isSet = true;
- }
- value = t1[1];
- t1 = A.SassCalculation_clamp0(min, value, (_0_4_isSet ? _0_40 : _0_4)[2]);
- break $label0$0;
- }
- if (_0_10)
- A.throwExpression(A.ArgumentError$("clamp() requires exactly 3 arguments.", _null));
- if ("min" === _0_1) {
- t1 = A.SassCalculation_min0(_0_4_isSet ? _0_40 : _0_4);
- break $label0$0;
- }
- if ("max" === _0_1) {
- t1 = A.SassCalculation_max0(_0_4_isSet ? _0_40 : _0_4);
- break $label0$0;
- }
- t1 = A.throwExpression(A.ArgumentError$('"' + _0_1 + '" is not a recognized calculation type.', _null));
- }
- break $label1$1;
- }
- t1 = value;
- break $label1$1;
- }
- return t1;
- },
- _simplifyCalcArg(value) {
- var t1;
- $label0$0: {
- if (value instanceof A.SassCalculation0) {
- t1 = A._simplifyValue(value);
- break $label0$0;
- }
- if (value instanceof A.CalculationOperation0) {
- t1 = A.SassCalculation_operateInternal0(value._calculation0$_operator, A._simplifyCalcArg(value._calculation0$_left), A._simplifyCalcArg(value._calculation0$_right), false, true);
- break $label0$0;
- }
- t1 = value;
- break $label0$0;
- }
- return t1;
- },
- _parseFunctions0(functions, asynch) {
- var result;
- if (functions == null)
- return B.List_empty24;
- result = A._setArrayType([], type$.JSArray_AsyncCallable_2);
- A.jsForEach(functions, new A._parseFunctions_closure0(asynch, result));
- return result;
- },
- _parseDeprecations(logger, deprecations, supportVersions) {
- if (deprecations == null)
- return null;
- return new A._parseDeprecations_closure(deprecations, logger, supportVersions).call$0();
- },
- compileAsync_closure: function compileAsync_closure(t0, t1, t2, t3) {
- var _ = this;
- _.path = t0;
- _.color = t1;
- _.options = t2;
- _.logger = t3;
- },
- compileAsync__closure: function compileAsync__closure() {
- },
- compileStringAsync_closure: function compileStringAsync_closure(t0, t1, t2, t3) {
- var _ = this;
- _.text = t0;
- _.options = t1;
- _.color = t2;
- _.logger = t3;
- },
- compileStringAsync__closure: function compileStringAsync__closure() {
- },
- compileStringAsync__closure0: function compileStringAsync__closure0() {
- },
- _wrapAsyncSassExceptions_closure: function _wrapAsyncSassExceptions_closure(t0, t1) {
- this.color = t0;
- this.ascii = t1;
- },
- _parseFunctions_closure0: function _parseFunctions_closure0(t0, t1) {
- this.asynch = t0;
- this.result = t1;
- },
- _parseFunctions__closure2: function _parseFunctions__closure2(t0, t1) {
- this.callback = t0;
- this.callable = t1;
- },
- _parseFunctions___closure6: function _parseFunctions___closure6(t0, t1) {
- this.callback = t0;
- this.$arguments = t1;
- },
- _parseFunctions__closure3: function _parseFunctions__closure3(t0, t1) {
- this.callback = t0;
- this.callable = t1;
- },
- _parseFunctions___closure5: function _parseFunctions___closure5(t0, t1) {
- this.callback = t0;
- this.$arguments = t1;
- },
- _parseDeprecations_closure: function _parseDeprecations_closure(t0, t1, t2) {
- this.deprecations = t0;
- this.logger = t1;
- this.supportVersions = t2;
- },
- nodePackageImporterClass_closure: function nodePackageImporterClass_closure() {
- },
- nodePackageImporterClass__closure: function nodePackageImporterClass__closure() {
- },
- compile(path, charset, fatalDeprecations, functions, futureDeprecations, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, useSpaces, verbose) {
- var t3, t4, t0, stylesheet, result, _null = null,
- t1 = type$.Deprecation_3,
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (silenceDeprecations != null)
- t2.addAll$1(0, silenceDeprecations);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (fatalDeprecations != null)
- t3.addAll$1(0, fatalDeprecations);
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (futureDeprecations != null)
- t1.addAll$1(0, futureDeprecations);
- logger = A.DeprecationProcessingLogger$0(logger, t3, t1, !verbose, t2);
- t1 = nodeImporter == null;
- if (t1)
- t2 = syntax == null || syntax === A.Syntax_forPath0(path);
- else
- t2 = false;
- if (t2) {
- if (importCache == null)
- importCache = A.ImportCache$none(logger);
- t2 = $.$get$FilesystemImporter_cwd0();
- t3 = A.isNodeJs() ? self.process : _null;
- if (!J.$eq$(t3 == null ? _null : J.get$platform$x(t3), "win32")) {
- t3 = A.isNodeJs() ? self.process : _null;
- t3 = J.$eq$(t3 == null ? _null : J.get$platform$x(t3), "darwin");
- } else
- t3 = true;
- if (t3) {
- t3 = $.$get$context();
- t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
- t0 = t4;
- t4 = t3;
- t3 = t0;
- } else {
- t3 = $.$get$context();
- t4 = t3.canonicalize$1(0, path);
- t0 = t4;
- t4 = t3;
- t3 = t0;
- }
- t4 = importCache.importCanonical$3$originalUrl(t2, t4.toUri$1(t3), t4.toUri$1(path));
- t4.toString;
- stylesheet = t4;
- } else {
- t2 = A.readFile0(path);
- t3 = syntax == null ? A.Syntax_forPath0(path) : syntax;
- stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, logger, $.$get$context().toUri$1(path));
- }
- result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, $.$get$FilesystemImporter_cwd0(), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset);
- logger.summarize$1$js(!t1);
- return result;
- },
- compileString(source, charset, fatalDeprecations, functions, futureDeprecations, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, url, useSpaces, verbose) {
- var t3, stylesheet, result,
- t1 = type$.Deprecation_3,
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (silenceDeprecations != null)
- t2.addAll$1(0, silenceDeprecations);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (fatalDeprecations != null)
- t3.addAll$1(0, fatalDeprecations);
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- if (futureDeprecations != null)
- t1.addAll$1(0, futureDeprecations);
- logger = A.DeprecationProcessingLogger$0(logger, t3, t1, !verbose, t2);
- stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, logger, url);
- if (importer == null)
- t1 = A.isBrowser() ? new A.NoOpImporter0() : $.$get$FilesystemImporter_cwd0();
- else
- t1 = importer;
- result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, t1, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset);
- logger.summarize$1$js(nodeImporter != null);
- return result;
- },
- _compileStylesheet1(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
- var evaluateResult = A._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet),
- serializeResult = A.serialize0(evaluateResult._1, charset, indentWidth, false, lineFeed, sourceMap, style, useSpaces),
- resultSourceMap = serializeResult._1;
- if (resultSourceMap != null && importCache != null)
- A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure1(stylesheet, importCache));
- return new A.CompileResult0(evaluateResult, serializeResult);
- },
- _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) {
- this.stylesheet = t0;
- this.importCache = t1;
- },
- CompileOptions: function CompileOptions() {
- },
- CompileStringOptions: function CompileStringOptions() {
- },
- NodeCompileResult: function NodeCompileResult() {
- },
- CompileResult0: function CompileResult0(t0, t1) {
- this._evaluate = t0;
- this._compile_result$_serialize = t1;
- },
- initCompiler() {
- return new A.Compiler();
- },
- initAsyncCompiler() {
- return A.futureToPromise0(new A.initAsyncCompiler_closure().call$0());
- },
- Compiler: function Compiler() {
- this._disposed = false;
- },
- AsyncCompiler: function AsyncCompiler(t0) {
- this.compilations = t0;
- this._disposed = false;
- },
- AsyncCompiler_addCompilation_closure: function AsyncCompiler_addCompilation_closure() {
- },
- compilerClass_closure: function compilerClass_closure() {
- },
- compilerClass__closure: function compilerClass__closure() {
- },
- compilerClass__closure0: function compilerClass__closure0() {
- },
- compilerClass__closure1: function compilerClass__closure1() {
- },
- compilerClass__closure2: function compilerClass__closure2() {
- },
- asyncCompilerClass_closure: function asyncCompilerClass_closure() {
- },
- asyncCompilerClass__closure: function asyncCompilerClass__closure() {
- },
- asyncCompilerClass__closure0: function asyncCompilerClass__closure0() {
- },
- asyncCompilerClass__closure1: function asyncCompilerClass__closure1() {
- },
- asyncCompilerClass__closure2: function asyncCompilerClass__closure2() {
- },
- asyncCompilerClass___closure: function asyncCompilerClass___closure(t0) {
- this.self = t0;
- },
- initAsyncCompiler_closure: function initAsyncCompiler_closure() {
- },
- ComplexSassNumber0: function ComplexSassNumber0(t0, t1, t2, t3) {
- var _ = this;
- _._complex0$_numeratorUnits = t0;
- _._complex0$_denominatorUnits = t1;
- _._number1$_value = t2;
- _.hashCache = null;
- _.asSlash = t3;
- },
- ComplexSelector$0(leadingCombinators, components, span, lineBreak) {
- var t1 = A.List_List$unmodifiable(leadingCombinators, type$.CssValue_Combinator_2),
- t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent_2);
- if (t1.length === 0 && t2.length === 0)
- A.throwExpression(A.ArgumentError$(string$.leadin, null));
- return new A.ComplexSelector0(t1, t2, lineBreak, span);
- },
- ComplexSelector0: function ComplexSelector0(t0, t1, t2, t3) {
- var _ = this;
- _.leadingCombinators = t0;
- _.components = t1;
- _.lineBreak = t2;
- _._complex$__ComplexSelector_specificity_FI = $;
- _.span = t3;
- },
- ComplexSelector_specificity_closure0: function ComplexSelector_specificity_closure0() {
- },
- ComplexSelectorComponent0: function ComplexSelectorComponent0(t0, t1, t2) {
- this.selector = t0;
- this.combinators = t1;
- this.span = t2;
- },
- ComplexSelectorComponent_toString_closure0: function ComplexSelectorComponent_toString_closure0() {
- },
- CompoundSelector$0(components, span) {
- var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector_2);
- if (t1.length === 0)
- A.throwExpression(A.ArgumentError$("components may not be empty.", null));
- return new A.CompoundSelector0(t1, span);
- },
- CompoundSelector0: function CompoundSelector0(t0, t1) {
- var _ = this;
- _.components = t0;
- _._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = _._compound$__CompoundSelector_specificity_FI = $;
- _.span = t1;
- },
- CompoundSelector_specificity_closure0: function CompoundSelector_specificity_closure0() {
- },
- CompoundSelector_hasComplicatedSuperselectorSemantics_closure0: function CompoundSelector_hasComplicatedSuperselectorSemantics_closure0() {
- },
- Configuration0: function Configuration0(t0, t1) {
- this._configuration0$_values = t0;
- this._configuration0$__originalConfiguration = t1;
- },
- ExplicitConfiguration0: function ExplicitConfiguration0(t0, t1, t2) {
- this.nodeWithSpan = t0;
- this._configuration0$_values = t1;
- this._configuration0$__originalConfiguration = t2;
- },
- ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
- this.value = t0;
- this.configurationSpan = t1;
- this.assignmentNode = t2;
- },
- ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
- var _ = this;
- _.name = t0;
- _.expression = t1;
- _.isGuarded = t2;
- _.span = t3;
- },
- ContentBlock$0($arguments, children, span) {
- var _s8_ = "@content",
- t1 = A.stringReplaceAllUnchecked(_s8_, "_", "-"),
- t2 = A.List_List$unmodifiable(children, type$.Statement_2),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
- return new A.ContentBlock0(t1, _s8_, $arguments, span, t2, t3);
- },
- ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.originalName = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- ContentRule0: function ContentRule0(t0, t1) {
- this.$arguments = t0;
- this.span = t1;
- },
- _disallowedFunctionNames_closure0: function _disallowedFunctionNames_closure0() {
- },
- CssParser0: function CssParser0(t0, t1, t2, t3) {
- var _ = this;
- _._stylesheet0$_isUseAllowed = true;
- _._stylesheet0$_inExpression = _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
- _._stylesheet0$_globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- _._parser0$_interpolationMap = t3;
- },
- DebugRule0: function DebugRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- ModifiableCssDeclaration$0($name, value, span, parsedAsCustomProperty, valueSpanForMap) {
- var t2,
- t1 = valueSpanForMap == null ? value.span : valueSpanForMap;
- if (parsedAsCustomProperty)
- if (!J.startsWith$1$s($name.value, "--"))
- A.throwExpression(A.ArgumentError$(string$.parsed, null));
- else {
- t2 = value.value;
- if (!(t2 instanceof A.SassString0))
- A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeTypeOfDartObject(t2).toString$0(0) + ").", null));
- }
- return new A.ModifiableCssDeclaration0($name, value, parsedAsCustomProperty, t1, span);
- },
- ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.parsedAsCustomProperty = t2;
- _.valueSpanForMap = t3;
- _.span = t4;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- Declaration$0($name, value, span) {
- return new A.Declaration0($name, value, span, null, false);
- },
- Declaration$nested0($name, children, span, value) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.Declaration0($name, value, span, t1, t2);
- },
- Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.name = t0;
- _.value = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
- this.name = t0;
- this.value = t1;
- this.span = t2;
- },
- Deprecation_fromId0(id) {
- return A.IterableExtension_firstWhereOrNull(B.List_wIq, new A.Deprecation_fromId_closure0(id));
- },
- Deprecation_forVersion0(version) {
- var t2, _i, deprecation, $self, t3,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation_3);
- for (t2 = A.VersionRange_VersionRange(true, version).get$allows(), _i = 0; _i < 19; ++_i) {
- deprecation = B.List_wIq[_i];
- $self = deprecation._deprecation$_deprecatedIn;
- t3 = $self == null ? null : A.Version___parse_tearOff($self);
- t3 = t3 == null ? null : t2.call$1(t3);
- if (t3 == null ? false : t3)
- t1.add$1(0, deprecation);
- }
- return t1;
- },
- Deprecation0: function Deprecation0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.id = t0;
- _._deprecation$_deprecatedIn = t1;
- _.description = t2;
- _.isFuture = t3;
- _._name = t4;
- },
- Deprecation_fromId_closure0: function Deprecation_fromId_closure0(t0) {
- this.id = t0;
- },
- DeprecationProcessingLogger$0(_inner, fatalDeprecations, futureDeprecations, limitRepetition, silenceDeprecations) {
- var t1 = new A.DeprecationProcessingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(type$.Deprecation_3, type$.int), _inner, silenceDeprecations, fatalDeprecations, futureDeprecations, limitRepetition);
- t1.DeprecationProcessingLogger$5$fatalDeprecations$futureDeprecations$limitRepetition$silenceDeprecations0(_inner, fatalDeprecations, futureDeprecations, limitRepetition, silenceDeprecations);
- return t1;
- },
- DeprecationProcessingLogger0: function DeprecationProcessingLogger0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._deprecation_processing$_warningCounts = t0;
- _._deprecation_processing$_inner = t1;
- _.silenceDeprecations = t2;
- _.fatalDeprecations = t3;
- _.futureDeprecations = t4;
- _.limitRepetition = t5;
- },
- DeprecationProcessingLogger_summarize_closure1: function DeprecationProcessingLogger_summarize_closure1() {
- },
- DeprecationProcessingLogger_summarize_closure2: function DeprecationProcessingLogger_summarize_closure2() {
- },
- Deprecation1: function Deprecation1() {
- },
- deprecations_closure: function deprecations_closure(t0) {
- this.deprecation = t0;
- },
- versionClass_closure: function versionClass_closure() {
- },
- versionClass__closure: function versionClass__closure() {
- },
- versionClass__closure0: function versionClass__closure0() {
- },
- DynamicImport0: function DynamicImport0(t0, t1) {
- this.urlString = t0;
- this.span = t1;
- },
- EachRule$0(variables, list, children, span) {
- var t1 = A.List_List$unmodifiable(variables, type$.String),
- t2 = A.List_List$unmodifiable(children, type$.Statement_2),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
- return new A.EachRule0(t1, list, span, t2, t3);
- },
- EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.variables = t0;
- _.list = t1;
- _.span = t2;
- _.children = t3;
- _.hasDeclarations = t4;
- },
- EachRule_toString_closure0: function EachRule_toString_closure0() {
- },
- EmptyExtensionStore0: function EmptyExtensionStore0() {
- },
- Environment$0() {
- var t1 = type$.String,
- t2 = type$.Module_Callable_2,
- t3 = type$.AstNode_2,
- t4 = type$.int,
- t5 = type$.Callable_2,
- t6 = type$.JSArray_Map_String_Callable_2;
- return new A.Environment0(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_Callable_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
- },
- Environment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
- var t1 = type$.String,
- t2 = type$.int;
- return new A.Environment0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
- },
- _EnvironmentModule__EnvironmentModule1(environment, css, preModuleComments, extensionStore, forwarded) {
- var t1, t2, t3, t4, t5, t6, module, result, t7;
- if (forwarded == null)
- forwarded = B.Set_empty4;
- t1 = type$.dynamic;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t2 = type$.Module_Callable_2, t3 = type$.List_CssComment_2, t4 = A.MapExtensions_get_pairs0(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment_2; t4.moveNext$0();) {
- t6 = t4.get$current(t4);
- module = t6._0;
- result = A.List_List$from(t6._1, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1.$indexSet(0, module, result);
- }
- t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
- t2 = A._EnvironmentModule__makeModulesByVariable1(forwarded);
- t3 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure11(), type$.Map_String_Value_2), type$.Value_2);
- t4 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure12(), type$.Map_String_AstNode_2), type$.AstNode_2);
- t5 = type$.Map_String_Callable_2;
- t6 = type$.Callable_2;
- t7 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure13(), t5), t6);
- t6 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure14(), t5), t6);
- t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure15());
- return A._EnvironmentModule$_1(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure16()));
- },
- _EnvironmentModule__makeModulesByVariable1(forwarded) {
- var modulesByVariable, t1, t2, t3, t4, t5;
- if (forwarded.get$isEmpty(forwarded))
- return B.Map_empty10;
- modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable_2);
- for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2 instanceof A._EnvironmentModule1) {
- for (t3 = t2._environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t5 = t4.get$variables();
- A.setAll0(modulesByVariable, t5.get$keys(t5), t4);
- }
- A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables)), t2);
- } else {
- t3 = t2.get$variables();
- A.setAll0(modulesByVariable, t3.get$keys(t3), t2);
- }
- }
- return modulesByVariable;
- },
- _EnvironmentModule__memberMap1(localMap, otherMaps, $V) {
- var t1, t2, t3;
- localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
- if (otherMaps.get$isEmpty(otherMaps))
- return localMap;
- t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
- for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3.get$isNotEmpty(t3))
- t1.push(t3);
- }
- t1.push(localMap);
- if (t1.length === 1)
- return localMap;
- return A.MergedMapView$0(t1, type$.String, $V);
- },
- _EnvironmentModule$_1(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
- return new A._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
- },
- Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
- var _ = this;
- _._environment0$_modules = t0;
- _._environment0$_namespaceNodes = t1;
- _._environment0$_globalModules = t2;
- _._environment0$_importedModules = t3;
- _._environment0$_forwardedModules = t4;
- _._environment0$_nestedForwardedModules = t5;
- _._environment0$_allModules = t6;
- _._environment0$_variables = t7;
- _._environment0$_variableNodes = t8;
- _._environment0$_variableIndices = t9;
- _._environment0$_functions = t10;
- _._environment0$_functionIndices = t11;
- _._environment0$_mixins = t12;
- _._environment0$_mixinIndices = t13;
- _._environment0$_content = t14;
- _._environment0$_inMixin = false;
- _._environment0$_inSemiGlobalScope = true;
- _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null;
- },
- Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) {
- this.name = t0;
- },
- Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) {
- this.$this = t0;
- this.name = t1;
- },
- Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) {
- this.name = t0;
- },
- Environment_toModule_closure0: function Environment_toModule_closure0() {
- },
- Environment_toDummyModule_closure0: function Environment_toDummyModule_closure0() {
- },
- _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
- var _ = this;
- _.upstream = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.extensionStore = t5;
- _.css = t6;
- _.preModuleComments = t7;
- _.transitivelyContainsCss = t8;
- _.transitivelyContainsExtensions = t9;
- _._environment0$_environment = t10;
- _._environment0$_modulesByVariable = t11;
- },
- _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() {
- },
- _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() {
- },
- _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() {
- },
- _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() {
- },
- _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() {
- },
- _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() {
- },
- ErrorRule0: function ErrorRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- _EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t4,
- t1 = type$.Uri,
- t2 = type$.Module_Callable_2,
- t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode_2);
- if (importCache == null)
- t4 = nodeImporter == null ? A.ImportCache$none(logger) : null;
- else
- t4 = importCache;
- t1 = new A._EvaluateVisitor1(t4, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Callable_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.Environment$0(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode_2), t3, B.Configuration_Map_empty_null0);
- t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
- return t1;
- },
- _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
- var _ = this;
- _._evaluate0$_importCache = t0;
- _._nodeImporter = t1;
- _._evaluate0$_builtInFunctions = t2;
- _._evaluate0$_builtInModules = t3;
- _._evaluate0$_modules = t4;
- _._evaluate0$_moduleConfigurations = t5;
- _._evaluate0$_moduleNodes = t6;
- _._evaluate0$_logger = t7;
- _._evaluate0$_warningsEmitted = t8;
- _._evaluate0$_quietDeps = t9;
- _._evaluate0$_sourceMap = t10;
- _._evaluate0$_environment = t11;
- _._evaluate0$_declarationName = _._evaluate0$__parent = _._evaluate0$_mediaQuerySources = _._evaluate0$_mediaQueries = _._evaluate0$_styleRuleIgnoringAtRoot = null;
- _._evaluate0$_member = "root stylesheet";
- _._evaluate0$_importSpan = _._evaluate0$_callableNode = _._evaluate0$_currentCallable = null;
- _._evaluate0$_inSupportsDeclaration = _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false;
- _._evaluate0$_loadedUrls = t12;
- _._evaluate0$_activeModules = t13;
- _._evaluate0$_stack = t14;
- _._evaluate0$_importer = null;
- _._evaluate0$_inDependency = false;
- _._evaluate0$__extensionStore = _._evaluate0$_preModuleComments = _._evaluate0$_outOfOrderImports = _._evaluate0$__endOfImports = _._evaluate0$__root = _._evaluate0$__stylesheet = null;
- _._evaluate0$_configuration = t15;
- },
- _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.module = t2;
- },
- _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7(t0, t1, t2) {
- this.values = t0;
- this.span = t1;
- this.callableNode = t2;
- },
- _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.importer = t2;
- },
- _EvaluateVisitor_run__closure1: function _EvaluateVisitor_run__closure1(t0, t1, t2) {
- this.$this = t0;
- this.importer = t1;
- this.node = t2;
- },
- _EvaluateVisitor__loadModule_closure3: function _EvaluateVisitor__loadModule_closure3(t0, t1) {
- this._box_1 = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__loadModule_closure4: function _EvaluateVisitor__loadModule_closure4(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.url = t1;
- _.nodeWithSpan = t2;
- _.baseUrl = t3;
- _.namesInErrors = t4;
- _.configuration = t5;
- _.callback = t6;
- },
- _EvaluateVisitor__loadModule__closure3: function _EvaluateVisitor__loadModule__closure3(t0, t1) {
- this.$this = t0;
- this.message = t1;
- },
- _EvaluateVisitor__loadModule__closure4: function _EvaluateVisitor__loadModule__closure4(t0, t1, t2) {
- this._box_0 = t0;
- this.callback = t1;
- this.firstLoad = t2;
- },
- _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.stylesheet = t2;
- _.extensionStore = t3;
- _.configuration = t4;
- _.css = t5;
- _.preModuleComments = t6;
- },
- _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3() {
- },
- _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4(t0) {
- this.selectors = t0;
- },
- _EvaluateVisitor__combineCss_visitModule1: function _EvaluateVisitor__combineCss_visitModule1(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.seen = t1;
- _.clone = t2;
- _.css = t3;
- _.imports = t4;
- _.sorted = t5;
- },
- _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) {
- this.originalSelectors = t0;
- },
- _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() {
- },
- _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) {
- this.$this = t0;
- this.newParent = t1;
- this.node = t2;
- },
- _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) {
- this.innerScope = t0;
- this.callback = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() {
- },
- _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) {
- this.$this = t0;
- this.innerScope = t1;
- },
- _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) {
- this.$this = t0;
- this.content = t1;
- },
- _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.nodeWithSpan = t2;
- },
- _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.list = t1;
- _.setVariables = t2;
- _.node = t3;
- },
- _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) {
- this.$this = t0;
- this.setVariables = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6(t0, t1, t2) {
- this.$this = t0;
- this.name = t1;
- this.children = t2;
- },
- _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) {
- this.$this = t0;
- this.children = t1;
- },
- _EvaluateVisitor_visitAtRule_closure7: function _EvaluateVisitor_visitAtRule_closure7() {
- },
- _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0) {
- this.fromNumber = t0;
- },
- _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0, t1) {
- this.toNumber = t0;
- this.fromNumber = t1;
- },
- _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.from = t3;
- _.direction = t4;
- _.fromNumber = t5;
- },
- _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__registerCommentsForModule_closure1: function _EvaluateVisitor__registerCommentsForModule_closure1() {
- },
- _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0, t1) {
- this.$this = t0;
- this.clause = t1;
- },
- _EvaluateVisitor_visitIfRule___closure1: function _EvaluateVisitor_visitIfRule___closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) {
- this.$this = t0;
- this.$import = t1;
- },
- _EvaluateVisitor__visitDynamicImport__closure7: function _EvaluateVisitor__visitDynamicImport__closure7(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor__visitDynamicImport__closure8: function _EvaluateVisitor__visitDynamicImport__closure8() {
- },
- _EvaluateVisitor__visitDynamicImport__closure9: function _EvaluateVisitor__visitDynamicImport__closure9() {
- },
- _EvaluateVisitor__visitDynamicImport__closure10: function _EvaluateVisitor__visitDynamicImport__closure10(t0, t1, t2, t3, t4) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.loadsUserDefinedModules = t2;
- _.environment = t3;
- _.children = t4;
- },
- _EvaluateVisitor__applyMixin_closure3: function _EvaluateVisitor__applyMixin_closure3(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure4: function _EvaluateVisitor__applyMixin__closure4(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.$arguments = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin_closure4: function _EvaluateVisitor__applyMixin_closure4(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.contentCallable = t1;
- _.mixin = t2;
- _.nodeWithSpanWithoutContent = t3;
- },
- _EvaluateVisitor__applyMixin__closure3: function _EvaluateVisitor__applyMixin__closure3(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin___closure1: function _EvaluateVisitor__applyMixin___closure1(t0, t1, t2) {
- this.$this = t0;
- this.mixin = t1;
- this.nodeWithSpanWithoutContent = t2;
- },
- _EvaluateVisitor__applyMixin____closure1: function _EvaluateVisitor__applyMixin____closure1(t0, t1) {
- this.$this = t0;
- this.statement = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0) {
- this.node = t0;
- },
- _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1) {
- this.$this = t0;
- this.queries = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.queries = t2;
- _.mergedSources = t3;
- _.node = t4;
- },
- _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitMediaRule_closure7: function _EvaluateVisitor_visitMediaRule_closure7(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8() {
- },
- _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9() {
- },
- _EvaluateVisitor__warnForBogusCombinators_closure1: function _EvaluateVisitor__warnForBogusCombinators_closure1() {
- },
- _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() {
- },
- _EvaluateVisitor__visitSupportsCondition_closure1: function _EvaluateVisitor__visitSupportsCondition_closure1(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.value = t2;
- },
- _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__slash_recommendation1: function _EvaluateVisitor__slash_recommendation1() {
- },
- _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitUnaryOperationExpression_closure1: function _EvaluateVisitor_visitUnaryOperationExpression_closure1(t0, t1) {
- this.node = t0;
- this.operand = t1;
- },
- _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) {
- this.$this = t0;
- },
- _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6() {
- },
- _EvaluateVisitor_visitFunctionExpression_closure7: function _EvaluateVisitor_visitFunctionExpression_closure7(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.node = t2;
- },
- _EvaluateVisitor__checkCalculationArguments_check1: function _EvaluateVisitor__checkCalculationArguments_check1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor__visitCalculationExpression_closure1: function _EvaluateVisitor__visitCalculationExpression_closure1(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.node = t2;
- _.inLegacySassFunction = t3;
- },
- _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(t0, t1, t2) {
- this.$this = t0;
- this.node = t1;
- this.$function = t2;
- },
- _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.callable = t1;
- _.evaluated = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.evaluated = t1;
- _.callable = t2;
- _.nodeWithSpan = t3;
- _.run = t4;
- _.V = t5;
- },
- _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() {
- },
- _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) {
- this.$this = t0;
- this.callable = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) {
- this._box_0 = t0;
- this.evaluated = t1;
- this.namedSet = t2;
- },
- _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6(t0, t1) {
- this._box_0 = t0;
- this.evaluated = t1;
- },
- _EvaluateVisitor__runBuiltInCallable_closure7: function _EvaluateVisitor__runBuiltInCallable_closure7() {
- },
- _EvaluateVisitor__evaluateArguments_closure7: function _EvaluateVisitor__evaluateArguments_closure7() {
- },
- _EvaluateVisitor__evaluateArguments_closure8: function _EvaluateVisitor__evaluateArguments_closure8(t0, t1) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- },
- _EvaluateVisitor__evaluateArguments_closure9: function _EvaluateVisitor__evaluateArguments_closure9(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.namedNodes = t3;
- },
- _EvaluateVisitor__evaluateArguments_closure10: function _EvaluateVisitor__evaluateArguments_closure10() {
- },
- _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7(t0) {
- this.restArgs = t0;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8(t0, t1, t2) {
- this.$this = t0;
- this.restNodeForSpan = t1;
- this.restArgs = t2;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.named = t1;
- _.restNodeForSpan = t2;
- _.restArgs = t3;
- },
- _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10(t0, t1, t2) {
- this.$this = t0;
- this.keywordRestNodeForSpan = t1;
- this.keywordRestArgs = t2;
- },
- _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.values = t1;
- _.convert = t2;
- _.expressionNode = t3;
- _.map = t4;
- _.nodeWithSpan = t5;
- },
- _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) {
- this.$arguments = t0;
- this.positional = t1;
- this.named = t2;
- },
- _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() {
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() {
- },
- _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.mergedQueries = t1;
- _.node = t2;
- _.mergedSources = t3;
- },
- _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssMediaRule_closure7: function _EvaluateVisitor_visitCssMediaRule_closure7(t0) {
- this.mergedSources = t0;
- },
- _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4(t0, t1, t2) {
- this.$this = t0;
- this.rule = t1;
- this.node = t2;
- },
- _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3() {
- },
- _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() {
- },
- _EvaluateVisitor__performInterpolationHelper_closure1: function _EvaluateVisitor__performInterpolationHelper_closure1(t0) {
- this.interpolation = t0;
- },
- _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) {
- this.value = t0;
- this.quote = t1;
- },
- _EvaluateVisitor__expressionNode_closure1: function _EvaluateVisitor__expressionNode_closure1(t0, t1) {
- this.$this = t0;
- this.expression = t1;
- },
- _EvaluateVisitor__withoutSlash_recommendation1: function _EvaluateVisitor__withoutSlash_recommendation1() {
- },
- _EvaluateVisitor__stackFrame_closure1: function _EvaluateVisitor__stackFrame_closure1(t0) {
- this.$this = t0;
- },
- _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) {
- this._evaluate0$_visitor = t0;
- },
- _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() {
- },
- _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) {
- this.hasBeenMerged = t0;
- },
- _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() {
- },
- _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() {
- },
- _EvaluationContext1: function _EvaluationContext1(t0, t1) {
- this._evaluate0$_visitor = t0;
- this._evaluate0$_defaultWarnNodeWithSpan = t1;
- },
- EveryCssVisitor0: function EveryCssVisitor0() {
- },
- EveryCssVisitor_visitCssAtRule_closure0: function EveryCssVisitor_visitCssAtRule_closure0(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssKeyframeBlock_closure0: function EveryCssVisitor_visitCssKeyframeBlock_closure0(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssMediaRule_closure0: function EveryCssVisitor_visitCssMediaRule_closure0(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssStyleRule_closure0: function EveryCssVisitor_visitCssStyleRule_closure0(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssStylesheet_closure0: function EveryCssVisitor_visitCssStylesheet_closure0(t0) {
- this.$this = t0;
- },
- EveryCssVisitor_visitCssSupportsRule_closure0: function EveryCssVisitor_visitCssSupportsRule_closure0(t0) {
- this.$this = t0;
- },
- throwNodeException(exception, ascii, color, trace) {
- var wasAscii, jsException, t1, trace0;
- trace = trace;
- wasAscii = $._glyphs === B.C_AsciiGlyphSet;
- $._glyphs = ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
- try {
- t1 = A.callConstructor($.$get$exceptionClass(), [exception, B.JSString_methods.replaceFirst$2(exception.toString$1$color(0, color), "Error: ", "")]);
- jsException = type$._NodeException._as(t1);
- trace0 = A.getTrace0(exception);
- trace = trace0 == null ? trace : trace0;
- if (trace != null)
- A.attachJsStack(jsException, trace);
- A.jsThrow(jsException);
- } finally {
- $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
- }
- },
- _NodeException: function _NodeException() {
- },
- exceptionClass_closure: function exceptionClass_closure() {
- },
- exceptionClass__closure: function exceptionClass__closure() {
- },
- exceptionClass__closure0: function exceptionClass__closure0() {
- },
- exceptionClass__closure1: function exceptionClass__closure1() {
- },
- SassException$0(message, span, loadedUrls) {
- return new A.SassException0(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- MultiSpanSassException$0(message, span, primaryLabel, secondarySpans, loadedUrls) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassException0(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- SassRuntimeException$0(message, span, trace, loadedUrls) {
- return new A.SassRuntimeException0(trace, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- MultiSpanSassRuntimeException$0(message, span, primaryLabel, secondarySpans, trace, loadedUrls) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassRuntimeException0(trace, primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- SassFormatException$0(message, span, loadedUrls) {
- return new A.SassFormatException0(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- MultiSpanSassFormatException$0(message, span, primaryLabel, secondarySpans, loadedUrls) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassFormatException0(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
- },
- SassScriptException$0(message, argumentName) {
- return new A.SassScriptException0(argumentName == null ? message : "$" + argumentName + ": " + message);
- },
- MultiSpanSassScriptException$0(message, primaryLabel, secondarySpans) {
- var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
- return new A.MultiSpanSassScriptException0(primaryLabel, t1, message);
- },
- SassException0: function SassException0(t0, t1, t2) {
- this.loadedUrls = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.primaryLabel = t0;
- _.secondarySpans = t1;
- _.loadedUrls = t2;
- _._span_exception$_message = t3;
- _._span = t4;
- },
- SassRuntimeException0: function SassRuntimeException0(t0, t1, t2, t3) {
- var _ = this;
- _.trace = t0;
- _.loadedUrls = t1;
- _._span_exception$_message = t2;
- _._span = t3;
- },
- MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.trace = t0;
- _.primaryLabel = t1;
- _.secondarySpans = t2;
- _.loadedUrls = t3;
- _._span_exception$_message = t4;
- _._span = t5;
- },
- SassFormatException0: function SassFormatException0(t0, t1, t2) {
- this.loadedUrls = t0;
- this._span_exception$_message = t1;
- this._span = t2;
- },
- MultiSpanSassFormatException0: function MultiSpanSassFormatException0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.primaryLabel = t0;
- _.secondarySpans = t1;
- _.loadedUrls = t2;
- _._span_exception$_message = t3;
- _._span = t4;
- },
- SassScriptException0: function SassScriptException0(t0) {
- this.message = t0;
- },
- MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) {
- this.primaryLabel = t0;
- this.secondarySpans = t1;
- this.message = t2;
- },
- Exports: function Exports() {
- },
- LoggerNamespace: function LoggerNamespace() {
- },
- _IsCalculationSafeVisitor0: function _IsCalculationSafeVisitor0() {
- },
- _IsCalculationSafeVisitor_visitListExpression_closure0: function _IsCalculationSafeVisitor_visitListExpression_closure0(t0) {
- this.$this = t0;
- },
- expressionToCalc0(expression) {
- var t4,
- t1 = A._setArrayType([B.C__MakeExpressionCalculationSafe0.visitBinaryOperationExpression$1(expression)], type$.JSArray_Expression_2),
- t2 = expression.get$span(0),
- t3 = type$.Expression_2;
- t1 = A.List_List$unmodifiable(t1, t3);
- t3 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3);
- t4 = expression.get$span(0);
- return new A.FunctionExpression0(null, A.stringReplaceAllUnchecked("calc", "_", "-"), "calc", new A.ArgumentInvocation0(t1, t3, null, null, t2), t4);
- },
- _MakeExpressionCalculationSafe0: function _MakeExpressionCalculationSafe0() {
- },
- __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0: function __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0() {
- },
- ExtendRule0: function ExtendRule0(t0, t1, t2) {
- this.selector = t0;
- this.isOptional = t1;
- this.span = t2;
- },
- Extension0: function Extension0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.extender = t0;
- _.target = t1;
- _.mediaContext = t2;
- _.isOptional = t3;
- _.span = t4;
- },
- Extender0: function Extender0(t0, t1) {
- this.selector = t0;
- this.isOriginal = t1;
- this._extension$_extension = null;
- },
- ExtensionStore__extendOrReplace0(selector, source, targets, mode, span) {
- var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, compound, t9, t10, t11, _i0, simple, t12, _i1, t13, t14,
- extender = A.ExtensionStore$_mode0(mode);
- if (!selector.accept$1(B._IsInvisibleVisitor_true0))
- extender._extension_store$_originals.addAll$1(0, selector.components);
- for (t1 = targets.components, t2 = t1.length, t3 = source.components, t4 = t3.length, t5 = type$.ComplexSelector_2, t6 = type$.Extension_2, t7 = type$.SimpleSelector_2, t8 = type$.Map_ComplexSelector_Extension_2, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- compound = complex.get$singleCompound();
- if (compound == null)
- throw A.wrapException(A.SassScriptException$0("Can't extend complex selector " + A.S(complex) + ".", null));
- t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8);
- for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) {
- simple = t10[_i0];
- t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6);
- for (_i1 = 0; _i1 < t4; ++_i1) {
- complex = t3[_i1];
- complex.get$specificity();
- t13 = new A.Extender0(complex, false);
- t14 = new A.Extension0(t13, simple, null, true, span);
- t13._extension$_extension = t14;
- t12.$indexSet(0, complex, t14);
- }
- t9.$indexSet(0, simple, t12);
- }
- selector = extender._extension_store$_extendList$2(selector, t9);
- }
- return selector;
- },
- ExtensionStore$0() {
- var t1 = type$.SimpleSelector_2;
- return new A.ExtensionStore0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList_2, type$.List_CssMediaQuery_2), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int_2), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), B.ExtendMode_normal_normal0);
- },
- ExtensionStore$_mode0(_mode) {
- var t1 = type$.SimpleSelector_2;
- return new A.ExtensionStore0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList_2, type$.List_CssMediaQuery_2), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int_2), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), _mode);
- },
- ExtensionStore0: function ExtensionStore0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._extension_store$_selectors = t0;
- _._extension_store$_extensions = t1;
- _._extension_store$_extensionsByExtender = t2;
- _._extension_store$_mediaContexts = t3;
- _._extension_store$_sourceSpecificity = t4;
- _._extension_store$_originals = t5;
- _._extension_store$_mode = t6;
- },
- ExtensionStore_extensionsWhereTarget_closure0: function ExtensionStore_extensionsWhereTarget_closure0() {
- },
- ExtensionStore__registerSelector_closure0: function ExtensionStore__registerSelector_closure0() {
- },
- ExtensionStore_addExtension_closure2: function ExtensionStore_addExtension_closure2() {
- },
- ExtensionStore_addExtension_closure3: function ExtensionStore_addExtension_closure3() {
- },
- ExtensionStore_addExtension_closure4: function ExtensionStore_addExtension_closure4(t0) {
- this.complex = t0;
- },
- ExtensionStore__extendExistingExtensions_closure1: function ExtensionStore__extendExistingExtensions_closure1() {
- },
- ExtensionStore__extendExistingExtensions_closure2: function ExtensionStore__extendExistingExtensions_closure2() {
- },
- ExtensionStore_addExtensions_closure0: function ExtensionStore_addExtensions_closure0() {
- },
- ExtensionStore__extendComplex_closure0: function ExtensionStore__extendComplex_closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.complex = t2;
- },
- ExtensionStore__extendComplex__closure0: function ExtensionStore__extendComplex__closure0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.complex = t2;
- },
- ExtensionStore__extendCompound_closure2: function ExtensionStore__extendCompound_closure2() {
- },
- ExtensionStore__extendCompound_closure3: function ExtensionStore__extendCompound_closure3() {
- },
- ExtensionStore__extendCompound_closure4: function ExtensionStore__extendCompound_closure4(t0) {
- this.original = t0;
- },
- ExtensionStore__extendSimple_withoutPseudo0: function ExtensionStore__extendSimple_withoutPseudo0(t0, t1, t2) {
- this.$this = t0;
- this.extensions = t1;
- this.targetsUsed = t2;
- },
- ExtensionStore__extendSimple_closure1: function ExtensionStore__extendSimple_closure1(t0, t1) {
- this.$this = t0;
- this.withoutPseudo = t1;
- },
- ExtensionStore__extendSimple_closure2: function ExtensionStore__extendSimple_closure2() {
- },
- ExtensionStore__extendPseudo_closure4: function ExtensionStore__extendPseudo_closure4() {
- },
- ExtensionStore__extendPseudo_closure5: function ExtensionStore__extendPseudo_closure5() {
- },
- ExtensionStore__extendPseudo_closure6: function ExtensionStore__extendPseudo_closure6() {
- },
- ExtensionStore__extendPseudo_closure7: function ExtensionStore__extendPseudo_closure7(t0) {
- this.pseudo = t0;
- },
- ExtensionStore__extendPseudo_closure8: function ExtensionStore__extendPseudo_closure8(t0, t1) {
- this.pseudo = t0;
- this.selector = t1;
- },
- ExtensionStore__trim_closure1: function ExtensionStore__trim_closure1(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- ExtensionStore__trim_closure2: function ExtensionStore__trim_closure2(t0, t1) {
- this._box_0 = t0;
- this.complex1 = t1;
- },
- ExtensionStore_clone_closure0: function ExtensionStore_clone_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.newSelectors = t1;
- _.oldToNewSelectors = t2;
- _.newMediaContexts = t3;
- },
- FiberClass: function FiberClass() {
- },
- Fiber: function Fiber() {
- },
- JSToDartFileImporter: function JSToDartFileImporter(t0) {
- this._file0$_findFileUrl = t0;
- },
- JSToDartFileImporter_canonicalize_closure: function JSToDartFileImporter_canonicalize_closure(t0, t1) {
- this.$this = t0;
- this.url = t1;
- },
- FilesystemImporter0: function FilesystemImporter0(t0, t1) {
- this._filesystem$_loadPath = t0;
- this._filesystem$_loadPathDeprecated = t1;
- },
- FilesystemImporter_canonicalize_closure0: function FilesystemImporter_canonicalize_closure0() {
- },
- ForRule$0(variable, from, to, children, span, exclusive) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.ForRule0(variable, from, to, exclusive, span, t1, t2);
- },
- ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.variable = t0;
- _.from = t1;
- _.to = t2;
- _.isExclusive = t3;
- _.span = t4;
- _.children = t5;
- _.hasDeclarations = t6;
- },
- ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
- var _ = this;
- _.url = t0;
- _.shownMixinsAndFunctions = t1;
- _.shownVariables = t2;
- _.hiddenMixinsAndFunctions = t3;
- _.hiddenVariables = t4;
- _.prefix = t5;
- _.configuration = t6;
- _.span = t7;
- },
- ForwardedModuleView_ifNecessary0(inner, rule, $T) {
- var t1;
- if (rule.prefix == null)
- if (rule.shownMixinsAndFunctions == null)
- if (rule.shownVariables == null) {
- t1 = rule.hiddenMixinsAndFunctions;
- t1 = t1 == null ? null : t1._base.get$isEmpty(0);
- if (t1 === true) {
- t1 = rule.hiddenVariables;
- t1 = t1 == null ? null : t1._base.get$isEmpty(0);
- t1 = t1 === true;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- return inner;
- else
- return A.ForwardedModuleView$0(inner, rule, $T);
- },
- ForwardedModuleView$0(_inner, _rule, $T) {
- var t1 = _rule.prefix,
- t2 = _rule.shownVariables,
- t3 = _rule.hiddenVariables,
- t4 = _rule.shownMixinsAndFunctions,
- t5 = _rule.hiddenMixinsAndFunctions;
- return new A.ForwardedModuleView0(_inner, _rule, A.ForwardedModuleView__forwardedMap0(_inner.get$variables(), t1, t2, t3, type$.Value_2), A.ForwardedModuleView__forwardedMap0(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode_2), A.ForwardedModuleView__forwardedMap0(_inner.get$functions(_inner), t1, t4, t5, $T), A.ForwardedModuleView__forwardedMap0(_inner.get$mixins(), t1, t4, t5, $T), $T._eval$1("ForwardedModuleView0<0>"));
- },
- ForwardedModuleView__forwardedMap0(map, prefix, safelist, blocklist, $V) {
- var t2,
- t1 = prefix == null;
- if (t1)
- if (safelist == null)
- t2 = blocklist == null || blocklist._base.get$isEmpty(0);
- else
- t2 = false;
- else
- t2 = false;
- if (t2)
- return map;
- if (!t1)
- map = new A.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0>"));
- if (safelist != null)
- map = new A.LimitedMapView0(map, safelist._base.intersection$1(new A.MapKeySet(map, type$.MapKeySet_nullable_Object)), type$.$env_1_1_String._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
- else if (blocklist != null && blocklist._base.get$isNotEmpty(0))
- map = A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
- return map;
- },
- ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._forwarded_view0$_inner = t0;
- _._forwarded_view0$_rule = t1;
- _.variables = t2;
- _.variableNodes = t3;
- _.functions = t4;
- _.mixins = t5;
- _.$ti = t6;
- },
- FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.originalName = t2;
- _.$arguments = t3;
- _.span = t4;
- },
- JSFunction0: function JSFunction0() {
- },
- SupportsFunction0: function SupportsFunction0(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.span = t2;
- },
- functionClass_closure: function functionClass_closure() {
- },
- functionClass__closure: function functionClass__closure() {
- },
- functionClass__closure0: function functionClass__closure0() {
- },
- SassFunction0: function SassFunction0(t0) {
- this.callable = t0;
- },
- FunctionRule$0($name, $arguments, children, span, comment) {
- var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
- t2 = A.List_List$unmodifiable(children, type$.Statement_2),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
- return new A.FunctionRule0(t1, $name, $arguments, span, t2, t3);
- },
- FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.name = t0;
- _.originalName = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- unifyComplex0(complexes, span) {
- var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, t4, _0_6_isSet, _0_6, t5, newLeadingCombinator, base, _1_1, newTrailingCombinator, _i, t6, t7, t8, _null = null,
- t1 = J.getInterceptor$asx(complexes);
- if (t1.get$length(complexes) === 1)
- return complexes;
- for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- if (t3.accept$1(B.C__IsUselessVisitor0))
- return _null;
- t4 = t3.components;
- _0_6_isSet = t4.length === 1;
- if (_0_6_isSet) {
- _0_6 = t3.leadingCombinators;
- t5 = _0_6.length === 1;
- } else {
- _0_6 = _null;
- t5 = false;
- }
- if (t5) {
- newLeadingCombinator = (_0_6_isSet ? _0_6 : t3.leadingCombinators)[0];
- if (leadingCombinator == null)
- leadingCombinator = newLeadingCombinator;
- else if (!(leadingCombinator.$ti._is(newLeadingCombinator) && J.$eq$(newLeadingCombinator.value, leadingCombinator.value)))
- return _null;
- }
- base = B.JSArray_methods.get$last(t4);
- _1_1 = base.combinators;
- if (_1_1.length === 1) {
- newTrailingCombinator = _1_1[0];
- if (trailingCombinator != null)
- t3 = !(trailingCombinator.$ti._is(newTrailingCombinator) && J.$eq$(newTrailingCombinator.value, trailingCombinator.value));
- else
- t3 = false;
- if (t3)
- return _null;
- trailingCombinator = newTrailingCombinator;
- }
- if (unifiedBase == null)
- unifiedBase = base.selector.components;
- else
- for (t3 = base.selector.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
- unifiedBase = t3[_i].unify$1(unifiedBase);
- if (unifiedBase == null)
- return _null;
- }
- }
- t2 = type$.JSArray_ComplexSelector_2;
- t3 = A._setArrayType([], t2);
- for (t4 = t1.get$iterator(complexes); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- t6 = t5.components;
- t7 = t6.length;
- if (t7 > 1) {
- t8 = t5.leadingCombinators;
- t3.push(A.ComplexSelector$0(t8, B.JSArray_methods.take$1(t6, t7 - 1), t5.span, t5.lineBreak));
- }
- }
- t4 = leadingCombinator == null ? B.List_empty13 : A._setArrayType([leadingCombinator], type$.JSArray_CssValue_Combinator_2);
- unifiedBase.toString;
- t5 = A.CompoundSelector$0(unifiedBase, span);
- t6 = trailingCombinator == null ? B.List_empty13 : A._setArrayType([trailingCombinator], type$.JSArray_CssValue_Combinator_2);
- base = A.ComplexSelector$0(t4, A._setArrayType([new A.ComplexSelectorComponent0(t5, A.List_List$unmodifiable(t6, type$.CssValue_Combinator_2), span)], type$.JSArray_ComplexSelectorComponent_2), span, t1.any$1(complexes, new A.unifyComplex_closure0()));
- if (t3.length === 0)
- t1 = A._setArrayType([base], t2);
- else {
- t1 = A.List_List$of(A.IterableExtension_get_exceptLast0(t3), true, type$.ComplexSelector_2);
- t1.push(B.JSArray_methods.get$last(t3).concatenate$2(base, span));
- }
- return A.weave0(t1, span, false);
- },
- unifyCompound0(compound1, compound2) {
- var t1, t2, _i, unified,
- result = compound2.components;
- for (t1 = compound1.components, t2 = t1.length, _i = 0; _i < t2; ++_i, result = unified) {
- unified = t1[_i].unify$1(result);
- if (unified == null)
- return null;
- }
- return A.CompoundSelector$0(result, compound1.span);
- },
- unifyUniversalAndElement0(selector1, selector2) {
- var namespace, $name, t1,
- _0_0 = A._namespaceAndName0(selector1, "selector1"),
- namespace1 = _0_0._0,
- name1 = _0_0._1,
- _1_0 = A._namespaceAndName0(selector2, "selector2"),
- namespace2 = _1_0._0,
- name2 = _1_0._1;
- if (namespace1 == namespace2 || namespace2 === "*")
- namespace = namespace1;
- else {
- if (namespace1 !== "*")
- return null;
- namespace = namespace2;
- }
- if (name1 == name2 || name2 == null)
- $name = name1;
- else {
- if (!(name1 == null || name1 === "*"))
- return null;
- $name = name2;
- }
- t1 = selector1.span;
- return $name == null ? new A.UniversalSelector0(namespace, t1) : new A.TypeSelector0(new A.QualifiedName0($name, namespace), t1);
- },
- _namespaceAndName0(selector, $name) {
- var t1, _0_4;
- $label0$0: {
- if (selector instanceof A.UniversalSelector0) {
- t1 = new A._Record_2(selector.namespace, null);
- break $label0$0;
- }
- if (selector instanceof A.TypeSelector0) {
- _0_4 = selector.name;
- t1 = new A._Record_2(_0_4.namespace, _0_4.name);
- break $label0$0;
- }
- t1 = A.throwExpression(A.ArgumentError$value(selector, $name, string$.must_b));
- }
- return t1;
- },
- weave0(complexes, span, forceLineBreak) {
- var complex, t2, prefixes, t3, t4, t5, t6, i, t7, t8, _i, t9, t10, _i0, parentPrefix, t11, t12,
- t1 = J.getInterceptor$asx(complexes);
- if (t1.get$length(complexes) === 1) {
- complex = t1.$index(complexes, 0);
- if (!forceLineBreak || complex.lineBreak)
- return complexes;
- return A._setArrayType([A.ComplexSelector$0(complex.leadingCombinators, complex.components, complex.span, true)], type$.JSArray_ComplexSelector_2);
- }
- t2 = type$.JSArray_ComplexSelector_2;
- prefixes = A._setArrayType([t1.get$first(complexes)], t2);
- for (t1 = t1.skip$1(complexes, 1), t3 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t3._eval$1("ListIterator<ListIterable.E>")), t4 = type$.ComplexSelectorComponent_2, t3 = t3._eval$1("ListIterable.E"); t1.moveNext$0();) {
- t5 = t1.__internal$_current;
- if (t5 == null)
- t5 = t3._as(t5);
- t6 = t5.components;
- if (t6.length === 1) {
- for (i = 0; i < prefixes.length; ++i)
- prefixes[i] = prefixes[i].concatenate$3$forceLineBreak(t5, span, forceLineBreak);
- continue;
- }
- t7 = A._setArrayType([], t2);
- for (t8 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t8 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) {
- t9 = A._weaveParents0(prefixes[_i], t5, span);
- if (t9 == null)
- t9 = B.List_empty14;
- t10 = t9.length;
- _i0 = 0;
- for (; _i0 < t9.length; t9.length === t10 || (0, A.throwConcurrentModificationError)(t9), ++_i0) {
- parentPrefix = t9[_i0];
- t11 = B.JSArray_methods.get$last(t6);
- t12 = A.List_List$of(parentPrefix.components, true, t4);
- t12.push(t11);
- t11 = parentPrefix.lineBreak || forceLineBreak;
- t7.push(A.ComplexSelector$0(parentPrefix.leadingCombinators, t12, span, t11));
- }
- }
- prefixes = t7;
- }
- return prefixes;
- },
- _weaveParents0(prefix, base, span) {
- var t1, queue1, queue2, trailingCombinators, _0_1, _0_3, _0_3_isSet, rootish1, t2, rootish2, _0_30, rootish, t3, rootish_case_0, t0, rootish_case_1, groups1, groups2, lcs, choices, t4, _i, group, t5, t6, t7, _i0, chunk, t8, t9, _null = null,
- leadingCombinators = A._mergeLeadingCombinators0(prefix.leadingCombinators, base.leadingCombinators);
- if (leadingCombinators == null)
- return _null;
- t1 = type$.ComplexSelectorComponent_2;
- queue1 = A.QueueList_QueueList$from(prefix.components, t1);
- queue2 = A.QueueList_QueueList$from(A.IterableExtension_get_exceptLast0(base.components), t1);
- trailingCombinators = A._mergeTrailingCombinators0(queue1, queue2, span, _null);
- if (trailingCombinators == null)
- return _null;
- $label0$0: {
- _0_1 = A._firstIfRootish0(queue1);
- _0_3 = A._firstIfRootish0(queue2);
- _0_3_isSet = _0_1 != null;
- if (_0_3_isSet) {
- rootish1 = _0_1 == null ? t1._as(_0_1) : _0_1;
- t2 = _0_3 != null;
- if (t2)
- rootish2 = _0_3 == null ? t1._as(_0_3) : _0_3;
- else
- rootish2 = _null;
- _0_30 = _0_3;
- } else {
- rootish2 = _null;
- rootish1 = rootish2;
- _0_30 = rootish1;
- t2 = false;
- }
- if (t2) {
- rootish = A.unifyCompound0(rootish1.selector, rootish2.selector);
- if (rootish == null)
- return _null;
- t1 = rootish1.combinators;
- t2 = rootish1.span;
- t3 = type$.CssValue_Combinator_2;
- queue1.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(t1, t3), t2));
- queue2.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(rootish2.combinators, t3), t2));
- break $label0$0;
- }
- if (_0_1 != null) {
- rootish_case_0 = _0_1;
- if (_0_3_isSet)
- t2 = _0_30;
- else {
- t2 = _0_3;
- _0_30 = t2;
- _0_3_isSet = true;
- }
- t2 = t2 == null;
- t3 = t2 ? rootish_case_0 : _null;
- t0 = t3;
- t3 = t2;
- t2 = t0;
- } else {
- t2 = _null;
- t3 = false;
- }
- if (!t3)
- if (_0_1 == null) {
- if (_0_3_isSet)
- t3 = _0_30;
- else {
- t3 = _0_3;
- _0_30 = t3;
- _0_3_isSet = true;
- }
- t3 = t3 != null;
- if (t3) {
- rootish_case_1 = _0_3_isSet ? _0_30 : _0_3;
- if (rootish_case_1 == null)
- rootish_case_1 = t1._as(rootish_case_1);
- t1 = rootish_case_1;
- } else
- t1 = t2;
- t2 = t3;
- } else {
- t1 = t2;
- t2 = false;
- }
- else {
- t1 = t2;
- t2 = true;
- }
- if (t2) {
- queue1.addFirst$1(t1);
- queue2.addFirst$1(t1);
- }
- }
- groups1 = A._groupSelectors0(queue1);
- groups2 = A._groupSelectors0(queue2);
- t1 = type$.List_ComplexSelectorComponent_2;
- lcs = A.longestCommonSubsequence0(groups2, groups1, new A._weaveParents_closure3(span), t1);
- choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent_2);
- for (t2 = lcs.length, t3 = type$.JSArray_Iterable_ComplexSelectorComponent_2, t4 = type$.JSArray_ComplexSelectorComponent_2, _i = 0; _i < lcs.length; lcs.length === t2 || (0, A.throwConcurrentModificationError)(lcs), ++_i) {
- group = lcs[_i];
- t5 = A._setArrayType([], t3);
- for (t6 = A._chunks0(groups1, groups2, new A._weaveParents_closure4(group), t1), t7 = t6.length, _i0 = 0; _i0 < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i0) {
- chunk = t6[_i0];
- t8 = A._setArrayType([], t4);
- for (t9 = B.JSArray_methods.get$iterator(chunk); t9.moveNext$0();)
- B.JSArray_methods.addAll$1(t8, t9.get$current(0));
- t5.push(t8);
- }
- choices.push(t5);
- choices.push(A._setArrayType([group], t3));
- groups1.removeFirst$0();
- groups2.removeFirst$0();
- }
- t2 = A._setArrayType([], t3);
- for (t1 = A._chunks0(groups1, groups2, new A._weaveParents_closure5(), t1), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- chunk = t1[_i];
- t5 = A._setArrayType([], t4);
- for (t6 = B.JSArray_methods.get$iterator(chunk); t6.moveNext$0();)
- B.JSArray_methods.addAll$1(t5, t6.get$current(0));
- t2.push(t5);
- }
- choices.push(t2);
- B.JSArray_methods.addAll$1(choices, trailingCombinators);
- t1 = A._setArrayType([], type$.JSArray_ComplexSelector_2);
- for (t2 = J.get$iterator$ax(A.paths0(new A.WhereIterable(choices, new A._weaveParents_closure6(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent_2), type$.Iterable_ComplexSelectorComponent_2)), t3 = !prefix.lineBreak, t5 = base.lineBreak; t2.moveNext$0();) {
- t6 = t2.get$current(t2);
- t7 = A._setArrayType([], t4);
- for (t6 = J.get$iterator$ax(t6); t6.moveNext$0();)
- B.JSArray_methods.addAll$1(t7, t6.get$current(t6));
- t1.push(A.ComplexSelector$0(leadingCombinators, t7, span, !t3 || t5));
- }
- return t1;
- },
- _firstIfRootish0(queue) {
- var first, t1, t2, _i, simple, t3;
- if (queue.get$length(0) >= 1) {
- first = queue.$index(0, 0);
- for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- simple = t1[_i];
- if (simple instanceof A.PseudoSelector0)
- if (simple.isClass)
- t3 = $._rootishPseudoClasses0.contains$1(0, simple.normalizedName);
- else
- t3 = false;
- else
- t3 = false;
- if (t3) {
- queue.removeFirst$0();
- return first;
- }
- }
- }
- return null;
- },
- _mergeLeadingCombinators0(combinators1, combinators2) {
- var _0_4, t1, _0_7_isSet, _0_7, t2, _0_11_isSet, _0_11, _0_4_isSet, combinators, _null = null;
- $label0$0: {
- _0_4 = combinators2;
- t1 = type$.List_CssValue_Combinator_2;
- _0_7_isSet = t1._is(combinators1);
- if (_0_7_isSet) {
- _0_7 = combinators1.length;
- t2 = _0_7;
- t2 = t2 > 1;
- } else {
- _0_7 = _null;
- t2 = false;
- }
- if (!t2) {
- t2 = _0_4;
- _0_11_isSet = t1._is(t2);
- if (_0_11_isSet) {
- t2 = _0_4;
- _0_11 = (t2 == null ? t1._as(t2) : t2).length;
- t2 = _0_11;
- _0_4_isSet = true;
- t2 = t2 > 1;
- } else {
- _0_11 = _null;
- _0_4_isSet = true;
- t2 = false;
- }
- } else {
- _0_11 = _null;
- _0_4_isSet = true;
- _0_11_isSet = false;
- t2 = true;
- }
- if (t2) {
- t1 = _null;
- break $label0$0;
- }
- if (t1._is(combinators1)) {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- _0_7 = combinators1.length;
- t2 = _0_7;
- }
- t2 = t2 <= 0;
- if (t2)
- if (_0_4_isSet)
- combinators = _0_4;
- else {
- combinators = combinators2;
- _0_4 = combinators;
- _0_4_isSet = true;
- }
- else
- combinators = _null;
- } else {
- combinators = _null;
- t2 = false;
- }
- if (!t2) {
- if (_0_4_isSet)
- t2 = _0_4;
- else {
- t2 = combinators2;
- _0_4 = t2;
- _0_4_isSet = true;
- }
- if (t1._is(t2)) {
- if (_0_11_isSet)
- t1 = _0_11;
- else {
- t2 = _0_4_isSet ? _0_4 : combinators2;
- _0_11 = (t2 == null ? t1._as(t2) : t2).length;
- t1 = _0_11;
- }
- t1 = t1 <= 0;
- } else
- t1 = false;
- combinators = combinators1;
- } else
- t1 = true;
- if (t1) {
- t1 = combinators;
- break $label0$0;
- }
- t1 = B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null;
- break $label0$0;
- }
- return t1;
- },
- _mergeTrailingCombinators0(components1, components2, span, result) {
- var _0_1, t1, _1_1, t2, t3, _4_1, _4_3, _4_4_isSet, _4_4, _4_5, component1, component2, t4, t5, choices, _2_0, _4_4_isSet0, _4_9, _4_6_isSet, _4_6, _4_7, nextComponents, followingComponents, _4_7_isSet, _4_10_isSet, _4_10, _4_5_isSet, next, following, _3_0, siblingComponents_case_0, t0, siblingComponents_case_1, combinator1, combinator2, unified, combinator_case_0, combinatorComponents_case_0, descendantComponents_case_0, t6, combinator_case_1, descendantComponents_case_1, combinatorComponents_case_1, _null = null;
- if (result == null)
- result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent_2);
- $label0$0: {
- _0_1 = components1.get$length(0);
- if (_0_1 >= 1) {
- t1 = components1.$index(0, _0_1 - 1).combinators;
- break $label0$0;
- }
- t1 = B.List_empty13;
- break $label0$0;
- }
- $label1$1: {
- _1_1 = components2.get$length(0);
- if (_1_1 >= 1) {
- t2 = components2.$index(0, _1_1 - 1).combinators;
- break $label1$1;
- }
- t2 = B.List_empty13;
- break $label1$1;
- }
- t3 = t1.length;
- if (t3 === 0 && t2.length === 0)
- return result;
- if (t3 > 1 || t2.length > 1)
- return _null;
- $label2$2: {
- t3 = A.IterableExtension_get_firstOrNull(t1);
- t3 = t3 == null ? _null : t3.value;
- t2 = A.IterableExtension_get_firstOrNull(t2);
- t2 = [t3, t2 == null ? _null : t2.value, components1, components2];
- _4_1 = t2[0];
- _4_3 = B.Combinator_y180 === _4_1;
- _4_4_isSet = _4_3;
- if (_4_4_isSet) {
- _4_4 = t2[1];
- _4_5 = B.Combinator_y180 === _4_4;
- t3 = _4_5;
- } else {
- _4_4 = _null;
- _4_5 = _4_4;
- t3 = false;
- }
- if (t3) {
- component1 = components1.removeLast$0(0);
- component2 = components2.removeLast$0(0);
- t2 = component1.selector;
- t3 = component2.selector;
- if (A.compoundIsSuperselector0(t2, t3, _null))
- result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- else {
- t4 = type$.JSArray_ComplexSelectorComponent_2;
- t5 = type$.JSArray_List_ComplexSelectorComponent_2;
- if (A.compoundIsSuperselector0(t3, t2, _null))
- result.addFirst$1(A._setArrayType([A._setArrayType([component1], t4)], t5));
- else {
- choices = A._setArrayType([A._setArrayType([component1, component2], t4), A._setArrayType([component2, component1], t4)], t5);
- _2_0 = A.unifyCompound0(t2, t3);
- if (_2_0 != null)
- choices.push(A._setArrayType([new A.ComplexSelectorComponent0(_2_0, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator_2), type$.CssValue_Combinator_2), span)], t4));
- result.addFirst$1(choices);
- }
- }
- break $label2$2;
- }
- if (_4_3) {
- if (_4_4_isSet) {
- t3 = _4_4;
- _4_4_isSet0 = _4_4_isSet;
- } else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet0 = true;
- }
- _4_9 = B.Combinator_gRV0 === t3;
- _4_6_isSet = _4_9;
- if (_4_6_isSet) {
- _4_6 = t2[2];
- _4_7 = t2[3];
- nextComponents = _4_7;
- followingComponents = _4_6;
- } else {
- nextComponents = _null;
- followingComponents = nextComponents;
- _4_7 = followingComponents;
- _4_6 = _4_7;
- }
- t3 = _4_6_isSet;
- _4_7_isSet = t3;
- } else {
- nextComponents = _null;
- followingComponents = nextComponents;
- _4_7 = followingComponents;
- _4_6 = _4_7;
- _4_9 = _4_6;
- _4_4_isSet0 = _4_4_isSet;
- _4_6_isSet = false;
- _4_7_isSet = false;
- t3 = false;
- }
- _4_10_isSet = !t3;
- if (_4_10_isSet) {
- _4_10 = B.Combinator_gRV0 === _4_1;
- t3 = _4_10;
- if (t3) {
- if (_4_4_isSet) {
- t3 = _4_5;
- _4_5_isSet = _4_4_isSet;
- _4_4_isSet = _4_4_isSet0;
- } else {
- if (_4_4_isSet0) {
- t3 = _4_4;
- _4_4_isSet = _4_4_isSet0;
- } else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- _4_5 = B.Combinator_y180 === t3;
- t3 = _4_5;
- _4_5_isSet = true;
- }
- if (t3) {
- if (_4_6_isSet)
- nextComponents = _4_6;
- else {
- _4_6 = t2[2];
- nextComponents = _4_6;
- _4_6_isSet = true;
- }
- if (_4_7_isSet)
- followingComponents = _4_7;
- else {
- _4_7 = t2[3];
- followingComponents = _4_7;
- _4_7_isSet = true;
- }
- }
- } else {
- _4_5_isSet = _4_4_isSet;
- _4_4_isSet = _4_4_isSet0;
- t3 = false;
- }
- } else {
- _4_10 = _null;
- _4_5_isSet = _4_4_isSet;
- _4_4_isSet = _4_4_isSet0;
- t3 = true;
- }
- if (t3) {
- next = nextComponents.removeLast$0(0);
- following = followingComponents.removeLast$0(0);
- t1 = following.selector;
- t2 = next.selector;
- t3 = type$.JSArray_ComplexSelectorComponent_2;
- t4 = type$.JSArray_List_ComplexSelectorComponent_2;
- if (A.compoundIsSuperselector0(t1, t2, _null))
- result.addFirst$1(A._setArrayType([A._setArrayType([next], t3)], t4));
- else {
- t4 = A._setArrayType([A._setArrayType([following, next], t3)], t4);
- _3_0 = A.unifyCompound0(t1, t2);
- if (_3_0 != null)
- t4.push(A._setArrayType([new A.ComplexSelectorComponent0(_3_0, A.List_List$unmodifiable(next.combinators, type$.CssValue_Combinator_2), span)], t3));
- result.addFirst$1(t4);
- }
- break $label2$2;
- }
- if (B.Combinator_8I80 === _4_1) {
- if (_4_3)
- t3 = _4_9;
- else {
- if (_4_4_isSet)
- t3 = _4_4;
- else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- _4_9 = B.Combinator_gRV0 === t3;
- t3 = _4_9;
- }
- if (!t3)
- if (_4_5_isSet)
- t3 = _4_5;
- else {
- if (_4_4_isSet)
- t3 = _4_4;
- else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- _4_5 = B.Combinator_y180 === t3;
- t3 = _4_5;
- }
- else
- t3 = true;
- if (t3) {
- if (_4_7_isSet)
- siblingComponents_case_0 = _4_7;
- else {
- _4_7 = t2[3];
- siblingComponents_case_0 = _4_7;
- _4_7_isSet = true;
- }
- t4 = siblingComponents_case_0;
- } else
- t4 = _null;
- t0 = t4;
- t4 = t3;
- t3 = t0;
- } else {
- t3 = _null;
- t4 = false;
- }
- if (!t4) {
- if (_4_10_isSet)
- t4 = _4_10;
- else {
- _4_10 = B.Combinator_gRV0 === _4_1;
- t4 = _4_10;
- }
- if (!t4)
- t4 = _4_3;
- else
- t4 = true;
- if (t4) {
- if (_4_4_isSet)
- t4 = _4_4;
- else {
- _4_4 = t2[1];
- t4 = _4_4;
- _4_4_isSet = true;
- }
- t4 = B.Combinator_8I80 === t4;
- if (t4) {
- if (_4_6_isSet)
- siblingComponents_case_1 = _4_6;
- else {
- _4_6 = t2[2];
- siblingComponents_case_1 = _4_6;
- _4_6_isSet = true;
- }
- t3 = siblingComponents_case_1;
- }
- } else
- t4 = false;
- } else
- t4 = true;
- if (t4) {
- result.addFirst$1(A._setArrayType([A._setArrayType([t3.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- break $label2$2;
- }
- t3 = _4_1 == null;
- t4 = !t3;
- if (t4) {
- combinator1 = _4_1;
- if (_4_4_isSet)
- t5 = _4_4;
- else {
- _4_4 = t2[1];
- t5 = _4_4;
- _4_4_isSet = true;
- }
- if (t5 != null) {
- if (_4_4_isSet)
- combinator2 = _4_4;
- else {
- _4_4 = t2[1];
- combinator2 = _4_4;
- _4_4_isSet = true;
- }
- t5 = combinator1 === (combinator2 == null ? type$.Combinator_2._as(combinator2) : combinator2);
- } else
- t5 = false;
- } else
- t5 = false;
- if (t5) {
- unified = A.unifyCompound0(components1.removeLast$0(0).selector, components2.removeLast$0(0).selector);
- if (unified == null)
- return _null;
- result.addFirst$1(A._setArrayType([A._setArrayType([new A.ComplexSelectorComponent0(unified, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator_2), type$.CssValue_Combinator_2), span)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- break $label2$2;
- }
- if (t4) {
- combinator_case_0 = _4_1;
- if (_4_4_isSet)
- t1 = _4_4;
- else {
- _4_4 = t2[1];
- t1 = _4_4;
- _4_4_isSet = true;
- }
- t1 = t1 == null;
- if (t1) {
- if (_4_6_isSet)
- combinatorComponents_case_0 = _4_6;
- else {
- _4_6 = t2[2];
- combinatorComponents_case_0 = _4_6;
- _4_6_isSet = true;
- }
- if (_4_7_isSet)
- descendantComponents_case_0 = _4_7;
- else {
- _4_7 = t2[3];
- descendantComponents_case_0 = _4_7;
- _4_7_isSet = true;
- }
- t4 = descendantComponents_case_0;
- t6 = t4;
- t4 = combinator_case_0;
- t5 = combinatorComponents_case_0;
- } else {
- t6 = _null;
- t5 = t6;
- t4 = t5;
- }
- t0 = t6;
- t6 = t1;
- t1 = t4;
- t4 = t5;
- t5 = t0;
- } else {
- t5 = _null;
- t4 = t5;
- t1 = t4;
- t6 = false;
- }
- if (!t6)
- if (t3) {
- if (_4_4_isSet)
- t3 = _4_4;
- else {
- _4_4 = t2[1];
- t3 = _4_4;
- _4_4_isSet = true;
- }
- t3 = t3 != null;
- if (t3) {
- combinator_case_1 = _4_4_isSet ? _4_4 : t2[1];
- if (combinator_case_1 == null)
- combinator_case_1 = type$.Combinator_2._as(combinator_case_1);
- descendantComponents_case_1 = _4_6_isSet ? _4_6 : t2[2];
- combinatorComponents_case_1 = _4_7_isSet ? _4_7 : t2[3];
- t1 = combinatorComponents_case_1;
- t2 = descendantComponents_case_1;
- t4 = t2;
- t2 = t1;
- t1 = combinator_case_1;
- } else {
- t2 = t4;
- t4 = t5;
- }
- t0 = t4;
- t4 = t3;
- t3 = t0;
- } else {
- t3 = t5;
- t2 = t4;
- t4 = false;
- }
- else {
- t3 = t5;
- t2 = t4;
- t4 = true;
- }
- if (t4) {
- if (t1 === B.Combinator_8I80) {
- t1 = A.IterableExtension_get_lastOrNull(t3);
- t1 = t1 == null ? _null : A.compoundIsSuperselector0(t1.selector, t2.get$last(t2).selector, _null);
- t1 = t1 === true;
- } else
- t1 = false;
- if (t1)
- t3.removeLast$0(0);
- result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
- break $label2$2;
- }
- return _null;
- }
- return A._mergeTrailingCombinators0(components1, components2, span, result);
- },
- _mustUnify0(complex1, complex2) {
- var t2, t3, t4,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2);
- for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();)
- for (t3 = B.JSArray_methods.get$iterator(t2.get$current(t2).selector.components), t4 = new A.WhereIterator(t3, A.functions0___isUnique$closure()); t4.moveNext$0();)
- t1.add$1(0, t3.get$current(0));
- if (t1._collection$_length === 0)
- return false;
- return J.any$1$ax(complex2, new A._mustUnify_closure0(t1));
- },
- _isUnique0(simple) {
- var t1;
- if (!(simple instanceof A.IDSelector0))
- t1 = simple instanceof A.PseudoSelector0 && !simple.isClass;
- else
- t1 = true;
- return t1;
- },
- _chunks0(queue1, queue2, done, $T) {
- var chunk2, _0_4, _0_5_isSet, _0_1, _0_7, _0_5, chunk, _0_5_isSet0, t2, _null = null,
- t1 = $T._eval$1("JSArray<0>"),
- chunk1 = A._setArrayType([], t1);
- for (; !done.call$1(queue1);)
- chunk1.push(queue1.removeFirst$0());
- chunk2 = A._setArrayType([], t1);
- for (; !done.call$1(queue2);)
- chunk2.push(queue2.removeFirst$0());
- $label0$0: {
- _0_4 = chunk1.length <= 0;
- _0_5_isSet = _0_4;
- _0_1 = chunk1;
- if (_0_5_isSet) {
- _0_7 = chunk2.length <= 0;
- t1 = _0_7;
- _0_5 = chunk2;
- } else {
- _0_5 = _null;
- _0_7 = _0_5;
- t1 = false;
- }
- if (t1) {
- t1 = A._setArrayType([], $T._eval$1("JSArray<List<0>>"));
- break $label0$0;
- }
- if (_0_4)
- if (_0_5_isSet) {
- chunk = _0_5;
- _0_5_isSet0 = _0_5_isSet;
- } else {
- chunk = chunk2;
- _0_5 = chunk;
- _0_5_isSet0 = true;
- }
- else {
- chunk = _null;
- _0_5_isSet0 = _0_5_isSet;
- }
- if (!_0_4) {
- if (_0_5_isSet)
- t1 = _0_7;
- else {
- _0_7 = (_0_5_isSet0 ? _0_5 : chunk2).length <= 0;
- t1 = _0_7;
- }
- chunk = _0_1;
- } else
- t1 = true;
- if (t1) {
- t1 = A._setArrayType([chunk], $T._eval$1("JSArray<List<0>>"));
- break $label0$0;
- }
- t1 = A.List_List$of(chunk1, true, $T);
- B.JSArray_methods.addAll$1(t1, chunk2);
- t2 = A.List_List$of(chunk2, true, $T);
- B.JSArray_methods.addAll$1(t2, chunk1);
- t2 = A._setArrayType([t1, t2], $T._eval$1("JSArray<List<0>>"));
- t1 = t2;
- break $label0$0;
- }
- return t1;
- },
- paths0(choices, $T) {
- return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new A.paths_closure0($T));
- },
- _groupSelectors0(complex) {
- var t2, t3, t4,
- groups = A.QueueList$(null, type$.List_ComplexSelectorComponent_2),
- t1 = type$.JSArray_ComplexSelectorComponent_2,
- group = A._setArrayType([], t1);
- for (t2 = complex.$ti, t3 = new A.ListIterator(complex, complex.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t3.moveNext$0();) {
- t4 = t3.__internal$_current;
- if (t4 == null)
- t4 = t2._as(t4);
- group.push(t4);
- if (t4.combinators.length === 0) {
- groups._queue_list$_add$1(group);
- group = A._setArrayType([], t1);
- }
- }
- if (group.length !== 0)
- groups._queue_list$_add$1(group);
- return groups;
- },
- listIsSuperselector0(list1, list2) {
- return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure0(list1));
- },
- _complexIsParentSuperselector0(complex1, complex2) {
- var t1, base, t2;
- if (J.get$length$asx(complex1) > J.get$length$asx(complex2))
- return false;
- t1 = $.$get$bogusSpan0();
- base = new A.ComplexSelectorComponent0(A.CompoundSelector$0(A._setArrayType([new A.PlaceholderSelector0("<temp>", t1)], type$.JSArray_SimpleSelector_2), t1), A.List_List$unmodifiable(B.List_empty13, type$.CssValue_Combinator_2), t1);
- t1 = type$.ComplexSelectorComponent_2;
- t2 = A.List_List$of(complex1, true, t1);
- t2.push(base);
- t1 = A.List_List$of(complex2, true, t1);
- t1.push(base);
- return A.complexIsSuperselector0(t2, t1);
- },
- complexIsSuperselector0(complex1, complex2) {
- var t1, t2, previousCombinator, i1, i2, remaining1, remaining2, component1, t3, t4, endOfSubselector, component2, t5, combinator1, _null = null;
- if (B.JSArray_methods.get$last(complex1).combinators.length !== 0)
- return false;
- if (B.JSArray_methods.get$last(complex2).combinators.length !== 0)
- return false;
- for (t1 = A._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), previousCombinator = _null, i1 = 0, i2 = 0; true; previousCombinator = combinator1) {
- remaining1 = complex1.length - i1;
- remaining2 = complex2.length - i2;
- if (remaining1 === 0 || remaining2 === 0)
- return false;
- if (remaining1 > remaining2)
- return false;
- component1 = complex1[i1];
- t3 = component1.combinators;
- if (t3.length > 1)
- return false;
- if (remaining1 === 1)
- if (B.JSArray_methods.any$1(complex2, new A.complexIsSuperselector_closure1()))
- return false;
- else {
- t1 = component1.selector;
- t2 = B.JSArray_methods.get$last(complex2).selector;
- return A.compoundIsSuperselector0(t1, t2, t1.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, complex2.length - 1) : _null);
- }
- for (t4 = component1.selector, endOfSubselector = i2; true;) {
- component2 = complex2[endOfSubselector];
- if (component2.combinators.length > 1)
- return false;
- t5 = component2.selector;
- if (A.compoundIsSuperselector0(t4, t5, t4.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, endOfSubselector) : _null))
- break;
- ++endOfSubselector;
- if (endOfSubselector === complex2.length - 1)
- return false;
- }
- t4 = new A.SubListIterable(complex2, 0, endOfSubselector, t1);
- t4.SubListIterable$3(complex2, 0, endOfSubselector, t2);
- if (!A._compatibleWithPreviousCombinator0(previousCombinator, t4.skip$1(0, i2)))
- return false;
- component2 = complex2[endOfSubselector];
- combinator1 = A.IterableExtension_get_firstOrNull(t3);
- if (!A._isSupercombinator0(combinator1, A.IterableExtension_get_firstOrNull(component2.combinators)))
- return false;
- ++i1;
- i2 = endOfSubselector + 1;
- if (complex1.length - i1 === 1) {
- t3 = combinator1 == null;
- if (J.$eq$(t3 ? _null : combinator1.value, B.Combinator_y180)) {
- t3 = complex2.length - 1;
- t4 = new A.SubListIterable(complex2, 0, t3, t1);
- t4.SubListIterable$3(complex2, 0, t3, t2);
- if (!t4.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure2(combinator1)))
- return false;
- } else if (!t3)
- if (complex2.length - i2 > 1)
- return false;
- }
- }
- },
- _compatibleWithPreviousCombinator0(previous, parents) {
- if (parents.get$isEmpty(parents))
- return true;
- if (previous == null)
- return true;
- if (previous.value !== B.Combinator_y180)
- return false;
- return parents.every$1(0, new A._compatibleWithPreviousCombinator_closure0());
- },
- _isSupercombinator0(combinator1, combinator2) {
- var t1, t2;
- if (!J.$eq$(combinator1, combinator2)) {
- t1 = combinator1 == null;
- if (t1)
- t2 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_8I80);
- else
- t2 = false;
- if (!t2)
- if (J.$eq$(t1 ? null : combinator1.value, B.Combinator_y180))
- t1 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_gRV0);
- else
- t1 = false;
- else
- t1 = true;
- } else
- t1 = true;
- return t1;
- },
- compoundIsSuperselector0(compound1, compound2, parents) {
- var t1, _0_1, _0_5, _0_5_isSet, t2, pseudo1, index1, t3, pseudo2, index2, _0_50, t4, t5, _i, simple1, _null = null;
- if (!compound1.get$hasComplicatedSuperselectorSemantics() && !compound2.get$hasComplicatedSuperselectorSemantics()) {
- t1 = compound1.components;
- if (t1.length > compound2.components.length)
- return false;
- return B.JSArray_methods.every$1(t1, new A.compoundIsSuperselector_closure0(compound2));
- }
- _0_1 = A._findPseudoElementIndexed0(compound1);
- _0_5 = A._findPseudoElementIndexed0(compound2);
- t1 = type$.Record_2_nullable_Object_and_nullable_Object;
- _0_5_isSet = t1._is(_0_1);
- if (_0_5_isSet) {
- t2 = _0_1 == null;
- pseudo1 = (t2 ? t1._as(_0_1) : _0_1)._0;
- index1 = (t2 ? t1._as(_0_1) : _0_1)._1;
- t2 = t1._is(_0_5);
- if (t2) {
- t3 = _0_5 == null;
- pseudo2 = (t3 ? t1._as(_0_5) : _0_5)._0;
- index2 = (t3 ? t1._as(_0_5) : _0_5)._1;
- } else {
- index2 = _null;
- pseudo2 = index2;
- }
- t1 = t2;
- _0_50 = _0_5;
- } else {
- index2 = _null;
- pseudo2 = index2;
- index1 = pseudo2;
- pseudo1 = index1;
- _0_50 = pseudo1;
- t1 = false;
- }
- if (t1) {
- if (pseudo1.isSuperselector$1(pseudo2)) {
- t1 = compound1.components;
- t2 = type$.int;
- t3 = A._arrayInstanceType(t1)._precomputed1;
- t4 = compound2.components;
- t5 = A._arrayInstanceType(t4)._precomputed1;
- t1 = A._compoundComponentsIsSuperselector0(A.SubListIterable$(t1, 0, A.checkNotNullable(index1, "count", t2), t3), A.SubListIterable$(t4, 0, A.checkNotNullable(index2, "count", t2), t5), parents) && A._compoundComponentsIsSuperselector0(A.SubListIterable$(t1, index1 + 1, _null, t3), A.SubListIterable$(t4, index2 + 1, _null, t5), parents);
- } else
- t1 = false;
- return t1;
- }
- if (_0_1 == null)
- t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
- else
- t1 = true;
- if (t1)
- return false;
- for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) {
- simple1 = t1[_i];
- if (simple1 instanceof A.PseudoSelector0)
- t4 = simple1.selector != null;
- else
- t4 = false;
- if (t4) {
- if (!A._selectorPseudoIsSuperselector0(simple1, compound2, parents))
- return false;
- } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector()))
- return false;
- }
- return true;
- },
- _findPseudoElementIndexed0(compound) {
- var t1, t2, i, simple;
- for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) {
- simple = t1[i];
- if (simple instanceof A.PseudoSelector0 && !simple.isClass)
- return new A._Record_2(simple, i);
- }
- return null;
- },
- _compoundComponentsIsSuperselector0(compound1, compound2, parents) {
- var t1;
- if (compound1.get$length(0) === 0)
- return true;
- if (compound2.get$length(0) === 0)
- compound2 = A._setArrayType([new A.UniversalSelector0("*", $.$get$bogusSpan0())], type$.JSArray_SimpleSelector_2);
- t1 = $.$get$bogusSpan0();
- return A.compoundIsSuperselector0(A.CompoundSelector$0(compound1, t1), A.CompoundSelector$0(compound2, t1), parents);
- },
- _selectorPseudoIsSuperselector0(pseudo1, compound2, parents) {
- var selector1 = pseudo1.selector;
- if (selector1 == null)
- throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null));
- switch (pseudo1.normalizedName) {
- case "is":
- case "matches":
- case "any":
- case "where":
- return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure6(selector1)) || B.JSArray_methods.any$1(selector1.components, new A._selectorPseudoIsSuperselector_closure7(parents, compound2));
- case "has":
- case "host":
- case "host-context":
- return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure8(selector1));
- case "slotted":
- return A._selectorPseudoArgs0(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure9(selector1));
- case "not":
- return B.JSArray_methods.every$1(selector1.components, new A._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
- case "current":
- return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure11(selector1));
- case "nth-child":
- case "nth-last-child":
- return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure12(pseudo1, selector1));
- default:
- throw A.wrapException("unreachable");
- }
- },
- _selectorPseudoArgs0(compound, $name, isClass) {
- var t1 = type$.WhereTypeIterable_PseudoSelector_2;
- return A.IterableNullableExtension_whereNotNull(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure1(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>")), new A._selectorPseudoArgs_closure2(), t1._eval$1("MappedIterable<Iterable.E,SelectorList0?>")), type$.SelectorList_2);
- },
- unifyComplex_closure0: function unifyComplex_closure0() {
- },
- _weaveParents_closure3: function _weaveParents_closure3(t0) {
- this.span = t0;
- },
- _weaveParents_closure4: function _weaveParents_closure4(t0) {
- this.group = t0;
- },
- _weaveParents_closure5: function _weaveParents_closure5() {
- },
- _weaveParents_closure6: function _weaveParents_closure6() {
- },
- _mustUnify_closure0: function _mustUnify_closure0(t0) {
- this.uniqueSelectors = t0;
- },
- _mustUnify__closure0: function _mustUnify__closure0(t0) {
- this.uniqueSelectors = t0;
- },
- paths_closure0: function paths_closure0(t0) {
- this.T = t0;
- },
- paths__closure0: function paths__closure0(t0, t1) {
- this.paths = t0;
- this.T = t1;
- },
- paths___closure0: function paths___closure0(t0, t1) {
- this.option = t0;
- this.T = t1;
- },
- listIsSuperselector_closure0: function listIsSuperselector_closure0(t0) {
- this.list1 = t0;
- },
- listIsSuperselector__closure0: function listIsSuperselector__closure0(t0) {
- this.complex1 = t0;
- },
- complexIsSuperselector_closure1: function complexIsSuperselector_closure1() {
- },
- complexIsSuperselector_closure2: function complexIsSuperselector_closure2(t0) {
- this.combinator1 = t0;
- },
- _compatibleWithPreviousCombinator_closure0: function _compatibleWithPreviousCombinator_closure0() {
- },
- compoundIsSuperselector_closure0: function compoundIsSuperselector_closure0(t0) {
- this.compound2 = t0;
- },
- _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
- this.parents = t0;
- this.compound2 = t1;
- },
- _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
- this.compound2 = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
- this.complex = t0;
- this.pseudo1 = t1;
- },
- _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
- this.simple2 = t0;
- },
- _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
- this.selector1 = t0;
- },
- _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0, t1) {
- this.pseudo1 = t0;
- this.selector1 = t1;
- },
- _selectorPseudoArgs_closure1: function _selectorPseudoArgs_closure1(t0, t1) {
- this.isClass = t0;
- this.name = t1;
- },
- _selectorPseudoArgs_closure2: function _selectorPseudoArgs_closure2() {
- },
- globalFunctions_closure0: function globalFunctions_closure0() {
- },
- IDSelector0: function IDSelector0(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
- this.$this = t0;
- },
- IfExpression0: function IfExpression0(t0, t1) {
- this.$arguments = t0;
- this.span = t1;
- },
- IfClause$0(expression, children) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2);
- return new A.IfClause0(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0()));
- },
- ElseClause$0(children) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2);
- return new A.ElseClause0(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0()));
- },
- IfRule0: function IfRule0(t0, t1, t2) {
- this.clauses = t0;
- this.lastClause = t1;
- this.span = t2;
- },
- IfRule_toString_closure0: function IfRule_toString_closure0() {
- },
- IfRuleClause0: function IfRuleClause0() {
- },
- IfRuleClause$__closure0: function IfRuleClause$__closure0() {
- },
- IfRuleClause$___closure0: function IfRuleClause$___closure0() {
- },
- IfClause0: function IfClause0(t0, t1, t2) {
- this.expression = t0;
- this.children = t1;
- this.hasDeclarations = t2;
- },
- ElseClause0: function ElseClause0(t0, t1) {
- this.children = t0;
- this.hasDeclarations = t1;
- },
- jsToDartList(list) {
- return self.immutable.isOrderedMap(list) ? J.toArray$0$x(type$.ImmutableList._as(list)) : type$.List_dynamic._as(list);
- },
- dartMapToImmutableMap(dartMap) {
- var t1, t2,
- immutableMap = J.asMutable$0$x(new self.immutable.OrderedMap());
- for (t1 = A.MapExtensions_get_pairs0(dartMap, type$.Object, type$.nullable_Object), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- immutableMap = J.$set$2$x(immutableMap, t2._0, t2._1);
- }
- return J.asImmutable$0$x(immutableMap);
- },
- immutableMapToDartMap(immutableMap) {
- var dartMap = A.LinkedHashMap_LinkedHashMap$_empty(type$.Object, type$.nullable_Object);
- J.forEach$1$ax(immutableMap, A.allowInterop(new A.immutableMapToDartMap_closure(dartMap)));
- return dartMap;
- },
- ImmutableList0: function ImmutableList0() {
- },
- ImmutableMap0: function ImmutableMap0() {
- },
- immutableMapToDartMap_closure: function immutableMapToDartMap_closure(t0) {
- this.dartMap = t0;
- },
- NodeImporter__addSassPath(includePaths) {
- return new A._SyncStarIterable(A.NodeImporter__addSassPath$body(includePaths), type$._SyncStarIterable_String);
- },
- NodeImporter__addSassPath$body($async$includePaths) {
- return function() {
- var includePaths = $async$includePaths;
- var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath, t1;
- return function $async$NodeImporter__addSassPath($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return $async$iterator._yieldStar$1(includePaths);
- case 3:
- // after yield
- sassPath = A.getEnvironmentVariable0("SASS_PATH");
- if (sassPath == null) {
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = A.isNodeJs() ? self.process : null;
- $async$goto = 4;
- return $async$iterator._yieldStar$1(A._setArrayType(sassPath.split(J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32") ? ";" : ":"), type$.JSArray_String));
- case 4:
- // after yield
- case 1:
- // return
- return 0;
- case 2:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- NodeImporter: function NodeImporter(t0, t1, t2) {
- this._implementation$_options = t0;
- this._includePaths = t1;
- this._implementation$_importers = t2;
- },
- NodeImporter_load_closure: function NodeImporter_load_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.forImport = t2;
- _.url = t3;
- _.previousString = t4;
- },
- NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
- this.path = t0;
- },
- NodeImporter__tryPath_closure0: function NodeImporter__tryPath_closure0() {
- },
- NodeImporter__callImporterAsync_closure: function NodeImporter__callImporterAsync_closure(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.forImport = t2;
- _.url = t3;
- _.previousString = t4;
- _.completer = t5;
- },
- ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2) {
- var _ = this;
- _.url = t0;
- _.modifiers = t1;
- _.span = t2;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- ImportCache$0(importers, loadPaths, logger, packageConfig) {
- var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2,
- t2 = type$.Record_3_Importer_and_Uri_and_bool_forImport_2,
- t3 = type$.Uri,
- t4 = A.ImportCache__toImporters0(importers, loadPaths, packageConfig);
- return new A.ImportCache0(t4, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
- },
- ImportCache$none(logger) {
- var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2,
- t2 = type$.Record_3_Importer_and_Uri_and_bool_forImport_2,
- t3 = type$.Uri;
- return new A.ImportCache0(B.List_empty23, logger, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
- },
- ImportCache__toImporters0(importers, loadPaths, packageConfig) {
- var t1, t2, t3, t4, _i, path, _null = null,
- sassPath = A.getEnvironmentVariable0("SASS_PATH");
- if (A.isBrowser()) {
- t1 = A._setArrayType([], type$.JSArray_Importer_2);
- if (importers != null)
- B.JSArray_methods.addAll$1(t1, importers);
- return t1;
- }
- t1 = A._setArrayType([], type$.JSArray_Importer_2);
- if (importers != null)
- B.JSArray_methods.addAll$1(t1, importers);
- if (loadPaths != null)
- for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- if (sassPath != null) {
- t2 = A.isNodeJs() ? self.process : _null;
- t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
- t4 = t3.length;
- _i = 0;
- for (; _i < t4; ++_i) {
- path = t3[_i];
- t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
- }
- }
- return t1;
- },
- ImportCache0: function ImportCache0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._import_cache$_importers = t0;
- _._import_cache$_logger = t1;
- _._import_cache$_canonicalizeCache = t2;
- _._import_cache$_perImporterCanonicalizeCache = t3;
- _._import_cache$_nonCanonicalRelativeUrls = t4;
- _._import_cache$_importCache = t5;
- _._import_cache$_resultsCache = t6;
- },
- ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.baseImporter = t1;
- _.resolvedUrl = t2;
- _.baseUrl = t3;
- _.forImport = t4;
- _.key = t5;
- _.url = t6;
- },
- ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) {
- this.importer = t0;
- this.url = t1;
- },
- ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.importer = t1;
- _.canonicalUrl = t2;
- _.originalUrl = t3;
- _.quiet = t4;
- },
- ImportCache_humanize_closure3: function ImportCache_humanize_closure3(t0) {
- this.canonicalUrl = t0;
- },
- ImportCache_humanize_closure4: function ImportCache_humanize_closure4() {
- },
- ImportCache_humanize_closure5: function ImportCache_humanize_closure5() {
- },
- ImportCache_humanize_closure6: function ImportCache_humanize_closure6(t0) {
- this.canonicalUrl = t0;
- },
- ImportRule0: function ImportRule0(t0, t1) {
- this.imports = t0;
- this.span = t1;
- },
- JSImporter: function JSImporter() {
- },
- JSImporterResult: function JSImporterResult() {
- },
- Importer0: function Importer0() {
- },
- NodeImporterResult0: function NodeImporterResult0() {
- },
- IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.originalName = t2;
- _.$arguments = t3;
- _.content = t4;
- _.span = t5;
- },
- InterpolatedFunctionExpression0: function InterpolatedFunctionExpression0(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.span = t2;
- },
- Interpolation$0(contents, span) {
- var t1 = new A.Interpolation0(A.List_List$unmodifiable(contents, type$.Object), span);
- t1.Interpolation$20(contents, span);
- return t1;
- },
- Interpolation0: function Interpolation0(t0, t1) {
- this.contents = t0;
- this.span = t1;
- },
- Interpolation_toString_closure0: function Interpolation_toString_closure0() {
- },
- SupportsInterpolation0: function SupportsInterpolation0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- InterpolationBuffer0: function InterpolationBuffer0(t0, t1) {
- this._interpolation_buffer0$_text = t0;
- this._interpolation_buffer0$_contents = t1;
- },
- InterpolationMap$0(_interpolation, targetLocations) {
- var t1 = A.List_List$unmodifiable(targetLocations, type$.SourceLocation),
- t2 = _interpolation.contents.length,
- expectedLocations = Math.max(0, t2 - 1);
- if (t1.length !== expectedLocations)
- A.throwExpression(A.ArgumentError$("InterpolationMap must have " + A.S(expectedLocations) + string$.x20targe + t2 + " components.", null));
- return new A.InterpolationMap0(_interpolation, t1);
- },
- InterpolationMap0: function InterpolationMap0(t0, t1) {
- this._interpolation_map$_interpolation = t0;
- this._interpolation_map$_targetLocations = t1;
- },
- InterpolationMap_mapException_closure0: function InterpolationMap_mapException_closure0() {
- },
- _realCasePath0(path) {
- var prefix, _null = null,
- t1 = A.isNodeJs() ? self.process : _null;
- if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
- t1 = A.isNodeJs() ? self.process : _null;
- t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
- } else
- t1 = true;
- if (!t1)
- return path;
- t1 = A.isNodeJs() ? self.process : _null;
- if (J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
- prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path));
- t1 = prefix.length;
- if (t1 !== 0 && A.CharacterExtension_get_isAlphabetic0(prefix.charCodeAt(0)))
- path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1);
- }
- return new A._realCasePath_helper0().call$1(path);
- },
- _realCasePath_helper0: function _realCasePath_helper0() {
- },
- _realCasePath_helper_closure0: function _realCasePath_helper_closure0(t0, t1, t2) {
- this.helper = t0;
- this.dirname = t1;
- this.path = t2;
- },
- _realCasePath_helper__closure0: function _realCasePath_helper__closure0(t0) {
- this.basename = t0;
- },
- printError0(message) {
- var t1 = A.isNodeJs() ? self.process : null;
- if (t1 != null) {
- t1 = J.get$stderr$x(t1);
- J.write$1$x(t1, A.S(message) + "\n");
- } else {
- t1 = self.console;
- J.error$1$x(t1, message);
- }
- },
- readFile0(path) {
- var contents, sourceFile, t1, i;
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("readFile() is only supported on Node.js"));
- contents = A._asString(A._readFile0(path, "utf8"));
- if (!B.JSString_methods.contains$1(contents, "\ufffd"))
- return contents;
- sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
- for (t1 = contents.length, i = 0; i < t1; ++i) {
- if (contents.charCodeAt(i) !== 65533)
- continue;
- throw A.wrapException(A.SassException$0("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0(), null));
- }
- return contents;
- },
- _readFile0(path, encoding) {
- return A._systemErrorToFileSystemException0(new A._readFile_closure0(path, encoding));
- },
- fileExists0(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$(string$.fileEx));
- return A._systemErrorToFileSystemException0(new A.fileExists_closure0(path));
- },
- dirExists0(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("dirExists() is only supported on Node.js"));
- return A._systemErrorToFileSystemException0(new A.dirExists_closure0(path));
- },
- listDir0(path) {
- if (!A.isNodeJs())
- throw A.wrapException(A.UnsupportedError$("listDir() is only supported on Node.js"));
- return A._systemErrorToFileSystemException0(new A.listDir_closure0(false, path));
- },
- getEnvironmentVariable0($name) {
- var t1 = A.isNodeJs() ? self.process : null,
- env = t1 == null ? null : J.get$env$x(t1);
- if (env == null)
- t1 = null;
- else
- t1 = A._asStringQ(env[$name]);
- return t1;
- },
- _systemErrorToFileSystemException0(callback) {
- var error, t1, exception, t2;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- error = A.unwrapException(exception);
- if (!type$.JsSystemError._is(error))
- throw exception;
- t1 = error;
- t2 = J.getInterceptor$x(t1);
- throw A.wrapException(new A.FileSystemException0(J.substring$2$s(t2.get$message(t1), (A.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + A.S(t2.get$syscall(t1)) + " '" + A.S(t2.get$path(t1)) + "'").length), J.get$path$x(error)));
- }
- },
- hasTerminal0() {
- var t1 = A.isNodeJs() ? self.process : null;
- return J.$eq$(t1 == null ? null : J.get$isTTY$x(J.get$stdout$x(t1)), true);
- },
- FileSystemException0: function FileSystemException0(t0, t1) {
- this.message = t0;
- this.path = t1;
- },
- _readFile_closure0: function _readFile_closure0(t0, t1) {
- this.path = t0;
- this.encoding = t1;
- },
- fileExists_closure0: function fileExists_closure0(t0) {
- this.path = t0;
- },
- dirExists_closure0: function dirExists_closure0(t0) {
- this.path = t0;
- },
- listDir_closure0: function listDir_closure0(t0, t1) {
- this.recursive = t0;
- this.path = t1;
- },
- listDir__closure1: function listDir__closure1(t0) {
- this.path = t0;
- },
- listDir__closure2: function listDir__closure2() {
- },
- listDir_closure_list0: function listDir_closure_list0() {
- },
- listDir__list_closure0: function listDir__list_closure0(t0, t1) {
- this.parent = t0;
- this.list = t1;
- },
- main() {
- J.set$compile$x(self.exports, A.allowInteropNamed("sass.compile", A.compile__compile$closure()));
- J.set$compileString$x(self.exports, A.allowInteropNamed("sass.compileString", A.compile__compileString$closure()));
- J.set$compileAsync$x(self.exports, A.allowInteropNamed("sass.compileAsync", A.compile__compileAsync$closure()));
- J.set$compileStringAsync$x(self.exports, A.allowInteropNamed("sass.compileStringAsync", A.compile__compileStringAsync$closure()));
- J.set$initCompiler$x(self.exports, A.allowInteropNamed("sass.initCompiler", A.compiler__initCompiler$closure()));
- J.set$initAsyncCompiler$x(self.exports, A.allowInteropNamed("sass.initAsyncCompiler", A.compiler__initAsyncCompiler$closure()));
- J.set$Compiler$x(self.exports, $.$get$compilerClass());
- J.set$AsyncCompiler$x(self.exports, $.$get$asyncCompilerClass());
- J.set$Value$x(self.exports, $.$get$valueClass());
- J.set$SassBoolean$x(self.exports, $.$get$booleanClass());
- J.set$SassArgumentList$x(self.exports, $.$get$argumentListClass());
- J.set$SassCalculation$x(self.exports, $.$get$calculationClass());
- J.set$CalculationOperation$x(self.exports, $.$get$calculationOperationClass());
- J.set$CalculationInterpolation$x(self.exports, $.$get$calculationInterpolationClass());
- J.set$SassColor$x(self.exports, $.$get$colorClass());
- J.set$SassFunction$x(self.exports, $.$get$functionClass());
- J.set$SassMixin$x(self.exports, $.$get$mixinClass());
- J.set$SassList$x(self.exports, $.$get$listClass());
- J.set$SassMap$x(self.exports, $.$get$mapClass());
- J.set$SassNumber$x(self.exports, $.$get$numberClass());
- J.set$SassString$x(self.exports, $.$get$stringClass());
- J.set$sassNull$x(self.exports, B.C__SassNull0);
- J.set$sassTrue$x(self.exports, B.SassBoolean_true0);
- J.set$sassFalse$x(self.exports, B.SassBoolean_false0);
- J.set$Exception$x(self.exports, $.$get$exceptionClass());
- J.set$Logger$x(self.exports, {silent: {warn: A.allowInteropNamed("sass.Logger.silent.warn", new A.main_closure()), debug: A.allowInteropNamed("sass.Logger.silent.debug", new A.main_closure0())}});
- J.set$NodePackageImporter$x(self.exports, $.$get$nodePackageImporterClass());
- J.set$deprecations$x(self.exports, A.jsify($.$get$deprecations()));
- J.set$Version$x(self.exports, $.$get$versionClass());
- J.set$info$x(self.exports, "dart-sass\t1.77.8\t(Sass Compiler)\t[Dart]\ndart2js\t3.4.4\t(Dart Compiler)\t[Dart]");
- A.updateCanonicalizeContextPrototype();
- A.updateSourceSpanPrototype();
- J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
- J.set$renderSync$x(self.exports, A.allowInteropNamed("sass.renderSync", A.legacy__renderSync$closure()));
- J.set$types$x(self.exports, {Boolean: $.$get$legacyBooleanClass(), Color: $.$get$legacyColorClass(), List: $.$get$legacyListClass(), Map: $.$get$legacyMapClass(), Null: $.$get$legacyNullClass(), Number: $.$get$legacyNumberClass(), String: $.$get$legacyStringClass(), Error: self.Error});
- J.set$NULL$x(self.exports, B.C__SassNull0);
- J.set$TRUE$x(self.exports, B.SassBoolean_true0);
- J.set$FALSE$x(self.exports, B.SassBoolean_false0);
- },
- main_closure: function main_closure() {
- },
- main_closure0: function main_closure0() {
- },
- JSToDartLogger: function JSToDartLogger(t0, t1, t2) {
- this._node = t0;
- this._fallback = t1;
- this._ascii = t2;
- },
- JSToDartLogger_internalWarn_closure: function JSToDartLogger_internalWarn_closure(t0, t1, t2, t3, t4) {
- var _ = this;
- _.$this = t0;
- _.message = t1;
- _.span = t2;
- _.trace = t3;
- _.deprecation = t4;
- },
- JSToDartLogger_debug_closure: function JSToDartLogger_debug_closure(t0, t1, t2) {
- this.$this = t0;
- this.message = t1;
- this.span = t2;
- },
- ModifiableCssKeyframeBlock$0(selector, span) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- return new A.ModifiableCssKeyframeBlock0(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _._node$_children = t3;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- KeyframeSelectorParser$0(contents, interpolationMap, logger) {
- var t1 = A.SpanScanner$(contents, null);
- return new A.KeyframeSelectorParser0(t1, logger, interpolationMap);
- },
- KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._parser0$_interpolationMap = t2;
- },
- KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) {
- this.$this = t0;
- },
- LazyFileSpan0: function LazyFileSpan0(t0) {
- this._lazy_file_span0$_builder = t0;
- this._lazy_file_span0$_span = null;
- },
- render(options, callback) {
- var _0_0;
- if (!A.isNodeJs())
- A.jsThrow(new self.Error("The render() method is only available in Node.js."));
- _0_0 = J.get$fiber$x(options);
- if (_0_0 != null)
- J.run$0$x(_0_0.call$1(A.allowInterop(new A.render_closure(callback, options))));
- else
- A._renderAsync(options).then$1$2$onError(0, new A.render_closure0(callback), new A.render_closure1(callback), type$.Null);
- },
- _renderAsync(options) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.RenderResult),
- $async$returnValue, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, result, start, t1, file, _0_0;
- var $async$_renderAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- start = new A.DateTime(Date.now(), false);
- t1 = J.getInterceptor$x(options);
- file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure());
- _0_0 = t1.get$data(options);
- $async$goto = _0_0 != null ? 3 : 5;
- break;
- case 3:
- // then
- t2 = A._parseImporter(options, start);
- t3 = A._parsePackageImportersAsync(options, start);
- t4 = A._parseFunctions(options, start, true);
- t5 = t1.get$indentedSyntax(options);
- t5 = !J.$eq$(t5, false) && t5 != null ? B.Syntax_Sass_sass0 : null;
- t6 = A._parseOutputStyle(t1.get$outputStyle(options));
- t7 = J.$eq$(t1.get$indentType(options), "tab");
- t8 = A._parseIndentWidth(t1.get$indentWidth(options));
- t9 = A._parseLineFeed(t1.get$linefeed(options));
- t10 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
- t11 = t1.get$quietDeps(options);
- if (t11 == null)
- t11 = false;
- t12 = t1.get$verbose(options);
- if (t12 == null)
- t12 = false;
- t13 = t1.get$charset(options);
- if (t13 == null)
- t13 = true;
- t14 = A._enableSourceMaps(options);
- t1 = t1.get$logger(options);
- t15 = A.hasTerminal0();
- t16 = $._glyphs;
- $async$goto = 6;
- return A._asyncAwait(A.compileStringAsync0(_0_0, t13, null, t4, null, t3, null, t8, t9, new A.JSToDartLogger(t1, new A.StderrLogger0(t15), t16 === B.C_AsciiGlyphSet), t2, t11, null, t14, t6, t5, t10, !t7, t12), $async$_renderAsync);
- case 6:
- // returning from await.
- result = $async$result;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = file != null ? 7 : 9;
- break;
- case 7:
- // then
- t2 = A._parseImporter(options, start);
- t3 = A._parsePackageImportersAsync(options, start);
- t4 = A._parseFunctions(options, start, true);
- t5 = t1.get$indentedSyntax(options);
- t5 = !J.$eq$(t5, false) && t5 != null ? B.Syntax_Sass_sass0 : null;
- t6 = A._parseOutputStyle(t1.get$outputStyle(options));
- t7 = J.$eq$(t1.get$indentType(options), "tab");
- t8 = A._parseIndentWidth(t1.get$indentWidth(options));
- t9 = A._parseLineFeed(t1.get$linefeed(options));
- t10 = t1.get$quietDeps(options);
- if (t10 == null)
- t10 = false;
- t11 = t1.get$verbose(options);
- if (t11 == null)
- t11 = false;
- t12 = t1.get$charset(options);
- if (t12 == null)
- t12 = true;
- t13 = A._enableSourceMaps(options);
- t1 = t1.get$logger(options);
- t14 = A.hasTerminal0();
- t15 = $._glyphs;
- $async$goto = 10;
- return A._asyncAwait(A.compileAsync0(file, t12, null, t4, null, t3, t8, t9, new A.JSToDartLogger(t1, new A.StderrLogger0(t14), t15 === B.C_AsciiGlyphSet), t2, t10, null, t13, t6, t5, !t7, t11), $async$_renderAsync);
- case 10:
- // returning from await.
- result = $async$result;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- throw A.wrapException(A.ArgumentError$(string$.Either, null));
- case 8:
- // join
- case 4:
- // join
- $async$returnValue = A._newRenderResult(options, result, start);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_renderAsync, $async$completer);
- },
- renderSync(options) {
- var start, result, file, _0_0, data, error, stackTrace, error0, stackTrace0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, exception, _null = null;
- if (!A.isNodeJs())
- A.jsThrow(new self.Error("The renderSync() method is only available in Node.js."));
- try {
- start = new A.DateTime(Date.now(), false);
- result = null;
- t1 = J.getInterceptor$x(options);
- file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure());
- _0_0 = t1.get$data(options);
- data = null;
- if (_0_0 != null) {
- data = _0_0;
- t2 = data;
- t3 = A._parseImporter(options, start);
- t4 = A._parsePackageImporters(options, start);
- t5 = A._parseFunctions(options, start, false);
- t6 = t1.get$indentedSyntax(options);
- t6 = !J.$eq$(t6, false) && t6 != null ? B.Syntax_Sass_sass0 : _null;
- t7 = A._parseOutputStyle(t1.get$outputStyle(options));
- t8 = J.$eq$(t1.get$indentType(options), "tab");
- t9 = A._parseIndentWidth(t1.get$indentWidth(options));
- t10 = A._parseLineFeed(t1.get$linefeed(options));
- t11 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
- t12 = t1.get$quietDeps(options);
- if (t12 == null)
- t12 = false;
- t13 = t1.get$verbose(options);
- if (t13 == null)
- t13 = false;
- t14 = t1.get$charset(options);
- if (t14 == null)
- t14 = true;
- t15 = A._enableSourceMaps(options);
- t1 = t1.get$logger(options);
- t16 = A.hasTerminal0();
- t17 = $._glyphs;
- result = A.compileString(t2, t14, _null, new A.CastList(t5, A._arrayInstanceType(t5)._eval$1("CastList<1,Callable>")), _null, t4, _null, t9, t10, new A.JSToDartLogger(t1, new A.StderrLogger0(t16), t17 === B.C_AsciiGlyphSet), t3, t12, _null, t15, t7, t6, t11, !t8, t13);
- } else if (file != null) {
- t2 = A._parseImporter(options, start);
- t3 = A._parsePackageImporters(options, start);
- t4 = A._parseFunctions(options, start, false);
- t5 = t1.get$indentedSyntax(options);
- t5 = !J.$eq$(t5, false) && t5 != null ? B.Syntax_Sass_sass0 : _null;
- t6 = A._parseOutputStyle(t1.get$outputStyle(options));
- t7 = J.$eq$(t1.get$indentType(options), "tab");
- t8 = A._parseIndentWidth(t1.get$indentWidth(options));
- t9 = A._parseLineFeed(t1.get$linefeed(options));
- t10 = t1.get$quietDeps(options);
- if (t10 == null)
- t10 = false;
- t11 = t1.get$verbose(options);
- if (t11 == null)
- t11 = false;
- t12 = t1.get$charset(options);
- if (t12 == null)
- t12 = true;
- t13 = A._enableSourceMaps(options);
- t1 = t1.get$logger(options);
- t14 = A.hasTerminal0();
- t15 = $._glyphs;
- result = A.compile(file, t12, _null, new A.CastList(t4, A._arrayInstanceType(t4)._eval$1("CastList<1,Callable>")), _null, t3, t8, t9, new A.JSToDartLogger(t1, new A.StderrLogger0(t14), t15 === B.C_AsciiGlyphSet), t2, t10, _null, t13, t6, t5, !t7, t11);
- } else {
- t1 = A.ArgumentError$(string$.Either, _null);
- throw A.wrapException(t1);
- }
- t1 = A._newRenderResult(options, result, start);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.jsThrow(A._wrapException(error, stackTrace));
- } else {
- error0 = t1;
- stackTrace0 = A.getTraceFromException(exception);
- t1 = J.toString$0$(error0);
- t2 = A.getTrace0(error0);
- A.jsThrow(A._newRenderError(t1, t2 == null ? stackTrace0 : t2, _null, _null, _null, 3));
- }
- }
- },
- _wrapException(exception, stackTrace) {
- var t2, t3, t4, t5,
- t1 = A.SourceSpanException.prototype.get$span.call(exception, 0),
- _0_0 = t1.get$sourceUrl(t1);
- $label0$0: {
- if (_0_0 == null) {
- t1 = "stdin";
- break $label0$0;
- }
- if ("file" === _0_0.get$scheme()) {
- t1 = $.$get$context().style.pathFromUri$1(A._parseUri(_0_0));
- break $label0$0;
- }
- t1 = _0_0.toString$0(0);
- break $label0$0;
- }
- t2 = B.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", "");
- t3 = A.getTrace0(exception);
- if (t3 == null)
- t3 = stackTrace;
- t4 = A.SourceSpanException.prototype.get$span.call(exception, 0);
- t4 = t4.get$start(t4);
- t4 = t4.file.getLine$1(t4.offset);
- t5 = A.SourceSpanException.prototype.get$span.call(exception, 0);
- t5 = t5.get$start(t5);
- return A._newRenderError(t2, t3, t5.file.getColumn$1(t5.offset) + 1, t1, t4 + 1, 1);
- },
- _parseFunctions(options, start, asynch) {
- var result,
- functions = J.get$functions$x(options);
- if (functions == null)
- return B.List_empty24;
- result = A._setArrayType([], type$.JSArray_AsyncCallable_2);
- A.jsForEach(functions, new A._parseFunctions_closure(options, start, result, asynch));
- return result;
- },
- _parseImporter(options, start) {
- var t2, t3, contextOptions, _1_0, importers, _box_0 = {},
- t1 = J.getInterceptor$x(options),
- _0_0 = t1.get$importer(options);
- $label0$0: {
- if (_0_0 == null) {
- t2 = A._setArrayType([], type$.JSArray_JSFunction);
- break $label0$0;
- }
- if (type$.List_nullable_Object._is(_0_0)) {
- t2 = J.cast$1$0$ax(_0_0, type$.JSFunction);
- break $label0$0;
- }
- t2 = A._setArrayType([type$.JSFunction._as(_0_0)], type$.JSArray_JSFunction);
- break $label0$0;
- }
- t3 = J.getInterceptor$asx(t2);
- contextOptions = t3.get$isNotEmpty(t2) ? A._contextOptions(options, start) : new A.Object();
- _1_0 = t1.get$fiber(options);
- _box_0.fiber = null;
- if (_1_0 != null) {
- _box_0.fiber = _1_0;
- t2 = t3.map$1$1(t2, new A._parseImporter_closure(_box_0), type$.JSFunction);
- importers = A.List_List$of(t2, true, t2.$ti._eval$1("ListIterable.E"));
- } else
- importers = t2;
- t1 = t1.get$includePaths(options);
- if (t1 == null)
- t1 = [];
- t2 = type$.String;
- return new A.NodeImporter(contextOptions, A.List_List$unmodifiable(A.NodeImporter__addSassPath(A.List_List$from(t1, true, t2)), t2), A.List_List$unmodifiable(J.cast$1$0$ax(importers, type$.dynamic), type$.JSFunction));
- },
- _parsePackageImportersAsync(options, start) {
- var t2, t3, t4,
- t1 = J.getInterceptor$x(options);
- if (t1.get$pkgImporter(options) instanceof A.NodePackageImporter0) {
- t1 = t1.get$pkgImporter(options);
- t1.toString;
- t2 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2;
- t3 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2;
- t4 = type$.Uri;
- t1 = A.List_List$unmodifiable(A._setArrayType([t1], type$.JSArray_AsyncImporter), type$.AsyncImporter);
- return new A.AsyncImportCache0(t1, B.StderrLogger_false0, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.ImporterResult_2));
- }
- return null;
- },
- _parsePackageImporters(options, start) {
- var t2, t3, t4,
- t1 = J.getInterceptor$x(options);
- if (t1.get$pkgImporter(options) instanceof A.NodePackageImporter0) {
- t1 = t1.get$pkgImporter(options);
- t1.toString;
- t2 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2;
- t3 = type$.Record_3_Importer_and_Uri_and_bool_forImport_2;
- t4 = type$.Uri;
- t1 = A.List_List$unmodifiable(A._setArrayType([t1], type$.JSArray_Importer_2), type$.Importer);
- return new A.ImportCache0(t1, B.StderrLogger_false0, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.ImporterResult_2));
- }
- return null;
- },
- _contextOptions(options, start) {
- var includePaths, t3, t4, t5, t6, t7,
- t1 = J.getInterceptor$x(options),
- t2 = t1.get$includePaths(options);
- if (t2 == null)
- t2 = [];
- includePaths = A.List_List$from(t2, true, type$.String);
- t2 = t1.get$file(options);
- t3 = t1.get$data(options);
- t4 = A._setArrayType([A.current()], type$.JSArray_String);
- B.JSArray_methods.addAll$1(t4, includePaths);
- t5 = A.isNodeJs() ? self.process : null;
- t4 = B.JSArray_methods.join$1(t4, J.$eq$(t5 == null ? null : J.get$platform$x(t5), "win32") ? ";" : ":");
- t5 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0;
- t6 = A._parseIndentWidth(t1.get$indentWidth(options));
- if (t6 == null)
- t6 = 2;
- t7 = A._parseLineFeed(t1.get$linefeed(options));
- t1 = t1.get$file(options);
- if (t1 == null)
- t1 = "data";
- return {file: t2, data: t3, includePaths: t4, precision: 10, style: 1, indentType: t5, indentWidth: t6, linefeed: t7.text, result: {stats: {start: start._value, entry: t1}}};
- },
- _parseOutputStyle(style) {
- var t1;
- $label0$0: {
- if (style == null || "expanded" === style) {
- t1 = B.OutputStyle_00;
- break $label0$0;
- }
- if ("compressed" === style) {
- t1 = B.OutputStyle_10;
- break $label0$0;
- }
- t1 = A.jsThrow(new self.Error('Unknown output style "' + A.S(style) + '".'));
- }
- return t1;
- },
- _parseIndentWidth(width) {
- var t1;
- $label0$0: {
- if (width == null) {
- t1 = null;
- break $label0$0;
- }
- if (A._isInt(width)) {
- t1 = width;
- break $label0$0;
- }
- t1 = A.int_parse(J.toString$0$(width), null);
- break $label0$0;
- }
- return t1;
- },
- _parseLineFeed(str) {
- var t1;
- $label0$0: {
- if ("cr" === str) {
- t1 = B.LineFeed_89t;
- break $label0$0;
- }
- if ("crlf" === str) {
- t1 = B.LineFeed_A4L;
- break $label0$0;
- }
- if ("lfcr" === str) {
- t1 = B.LineFeed_75j;
- break $label0$0;
- }
- t1 = B.LineFeed_LvD;
- break $label0$0;
- }
- return t1;
- },
- _newRenderResult(options, result, start) {
- var t3, sourceMapOption, sourceMapPath, t4, sourceMapDir, outFile, _0_0, t5, sourceMapDirUrl, i, source, t6, buffer, indices, url, t7, t8, _null = null,
- t1 = Date.now(),
- t2 = result._compile_result$_serialize,
- css = t2._0,
- sourceMapBytes = type$.Null._as(self.undefined);
- if (A._enableSourceMaps(options)) {
- t3 = J.getInterceptor$x(options);
- sourceMapOption = t3.get$sourceMap(options);
- if (typeof sourceMapOption == "string")
- sourceMapPath = sourceMapOption;
- else {
- t4 = t3.get$outFile(options);
- t4.toString;
- sourceMapPath = J.$add$ansx(t4, ".map");
- }
- t4 = $.$get$context();
- sourceMapDir = t4.dirname$1(sourceMapPath);
- t2 = t2._1;
- t2.toString;
- t2.sourceRoot = t3.get$sourceMapRoot(options);
- outFile = t3.get$outFile(options);
- if (outFile == null) {
- _0_0 = t3.get$file(options);
- $label0$0: {
- if (_0_0 != null) {
- t5 = t4.toUri$1(t4.withoutExtension$1(_0_0) + ".css").toString$0(0);
- break $label0$0;
- }
- t5 = t2.targetUrl = "stdin.css";
- break $label0$0;
- }
- t2.targetUrl = t5;
- } else
- t2.targetUrl = t4.toUri$1(t4.relative$2$from(outFile, sourceMapDir)).toString$0(0);
- sourceMapDirUrl = t4.toUri$1(sourceMapDir).toString$0(0);
- for (t4 = t2.urls, i = 0; i < t4.length; ++i) {
- source = t4[i];
- if (source === "stdin")
- continue;
- t5 = $.$get$url();
- t6 = t5.style;
- if (t6.rootLength$1(source) <= 0 || t6.isRootRelative$1(source))
- continue;
- t4[i] = t5.relative$2$from(source, sourceMapDirUrl);
- }
- t4 = t3.get$sourceMapContents(options);
- sourceMapBytes = self.Buffer.from(B.C_JsonCodec.encode$2$toEncodable(t2.toJson$1$includeSourceContents(!J.$eq$(t4, false) && t4 != null), _null), "utf8");
- t2 = t3.get$omitSourceMapUrl(options);
- if (!(!J.$eq$(t2, false) && t2 != null)) {
- t2 = t3.get$sourceMapEmbed(options);
- if (!J.$eq$(t2, false) && t2 != null) {
- buffer = new A.StringBuffer("");
- indices = A._setArrayType([-1], type$.JSArray_int);
- A.UriData__writeUri("application/json", _null, _null, buffer, indices);
- indices.push(buffer._contents.length);
- t2 = buffer._contents += ";base64,";
- indices.push(t2.length - 1);
- t2 = B.C_Base64Encoder.startChunkedConversion$1(new A._StringSinkConversionSink(buffer));
- t3 = sourceMapBytes.length;
- A.RangeError_checkValidRange(0, t3, t3);
- t2._convert$_add$4(sourceMapBytes, 0, t3, true);
- t2 = buffer._contents;
- url = new A.UriData(t2.charCodeAt(0) == 0 ? t2 : t2, indices, _null).get$uri();
- } else {
- if (outFile == null)
- t2 = sourceMapPath;
- else {
- t2 = $.$get$context();
- t2 = t2.relative$2$from(sourceMapPath, t2.dirname$1(outFile));
- }
- url = $.$get$context().toUri$1(t2);
- }
- t2 = url.toString$0(0);
- css += "\n\n/*# sourceMappingURL=" + A.stringReplaceAllUnchecked(t2, "*/", "%2A/") + " */";
- }
- }
- t2 = self.Buffer.from(css, "utf8");
- t3 = J.get$file$x(options);
- if (t3 == null)
- t3 = "data";
- t4 = start._value;
- t1 = new A.DateTime(t1, false)._value;
- t5 = B.JSInt_methods._tdivFast$1(A.Duration$(t1 - t4)._duration, 1000);
- t6 = A._setArrayType([], type$.JSArray_String);
- for (t7 = result._evaluate._0, t7 = t7.get$iterator(t7); t7.moveNext$0();) {
- t8 = t7.get$current(t7);
- t6.push(t8.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(A._parseUri(t8)) : t8.toString$0(0));
- }
- return {css: t2, map: sourceMapBytes, stats: {entry: t3, start: t4, end: t1, duration: t5, includedFiles: t6}};
- },
- _enableSourceMaps(options) {
- var t2,
- t1 = J.getInterceptor$x(options);
- if (typeof t1.get$sourceMap(options) != "string") {
- t2 = t1.get$sourceMap(options);
- t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null;
- } else
- t1 = true;
- return t1;
- },
- _newRenderError(message, stackTrace, column, file, line, $status) {
- var error = new self.Error(message);
- error.formatted = "Error: " + message;
- if (line != null)
- error.line = line;
- if (column != null)
- error.column = column;
- if (file != null)
- error.file = file;
- error.status = $status;
- A.attachJsStack(error, stackTrace);
- return error;
- },
- render_closure: function render_closure(t0, t1) {
- this.callback = t0;
- this.options = t1;
- },
- render_closure0: function render_closure0(t0) {
- this.callback = t0;
- },
- render_closure1: function render_closure1(t0) {
- this.callback = t0;
- },
- _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2, t3) {
- var _ = this;
- _.options = t0;
- _.start = t1;
- _.result = t2;
- _.asynch = t3;
- },
- _parseFunctions__closure: function _parseFunctions__closure(t0, t1, t2) {
- this._box_0 = t0;
- this.callback = t1;
- this.context = t2;
- },
- _parseFunctions___closure2: function _parseFunctions___closure2(t0) {
- this.currentFiber = t0;
- },
- _parseFunctions____closure: function _parseFunctions____closure(t0, t1) {
- this.currentFiber = t0;
- this.result = t1;
- },
- _parseFunctions___closure3: function _parseFunctions___closure3(t0, t1, t2) {
- this.callback = t0;
- this.context = t1;
- this.jsArguments = t2;
- },
- _parseFunctions___closure4: function _parseFunctions___closure4(t0) {
- this._box_0 = t0;
- },
- _parseFunctions__closure0: function _parseFunctions__closure0(t0, t1) {
- this.callback = t0;
- this.context = t1;
- },
- _parseFunctions___closure1: function _parseFunctions___closure1(t0, t1, t2) {
- this.callback = t0;
- this.context = t1;
- this.$arguments = t2;
- },
- _parseFunctions__closure1: function _parseFunctions__closure1(t0, t1) {
- this.callback = t0;
- this.context = t1;
- },
- _parseFunctions___closure: function _parseFunctions___closure(t0) {
- this.completer = t0;
- },
- _parseFunctions___closure0: function _parseFunctions___closure0(t0, t1, t2) {
- this.callback = t0;
- this.context = t1;
- this.jsArguments = t2;
- },
- _parseImporter_closure: function _parseImporter_closure(t0) {
- this._box_0 = t0;
- },
- _parseImporter__closure: function _parseImporter__closure(t0, t1) {
- this._box_0 = t0;
- this.importer = t1;
- },
- _parseImporter___closure: function _parseImporter___closure(t0) {
- this.currentFiber = t0;
- },
- _parseImporter____closure: function _parseImporter____closure(t0, t1) {
- this.currentFiber = t0;
- this.result = t1;
- },
- _parseImporter___closure0: function _parseImporter___closure0(t0) {
- this._box_0 = t0;
- },
- LimitedMapView$blocklist0(_map, blocklist, $K, $V) {
- var t2, key,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty($K);
- for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
- key = t2.get$current(t2);
- if (!blocklist.contains$1(0, key))
- t1.add$1(0, key);
- }
- return new A.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
- },
- LimitedMapView0: function LimitedMapView0(t0, t1, t2) {
- this._limited_map_view0$_map = t0;
- this._limited_map_view0$_keys = t1;
- this.$ti = t2;
- },
- ListExpression0: function ListExpression0(t0, t1, t2, t3) {
- var _ = this;
- _.contents = t0;
- _.separator = t1;
- _.hasBrackets = t2;
- _.span = t3;
- },
- ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) {
- this.$this = t0;
- },
- _function10($name, $arguments, callback) {
- return A.BuiltInCallable$function0($name, $arguments, callback, "sass:list");
- },
- _length_closure2: function _length_closure2() {
- },
- _nth_closure0: function _nth_closure0() {
- },
- _setNth_closure0: function _setNth_closure0() {
- },
- _join_closure0: function _join_closure0() {
- },
- _append_closure2: function _append_closure2() {
- },
- _zip_closure0: function _zip_closure0() {
- },
- _zip__closure2: function _zip__closure2() {
- },
- _zip__closure3: function _zip__closure3(t0) {
- this._box_0 = t0;
- },
- _zip__closure4: function _zip__closure4(t0) {
- this._box_0 = t0;
- },
- _index_closure2: function _index_closure2() {
- },
- _separator_closure0: function _separator_closure0() {
- },
- _isBracketed_closure0: function _isBracketed_closure0() {
- },
- _slash_closure0: function _slash_closure0() {
- },
- SelectorList$0(components, span) {
- var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector_2);
- if (t1.length === 0)
- A.throwExpression(A.ArgumentError$("components may not be empty.", null));
- return new A.SelectorList0(t1, span);
- },
- SelectorList_SelectorList$parse0(contents, allowParent, interpolationMap, logger, plainCss) {
- return A.SelectorParser$0(contents, allowParent, interpolationMap, logger, plainCss, null).parse$0();
- },
- SelectorList0: function SelectorList0(t0, t1) {
- this.components = t0;
- this.span = t1;
- },
- SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() {
- },
- SelectorList_nestWithin_closure0: function SelectorList_nestWithin_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.preserveParentSelectors = t1;
- _.implicitParent = t2;
- _.parent = t3;
- },
- SelectorList_nestWithin__closure1: function SelectorList_nestWithin__closure1(t0) {
- this.complex = t0;
- },
- SelectorList_nestWithin__closure2: function SelectorList_nestWithin__closure2(t0) {
- this.complex = t0;
- },
- SelectorList__nestWithinCompound_closure2: function SelectorList__nestWithinCompound_closure2() {
- },
- SelectorList__nestWithinCompound_closure3: function SelectorList__nestWithinCompound_closure3(t0) {
- this.parent = t0;
- },
- SelectorList__nestWithinCompound_closure4: function SelectorList__nestWithinCompound_closure4(t0, t1, t2) {
- this.parentSelector = t0;
- this.resolvedSimples = t1;
- this.component = t2;
- },
- SelectorList_withAdditionalCombinators_closure0: function SelectorList_withAdditionalCombinators_closure0(t0) {
- this.combinators = t0;
- },
- _ParentSelectorVisitor0: function _ParentSelectorVisitor0() {
- },
- __ParentSelectorVisitor_Object_SelectorSearchVisitor0: function __ParentSelectorVisitor_Object_SelectorSearchVisitor0() {
- },
- listClass_closure: function listClass_closure() {
- },
- listClass__closure: function listClass__closure() {
- },
- listClass__closure0: function listClass__closure0() {
- },
- _ConstructorOptions: function _ConstructorOptions() {
- },
- _NodeSassList: function _NodeSassList() {
- },
- legacyListClass_closure: function legacyListClass_closure() {
- },
- legacyListClass__closure: function legacyListClass__closure() {
- },
- legacyListClass_closure0: function legacyListClass_closure0() {
- },
- legacyListClass_closure1: function legacyListClass_closure1() {
- },
- legacyListClass_closure2: function legacyListClass_closure2() {
- },
- legacyListClass_closure3: function legacyListClass_closure3() {
- },
- legacyListClass_closure4: function legacyListClass_closure4() {
- },
- SassList$0(contents, _separator, brackets) {
- var t1 = new A.SassList0(A.List_List$unmodifiable(contents, type$.Value_2), _separator, brackets);
- t1.SassList$3$brackets0(contents, _separator, brackets);
- return t1;
- },
- SassList0: function SassList0(t0, t1, t2) {
- this._list1$_contents = t0;
- this._list1$_separator = t1;
- this._list1$_hasBrackets = t2;
- },
- SassList_isBlank_closure0: function SassList_isBlank_closure0() {
- },
- ListSeparator0: function ListSeparator0(t0, t1, t2) {
- this._list1$_name = t0;
- this.separator = t1;
- this._name = t2;
- },
- JSLogger: function JSLogger() {
- },
- WarnOptions: function WarnOptions() {
- },
- DebugOptions: function DebugOptions() {
- },
- WarnForDeprecation_warnForDeprecation0(_this, deprecation, message, span, trace) {
- if (deprecation.isFuture && !(_this instanceof A.DeprecationProcessingLogger0))
- return;
- if (_this instanceof A.LoggerWithDeprecationType)
- _this.internalWarn$4$deprecation$span$trace(message, deprecation, span, trace);
- else
- _this.warn$4$deprecation$span$trace(0, message, true, span, trace);
- },
- LoggerWithDeprecationType: function LoggerWithDeprecationType() {
- },
- _QuietLogger0: function _QuietLogger0() {
- },
- LoudComment0: function LoudComment0(t0) {
- this.text = t0;
- },
- MapExpression0: function MapExpression0(t0, t1) {
- this.pairs = t0;
- this.span = t1;
- },
- _modify0(map, keys, modify, addNesting) {
- var keyIterator = J.get$iterator$ax(keys);
- return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap0(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map);
- },
- _deepMergeImpl0(map1, map2) {
- var t2, t3, result, t4, key, value, _1_1, _1_3, _1_3_isSet, resultMap, _1_30, valueMap, merged, _null = null,
- t1 = map1._map0$_contents;
- if (t1.get$isEmpty(t1))
- return map2;
- t2 = map2._map0$_contents;
- if (t2.get$isEmpty(t2))
- return map1;
- t3 = type$.Value_2;
- result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3);
- for (t1 = A.MapExtensions_get_pairs0(t2, t3, t3), t1 = t1.get$iterator(t1), t2 = type$.SassMap_2; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- key = t4._0;
- value = t4._1;
- t4 = result.$index(0, key);
- _1_1 = t4 == null ? _null : t4.tryMap$0();
- _1_3 = value.tryMap$0();
- _1_3_isSet = _1_1 != null;
- if (_1_3_isSet) {
- resultMap = _1_1 == null ? t2._as(_1_1) : _1_1;
- t4 = _1_3 != null;
- _1_30 = _1_3;
- } else {
- resultMap = _null;
- _1_30 = resultMap;
- t4 = false;
- }
- if (t4) {
- valueMap = _1_3_isSet ? _1_30 : _1_3;
- merged = A._deepMergeImpl0(resultMap, valueMap == null ? t2._as(valueMap) : valueMap);
- if (merged === resultMap)
- continue;
- result.$indexSet(0, key, merged);
- } else
- result.$indexSet(0, key, value);
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(result, t3, t3));
- },
- _function9($name, $arguments, callback) {
- return A.BuiltInCallable$function0($name, $arguments, callback, "sass:map");
- },
- _get_closure0: function _get_closure0() {
- },
- _set_closure1: function _set_closure1() {
- },
- _set__closure2: function _set__closure2(t0) {
- this.$arguments = t0;
- },
- _set_closure2: function _set_closure2() {
- },
- _set__closure1: function _set__closure1(t0) {
- this._box_0 = t0;
- },
- _merge_closure1: function _merge_closure1() {
- },
- _merge_closure2: function _merge_closure2() {
- },
- _merge__closure0: function _merge__closure0(t0) {
- this.map2 = t0;
- },
- _deepMerge_closure0: function _deepMerge_closure0() {
- },
- _deepRemove_closure0: function _deepRemove_closure0() {
- },
- _deepRemove__closure0: function _deepRemove__closure0(t0) {
- this.keys = t0;
- },
- _remove_closure1: function _remove_closure1() {
- },
- _remove_closure2: function _remove_closure2() {
- },
- _keys_closure0: function _keys_closure0() {
- },
- _values_closure0: function _values_closure0() {
- },
- _hasKey_closure0: function _hasKey_closure0() {
- },
- _modify_modifyNestedMap0: function _modify_modifyNestedMap0(t0, t1, t2) {
- this.keyIterator = t0;
- this.modify = t1;
- this.addNesting = t2;
- },
- MapExtensions_get_pairs0(_this, $K, $V) {
- return _this.get$entries(_this).map$1$1(0, new A.MapExtensions_get_pairs_closure0($K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("+(1,2)"));
- },
- MapExtensions_get_pairs_closure0: function MapExtensions_get_pairs_closure0(t0, t1) {
- this.K = t0;
- this.V = t1;
- },
- mapClass_closure: function mapClass_closure() {
- },
- mapClass__closure: function mapClass__closure() {
- },
- mapClass__closure0: function mapClass__closure0() {
- },
- mapClass__closure1: function mapClass__closure1() {
- },
- _NodeSassMap: function _NodeSassMap() {
- },
- legacyMapClass_closure: function legacyMapClass_closure() {
- },
- legacyMapClass__closure: function legacyMapClass__closure() {
- },
- legacyMapClass__closure0: function legacyMapClass__closure0() {
- },
- legacyMapClass_closure0: function legacyMapClass_closure0() {
- },
- legacyMapClass_closure1: function legacyMapClass_closure1() {
- },
- legacyMapClass_closure2: function legacyMapClass_closure2() {
- },
- legacyMapClass_closure3: function legacyMapClass_closure3() {
- },
- legacyMapClass_closure4: function legacyMapClass_closure4() {
- },
- SassMap0: function SassMap0(t0) {
- this._map0$_contents = t0;
- },
- _singleArgumentMathFunc0($name, mathFunc) {
- return A.BuiltInCallable$function0($name, "$number", new A._singleArgumentMathFunc_closure0(mathFunc), "sass:math");
- },
- _numberFunction0($name, transform) {
- return A.BuiltInCallable$function0($name, "$number", new A._numberFunction_closure0(transform), "sass:math");
- },
- _function8($name, $arguments, callback) {
- return A.BuiltInCallable$function0($name, $arguments, callback, "sass:math");
- },
- global_closure31: function global_closure31() {
- },
- module_closure11: function module_closure11() {
- },
- _ceil_closure0: function _ceil_closure0() {
- },
- _clamp_closure0: function _clamp_closure0() {
- },
- _floor_closure0: function _floor_closure0() {
- },
- _max_closure0: function _max_closure0() {
- },
- _min_closure0: function _min_closure0() {
- },
- _round_closure0: function _round_closure0() {
- },
- _hypot_closure0: function _hypot_closure0() {
- },
- _hypot__closure0: function _hypot__closure0() {
- },
- _log_closure0: function _log_closure0() {
- },
- _pow_closure0: function _pow_closure0() {
- },
- _atan2_closure0: function _atan2_closure0() {
- },
- _compatible_closure0: function _compatible_closure0() {
- },
- _isUnitless_closure0: function _isUnitless_closure0() {
- },
- _unit_closure0: function _unit_closure0() {
- },
- _percentage_closure0: function _percentage_closure0() {
- },
- _randomFunction_closure0: function _randomFunction_closure0() {
- },
- _div_closure0: function _div_closure0() {
- },
- _singleArgumentMathFunc_closure0: function _singleArgumentMathFunc_closure0(t0) {
- this.mathFunc = t0;
- },
- _numberFunction_closure0: function _numberFunction_closure0(t0) {
- this.transform = t0;
- },
- CssMediaQuery_parseList0(contents, interpolationMap, logger) {
- var t1 = A.SpanScanner$(contents, null);
- return new A.MediaQueryParser0(t1, logger, interpolationMap).parse$0();
- },
- CssMediaQuery$type0(type, conditions, modifier) {
- return new A.CssMediaQuery0(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String));
- },
- CssMediaQuery$condition0(conditions, conjunction) {
- var t1 = A.List_List$unmodifiable(conditions, type$.String);
- if (t1.length > 1 && conjunction == null)
- A.throwExpression(A.ArgumentError$(string$.If_con, null));
- return new A.CssMediaQuery0(null, null, conjunction !== false, t1);
- },
- CssMediaQuery0: function CssMediaQuery0(t0, t1, t2, t3) {
- var _ = this;
- _.modifier = t0;
- _.type = t1;
- _.conjunction = t2;
- _.conditions = t3;
- },
- _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
- this._name = t0;
- },
- MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
- this.query = t0;
- },
- MediaQueryParser0: function MediaQueryParser0(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._parser0$_interpolationMap = t2;
- },
- MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
- this.$this = t0;
- },
- ModifiableCssMediaRule$0(queries, span) {
- var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery_2),
- t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- if (J.get$isEmpty$asx(queries))
- A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty."));
- return new A.ModifiableCssMediaRule0(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
- },
- ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
- var _ = this;
- _.queries = t0;
- _.span = t1;
- _.children = t2;
- _._node$_children = t3;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- MediaRule$0(query, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.MediaRule0(query, span, t1, t2);
- },
- MediaRule0: function MediaRule0(t0, t1, t2, t3) {
- var _ = this;
- _.query = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- MergedExtension_merge0(left, right) {
- var t2, t3, t4,
- t1 = left.extender.selector;
- if (!t1.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target))
- throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null));
- t2 = left.mediaContext;
- t3 = t2 == null;
- if (!t3) {
- t4 = right.mediaContext;
- t4 = t4 != null && !B.C_ListEquality.equals$2(0, t2, t4);
- } else
- t4 = false;
- if (t4)
- throw A.wrapException(A.SassException$0("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span, null));
- if (right.isOptional && right.mediaContext == null)
- return left;
- if (left.isOptional && t3)
- return right;
- if (t3)
- t2 = right.mediaContext;
- t1.get$specificity();
- t1 = new A.Extender0(t1, false);
- return t1._extension$_extension = new A.MergedExtension0(left, right, t1, left.target, t2, true, left.span);
- },
- MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.extender = t2;
- _.target = t3;
- _.mediaContext = t4;
- _.isOptional = t5;
- _.span = t6;
- },
- MergedMapView$0(maps, $K, $V) {
- var t1 = $K._eval$1("@<0>")._bind$1($V);
- t1 = new A.MergedMapView0(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView0<1,2>"));
- t1.MergedMapView$10(maps, $K, $V);
- return t1;
- },
- MergedMapView0: function MergedMapView0(t0, t1) {
- this._merged_map_view$_mapsByKey = t0;
- this.$ti = t1;
- },
- _function12($name, $arguments, callback) {
- return A.BuiltInCallable$function0($name, $arguments, callback, "sass:meta");
- },
- global_closure59: function global_closure59() {
- },
- global_closure60: function global_closure60() {
- },
- global_closure61: function global_closure61() {
- },
- global_closure62: function global_closure62() {
- },
- local_closure2: function local_closure2() {
- },
- local_closure3: function local_closure3() {
- },
- local__closure0: function local__closure0() {
- },
- local_closure4: function local_closure4() {
- },
- mixinClass_closure: function mixinClass_closure() {
- },
- mixinClass__closure: function mixinClass__closure() {
- },
- mixinClass__closure0: function mixinClass__closure0() {
- },
- SassMixin0: function SassMixin0(t0) {
- this.callable = t0;
- },
- MixinRule$0($name, $arguments, children, span, comment) {
- var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
- t2 = A.List_List$unmodifiable(children, type$.Statement_2),
- t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
- return new A.MixinRule0(t1, $name, $arguments, span, t2, t3);
- },
- MixinRule0: function MixinRule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._mixin_rule$__MixinRule_hasContent_FI = $;
- _.name = t0;
- _.originalName = t1;
- _.$arguments = t2;
- _.span = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- _HasContentVisitor0: function _HasContentVisitor0() {
- },
- __HasContentVisitor_Object_StatementSearchVisitor0: function __HasContentVisitor_Object_StatementSearchVisitor0() {
- },
- ExtendMode0: function ExtendMode0(t0, t1) {
- this.name = t0;
- this._name = t1;
- },
- JSModule0: function JSModule0() {
- },
- JSModuleRequire0: function JSModuleRequire0() {
- },
- MultiSpan0: function MultiSpan0(t0, t1, t2) {
- this._multi_span0$_primary = t0;
- this.primaryLabel = t1;
- this.secondarySpans = t2;
- },
- SupportsNegation0: function SupportsNegation0(t0, t1) {
- this.condition = t0;
- this.span = t1;
- },
- NoOpImporter0: function NoOpImporter0() {
- },
- NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
- this._no_source_map_buffer0$_buffer = t0;
- },
- _FakeAstNode0: function _FakeAstNode0(t0) {
- this._node0$_callback = t0;
- },
- CssNode0: function CssNode0() {
- },
- CssParentNode0: function CssParentNode0() {
- },
- _IsInvisibleVisitor1: function _IsInvisibleVisitor1(t0, t1) {
- this.includeBogus = t0;
- this.includeComments = t1;
- },
- __IsInvisibleVisitor_Object_EveryCssVisitor0: function __IsInvisibleVisitor_Object_EveryCssVisitor0() {
- },
- ModifiableCssNode0: function ModifiableCssNode0() {
- },
- ModifiableCssNode_hasFollowingSibling_closure0: function ModifiableCssNode_hasFollowingSibling_closure0() {
- },
- ModifiableCssParentNode0: function ModifiableCssParentNode0() {
- },
- NodePackageImporter0: function NodePackageImporter0() {
- this._node_package$__NodePackageImporter__entryPointDirectory_F = $;
- },
- NodePackageImporter__nodePackageExportsResolve_closure3: function NodePackageImporter__nodePackageExportsResolve_closure3() {
- },
- NodePackageImporter__nodePackageExportsResolve_closure4: function NodePackageImporter__nodePackageExportsResolve_closure4() {
- },
- NodePackageImporter__nodePackageExportsResolve_closure5: function NodePackageImporter__nodePackageExportsResolve_closure5() {
- },
- NodePackageImporter__nodePackageExportsResolve_closure6: function NodePackageImporter__nodePackageExportsResolve_closure6(t0, t1, t2) {
- this.$this = t0;
- this.exports = t1;
- this.packageRoot = t2;
- },
- NodePackageImporter__nodePackageExportsResolve__closure1: function NodePackageImporter__nodePackageExportsResolve__closure1(t0, t1, t2) {
- this.$this = t0;
- this.variant = t1;
- this.packageRoot = t2;
- },
- NodePackageImporter__nodePackageExportsResolve__closure2: function NodePackageImporter__nodePackageExportsResolve__closure2() {
- },
- NodePackageImporter__getMainExport_closure0: function NodePackageImporter__getMainExport_closure0() {
- },
- NullExpression0: function NullExpression0(t0) {
- this.span = t0;
- },
- legacyNullClass_closure: function legacyNullClass_closure() {
- },
- legacyNullClass__closure: function legacyNullClass__closure() {
- },
- _SassNull0: function _SassNull0() {
- },
- NumberExpression0: function NumberExpression0(t0, t1, t2) {
- this.value = t0;
- this.unit = t1;
- this.span = t2;
- },
- numberClass_closure: function numberClass_closure() {
- },
- numberClass__closure: function numberClass__closure() {
- },
- numberClass__closure0: function numberClass__closure0() {
- },
- numberClass__closure1: function numberClass__closure1() {
- },
- numberClass__closure2: function numberClass__closure2() {
- },
- numberClass__closure3: function numberClass__closure3() {
- },
- numberClass__closure4: function numberClass__closure4() {
- },
- numberClass__closure5: function numberClass__closure5() {
- },
- numberClass__closure6: function numberClass__closure6() {
- },
- numberClass__closure7: function numberClass__closure7() {
- },
- numberClass__closure8: function numberClass__closure8() {
- },
- numberClass__closure9: function numberClass__closure9() {
- },
- numberClass__closure10: function numberClass__closure10() {
- },
- numberClass__closure11: function numberClass__closure11() {
- },
- numberClass__closure12: function numberClass__closure12() {
- },
- numberClass__closure13: function numberClass__closure13() {
- },
- numberClass__closure14: function numberClass__closure14() {
- },
- numberClass__closure15: function numberClass__closure15() {
- },
- numberClass__closure16: function numberClass__closure16() {
- },
- numberClass__closure17: function numberClass__closure17() {
- },
- numberClass__closure18: function numberClass__closure18() {
- },
- numberClass__closure19: function numberClass__closure19() {
- },
- _ConstructorOptions0: function _ConstructorOptions0() {
- },
- _parseNumber(value, unit) {
- var invalidUnit, operands, t1, numerator, denominator, numeratorUnits, denominatorUnits;
- if (unit == null || unit.length === 0)
- return A.SassNumber_SassNumber0(value, null);
- if (!J.contains$1$asx(unit, "*") && !B.JSString_methods.contains$1(unit, "/"))
- return A.SassNumber_SassNumber0(value, unit);
- invalidUnit = new A.ArgumentError(true, unit, "unit", "is invalid.");
- operands = unit.split("/");
- t1 = operands.length;
- if (t1 > 2)
- throw A.wrapException(invalidUnit);
- numerator = operands[0];
- denominator = t1 === 1 ? null : operands[1];
- t1 = type$.JSArray_String;
- numeratorUnits = numerator.length === 0 ? A._setArrayType([], t1) : A._setArrayType(numerator.split("*"), t1);
- if (B.JSArray_methods.any$1(numeratorUnits, new A._parseNumber_closure()))
- throw A.wrapException(invalidUnit);
- denominatorUnits = denominator == null ? A._setArrayType([], t1) : A._setArrayType(denominator.split("*"), t1);
- if (B.JSArray_methods.any$1(denominatorUnits, new A._parseNumber_closure0()))
- throw A.wrapException(invalidUnit);
- return A.SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits);
- },
- _NodeSassNumber: function _NodeSassNumber() {
- },
- legacyNumberClass_closure: function legacyNumberClass_closure() {
- },
- legacyNumberClass_closure0: function legacyNumberClass_closure0() {
- },
- legacyNumberClass_closure1: function legacyNumberClass_closure1() {
- },
- legacyNumberClass_closure2: function legacyNumberClass_closure2() {
- },
- legacyNumberClass_closure3: function legacyNumberClass_closure3() {
- },
- _parseNumber_closure: function _parseNumber_closure() {
- },
- _parseNumber_closure0: function _parseNumber_closure0() {
- },
- conversionFactor0(unit1, unit2) {
- var _0_0;
- if (unit1 === unit2)
- return 1;
- _0_0 = B.Map_gQqJO.$index(0, unit1);
- if (_0_0 != null)
- return _0_0.$index(0, unit2);
- return null;
- },
- SassNumber_SassNumber0(value, unit) {
- return unit == null ? new A.UnitlessSassNumber0(value, null) : new A.SingleUnitSassNumber0(unit, value, null);
- },
- SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits) {
- var _0_4, _0_6, _0_8_isSet, _0_8, _0_10_isSet, _0_10, _0_7, t2, _0_4_isSet, unit, _0_7_isSet, numerators, t3, denominators, unsimplifiedDenominators, valueDouble, _i, denominator, simplifiedAway, i, factor, _1_2, _1_7_isSet, _1_7, _null = null,
- _0_3 = numeratorUnits == null,
- t1 = _0_3,
- _0_6_isSet = !t1;
- if (_0_6_isSet) {
- _0_4 = J.get$length$asx(numeratorUnits == null ? type$.List_String._as(numeratorUnits) : numeratorUnits);
- t1 = _0_4;
- _0_6 = t1 <= 0;
- _0_8_isSet = _0_6;
- } else {
- _0_4 = _null;
- _0_6 = _0_4;
- _0_8_isSet = true;
- }
- if (_0_8_isSet) {
- _0_8 = denominatorUnits == null;
- t1 = _0_8;
- _0_10_isSet = !t1;
- if (_0_10_isSet) {
- _0_10 = J.get$length$asx(denominatorUnits == null ? type$.List_String._as(denominatorUnits) : denominatorUnits) <= 0;
- t1 = _0_10;
- } else {
- _0_10 = _null;
- t1 = true;
- }
- _0_7 = denominatorUnits;
- } else {
- _0_10 = _null;
- _0_7 = _0_10;
- _0_8 = _0_7;
- _0_10_isSet = false;
- t1 = false;
- }
- if (t1)
- return new A.UnitlessSassNumber0(value, _null);
- t1 = type$.List_String;
- if (t1._is(numeratorUnits)) {
- if (_0_6_isSet) {
- t2 = _0_4;
- _0_4_isSet = _0_6_isSet;
- } else {
- _0_4 = J.get$length$asx(numeratorUnits);
- t2 = _0_4;
- _0_4_isSet = true;
- }
- if (t2 === 1) {
- unit = J.$index$asx(numeratorUnits, 0);
- if (_0_8_isSet) {
- t2 = _0_8;
- _0_7_isSet = _0_8_isSet;
- } else {
- _0_8 = denominatorUnits == null;
- t2 = _0_8;
- _0_7 = denominatorUnits;
- _0_8_isSet = true;
- _0_7_isSet = true;
- }
- if (!t2)
- if (_0_10_isSet)
- t2 = _0_10;
- else {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- t2 = denominatorUnits;
- _0_7 = t2;
- _0_7_isSet = true;
- }
- _0_10 = J.get$length$asx(t2 == null ? t1._as(t2) : t2) <= 0;
- t2 = _0_10;
- _0_10_isSet = true;
- }
- else
- t2 = true;
- } else {
- unit = _null;
- _0_7_isSet = _0_8_isSet;
- t2 = false;
- }
- } else {
- unit = _null;
- _0_7_isSet = _0_8_isSet;
- _0_4_isSet = _0_6_isSet;
- t2 = false;
- }
- if (t2)
- return new A.SingleUnitSassNumber0(unit, value, _null);
- t2 = numeratorUnits == null;
- if (!t2) {
- numerators = numeratorUnits;
- if (_0_8_isSet)
- t3 = _0_8;
- else {
- if (_0_7_isSet)
- t3 = _0_7;
- else {
- t3 = denominatorUnits;
- _0_7 = t3;
- _0_7_isSet = true;
- }
- _0_8 = t3 == null;
- t3 = _0_8;
- }
- if (!t3)
- if (_0_10_isSet)
- t3 = _0_10;
- else {
- if (_0_7_isSet)
- t3 = _0_7;
- else {
- t3 = denominatorUnits;
- _0_7 = t3;
- _0_7_isSet = true;
- }
- _0_10 = J.get$length$asx(t3 == null ? t1._as(t3) : t3) <= 0;
- t3 = _0_10;
- }
- else
- t3 = true;
- } else {
- numerators = _null;
- t3 = false;
- }
- if (t3)
- return new A.ComplexSassNumber0(A.List_List$unmodifiable(numerators, type$.String), B.List_empty, value, _null);
- if (!_0_3)
- if (_0_6_isSet)
- t2 = _0_6;
- else {
- if (_0_4_isSet)
- t2 = _0_4;
- else {
- _0_4 = J.get$length$asx(t2 ? t1._as(numeratorUnits) : numeratorUnits);
- t2 = _0_4;
- }
- _0_6 = t2 <= 0;
- t2 = _0_6;
- }
- else
- t2 = true;
- if (t2) {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- t2 = denominatorUnits;
- _0_7 = t2;
- _0_7_isSet = true;
- }
- t2 = t2 != null;
- if (t2) {
- denominators = _0_7_isSet ? _0_7 : denominatorUnits;
- if (denominators == null)
- denominators = t1._as(denominators);
- } else
- denominators = _null;
- t1 = t2;
- } else {
- denominators = _null;
- t1 = false;
- }
- if (t1)
- return new A.ComplexSassNumber0(B.List_empty, A.List_List$unmodifiable(denominators, type$.String), value, _null);
- numeratorUnits.toString;
- numerators = J.toList$0$ax(numeratorUnits);
- denominatorUnits.toString;
- unsimplifiedDenominators = J.toList$0$ax(denominatorUnits);
- denominators = A._setArrayType([], type$.JSArray_String);
- for (t1 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t1 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) {
- denominator = unsimplifiedDenominators[_i];
- i = 0;
- while (true) {
- if (!(i < numerators.length)) {
- simplifiedAway = false;
- break;
- }
- c$0: {
- factor = A.conversionFactor0(denominator, numerators[i]);
- if (factor == null)
- break c$0;
- valueDouble *= factor;
- B.JSArray_methods.removeAt$1(numerators, i);
- simplifiedAway = true;
- break;
- }
- ++i;
- }
- if (!simplifiedAway)
- denominators.push(denominator);
- }
- $label0$1: {
- _1_2 = numerators.length;
- t1 = _1_2;
- _1_7_isSet = t1 <= 0;
- if (_1_7_isSet) {
- _1_7 = denominators.length <= 0;
- t1 = _1_7;
- } else {
- _1_7 = _null;
- t1 = false;
- }
- if (t1) {
- t1 = new A.UnitlessSassNumber0(valueDouble, _null);
- break $label0$1;
- }
- if (_1_2 === 1) {
- unit = numerators[0];
- t1 = _1_7_isSet ? _1_7 : denominators.length <= 0;
- } else {
- unit = _null;
- t1 = false;
- }
- if (t1) {
- t1 = new A.SingleUnitSassNumber0(unit, valueDouble, _null);
- break $label0$1;
- }
- t1 = type$.String;
- t1 = new A.ComplexSassNumber0(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null);
- break $label0$1;
- }
- return t1;
- },
- SassNumber0: function SassNumber0() {
- },
- SassNumber__coerceOrConvertValue_compatibilityException0: function SassNumber__coerceOrConvertValue_compatibilityException0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.$this = t0;
- _.other = t1;
- _.otherName = t2;
- _.otherHasUnits = t3;
- _.name = t4;
- _.newNumerators = t5;
- _.newDenominators = t6;
- },
- SassNumber__coerceOrConvertValue_closure3: function SassNumber__coerceOrConvertValue_closure3(t0, t1) {
- this._box_0 = t0;
- this.newNumerator = t1;
- },
- SassNumber__coerceOrConvertValue_closure4: function SassNumber__coerceOrConvertValue_closure4(t0) {
- this.compatibilityException = t0;
- },
- SassNumber__coerceOrConvertValue_closure5: function SassNumber__coerceOrConvertValue_closure5(t0, t1) {
- this._box_0 = t0;
- this.newDenominator = t1;
- },
- SassNumber__coerceOrConvertValue_closure6: function SassNumber__coerceOrConvertValue_closure6(t0) {
- this.compatibilityException = t0;
- },
- SassNumber_plus_closure0: function SassNumber_plus_closure0() {
- },
- SassNumber_minus_closure0: function SassNumber_minus_closure0() {
- },
- SassNumber_multiplyUnits_closure3: function SassNumber_multiplyUnits_closure3(t0, t1) {
- this._box_0 = t0;
- this.numerator = t1;
- },
- SassNumber_multiplyUnits_closure4: function SassNumber_multiplyUnits_closure4(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber_multiplyUnits_closure5: function SassNumber_multiplyUnits_closure5(t0, t1) {
- this._box_0 = t0;
- this.numerator = t1;
- },
- SassNumber_multiplyUnits_closure6: function SassNumber_multiplyUnits_closure6(t0, t1) {
- this.newNumerators = t0;
- this.numerator = t1;
- },
- SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0) {
- this.units2 = t0;
- },
- SassNumber__canonicalizeUnitList_closure0: function SassNumber__canonicalizeUnitList_closure0() {
- },
- SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0(t0) {
- this.$this = t0;
- },
- SassNumber_unitSuggestion_closure1: function SassNumber_unitSuggestion_closure1() {
- },
- SassNumber_unitSuggestion_closure2: function SassNumber_unitSuggestion_closure2() {
- },
- SupportsOperation$0(left, right, operator, span) {
- var lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- return new A.SupportsOperation0(left, right, operator, span);
- },
- SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) {
- var _ = this;
- _.left = t0;
- _.right = t1;
- _.operator = t2;
- _.span = t3;
- },
- ParentSelector0: function ParentSelector0(t0, t1) {
- this.suffix = t0;
- this.span = t1;
- },
- ParentStatement0: function ParentStatement0() {
- },
- ParentStatement_closure0: function ParentStatement_closure0() {
- },
- ParentStatement__closure0: function ParentStatement__closure0() {
- },
- ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- Parser_isIdentifier0(text) {
- var t1, t2, exception, logger = null;
- try {
- t1 = logger;
- t2 = A.SpanScanner$(text, null);
- new A.Parser1(t2, t1 == null ? B.StderrLogger_false0 : t1, null)._parser0$_parseIdentifier$0();
- return true;
- } catch (exception) {
- if (type$.SassFormatException_2._is(A.unwrapException(exception)))
- return false;
- else
- throw exception;
- }
- },
- Parser1: function Parser1(t0, t1, t2) {
- this.scanner = t0;
- this.logger = t1;
- this._parser0$_interpolationMap = t2;
- },
- Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
- this.$this = t0;
- },
- Parser_escape_closure0: function Parser_escape_closure0() {
- },
- Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
- this.caseSensitive = t0;
- this.char = t1;
- },
- Parser_spanFrom_closure0: function Parser_spanFrom_closure0(t0, t1) {
- this.$this = t0;
- this.span = t1;
- },
- PlaceholderSelector0: function PlaceholderSelector0(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- PlainCssCallable0: function PlainCssCallable0(t0) {
- this.name = t0;
- },
- PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
- this._prefixed_map_view0$_map = t0;
- this._prefixed_map_view0$_prefix = t1;
- this.$ti = t2;
- },
- _PrefixedKeys0: function _PrefixedKeys0(t0) {
- this._prefixed_map_view0$_view = t0;
- },
- _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
- this.$this = t0;
- },
- PseudoSelector$0($name, span, argument, element, selector) {
- var t1 = !element,
- t2 = t1 && !A.PseudoSelector__isFakePseudoElement0($name);
- return new A.PseudoSelector0($name, A.unvendor0($name), t2, t1, argument, selector, span);
- },
- PseudoSelector__isFakePseudoElement0($name) {
- switch ($name.charCodeAt(0)) {
- case 97:
- case 65:
- return A.equalsIgnoreCase0($name, "after");
- case 98:
- case 66:
- return A.equalsIgnoreCase0($name, "before");
- case 102:
- case 70:
- return A.equalsIgnoreCase0($name, "first-line") || A.equalsIgnoreCase0($name, "first-letter");
- default:
- return false;
- }
- },
- PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _.name = t0;
- _.normalizedName = t1;
- _.isClass = t2;
- _.isSyntacticClass = t3;
- _.argument = t4;
- _.selector = t5;
- _._pseudo$__PseudoSelector_specificity_FI = $;
- _.span = t6;
- },
- PseudoSelector_specificity_closure0: function PseudoSelector_specificity_closure0(t0) {
- this.$this = t0;
- },
- PseudoSelector_specificity__closure1: function PseudoSelector_specificity__closure1() {
- },
- PseudoSelector_specificity__closure2: function PseudoSelector_specificity__closure2() {
- },
- PseudoSelector_unify_closure0: function PseudoSelector_unify_closure0() {
- },
- PublicMemberMapView0: function PublicMemberMapView0(t0, t1) {
- this._public_member_map_view0$_inner = t0;
- this.$ti = t1;
- },
- QualifiedName0: function QualifiedName0(t0, t1) {
- this.name = t0;
- this.namespace = t1;
- },
- createJSClass($name, $constructor) {
- return type$.JSClass._as(A.allowInteropCaptureThisNamed($name, $constructor));
- },
- JSClassExtension_injectSuperclass(_this, superclass) {
- var t1 = J.getInterceptor$x(superclass),
- t2 = J.getInterceptor$x(_this);
- self.Object.setPrototypeOf(t1.get$$prototype(superclass), J.get$$prototype$x(type$.JSClass._as(self.Object.getPrototypeOf(t2.get$$prototype(_this)).constructor)));
- self.Object.setPrototypeOf(t2.get$$prototype(_this), self.Object.create(t1.get$$prototype(superclass)));
- },
- JSClassExtension_setCustomInspect(_this, inspect) {
- if (self.util == null)
- return;
- J.get$$prototype$x(_this)[self.util.inspect.custom] = A.allowInteropCaptureThis(new A.JSClassExtension_setCustomInspect_closure(inspect));
- },
- JSClassExtension_get_defineStaticMethod(_this) {
- return new A.JSClassExtension_get_defineStaticMethod_closure(_this);
- },
- JSClassExtension_get_defineMethod(_this) {
- return new A.JSClassExtension_get_defineMethod_closure(_this);
- },
- JSClassExtension_defineMethods(_this, methods) {
- methods.forEach$1(0, A.JSClassExtension_get_defineMethod(_this));
- },
- JSClassExtension_get_defineGetter(_this) {
- return new A.JSClassExtension_get_defineGetter_closure(_this);
- },
- JSClass0: function JSClass0() {
- },
- JSClassExtension_setCustomInspect_closure: function JSClassExtension_setCustomInspect_closure(t0) {
- this.inspect = t0;
- },
- JSClassExtension_get_defineStaticMethod_closure: function JSClassExtension_get_defineStaticMethod_closure(t0) {
- this._this = t0;
- },
- JSClassExtension_get_defineMethod_closure: function JSClassExtension_get_defineMethod_closure(t0) {
- this._this = t0;
- },
- JSClassExtension_get_defineGetter_closure: function JSClassExtension_get_defineGetter_closure(t0) {
- this._this = t0;
- },
- RenderContext0: function RenderContext0() {
- },
- RenderContextOptions0: function RenderContextOptions0() {
- },
- RenderContextResult0: function RenderContextResult0() {
- },
- RenderContextResultStats0: function RenderContextResultStats0() {
- },
- RenderOptions: function RenderOptions() {
- },
- RenderResult: function RenderResult() {
- },
- RenderResultStats: function RenderResultStats() {
- },
- ReplaceExpressionVisitor0: function ReplaceExpressionVisitor0() {
- },
- ReplaceExpressionVisitor_visitListExpression_closure0: function ReplaceExpressionVisitor_visitListExpression_closure0(t0) {
- this.$this = t0;
- },
- ReplaceExpressionVisitor_visitArgumentInvocation_closure0: function ReplaceExpressionVisitor_visitArgumentInvocation_closure0(t0) {
- this.$this = t0;
- },
- ReplaceExpressionVisitor_visitInterpolation_closure0: function ReplaceExpressionVisitor_visitInterpolation_closure0(t0) {
- this.$this = t0;
- },
- ImporterResult$(contents, sourceMapUrl, syntax) {
- if ((sourceMapUrl == null ? null : sourceMapUrl.get$scheme()) === "")
- A.throwExpression(A.ArgumentError$value(sourceMapUrl, "sourceMapUrl", "must be absolute"));
- return new A.ImporterResult0(contents, sourceMapUrl, syntax);
- },
- ImporterResult0: function ImporterResult0(t0, t1, t2) {
- this.contents = t0;
- this._result$_sourceMapUrl = t1;
- this.syntax = t2;
- },
- ReturnRule0: function ReturnRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- SassParser0: function SassParser0(t0, t1, t2, t3) {
- var _ = this;
- _._sass0$_currentIndentation = 0;
- _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null;
- _._stylesheet0$_isUseAllowed = true;
- _._stylesheet0$_inExpression = _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
- _._stylesheet0$_globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- _._parser0$_interpolationMap = t3;
- },
- SassParser_styleRuleSelector_closure0: function SassParser_styleRuleSelector_closure0() {
- },
- SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) {
- this.$this = t0;
- this.child = t1;
- this.children = t2;
- },
- SassParser__peekIndentation_closure1: function SassParser__peekIndentation_closure1() {
- },
- SassParser__peekIndentation_closure2: function SassParser__peekIndentation_closure2() {
- },
- _translateReturnValue(val) {
- if (val instanceof A._Future)
- return A.futureToPromise(val, type$.dynamic);
- else
- return val;
- },
- main2() {
- new Uint8Array(0);
- A.main();
- J.set$cli_pkg_main_0_$x(self.exports, A._wrapMain(A.sass__main$closure()));
- },
- _wrapMain(main) {
- if (type$.dynamic_Function._is(main))
- return A.allowInterop(new A._wrapMain_closure(main));
- else
- return A.allowInterop(new A._wrapMain_closure0(main));
- },
- _Exports: function _Exports() {
- },
- _wrapMain_closure: function _wrapMain_closure(t0) {
- this.main = t0;
- },
- _wrapMain_closure0: function _wrapMain_closure0(t0) {
- this.main = t0;
- },
- ScssParser$0(contents, logger, url) {
- var t1 = A.SpanScanner$(contents, url),
- t2 = logger == null ? B.StderrLogger_false0 : logger;
- return new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, t2, null);
- },
- ScssParser0: function ScssParser0(t0, t1, t2, t3) {
- var _ = this;
- _._stylesheet0$_isUseAllowed = true;
- _._stylesheet0$_inExpression = _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
- _._stylesheet0$_globalVariables = t0;
- _.lastSilentComment = null;
- _.scanner = t1;
- _.logger = t2;
- _._parser0$_interpolationMap = t3;
- },
- Selector0: function Selector0() {
- },
- _IsInvisibleVisitor2: function _IsInvisibleVisitor2(t0) {
- this.includeBogus = t0;
- },
- _IsBogusVisitor0: function _IsBogusVisitor0(t0) {
- this.includeLeadingCombinator = t0;
- },
- _IsBogusVisitor_visitComplexSelector_closure0: function _IsBogusVisitor_visitComplexSelector_closure0(t0) {
- this.$this = t0;
- },
- _IsUselessVisitor0: function _IsUselessVisitor0() {
- },
- _IsUselessVisitor_visitComplexSelector_closure0: function _IsUselessVisitor_visitComplexSelector_closure0(t0) {
- this.$this = t0;
- },
- __IsBogusVisitor_Object_AnySelectorVisitor0: function __IsBogusVisitor_Object_AnySelectorVisitor0() {
- },
- __IsInvisibleVisitor_Object_AnySelectorVisitor0: function __IsInvisibleVisitor_Object_AnySelectorVisitor0() {
- },
- __IsUselessVisitor_Object_AnySelectorVisitor0: function __IsUselessVisitor_Object_AnySelectorVisitor0() {
- },
- SelectorExpression0: function SelectorExpression0(t0) {
- this.span = t0;
- },
- _prependParent0(compound) {
- var _0_3, _0_4, _0_4_isSet, rest, _null = null,
- t1 = A.EvaluationContext_currentOrNull0(),
- span = (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan(),
- _0_0 = compound.components;
- $label0$0: {
- _0_3 = _0_0.length >= 1;
- if (_0_3) {
- _0_4 = _0_0[0];
- t1 = _0_4;
- t1 = t1 instanceof A.UniversalSelector0;
- } else {
- _0_4 = _null;
- t1 = false;
- }
- if (t1) {
- t1 = _null;
- break $label0$0;
- }
- if (_0_3) {
- t1 = _0_4;
- if (t1 instanceof A.TypeSelector0) {
- t1 = _0_4;
- t1 = type$.TypeSelector_2._as(t1).name.namespace != null;
- _0_4_isSet = true;
- } else {
- _0_4_isSet = true;
- t1 = false;
- }
- } else {
- _0_4_isSet = _0_3;
- t1 = false;
- }
- if (t1) {
- t1 = _null;
- break $label0$0;
- }
- if (_0_3) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- _0_4 = _0_0[0];
- t1 = _0_4;
- _0_4_isSet = true;
- }
- t1 = t1 instanceof A.TypeSelector0;
- } else
- t1 = false;
- if (t1) {
- t1 = _0_4_isSet ? _0_4 : _0_0[0];
- type$.TypeSelector_2._as(t1);
- rest = B.JSArray_methods.sublist$1(_0_0, 1);
- t1 = A._setArrayType([new A.ParentSelector0(t1.name.name, span)], type$.JSArray_SimpleSelector_2);
- B.JSArray_methods.addAll$1(t1, rest);
- t1 = A.CompoundSelector$0(t1, span);
- break $label0$0;
- }
- t1 = A._setArrayType([new A.ParentSelector0(_null, span)], type$.JSArray_SimpleSelector_2);
- B.JSArray_methods.addAll$1(t1, _0_0);
- t1 = A.CompoundSelector$0(t1, span);
- break $label0$0;
- }
- return t1;
- },
- _function7($name, $arguments, callback) {
- return A.BuiltInCallable$function0($name, $arguments, callback, "sass:selector");
- },
- _nest_closure0: function _nest_closure0() {
- },
- _nest__closure1: function _nest__closure1(t0) {
- this._box_0 = t0;
- },
- _nest__closure2: function _nest__closure2() {
- },
- _append_closure1: function _append_closure1() {
- },
- _append__closure1: function _append__closure1() {
- },
- _append__closure2: function _append__closure2(t0) {
- this.span = t0;
- },
- _append___closure0: function _append___closure0(t0, t1) {
- this.parent = t0;
- this.span = t1;
- },
- _extend_closure0: function _extend_closure0() {
- },
- _replace_closure0: function _replace_closure0() {
- },
- _unify_closure0: function _unify_closure0() {
- },
- _isSuperselector_closure0: function _isSuperselector_closure0() {
- },
- _simpleSelectors_closure0: function _simpleSelectors_closure0() {
- },
- _simpleSelectors__closure0: function _simpleSelectors__closure0() {
- },
- _parse_closure0: function _parse_closure0() {
- },
- SelectorParser$0(contents, allowParent, interpolationMap, logger, plainCss, url) {
- var t1 = A.SpanScanner$(contents, url);
- return new A.SelectorParser0(allowParent, plainCss, t1, logger == null ? B.StderrLogger_false0 : logger, interpolationMap);
- },
- SelectorParser0: function SelectorParser0(t0, t1, t2, t3, t4) {
- var _ = this;
- _._selector$_allowParent = t0;
- _._selector$_plainCss = t1;
- _.scanner = t2;
- _.logger = t3;
- _._parser0$_interpolationMap = t4;
- },
- SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) {
- this.$this = t0;
- },
- SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) {
- this.$this = t0;
- },
- SelectorSearchVisitor0: function SelectorSearchVisitor0() {
- },
- SelectorSearchVisitor_visitComplexSelector_closure0: function SelectorSearchVisitor_visitComplexSelector_closure0(t0) {
- this.$this = t0;
- },
- SelectorSearchVisitor_visitCompoundSelector_closure0: function SelectorSearchVisitor_visitCompoundSelector_closure0(t0) {
- this.$this = t0;
- },
- serialize0(node, charset, indentWidth, inspect, lineFeed, sourceMap, style, useSpaces) {
- var t1, css, t2, prefix,
- visitor = A._SerializeVisitor$0(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, true, sourceMap, style, useSpaces);
- node.accept$1(visitor);
- t1 = visitor._serialize0$_buffer;
- css = t1.toString$0(0);
- if (charset) {
- t2 = new A.CodeUnits(css);
- t2 = t2.any$1(t2, new A.serialize_closure0());
- } else
- t2 = false;
- if (t2)
- prefix = style === B.OutputStyle_10 ? "\ufeff" : '@charset "UTF-8";\n';
- else
- prefix = "";
- t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
- return new A._Record_2_sourceMap(prefix + css, t1);
- },
- serializeValue0(value, inspect, quote) {
- var visitor = A._SerializeVisitor$0(null, inspect, null, quote, false, null, true);
- value.accept$1(visitor);
- return visitor._serialize0$_buffer.toString$0(0);
- },
- serializeSelector0(selector, inspect) {
- var visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
- selector.accept$1(visitor);
- return visitor._serialize0$_buffer.toString$0(0);
- },
- _SerializeVisitor$0(indentWidth, inspect, lineFeed, quote, sourceMap, style, useSpaces) {
- var t1 = sourceMap ? new A.SourceMapBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer0(new A.StringBuffer("")),
- t2 = style == null ? B.OutputStyle_00 : style,
- t3 = useSpaces ? 32 : 9,
- t4 = indentWidth == null ? 2 : indentWidth,
- t5 = lineFeed == null ? B.LineFeed_LvD : lineFeed;
- A.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
- return new A._SerializeVisitor0(t1, t2, inspect, quote, t3, t4, t5);
- },
- serialize_closure0: function serialize_closure0() {
- },
- _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6) {
- var _ = this;
- _._serialize0$_buffer = t0;
- _._serialize0$_indentation = 0;
- _._serialize0$_style = t1;
- _._serialize0$_inspect = t2;
- _._serialize0$_quote = t3;
- _._serialize0$_indentCharacter = t4;
- _._serialize0$_indentWidth = t5;
- _._lineFeed = t6;
- },
- _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
- this.$this = t0;
- this.node = t1;
- },
- _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
- },
- _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
- this.$this = t0;
- },
- _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0) {
- this.$this = t0;
- },
- _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
- },
- _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
- this.$this = t0;
- this.value = t1;
- },
- _SerializeVisitor__visitChildren_closure1: function _SerializeVisitor__visitChildren_closure1(t0, t1) {
- this.$this = t0;
- this.child = t1;
- },
- _SerializeVisitor__visitChildren_closure2: function _SerializeVisitor__visitChildren_closure2(t0, t1) {
- this.$this = t0;
- this.child = t1;
- },
- OutputStyle0: function OutputStyle0(t0) {
- this._name = t0;
- },
- LineFeed0: function LineFeed0(t0, t1, t2) {
- this.name = t0;
- this.text = t1;
- this._name = t2;
- },
- ShadowedModuleView_ifNecessary0(inner, functions, mixins, variables, $T) {
- return A.ShadowedModuleView__needsBlocklist0(inner.get$variables(), variables) || A.ShadowedModuleView__needsBlocklist0(inner.get$functions(inner), functions) || A.ShadowedModuleView__needsBlocklist0(inner.get$mixins(), mixins) ? new A.ShadowedModuleView0(inner, A.ShadowedModuleView__shadowedMap0(inner.get$variables(), variables, type$.Value_2), A.ShadowedModuleView__shadowedMap0(inner.get$variableNodes(), variables, type$.AstNode_2), A.ShadowedModuleView__shadowedMap0(inner.get$functions(inner), functions, $T), A.ShadowedModuleView__shadowedMap0(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView0<0>")) : null;
- },
- ShadowedModuleView__shadowedMap0(map, blocklist, $V) {
- var t1 = A.ShadowedModuleView__needsBlocklist0(map, blocklist);
- return !t1 ? map : A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
- },
- ShadowedModuleView__needsBlocklist0(map, blocklist) {
- return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
- },
- ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._shadowed_view0$_inner = t0;
- _.variables = t1;
- _.variableNodes = t2;
- _.functions = t3;
- _.mixins = t4;
- _.$ti = t5;
- },
- SilentComment0: function SilentComment0(t0, t1) {
- this.text = t0;
- this.span = t1;
- },
- SimpleSelector0: function SimpleSelector0() {
- },
- SimpleSelector_isSuperselector_closure0: function SimpleSelector_isSuperselector_closure0(t0) {
- this.$this = t0;
- },
- SimpleSelector_isSuperselector__closure0: function SimpleSelector_isSuperselector__closure0(t0) {
- this.$this = t0;
- },
- SingleUnitSassNumber0: function SingleUnitSassNumber0(t0, t1, t2) {
- var _ = this;
- _._single_unit$_unit = t0;
- _._number1$_value = t1;
- _.hashCache = null;
- _.asSlash = t2;
- },
- SingleUnitSassNumber__coerceToUnit_closure0: function SingleUnitSassNumber__coerceToUnit_closure0(t0, t1) {
- this.$this = t0;
- this.unit = t1;
- },
- SingleUnitSassNumber__coerceValueToUnit_closure0: function SingleUnitSassNumber__coerceValueToUnit_closure0(t0) {
- this.$this = t0;
- },
- SingleUnitSassNumber_multiplyUnits_closure1: function SingleUnitSassNumber_multiplyUnits_closure1(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- SingleUnitSassNumber_multiplyUnits_closure2: function SingleUnitSassNumber_multiplyUnits_closure2(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- SourceMapBuffer0: function SourceMapBuffer0(t0, t1) {
- var _ = this;
- _._source_map_buffer0$_buffer = t0;
- _._source_map_buffer0$_entries = t1;
- _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0;
- _._source_map_buffer0$_inSpan = false;
- },
- SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) {
- this._box_0 = t0;
- this.prefixLength = t1;
- },
- updateSourceSpanPrototype() {
- var t3, t4, _i, t5,
- span = A.SourceFile$fromString("", null).span$1(0, 0),
- t1 = type$.SourceSpan,
- t2 = type$.String;
- for (t1 = [span, new A.MultiSpan0(span, "", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t1, t2)), new A.LazyFileSpan0(new A.updateSourceSpanPrototype_closure(span))], t3 = type$.JSClass, t4 = type$.Function, _i = 0; _i < 3; ++_i) {
- t5 = t3._as(t1[_i].constructor);
- A.LinkedHashMap_LinkedHashMap$_literal(["start", new A.updateSourceSpanPrototype_closure0(), "end", new A.updateSourceSpanPrototype_closure1(), "url", new A.updateSourceSpanPrototype_closure2(), "text", new A.updateSourceSpanPrototype_closure3(), "context", new A.updateSourceSpanPrototype_closure4()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t5));
- }
- t1 = t3._as(A.FileLocation$_(span.file, span._file$_start).constructor);
- A.LinkedHashMap_LinkedHashMap$_literal(["line", new A.updateSourceSpanPrototype_closure5(), "column", new A.updateSourceSpanPrototype_closure6()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t1));
- },
- updateSourceSpanPrototype_closure: function updateSourceSpanPrototype_closure(t0) {
- this.span = t0;
- },
- updateSourceSpanPrototype_closure0: function updateSourceSpanPrototype_closure0() {
- },
- updateSourceSpanPrototype_closure1: function updateSourceSpanPrototype_closure1() {
- },
- updateSourceSpanPrototype_closure2: function updateSourceSpanPrototype_closure2() {
- },
- updateSourceSpanPrototype_closure3: function updateSourceSpanPrototype_closure3() {
- },
- updateSourceSpanPrototype_closure4: function updateSourceSpanPrototype_closure4() {
- },
- updateSourceSpanPrototype_closure5: function updateSourceSpanPrototype_closure5() {
- },
- updateSourceSpanPrototype_closure6: function updateSourceSpanPrototype_closure6() {
- },
- StatementSearchVisitor0: function StatementSearchVisitor0() {
- },
- StatementSearchVisitor_visitIfRule_closure1: function StatementSearchVisitor_visitIfRule_closure1(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitIfRule__closure2: function StatementSearchVisitor_visitIfRule__closure2(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitIfRule_closure2: function StatementSearchVisitor_visitIfRule_closure2(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitIfRule__closure1: function StatementSearchVisitor_visitIfRule__closure1(t0) {
- this.$this = t0;
- },
- StatementSearchVisitor_visitChildren_closure0: function StatementSearchVisitor_visitChildren_closure0(t0) {
- this.$this = t0;
- },
- StaticImport0: function StaticImport0(t0, t1, t2) {
- this.url = t0;
- this.modifiers = t1;
- this.span = t2;
- },
- StderrLogger0: function StderrLogger0(t0) {
- this.color = t0;
- },
- StringExpression_quoteText0(text) {
- var t1,
- quote = A.StringExpression__bestQuote0(A._setArrayType([text], type$.JSArray_String)),
- buffer = new A.StringBuffer("");
- buffer._contents = "" + A.Primitives_stringFromCharCode(quote);
- A.StringExpression__quoteInnerText0(text, quote, buffer, true);
- t1 = A.Primitives_stringFromCharCode(quote);
- t1 = buffer._contents += t1;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- StringExpression__quoteInnerText0(text, quote, buffer, $static) {
- var t1, t2, i, _1_0, _0_0, t3, t4, t0;
- for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) {
- _1_0 = text.charCodeAt(i);
- if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(97);
- if (i !== t2) {
- _0_0 = text.charCodeAt(i + 1);
- if (!(_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12))
- if (!(_0_0 >= 48 && _0_0 <= 57))
- if (!(_0_0 >= 97 && _0_0 <= 102))
- t3 = _0_0 >= 65 && _0_0 <= 70;
- else
- t3 = true;
- else
- t3 = true;
- else
- t3 = true;
- if (t3)
- buffer.writeCharCode$1(32);
- }
- continue;
- }
- t3 = 92 === _1_0;
- if (t3)
- t4 = _1_0;
- else
- t4 = null;
- if (!t3) {
- t3 = _1_0 === quote;
- if (t3)
- t4 = _1_0;
- t0 = t4;
- t4 = t3;
- t3 = t0;
- if (!t4)
- if (35 === _1_0)
- if ($static)
- if (i < t2) {
- t4 = text.charCodeAt(i + 1) === 123;
- if (t4)
- t3 = _1_0;
- } else
- t4 = false;
- else
- t4 = false;
- else
- t4 = false;
- else
- t4 = true;
- } else {
- t3 = t4;
- t4 = true;
- }
- if (t4) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(t3);
- continue;
- }
- buffer.writeCharCode$1(_1_0);
- }
- },
- StringExpression__bestQuote0(strings) {
- var t1, t2, t3, containsDoubleQuote, t4, t5;
- for (t1 = J.get$iterator$ax(strings), t2 = type$.CodeUnits, t3 = t2._eval$1("ListIterator<ListBase.E>"), t2 = t2._eval$1("ListBase.E"), containsDoubleQuote = false; t1.moveNext$0();)
- for (t4 = new A.CodeUnits(t1.get$current(t1)), t4 = new A.ListIterator(t4, t4.get$length(0), t3); t4.moveNext$0();) {
- t5 = t4.__internal$_current;
- if (t5 == null)
- t5 = t2._as(t5);
- if (t5 === 39)
- return 34;
- if (t5 === 34)
- containsDoubleQuote = true;
- }
- return containsDoubleQuote ? 39 : 34;
- },
- StringExpression0: function StringExpression0(t0, t1) {
- this.text = t0;
- this.hasQuotes = t1;
- },
- _codepointForIndex0(index, lengthInCodepoints, allowNegative) {
- var result;
- if (index === 0)
- return 0;
- if (index > 0)
- return Math.min(index - 1, lengthInCodepoints);
- result = lengthInCodepoints + index;
- if (result < 0 && !allowNegative)
- return 0;
- return result;
- },
- _function6($name, $arguments, callback) {
- return A.BuiltInCallable$function0($name, $arguments, callback, "sass:string");
- },
- module_closure10: function module_closure10() {
- },
- module__closure2: function module__closure2(t0) {
- this.string = t0;
- },
- module__closure3: function module__closure3(t0) {
- this.string = t0;
- },
- _unquote_closure0: function _unquote_closure0() {
- },
- _quote_closure0: function _quote_closure0() {
- },
- _length_closure1: function _length_closure1() {
- },
- _insert_closure0: function _insert_closure0() {
- },
- _index_closure1: function _index_closure1() {
- },
- _slice_closure0: function _slice_closure0() {
- },
- _toUpperCase_closure0: function _toUpperCase_closure0() {
- },
- _toLowerCase_closure0: function _toLowerCase_closure0() {
- },
- _uniqueId_closure0: function _uniqueId_closure0() {
- },
- stringClass_closure: function stringClass_closure() {
- },
- stringClass__closure: function stringClass__closure() {
- },
- stringClass__closure0: function stringClass__closure0() {
- },
- stringClass__closure1: function stringClass__closure1() {
- },
- stringClass__closure2: function stringClass__closure2() {
- },
- stringClass__closure3: function stringClass__closure3() {
- },
- _ConstructorOptions1: function _ConstructorOptions1() {
- },
- _NodeSassString: function _NodeSassString() {
- },
- legacyStringClass_closure: function legacyStringClass_closure() {
- },
- legacyStringClass_closure0: function legacyStringClass_closure0() {
- },
- legacyStringClass_closure1: function legacyStringClass_closure1() {
- },
- SassString$0(_text, quotes) {
- return new A.SassString0(_text, quotes);
- },
- SassString0: function SassString0(t0, t1) {
- var _ = this;
- _._string0$_text = t0;
- _._string0$_hasQuotes = t1;
- _._string0$__SassString__sassLength_FI = $;
- _._string0$_hashCache = null;
- },
- ModifiableCssStyleRule$0(_selector, span, fromPlainCss, originalSelector) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- return new A.ModifiableCssStyleRule0(_selector, originalSelector, span, fromPlainCss, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._style_rule0$_selector = t0;
- _.originalSelector = t1;
- _.span = t2;
- _.fromPlainCss = t3;
- _.children = t4;
- _._node$_children = t5;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- StyleRule$0(selector, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.StyleRule0(selector, span, t1, t2);
- },
- StyleRule0: function StyleRule0(t0, t1, t2, t3) {
- var _ = this;
- _.selector = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- CssStylesheet0: function CssStylesheet0(t0, t1) {
- this.children = t0;
- this.span = t1;
- },
- ModifiableCssStylesheet$0(span) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- return new A.ModifiableCssStylesheet0(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
- var _ = this;
- _.span = t0;
- _.children = t1;
- _._node$_children = t2;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- StylesheetParser0: function StylesheetParser0() {
- },
- StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
- this.$this = t0;
- },
- StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
- },
- StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
- this.$this = t0;
- this.production = t1;
- this.T = t2;
- },
- StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0, t1) {
- this.$this = t0;
- this.requireParens = t1;
- },
- StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
- this.declaration = t0;
- },
- StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.wasInStyleRule = t2;
- _.start = t3;
- },
- StylesheetParser__tryDeclarationChildren_closure0: function StylesheetParser__tryDeclarationChildren_closure0(t0, t1) {
- this.name = t0;
- this.value = t1;
- },
- StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
- this.query = t0;
- },
- StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
- },
- StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.wasInControlDirective = t1;
- _.variables = t2;
- _.list = t3;
- },
- StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
- this.name = t0;
- this.$arguments = t1;
- this.precedingComment = t2;
- },
- StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.wasInControlDirective = t2;
- _.variable = t3;
- _.from = t4;
- _.to = t5;
- },
- StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
- this.$this = t0;
- this.variables = t1;
- this.identifiers = t2;
- },
- StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
- this.contentArguments_ = t0;
- },
- StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
- this.query = t0;
- },
- StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.$this = t0;
- _.name = t1;
- _.$arguments = t2;
- _.precedingComment = t3;
- },
- StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.name = t2;
- _.value = t3;
- },
- StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
- this.condition = t0;
- },
- StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
- this.$this = t0;
- this.wasInControlDirective = t1;
- this.condition = t2;
- },
- StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
- this._box_0 = t0;
- this.name = t1;
- },
- StylesheetParser__expression_resetState0: function StylesheetParser__expression_resetState0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.start = t2;
- },
- StylesheetParser__expression_resolveOneOperation0: function StylesheetParser__expression_resolveOneOperation0(t0, t1) {
- this._box_0 = t0;
- this.$this = t1;
- },
- StylesheetParser__expression_resolveOperations0: function StylesheetParser__expression_resolveOperations0(t0, t1) {
- this._box_0 = t0;
- this.resolveOneOperation = t1;
- },
- StylesheetParser__expression_addSingleExpression0: function StylesheetParser__expression_addSingleExpression0(t0, t1, t2, t3) {
- var _ = this;
- _._box_0 = t0;
- _.$this = t1;
- _.resetState = t2;
- _.resolveOperations = t3;
- },
- StylesheetParser__expression_addOperator0: function StylesheetParser__expression_addOperator0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.resolveOneOperation = t2;
- },
- StylesheetParser__expression_resolveSpaceExpressions0: function StylesheetParser__expression_resolveSpaceExpressions0(t0, t1, t2) {
- this._box_0 = t0;
- this.$this = t1;
- this.resolveOperations = t2;
- },
- StylesheetParser_expressionUntilComma_closure0: function StylesheetParser_expressionUntilComma_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser__isHexColor_closure0: function StylesheetParser__isHexColor_closure0() {
- },
- StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
- },
- StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
- },
- StylesheetParser_namespacedExpression_closure0: function StylesheetParser_namespacedExpression_closure0(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- StylesheetParser_trySpecialFunction_closure0: function StylesheetParser_trySpecialFunction_closure0() {
- },
- StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
- this.$this = t0;
- },
- StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
- this.$this = t0;
- this.start = t1;
- },
- Stylesheet$internal0(children, span, plainCss) {
- var t1 = A._setArrayType([], type$.JSArray_UseRule_2),
- t2 = A._setArrayType([], type$.JSArray_ForwardRule_2),
- t3 = A.List_List$unmodifiable(children, type$.Statement_2),
- t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure0());
- t1 = new A.Stylesheet0(span, plainCss, t1, t2, t3, t4);
- t1.Stylesheet$internal$3$plainCss0(children, span, plainCss);
- return t1;
- },
- Stylesheet_Stylesheet$parse0(contents, syntax, logger, url) {
- var error, stackTrace, url0, t1, exception, t2;
- try {
- switch (syntax) {
- case B.Syntax_Sass_sass0:
- t1 = A.SpanScanner$(contents, url);
- t1 = new A.SassParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, logger, null).parse$0();
- return t1;
- case B.Syntax_SCSS_scss0:
- t1 = A.ScssParser$0(contents, logger, url).parse$0();
- return t1;
- case B.Syntax_CSS_css0:
- t1 = A.SpanScanner$(contents, url);
- t1 = new A.CssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), t1, logger, null).parse$0();
- return t1;
- default:
- t1 = A.ArgumentError$("Unknown syntax " + syntax.toString$0(0) + ".", null);
- throw A.wrapException(t1);
- }
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
- url0 = t1.get$sourceUrl(t1);
- if (url0 == null || J.toString$0$(url0) === "stdin")
- throw exception;
- t1 = type$.Uri;
- throw A.wrapException(A.throwWithTrace0(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)), error, stackTrace));
- } else
- throw exception;
- }
- },
- Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.span = t0;
- _.plainCss = t1;
- _._stylesheet1$_uses = t2;
- _._stylesheet1$_forwards = t3;
- _.children = t4;
- _.hasDeclarations = t5;
- },
- SupportsExpression0: function SupportsExpression0(t0) {
- this.condition = t0;
- },
- ModifiableCssSupportsRule$0(condition, span) {
- var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- return new A.ModifiableCssSupportsRule0(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
- },
- ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _._node$_children = t3;
- _._node$_indexInParent = _._node$_parent = null;
- _.isGroupEnd = false;
- },
- SupportsRule$0(condition, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.SupportsRule0(condition, span, t1, t2);
- },
- SupportsRule0: function SupportsRule0(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- JSToDartImporter: function JSToDartImporter(t0, t1, t2) {
- this._sync$_canonicalize = t0;
- this._sync$_load = t1;
- this._sync$_nonCanonicalSchemes = t2;
- },
- JSToDartImporter_canonicalize_closure: function JSToDartImporter_canonicalize_closure(t0, t1) {
- this.$this = t0;
- this.url = t1;
- },
- JSToDartImporter_load_closure: function JSToDartImporter_load_closure(t0, t1) {
- this.$this = t0;
- this.url = t1;
- },
- Syntax_forPath0(path) {
- var t1,
- _0_0 = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
- $label0$0: {
- if (".sass" === _0_0) {
- t1 = B.Syntax_Sass_sass0;
- break $label0$0;
- }
- if (".css" === _0_0) {
- t1 = B.Syntax_CSS_css0;
- break $label0$0;
- }
- t1 = B.Syntax_SCSS_scss0;
- break $label0$0;
- }
- return t1;
- },
- Syntax0: function Syntax0(t0, t1) {
- this._syntax0$_name = t0;
- this._name = t1;
- },
- TypeSelector0: function TypeSelector0(t0, t1) {
- this.name = t0;
- this.span = t1;
- },
- Types: function Types() {
- },
- UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) {
- this.operator = t0;
- this.operand = t1;
- this.span = t2;
- },
- UnaryOperator0: function UnaryOperator0(t0, t1, t2) {
- this.name = t0;
- this.operator = t1;
- this._name = t2;
- },
- UnitlessSassNumber0: function UnitlessSassNumber0(t0, t1) {
- this._number1$_value = t0;
- this.hashCache = null;
- this.asSlash = t1;
- },
- UniversalSelector0: function UniversalSelector0(t0, t1) {
- this.namespace = t0;
- this.span = t1;
- },
- UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) {
- this._unprefixed_map_view0$_map = t0;
- this._unprefixed_map_view0$_prefix = t1;
- this.$ti = t2;
- },
- _UnprefixedKeys0: function _UnprefixedKeys0(t0) {
- this._unprefixed_map_view0$_view = t0;
- },
- _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) {
- this.$this = t0;
- },
- _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) {
- this.$this = t0;
- },
- JSUrl0: function JSUrl0() {
- },
- UseRule0: function UseRule0(t0, t1, t2, t3) {
- var _ = this;
- _.url = t0;
- _.namespace = t1;
- _.configuration = t2;
- _.span = t3;
- },
- UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2, t3) {
- var _ = this;
- _.declaration = t0;
- _.environment = t1;
- _.inDependency = t2;
- _.$ti = t3;
- },
- fromImport0() {
- var t1 = type$.nullable_CanonicalizeContext_2._as($.Zone__current.$index(0, B.Symbol__canonicalizeContext));
- t1 = t1 == null ? null : t1._canonicalize_context$_fromImport;
- return t1 === true;
- },
- canonicalizeContext0() {
- var t1,
- _0_0 = $.Zone__current.$index(0, B.Symbol__canonicalizeContext);
- $label0$0: {
- if (_0_0 == null)
- A.throwExpression(A.StateError$(string$.canoni));
- if (_0_0 instanceof A.CanonicalizeContext0) {
- t1 = _0_0;
- break $label0$0;
- }
- t1 = A.throwExpression(A.StateError$(string$.Unexpe + A.S(_0_0) + "."));
- }
- return t1;
- },
- inImportRule(callback, $T) {
- var t1,
- _0_0 = $.Zone__current.$index(0, B.Symbol__canonicalizeContext);
- $label0$0: {
- if (_0_0 == null) {
- t1 = type$.nullable_Object;
- t1 = A.runZoned(callback, A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, new A.CanonicalizeContext0(true, null)], t1, t1), $T);
- break $label0$0;
- }
- if (_0_0 instanceof A.CanonicalizeContext0) {
- t1 = _0_0.withFromImport$2(true, callback);
- break $label0$0;
- }
- t1 = A.throwExpression(A.StateError$(string$.Unexpe + A.S(_0_0) + "."));
- }
- return t1;
- },
- resolveImportPath0(path) {
- var t1,
- extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
- if (extension === ".sass" || extension === ".scss" || extension === ".css") {
- t1 = A.fromImport0() ? new A.resolveImportPath_closure1(path, extension).call$0() : null;
- return t1 == null ? A._exactlyOne0(A._tryPath0(path)) : t1;
- }
- t1 = A.fromImport0() ? new A.resolveImportPath_closure2(path).call$0() : null;
- if (t1 == null)
- t1 = A._exactlyOne0(A._tryPathWithExtensions0(path));
- return t1 == null ? A._tryPathAsDirectory0(path) : t1;
- },
- _tryPathWithExtensions0(path) {
- var result = A._tryPath0(path + ".sass");
- B.JSArray_methods.addAll$1(result, A._tryPath0(path + ".scss"));
- return result.length !== 0 ? result : A._tryPath0(path + ".css");
- },
- _tryPath0(path) {
- var t1 = $.$get$context(),
- partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null);
- t1 = A._setArrayType([], type$.JSArray_String);
- if (A.fileExists0(partial))
- t1.push(partial);
- if (A.fileExists0(path))
- t1.push(path);
- return t1;
- },
- _tryPathAsDirectory0(path) {
- var t1;
- if (!A.dirExists0(path))
- return null;
- t1 = A.fromImport0() ? new A._tryPathAsDirectory_closure0(path).call$0() : null;
- return t1 == null ? A._exactlyOne0(A._tryPathWithExtensions0(A.join(path, "index", null))) : t1;
- },
- _exactlyOne0(paths) {
- var _0_1, t1, path;
- $label0$0: {
- _0_1 = paths.length;
- if (_0_1 <= 0) {
- t1 = null;
- break $label0$0;
- }
- if (_0_1 === 1) {
- path = paths[0];
- t1 = path;
- break $label0$0;
- }
- t1 = A.throwExpression(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure0(), type$.String).join$1(0, "\n"));
- }
- return t1;
- },
- resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) {
- this.path = t0;
- this.extension = t1;
- },
- resolveImportPath_closure2: function resolveImportPath_closure2(t0) {
- this.path = t0;
- },
- _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) {
- this.path = t0;
- },
- _exactlyOne_closure0: function _exactlyOne_closure0() {
- },
- jsThrow(error) {
- return type$.Never._as($.$get$_jsThrow().call$1(error));
- },
- attachJsStack(error, trace) {
- var traceString = trace.toString$0(0),
- firstRealLine = B.JSString_methods.indexOf$1(traceString, "\n at");
- if (firstRealLine !== -1)
- traceString = B.JSString_methods.substring$1(traceString, firstRealLine + 1);
- error.stack = "Error: " + A.S(J.get$message$x(error)) + "\n" + traceString;
- },
- jsForEach(object, callback) {
- var t1, t2;
- for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- callback.call$2(t2, object[t2]);
- }
- },
- jsType(value) {
- var typeOf = A._asString(new self.Function("value", "return typeof value").call$1(value));
- return typeOf !== "object" ? typeOf : A._asString(new self.Function("value", ' if (value && value.constructor && value.constructor.name) {\n return value.constructor.name;\n }\n return "object";\n ').call$1(value));
- },
- defineGetter(object, $name, get, value) {
- self.Object.defineProperty(object, $name, get == null ? {value: value, enumerable: false} : {get: A.allowInteropCaptureThis(get), enumerable: false});
- },
- allowInteropNamed($name, $function) {
- $function = A.allowInterop($function);
- A.defineGetter($function, "name", null, $name);
- A._hideDartProperties($function);
- return $function;
- },
- allowInteropCaptureThisNamed($name, $function) {
- $function = A.allowInteropCaptureThis($function);
- A.defineGetter($function, "name", null, $name);
- A._hideDartProperties($function);
- return $function;
- },
- _hideDartProperties(object) {
- var t1, t2, t3, t4;
- for (t1 = J.cast$1$0$ax(self.Object.getOwnPropertyNames(object), type$.String), t2 = A._instanceType(t1), t1 = new A.ListIterator(t1, t1.get$length(t1), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- if (B.JSString_methods.startsWith$1(t3, "_")) {
- t4 = {value: object[t3], enumerable: false};
- self.Object.defineProperty(object, t3, t4);
- }
- }
- },
- futureToPromise0(future) {
- return new self.Promise(A.allowInterop(new A.futureToPromise_closure0(future)));
- },
- jsToDartUrl(url) {
- return A.Uri_parse(J.toString$0$(url));
- },
- dartToJSUrl(url) {
- return new self.URL(url.toString$0(0));
- },
- toJSArray(iterable) {
- var t1, t2,
- array = new self.Array();
- for (t1 = J.get$iterator$ax(iterable), t2 = J.getInterceptor$x(array); t1.moveNext$0();)
- t2.push$1(array, t1.get$current(t1));
- return array;
- },
- objectToMap(object) {
- var map = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.nullable_Object);
- A.jsForEach(object, new A.objectToMap_closure(map));
- return map;
- },
- jsToDartSeparator(separator) {
- var t1;
- $label0$0: {
- if (" " === separator) {
- t1 = B.ListSeparator_nbm0;
- break $label0$0;
- }
- if ("," === separator) {
- t1 = B.ListSeparator_ECn0;
- break $label0$0;
- }
- if ("/" === separator) {
- t1 = B.ListSeparator_cQA0;
- break $label0$0;
- }
- if (separator == null) {
- t1 = B.ListSeparator_undecided_null_undecided0;
- break $label0$0;
- }
- t1 = A.jsThrow(new self.Error('Unknown separator "' + separator + '".'));
- }
- return t1;
- },
- parseSyntax(syntax) {
- var t1;
- $label0$0: {
- if (syntax == null || "scss" === syntax) {
- t1 = B.Syntax_SCSS_scss0;
- break $label0$0;
- }
- if ("indented" === syntax) {
- t1 = B.Syntax_Sass_sass0;
- break $label0$0;
- }
- if ("css" === syntax) {
- t1 = B.Syntax_CSS_css0;
- break $label0$0;
- }
- t1 = A.jsThrow(new self.Error('Unknown syntax "' + A.S(syntax) + '".'));
- }
- return t1;
- },
- entrypointFilename() {
- var _1_0, _1_5_isSet, _1_5, t2, path,
- t1 = self.require.main,
- _0_0 = t1 == null ? null : J.get$filename$x(t1);
- if (_0_0 != null)
- return _0_0;
- else {
- _1_0 = J.get$argv$x(self.process);
- t1 = J.getInterceptor$asx(_1_0);
- _1_5_isSet = t1.get$length(_1_0) >= 2;
- if (_1_5_isSet) {
- _1_5 = t1.$index(_1_0, 1);
- t2 = typeof _1_5 == "string";
- } else {
- _1_5 = null;
- t2 = false;
- }
- if (t2) {
- path = A._asString(_1_5_isSet ? _1_5 : t1.$index(_1_0, 1));
- return J.resolve$1$x(J.createRequire$1$x(self.nodeModule, path), path);
- } else
- return null;
- }
- },
- _PropertyDescriptor0: function _PropertyDescriptor0() {
- },
- futureToPromise_closure0: function futureToPromise_closure0(t0) {
- this.future = t0;
- },
- futureToPromise__closure0: function futureToPromise__closure0(t0) {
- this.resolve = t0;
- },
- futureToPromise__closure1: function futureToPromise__closure1(t0) {
- this.reject = t0;
- },
- objectToMap_closure: function objectToMap_closure(t0) {
- this.map = t0;
- },
- _RequireMain0: function _RequireMain0() {
- },
- toSentence0(iter, conjunction) {
- if (iter.get$length(iter) === 1)
- return J.toString$0$(iter.get$first(iter));
- return A.IterableExtension_get_exceptLast0(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter.get$last(iter)));
- },
- indent0(string, indentation) {
- return new A.MappedListIterable(A._setArrayType(string.split("\n"), type$.JSArray_String), new A.indent_closure0(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
- },
- pluralize0($name, number, plural) {
- if (number === 1)
- return $name;
- if (plural != null)
- return plural;
- return $name + "s";
- },
- trimAscii0(string, excludeEscape) {
- var t1,
- start = A._firstNonWhitespace0(string);
- if (start == null)
- t1 = "";
- else {
- t1 = A._lastNonWhitespace0(string, true);
- t1.toString;
- t1 = B.JSString_methods.substring$2(string, start, t1 + 1);
- }
- return t1;
- },
- trimAsciiRight0(string, excludeEscape) {
- var end = A._lastNonWhitespace0(string, excludeEscape);
- return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1);
- },
- _firstNonWhitespace0(string) {
- var t1, i, t2;
- for (t1 = string.length, i = 0; i < t1; ++i) {
- t2 = string.charCodeAt(i);
- if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
- return i;
- }
- return null;
- },
- _lastNonWhitespace0(string, excludeEscape) {
- var i, i0, codeUnit;
- for (i = string.length - 1, i0 = i; i0 >= 0; --i0) {
- codeUnit = string.charCodeAt(i0);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
- if (excludeEscape && i0 !== 0 && i0 !== i && codeUnit === 92)
- return i0 + 1;
- else
- return i0;
- }
- return null;
- },
- isPublic0(member) {
- var start = member.charCodeAt(0);
- return start !== 45 && start !== 95;
- },
- flattenVertically0(iterable, $T) {
- var result,
- t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"),
- queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure1($T), t1), true, t1._eval$1("ListIterable.E"));
- if (queues.length === 1)
- return B.JSArray_methods.get$first(queues);
- result = A._setArrayType([], $T._eval$1("JSArray<0>"));
- for (; queues.length !== 0;) {
- if (!!queues.fixed$length)
- A.throwExpression(A.UnsupportedError$("removeWhere"));
- B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure2(result, $T), true);
- }
- return result;
- },
- codepointIndexToCodeUnitIndex0(string, codepointIndex) {
- var codeUnitIndex, i, codeUnitIndex0;
- for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
- codeUnitIndex0 = codeUnitIndex + 1;
- codeUnitIndex = string.charCodeAt(codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0;
- }
- return codeUnitIndex;
- },
- codeUnitIndexToCodepointIndex0(string, codeUnitIndex) {
- var codepointIndex, i;
- for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (string.charCodeAt(i) >>> 10 === 54 ? i + 1 : i) + 1)
- ++codepointIndex;
- return codepointIndex;
- },
- frameForSpan0(span, member, url) {
- var t2, t3,
- t1 = url == null ? span.get$sourceUrl(span) : url;
- if (t1 == null)
- t1 = $.$get$_noSourceUrl0();
- t2 = span.get$start(span);
- t2 = t2.file.getLine$1(t2.offset);
- t3 = span.get$start(span);
- return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
- },
- declarationName0(span) {
- var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
- return A.trimAsciiRight0(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false);
- },
- unvendor0($name) {
- var i,
- t1 = $name.length;
- if (t1 < 2)
- return $name;
- if ($name.charCodeAt(0) !== 45)
- return $name;
- if ($name.charCodeAt(1) === 45)
- return $name;
- for (i = 2; i < t1; ++i)
- if ($name.charCodeAt(i) === 45)
- return B.JSString_methods.substring$1($name, i + 1);
- return $name;
- },
- equalsIgnoreCase0(string1, string2) {
- var t1, i;
- if (string1 === string2)
- return true;
- if (string1 == null)
- return false;
- t1 = string1.length;
- if (t1 !== string2.length)
- return false;
- for (i = 0; i < t1; ++i)
- if (!A.characterEqualsIgnoreCase0(string1.charCodeAt(i), string2.charCodeAt(i)))
- return false;
- return true;
- },
- startsWithIgnoreCase0(string, prefix) {
- var i,
- t1 = prefix.length;
- if (string.length < t1)
- return false;
- for (i = 0; i < t1; ++i)
- if (!A.characterEqualsIgnoreCase0(string.charCodeAt(i), prefix.charCodeAt(i)))
- return false;
- return true;
- },
- mapInPlace0(list, $function) {
- var i;
- for (i = 0; i < list.length; ++i)
- list[i] = $function.call$1(list[i]);
- },
- longestCommonSubsequence0(list1, list2, select, $T) {
- var t1, _i, selections, i, i0, j, selection, j0,
- _length = list1.get$length(0) + 1,
- lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int);
- for (t1 = type$.int, _i = 0; _i < _length; ++_i)
- lengths[_i] = A.List_List$filled(((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0) + 1, 0, false, t1);
- _length = list1.get$length(0);
- selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>"));
- for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i)
- selections[_i] = A.List_List$filled((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0, null, false, t1);
- for (i = 0; i < (list1._queue_list$_tail - list1._queue_list$_head & J.get$length$asx(list1._queue_list$_table) - 1) >>> 0; i = i0)
- for (i0 = i + 1, j = 0; j < (list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0; j = j0) {
- selection = select.call$2(list1.$index(0, i), list2.$index(0, j));
- selections[i][j] = selection;
- t1 = lengths[i0];
- j0 = j + 1;
- t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1;
- }
- return new A.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(list1.get$length(0) - 1, list2.get$length(0) - 1);
- },
- removeFirstWhere0(list, test, orElse) {
- var i;
- for (i = 0; i < list.length; ++i) {
- if (!test.call$1(list[i]))
- continue;
- B.JSArray_methods.removeAt$1(list, i);
- return;
- }
- orElse.call$0();
- },
- mapAddAll20(destination, source, K1, K2, $V) {
- source.forEach$1(0, new A.mapAddAll2_closure0(destination, K1, K2, $V));
- },
- setAll0(map, keys, value) {
- var t1;
- for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
- map.$indexSet(0, t1.get$current(t1), value);
- },
- rotateSlice0(list, start, end) {
- var i, next,
- element = list.$index(0, end - 1);
- for (i = start; i < end; ++i, element = next) {
- next = list.$index(0, i);
- list.$indexSet(0, i, element);
- }
- },
- mapAsync0(iterable, callback, $E, $F) {
- return A.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
- },
- mapAsync$body0(iterable, callback, $E, $F, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t2, _i, t1, $async$temp1;
- var $async$mapAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = A._setArrayType([], $F._eval$1("JSArray<0>"));
- t2 = iterable.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 6;
- return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$mapAsync0, $async$completer);
- },
- putIfAbsentAsync0(map, key, ifAbsent, $K, $V) {
- return A.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V);
- },
- putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, t1, value;
- var $async$putIfAbsentAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (map.containsKey$1(key)) {
- t1 = map.$index(0, key);
- $async$returnValue = t1 == null ? $V._as(t1) : t1;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0);
- case 3:
- // returning from await.
- value = $async$result;
- map.$indexSet(0, key, value);
- $async$returnValue = value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$putIfAbsentAsync0, $async$completer);
- },
- copyMapOfMap0(map, K1, K2, $V) {
- var t3, key, child,
- t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"),
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(K1, t1);
- for (t1 = A.MapExtensions_get_pairs0(map, K1, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- key = t3._0;
- child = t3._1;
- t3 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V);
- t3.addAll$1(0, child);
- t2.$indexSet(0, key, t3);
- }
- return t2;
- },
- copyMapOfList0(map, $K, $E) {
- var t3,
- t1 = $E._eval$1("List<0>"),
- t2 = A.LinkedHashMap_LinkedHashMap$_empty($K, t1);
- for (t1 = A.MapExtensions_get_pairs0(map, $K, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- t2.$indexSet(0, t3._0, J.toList$0$ax(t3._1));
- }
- return t2;
- },
- consumeEscapedCharacter0(scanner) {
- var _1_0, value, i, next, t1;
- scanner.expectChar$1(92);
- _1_0 = scanner.peekChar$0();
- if (_1_0 == null)
- return 65533;
- if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12)
- scanner.error$1(0, "Expected escape sequence.");
- if (A.CharacterExtension_get_isHex0(_1_0)) {
- for (value = 0, i = 0; i < 6; ++i) {
- next = scanner.peekChar$0();
- if (next != null) {
- if (!(next >= 48 && next <= 57))
- if (!(next >= 97 && next <= 102))
- t1 = next >= 65 && next <= 70;
- else
- t1 = true;
- else
- t1 = true;
- t1 = !t1;
- } else
- t1 = true;
- if (t1)
- break;
- value = (value << 4 >>> 0) + A.asHex0(scanner.readChar$0());
- }
- t1 = scanner.peekChar$0();
- if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)
- scanner.readChar$0();
- $label0$1: {
- if (0 !== value)
- t1 = value >= 55296 && value <= 57343 || value >= 1114111;
- else
- t1 = true;
- if (t1) {
- t1 = 65533;
- break $label0$1;
- }
- t1 = value;
- break $label0$1;
- }
- return t1;
- }
- return scanner.readChar$0();
- },
- throwWithTrace0(error, originalError, trace) {
- var t1 = A.getTrace0(originalError);
- A.attachTrace0(error, t1 == null ? trace : t1);
- throw A.wrapException(error);
- },
- attachTrace0(error, trace) {
- var t1;
- if (typeof error == "string" || typeof error == "number" || A._isBool(error))
- return;
- if (trace.toString$0(0).length === 0)
- return;
- t1 = $.$get$_traces0();
- A.Expando__checkType(error);
- if (t1._jsWeakMap.get(error) == null)
- t1.$indexSet(0, error, trace);
- },
- getTrace0(error) {
- var t1;
- if (typeof error == "string" || typeof error == "number" || A._isBool(error))
- t1 = null;
- else {
- t1 = $.$get$_traces0();
- A.Expando__checkType(error);
- t1 = t1._jsWeakMap.get(error);
- }
- return t1;
- },
- parseSignature(signature, requireParens) {
- var error, stackTrace, t1, exception, t2;
- try {
- t1 = A.ScssParser$0(signature, null, null).parseSignature$1$requireParens(requireParens);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassFormatException_2._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error._span_exception$_message;
- t2 = J.get$span$z(error);
- A.throwWithTrace0(new A.SassFormatException0(B.Set_empty, 'Invalid signature "' + signature + '": ' + t1, t2), error, stackTrace);
- } else
- throw exception;
- }
- },
- indent_closure0: function indent_closure0(t0) {
- this.indentation = t0;
- },
- flattenVertically_closure1: function flattenVertically_closure1(t0) {
- this.T = t0;
- },
- flattenVertically_closure2: function flattenVertically_closure2(t0, t1) {
- this.result = t0;
- this.T = t1;
- },
- longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) {
- this.selections = t0;
- this.lengths = t1;
- this.T = t2;
- },
- mapAddAll2_closure0: function mapAddAll2_closure0(t0, t1, t2, t3) {
- var _ = this;
- _.destination = t0;
- _.K1 = t1;
- _.K2 = t2;
- _.V = t3;
- },
- CssValue0: function CssValue0(t0, t1, t2) {
- this.value = t0;
- this.span = t1;
- this.$ti = t2;
- },
- ValueExpression0: function ValueExpression0(t0, t1) {
- this.value = t0;
- this.span = t1;
- },
- valueClass_closure: function valueClass_closure() {
- },
- valueClass__closure: function valueClass__closure() {
- },
- valueClass__closure0: function valueClass__closure0() {
- },
- valueClass__closure1: function valueClass__closure1() {
- },
- valueClass__closure2: function valueClass__closure2() {
- },
- valueClass__closure3: function valueClass__closure3() {
- },
- valueClass__closure4: function valueClass__closure4() {
- },
- valueClass__closure5: function valueClass__closure5() {
- },
- valueClass__closure6: function valueClass__closure6() {
- },
- valueClass__closure7: function valueClass__closure7() {
- },
- valueClass__closure8: function valueClass__closure8() {
- },
- valueClass__closure9: function valueClass__closure9() {
- },
- valueClass__closure10: function valueClass__closure10() {
- },
- valueClass__closure11: function valueClass__closure11() {
- },
- valueClass__closure12: function valueClass__closure12() {
- },
- valueClass__closure13: function valueClass__closure13() {
- },
- valueClass__closure14: function valueClass__closure14() {
- },
- valueClass__closure15: function valueClass__closure15() {
- },
- valueClass__closure16: function valueClass__closure16() {
- },
- valueClass__closure17: function valueClass__closure17() {
- },
- valueClass__closure18: function valueClass__closure18() {
- },
- SassApiValue_assertSelector0(_this, allowParent, $name) {
- var error, stackTrace, t1, exception,
- string = _this._value$_selectorString$1($name);
- try {
- t1 = A.SelectorList_SelectorList$parse0(string, allowParent, null, null, false);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassFormatException_2._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
- A.throwWithTrace0(new A.SassScriptException0($name == null ? t1 : "$" + $name + ": " + t1), error, stackTrace);
- } else
- throw exception;
- }
- },
- SassApiValue_assertCompoundSelector0(_this, $name) {
- var error, stackTrace, t1, exception,
- allowParent = false,
- string = _this._value$_selectorString$1($name);
- try {
- t1 = A.SelectorParser$0(string, allowParent, null, null, false, null).parseCompoundSelector$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassFormatException_2._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
- A.throwWithTrace0(new A.SassScriptException0("$" + $name + ": " + t1), error, stackTrace);
- } else
- throw exception;
- }
- },
- Value0: function Value0() {
- },
- VariableExpression0: function VariableExpression0(t0, t1, t2) {
- this.namespace = t0;
- this.name = t1;
- this.span = t2;
- },
- VariableDeclaration$0($name, expression, span, comment, global, guarded, namespace) {
- if (namespace != null && global)
- A.throwExpression(A.ArgumentError$(string$.Other_, null));
- return new A.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
- },
- VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
- var _ = this;
- _.namespace = t0;
- _.name = t1;
- _.expression = t2;
- _.isGuarded = t3;
- _.isGlobal = t4;
- _.span = t5;
- },
- WarnRule0: function WarnRule0(t0, t1) {
- this.expression = t0;
- this.span = t1;
- },
- WhileRule$0(condition, children, span) {
- var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
- t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
- return new A.WhileRule0(condition, span, t1, t2);
- },
- WhileRule0: function WhileRule0(t0, t1, t2, t3) {
- var _ = this;
- _.condition = t0;
- _.span = t1;
- _.children = t2;
- _.hasDeclarations = t3;
- },
- AsyncCallable_AsyncCallable$fromSignature(signature, callback, requireParens) {
- var _0_0 = A.parseSignature(signature, requireParens);
- return new A.AsyncBuiltInCallable0(_0_0._0, _0_0._1, callback, false);
- },
- Callable_Callable$fromSignature(signature, callback, requireParens) {
- var _0_0 = A.parseSignature(signature, requireParens);
- return new A.BuiltInCallable0(_0_0._0, A._setArrayType([new A._Record_2(_0_0._1, callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), false);
- },
- printString(string) {
- if (typeof dartPrint == "function") {
- dartPrint(string);
- return;
- }
- if (typeof console == "object" && typeof console.log != "undefined") {
- console.log(string);
- return;
- }
- if (typeof print == "function") {
- print(string);
- return;
- }
- throw "Unable to print message: " + String(string);
- },
- mergeMaps(map1, map2, $K, $V) {
- var result = A.LinkedHashMap_LinkedHashMap$of(map1, $K, $V);
- result.addAll$1(0, map2);
- return result;
- },
- groupBy(values, key, $S, $T) {
- var t1, t2, _i, element, t3, t4,
- map = A.LinkedHashMap_LinkedHashMap$_empty($T, $S._eval$1("List<0>"));
- for (t1 = values.length, t2 = $S._eval$1("JSArray<0>"), _i = 0; _i < values.length; values.length === t1 || (0, A.throwConcurrentModificationError)(values), ++_i) {
- element = values[_i];
- t3 = key.call$1(element);
- t4 = map.$index(0, t3);
- if (t4 == null) {
- t4 = A._setArrayType([], t2);
- map.$indexSet(0, t3, t4);
- t3 = t4;
- } else
- t3 = t4;
- J.add$1$ax(t3, element);
- }
- return map;
- },
- minBy(values, orderBy) {
- var t1, t2, minValue, minOrderBy, element, elementOrderBy;
- for (t1 = values.$ti, t1 = t1._eval$1("@<1>")._bind$1(t1._rest[1]), t2 = new A.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f, t1._eval$1("MappedIterator<1,2>")), t1 = t1._rest[1], minValue = null, minOrderBy = null; t2.moveNext$0();) {
- element = t2.__internal$_current;
- if (element == null)
- element = t1._as(element);
- elementOrderBy = orderBy.call$1(element);
- if (minOrderBy == null || A.defaultCompare(elementOrderBy, minOrderBy) < 0) {
- minOrderBy = elementOrderBy;
- minValue = element;
- }
- }
- return minValue;
- },
- IterableExtension_firstWhereOrNull(_this, test) {
- var t1, element;
- for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
- element = t1.get$current(t1);
- if (test.call$1(element))
- return element;
- }
- return null;
- },
- IterableExtension_get_firstOrNull(_this) {
- var iterator = J.get$iterator$ax(_this);
- if (iterator.moveNext$0())
- return iterator.get$current(iterator);
- return null;
- },
- IterableExtension_get_lastOrNull(_this) {
- if (_this.get$length(0) === 0)
- return null;
- return _this.get$last(_this);
- },
- IterableExtension_get_singleOrNull(_this) {
- var result,
- iterator = J.get$iterator$ax(_this);
- if (iterator.moveNext$0()) {
- result = iterator.get$current(iterator);
- if (!iterator.moveNext$0())
- return result;
- }
- return null;
- },
- IterableNullableExtension_whereNotNull(_this, $T) {
- return new A._SyncStarIterable(A.IterableNullableExtension_whereNotNull$body(_this, $T), $T._eval$1("_SyncStarIterable<0>"));
- },
- IterableNullableExtension_whereNotNull$body($async$_this, $async$$T) {
- return function() {
- var _this = $async$_this,
- $T = $async$$T;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, element;
- return function $async$IterableNullableExtension_whereNotNull($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.get$iterator$ax(_this);
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- element = t1.get$current(t1);
- $async$goto = element != null ? 4 : 5;
- break;
- case 4:
- // then
- $async$goto = 6;
- return $async$iterator._async$_current = element, 1;
- case 6:
- // after yield
- case 5:
- // join
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- IterableIntegerExtension_get_maxOrNull(_this) {
- var value, newValue,
- t1 = _this.$ti,
- iterator = new A.ListIterator(_this, _this.get$length(0), t1._eval$1("ListIterator<ListIterable.E>"));
- if (iterator.moveNext$0()) {
- value = iterator.__internal$_current;
- if (value == null)
- value = t1._eval$1("ListIterable.E")._as(value);
- for (t1 = t1._eval$1("ListIterable.E"); iterator.moveNext$0();) {
- newValue = iterator.__internal$_current;
- if (newValue == null)
- newValue = t1._as(newValue);
- if (newValue > value)
- value = newValue;
- }
- return value;
- }
- return null;
- },
- IterableIntegerExtension_get_max(_this) {
- var t1 = A.IterableIntegerExtension_get_maxOrNull(_this);
- return t1 == null ? A.throwExpression(A.StateError$("No element")) : t1;
- },
- IterableIntegerExtension_get_sum(_this) {
- var t1, t2, result, t3;
- for (t1 = _this.$ti, t1 = t1._eval$1("@<1>")._bind$1(t1._rest[1]), t2 = new A.MappedIterator(J.get$iterator$ax(_this.__internal$_iterable), _this._f, t1._eval$1("MappedIterator<1,2>")), t1 = t1._rest[1], result = 0; t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- result += t3 == null ? t1._as(t3) : t3;
- }
- return result;
- },
- ListExtensions_mapIndexed(_this, convert, $E, $R) {
- return new A._SyncStarIterable(A.ListExtensions_mapIndexed$body(_this, convert, $E, $R), $R._eval$1("_SyncStarIterable<0>"));
- },
- ListExtensions_mapIndexed$body($async$_this, $async$convert, $async$$E, $async$$R) {
- return function() {
- var _this = $async$_this,
- convert = $async$convert,
- $E = $async$$E,
- $R = $async$$R;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, index;
- return function $async$ListExtensions_mapIndexed($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = _this.length, index = 0;
- case 2:
- // for condition
- if (!(index < t1)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return $async$iterator._async$_current = convert.call$2(index, _this[index]), 1;
- case 5:
- // after yield
- case 3:
- // for update
- ++index;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- ListExtensions_elementAtOrNull(_this, index) {
- var t1 = J.getInterceptor$asx(_this);
- return index < t1.get$length(_this) ? t1.$index(_this, index) : null;
- },
- defaultCompare(value1, value2) {
- return J.compareTo$1$ns(type$.Comparable_nullable_Object._as(value1), value2);
- },
- current() {
- var exception, t1, path, lastIndex, uri = null;
- try {
- uri = A.Uri_base();
- } catch (exception) {
- if (type$.Exception._is(A.unwrapException(exception))) {
- t1 = $._current;
- if (t1 != null)
- return t1;
- throw exception;
- } else
- throw exception;
- }
- if (J.$eq$(uri, $._currentUriBase)) {
- t1 = $._current;
- t1.toString;
- return t1;
- }
- $._currentUriBase = uri;
- if ($.$get$Style_platform() === $.$get$Style_url())
- t1 = $._current = J.resolve$1$x(uri, ".").toString$0(0);
- else {
- path = uri.toFilePath$0();
- lastIndex = path.length - 1;
- t1 = $._current = lastIndex === 0 ? path : B.JSString_methods.substring$2(path, 0, lastIndex);
- }
- return t1;
- },
- absolute(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) {
- return $.$get$context().absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15);
- },
- join(part1, part2, part3) {
- var _null = null;
- return $.$get$context().join$16(0, part1, part2, part3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- },
- prettyUri(uri) {
- var t1 = $.$get$context();
- uri.toString;
- return t1.prettyUri$1(uri);
- },
- isAlphabetic(char) {
- var t1;
- if (!(char >= 65 && char <= 90))
- t1 = char >= 97 && char <= 122;
- else
- t1 = true;
- return t1;
- },
- driveLetterEnd(path, index) {
- var t2, t3, _null = null,
- t1 = path.length,
- index0 = index + 2;
- if (t1 < index0)
- return _null;
- if (!A.isAlphabetic(path.charCodeAt(index)))
- return _null;
- t2 = index + 1;
- if (path.charCodeAt(t2) !== 58) {
- t3 = index + 4;
- if (t1 < t3)
- return _null;
- if (B.JSString_methods.substring$2(path, t2, t3).toLowerCase() !== "%3a")
- return _null;
- index = index0;
- }
- t2 = index + 2;
- if (t1 === t2)
- return t2;
- if (path.charCodeAt(t2) !== 47)
- return _null;
- return index + 3;
- },
- main0(args) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- t1;
- var $async$main0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- A.printError("sass --embedded is unavailable in pure JS mode.");
- t1 = A.isNodeJs() ? self.process : null;
- if (t1 != null)
- J.set$exitCode$x(t1, 1);
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$main0, $async$completer);
- },
- EvaluationContext_currentOrNull() {
- var t1,
- _0_0 = $.Zone__current.$index(0, B.Symbol__evaluationContext);
- $label0$0: {
- if (type$.EvaluationContext._is(_0_0)) {
- t1 = _0_0;
- break $label0$0;
- }
- t1 = null;
- break $label0$0;
- }
- return t1;
- },
- warn(message) {
- var t1,
- _0_0 = A.EvaluationContext_currentOrNull();
- $label0$0: {
- if (_0_0 != null) {
- t1 = _0_0.warn$2(0, message, null);
- break $label0$0;
- }
- t1 = B.StderrLogger_false.warn$1(0, message);
- break $label0$0;
- }
- return t1;
- },
- warnForDeprecation(message, deprecation) {
- var t1,
- _0_0 = A.EvaluationContext_currentOrNull();
- $label0$0: {
- if (_0_0 != null) {
- t1 = _0_0.warn$2(0, message, deprecation);
- break $label0$0;
- }
- t1 = A.WarnForDeprecation_warnForDeprecation(B.StderrLogger_false, deprecation, message, null, null);
- break $label0$0;
- }
- return t1;
- },
- compileStylesheets(options, graph, sourcesToDestinations, ifModified) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, t2, _1_4, source, t3, _i, t4, printedError, errorWithStackTrace, code, error, stackTrace, buffer, t1, $async$temp1;
- var $async$compileStylesheets = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.nullable_String;
- t1 = A.List_List$of(A.MapExtensions_get_pairs(sourcesToDestinations, t1, t1), true, type$.Record_2_nullable_String_and_nullable_String);
- t2 = t1.length;
- $async$goto = t2 === 1 ? 4 : 5;
- break;
- case 4:
- // then
- _1_4 = t1[0];
- source = _1_4._0;
- $async$temp1 = A;
- $async$goto = 6;
- return A._asyncAwait(A.compileStylesheet(options, graph, source, _1_4._1, ifModified), $async$compileStylesheets);
- case 6:
- // returning from await.
- t1 = $async$temp1._setArrayType([$async$result], type$.JSArray_nullable_Record_3_int_and_String_and_nullable_String);
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 5:
- // join
- t3 = A._setArrayType([], type$.JSArray_Future_nullable_Record_3_int_and_String_and_nullable_String);
- for (_i = 0; _i < t2; ++_i) {
- t4 = t1[_i];
- t3.push(A.compileStylesheet(options, graph, t4._0, t4._1, ifModified));
- }
- $async$goto = 7;
- return A._asyncAwait(A.Future_wait(t3, A._asBool(options._options.$index(0, "stop-on-error")), type$.nullable_Record_3_int_and_String_and_nullable_String), $async$compileStylesheets);
- case 7:
- // returning from await.
- t1 = $async$result;
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 3:
- // break $label0$0
- for (t1 = J.get$iterator$ax(t1), printedError = false; t1.moveNext$0();) {
- errorWithStackTrace = t1.get$current(t1);
- if (errorWithStackTrace == null)
- continue;
- code = errorWithStackTrace._0;
- error = errorWithStackTrace._1;
- stackTrace = errorWithStackTrace._2;
- t2 = self.process;
- if (t2 == null)
- t2 = null;
- else {
- t2 = J.get$release$x(t2);
- t2 = t2 == null ? null : J.get$name$x(t2);
- }
- t2 = J.$eq$(t2, "node") ? self.process : null;
- t2 = t2 == null ? null : J.get$exitCode$x(t2);
- if (t2 == null)
- t2 = 0;
- t2 = Math.max(t2, code);
- t3 = self.process;
- if (t3 == null)
- t3 = null;
- else {
- t3 = J.get$release$x(t3);
- t3 = t3 == null ? null : J.get$name$x(t3);
- }
- t3 = J.$eq$(t3, "node") ? self.process : null;
- if (t3 != null)
- J.set$exitCode$x(t3, t2);
- buffer = new A.StringBuffer("");
- t2 = (printedError ? buffer._contents = "" + "\n" : "") + error;
- buffer._contents = t2;
- if (stackTrace != null) {
- t2 += "\n";
- buffer._contents = t2;
- t2 += "\n";
- buffer._contents = t2;
- buffer._contents = t2 + stackTrace;
- }
- A.printError(buffer);
- printedError = true;
- }
- $async$returnValue = !printedError;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$compileStylesheets, $async$completer);
- },
- repl(options) {
- return A.repl$body(options);
- },
- repl$body(options) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$handler = 1, $async$currentError, $async$next = [], repl, trackingLogger, logger, evaluator, line, declaration, error, stackTrace, t4, t5, t6, t7, t8, line0, toZone, exception, t1, t2, t3, repl0;
- var $async$repl = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = A._setArrayType([], type$.JSArray_String);
- t2 = B.JSString_methods.$mul(" ", 3);
- t3 = $.$get$alwaysValid();
- repl0 = new A.Repl(">> ", t2, t3, t1);
- repl0.__Repl__adapter_A = new A.ReplAdapter(repl0);
- repl = repl0;
- t1 = options._options;
- trackingLogger = new A.TrackingLogger(A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()));
- t2 = options.get$silenceDeprecations(0);
- logger = A.DeprecationProcessingLogger$(trackingLogger, options.get$fatalDeprecations(0), options.get$futureDeprecations(0), !A._asBool(t1.$index(0, "verbose")), t2);
- t2 = $.$get$FilesystemImporter_cwd();
- evaluator = new A.Evaluator(A._EvaluateVisitor$(null, A.ImportCache$(options.get$pkgImporters(), type$.List_String._as(t1.$index(0, "load-path")), logger), logger, null, false, false), t2);
- t2 = repl.__Repl__adapter_A;
- t2 === $ && A.throwUnnamedLateFieldNI();
- t2 = new A._StreamIterator(A.checkNotNullable(t2.runAsync$0(), "stream", type$.Object));
- $async$handler = 2;
- t1 = type$.Expression, t3 = type$.String, t4 = type$.VariableDeclaration;
- case 5:
- // for condition
- $async$goto = 7;
- return A._asyncAwait(t2.moveNext$0(), $async$repl);
- case 7:
- // returning from await.
- if (!$async$result) {
- // goto after for
- $async$goto = 6;
- break;
- }
- line = t2.get$current(0);
- if (J.trim$0$s(line).length === 0) {
- // goto for condition
- $async$goto = 5;
- break;
- }
- try {
- if (J.startsWith$1$s(line, "@")) {
- t5 = evaluator;
- t6 = logger;
- t7 = A.SpanScanner$(line, null);
- if (t6 == null)
- t6 = B.StderrLogger_false;
- t6 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6, null).parseUseRule$0();
- t5._visitor.runStatement$2(t5._importer, t6);
- // goto for condition
- $async$goto = 5;
- break;
- }
- t5 = A.SpanScanner$(line, null);
- if (new A.Parser(t5, B.StderrLogger_false, null)._isVariableDeclarationLike$0()) {
- t5 = logger;
- t6 = A.SpanScanner$(line, null);
- if (t5 == null)
- t5 = B.StderrLogger_false;
- declaration = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t6, t5, null).parseVariableDeclaration$0();
- t5 = evaluator;
- t5._visitor.runStatement$2(t5._importer, declaration);
- t5 = evaluator;
- t6 = declaration.name;
- t7 = declaration.span;
- t8 = declaration.namespace;
- line0 = t5._visitor.runExpression$2(t5._importer, new A.VariableExpression(t8, t6, t7)).toString$0(0);
- toZone = $.printToZone;
- if (toZone == null)
- A.printString(line0);
- else
- toZone.call$1(line0);
- } else {
- t5 = evaluator;
- t6 = logger;
- t7 = A.SpanScanner$(line, null);
- if (t6 == null)
- t6 = B.StderrLogger_false;
- t6 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), t7, t6, null);
- t6 = t6._parseSingleProduction$1$1(t6.get$_expression(), t1);
- line0 = t5._visitor.runExpression$2(t5._importer, t6).toString$0(0);
- toZone = $.printToZone;
- if (toZone == null)
- A.printString(line0);
- else
- toZone.call$1(line0);
- }
- } catch (exception) {
- t5 = A.unwrapException(exception);
- if (t5 instanceof A.SassException) {
- error = t5;
- stackTrace = A.getTraceFromException(exception);
- t5 = error;
- t6 = typeof t5 != "string";
- if (!t6 || typeof t5 == "number" || A._isBool(t5))
- t5 = null;
- else {
- t7 = $.$get$_traces();
- if (A._isBool(t5) || typeof t5 == "number" || !t6 || t5 instanceof A._Record)
- A.Expando__badExpandoKey(t5);
- t5 = t7._jsWeakMap.get(t5);
- }
- if (t5 == null)
- t5 = stackTrace;
- A._logError(error, t5, line, repl, options, trackingLogger);
- } else
- throw exception;
- }
- // goto for condition
- $async$goto = 5;
- break;
- case 6:
- // after for
- $async$next.push(4);
- // goto finally
- $async$goto = 3;
- break;
- case 2:
- // uncaught
- $async$next = [1];
- case 3:
- // finally
- $async$handler = 1;
- $async$goto = 8;
- return A._asyncAwait(t2.cancel$0(), $async$repl);
- case 8:
- // returning from await.
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 4:
- // after finally
- // implicit return
- return A._asyncReturn(null, $async$completer);
- case 1:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$repl, $async$completer);
- },
- _logError(error, stackTrace, line, repl, options, logger) {
- var t2, spacesBeforeError, t3,
- t1 = A.SourceSpanException.prototype.get$span.call(error, 0);
- if (t1.get$sourceUrl(t1) == null)
- if (!A._asBool(options._options.$index(0, "quiet")))
- t1 = logger._emittedDebug || logger._emittedWarning;
- else
- t1 = false;
- else
- t1 = true;
- if (t1) {
- A.print(error.toString$1$color(0, options.get$color()));
- return;
- }
- t1 = options.get$color() ? "" + "\x1b[31m" : "";
- t2 = A.SourceSpanException.prototype.get$span.call(error, 0);
- t2 = t2.get$start(t2);
- spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
- if (options.get$color()) {
- t2 = A.SourceSpanException.prototype.get$span.call(error, 0);
- t2 = t2.get$start(t2);
- t2 = t2.file.getColumn$1(t2.offset) < line.length;
- } else
- t2 = false;
- if (t2)
- t1 = t1 + ("\x1b[1F\x1b[" + spacesBeforeError + "C") + (A.SourceSpanException.prototype.get$span.call(error, 0).get$text() + "\n");
- t2 = B.JSString_methods.$mul(" ", spacesBeforeError);
- t3 = A.SourceSpanException.prototype.get$span.call(error, 0);
- t3 = t1 + t2 + (B.JSString_methods.$mul("^", Math.max(1, t3.get$length(t3))) + "\n");
- t1 = options.get$color() ? t3 + "\x1b[0m" : t3;
- t1 += "Error: " + error._span_exception$_message + "\n";
- if (A._asBool(options._options.$index(0, "trace")))
- t1 += A.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
- A.print(B.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
- },
- CharacterExtension_get_isAlphabetic(_this) {
- var t1;
- if (!(_this >= 97 && _this <= 122))
- t1 = _this >= 65 && _this <= 90;
- else
- t1 = true;
- return t1;
- },
- CharacterExtension_get_isHex(_this) {
- var t1;
- if (!(_this >= 48 && _this <= 57))
- if (!(_this >= 97 && _this <= 102))
- t1 = _this >= 65 && _this <= 70;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- asHex(character) {
- var t1;
- $label0$0: {
- if (character <= 57) {
- t1 = character - 48;
- break $label0$0;
- }
- if (character <= 70) {
- t1 = 10 + character - 65;
- break $label0$0;
- }
- t1 = 10 + character - 97;
- break $label0$0;
- }
- return t1;
- },
- hexCharFor(number) {
- return number < 10 ? 48 + number : 87 + number;
- },
- opposite(character) {
- var t1;
- $label0$0: {
- if (40 === character) {
- t1 = 41;
- break $label0$0;
- }
- if (123 === character) {
- t1 = 125;
- break $label0$0;
- }
- if (91 === character) {
- t1 = 93;
- break $label0$0;
- }
- t1 = A.throwExpression(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null));
- }
- return t1;
- },
- characterEqualsIgnoreCase(character1, character2) {
- var upperCase1;
- if (character1 === character2)
- return true;
- if ((character1 ^ character2) >>> 0 !== 32)
- return false;
- upperCase1 = (character1 & 4294967263) >>> 0;
- return upperCase1 >= 65 && upperCase1 <= 90;
- },
- IterableExtension_search(_this, callback) {
- var t1, _0_0;
- for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
- _0_0 = callback.call$1(t1.get$current(t1));
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- IterableExtension_get_exceptLast(_this) {
- var t1 = J.getInterceptor$asx(_this),
- size = t1.get$length(_this) - 1;
- if (size < 0)
- throw A.wrapException(A.StateError$("Iterable may not be empty"));
- return t1.take$1(_this, size);
- },
- NullableExtension_andThen(_this, fn) {
- return _this == null ? null : fn.call$1(_this);
- },
- SetExtension_removeNull(_this, $T) {
- _this.remove$1(0, null);
- return A.Set_castFrom(_this, _this.get$_newSimilarSet(), A._instanceType(_this)._precomputed1, $T);
- },
- fuzzyEquals(number1, number2) {
- var t1;
- if (number1 === number2)
- return true;
- if (Math.abs(number1 - number2) <= $.$get$_epsilon()) {
- t1 = $.$get$_inverseEpsilon();
- t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
- } else
- t1 = false;
- return t1;
- },
- fuzzyHashCode(number) {
- if (!isFinite(number))
- return B.JSNumber_methods.get$hashCode(number);
- return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon()));
- },
- fuzzyLessThan(number1, number2) {
- return number1 < number2 && !A.fuzzyEquals(number1, number2);
- },
- fuzzyLessThanOrEquals(number1, number2) {
- return number1 < number2 || A.fuzzyEquals(number1, number2);
- },
- fuzzyGreaterThan(number1, number2) {
- return number1 > number2 && !A.fuzzyEquals(number1, number2);
- },
- fuzzyGreaterThanOrEquals(number1, number2) {
- return number1 > number2 || A.fuzzyEquals(number1, number2);
- },
- fuzzyAsInt(number) {
- var rounded;
- if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
- return null;
- rounded = B.JSNumber_methods.round$0(number);
- return A.fuzzyEquals(number, rounded) ? rounded : null;
- },
- fuzzyRound(number) {
- var t1;
- if (number > 0) {
- t1 = B.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 && !A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
- } else {
- t1 = B.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 || A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
- }
- },
- fuzzyCheckRange(number, min, max) {
- if (A.fuzzyEquals(number, min))
- return min;
- if (A.fuzzyEquals(number, max))
- return max;
- if (number > min && number < max)
- return number;
- return null;
- },
- fuzzyAssertRange(number, min, max, $name) {
- var result = A.fuzzyCheckRange(number, min, max);
- if (result != null)
- return result;
- throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
- },
- moduloLikeSass(num1, num2) {
- var result;
- if (num1 == 1 / 0 || num1 == -1 / 0)
- return 0 / 0;
- if (num2 == 1 / 0 || num2 == -1 / 0)
- return A.DoubleWithSignedZero_get_signIncludingZero(num1) === J.get$sign$in(num2) ? num1 : 0 / 0;
- if (num2 > 0)
- return B.JSNumber_methods.$mod(num1, num2);
- if (num2 === 0)
- return 0 / 0;
- result = B.JSNumber_methods.$mod(num1, num2);
- return result === 0 ? 0 : result + num2;
- },
- sqrt(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber(Math.sqrt(number._number$_value), null);
- },
- sin(number) {
- return A.SassNumber_SassNumber(Math.sin(number.coerceValueToUnit$2("rad", "number")), null);
- },
- cos(number) {
- return A.SassNumber_SassNumber(Math.cos(number.coerceValueToUnit$2("rad", "number")), null);
- },
- tan(number) {
- return A.SassNumber_SassNumber(Math.tan(number.coerceValueToUnit$2("rad", "number")), null);
- },
- atan(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber$withUnits(Math.atan(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- asin(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber$withUnits(Math.asin(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- acos(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber$withUnits(Math.acos(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- log(number, base) {
- if (base != null)
- return A.SassNumber_SassNumber(Math.log(number._number$_value) / Math.log(base._number$_value), null);
- return A.SassNumber_SassNumber(Math.log(number._number$_value), null);
- },
- pow0(base, exponent) {
- base.assertNoUnits$1("base");
- exponent.assertNoUnits$1("exponent");
- return A.SassNumber_SassNumber(Math.pow(base._number$_value, exponent._number$_value), null);
- },
- DoubleWithSignedZero_get_signIncludingZero(_this) {
- if (_this === -0.0)
- return -1;
- if (_this === 0)
- return 1;
- return J.get$sign$in(_this);
- },
- SpanExtensions_trimLeft(_this) {
- var t1, start = 0;
- while (true) {
- t1 = _this.get$text().charCodeAt(start);
- if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
- break;
- ++start;
- }
- return A.FileSpanExtension_subspan(_this, start, null);
- },
- SpanExtensions_trimRight(_this) {
- var t1,
- end = _this.get$text().length - 1;
- while (true) {
- t1 = _this.get$text().charCodeAt(end);
- if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
- break;
- --end;
- }
- return A.FileSpanExtension_subspan(_this, 0, end + 1);
- },
- SpanExtensions_initialIdentifier(_this) {
- var i,
- scanner = A.StringScanner$(_this.get$text(), null, null);
- for (i = 0; false; ++i)
- scanner.readChar$0();
- A._scanIdentifier(scanner);
- return A.FileSpanExtension_subspan(_this, 0, scanner._string_scanner$_position);
- },
- SpanExtensions_withoutInitialIdentifier(_this) {
- var scanner = A.StringScanner$(_this.get$text(), null, null);
- A._scanIdentifier(scanner);
- return A.FileSpanExtension_subspan(_this, scanner._string_scanner$_position, null);
- },
- _scanIdentifier(scanner) {
- var t1, _0_0, t2;
- for (t1 = scanner.string.length; scanner._string_scanner$_position !== t1;) {
- _0_0 = scanner.peekChar$0();
- if (92 === _0_0) {
- A.consumeEscapedCharacter(scanner);
- continue;
- }
- if (A._isInt(_0_0)) {
- if (_0_0 !== 95) {
- if (!(_0_0 >= 97 && _0_0 <= 122))
- t2 = _0_0 >= 65 && _0_0 <= 90;
- else
- t2 = true;
- t2 = t2 || _0_0 >= 128;
- } else
- t2 = true;
- if (!t2)
- t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
- else
- t2 = true;
- } else
- t2 = false;
- if (t2) {
- scanner.readChar$0();
- continue;
- }
- break;
- }
- },
- encodeVlq(value) {
- var res, signBit, digit, t1;
- if (value < $.$get$minInt32() || value > $.$get$maxInt32())
- throw A.wrapException(A.ArgumentError$("expected 32 bit int, got: " + value, null));
- res = A._setArrayType([], type$.JSArray_String);
- if (value < 0) {
- value = -value;
- signBit = 1;
- } else
- signBit = 0;
- value = value << 1 | signBit;
- do {
- digit = value & 31;
- value = value >>> 5;
- t1 = value > 0;
- res.push(string$.ABCDEF[t1 ? digit | 32 : digit]);
- } while (t1);
- return res;
- },
- isAllTheSame(iter) {
- var firstValue, t1, t2, value;
- if (iter.get$length(0) === 0)
- return true;
- firstValue = iter.get$first(0);
- for (t1 = A.SubListIterable$(iter, 1, null, iter.$ti._eval$1("ListIterable.E")), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
- value = t1.__internal$_current;
- if (!J.$eq$(value == null ? t2._as(value) : value, firstValue))
- return false;
- }
- return true;
- },
- replaceFirstNull(list, element) {
- var index = B.JSArray_methods.indexOf$1(list, null);
- if (index < 0)
- throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no null elements.", null));
- list[index] = element;
- },
- replaceWithNull(list, element) {
- var index = B.JSArray_methods.indexOf$1(list, element);
- if (index < 0)
- throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no elements matching " + element.toString$0(0) + ".", null));
- list[index] = null;
- },
- countCodeUnits(string, codeUnit) {
- var t1, t2, count, t3;
- for (t1 = new A.CodeUnits(string), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"), count = 0; t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if ((t3 == null ? t2._as(t3) : t3) === codeUnit)
- ++count;
- }
- return count;
- },
- findLineStart(context, text, column) {
- var beginningOfLine, index, lineStart;
- if (text.length === 0)
- for (beginningOfLine = 0; true;) {
- index = B.JSString_methods.indexOf$2(context, "\n", beginningOfLine);
- if (index === -1)
- return context.length - beginningOfLine >= column ? beginningOfLine : null;
- if (index - beginningOfLine >= column)
- return beginningOfLine;
- beginningOfLine = index + 1;
- }
- index = B.JSString_methods.indexOf$1(context, text);
- for (; index !== -1;) {
- lineStart = index === 0 ? 0 : B.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1;
- if (column === index - lineStart)
- return lineStart;
- index = B.JSString_methods.indexOf$2(context, text, index + 1);
- }
- return null;
- },
- validateErrorArgs(string, match, position, $length) {
- var t2,
- t1 = position != null;
- if (t1)
- if (position < 0)
- throw A.wrapException(A.RangeError$("position must be greater than or equal to 0."));
- else if (position > string.length)
- throw A.wrapException(A.RangeError$("position must be less than or equal to the string length."));
- t2 = $length != null;
- if (t2 && $length < 0)
- throw A.wrapException(A.RangeError$("length must be greater than or equal to 0."));
- if (t1 && t2 && position + $length > string.length)
- throw A.wrapException(A.RangeError$("position plus length must not go beyond the end of the string."));
- },
- CharacterExtension_get_isAlphabetic0(_this) {
- var t1;
- if (!(_this >= 97 && _this <= 122))
- t1 = _this >= 65 && _this <= 90;
- else
- t1 = true;
- return t1;
- },
- CharacterExtension_get_isHex0(_this) {
- var t1;
- if (!(_this >= 48 && _this <= 57))
- if (!(_this >= 97 && _this <= 102))
- t1 = _this >= 65 && _this <= 70;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- asHex0(character) {
- var t1;
- $label0$0: {
- if (character <= 57) {
- t1 = character - 48;
- break $label0$0;
- }
- if (character <= 70) {
- t1 = 10 + character - 65;
- break $label0$0;
- }
- t1 = 10 + character - 97;
- break $label0$0;
- }
- return t1;
- },
- hexCharFor0(number) {
- return number < 10 ? 48 + number : 87 + number;
- },
- opposite0(character) {
- var t1;
- $label0$0: {
- if (40 === character) {
- t1 = 41;
- break $label0$0;
- }
- if (123 === character) {
- t1 = 125;
- break $label0$0;
- }
- if (91 === character) {
- t1 = 93;
- break $label0$0;
- }
- t1 = A.throwExpression(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null));
- }
- return t1;
- },
- characterEqualsIgnoreCase0(character1, character2) {
- var upperCase1;
- if (character1 === character2)
- return true;
- if ((character1 ^ character2) >>> 0 !== 32)
- return false;
- upperCase1 = (character1 & 4294967263) >>> 0;
- return upperCase1 >= 65 && upperCase1 <= 90;
- },
- EvaluationContext_currentOrNull0() {
- var t1,
- _0_0 = $.Zone__current.$index(0, B.Symbol__evaluationContext);
- $label0$0: {
- if (type$.EvaluationContext_2._is(_0_0)) {
- t1 = _0_0;
- break $label0$0;
- }
- t1 = null;
- break $label0$0;
- }
- return t1;
- },
- warn0(message) {
- var t1,
- _0_0 = A.EvaluationContext_currentOrNull0();
- $label0$0: {
- if (_0_0 != null) {
- t1 = _0_0.warn$2(0, message, null);
- break $label0$0;
- }
- t1 = B.StderrLogger_false0.warn$1(0, message);
- break $label0$0;
- }
- return t1;
- },
- warnForDeprecation0(message, deprecation) {
- var t1,
- _0_0 = A.EvaluationContext_currentOrNull0();
- $label0$0: {
- if (_0_0 != null) {
- t1 = _0_0.warn$2(0, message, deprecation);
- break $label0$0;
- }
- t1 = A.WarnForDeprecation_warnForDeprecation0(B.StderrLogger_false0, deprecation, message, null, null);
- break $label0$0;
- }
- return t1;
- },
- IterableExtension_search0(_this, callback) {
- var t1, _0_0;
- for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
- _0_0 = callback.call$1(t1.get$current(t1));
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- IterableExtension_get_exceptLast0(_this) {
- var t1 = J.getInterceptor$asx(_this),
- size = t1.get$length(_this) - 1;
- if (size < 0)
- throw A.wrapException(A.StateError$("Iterable may not be empty"));
- return t1.take$1(_this, size);
- },
- NullableExtension_andThen0(_this, fn) {
- return _this == null ? null : fn.call$1(_this);
- },
- fuzzyEquals0(number1, number2) {
- var t1;
- if (number1 === number2)
- return true;
- if (Math.abs(number1 - number2) <= $.$get$_epsilon0()) {
- t1 = $.$get$_inverseEpsilon0();
- t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
- } else
- t1 = false;
- return t1;
- },
- fuzzyHashCode0(number) {
- if (!isFinite(number))
- return B.JSNumber_methods.get$hashCode(number);
- return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon0()));
- },
- fuzzyLessThan0(number1, number2) {
- return number1 < number2 && !A.fuzzyEquals0(number1, number2);
- },
- fuzzyLessThanOrEquals0(number1, number2) {
- return number1 < number2 || A.fuzzyEquals0(number1, number2);
- },
- fuzzyGreaterThan0(number1, number2) {
- return number1 > number2 && !A.fuzzyEquals0(number1, number2);
- },
- fuzzyGreaterThanOrEquals0(number1, number2) {
- return number1 > number2 || A.fuzzyEquals0(number1, number2);
- },
- fuzzyIsInt(number) {
- if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
- return false;
- return A.fuzzyEquals0(number, B.JSNumber_methods.round$0(number));
- },
- fuzzyAsInt0(number) {
- var rounded;
- if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
- return null;
- rounded = B.JSNumber_methods.round$0(number);
- return A.fuzzyEquals0(number, rounded) ? rounded : null;
- },
- fuzzyRound0(number) {
- var t1;
- if (number > 0) {
- t1 = B.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 && !A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
- } else {
- t1 = B.JSNumber_methods.$mod(number, 1);
- return t1 < 0.5 || A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
- }
- },
- fuzzyCheckRange0(number, min, max) {
- if (A.fuzzyEquals0(number, min))
- return min;
- if (A.fuzzyEquals0(number, max))
- return max;
- if (number > min && number < max)
- return number;
- return null;
- },
- fuzzyAssertRange0(number, min, max, $name) {
- var result = A.fuzzyCheckRange0(number, min, max);
- if (result != null)
- return result;
- throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
- },
- moduloLikeSass0(num1, num2) {
- var result;
- if (num1 == 1 / 0 || num1 == -1 / 0)
- return 0 / 0;
- if (num2 == 1 / 0 || num2 == -1 / 0)
- return A.DoubleWithSignedZero_get_signIncludingZero0(num1) === J.get$sign$in(num2) ? num1 : 0 / 0;
- if (num2 > 0)
- return B.JSNumber_methods.$mod(num1, num2);
- if (num2 === 0)
- return 0 / 0;
- result = B.JSNumber_methods.$mod(num1, num2);
- return result === 0 ? 0 : result + num2;
- },
- sqrt0(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber0(Math.sqrt(number._number1$_value), null);
- },
- sin0(number) {
- return A.SassNumber_SassNumber0(Math.sin(number.coerceValueToUnit$2("rad", "number")), null);
- },
- cos0(number) {
- return A.SassNumber_SassNumber0(Math.cos(number.coerceValueToUnit$2("rad", "number")), null);
- },
- tan0(number) {
- return A.SassNumber_SassNumber0(Math.tan(number.coerceValueToUnit$2("rad", "number")), null);
- },
- atan0(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber$withUnits0(Math.atan(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- asin0(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber$withUnits0(Math.asin(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- acos0(number) {
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber$withUnits0(Math.acos(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- log0(number, base) {
- if (base != null)
- return A.SassNumber_SassNumber0(Math.log(number._number1$_value) / Math.log(base._number1$_value), null);
- return A.SassNumber_SassNumber0(Math.log(number._number1$_value), null);
- },
- pow1(base, exponent) {
- base.assertNoUnits$1("base");
- exponent.assertNoUnits$1("exponent");
- return A.SassNumber_SassNumber0(Math.pow(base._number1$_value, exponent._number1$_value), null);
- },
- DoubleWithSignedZero_get_signIncludingZero0(_this) {
- if (_this === -0.0)
- return -1;
- if (_this === 0)
- return 1;
- return J.get$sign$in(_this);
- },
- main1(args) {
- return A.main$body(args);
- },
- main$body(args) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$handler = 2, $async$currentError, options, t1, graph, error, error0, stackTrace, buffer, t2, t3, t4, t5, exception, $async$exception, $async$temp1;
- var $async$main1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (args.length >= 1 && "--embedded" === args[0]) {
- A.main0(B.JSArray_methods.sublist$1(args, 1));
- // goto return
- $async$goto = 1;
- break;
- }
- options = null;
- $async$handler = 4;
- options = A.ExecutableOptions_ExecutableOptions$parse(args);
- t2 = options._options;
- $._glyphs = !(t2.wasParsed$1("unicode") ? A._asBool(t2.$index(0, "unicode")) : $._glyphs !== B.C_AsciiGlyphSet) ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
- $async$goto = A._asBool(options._options.$index(0, "version")) ? 7 : 8;
- break;
- case 7:
- // then
- $async$temp1 = A;
- $async$goto = 9;
- return A._asyncAwait(A._loadVersion(), $async$main1);
- case 9:
- // returning from await.
- $async$temp1.print($async$result);
- t1 = A.isNodeJs() ? self.process : null;
- if (t1 != null)
- J.set$exitCode$x(t1, 0);
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // join
- $async$goto = options.get$interactive() ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return A._asyncAwait(A.repl(options), $async$main1);
- case 12:
- // returning from await.
- // goto return
- $async$goto = 1;
- break;
- case 11:
- // join
- t1 = A.List_List$of(options.get$pkgImporters(), true, type$.Importer_2);
- J.add$1$ax(t1, $.$get$FilesystemImporter_noLoadPath());
- t2 = type$.List_String._as(options._options.$index(0, "load-path"));
- t3 = options;
- t3 = A._asBool(t3._options.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(t3.get$color());
- t4 = J.get$silenceDeprecations$x(options);
- t5 = type$.Uri;
- graph = new A.StylesheetGraph(A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.StylesheetNode), A.ImportCache$(t1, t2, A.DeprecationProcessingLogger$(t3, J.get$fatalDeprecations$x(options), J.get$futureDeprecations$x(options), false, t4)), A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.DateTime));
- $async$goto = A._asBool(options._options.$index(0, "watch")) ? 13 : 14;
- break;
- case 13:
- // then
- $async$goto = 15;
- return A._asyncAwait(A.watch(options, graph), $async$main1);
- case 15:
- // returning from await.
- // goto return
- $async$goto = 1;
- break;
- case 14:
- // join
- t1 = options;
- t2 = options;
- t2._ensureSources$0();
- t2 = t2._sourcesToDestinations;
- t2.toString;
- $async$goto = 16;
- return A._asyncAwait(A.compileStylesheets(t1, graph, t2, A._asBool(options._options.$index(0, "update"))), $async$main1);
- case 16:
- // returning from await.
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.UsageException) {
- error = t1;
- A.print(error.message + "\n");
- A.print("Usage: sass <input.scss> [output.css]\n sass <input.scss>:<output.css> <input/>:<output/> <dir/>\n");
- t1 = $.$get$ExecutableOptions__parser();
- A.print(new A._Usage(t1._optionsAndSeparators, new A.StringBuffer(""), t1.usageLineLength).generate$0());
- t1 = A.isNodeJs() ? self.process : null;
- if (t1 != null)
- J.set$exitCode$x(t1, 64);
- } else {
- error0 = t1;
- stackTrace = A.getTraceFromException($async$exception);
- buffer = new A.StringBuffer("");
- t1 = options;
- t1 = t1 == null ? null : t1.get$color();
- if (t1 === true)
- buffer._contents += "\x1b[31m\x1b[1m";
- buffer._contents += "Unexpected exception:";
- t1 = options;
- t1 = t1 == null ? null : t1.get$color();
- if (t1 === true)
- buffer._contents += "\x1b[0m";
- buffer._contents += "\n";
- t1 = buffer;
- t2 = A.S(error0) + "\n";
- t1._contents += t2;
- buffer._contents += "\n";
- buffer._contents += "\n";
- t2 = buffer;
- t1 = A.getTrace(error0);
- t1 = B.JSString_methods.trimRight$0(A.Trace_Trace$from(t1 == null ? stackTrace : t1).get$terse().toString$0(0));
- t2._contents += t1;
- A.printError(buffer);
- t1 = A.isNodeJs() ? self.process : null;
- if (t1 != null)
- J.set$exitCode$x(t1, 255);
- }
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$main1, $async$completer);
- },
- _loadVersion() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue;
- var $async$_loadVersion = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = "1.77.8 compiled with dart2js 3.4.4";
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_loadVersion, $async$completer);
- },
- SpanExtensions_trimLeft0(_this) {
- var t1, start = 0;
- while (true) {
- t1 = _this.get$text().charCodeAt(start);
- if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
- break;
- ++start;
- }
- return A.FileSpanExtension_subspan(_this, start, null);
- },
- SpanExtensions_trimRight0(_this) {
- var t1,
- end = _this.get$text().length - 1;
- while (true) {
- t1 = _this.get$text().charCodeAt(end);
- if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
- break;
- --end;
- }
- return A.FileSpanExtension_subspan(_this, 0, end + 1);
- },
- SpanExtensions_initialIdentifier0(_this) {
- var i,
- scanner = A.StringScanner$(_this.get$text(), null, null);
- for (i = 0; false; ++i)
- scanner.readChar$0();
- A._scanIdentifier0(scanner);
- return A.FileSpanExtension_subspan(_this, 0, scanner._string_scanner$_position);
- },
- SpanExtensions_withoutInitialIdentifier0(_this) {
- var scanner = A.StringScanner$(_this.get$text(), null, null);
- A._scanIdentifier0(scanner);
- return A.FileSpanExtension_subspan(_this, scanner._string_scanner$_position, null);
- },
- _scanIdentifier0(scanner) {
- var t1, _0_0, t2;
- for (t1 = scanner.string.length; scanner._string_scanner$_position !== t1;) {
- _0_0 = scanner.peekChar$0();
- if (92 === _0_0) {
- A.consumeEscapedCharacter0(scanner);
- continue;
- }
- if (A._isInt(_0_0)) {
- if (_0_0 !== 95) {
- if (!(_0_0 >= 97 && _0_0 <= 122))
- t2 = _0_0 >= 65 && _0_0 <= 90;
- else
- t2 = true;
- t2 = t2 || _0_0 >= 128;
- } else
- t2 = true;
- if (!t2)
- t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
- else
- t2 = true;
- } else
- t2 = false;
- if (t2) {
- scanner.readChar$0();
- continue;
- }
- break;
- }
- },
- validateUrlScheme(scheme) {
- var t1 = $.$get$_urlSchemeRegExp();
- if (!t1._nativeRegExp.test(scheme))
- A.jsThrow(new self.Error('"' + scheme + '" isn\'t a valid URL scheme (for example "file").'));
- },
- unwrapValue(object) {
- var value;
- if (object != null) {
- if (object instanceof A.Value0)
- return object;
- value = object.dartValue;
- if (value != null && value instanceof A.Value0)
- return value;
- if (object instanceof self.Error)
- throw A.wrapException(object);
- }
- throw A.wrapException(A.S(object) + " must be a Sass value type.");
- },
- wrapValue(value) {
- var t1;
- $label0$0: {
- if (value instanceof A.SassColor0) {
- t1 = A.callConstructor($.$get$legacyColorClass(), [null, null, null, null, value]);
- break $label0$0;
- }
- if (value instanceof A.SassList0) {
- t1 = A.callConstructor($.$get$legacyListClass(), [null, null, value]);
- break $label0$0;
- }
- if (value instanceof A.SassMap0) {
- t1 = A.callConstructor($.$get$legacyMapClass(), [null, value]);
- break $label0$0;
- }
- if (value instanceof A.SassNumber0) {
- t1 = A.callConstructor($.$get$legacyNumberClass(), [null, null, value]);
- break $label0$0;
- }
- if (value instanceof A.SassString0) {
- t1 = A.callConstructor($.$get$legacyStringClass(), [null, value]);
- break $label0$0;
- }
- t1 = value;
- break $label0$0;
- }
- return t1;
- }
- },
- B = {};
- var holders = [A, J, B];
- var $ = {};
- A.JS_CONST.prototype = {};
- J.Interceptor.prototype = {
- $eq(receiver, other) {
- return receiver === other;
- },
- get$hashCode(receiver) {
- return A.Primitives_objectHashCode(receiver);
- },
- toString$0(receiver) {
- return "Instance of '" + A.Primitives_objectTypeName(receiver) + "'";
- },
- noSuchMethod$1(receiver, invocation) {
- throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, invocation));
- },
- get$runtimeType(receiver) {
- return A.createRuntimeType(A._instanceTypeFromConstructor(this));
- }
- };
- J.JSBool.prototype = {
- toString$0(receiver) {
- return String(receiver);
- },
- get$hashCode(receiver) {
- return receiver ? 519018 : 218159;
- },
- get$runtimeType(receiver) {
- return A.createRuntimeType(type$.bool);
- },
- $isTrustedGetRuntimeType: 1,
- $isbool: 1
- };
- J.JSNull.prototype = {
- $eq(receiver, other) {
- return null == other;
- },
- toString$0(receiver) {
- return "null";
- },
- get$hashCode(receiver) {
- return 0;
- },
- get$runtimeType(receiver) {
- return A.createRuntimeType(type$.Null);
- },
- $isTrustedGetRuntimeType: 1,
- $isNull: 1
- };
- J.JavaScriptObject.prototype = {};
- J.LegacyJavaScriptObject.prototype = {
- get$hashCode(receiver) {
- return 0;
- },
- toString$0(receiver) {
- return String(receiver);
- },
- $isPromise: 1,
- $isJsSystemError: 1,
- $isImmutableList: 1,
- $is_Channels: 1,
- $is_NodeSassColor: 1,
- $isCompileOptions: 1,
- $isCompileStringOptions: 1,
- $isNodeCompileResult: 1,
- $isDeprecation1: 1,
- $is_NodeException: 1,
- $isFiber: 1,
- $isJSFunction0: 1,
- $isImmutableList0: 1,
- $isImmutableMap0: 1,
- $isJSImporter: 1,
- $isJSImporterResult: 1,
- $isNodeImporterResult0: 1,
- $is_ConstructorOptions: 1,
- $is_NodeSassList: 1,
- $isWarnOptions: 1,
- $isDebugOptions: 1,
- $is_NodeSassMap: 1,
- $is_ConstructorOptions0: 1,
- $is_NodeSassNumber: 1,
- $isJSClass0: 1,
- $isRenderContextOptions0: 1,
- $isRenderOptions: 1,
- $isRenderResult: 1,
- $is_ConstructorOptions1: 1,
- $is_NodeSassString: 1,
- $isJSUrl0: 1,
- get$isTTY(obj) {
- return obj.isTTY;
- },
- get$write(obj) {
- return obj.write;
- },
- write$1(receiver, p0) {
- return receiver.write(p0);
- },
- createInterface$1(receiver, p0) {
- return receiver.createInterface(p0);
- },
- on$2(receiver, p0, p1) {
- return receiver.on(p0, p1);
- },
- get$close(obj) {
- return obj.close;
- },
- close$0(receiver) {
- return receiver.close();
- },
- setPrompt$1(receiver, p0) {
- return receiver.setPrompt(p0);
- },
- get$length(obj) {
- return obj.length;
- },
- toString$0(receiver) {
- return receiver.toString();
- },
- get$debug(obj) {
- return obj.debug;
- },
- debug$2(receiver, p0, p1) {
- return receiver.debug(p0, p1);
- },
- get$error(obj) {
- return obj.error;
- },
- error$1(receiver, p0) {
- return receiver.error(p0);
- },
- error$2(receiver, p0, p1) {
- return receiver.error(p0, p1);
- },
- log$1(receiver, p0) {
- return receiver.log(p0);
- },
- get$warn(obj) {
- return obj.warn;
- },
- warn$1(receiver, p0) {
- return receiver.warn(p0);
- },
- warn$2(receiver, p0, p1) {
- return receiver.warn(p0, p1);
- },
- existsSync$1(receiver, p0) {
- return receiver.existsSync(p0);
- },
- mkdirSync$1(receiver, p0) {
- return receiver.mkdirSync(p0);
- },
- readdirSync$1(receiver, p0) {
- return receiver.readdirSync(p0);
- },
- readFileSync$2(receiver, p0, p1) {
- return receiver.readFileSync(p0, p1);
- },
- statSync$1(receiver, p0) {
- return receiver.statSync(p0);
- },
- unlinkSync$1(receiver, p0) {
- return receiver.unlinkSync(p0);
- },
- watch$2(receiver, p0, p1) {
- return receiver.watch(p0, p1);
- },
- writeFileSync$2(receiver, p0, p1) {
- return receiver.writeFileSync(p0, p1);
- },
- get$path(obj) {
- return obj.path;
- },
- isDirectory$0(receiver) {
- return receiver.isDirectory();
- },
- isFile$0(receiver) {
- return receiver.isFile();
- },
- get$mtime(obj) {
- return obj.mtime;
- },
- then$1$1(receiver, p0) {
- return receiver.then(p0);
- },
- then$2(receiver, p0, p1) {
- return receiver.then(p0, p1);
- },
- getTime$0(receiver) {
- return receiver.getTime();
- },
- get$message(obj) {
- return obj.message;
- },
- message$1(receiver, p0) {
- return receiver.message(p0);
- },
- get$filename(obj) {
- return obj.filename;
- },
- get$id(obj) {
- return obj.id;
- },
- get$code(obj) {
- return obj.code;
- },
- get$syscall(obj) {
- return obj.syscall;
- },
- get$argv(obj) {
- return obj.argv;
- },
- get$env(obj) {
- return obj.env;
- },
- get$exitCode(obj) {
- return obj.exitCode;
- },
- set$exitCode(obj, v) {
- return obj.exitCode = v;
- },
- get$platform(obj) {
- return obj.platform;
- },
- get$release(obj) {
- return obj.release;
- },
- get$stderr(obj) {
- return obj.stderr;
- },
- get$stdin(obj) {
- return obj.stdin;
- },
- get$stdout(obj) {
- return obj.stdout;
- },
- get$name(obj) {
- return obj.name;
- },
- push$1(receiver, p0) {
- return receiver.push(p0);
- },
- call$0(receiver) {
- return receiver.call();
- },
- call$1(receiver, p0) {
- return receiver.call(p0);
- },
- call$2(receiver, p0, p1) {
- return receiver.call(p0, p1);
- },
- call$3$1(receiver, p0) {
- return receiver.call(p0);
- },
- call$2$1(receiver, p0) {
- return receiver.call(p0);
- },
- call$1$1(receiver, p0) {
- return receiver.call(p0);
- },
- call$3(receiver, p0, p1, p2) {
- return receiver.call(p0, p1, p2);
- },
- call$3$3(receiver, p0, p1, p2) {
- return receiver.call(p0, p1, p2);
- },
- call$2$2(receiver, p0, p1) {
- return receiver.call(p0, p1);
- },
- call$2$0(receiver) {
- return receiver.call();
- },
- call$1$0(receiver) {
- return receiver.call();
- },
- call$1$2(receiver, p0, p1) {
- return receiver.call(p0, p1);
- },
- call$2$3(receiver, p0, p1, p2) {
- return receiver.call(p0, p1, p2);
- },
- apply$2(receiver, p0, p1) {
- return receiver.apply(p0, p1);
- },
- toArray$0(receiver) {
- return receiver.toArray();
- },
- asMutable$0(receiver) {
- return receiver.asMutable();
- },
- asImmutable$0(receiver) {
- return receiver.asImmutable();
- },
- $set$2(receiver, p0, p1) {
- return receiver.set(p0, p1);
- },
- forEach$1(receiver, p0) {
- return receiver.forEach(p0);
- },
- get$file(obj) {
- return obj.file;
- },
- get$contents(obj) {
- return obj.contents;
- },
- get$options(obj) {
- return obj.options;
- },
- get$data(obj) {
- return obj.data;
- },
- get$includePaths(obj) {
- return obj.includePaths;
- },
- get$style(obj) {
- return obj.style;
- },
- get$indentType(obj) {
- return obj.indentType;
- },
- get$indentWidth(obj) {
- return obj.indentWidth;
- },
- get$linefeed(obj) {
- return obj.linefeed;
- },
- set$context(obj, v) {
- return obj.context = v;
- },
- createRequire$1(receiver, p0) {
- return receiver.createRequire(p0);
- },
- resolve$1(receiver, p0) {
- return receiver.resolve(p0);
- },
- get$$prototype(obj) {
- return obj.prototype;
- },
- get$red(obj) {
- return obj.red;
- },
- get$green(obj) {
- return obj.green;
- },
- get$blue(obj) {
- return obj.blue;
- },
- get$hue(obj) {
- return obj.hue;
- },
- get$saturation(obj) {
- return obj.saturation;
- },
- get$lightness(obj) {
- return obj.lightness;
- },
- get$whiteness(obj) {
- return obj.whiteness;
- },
- get$blackness(obj) {
- return obj.blackness;
- },
- get$alpha(obj) {
- return obj.alpha;
- },
- get$dartValue(obj) {
- return obj.dartValue;
- },
- set$dartValue(obj, v) {
- return obj.dartValue = v;
- },
- get$alertAscii(obj) {
- return obj.alertAscii;
- },
- get$alertColor(obj) {
- return obj.alertColor;
- },
- get$loadPaths(obj) {
- return obj.loadPaths;
- },
- get$quietDeps(obj) {
- return obj.quietDeps;
- },
- get$verbose(obj) {
- return obj.verbose;
- },
- get$charset(obj) {
- return obj.charset;
- },
- get$sourceMap(obj) {
- return obj.sourceMap;
- },
- get$sourceMapIncludeSources(obj) {
- return obj.sourceMapIncludeSources;
- },
- get$logger(obj) {
- return obj.logger;
- },
- get$importers(obj) {
- return obj.importers;
- },
- get$functions(obj) {
- return obj.functions;
- },
- get$fatalDeprecations(obj) {
- return obj.fatalDeprecations;
- },
- get$silenceDeprecations(obj) {
- return obj.silenceDeprecations;
- },
- get$futureDeprecations(obj) {
- return obj.futureDeprecations;
- },
- get$syntax(obj) {
- return obj.syntax;
- },
- get$url(obj) {
- return obj.url;
- },
- get$importer(obj) {
- return obj.importer;
- },
- get$_dartException(obj) {
- return obj._dartException;
- },
- set$renderSync(obj, v) {
- return obj.renderSync = v;
- },
- set$compileString(obj, v) {
- return obj.compileString = v;
- },
- set$compileStringAsync(obj, v) {
- return obj.compileStringAsync = v;
- },
- set$compile(obj, v) {
- return obj.compile = v;
- },
- set$compileAsync(obj, v) {
- return obj.compileAsync = v;
- },
- set$initCompiler(obj, v) {
- return obj.initCompiler = v;
- },
- set$initAsyncCompiler(obj, v) {
- return obj.initAsyncCompiler = v;
- },
- set$Compiler(obj, v) {
- return obj.Compiler = v;
- },
- set$AsyncCompiler(obj, v) {
- return obj.AsyncCompiler = v;
- },
- set$info(obj, v) {
- return obj.info = v;
- },
- set$Exception(obj, v) {
- return obj.Exception = v;
- },
- set$Logger(obj, v) {
- return obj.Logger = v;
- },
- set$NodePackageImporter(obj, v) {
- return obj.NodePackageImporter = v;
- },
- set$deprecations(obj, v) {
- return obj.deprecations = v;
- },
- set$Version(obj, v) {
- return obj.Version = v;
- },
- set$Value(obj, v) {
- return obj.Value = v;
- },
- set$SassArgumentList(obj, v) {
- return obj.SassArgumentList = v;
- },
- set$SassCalculation(obj, v) {
- return obj.SassCalculation = v;
- },
- set$CalculationOperation(obj, v) {
- return obj.CalculationOperation = v;
- },
- set$CalculationInterpolation(obj, v) {
- return obj.CalculationInterpolation = v;
- },
- set$SassBoolean(obj, v) {
- return obj.SassBoolean = v;
- },
- set$SassColor(obj, v) {
- return obj.SassColor = v;
- },
- set$SassFunction(obj, v) {
- return obj.SassFunction = v;
- },
- set$SassMixin(obj, v) {
- return obj.SassMixin = v;
- },
- set$SassList(obj, v) {
- return obj.SassList = v;
- },
- set$SassMap(obj, v) {
- return obj.SassMap = v;
- },
- set$SassNumber(obj, v) {
- return obj.SassNumber = v;
- },
- set$SassString(obj, v) {
- return obj.SassString = v;
- },
- set$sassNull(obj, v) {
- return obj.sassNull = v;
- },
- set$sassTrue(obj, v) {
- return obj.sassTrue = v;
- },
- set$sassFalse(obj, v) {
- return obj.sassFalse = v;
- },
- set$render(obj, v) {
- return obj.render = v;
- },
- set$types(obj, v) {
- return obj.types = v;
- },
- set$NULL(obj, v) {
- return obj.NULL = v;
- },
- set$TRUE(obj, v) {
- return obj.TRUE = v;
- },
- set$FALSE(obj, v) {
- return obj.FALSE = v;
- },
- get$current(obj) {
- return obj.current;
- },
- yield$0(receiver) {
- return receiver.yield();
- },
- run$1$1(receiver, p0) {
- return receiver.run(p0);
- },
- run$1(receiver, p0) {
- return receiver.run(p0);
- },
- run$0(receiver) {
- return receiver.run();
- },
- get$canonicalize(obj) {
- return obj.canonicalize;
- },
- canonicalize$1(receiver, p0) {
- return receiver.canonicalize(p0);
- },
- get$load(obj) {
- return obj.load;
- },
- load$1(receiver, p0) {
- return receiver.load(p0);
- },
- get$findFileUrl(obj) {
- return obj.findFileUrl;
- },
- get$nonCanonicalScheme(obj) {
- return obj.nonCanonicalScheme;
- },
- get$sourceMapUrl(obj) {
- return obj.sourceMapUrl;
- },
- get$separator(obj) {
- return obj.separator;
- },
- get$brackets(obj) {
- return obj.brackets;
- },
- get$numeratorUnits(obj) {
- return obj.numeratorUnits;
- },
- get$denominatorUnits(obj) {
- return obj.denominatorUnits;
- },
- get$pkgImporter(obj) {
- return obj.pkgImporter;
- },
- get$indentedSyntax(obj) {
- return obj.indentedSyntax;
- },
- get$omitSourceMapUrl(obj) {
- return obj.omitSourceMapUrl;
- },
- get$outFile(obj) {
- return obj.outFile;
- },
- get$outputStyle(obj) {
- return obj.outputStyle;
- },
- get$fiber(obj) {
- return obj.fiber;
- },
- get$sourceMapContents(obj) {
- return obj.sourceMapContents;
- },
- get$sourceMapEmbed(obj) {
- return obj.sourceMapEmbed;
- },
- get$sourceMapRoot(obj) {
- return obj.sourceMapRoot;
- },
- set$cli_pkg_main_0_(obj, v) {
- return obj.cli_pkg_main_0_ = v;
- },
- get$quotes(obj) {
- return obj.quotes;
- }
- };
- J.PlainJavaScriptObject.prototype = {};
- J.UnknownJavaScriptObject.prototype = {};
- J.JavaScriptFunction.prototype = {
- toString$0(receiver) {
- var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()];
- if (dartClosure == null)
- return this.super$LegacyJavaScriptObject$toString(receiver);
- return "JavaScript function for " + A.S(J.toString$0$(dartClosure));
- },
- $isFunction: 1
- };
- J.JavaScriptBigInt.prototype = {
- get$hashCode(receiver) {
- return 0;
- },
- toString$0(receiver) {
- return String(receiver);
- }
- };
- J.JavaScriptSymbol.prototype = {
- get$hashCode(receiver) {
- return 0;
- },
- toString$0(receiver) {
- return String(receiver);
- }
- };
- J.JSArray.prototype = {
- cast$1$0(receiver, $R) {
- return new A.CastList(receiver, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
- },
- add$1(receiver, value) {
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("add"));
- receiver.push(value);
- },
- removeAt$1(receiver, index) {
- var t1;
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("removeAt"));
- t1 = receiver.length;
- if (index >= t1)
- throw A.wrapException(A.RangeError$value(index, null, null));
- return receiver.splice(index, 1)[0];
- },
- insert$2(receiver, index, value) {
- var t1;
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("insert"));
- t1 = receiver.length;
- if (index > t1)
- throw A.wrapException(A.RangeError$value(index, null, null));
- receiver.splice(index, 0, value);
- },
- insertAll$2(receiver, index, iterable) {
- var insertionLength, end;
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("insertAll"));
- A.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
- if (!type$.EfficientLengthIterable_dynamic._is(iterable))
- iterable = J.toList$0$ax(iterable);
- insertionLength = J.get$length$asx(iterable);
- receiver.length = receiver.length + insertionLength;
- end = index + insertionLength;
- this.setRange$4(receiver, end, receiver.length, receiver, index);
- this.setRange$3(receiver, index, end, iterable);
- },
- removeLast$0(receiver) {
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("removeLast"));
- if (receiver.length === 0)
- throw A.wrapException(A.diagnoseIndexError(receiver, -1));
- return receiver.pop();
- },
- _removeWhere$2(receiver, test, removeMatching) {
- var i, element, t1, retained = [],
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- element = receiver[i];
- if (!test.call$1(element))
- retained.push(element);
- if (receiver.length !== end)
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- t1 = retained.length;
- if (t1 === end)
- return;
- this.set$length(receiver, t1);
- for (i = 0; i < retained.length; ++i)
- receiver[i] = retained[i];
- },
- where$1(receiver, f) {
- return new A.WhereIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("WhereIterable<1>"));
- },
- expand$1$1(receiver, f, $T) {
- return new A.ExpandIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
- },
- addAll$1(receiver, collection) {
- var t1;
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("addAll"));
- if (Array.isArray(collection)) {
- this._addAllFromArray$1(receiver, collection);
- return;
- }
- for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();)
- receiver.push(t1.get$current(t1));
- },
- _addAllFromArray$1(receiver, array) {
- var i,
- len = array.length;
- if (len === 0)
- return;
- if (receiver === array)
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- for (i = 0; i < len; ++i)
- receiver.push(array[i]);
- },
- clear$0(receiver) {
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("clear"));
- receiver.length = 0;
- },
- map$1$1(receiver, f, $T) {
- return new A.MappedListIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
- },
- join$1(receiver, separator) {
- var i,
- list = A.List_List$filled(receiver.length, "", false, type$.String);
- for (i = 0; i < receiver.length; ++i)
- list[i] = A.S(receiver[i]);
- return list.join(separator);
- },
- join$0(receiver) {
- return this.join$1(receiver, "");
- },
- take$1(receiver, n) {
- return A.SubListIterable$(receiver, 0, A.checkNotNullable(n, "count", type$.int), A._arrayInstanceType(receiver)._precomputed1);
- },
- skip$1(receiver, n) {
- return A.SubListIterable$(receiver, n, null, A._arrayInstanceType(receiver)._precomputed1);
- },
- fold$1$2(receiver, initialValue, combine) {
- var value, i,
- $length = receiver.length;
- for (value = initialValue, i = 0; i < $length; ++i) {
- value = combine.call$2(value, receiver[i]);
- if (receiver.length !== $length)
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- return value;
- },
- fold$2(receiver, initialValue, combine) {
- return this.fold$1$2(receiver, initialValue, combine, type$.dynamic);
- },
- elementAt$1(receiver, index) {
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- var end0 = receiver.length;
- if (start > end0)
- throw A.wrapException(A.RangeError$range(start, 0, end0, "start", null));
- if (end == null)
- end = end0;
- else if (end < start || end > end0)
- throw A.wrapException(A.RangeError$range(end, start, end0, "end", null));
- if (start === end)
- return A._setArrayType([], A._arrayInstanceType(receiver));
- return A._setArrayType(receiver.slice(start, end), A._arrayInstanceType(receiver));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- getRange$2(receiver, start, end) {
- A.RangeError_checkValidRange(start, end, receiver.length);
- return A.SubListIterable$(receiver, start, end, A._arrayInstanceType(receiver)._precomputed1);
- },
- get$first(receiver) {
- if (receiver.length > 0)
- return receiver[0];
- throw A.wrapException(A.IterableElementError_noElement());
- },
- get$last(receiver) {
- var t1 = receiver.length;
- if (t1 > 0)
- return receiver[t1 - 1];
- throw A.wrapException(A.IterableElementError_noElement());
- },
- get$single(receiver) {
- var t1 = receiver.length;
- if (t1 === 1)
- return receiver[0];
- if (t1 === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- throw A.wrapException(A.IterableElementError_tooMany());
- },
- removeRange$2(receiver, start, end) {
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("removeRange"));
- A.RangeError_checkValidRange(start, end, receiver.length);
- receiver.splice(start, end - start);
- },
- setRange$4(receiver, start, end, iterable, skipCount) {
- var $length, otherList, otherStart, t1, i;
- if (!!receiver.immutable$list)
- A.throwExpression(A.UnsupportedError$("setRange"));
- A.RangeError_checkValidRange(start, end, receiver.length);
- $length = end - start;
- if ($length === 0)
- return;
- A.RangeError_checkNotNegative(skipCount, "skipCount");
- if (type$.List_dynamic._is(iterable)) {
- otherList = iterable;
- otherStart = skipCount;
- } else {
- otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
- otherStart = 0;
- }
- t1 = J.getInterceptor$asx(otherList);
- if (otherStart + $length > t1.get$length(otherList))
- throw A.wrapException(A.IterableElementError_tooFew());
- if (otherStart < start)
- for (i = $length - 1; i >= 0; --i)
- receiver[start + i] = t1.$index(otherList, otherStart + i);
- else
- for (i = 0; i < $length; ++i)
- receiver[start + i] = t1.$index(otherList, otherStart + i);
- },
- setRange$3(receiver, start, end, iterable) {
- return this.setRange$4(receiver, start, end, iterable, 0);
- },
- fillRange$3(receiver, start, end, fillValue) {
- var i;
- if (!!receiver.immutable$list)
- A.throwExpression(A.UnsupportedError$("fill range"));
- A.RangeError_checkValidRange(start, end, receiver.length);
- A._arrayInstanceType(receiver)._precomputed1._as(fillValue);
- for (i = start; i < end; ++i)
- receiver[i] = fillValue;
- },
- any$1(receiver, test) {
- var i,
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- if (test.call$1(receiver[i]))
- return true;
- if (receiver.length !== end)
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- return false;
- },
- every$1(receiver, test) {
- var i,
- end = receiver.length;
- for (i = 0; i < end; ++i) {
- if (!test.call$1(receiver[i]))
- return false;
- if (receiver.length !== end)
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- return true;
- },
- get$reversed(receiver) {
- return new A.ReversedListIterable(receiver, A._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>"));
- },
- sort$1(receiver, compare) {
- var len, a, b, undefineds, i;
- if (!!receiver.immutable$list)
- A.throwExpression(A.UnsupportedError$("sort"));
- len = receiver.length;
- if (len < 2)
- return;
- if (compare == null)
- compare = J._interceptors_JSArray__compareAny$closure();
- if (len === 2) {
- a = receiver[0];
- b = receiver[1];
- if (compare.call$2(a, b) > 0) {
- receiver[0] = b;
- receiver[1] = a;
- }
- return;
- }
- if (A._arrayInstanceType(receiver)._precomputed1._is(null)) {
- for (undefineds = 0, i = 0; i < receiver.length; ++i)
- if (receiver[i] === void 0) {
- receiver[i] = null;
- ++undefineds;
- }
- } else
- undefineds = 0;
- receiver.sort(A.convertDartClosureToJS(compare, 2));
- if (undefineds > 0)
- this._replaceSomeNullsWithUndefined$1(receiver, undefineds);
- },
- sort$0(receiver) {
- return this.sort$1(receiver, null);
- },
- _replaceSomeNullsWithUndefined$1(receiver, count) {
- var i0,
- i = receiver.length;
- for (; i0 = i - 1, i > 0; i = i0)
- if (receiver[i0] === null) {
- receiver[i0] = void 0;
- --count;
- if (count === 0)
- break;
- }
- },
- indexOf$1(receiver, element) {
- var i,
- $length = receiver.length;
- if (0 >= $length)
- return -1;
- for (i = 0; i < $length; ++i)
- if (J.$eq$(receiver[i], element))
- return i;
- return -1;
- },
- contains$1(receiver, other) {
- var i;
- for (i = 0; i < receiver.length; ++i)
- if (J.$eq$(receiver[i], other))
- return true;
- return false;
- },
- get$isEmpty(receiver) {
- return receiver.length === 0;
- },
- get$isNotEmpty(receiver) {
- return receiver.length !== 0;
- },
- toString$0(receiver) {
- return A.Iterable_iterableToFullString(receiver, "[", "]");
- },
- toList$1$growable(receiver, growable) {
- var t1 = A._setArrayType(receiver.slice(0), A._arrayInstanceType(receiver));
- return t1;
- },
- toList$0(receiver) {
- return this.toList$1$growable(receiver, true);
- },
- toSet$0(receiver) {
- return A.LinkedHashSet_LinkedHashSet$from(receiver, A._arrayInstanceType(receiver)._precomputed1);
- },
- get$iterator(receiver) {
- return new J.ArrayIterator(receiver, receiver.length, A._arrayInstanceType(receiver)._eval$1("ArrayIterator<1>"));
- },
- get$hashCode(receiver) {
- return A.Primitives_objectHashCode(receiver);
- },
- get$length(receiver) {
- return receiver.length;
- },
- set$length(receiver, newLength) {
- if (!!receiver.fixed$length)
- A.throwExpression(A.UnsupportedError$("set length"));
- if (newLength < 0)
- throw A.wrapException(A.RangeError$range(newLength, 0, null, "newLength", null));
- if (newLength > receiver.length)
- A._arrayInstanceType(receiver)._precomputed1._as(null);
- receiver.length = newLength;
- },
- $index(receiver, index) {
- if (!(index >= 0 && index < receiver.length))
- throw A.wrapException(A.diagnoseIndexError(receiver, index));
- return receiver[index];
- },
- $indexSet(receiver, index, value) {
- if (!!receiver.immutable$list)
- A.throwExpression(A.UnsupportedError$("indexed set"));
- if (!(index >= 0 && index < receiver.length))
- throw A.wrapException(A.diagnoseIndexError(receiver, index));
- receiver[index] = value;
- },
- $add(receiver, other) {
- var t1 = A.List_List$of(receiver, true, A._arrayInstanceType(receiver)._precomputed1);
- this.addAll$1(t1, other);
- return t1;
- },
- indexWhere$1(receiver, test) {
- var i;
- if (0 >= receiver.length)
- return -1;
- for (i = 0; i < receiver.length; ++i)
- if (test.call$1(receiver[i]))
- return i;
- return -1;
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isList: 1
- };
- J.JSUnmodifiableArray.prototype = {};
- J.ArrayIterator.prototype = {
- get$current(_) {
- var t1 = this._current;
- return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
- },
- moveNext$0() {
- var t2, _this = this,
- t1 = _this._iterable,
- $length = t1.length;
- if (_this._length !== $length)
- throw A.wrapException(A.throwConcurrentModificationError(t1));
- t2 = _this._index;
- if (t2 >= $length) {
- _this._current = null;
- return false;
- }
- _this._current = t1[t2];
- _this._index = t2 + 1;
- return true;
- }
- };
- J.JSNumber.prototype = {
- compareTo$1(receiver, b) {
- var bIsNegative;
- if (receiver < b)
- return -1;
- else if (receiver > b)
- return 1;
- else if (receiver === b) {
- if (receiver === 0) {
- bIsNegative = this.get$isNegative(b);
- if (this.get$isNegative(receiver) === bIsNegative)
- return 0;
- if (this.get$isNegative(receiver))
- return -1;
- return 1;
- }
- return 0;
- } else if (isNaN(receiver)) {
- if (isNaN(b))
- return 0;
- return 1;
- } else
- return -1;
- },
- get$isNegative(receiver) {
- return receiver === 0 ? 1 / receiver < 0 : receiver < 0;
- },
- get$sign(receiver) {
- var t1;
- if (receiver > 0)
- t1 = 1;
- else
- t1 = receiver < 0 ? -1 : receiver;
- return t1;
- },
- ceil$0(receiver) {
- var truncated, d;
- if (receiver >= 0) {
- if (receiver <= 2147483647) {
- truncated = receiver | 0;
- return receiver === truncated ? truncated : truncated + 1;
- }
- } else if (receiver >= -2147483648)
- return receiver | 0;
- d = Math.ceil(receiver);
- if (isFinite(d))
- return d;
- throw A.wrapException(A.UnsupportedError$("" + receiver + ".ceil()"));
- },
- floor$0(receiver) {
- var truncated, d;
- if (receiver >= 0) {
- if (receiver <= 2147483647)
- return receiver | 0;
- } else if (receiver >= -2147483648) {
- truncated = receiver | 0;
- return receiver === truncated ? truncated : truncated - 1;
- }
- d = Math.floor(receiver);
- if (isFinite(d))
- return d;
- throw A.wrapException(A.UnsupportedError$("" + receiver + ".floor()"));
- },
- round$0(receiver) {
- if (receiver > 0) {
- if (receiver !== 1 / 0)
- return Math.round(receiver);
- } else if (receiver > -1 / 0)
- return 0 - Math.round(0 - receiver);
- throw A.wrapException(A.UnsupportedError$("" + receiver + ".round()"));
- },
- clamp$2(receiver, lowerLimit, upperLimit) {
- if (B.JSInt_methods.compareTo$1(lowerLimit, upperLimit) > 0)
- throw A.wrapException(A.argumentErrorValue(lowerLimit));
- if (this.compareTo$1(receiver, lowerLimit) < 0)
- return lowerLimit;
- if (this.compareTo$1(receiver, upperLimit) > 0)
- return upperLimit;
- return receiver;
- },
- toRadixString$1(receiver, radix) {
- var result, match, exponent, t1;
- if (radix < 2 || radix > 36)
- throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", null));
- result = receiver.toString(radix);
- if (result.charCodeAt(result.length - 1) !== 41)
- return result;
- match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result);
- if (match == null)
- A.throwExpression(A.UnsupportedError$("Unexpected toString result: " + result));
- result = match[1];
- exponent = +match[3];
- t1 = match[2];
- if (t1 != null) {
- result += t1;
- exponent -= t1.length;
- }
- return result + B.JSString_methods.$mul("0", exponent);
- },
- toString$0(receiver) {
- if (receiver === 0 && 1 / receiver < 0)
- return "-0.0";
- else
- return "" + receiver;
- },
- get$hashCode(receiver) {
- var absolute, floorLog2, factor, scaled,
- intValue = receiver | 0;
- if (receiver === intValue)
- return intValue & 536870911;
- absolute = Math.abs(receiver);
- floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0;
- factor = Math.pow(2, floorLog2);
- scaled = absolute < 1 ? absolute / factor : factor / absolute;
- return ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259 & 536870911;
- },
- $mod(receiver, other) {
- var result = receiver % other;
- if (result === 0)
- return 0;
- if (result > 0)
- return result;
- if (other < 0)
- return result - other;
- else
- return result + other;
- },
- $tdiv(receiver, other) {
- if ((receiver | 0) === receiver)
- if (other >= 1 || other < -1)
- return receiver / other | 0;
- return this._tdivSlow$1(receiver, other);
- },
- _tdivFast$1(receiver, other) {
- return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other);
- },
- _tdivSlow$1(receiver, other) {
- var quotient = receiver / other;
- if (quotient >= -2147483648 && quotient <= 2147483647)
- return quotient | 0;
- if (quotient > 0) {
- if (quotient !== 1 / 0)
- return Math.floor(quotient);
- } else if (quotient > -1 / 0)
- return Math.ceil(quotient);
- throw A.wrapException(A.UnsupportedError$("Result of truncating division is " + A.S(quotient) + ": " + A.S(receiver) + " ~/ " + other));
- },
- _shrOtherPositive$1(receiver, other) {
- var t1;
- if (receiver > 0)
- t1 = this._shrBothPositive$1(receiver, other);
- else {
- t1 = other > 31 ? 31 : other;
- t1 = receiver >> t1 >>> 0;
- }
- return t1;
- },
- _shrReceiverPositive$1(receiver, other) {
- if (0 > other)
- throw A.wrapException(A.argumentErrorValue(other));
- return this._shrBothPositive$1(receiver, other);
- },
- _shrBothPositive$1(receiver, other) {
- return other > 31 ? 0 : receiver >>> other;
- },
- get$runtimeType(receiver) {
- return A.createRuntimeType(type$.num);
- },
- $isComparable: 1,
- $isdouble: 1,
- $isnum: 1
- };
- J.JSInt.prototype = {
- get$sign(receiver) {
- var t1;
- if (receiver > 0)
- t1 = 1;
- else
- t1 = receiver < 0 ? -1 : receiver;
- return t1;
- },
- get$runtimeType(receiver) {
- return A.createRuntimeType(type$.int);
- },
- $isTrustedGetRuntimeType: 1,
- $isint: 1
- };
- J.JSNumNotInt.prototype = {
- get$runtimeType(receiver) {
- return A.createRuntimeType(type$.double);
- },
- $isTrustedGetRuntimeType: 1
- };
- J.JSString.prototype = {
- codeUnitAt$1(receiver, index) {
- if (index < 0)
- throw A.wrapException(A.diagnoseIndexError(receiver, index));
- if (index >= receiver.length)
- A.throwExpression(A.diagnoseIndexError(receiver, index));
- return receiver.charCodeAt(index);
- },
- allMatches$2(receiver, string, start) {
- var t1 = string.length;
- if (start > t1)
- throw A.wrapException(A.RangeError$range(start, 0, t1, null, null));
- return new A._StringAllMatchesIterable(string, receiver, start);
- },
- allMatches$1(receiver, string) {
- return this.allMatches$2(receiver, string, 0);
- },
- matchAsPrefix$2(receiver, string, start) {
- var t1, i, _null = null;
- if (start < 0 || start > string.length)
- throw A.wrapException(A.RangeError$range(start, 0, string.length, _null, _null));
- t1 = receiver.length;
- if (start + t1 > string.length)
- return _null;
- for (i = 0; i < t1; ++i)
- if (string.charCodeAt(start + i) !== receiver.charCodeAt(i))
- return _null;
- return new A.StringMatch(start, receiver);
- },
- $add(receiver, other) {
- return receiver + other;
- },
- endsWith$1(receiver, other) {
- var otherLength = other.length,
- t1 = receiver.length;
- if (otherLength > t1)
- return false;
- return other === this.substring$1(receiver, t1 - otherLength);
- },
- replaceFirst$2(receiver, from, to) {
- A.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex");
- return A.stringReplaceFirstUnchecked(receiver, from, to, 0);
- },
- split$1(receiver, pattern) {
- if (typeof pattern == "string")
- return A._setArrayType(receiver.split(pattern), type$.JSArray_String);
- else if (pattern instanceof A.JSSyntaxRegExp && pattern.get$_nativeAnchoredVersion().exec("").length - 2 === 0)
- return A._setArrayType(receiver.split(pattern._nativeRegExp), type$.JSArray_String);
- else
- return this._defaultSplit$1(receiver, pattern);
- },
- replaceRange$3(receiver, start, end, replacement) {
- var e = A.RangeError_checkValidRange(start, end, receiver.length);
- return A.stringReplaceRangeUnchecked(receiver, start, e, replacement);
- },
- _defaultSplit$1(receiver, pattern) {
- var t1, start, $length, match, matchStart, matchEnd,
- result = A._setArrayType([], type$.JSArray_String);
- for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), start = 0, $length = 1; t1.moveNext$0();) {
- match = t1.get$current(t1);
- matchStart = match.get$start(match);
- matchEnd = match.get$end(match);
- $length = matchEnd - matchStart;
- if ($length === 0 && start === matchStart)
- continue;
- result.push(this.substring$2(receiver, start, matchStart));
- start = matchEnd;
- }
- if (start < receiver.length || $length > 0)
- result.push(this.substring$1(receiver, start));
- return result;
- },
- startsWith$2(receiver, pattern, index) {
- var endIndex;
- if (index < 0 || index > receiver.length)
- throw A.wrapException(A.RangeError$range(index, 0, receiver.length, null, null));
- if (typeof pattern == "string") {
- endIndex = index + pattern.length;
- if (endIndex > receiver.length)
- return false;
- return pattern === receiver.substring(index, endIndex);
- }
- return J.matchAsPrefix$2$s(pattern, receiver, index) != null;
- },
- startsWith$1(receiver, pattern) {
- return this.startsWith$2(receiver, pattern, 0);
- },
- substring$2(receiver, start, end) {
- return receiver.substring(start, A.RangeError_checkValidRange(start, end, receiver.length));
- },
- substring$1(receiver, start) {
- return this.substring$2(receiver, start, null);
- },
- trim$0(receiver) {
- var startIndex, t1, endIndex0,
- result = receiver.trim(),
- endIndex = result.length;
- if (endIndex === 0)
- return result;
- if (result.charCodeAt(0) === 133) {
- startIndex = J.JSString__skipLeadingWhitespace(result, 1);
- if (startIndex === endIndex)
- return "";
- } else
- startIndex = 0;
- t1 = endIndex - 1;
- endIndex0 = result.charCodeAt(t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex;
- if (startIndex === 0 && endIndex0 === endIndex)
- return result;
- return result.substring(startIndex, endIndex0);
- },
- trimLeft$0(receiver) {
- var result = receiver.trimStart();
- if (result.length === 0)
- return result;
- if (result.charCodeAt(0) !== 133)
- return result;
- return result.substring(J.JSString__skipLeadingWhitespace(result, 1));
- },
- trimRight$0(receiver) {
- var t1,
- result = receiver.trimEnd(),
- endIndex = result.length;
- if (endIndex === 0)
- return result;
- t1 = endIndex - 1;
- if (result.charCodeAt(t1) !== 133)
- return result;
- return result.substring(0, J.JSString__skipTrailingWhitespace(result, t1));
- },
- $mul(receiver, times) {
- var s, result;
- if (0 >= times)
- return "";
- if (times === 1 || receiver.length === 0)
- return receiver;
- if (times !== times >>> 0)
- throw A.wrapException(B.C_OutOfMemoryError);
- for (s = receiver, result = ""; true;) {
- if ((times & 1) === 1)
- result = s + result;
- times = times >>> 1;
- if (times === 0)
- break;
- s += s;
- }
- return result;
- },
- padLeft$2(receiver, width, padding) {
- var delta = width - receiver.length;
- if (delta <= 0)
- return receiver;
- return this.$mul(padding, delta) + receiver;
- },
- padRight$1(receiver, width) {
- var delta = width - receiver.length;
- if (delta <= 0)
- return receiver;
- return receiver + this.$mul(" ", delta);
- },
- indexOf$2(receiver, pattern, start) {
- var t1;
- if (start < 0 || start > receiver.length)
- throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null));
- t1 = receiver.indexOf(pattern, start);
- return t1;
- },
- indexOf$1(receiver, pattern) {
- return this.indexOf$2(receiver, pattern, 0);
- },
- lastIndexOf$2(receiver, pattern, start) {
- var t1, t2, i;
- if (start == null)
- start = receiver.length;
- else if (start < 0 || start > receiver.length)
- throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null));
- if (typeof pattern == "string") {
- t1 = pattern.length;
- t2 = receiver.length;
- if (start + t1 > t2)
- start = t2 - t1;
- return receiver.lastIndexOf(pattern, start);
- }
- for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i)
- if (t1.matchAsPrefix$2(pattern, receiver, i) != null)
- return i;
- return -1;
- },
- lastIndexOf$1(receiver, pattern) {
- return this.lastIndexOf$2(receiver, pattern, null);
- },
- contains$2(receiver, other, startIndex) {
- var t1 = receiver.length;
- if (startIndex > t1)
- throw A.wrapException(A.RangeError$range(startIndex, 0, t1, null, null));
- return A.stringContainsUnchecked(receiver, other, startIndex);
- },
- contains$1(receiver, other) {
- return this.contains$2(receiver, other, 0);
- },
- compareTo$1(receiver, other) {
- var t1;
- if (receiver === other)
- t1 = 0;
- else
- t1 = receiver < other ? -1 : 1;
- return t1;
- },
- toString$0(receiver) {
- return receiver;
- },
- get$hashCode(receiver) {
- var t1, hash, i;
- for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
- hash = hash + receiver.charCodeAt(i) & 536870911;
- hash = hash + ((hash & 524287) << 10) & 536870911;
- hash ^= hash >> 6;
- }
- hash = hash + ((hash & 67108863) << 3) & 536870911;
- hash ^= hash >> 11;
- return hash + ((hash & 16383) << 15) & 536870911;
- },
- get$runtimeType(receiver) {
- return A.createRuntimeType(type$.String);
- },
- get$length(receiver) {
- return receiver.length;
- },
- $isTrustedGetRuntimeType: 1,
- $isComparable: 1,
- $isString: 1
- };
- A._CastIterableBase.prototype = {
- get$iterator(_) {
- var t1 = A._instanceType(this);
- return new A.CastIterator(J.get$iterator$ax(this.get$_source()), t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastIterator<1,2>"));
- },
- get$length(_) {
- return J.get$length$asx(this.get$_source());
- },
- get$isEmpty(_) {
- return J.get$isEmpty$asx(this.get$_source());
- },
- get$isNotEmpty(_) {
- return J.get$isNotEmpty$asx(this.get$_source());
- },
- skip$1(_, count) {
- var t1 = A._instanceType(this);
- return A.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
- },
- take$1(_, count) {
- var t1 = A._instanceType(this);
- return A.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
- },
- elementAt$1(_, index) {
- return A._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index));
- },
- get$first(_) {
- return A._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source()));
- },
- get$last(_) {
- return A._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source()));
- },
- get$single(_) {
- return A._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source()));
- },
- contains$1(_, other) {
- return J.contains$1$asx(this.get$_source(), other);
- },
- toString$0(_) {
- return J.toString$0$(this.get$_source());
- }
- };
- A.CastIterator.prototype = {
- moveNext$0() {
- return this._source.moveNext$0();
- },
- get$current(_) {
- var t1 = this._source;
- return this.$ti._rest[1]._as(t1.get$current(t1));
- }
- };
- A.CastIterable.prototype = {
- get$_source() {
- return this._source;
- }
- };
- A._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1};
- A._CastListBase.prototype = {
- $index(_, index) {
- return this.$ti._rest[1]._as(J.$index$asx(this._source, index));
- },
- $indexSet(_, index, value) {
- J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value));
- },
- set$length(_, $length) {
- J.set$length$asx(this._source, $length);
- },
- add$1(_, value) {
- J.add$1$ax(this._source, this.$ti._precomputed1._as(value));
- },
- addAll$1(_, values) {
- var t1 = this.$ti;
- J.addAll$1$ax(this._source, A.CastIterable_CastIterable(values, t1._rest[1], t1._precomputed1));
- },
- sort$1(_, compare) {
- var t1 = compare == null ? null : new A._CastListBase_sort_closure(this, compare);
- J.sort$1$ax(this._source, t1);
- },
- getRange$2(_, start, end) {
- var t1 = this.$ti;
- return A.CastIterable_CastIterable(J.getRange$2$ax(this._source, start, end), t1._precomputed1, t1._rest[1]);
- },
- setRange$4(_, start, end, iterable, skipCount) {
- var t1 = this.$ti;
- J.setRange$4$ax(this._source, start, end, A.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount);
- },
- removeRange$2(_, start, end) {
- J.removeRange$2$ax(this._source, start, end);
- },
- fillRange$3(_, start, end, fillValue) {
- J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue));
- },
- $isEfficientLengthIterable: 1,
- $isList: 1
- };
- A._CastListBase_sort_closure.prototype = {
- call$2(v1, v2) {
- var t1 = this.$this.$ti._rest[1];
- return this.compare.call$2(t1._as(v1), t1._as(v2));
- },
- $signature() {
- return this.$this.$ti._eval$1("int(1,1)");
- }
- };
- A.CastList.prototype = {
- cast$1$0(_, $R) {
- return new A.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
- },
- get$_source() {
- return this._source;
- }
- };
- A.CastSet.prototype = {
- add$1(_, value) {
- return this._source.add$1(0, this.$ti._precomputed1._as(value));
- },
- addAll$1(_, elements) {
- var t1 = this.$ti;
- this._source.addAll$1(0, A.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1));
- },
- difference$1(other) {
- var t1, _this = this;
- if (_this._emptySet != null)
- return _this._conditionalAdd$2(other, false);
- t1 = _this.$ti;
- return new A.CastSet(_this._source.difference$1(other), null, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("CastSet<1,2>"));
- },
- _conditionalAdd$2(other, otherContains) {
- var t3, castElement,
- emptySet = this._emptySet,
- t1 = this.$ti,
- t2 = t1._rest[1],
- result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t2) : emptySet.call$1$0(t2);
- for (t2 = this._source, t2 = t2.get$iterator(t2), t3 = other._source, t1 = t1._rest[1]; t2.moveNext$0();) {
- castElement = t1._as(t2.get$current(t2));
- if (otherContains === t3.contains$1(0, castElement))
- result.add$1(0, castElement);
- }
- return result;
- },
- toSet$0(_) {
- var emptySet = this._emptySet,
- t1 = this.$ti._rest[1],
- result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t1) : emptySet.call$1$0(t1);
- result.addAll$1(0, this);
- return result;
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1,
- get$_source() {
- return this._source;
- }
- };
- A.CastMap.prototype = {
- cast$2$0(_, RK, RV) {
- var t1 = this.$ti;
- return new A.CastMap(this._source, t1._eval$1("@<1>")._bind$1(t1._rest[1])._bind$1(RK)._bind$1(RV)._eval$1("CastMap<1,2,3,4>"));
- },
- containsKey$1(key) {
- return this._source.containsKey$1(key);
- },
- $index(_, key) {
- return this.$ti._eval$1("4?")._as(this._source.$index(0, key));
- },
- $indexSet(_, key, value) {
- var t1 = this.$ti;
- this._source.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value));
- },
- addAll$1(_, other) {
- var t1 = this.$ti;
- this._source.addAll$1(0, new A.CastMap(other, t1._eval$1("@<3>")._bind$1(t1._rest[3])._bind$1(t1._precomputed1)._bind$1(t1._rest[1])._eval$1("CastMap<1,2,3,4>")));
- },
- remove$1(_, key) {
- return this.$ti._eval$1("4?")._as(this._source.remove$1(0, key));
- },
- forEach$1(_, f) {
- this._source.forEach$1(0, new A.CastMap_forEach_closure(this, f));
- },
- get$keys(_) {
- var t1 = this._source,
- t2 = this.$ti;
- return A.CastIterable_CastIterable(t1.get$keys(t1), t2._precomputed1, t2._rest[2]);
- },
- get$values(_) {
- var t1 = this._source,
- t2 = this.$ti;
- return A.CastIterable_CastIterable(t1.get$values(t1), t2._rest[1], t2._rest[3]);
- },
- get$length(_) {
- var t1 = this._source;
- return t1.get$length(t1);
- },
- get$isEmpty(_) {
- var t1 = this._source;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty(_) {
- var t1 = this._source;
- return t1.get$isNotEmpty(t1);
- },
- get$entries(_) {
- var t1 = this._source;
- return t1.get$entries(t1).map$1$1(0, new A.CastMap_entries_closure(this), this.$ti._eval$1("MapEntry<3,4>"));
- }
- };
- A.CastMap_forEach_closure.prototype = {
- call$2(key, value) {
- var t1 = this.$this.$ti;
- this.f.call$2(t1._rest[2]._as(key), t1._rest[3]._as(value));
- },
- $signature() {
- return this.$this.$ti._eval$1("~(1,2)");
- }
- };
- A.CastMap_entries_closure.prototype = {
- call$1(e) {
- var t1 = this.$this.$ti,
- t2 = t1._rest[3];
- return new A.MapEntry(t1._rest[2]._as(e.key), t2._as(e.value), t1._eval$1("@<3>")._bind$1(t2)._eval$1("MapEntry<1,2>"));
- },
- $signature() {
- return this.$this.$ti._eval$1("MapEntry<3,4>(MapEntry<1,2>)");
- }
- };
- A.LateError.prototype = {
- toString$0(_) {
- return "LateInitializationError: " + this._message;
- }
- };
- A.ReachabilityError.prototype = {
- toString$0(_) {
- return "ReachabilityError: " + this._message;
- }
- };
- A.CodeUnits.prototype = {
- get$length(_) {
- return this._string.length;
- },
- $index(_, i) {
- return this._string.charCodeAt(i);
- }
- };
- A.nullFuture_closure.prototype = {
- call$0() {
- return A.Future_Future$value(null, type$.Null);
- },
- $signature: 2
- };
- A.SentinelValue.prototype = {};
- A.EfficientLengthIterable.prototype = {};
- A.ListIterable.prototype = {
- get$iterator(_) {
- var _this = this;
- return new A.ListIterator(_this, _this.get$length(_this), A._instanceType(_this)._eval$1("ListIterator<ListIterable.E>"));
- },
- get$isEmpty(_) {
- return this.get$length(this) === 0;
- },
- get$first(_) {
- if (this.get$length(this) === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- return this.elementAt$1(0, 0);
- },
- get$last(_) {
- var _this = this;
- if (_this.get$length(_this) === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- return _this.elementAt$1(0, _this.get$length(_this) - 1);
- },
- get$single(_) {
- var _this = this;
- if (_this.get$length(_this) === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- if (_this.get$length(_this) > 1)
- throw A.wrapException(A.IterableElementError_tooMany());
- return _this.elementAt$1(0, 0);
- },
- contains$1(_, element) {
- var i, _this = this,
- $length = _this.get$length(_this);
- for (i = 0; i < $length; ++i) {
- if (J.$eq$(_this.elementAt$1(0, i), element))
- return true;
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return false;
- },
- every$1(_, test) {
- var i, _this = this,
- $length = _this.get$length(_this);
- for (i = 0; i < $length; ++i) {
- if (!test.call$1(_this.elementAt$1(0, i)))
- return false;
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return true;
- },
- any$1(_, test) {
- var i, _this = this,
- $length = _this.get$length(_this);
- for (i = 0; i < $length; ++i) {
- if (test.call$1(_this.elementAt$1(0, i)))
- return true;
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return false;
- },
- join$1(_, separator) {
- var first, t1, i, _this = this,
- $length = _this.get$length(_this);
- if (separator.length !== 0) {
- if ($length === 0)
- return "";
- first = A.S(_this.elementAt$1(0, 0));
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- for (t1 = first, i = 1; i < $length; ++i) {
- t1 = t1 + separator + A.S(_this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else {
- for (i = 0, t1 = ""; i < $length; ++i) {
- t1 += A.S(_this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- },
- join$0(_) {
- return this.join$1(0, "");
- },
- where$1(_, test) {
- return this.super$Iterable$where(0, test);
- },
- map$1$1(_, toElement, $T) {
- return new A.MappedListIterable(this, toElement, A._instanceType(this)._eval$1("@<ListIterable.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
- },
- reduce$1(_, combine) {
- var value, i, _this = this,
- $length = _this.get$length(_this);
- if ($length === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- value = _this.elementAt$1(0, 0);
- for (i = 1; i < $length; ++i) {
- value = combine.call$2(value, _this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return value;
- },
- fold$1$2(_, initialValue, combine) {
- var value, i, _this = this,
- $length = _this.get$length(_this);
- for (value = initialValue, i = 0; i < $length; ++i) {
- value = combine.call$2(value, _this.elementAt$1(0, i));
- if ($length !== _this.get$length(_this))
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return value;
- },
- fold$2(_, initialValue, combine) {
- return this.fold$1$2(0, initialValue, combine, type$.dynamic);
- },
- skip$1(_, count) {
- return A.SubListIterable$(this, count, null, A._instanceType(this)._eval$1("ListIterable.E"));
- },
- take$1(_, count) {
- return A.SubListIterable$(this, 0, A.checkNotNullable(count, "count", type$.int), A._instanceType(this)._eval$1("ListIterable.E"));
- },
- toList$1$growable(_, growable) {
- return A.List_List$of(this, true, A._instanceType(this)._eval$1("ListIterable.E"));
- },
- toList$0(_) {
- return this.toList$1$growable(0, true);
- },
- toSet$0(_) {
- var i, _this = this,
- result = A.LinkedHashSet_LinkedHashSet(A._instanceType(_this)._eval$1("ListIterable.E"));
- for (i = 0; i < _this.get$length(_this); ++i)
- result.add$1(0, _this.elementAt$1(0, i));
- return result;
- }
- };
- A.SubListIterable.prototype = {
- SubListIterable$3(_iterable, _start, _endOrLength, $E) {
- var endOrLength,
- t1 = this._start;
- A.RangeError_checkNotNegative(t1, "start");
- endOrLength = this._endOrLength;
- if (endOrLength != null) {
- A.RangeError_checkNotNegative(endOrLength, "end");
- if (t1 > endOrLength)
- throw A.wrapException(A.RangeError$range(t1, 0, endOrLength, "start", null));
- }
- },
- get$_endIndex() {
- var $length = J.get$length$asx(this.__internal$_iterable),
- endOrLength = this._endOrLength;
- if (endOrLength == null || endOrLength > $length)
- return $length;
- return endOrLength;
- },
- get$_startIndex() {
- var $length = J.get$length$asx(this.__internal$_iterable),
- t1 = this._start;
- if (t1 > $length)
- return $length;
- return t1;
- },
- get$length(_) {
- var endOrLength,
- $length = J.get$length$asx(this.__internal$_iterable),
- t1 = this._start;
- if (t1 >= $length)
- return 0;
- endOrLength = this._endOrLength;
- if (endOrLength == null || endOrLength >= $length)
- return $length - t1;
- return endOrLength - t1;
- },
- elementAt$1(_, index) {
- var _this = this,
- realIndex = _this.get$_startIndex() + index;
- if (index < 0 || realIndex >= _this.get$_endIndex())
- throw A.wrapException(A.IndexError$withLength(index, _this.get$length(0), _this, null, "index"));
- return J.elementAt$1$ax(_this.__internal$_iterable, realIndex);
- },
- skip$1(_, count) {
- var newStart, endOrLength, _this = this;
- A.RangeError_checkNotNegative(count, "count");
- newStart = _this._start + count;
- endOrLength = _this._endOrLength;
- if (endOrLength != null && newStart >= endOrLength)
- return new A.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>"));
- return A.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1);
- },
- take$1(_, count) {
- var endOrLength, t1, newEnd, _this = this;
- A.RangeError_checkNotNegative(count, "count");
- endOrLength = _this._endOrLength;
- t1 = _this._start;
- newEnd = t1 + count;
- if (endOrLength == null)
- return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
- else {
- if (endOrLength < newEnd)
- return _this;
- return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
- }
- },
- toList$1$growable(_, growable) {
- var $length, result, i, _this = this,
- start = _this._start,
- t1 = _this.__internal$_iterable,
- t2 = J.getInterceptor$asx(t1),
- end = t2.get$length(t1),
- endOrLength = _this._endOrLength;
- if (endOrLength != null && endOrLength < end)
- end = endOrLength;
- $length = end - start;
- if ($length <= 0) {
- t1 = _this.$ti._precomputed1;
- return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
- }
- result = A.List_List$filled($length, t2.elementAt$1(t1, start), growable, _this.$ti._precomputed1);
- for (i = 1; i < $length; ++i) {
- result[i] = t2.elementAt$1(t1, start + i);
- if (t2.get$length(t1) < end)
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- return result;
- },
- toList$0(_) {
- return this.toList$1$growable(0, true);
- }
- };
- A.ListIterator.prototype = {
- get$current(_) {
- var t1 = this.__internal$_current;
- return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
- },
- moveNext$0() {
- var t3, _this = this,
- t1 = _this.__internal$_iterable,
- t2 = J.getInterceptor$asx(t1),
- $length = t2.get$length(t1);
- if (_this.__internal$_length !== $length)
- throw A.wrapException(A.ConcurrentModificationError$(t1));
- t3 = _this.__internal$_index;
- if (t3 >= $length) {
- _this.__internal$_current = null;
- return false;
- }
- _this.__internal$_current = t2.elementAt$1(t1, t3);
- ++_this.__internal$_index;
- return true;
- }
- };
- A.MappedIterable.prototype = {
- get$iterator(_) {
- var t1 = A._instanceType(this);
- return new A.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("MappedIterator<1,2>"));
- },
- get$length(_) {
- return J.get$length$asx(this.__internal$_iterable);
- },
- get$isEmpty(_) {
- return J.get$isEmpty$asx(this.__internal$_iterable);
- },
- get$first(_) {
- return this._f.call$1(J.get$first$ax(this.__internal$_iterable));
- },
- get$last(_) {
- return this._f.call$1(J.get$last$ax(this.__internal$_iterable));
- },
- get$single(_) {
- return this._f.call$1(J.get$single$ax(this.__internal$_iterable));
- },
- elementAt$1(_, index) {
- return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index));
- }
- };
- A.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1};
- A.MappedIterator.prototype = {
- moveNext$0() {
- var _this = this,
- t1 = _this._iterator;
- if (t1.moveNext$0()) {
- _this.__internal$_current = _this._f.call$1(t1.get$current(t1));
- return true;
- }
- _this.__internal$_current = null;
- return false;
- },
- get$current(_) {
- var t1 = this.__internal$_current;
- return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
- }
- };
- A.MappedListIterable.prototype = {
- get$length(_) {
- return J.get$length$asx(this._source);
- },
- elementAt$1(_, index) {
- return this._f.call$1(J.elementAt$1$ax(this._source, index));
- }
- };
- A.WhereIterable.prototype = {
- get$iterator(_) {
- return new A.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
- },
- map$1$1(_, toElement, $T) {
- return new A.MappedIterable(this, toElement, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
- }
- };
- A.WhereIterator.prototype = {
- moveNext$0() {
- var t1, t2;
- for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();)
- if (t2.call$1(t1.get$current(t1)))
- return true;
- return false;
- },
- get$current(_) {
- var t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- A.ExpandIterable.prototype = {
- get$iterator(_) {
- var t1 = this.$ti;
- return new A.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, B.C_EmptyIterator, t1._eval$1("@<1>")._bind$1(t1._rest[1])._eval$1("ExpandIterator<1,2>"));
- }
- };
- A.ExpandIterator.prototype = {
- get$current(_) {
- var t1 = this.__internal$_current;
- return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
- },
- moveNext$0() {
- var t2, t3, _this = this,
- t1 = _this._currentExpansion;
- if (t1 == null)
- return false;
- for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) {
- _this.__internal$_current = null;
- if (t2.moveNext$0()) {
- _this._currentExpansion = null;
- t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2)));
- _this._currentExpansion = t1;
- } else
- return false;
- }
- t1 = _this._currentExpansion;
- _this.__internal$_current = t1.get$current(t1);
- return true;
- }
- };
- A.TakeIterable.prototype = {
- get$iterator(_) {
- return new A.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount, A._instanceType(this)._eval$1("TakeIterator<1>"));
- }
- };
- A.EfficientLengthTakeIterable.prototype = {
- get$length(_) {
- var iterableLength = J.get$length$asx(this.__internal$_iterable),
- t1 = this._takeCount;
- if (iterableLength > t1)
- return t1;
- return iterableLength;
- },
- $isEfficientLengthIterable: 1
- };
- A.TakeIterator.prototype = {
- moveNext$0() {
- if (--this._remaining >= 0)
- return this._iterator.moveNext$0();
- this._remaining = -1;
- return false;
- },
- get$current(_) {
- var t1;
- if (this._remaining < 0) {
- this.$ti._precomputed1._as(null);
- return null;
- }
- t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- A.SkipIterable.prototype = {
- skip$1(_, count) {
- A.ArgumentError_checkNotNull(count, "count");
- A.RangeError_checkNotNegative(count, "count");
- return new A.SkipIterable(this.__internal$_iterable, this._skipCount + count, A._instanceType(this)._eval$1("SkipIterable<1>"));
- },
- get$iterator(_) {
- return new A.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount);
- }
- };
- A.EfficientLengthSkipIterable.prototype = {
- get$length(_) {
- var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount;
- if ($length >= 0)
- return $length;
- return 0;
- },
- skip$1(_, count) {
- A.ArgumentError_checkNotNull(count, "count");
- A.RangeError_checkNotNegative(count, "count");
- return new A.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti);
- },
- $isEfficientLengthIterable: 1
- };
- A.SkipIterator.prototype = {
- moveNext$0() {
- var t1, i;
- for (t1 = this._iterator, i = 0; i < this._skipCount; ++i)
- t1.moveNext$0();
- this._skipCount = 0;
- return t1.moveNext$0();
- },
- get$current(_) {
- var t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- A.SkipWhileIterable.prototype = {
- get$iterator(_) {
- return new A.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
- }
- };
- A.SkipWhileIterator.prototype = {
- moveNext$0() {
- var t1, t2, _this = this;
- if (!_this._hasSkipped) {
- _this._hasSkipped = true;
- for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();)
- if (!t2.call$1(t1.get$current(t1)))
- return true;
- }
- return _this._iterator.moveNext$0();
- },
- get$current(_) {
- var t1 = this._iterator;
- return t1.get$current(t1);
- }
- };
- A.EmptyIterable.prototype = {
- get$iterator(_) {
- return B.C_EmptyIterator;
- },
- get$isEmpty(_) {
- return true;
- },
- get$length(_) {
- return 0;
- },
- get$first(_) {
- throw A.wrapException(A.IterableElementError_noElement());
- },
- get$last(_) {
- throw A.wrapException(A.IterableElementError_noElement());
- },
- get$single(_) {
- throw A.wrapException(A.IterableElementError_noElement());
- },
- elementAt$1(_, index) {
- throw A.wrapException(A.RangeError$range(index, 0, 0, "index", null));
- },
- contains$1(_, element) {
- return false;
- },
- every$1(_, test) {
- return true;
- },
- any$1(_, test) {
- return false;
- },
- join$1(_, separator) {
- return "";
- },
- where$1(_, test) {
- return this;
- },
- map$1$1(_, toElement, $T) {
- return new A.EmptyIterable($T._eval$1("EmptyIterable<0>"));
- },
- skip$1(_, count) {
- A.RangeError_checkNotNegative(count, "count");
- return this;
- },
- take$1(_, count) {
- A.RangeError_checkNotNegative(count, "count");
- return this;
- },
- toList$1$growable(_, growable) {
- var t1 = J.JSArray_JSArray$growable(0, this.$ti._precomputed1);
- return t1;
- },
- toList$0(_) {
- return this.toList$1$growable(0, true);
- },
- toSet$0(_) {
- return A.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
- }
- };
- A.EmptyIterator.prototype = {
- moveNext$0() {
- return false;
- },
- get$current(_) {
- throw A.wrapException(A.IterableElementError_noElement());
- }
- };
- A.FollowedByIterable.prototype = {
- get$iterator(_) {
- return new A.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second);
- },
- get$length(_) {
- var t1 = this._second;
- return J.get$length$asx(this.__internal$_first) + t1.get$length(t1);
- },
- get$isEmpty(_) {
- var t1;
- if (J.get$isEmpty$asx(this.__internal$_first)) {
- t1 = this._second;
- t1 = t1.get$isEmpty(t1);
- } else
- t1 = false;
- return t1;
- },
- get$isNotEmpty(_) {
- var t1;
- if (!J.get$isNotEmpty$asx(this.__internal$_first)) {
- t1 = this._second;
- t1 = t1.get$isNotEmpty(t1);
- } else
- t1 = true;
- return t1;
- },
- contains$1(_, value) {
- var t1;
- if (!J.contains$1$asx(this.__internal$_first, value)) {
- t1 = this._second;
- t1 = t1.contains$1(t1, value);
- } else
- t1 = true;
- return t1;
- },
- get$first(_) {
- var t1,
- iterator = J.get$iterator$ax(this.__internal$_first);
- if (iterator.moveNext$0())
- return iterator.get$current(iterator);
- t1 = this._second;
- return t1.get$first(t1);
- },
- get$last(_) {
- var last,
- t1 = this._second,
- iterator = t1.get$iterator(t1);
- if (iterator.moveNext$0()) {
- last = iterator.get$current(iterator);
- for (; iterator.moveNext$0();)
- last = iterator.get$current(iterator);
- return last;
- }
- return J.get$last$ax(this.__internal$_first);
- }
- };
- A.EfficientLengthFollowedByIterable.prototype = {
- elementAt$1(_, index) {
- var t1 = this.__internal$_first,
- t2 = J.getInterceptor$asx(t1),
- firstLength = t2.get$length(t1);
- if (index < firstLength)
- return t2.elementAt$1(t1, index);
- t1 = this._second;
- return t1.elementAt$1(t1, index - firstLength);
- },
- get$first(_) {
- var t1 = this.__internal$_first,
- t2 = J.getInterceptor$asx(t1);
- if (t2.get$isNotEmpty(t1))
- return t2.get$first(t1);
- t1 = this._second;
- return t1.get$first(t1);
- },
- get$last(_) {
- var t1 = this._second;
- if (t1.get$isNotEmpty(t1))
- return t1.get$last(t1);
- return J.get$last$ax(this.__internal$_first);
- },
- $isEfficientLengthIterable: 1
- };
- A.FollowedByIterator.prototype = {
- moveNext$0() {
- var t1, _this = this;
- if (_this._currentIterator.moveNext$0())
- return true;
- t1 = _this._nextIterable;
- if (t1 != null) {
- t1 = t1.get$iterator(t1);
- _this._currentIterator = t1;
- _this._nextIterable = null;
- return t1.moveNext$0();
- }
- return false;
- },
- get$current(_) {
- var t1 = this._currentIterator;
- return t1.get$current(t1);
- }
- };
- A.WhereTypeIterable.prototype = {
- get$iterator(_) {
- return new A.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>"));
- }
- };
- A.WhereTypeIterator.prototype = {
- moveNext$0() {
- var t1, t2;
- for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();)
- if (t2._is(t1.get$current(t1)))
- return true;
- return false;
- },
- get$current(_) {
- var t1 = this._source;
- return this.$ti._precomputed1._as(t1.get$current(t1));
- }
- };
- A.FixedLengthListMixin.prototype = {
- set$length(receiver, newLength) {
- throw A.wrapException(A.UnsupportedError$("Cannot change the length of a fixed-length list"));
- },
- add$1(receiver, value) {
- throw A.wrapException(A.UnsupportedError$("Cannot add to a fixed-length list"));
- },
- addAll$1(receiver, iterable) {
- throw A.wrapException(A.UnsupportedError$("Cannot add to a fixed-length list"));
- },
- removeRange$2(receiver, start, end) {
- throw A.wrapException(A.UnsupportedError$("Cannot remove from a fixed-length list"));
- }
- };
- A.UnmodifiableListMixin.prototype = {
- $indexSet(_, index, value) {
- throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
- },
- set$length(_, newLength) {
- throw A.wrapException(A.UnsupportedError$("Cannot change the length of an unmodifiable list"));
- },
- add$1(_, value) {
- throw A.wrapException(A.UnsupportedError$("Cannot add to an unmodifiable list"));
- },
- addAll$1(_, iterable) {
- throw A.wrapException(A.UnsupportedError$("Cannot add to an unmodifiable list"));
- },
- sort$1(_, compare) {
- throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
- },
- setRange$4(_, start, end, iterable, skipCount) {
- throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
- },
- removeRange$2(_, start, end) {
- throw A.wrapException(A.UnsupportedError$("Cannot remove from an unmodifiable list"));
- },
- fillRange$3(_, start, end, fillValue) {
- throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
- }
- };
- A.UnmodifiableListBase.prototype = {};
- A.ReversedListIterable.prototype = {
- get$length(_) {
- return J.get$length$asx(this._source);
- },
- elementAt$1(_, index) {
- var t1 = this._source,
- t2 = J.getInterceptor$asx(t1);
- return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index);
- }
- };
- A.Symbol.prototype = {
- get$hashCode(_) {
- var hash = this._hashCode;
- if (hash != null)
- return hash;
- hash = 664597 * B.JSString_methods.get$hashCode(this.__internal$_name) & 536870911;
- this._hashCode = hash;
- return hash;
- },
- toString$0(_) {
- return 'Symbol("' + this.__internal$_name + '")';
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.Symbol && this.__internal$_name === other.__internal$_name;
- },
- $isSymbol0: 1
- };
- A.__CastListBase__CastIterableBase_ListMixin.prototype = {};
- A._Record_1.prototype = {$recipe: "+(1)", $shape: 1};
- A._Record_2.prototype = {$recipe: "+(1,2)", $shape: 2};
- A._Record_2_forImport.prototype = {$recipe: "+forImport(1,2)", $shape: 3};
- A._Record_2_imports_modules.prototype = {$recipe: "+imports,modules(1,2)", $shape: 5};
- A._Record_2_loadedUrls_stylesheet.prototype = {$recipe: "+loadedUrls,stylesheet(1,2)", $shape: 6};
- A._Record_2_sourceMap.prototype = {$recipe: "+sourceMap(1,2)", $shape: 4};
- A._Record_3.prototype = {$recipe: "+(1,2,3)", $shape: 7};
- A._Record_3_forImport.prototype = {$recipe: "+forImport(1,2,3)", $shape: 8};
- A._Record_3_importer_isDependency.prototype = {$recipe: "+importer,isDependency(1,2,3)", $shape: 10};
- A._Record_3_originalUrl.prototype = {$recipe: "+originalUrl(1,2,3)", $shape: 9};
- A._Record_5_named_namedNodes_positional_positionalNodes_separator.prototype = {$recipe: "+named,namedNodes,positional,positionalNodes,separator(1,2,3,4,5)", $shape: 12};
- A.ConstantMapView.prototype = {};
- A.ConstantMap.prototype = {
- cast$2$0(_, RK, RV) {
- var t1 = A._instanceType(this);
- return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], RK, RV);
- },
- get$isEmpty(_) {
- return this.get$length(this) === 0;
- },
- get$isNotEmpty(_) {
- return this.get$length(this) !== 0;
- },
- toString$0(_) {
- return A.MapBase_mapToString(this);
- },
- $indexSet(_, key, value) {
- A.ConstantMap__throwUnmodifiable();
- },
- remove$1(_, key) {
- A.ConstantMap__throwUnmodifiable();
- },
- addAll$1(_, other) {
- A.ConstantMap__throwUnmodifiable();
- },
- get$entries(_) {
- return new A._SyncStarIterable(this.entries$body$ConstantMap(0), A._instanceType(this)._eval$1("_SyncStarIterable<MapEntry<1,2>>"));
- },
- entries$body$ConstantMap($async$_) {
- var $async$self = this;
- return function() {
- var _ = $async$_;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key;
- return function $async$get$entries($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.get$keys($async$self), t1 = t1.get$iterator(t1), t2 = A._instanceType($async$self), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("MapEntry<1,2>");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- key = t1.get$current(t1);
- $async$goto = 4;
- return $async$iterator._async$_current = new A.MapEntry(key, $async$self.$index(0, key), t2), 1;
- case 4:
- // after yield
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- $isMap: 1
- };
- A.ConstantStringMap.prototype = {
- get$length(_) {
- return this._values.length;
- },
- get$_keys() {
- var keys = this.$keys;
- if (keys == null) {
- keys = Object.keys(this._jsIndex);
- this.$keys = keys;
- }
- return keys;
- },
- containsKey$1(key) {
- if (typeof key != "string")
- return false;
- if ("__proto__" === key)
- return false;
- return this._jsIndex.hasOwnProperty(key);
- },
- $index(_, key) {
- if (!this.containsKey$1(key))
- return null;
- return this._values[this._jsIndex[key]];
- },
- forEach$1(_, f) {
- var t1, i,
- keys = this.get$_keys(),
- values = this._values;
- for (t1 = keys.length, i = 0; i < t1; ++i)
- f.call$2(keys[i], values[i]);
- },
- get$keys(_) {
- return new A._KeysOrValues(this.get$_keys(), this.$ti._eval$1("_KeysOrValues<1>"));
- },
- get$values(_) {
- return new A._KeysOrValues(this._values, this.$ti._eval$1("_KeysOrValues<2>"));
- }
- };
- A._KeysOrValues.prototype = {
- get$length(_) {
- return this._elements.length;
- },
- get$isEmpty(_) {
- return 0 === this._elements.length;
- },
- get$isNotEmpty(_) {
- return 0 !== this._elements.length;
- },
- get$iterator(_) {
- var t1 = this._elements;
- return new A._KeysOrValuesOrElementsIterator(t1, t1.length, this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>"));
- }
- };
- A._KeysOrValuesOrElementsIterator.prototype = {
- get$current(_) {
- var t1 = this.__js_helper$_current;
- return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
- },
- moveNext$0() {
- var _this = this,
- t1 = _this.__js_helper$_index;
- if (t1 >= _this.__js_helper$_length) {
- _this.__js_helper$_current = null;
- return false;
- }
- _this.__js_helper$_current = _this._elements[t1];
- _this.__js_helper$_index = t1 + 1;
- return true;
- }
- };
- A.ConstantSet.prototype = {
- add$1(_, value) {
- A.ConstantSet__throwUnmodifiable();
- },
- addAll$1(_, elements) {
- A.ConstantSet__throwUnmodifiable();
- },
- remove$1(_, value) {
- A.ConstantSet__throwUnmodifiable();
- }
- };
- A.ConstantStringSet.prototype = {
- get$length(_) {
- return this.__js_helper$_length;
- },
- get$isEmpty(_) {
- return this.__js_helper$_length === 0;
- },
- get$isNotEmpty(_) {
- return this.__js_helper$_length !== 0;
- },
- get$iterator(_) {
- var t1, _this = this,
- keys = _this.$keys;
- if (keys == null) {
- keys = Object.keys(_this._jsIndex);
- _this.$keys = keys;
- }
- t1 = keys;
- return new A._KeysOrValuesOrElementsIterator(t1, t1.length, _this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>"));
- },
- contains$1(_, key) {
- if (typeof key != "string")
- return false;
- if ("__proto__" === key)
- return false;
- return this._jsIndex.hasOwnProperty(key);
- },
- toSet$0(_) {
- return A.LinkedHashSet_LinkedHashSet$of(this, this.$ti._precomputed1);
- }
- };
- A.GeneralConstantSet.prototype = {
- get$length(_) {
- return this._elements.length;
- },
- get$isEmpty(_) {
- return this._elements.length === 0;
- },
- get$isNotEmpty(_) {
- return this._elements.length !== 0;
- },
- get$iterator(_) {
- var t1 = this._elements;
- return new A._KeysOrValuesOrElementsIterator(t1, t1.length, this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>"));
- },
- _getMap$0() {
- var t1, t2, _i, key, _this = this,
- backingMap = _this.$map;
- if (backingMap == null) {
- t1 = _this.$ti;
- backingMap = new A.JsConstantLinkedHashMap(t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("JsConstantLinkedHashMap<1,2>"));
- for (t1 = _this._elements, t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- key = t1[_i];
- backingMap.$indexSet(0, key, key);
- }
- _this.$map = backingMap;
- }
- return backingMap;
- },
- contains$1(_, key) {
- return this._getMap$0().containsKey$1(key);
- },
- toSet$0(_) {
- return A.LinkedHashSet_LinkedHashSet$of(this, this.$ti._precomputed1);
- }
- };
- A.Instantiation.prototype = {
- Instantiation$1(_genericClosure) {
- if (false)
- A.instantiatedGenericFunctionType(0, 0);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.Instantiation && this._genericClosure.$eq(0, other._genericClosure) && A.getRuntimeTypeOfClosure(this) === A.getRuntimeTypeOfClosure(other);
- },
- get$hashCode(_) {
- return A.Object_hash(this._genericClosure, A.getRuntimeTypeOfClosure(this), B.C_SentinelValue, B.C_SentinelValue);
- },
- toString$0(_) {
- var t1 = B.JSArray_methods.join$1(this.get$_types(), ", ");
- return this._genericClosure.toString$0(0) + " with " + ("<" + t1 + ">");
- }
- };
- A.Instantiation1.prototype = {
- get$_types() {
- return [A.createRuntimeType(this.$ti._precomputed1)];
- },
- call$0() {
- return this._genericClosure.call$1$0(this.$ti._rest[0]);
- },
- call$2(a0, a1) {
- return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]);
- },
- call$3(a0, a1, a2) {
- return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]);
- },
- call$4(a0, a1, a2, a3) {
- return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]);
- },
- $signature() {
- return A.instantiatedGenericFunctionType(A.closureFunctionType(this._genericClosure), this.$ti);
- }
- };
- A.JSInvocationMirror.prototype = {
- get$memberName() {
- var t1 = this.__js_helper$_memberName;
- if (t1 instanceof A.Symbol)
- return t1;
- return this.__js_helper$_memberName = new A.Symbol(t1);
- },
- get$positionalArguments() {
- var t1, t2, argumentCount, list, index, _this = this;
- if (_this.__js_helper$_kind === 1)
- return B.List_empty6;
- t1 = _this._arguments;
- t2 = J.getInterceptor$asx(t1);
- argumentCount = t2.get$length(t1) - J.get$length$asx(_this._namedArgumentNames) - _this._typeArgumentCount;
- if (argumentCount === 0)
- return B.List_empty6;
- list = [];
- for (index = 0; index < argumentCount; ++index)
- list.push(t2.$index(t1, index));
- return J.JSArray_markUnmodifiableList(list);
- },
- get$namedArguments() {
- var t1, t2, namedArgumentCount, t3, t4, namedArgumentsStartIndex, map, i, _this = this;
- if (_this.__js_helper$_kind !== 0)
- return B.Map_empty3;
- t1 = _this._namedArgumentNames;
- t2 = J.getInterceptor$asx(t1);
- namedArgumentCount = t2.get$length(t1);
- t3 = _this._arguments;
- t4 = J.getInterceptor$asx(t3);
- namedArgumentsStartIndex = t4.get$length(t3) - namedArgumentCount - _this._typeArgumentCount;
- if (namedArgumentCount === 0)
- return B.Map_empty3;
- map = new A.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic);
- for (i = 0; i < namedArgumentCount; ++i)
- map.$indexSet(0, new A.Symbol(t2.$index(t1, i)), t4.$index(t3, namedArgumentsStartIndex + i));
- return new A.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic);
- }
- };
- A.Primitives_functionNoSuchMethod_closure.prototype = {
- call$2($name, argument) {
- var t1 = this._box_0;
- t1.names = t1.names + "$" + $name;
- this.namedArgumentList.push($name);
- this.$arguments.push(argument);
- ++t1.argumentCount;
- },
- $signature: 114
- };
- A.TypeErrorDecoder.prototype = {
- matchTypeError$1(message) {
- var result, t1, _this = this,
- match = new RegExp(_this._pattern).exec(message);
- if (match == null)
- return null;
- result = Object.create(null);
- t1 = _this._arguments;
- if (t1 !== -1)
- result.arguments = match[t1 + 1];
- t1 = _this._argumentsExpr;
- if (t1 !== -1)
- result.argumentsExpr = match[t1 + 1];
- t1 = _this._expr;
- if (t1 !== -1)
- result.expr = match[t1 + 1];
- t1 = _this._method;
- if (t1 !== -1)
- result.method = match[t1 + 1];
- t1 = _this._receiver;
- if (t1 !== -1)
- result.receiver = match[t1 + 1];
- return result;
- }
- };
- A.NullError.prototype = {
- toString$0(_) {
- return "Null check operator used on a null value";
- }
- };
- A.JsNoSuchMethodError.prototype = {
- toString$0(_) {
- var t2, _this = this,
- _s38_ = "NoSuchMethodError: method not found: '",
- t1 = _this._method;
- if (t1 == null)
- return "NoSuchMethodError: " + _this.__js_helper$_message;
- t2 = _this._receiver;
- if (t2 == null)
- return _s38_ + t1 + "' (" + _this.__js_helper$_message + ")";
- return _s38_ + t1 + "' on '" + t2 + "' (" + _this.__js_helper$_message + ")";
- }
- };
- A.UnknownJsTypeError.prototype = {
- toString$0(_) {
- var t1 = this.__js_helper$_message;
- return t1.length === 0 ? "Error" : "Error: " + t1;
- }
- };
- A.NullThrownFromJavaScriptException.prototype = {
- toString$0(_) {
- return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)";
- },
- $isException: 1
- };
- A.ExceptionAndStackTrace.prototype = {};
- A._StackTrace.prototype = {
- toString$0(_) {
- var trace,
- t1 = this._trace;
- if (t1 != null)
- return t1;
- t1 = this._exception;
- trace = t1 !== null && typeof t1 === "object" ? t1.stack : null;
- return this._trace = trace == null ? "" : trace;
- },
- $isStackTrace: 1
- };
- A.Closure.prototype = {
- toString$0(_) {
- var $constructor = this.constructor,
- $name = $constructor == null ? null : $constructor.name;
- return "Closure '" + A.unminifyOrTag($name == null ? "unknown" : $name) + "'";
- },
- $isFunction: 1,
- get$$call() {
- return this;
- },
- "call*": "call$1",
- $requiredArgCount: 1,
- $defaultValues: null
- };
- A.Closure0Args.prototype = {"call*": "call$0", $requiredArgCount: 0};
- A.Closure2Args.prototype = {"call*": "call$2", $requiredArgCount: 2};
- A.TearOffClosure.prototype = {};
- A.StaticClosure.prototype = {
- toString$0(_) {
- var $name = this.$static_name;
- if ($name == null)
- return "Closure of unknown static method";
- return "Closure '" + A.unminifyOrTag($name) + "'";
- }
- };
- A.BoundClosure.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- if (this === other)
- return true;
- if (!(other instanceof A.BoundClosure))
- return false;
- return this.$_target === other.$_target && this._receiver === other._receiver;
- },
- get$hashCode(_) {
- return (A.objectHashCode(this._receiver) ^ A.Primitives_objectHashCode(this.$_target)) >>> 0;
- },
- toString$0(_) {
- return "Closure '" + this.$_name + "' of " + ("Instance of '" + A.Primitives_objectTypeName(this._receiver) + "'");
- }
- };
- A._CyclicInitializationError.prototype = {
- toString$0(_) {
- return "Reading static variable '" + this.variableName + "' during its initialization";
- }
- };
- A.RuntimeError.prototype = {
- toString$0(_) {
- return "RuntimeError: " + this.message;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A._Required.prototype = {};
- A.JsLinkedHashMap.prototype = {
- get$length(_) {
- return this.__js_helper$_length;
- },
- get$isEmpty(_) {
- return this.__js_helper$_length === 0;
- },
- get$isNotEmpty(_) {
- return this.__js_helper$_length !== 0;
- },
- get$keys(_) {
- return new A.LinkedHashMapKeyIterable(this, A._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>"));
- },
- get$values(_) {
- var t1 = A._instanceType(this);
- return A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(this, t1._eval$1("LinkedHashMapKeyIterable<1>")), new A.JsLinkedHashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
- },
- containsKey$1(key) {
- var strings, nums;
- if (typeof key == "string") {
- strings = this.__js_helper$_strings;
- if (strings == null)
- return false;
- return strings[key] != null;
- } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
- nums = this.__js_helper$_nums;
- if (nums == null)
- return false;
- return nums[key] != null;
- } else
- return this.internalContainsKey$1(key);
- },
- internalContainsKey$1(key) {
- var rest = this.__js_helper$_rest;
- if (rest == null)
- return false;
- return this.internalFindBucketIndex$2(rest[this.internalComputeHashCode$1(key)], key) >= 0;
- },
- addAll$1(_, other) {
- other.forEach$1(0, new A.JsLinkedHashMap_addAll_closure(this));
- },
- $index(_, key) {
- var strings, cell, t1, nums, _null = null;
- if (typeof key == "string") {
- strings = this.__js_helper$_strings;
- if (strings == null)
- return _null;
- cell = strings[key];
- t1 = cell == null ? _null : cell.hashMapCellValue;
- return t1;
- } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
- nums = this.__js_helper$_nums;
- if (nums == null)
- return _null;
- cell = nums[key];
- t1 = cell == null ? _null : cell.hashMapCellValue;
- return t1;
- } else
- return this.internalGet$1(key);
- },
- internalGet$1(key) {
- var bucket, index,
- rest = this.__js_helper$_rest;
- if (rest == null)
- return null;
- bucket = rest[this.internalComputeHashCode$1(key)];
- index = this.internalFindBucketIndex$2(bucket, key);
- if (index < 0)
- return null;
- return bucket[index].hashMapCellValue;
- },
- $indexSet(_, key, value) {
- var strings, nums, _this = this;
- if (typeof key == "string") {
- strings = _this.__js_helper$_strings;
- _this.__js_helper$_addHashTableEntry$3(strings == null ? _this.__js_helper$_strings = _this._newHashTable$0() : strings, key, value);
- } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
- nums = _this.__js_helper$_nums;
- _this.__js_helper$_addHashTableEntry$3(nums == null ? _this.__js_helper$_nums = _this._newHashTable$0() : nums, key, value);
- } else
- _this.internalSet$2(key, value);
- },
- internalSet$2(key, value) {
- var hash, bucket, index, _this = this,
- rest = _this.__js_helper$_rest;
- if (rest == null)
- rest = _this.__js_helper$_rest = _this._newHashTable$0();
- hash = _this.internalComputeHashCode$1(key);
- bucket = rest[hash];
- if (bucket == null)
- rest[hash] = [_this.__js_helper$_newLinkedCell$2(key, value)];
- else {
- index = _this.internalFindBucketIndex$2(bucket, key);
- if (index >= 0)
- bucket[index].hashMapCellValue = value;
- else
- bucket.push(_this.__js_helper$_newLinkedCell$2(key, value));
- }
- },
- putIfAbsent$2(key, ifAbsent) {
- var t1, value, _this = this;
- if (_this.containsKey$1(key)) {
- t1 = _this.$index(0, key);
- return t1 == null ? A._instanceType(_this)._rest[1]._as(t1) : t1;
- }
- value = ifAbsent.call$0();
- _this.$indexSet(0, key, value);
- return value;
- },
- remove$1(_, key) {
- var _this = this;
- if (typeof key == "string")
- return _this.__js_helper$_removeHashTableEntry$2(_this.__js_helper$_strings, key);
- else if (typeof key == "number" && (key & 0x3fffffff) === key)
- return _this.__js_helper$_removeHashTableEntry$2(_this.__js_helper$_nums, key);
- else
- return _this.internalRemove$1(key);
- },
- internalRemove$1(key) {
- var hash, bucket, index, cell, _this = this,
- rest = _this.__js_helper$_rest;
- if (rest == null)
- return null;
- hash = _this.internalComputeHashCode$1(key);
- bucket = rest[hash];
- index = _this.internalFindBucketIndex$2(bucket, key);
- if (index < 0)
- return null;
- cell = bucket.splice(index, 1)[0];
- _this.__js_helper$_unlinkCell$1(cell);
- if (bucket.length === 0)
- delete rest[hash];
- return cell.hashMapCellValue;
- },
- clear$0(_) {
- var _this = this;
- if (_this.__js_helper$_length > 0) {
- _this.__js_helper$_strings = _this.__js_helper$_nums = _this.__js_helper$_rest = _this.__js_helper$_first = _this.__js_helper$_last = null;
- _this.__js_helper$_length = 0;
- _this.__js_helper$_modified$0();
- }
- },
- forEach$1(_, action) {
- var _this = this,
- cell = _this.__js_helper$_first,
- modifications = _this.__js_helper$_modifications;
- for (; cell != null;) {
- action.call$2(cell.hashMapCellKey, cell.hashMapCellValue);
- if (modifications !== _this.__js_helper$_modifications)
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- cell = cell.__js_helper$_next;
- }
- },
- __js_helper$_addHashTableEntry$3(table, key, value) {
- var cell = table[key];
- if (cell == null)
- table[key] = this.__js_helper$_newLinkedCell$2(key, value);
- else
- cell.hashMapCellValue = value;
- },
- __js_helper$_removeHashTableEntry$2(table, key) {
- var cell;
- if (table == null)
- return null;
- cell = table[key];
- if (cell == null)
- return null;
- this.__js_helper$_unlinkCell$1(cell);
- delete table[key];
- return cell.hashMapCellValue;
- },
- __js_helper$_modified$0() {
- this.__js_helper$_modifications = this.__js_helper$_modifications + 1 & 1073741823;
- },
- __js_helper$_newLinkedCell$2(key, value) {
- var t1, _this = this,
- cell = new A.LinkedHashMapCell(key, value);
- if (_this.__js_helper$_first == null)
- _this.__js_helper$_first = _this.__js_helper$_last = cell;
- else {
- t1 = _this.__js_helper$_last;
- t1.toString;
- cell.__js_helper$_previous = t1;
- _this.__js_helper$_last = t1.__js_helper$_next = cell;
- }
- ++_this.__js_helper$_length;
- _this.__js_helper$_modified$0();
- return cell;
- },
- __js_helper$_unlinkCell$1(cell) {
- var _this = this,
- previous = cell.__js_helper$_previous,
- next = cell.__js_helper$_next;
- if (previous == null)
- _this.__js_helper$_first = next;
- else
- previous.__js_helper$_next = next;
- if (next == null)
- _this.__js_helper$_last = previous;
- else
- next.__js_helper$_previous = previous;
- --_this.__js_helper$_length;
- _this.__js_helper$_modified$0();
- },
- internalComputeHashCode$1(key) {
- return J.get$hashCode$(key) & 1073741823;
- },
- internalFindBucketIndex$2(bucket, key) {
- var $length, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i)
- if (J.$eq$(bucket[i].hashMapCellKey, key))
- return i;
- return -1;
- },
- toString$0(_) {
- return A.MapBase_mapToString(this);
- },
- _newHashTable$0() {
- var table = Object.create(null);
- table["<non-identifier-key>"] = table;
- delete table["<non-identifier-key>"];
- return table;
- }
- };
- A.JsLinkedHashMap_values_closure.prototype = {
- call$1(each) {
- var t1 = this.$this,
- t2 = t1.$index(0, each);
- return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2;
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("2(1)");
- }
- };
- A.JsLinkedHashMap_addAll_closure.prototype = {
- call$2(key, value) {
- this.$this.$indexSet(0, key, value);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("~(1,2)");
- }
- };
- A.LinkedHashMapCell.prototype = {};
- A.LinkedHashMapKeyIterable.prototype = {
- get$length(_) {
- return this.__js_helper$_map.__js_helper$_length;
- },
- get$isEmpty(_) {
- return this.__js_helper$_map.__js_helper$_length === 0;
- },
- get$iterator(_) {
- var t1 = this.__js_helper$_map,
- t2 = new A.LinkedHashMapKeyIterator(t1, t1.__js_helper$_modifications);
- t2.__js_helper$_cell = t1.__js_helper$_first;
- return t2;
- },
- contains$1(_, element) {
- return this.__js_helper$_map.containsKey$1(element);
- }
- };
- A.LinkedHashMapKeyIterator.prototype = {
- get$current(_) {
- return this.__js_helper$_current;
- },
- moveNext$0() {
- var cell, _this = this,
- t1 = _this.__js_helper$_map;
- if (_this.__js_helper$_modifications !== t1.__js_helper$_modifications)
- throw A.wrapException(A.ConcurrentModificationError$(t1));
- cell = _this.__js_helper$_cell;
- if (cell == null) {
- _this.__js_helper$_current = null;
- return false;
- } else {
- _this.__js_helper$_current = cell.hashMapCellKey;
- _this.__js_helper$_cell = cell.__js_helper$_next;
- return true;
- }
- }
- };
- A.JsIdentityLinkedHashMap.prototype = {
- internalComputeHashCode$1(key) {
- return A.objectHashCode(key) & 1073741823;
- },
- internalFindBucketIndex$2(bucket, key) {
- var $length, i, t1;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i) {
- t1 = bucket[i].hashMapCellKey;
- if (t1 == null ? key == null : t1 === key)
- return i;
- }
- return -1;
- }
- };
- A.JsConstantLinkedHashMap.prototype = {
- internalComputeHashCode$1(key) {
- return A.constantHashCode(key) & 1073741823;
- },
- internalFindBucketIndex$2(bucket, key) {
- var $length, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i)
- if (J.$eq$(bucket[i].hashMapCellKey, key))
- return i;
- return -1;
- }
- };
- A.initHooks_closure.prototype = {
- call$1(o) {
- return this.getTag(o);
- },
- $signature: 82
- };
- A.initHooks_closure0.prototype = {
- call$2(o, tag) {
- return this.getUnknownTag(o, tag);
- },
- $signature: 397
- };
- A.initHooks_closure1.prototype = {
- call$1(tag) {
- return this.prototypeForTag(tag);
- },
- $signature: 171
- };
- A._Record.prototype = {
- toString$0(_) {
- return this._toString$1(false);
- },
- _toString$1(safe) {
- var t2, separator, i, key, value,
- keys = this._fieldKeys$0(),
- values = this._getFieldValues$0(),
- t1 = (safe ? "" + "Record " : "") + "(";
- for (t2 = keys.length, separator = "", i = 0; i < t2; ++i, separator = ", ") {
- t1 += separator;
- key = keys[i];
- if (typeof key == "string")
- t1 = t1 + key + ": ";
- value = values[i];
- t1 = safe ? t1 + A.Primitives_safeToString(value) : t1 + A.S(value);
- }
- t1 += ")";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _fieldKeys$0() {
- var t1,
- shapeTag = this.$shape;
- for (; $._Record__computedFieldKeys.length <= shapeTag;)
- $._Record__computedFieldKeys.push(null);
- t1 = $._Record__computedFieldKeys[shapeTag];
- if (t1 == null) {
- t1 = this._computeFieldKeys$0();
- $._Record__computedFieldKeys[shapeTag] = t1;
- }
- return t1;
- },
- _computeFieldKeys$0() {
- var i, names, last,
- recipe = this.$recipe,
- position = recipe.indexOf("("),
- joinedNames = recipe.substring(1, position),
- fields = recipe.substring(position),
- arity = fields === "()" ? 0 : fields.replace(/[^,]/g, "").length + 1,
- t1 = type$.Object,
- result = J.JSArray_JSArray$allocateGrowable(arity, t1);
- for (i = 0; i < arity; ++i)
- result[i] = i;
- if (joinedNames !== "") {
- names = joinedNames.split(",");
- i = names.length;
- for (last = arity; i > 0;) {
- --last;
- --i;
- result[last] = names[i];
- }
- }
- return A.List_List$unmodifiable(result, t1);
- }
- };
- A._Record2.prototype = {
- _getFieldValues$0() {
- return [this._0, this._1];
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A._Record2 && this.$shape === other.$shape && J.$eq$(this._0, other._0) && J.$eq$(this._1, other._1);
- },
- get$hashCode(_) {
- return A.Object_hash(this.$shape, this._0, this._1, B.C_SentinelValue);
- }
- };
- A._Record1.prototype = {
- _getFieldValues$0() {
- return [this._0];
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A._Record1 && this.$shape === other.$shape && J.$eq$(this._0, other._0);
- },
- get$hashCode(_) {
- return A.Object_hash(this.$shape, this._0, B.C_SentinelValue, B.C_SentinelValue);
- }
- };
- A._Record3.prototype = {
- _getFieldValues$0() {
- return [this._0, this._1, this._2];
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A._Record3 && _this.$shape === other.$shape && J.$eq$(_this._0, other._0) && J.$eq$(_this._1, other._1) && J.$eq$(_this._2, other._2);
- },
- get$hashCode(_) {
- var _this = this;
- return A.Object_hash(_this.$shape, _this._0, _this._1, _this._2);
- }
- };
- A._RecordN.prototype = {
- _getFieldValues$0() {
- return this._values;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A._RecordN && this.$shape === other.$shape && A._RecordN__equalValues(this._values, other._values);
- },
- get$hashCode(_) {
- return A.Object_hash(this.$shape, A.Object_hashAll(this._values), B.C_SentinelValue, B.C_SentinelValue);
- }
- };
- A.JSSyntaxRegExp.prototype = {
- toString$0(_) {
- return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags;
- },
- get$_nativeGlobalVersion() {
- var _this = this,
- t1 = _this._nativeGlobalRegExp;
- if (t1 != null)
- return t1;
- t1 = _this._nativeRegExp;
- return _this._nativeGlobalRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
- },
- get$_nativeAnchoredVersion() {
- var _this = this,
- t1 = _this._nativeAnchoredRegExp;
- if (t1 != null)
- return t1;
- t1 = _this._nativeRegExp;
- return _this._nativeAnchoredRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
- },
- firstMatch$1(string) {
- var m = this._nativeRegExp.exec(string);
- if (m == null)
- return null;
- return new A._MatchImplementation(m);
- },
- allMatches$2(_, string, start) {
- var t1 = string.length;
- if (start > t1)
- throw A.wrapException(A.RangeError$range(start, 0, t1, null, null));
- return new A._AllMatchesIterable(this, string, start);
- },
- allMatches$1(_, string) {
- return this.allMatches$2(0, string, 0);
- },
- _execGlobal$2(string, start) {
- var match,
- regexp = this.get$_nativeGlobalVersion();
- regexp.lastIndex = start;
- match = regexp.exec(string);
- if (match == null)
- return null;
- return new A._MatchImplementation(match);
- },
- _execAnchored$2(string, start) {
- var match,
- regexp = this.get$_nativeAnchoredVersion();
- regexp.lastIndex = start;
- match = regexp.exec(string);
- if (match == null)
- return null;
- if (match.pop() != null)
- return null;
- return new A._MatchImplementation(match);
- },
- matchAsPrefix$2(_, string, start) {
- if (start < 0 || start > string.length)
- throw A.wrapException(A.RangeError$range(start, 0, string.length, null, null));
- return this._execAnchored$2(string, start);
- }
- };
- A._MatchImplementation.prototype = {
- get$start(_) {
- return this._match.index;
- },
- get$end(_) {
- var t1 = this._match;
- return t1.index + t1[0].length;
- },
- $isMatch: 1,
- $isRegExpMatch: 1
- };
- A._AllMatchesIterable.prototype = {
- get$iterator(_) {
- return new A._AllMatchesIterator(this._re, this.__js_helper$_string, this.__js_helper$_start);
- }
- };
- A._AllMatchesIterator.prototype = {
- get$current(_) {
- var t1 = this.__js_helper$_current;
- return t1 == null ? type$.RegExpMatch._as(t1) : t1;
- },
- moveNext$0() {
- var t1, t2, t3, match, nextIndex, _this = this,
- string = _this.__js_helper$_string;
- if (string == null)
- return false;
- t1 = _this._nextIndex;
- t2 = string.length;
- if (t1 <= t2) {
- t3 = _this._regExp;
- match = t3._execGlobal$2(string, t1);
- if (match != null) {
- _this.__js_helper$_current = match;
- nextIndex = match.get$end(0);
- if (match._match.index === nextIndex) {
- if (t3._nativeRegExp.unicode) {
- t1 = _this._nextIndex;
- t3 = t1 + 1;
- if (t3 < t2) {
- t1 = string.charCodeAt(t1);
- if (t1 >= 55296 && t1 <= 56319) {
- t1 = string.charCodeAt(t3);
- t1 = t1 >= 56320 && t1 <= 57343;
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1;
- }
- _this._nextIndex = nextIndex;
- return true;
- }
- }
- _this.__js_helper$_string = _this.__js_helper$_current = null;
- return false;
- }
- };
- A.StringMatch.prototype = {
- get$end(_) {
- return this.start + this.pattern.length;
- },
- $isMatch: 1,
- get$start(receiver) {
- return this.start;
- }
- };
- A._StringAllMatchesIterable.prototype = {
- get$iterator(_) {
- return new A._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index);
- },
- get$first(_) {
- var t1 = this._pattern,
- index = this._input.indexOf(t1, this.__js_helper$_index);
- if (index >= 0)
- return new A.StringMatch(index, t1);
- throw A.wrapException(A.IterableElementError_noElement());
- }
- };
- A._StringAllMatchesIterator.prototype = {
- moveNext$0() {
- var index, end, _this = this,
- t1 = _this.__js_helper$_index,
- t2 = _this._pattern,
- t3 = t2.length,
- t4 = _this._input,
- t5 = t4.length;
- if (t1 + t3 > t5) {
- _this.__js_helper$_current = null;
- return false;
- }
- index = t4.indexOf(t2, t1);
- if (index < 0) {
- _this.__js_helper$_index = t5 + 1;
- _this.__js_helper$_current = null;
- return false;
- }
- end = index + t3;
- _this.__js_helper$_current = new A.StringMatch(index, t2);
- _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end;
- return true;
- },
- get$current(_) {
- var t1 = this.__js_helper$_current;
- t1.toString;
- return t1;
- }
- };
- A._Cell.prototype = {
- readLocal$1$0() {
- var t1 = this.__late_helper$_value;
- if (t1 === this)
- A.throwExpression(new A.LateError("Local '' has not been initialized."));
- return t1;
- },
- readLocal$0() {
- return this.readLocal$1$0(type$.dynamic);
- },
- _readLocal$0() {
- var t1 = this.__late_helper$_value;
- if (t1 === this)
- throw A.wrapException(new A.LateError("Local '' has not been initialized."));
- return t1;
- }
- };
- A.NativeByteBuffer.prototype = {
- get$runtimeType(receiver) {
- return B.Type_ByteBuffer_EOZ;
- },
- $isTrustedGetRuntimeType: 1,
- $isByteBuffer: 1
- };
- A.NativeTypedData.prototype = {
- _invalidPosition$3(receiver, position, $length, $name) {
- var t1 = A.RangeError$range(position, 0, $length, $name, null);
- throw A.wrapException(t1);
- },
- _checkPosition$3(receiver, position, $length, $name) {
- if (position >>> 0 !== position || position > $length)
- this._invalidPosition$3(receiver, position, $length, $name);
- }
- };
- A.NativeByteData.prototype = {
- get$runtimeType(receiver) {
- return B.Type_ByteData_mF8;
- },
- $isTrustedGetRuntimeType: 1,
- $isByteData: 1
- };
- A.NativeTypedArray.prototype = {
- get$length(receiver) {
- return receiver.length;
- },
- _setRangeFast$4(receiver, start, end, source, skipCount) {
- var count, sourceLength,
- targetLength = receiver.length;
- this._checkPosition$3(receiver, start, targetLength, "start");
- this._checkPosition$3(receiver, end, targetLength, "end");
- if (start > end)
- throw A.wrapException(A.RangeError$range(start, 0, end, null, null));
- count = end - start;
- if (skipCount < 0)
- throw A.wrapException(A.ArgumentError$(skipCount, null));
- sourceLength = source.length;
- if (sourceLength - skipCount < count)
- throw A.wrapException(A.StateError$("Not enough elements"));
- if (skipCount !== 0 || sourceLength !== count)
- source = source.subarray(skipCount, skipCount + count);
- receiver.set(source, start);
- },
- $isJavaScriptIndexingBehavior: 1
- };
- A.NativeTypedArrayOfDouble.prototype = {
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- $indexSet(receiver, index, value) {
- A._checkValidIndex(index, receiver, receiver.length);
- receiver[index] = value;
- },
- setRange$4(receiver, start, end, iterable, skipCount) {
- if (type$.NativeTypedArrayOfDouble._is(iterable)) {
- this._setRangeFast$4(receiver, start, end, iterable, skipCount);
- return;
- }
- this.super$ListBase$setRange(receiver, start, end, iterable, skipCount);
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isList: 1
- };
- A.NativeTypedArrayOfInt.prototype = {
- $indexSet(receiver, index, value) {
- A._checkValidIndex(index, receiver, receiver.length);
- receiver[index] = value;
- },
- setRange$4(receiver, start, end, iterable, skipCount) {
- if (type$.NativeTypedArrayOfInt._is(iterable)) {
- this._setRangeFast$4(receiver, start, end, iterable, skipCount);
- return;
- }
- this.super$ListBase$setRange(receiver, start, end, iterable, skipCount);
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isList: 1
- };
- A.NativeFloat32List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Float32List_Ymk;
- },
- sublist$2(receiver, start, end) {
- return new Float32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isFloat32List: 1
- };
- A.NativeFloat64List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Float64List_Ymk;
- },
- sublist$2(receiver, start, end) {
- return new Float64Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isFloat64List: 1
- };
- A.NativeInt16List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Int16List_cot;
- },
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- return new Int16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isInt16List: 1
- };
- A.NativeInt32List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Int32List_m1p;
- },
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- return new Int32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isInt32List: 1
- };
- A.NativeInt8List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Int8List_woc;
- },
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- return new Int8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isInt8List: 1
- };
- A.NativeUint16List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Uint16List_2mh;
- },
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- return new Uint16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isUint16List: 1
- };
- A.NativeUint32List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Uint32List_2mh;
- },
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- return new Uint32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isUint32List: 1
- };
- A.NativeUint8ClampedList.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Uint8ClampedList_9Bb;
- },
- get$length(receiver) {
- return receiver.length;
- },
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- return new Uint8ClampedArray(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isUint8ClampedList: 1
- };
- A.NativeUint8List.prototype = {
- get$runtimeType(receiver) {
- return B.Type_Uint8List_CSc;
- },
- get$length(receiver) {
- return receiver.length;
- },
- $index(receiver, index) {
- A._checkValidIndex(index, receiver, receiver.length);
- return receiver[index];
- },
- sublist$2(receiver, start, end) {
- return new Uint8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- $isTrustedGetRuntimeType: 1,
- $isNativeUint8List: 1,
- $isUint8List: 1
- };
- A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {};
- A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
- A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {};
- A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
- A.Rti.prototype = {
- _eval$1(recipe) {
- return A._Universe_evalInEnvironment(init.typeUniverse, this, recipe);
- },
- _bind$1(typeOrTuple) {
- return A._Universe_bind(init.typeUniverse, this, typeOrTuple);
- }
- };
- A._FunctionParameters.prototype = {};
- A._Type.prototype = {
- toString$0(_) {
- return A._rtiToString(this._rti, null);
- }
- };
- A._Error.prototype = {
- toString$0(_) {
- return this.__rti$_message;
- }
- };
- A._TypeError.prototype = {
- get$message(_) {
- return this.__rti$_message;
- },
- $isTypeError: 1
- };
- A._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = {
- call$1(_) {
- var t1 = this._box_0,
- f = t1.storedCallback;
- t1.storedCallback = null;
- f.call$0();
- },
- $signature: 61
- };
- A._AsyncRun__initializeScheduleImmediate_closure.prototype = {
- call$1(callback) {
- var t1, t2;
- this._box_0.storedCallback = callback;
- t1 = this.div;
- t2 = this.span;
- t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
- },
- $signature: 32
- };
- A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = {
- call$0() {
- this.callback.call$0();
- },
- $signature: 1
- };
- A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = {
- call$0() {
- this.callback.call$0();
- },
- $signature: 1
- };
- A._TimerImpl.prototype = {
- _TimerImpl$2(milliseconds, callback) {
- if (self.setTimeout != null)
- this._handle = self.setTimeout(A.convertDartClosureToJS(new A._TimerImpl_internalCallback(this, callback), 0), milliseconds);
- else
- throw A.wrapException(A.UnsupportedError$("`setTimeout()` not found."));
- },
- _TimerImpl$periodic$2(milliseconds, callback) {
- if (self.setTimeout != null)
- this._handle = self.setInterval(A.convertDartClosureToJS(new A._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds);
- else
- throw A.wrapException(A.UnsupportedError$("Periodic timer."));
- },
- cancel$0() {
- if (self.setTimeout != null) {
- var t1 = this._handle;
- if (t1 == null)
- return;
- if (this._once)
- self.clearTimeout(t1);
- else
- self.clearInterval(t1);
- this._handle = null;
- } else
- throw A.wrapException(A.UnsupportedError$("Canceling a timer."));
- }
- };
- A._TimerImpl_internalCallback.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._handle = null;
- t1._tick = 1;
- this.callback.call$0();
- },
- $signature: 0
- };
- A._TimerImpl$periodic_closure.prototype = {
- call$0() {
- var duration, _this = this,
- t1 = _this.$this,
- tick = t1._tick + 1,
- t2 = _this.milliseconds;
- if (t2 > 0) {
- duration = Date.now() - _this.start;
- if (duration > (tick + 1) * t2)
- tick = B.JSInt_methods.$tdiv(duration, t2);
- }
- t1._tick = tick;
- _this.callback.call$1(t1);
- },
- $signature: 1
- };
- A._AsyncAwaitCompleter.prototype = {
- complete$1(value) {
- var t1, _this = this;
- if (value == null)
- value = _this.$ti._precomputed1._as(value);
- if (!_this.isSync)
- _this._future._asyncComplete$1(value);
- else {
- t1 = _this._future;
- if (_this.$ti._eval$1("Future<1>")._is(value))
- t1._chainFuture$1(value);
- else
- t1._completeWithValue$1(value);
- }
- },
- completeError$2(e, st) {
- var t1 = this._future;
- if (this.isSync)
- t1._completeError$2(e, st);
- else
- t1._asyncCompleteError$2(e, st);
- }
- };
- A._awaitOnObject_closure.prototype = {
- call$1(result) {
- return this.bodyFunction.call$2(0, result);
- },
- $signature: 71
- };
- A._awaitOnObject_closure0.prototype = {
- call$2(error, stackTrace) {
- this.bodyFunction.call$2(1, new A.ExceptionAndStackTrace(error, stackTrace));
- },
- $signature: 626
- };
- A._wrapJsFunctionForAsync_closure.prototype = {
- call$2(errorCode, result) {
- this.$protected(errorCode, result);
- },
- $signature: 371
- };
- A._SyncStarIterator.prototype = {
- get$current(_) {
- return this._async$_current;
- },
- _resumeBody$2(errorCode, errorValue) {
- var body, t1, exception;
- errorCode = errorCode;
- errorValue = errorValue;
- body = this._body;
- for (; true;)
- try {
- t1 = body(this, errorCode, errorValue);
- return t1;
- } catch (exception) {
- errorValue = exception;
- errorCode = 1;
- }
- },
- moveNext$0() {
- var nestedIterator, exception, value, suspendedBodies, _this = this, errorValue = null, errorCode = 0;
- for (; true;) {
- nestedIterator = _this._nestedIterator;
- if (nestedIterator != null)
- try {
- if (nestedIterator.moveNext$0()) {
- _this._async$_current = J.get$current$x(nestedIterator);
- return true;
- } else
- _this._nestedIterator = null;
- } catch (exception) {
- errorValue = exception;
- errorCode = 1;
- _this._nestedIterator = null;
- }
- value = _this._resumeBody$2(errorCode, errorValue);
- if (1 === value)
- return true;
- if (0 === value) {
- _this._async$_current = null;
- suspendedBodies = _this._suspendedBodies;
- if (suspendedBodies == null || suspendedBodies.length === 0) {
- _this._body = A._SyncStarIterator__terminatedBody;
- return false;
- }
- _this._body = suspendedBodies.pop();
- errorCode = 0;
- errorValue = null;
- continue;
- }
- if (2 === value) {
- errorCode = 0;
- errorValue = null;
- continue;
- }
- if (3 === value) {
- errorValue = _this._datum;
- _this._datum = null;
- suspendedBodies = _this._suspendedBodies;
- if (suspendedBodies == null || suspendedBodies.length === 0) {
- _this._async$_current = null;
- _this._body = A._SyncStarIterator__terminatedBody;
- throw errorValue;
- return false;
- }
- _this._body = suspendedBodies.pop();
- errorCode = 1;
- continue;
- }
- throw A.wrapException(A.StateError$("sync*"));
- }
- return false;
- },
- _yieldStar$1(iterable) {
- var t1, t2, _this = this;
- if (iterable instanceof A._SyncStarIterable) {
- t1 = iterable._outerHelper();
- t2 = _this._suspendedBodies;
- if (t2 == null)
- t2 = _this._suspendedBodies = [];
- t2.push(_this._body);
- _this._body = t1;
- return 2;
- } else {
- _this._nestedIterator = J.get$iterator$ax(iterable);
- return 2;
- }
- }
- };
- A._SyncStarIterable.prototype = {
- get$iterator(_) {
- return new A._SyncStarIterator(this._outerHelper());
- }
- };
- A.AsyncError.prototype = {
- toString$0(_) {
- return A.S(this.error);
- },
- $isError: 1,
- get$stackTrace() {
- return this.stackTrace;
- }
- };
- A.Future_wait_handleError.prototype = {
- call$2(theError, theStackTrace) {
- var _this = this,
- t1 = _this._box_0,
- t2 = --t1.remaining;
- if (t1.values != null) {
- t1.values = null;
- t1.error = theError;
- t1.stackTrace = theStackTrace;
- if (t2 === 0 || _this.eagerError)
- _this._future._completeError$2(theError, theStackTrace);
- } else if (t2 === 0 && !_this.eagerError) {
- t2 = t1.error;
- t2.toString;
- t1 = t1.stackTrace;
- t1.toString;
- _this._future._completeError$2(t2, t1);
- }
- },
- $signature: 73
- };
- A.Future_wait_closure.prototype = {
- call$1(value) {
- var t1, value0, t3, t4, _i, t5, _this = this,
- t2 = _this._box_0,
- remainingResults = --t2.remaining,
- valueList = t2.values;
- if (valueList != null) {
- J.$indexSet$ax(valueList, _this.pos, value);
- if (J.$eq$(remainingResults, 0)) {
- t2 = _this.T;
- t1 = A._setArrayType([], t2._eval$1("JSArray<0>"));
- for (t3 = valueList, t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
- value0 = t3[_i];
- t5 = value0;
- if (t5 == null)
- t5 = t2._as(t5);
- J.add$1$ax(t1, t5);
- }
- _this._future._completeWithValue$1(t1);
- }
- } else if (J.$eq$(remainingResults, 0) && !_this.eagerError) {
- t1 = t2.error;
- t1.toString;
- t2 = t2.stackTrace;
- t2.toString;
- _this._future._completeError$2(t1, t2);
- }
- },
- $signature() {
- return this.T._eval$1("Null(0)");
- }
- };
- A._Completer.prototype = {
- completeError$2(error, stackTrace) {
- var replacement;
- A.checkNotNullable(error, "error", type$.Object);
- if ((this.future._state & 30) !== 0)
- throw A.wrapException(A.StateError$("Future already completed"));
- replacement = $.Zone__current.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- stackTrace = replacement.stackTrace;
- } else if (stackTrace == null)
- stackTrace = A.AsyncError_defaultStackTrace(error);
- this._completeError$2(error, stackTrace);
- },
- completeError$1(error) {
- return this.completeError$2(error, null);
- }
- };
- A._AsyncCompleter.prototype = {
- complete$1(value) {
- var t1 = this.future;
- if ((t1._state & 30) !== 0)
- throw A.wrapException(A.StateError$("Future already completed"));
- t1._asyncComplete$1(value);
- },
- complete$0() {
- return this.complete$1(null);
- },
- _completeError$2(error, stackTrace) {
- this.future._asyncCompleteError$2(error, stackTrace);
- }
- };
- A._SyncCompleter.prototype = {
- complete$1(value) {
- var t1 = this.future;
- if ((t1._state & 30) !== 0)
- throw A.wrapException(A.StateError$("Future already completed"));
- t1._complete$1(value);
- },
- _completeError$2(error, stackTrace) {
- this.future._completeError$2(error, stackTrace);
- }
- };
- A._FutureListener.prototype = {
- matchesErrorTest$1(asyncError) {
- if ((this.state & 15) !== 6)
- return true;
- return this.result._zone.runUnary$2$2(this.callback, asyncError.error, type$.bool, type$.Object);
- },
- handleError$1(asyncError) {
- var exception,
- errorCallback = this.errorCallback,
- result = null,
- t1 = type$.dynamic,
- t2 = type$.Object,
- t3 = asyncError.error,
- t4 = this.result._zone;
- if (type$.dynamic_Function_Object_StackTrace._is(errorCallback))
- result = t4.runBinary$3$3(errorCallback, t3, asyncError.stackTrace, t1, t2, type$.StackTrace);
- else
- result = t4.runUnary$2$2(errorCallback, t3, t1, t2);
- try {
- t1 = result;
- return t1;
- } catch (exception) {
- if (type$.TypeError._is(A.unwrapException(exception))) {
- if ((this.state & 1) !== 0)
- throw A.wrapException(A.ArgumentError$("The error handler of Future.then must return a value of the returned future's type", "onError"));
- throw A.wrapException(A.ArgumentError$("The error handler of Future.catchError must return a value of the future's type", "onError"));
- } else
- throw exception;
- }
- }
- };
- A._Future.prototype = {
- _setChained$1(source) {
- this._state = this._state & 1 | 4;
- this._resultOrListeners = source;
- },
- then$1$2$onError(_, f, onError, $R) {
- var result, t1,
- currentZone = $.Zone__current;
- if (currentZone === B.C__RootZone) {
- if (onError != null && !type$.dynamic_Function_Object_StackTrace._is(onError) && !type$.dynamic_Function_Object._is(onError))
- throw A.wrapException(A.ArgumentError$value(onError, "onError", string$.Error_));
- } else {
- f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), this.$ti._precomputed1);
- if (onError != null)
- onError = A._registerErrorHandler(onError, currentZone);
- }
- result = new A._Future($.Zone__current, $R._eval$1("_Future<0>"));
- t1 = onError == null ? 1 : 3;
- this._addListener$1(new A._FutureListener(result, t1, f, onError, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>")));
- return result;
- },
- then$1$1(_, f, $R) {
- return this.then$1$2$onError(0, f, null, $R);
- },
- _thenAwait$1$2(f, onError, $E) {
- var result = new A._Future($.Zone__current, $E._eval$1("_Future<0>"));
- this._addListener$1(new A._FutureListener(result, 19, f, onError, this.$ti._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>")));
- return result;
- },
- catchError$1(onError) {
- var t1 = this.$ti,
- t2 = $.Zone__current,
- result = new A._Future(t2, t1);
- if (t2 !== B.C__RootZone)
- onError = A._registerErrorHandler(onError, t2);
- this._addListener$1(new A._FutureListener(result, 2, null, onError, t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("_FutureListener<1,2>")));
- return result;
- },
- whenComplete$1(action) {
- var t1 = this.$ti,
- t2 = $.Zone__current,
- result = new A._Future(t2, t1);
- if (t2 !== B.C__RootZone)
- action = t2.registerCallback$1$1(action, type$.dynamic);
- this._addListener$1(new A._FutureListener(result, 8, action, null, t1._eval$1("@<1>")._bind$1(t1._precomputed1)._eval$1("_FutureListener<1,2>")));
- return result;
- },
- _setErrorObject$1(error) {
- this._state = this._state & 1 | 16;
- this._resultOrListeners = error;
- },
- _cloneResult$1(source) {
- this._state = source._state & 30 | this._state & 1;
- this._resultOrListeners = source._resultOrListeners;
- },
- _addListener$1(listener) {
- var _this = this,
- t1 = _this._state;
- if (t1 <= 3) {
- listener._nextListener = _this._resultOrListeners;
- _this._resultOrListeners = listener;
- } else {
- if ((t1 & 4) !== 0) {
- t1 = _this._resultOrListeners;
- if ((t1._state & 24) === 0) {
- t1._addListener$1(listener);
- return;
- }
- _this._cloneResult$1(t1);
- }
- _this._zone.scheduleMicrotask$1(new A._Future__addListener_closure(_this, listener));
- }
- },
- _prependListeners$1(listeners) {
- var t1, existingListeners, next, cursor, next0, _this = this, _box_0 = {};
- _box_0.listeners = listeners;
- if (listeners == null)
- return;
- t1 = _this._state;
- if (t1 <= 3) {
- existingListeners = _this._resultOrListeners;
- _this._resultOrListeners = listeners;
- if (existingListeners != null) {
- next = listeners._nextListener;
- for (cursor = listeners; next != null; cursor = next, next = next0)
- next0 = next._nextListener;
- cursor._nextListener = existingListeners;
- }
- } else {
- if ((t1 & 4) !== 0) {
- t1 = _this._resultOrListeners;
- if ((t1._state & 24) === 0) {
- t1._prependListeners$1(listeners);
- return;
- }
- _this._cloneResult$1(t1);
- }
- _box_0.listeners = _this._reverseListeners$1(listeners);
- _this._zone.scheduleMicrotask$1(new A._Future__prependListeners_closure(_box_0, _this));
- }
- },
- _removeListeners$0() {
- var current = this._resultOrListeners;
- this._resultOrListeners = null;
- return this._reverseListeners$1(current);
- },
- _reverseListeners$1(listeners) {
- var current, prev, next;
- for (current = listeners, prev = null; current != null; prev = current, current = next) {
- next = current._nextListener;
- current._nextListener = prev;
- }
- return prev;
- },
- _chainForeignFuture$1(source) {
- var e, s, exception, _this = this;
- _this._state ^= 2;
- try {
- source.then$1$2$onError(0, new A._Future__chainForeignFuture_closure(_this), new A._Future__chainForeignFuture_closure0(_this), type$.Null);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- A.scheduleMicrotask(new A._Future__chainForeignFuture_closure1(_this, e, s));
- }
- },
- _complete$1(value) {
- var listeners, _this = this,
- t1 = _this.$ti;
- if (t1._eval$1("Future<1>")._is(value))
- if (t1._is(value))
- A._Future__chainCoreFutureSync(value, _this);
- else
- _this._chainForeignFuture$1(value);
- else {
- listeners = _this._removeListeners$0();
- _this._state = 8;
- _this._resultOrListeners = value;
- A._Future__propagateToListeners(_this, listeners);
- }
- },
- _completeWithValue$1(value) {
- var _this = this,
- listeners = _this._removeListeners$0();
- _this._state = 8;
- _this._resultOrListeners = value;
- A._Future__propagateToListeners(_this, listeners);
- },
- _completeError$2(error, stackTrace) {
- var listeners = this._removeListeners$0();
- this._setErrorObject$1(A.AsyncError$(error, stackTrace));
- A._Future__propagateToListeners(this, listeners);
- },
- _asyncComplete$1(value) {
- if (this.$ti._eval$1("Future<1>")._is(value)) {
- this._chainFuture$1(value);
- return;
- }
- this._asyncCompleteWithValue$1(value);
- },
- _asyncCompleteWithValue$1(value) {
- this._state ^= 2;
- this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteWithValue_closure(this, value));
- },
- _chainFuture$1(value) {
- if (this.$ti._is(value)) {
- A._Future__chainCoreFutureAsync(value, this);
- return;
- }
- this._chainForeignFuture$1(value);
- },
- _asyncCompleteError$2(error, stackTrace) {
- this._state ^= 2;
- this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteError_closure(this, error, stackTrace));
- },
- $isFuture: 1
- };
- A._Future__addListener_closure.prototype = {
- call$0() {
- A._Future__propagateToListeners(this.$this, this.listener);
- },
- $signature: 0
- };
- A._Future__prependListeners_closure.prototype = {
- call$0() {
- A._Future__propagateToListeners(this.$this, this._box_0.listeners);
- },
- $signature: 0
- };
- A._Future__chainForeignFuture_closure.prototype = {
- call$1(value) {
- var error, stackTrace, exception,
- t1 = this.$this;
- t1._state ^= 2;
- try {
- t1._completeWithValue$1(t1.$ti._precomputed1._as(value));
- } catch (exception) {
- error = A.unwrapException(exception);
- stackTrace = A.getTraceFromException(exception);
- t1._completeError$2(error, stackTrace);
- }
- },
- $signature: 61
- };
- A._Future__chainForeignFuture_closure0.prototype = {
- call$2(error, stackTrace) {
- this.$this._completeError$2(error, stackTrace);
- },
- $signature: 52
- };
- A._Future__chainForeignFuture_closure1.prototype = {
- call$0() {
- this.$this._completeError$2(this.e, this.s);
- },
- $signature: 0
- };
- A._Future__chainCoreFutureAsync_closure.prototype = {
- call$0() {
- A._Future__chainCoreFutureSync(this._box_0.source, this.target);
- },
- $signature: 0
- };
- A._Future__asyncCompleteWithValue_closure.prototype = {
- call$0() {
- this.$this._completeWithValue$1(this.value);
- },
- $signature: 0
- };
- A._Future__asyncCompleteError_closure.prototype = {
- call$0() {
- this.$this._completeError$2(this.error, this.stackTrace);
- },
- $signature: 0
- };
- A._Future__propagateToListeners_handleWhenCompleteCallback.prototype = {
- call$0() {
- var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null;
- try {
- t1 = _this._box_0.listener;
- completeResult = t1.result._zone.run$1$1(0, t1.callback, type$.dynamic);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- t1 = _this.hasError && _this._box_1.source._resultOrListeners.error === e;
- t2 = _this._box_0;
- if (t1)
- t2.listenerValueOrError = _this._box_1.source._resultOrListeners;
- else
- t2.listenerValueOrError = A.AsyncError$(e, s);
- t2.listenerHasError = true;
- return;
- }
- if (completeResult instanceof A._Future && (completeResult._state & 24) !== 0) {
- if ((completeResult._state & 16) !== 0) {
- t1 = _this._box_0;
- t1.listenerValueOrError = completeResult._resultOrListeners;
- t1.listenerHasError = true;
- }
- return;
- }
- if (completeResult instanceof A._Future) {
- originalSource = _this._box_1.source;
- t1 = _this._box_0;
- t1.listenerValueOrError = J.then$1$1$x(completeResult, new A._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic);
- t1.listenerHasError = false;
- }
- },
- $signature: 0
- };
- A._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = {
- call$1(_) {
- return this.originalSource;
- },
- $signature: 425
- };
- A._Future__propagateToListeners_handleValueCallback.prototype = {
- call$0() {
- var e, s, t1, t2, t3, exception;
- try {
- t1 = this._box_0;
- t2 = t1.listener;
- t3 = t2.$ti;
- t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t2.callback, this.sourceResult, t3._eval$1("2/"), t3._precomputed1);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- t1 = this._box_0;
- t1.listenerValueOrError = A.AsyncError$(e, s);
- t1.listenerHasError = true;
- }
- },
- $signature: 0
- };
- A._Future__propagateToListeners_handleError.prototype = {
- call$0() {
- var asyncError, e, s, t1, exception, t2, _this = this;
- try {
- asyncError = _this._box_1.source._resultOrListeners;
- t1 = _this._box_0;
- if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) {
- t1.listenerValueOrError = t1.listener.handleError$1(asyncError);
- t1.listenerHasError = false;
- }
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- t1 = _this._box_1.source._resultOrListeners;
- t2 = _this._box_0;
- if (t1.error === e)
- t2.listenerValueOrError = t1;
- else
- t2.listenerValueOrError = A.AsyncError$(e, s);
- t2.listenerHasError = true;
- }
- },
- $signature: 0
- };
- A._AsyncCallbackEntry.prototype = {};
- A.Stream.prototype = {
- get$isBroadcast() {
- return false;
- },
- get$length(_) {
- var t1 = {},
- future = new A._Future($.Zone__current, type$._Future_int);
- t1.count = 0;
- this.listen$4$cancelOnError$onDone$onError(0, new A.Stream_length_closure(t1, this), true, new A.Stream_length_closure0(t1, future), future.get$_completeError());
- return future;
- }
- };
- A.Stream_Stream$fromFuture_closure.prototype = {
- call$1(value) {
- var t1 = this.controller;
- t1._async$_add$1(value);
- t1._closeUnchecked$0();
- },
- $signature() {
- return this.T._eval$1("Null(0)");
- }
- };
- A.Stream_Stream$fromFuture_closure0.prototype = {
- call$2(error, stackTrace) {
- var t1 = this.controller;
- t1._addError$2(error, stackTrace);
- t1._closeUnchecked$0();
- },
- $signature: 442
- };
- A.Stream_length_closure.prototype = {
- call$1(_) {
- ++this._box_0.count;
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("~(Stream.T)");
- }
- };
- A.Stream_length_closure0.prototype = {
- call$0() {
- this.future._complete$1(this._box_0.count);
- },
- $signature: 0
- };
- A._StreamController.prototype = {
- get$stream() {
- return new A._ControllerStream(this, A._instanceType(this)._eval$1("_ControllerStream<1>"));
- },
- get$_pendingEvents() {
- if ((this._state & 8) === 0)
- return this._varData;
- return this._varData._varData;
- },
- _ensurePendingEvents$0() {
- var events, state, _this = this;
- if ((_this._state & 8) === 0) {
- events = _this._varData;
- return events == null ? _this._varData = new A._PendingEvents() : events;
- }
- state = _this._varData;
- events = state._varData;
- return events == null ? state._varData = new A._PendingEvents() : events;
- },
- get$_subscription() {
- var varData = this._varData;
- return (this._state & 8) !== 0 ? varData._varData : varData;
- },
- _badEventState$0() {
- if ((this._state & 4) !== 0)
- return new A.StateError("Cannot add event after closing");
- return new A.StateError("Cannot add event while adding a stream");
- },
- addStream$2$cancelOnError(source, cancelOnError) {
- var t2, t3, t4, _this = this,
- t1 = _this._state;
- if (t1 >= 4)
- throw A.wrapException(_this._badEventState$0());
- if ((t1 & 2) !== 0) {
- t1 = new A._Future($.Zone__current, type$._Future_dynamic);
- t1._asyncComplete$1(null);
- return t1;
- }
- t1 = _this._varData;
- t2 = cancelOnError === true;
- t3 = new A._Future($.Zone__current, type$._Future_dynamic);
- t4 = t2 ? A._AddStreamState_makeErrorHandler(_this) : _this.get$_addError();
- t4 = source.listen$4$cancelOnError$onDone$onError(0, _this.get$_async$_add(), t2, _this.get$_close(), t4);
- t2 = _this._state;
- if ((t2 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t2 & 2) === 0)
- t4.pause$0(0);
- _this._varData = new A._StreamControllerAddStreamState(t1, t3, t4);
- _this._state |= 8;
- return t3;
- },
- _ensureDoneFuture$0() {
- var t1 = this._doneFuture;
- if (t1 == null)
- t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new A._Future($.Zone__current, type$._Future_void);
- return t1;
- },
- add$1(_, value) {
- if (this._state >= 4)
- throw A.wrapException(this._badEventState$0());
- this._async$_add$1(value);
- },
- addError$2(error, stackTrace) {
- var replacement;
- A.checkNotNullable(error, "error", type$.Object);
- if (this._state >= 4)
- throw A.wrapException(this._badEventState$0());
- replacement = $.Zone__current.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- stackTrace = replacement.stackTrace;
- } else if (stackTrace == null)
- stackTrace = A.AsyncError_defaultStackTrace(error);
- this._addError$2(error, stackTrace);
- },
- addError$1(error) {
- return this.addError$2(error, null);
- },
- close$0(_) {
- var _this = this,
- t1 = _this._state;
- if ((t1 & 4) !== 0)
- return _this._ensureDoneFuture$0();
- if (t1 >= 4)
- throw A.wrapException(_this._badEventState$0());
- _this._closeUnchecked$0();
- return _this._ensureDoneFuture$0();
- },
- _closeUnchecked$0() {
- var t1 = this._state |= 4;
- if ((t1 & 1) !== 0)
- this._sendDone$0();
- else if ((t1 & 3) === 0)
- this._ensurePendingEvents$0().add$1(0, B.C__DelayedDone);
- },
- _async$_add$1(value) {
- var t1 = this._state;
- if ((t1 & 1) !== 0)
- this._sendData$1(value);
- else if ((t1 & 3) === 0)
- this._ensurePendingEvents$0().add$1(0, new A._DelayedData(value));
- },
- _addError$2(error, stackTrace) {
- var t1 = this._state;
- if ((t1 & 1) !== 0)
- this._sendError$2(error, stackTrace);
- else if ((t1 & 3) === 0)
- this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace));
- },
- _close$0() {
- var addState = this._varData;
- this._varData = addState._varData;
- this._state &= 4294967287;
- addState.addStreamFuture._asyncComplete$1(null);
- },
- _subscribe$4(onData, onError, onDone, cancelOnError) {
- var subscription, pendingEvents, t1, addState, _this = this;
- if ((_this._state & 3) !== 0)
- throw A.wrapException(A.StateError$("Stream has already been listened to."));
- subscription = A._ControllerSubscription$(_this, onData, onError, onDone, cancelOnError, A._instanceType(_this)._precomputed1);
- pendingEvents = _this.get$_pendingEvents();
- t1 = _this._state |= 1;
- if ((t1 & 8) !== 0) {
- addState = _this._varData;
- addState._varData = subscription;
- addState.addSubscription.resume$0(0);
- } else
- _this._varData = subscription;
- subscription._setPendingEvents$1(pendingEvents);
- subscription._guardCallback$1(new A._StreamController__subscribe_closure(_this));
- return subscription;
- },
- _recordCancel$1(subscription) {
- var onCancel, cancelResult, e, s, exception, result0, t1, _this = this, result = null;
- if ((_this._state & 8) !== 0)
- result = _this._varData.cancel$0();
- _this._varData = null;
- _this._state = _this._state & 4294967286 | 2;
- onCancel = _this.onCancel;
- if (onCancel != null)
- if (result == null)
- try {
- cancelResult = onCancel.call$0();
- if (cancelResult instanceof A._Future)
- result = cancelResult;
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- result0 = new A._Future($.Zone__current, type$._Future_void);
- result0._asyncCompleteError$2(e, s);
- result = result0;
- }
- else
- result = result.whenComplete$1(onCancel);
- t1 = new A._StreamController__recordCancel_complete(_this);
- if (result != null)
- result = result.whenComplete$1(t1);
- else
- t1.call$0();
- return result;
- },
- _recordPause$1(subscription) {
- if ((this._state & 8) !== 0)
- this._varData.addSubscription.pause$0(0);
- A._runGuarded(this.onPause);
- },
- _recordResume$1(subscription) {
- if ((this._state & 8) !== 0)
- this._varData.addSubscription.resume$0(0);
- A._runGuarded(this.onResume);
- },
- $isEventSink: 1,
- set$onPause(val) {
- return this.onPause = val;
- },
- set$onResume(val) {
- return this.onResume = val;
- },
- set$onCancel(val) {
- return this.onCancel = val;
- }
- };
- A._StreamController__subscribe_closure.prototype = {
- call$0() {
- A._runGuarded(this.$this.onListen);
- },
- $signature: 0
- };
- A._StreamController__recordCancel_complete.prototype = {
- call$0() {
- var doneFuture = this.$this._doneFuture;
- if (doneFuture != null && (doneFuture._state & 30) === 0)
- doneFuture._asyncComplete$1(null);
- },
- $signature: 0
- };
- A._SyncStreamControllerDispatch.prototype = {
- _sendData$1(data) {
- this.get$_subscription()._async$_add$1(data);
- },
- _sendError$2(error, stackTrace) {
- this.get$_subscription()._addError$2(error, stackTrace);
- },
- _sendDone$0() {
- this.get$_subscription()._close$0();
- }
- };
- A._AsyncStreamControllerDispatch.prototype = {
- _sendData$1(data) {
- this.get$_subscription()._addPending$1(new A._DelayedData(data));
- },
- _sendError$2(error, stackTrace) {
- this.get$_subscription()._addPending$1(new A._DelayedError(error, stackTrace));
- },
- _sendDone$0() {
- this.get$_subscription()._addPending$1(B.C__DelayedDone);
- }
- };
- A._AsyncStreamController.prototype = {};
- A._SyncStreamController.prototype = {};
- A._ControllerStream.prototype = {
- get$hashCode(_) {
- return (A.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- if (this === other)
- return true;
- return other instanceof A._ControllerStream && other._controller === this._controller;
- }
- };
- A._ControllerSubscription.prototype = {
- _async$_onCancel$0() {
- return this._controller._recordCancel$1(this);
- },
- _async$_onPause$0() {
- this._controller._recordPause$1(this);
- },
- _async$_onResume$0() {
- this._controller._recordResume$1(this);
- }
- };
- A._AddStreamState.prototype = {
- cancel$0() {
- var cancel = this.addSubscription.cancel$0();
- return cancel.whenComplete$1(new A._AddStreamState_cancel_closure(this));
- }
- };
- A._AddStreamState_makeErrorHandler_closure.prototype = {
- call$2(e, s) {
- var t1 = this.controller;
- t1._addError$2(e, s);
- t1._close$0();
- },
- $signature: 52
- };
- A._AddStreamState_cancel_closure.prototype = {
- call$0() {
- this.$this.addStreamFuture._asyncComplete$1(null);
- },
- $signature: 1
- };
- A._StreamControllerAddStreamState.prototype = {};
- A._BufferingStreamSubscription.prototype = {
- _setPendingEvents$1(pendingEvents) {
- var _this = this;
- if (pendingEvents == null)
- return;
- _this._pending = pendingEvents;
- if (pendingEvents.lastPendingEvent != null) {
- _this._state = (_this._state | 128) >>> 0;
- pendingEvents.schedule$1(_this);
- }
- },
- pause$1(_, resumeSignal) {
- var t2, t3, _this = this,
- t1 = _this._state;
- if ((t1 & 8) !== 0)
- return;
- t2 = (t1 + 256 | 4) >>> 0;
- _this._state = t2;
- if (t1 < 256) {
- t3 = _this._pending;
- if (t3 != null)
- if (t3._state === 1)
- t3._state = 3;
- }
- if ((t1 & 4) === 0 && (t2 & 64) === 0)
- _this._guardCallback$1(_this.get$_async$_onPause());
- },
- pause$0(_) {
- return this.pause$1(0, null);
- },
- resume$0(_) {
- var _this = this,
- t1 = _this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 >= 256) {
- t1 = _this._state = t1 - 256;
- if (t1 < 256)
- if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent != null)
- _this._pending.schedule$1(_this);
- else {
- t1 = (t1 & 4294967291) >>> 0;
- _this._state = t1;
- if ((t1 & 64) === 0)
- _this._guardCallback$1(_this.get$_async$_onResume());
- }
- }
- },
- cancel$0() {
- var _this = this,
- t1 = (_this._state & 4294967279) >>> 0;
- _this._state = t1;
- if ((t1 & 8) === 0)
- _this._cancel$0();
- t1 = _this._cancelFuture;
- return t1 == null ? $.$get$Future__nullFuture() : t1;
- },
- _cancel$0() {
- var t2, _this = this,
- t1 = _this._state = (_this._state | 8) >>> 0;
- if ((t1 & 128) !== 0) {
- t2 = _this._pending;
- if (t2._state === 1)
- t2._state = 3;
- }
- if ((t1 & 64) === 0)
- _this._pending = null;
- _this._cancelFuture = _this._async$_onCancel$0();
- },
- _async$_add$1(data) {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 < 64)
- this._sendData$1(data);
- else
- this._addPending$1(new A._DelayedData(data));
- },
- _addError$2(error, stackTrace) {
- var t1 = this._state;
- if ((t1 & 8) !== 0)
- return;
- if (t1 < 64)
- this._sendError$2(error, stackTrace);
- else
- this._addPending$1(new A._DelayedError(error, stackTrace));
- },
- _close$0() {
- var _this = this,
- t1 = _this._state;
- if ((t1 & 8) !== 0)
- return;
- t1 = (t1 | 2) >>> 0;
- _this._state = t1;
- if (t1 < 64)
- _this._sendDone$0();
- else
- _this._addPending$1(B.C__DelayedDone);
- },
- _async$_onPause$0() {
- },
- _async$_onResume$0() {
- },
- _async$_onCancel$0() {
- return null;
- },
- _addPending$1($event) {
- var t1, _this = this,
- pending = _this._pending;
- if (pending == null)
- pending = _this._pending = new A._PendingEvents();
- pending.add$1(0, $event);
- t1 = _this._state;
- if ((t1 & 128) === 0) {
- t1 = (t1 | 128) >>> 0;
- _this._state = t1;
- if (t1 < 256)
- pending.schedule$1(_this);
- }
- },
- _sendData$1(data) {
- var _this = this,
- t1 = _this._state;
- _this._state = (t1 | 64) >>> 0;
- _this._zone.runUnaryGuarded$1$2(_this._onData, data, A._instanceType(_this)._eval$1("_BufferingStreamSubscription.T"));
- _this._state = (_this._state & 4294967231) >>> 0;
- _this._checkState$1((t1 & 4) !== 0);
- },
- _sendError$2(error, stackTrace) {
- var cancelFuture, _this = this,
- t1 = _this._state,
- t2 = new A._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace);
- if ((t1 & 1) !== 0) {
- _this._state = (t1 | 16) >>> 0;
- _this._cancel$0();
- cancelFuture = _this._cancelFuture;
- if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
- cancelFuture.whenComplete$1(t2);
- else
- t2.call$0();
- } else {
- t2.call$0();
- _this._checkState$1((t1 & 4) !== 0);
- }
- },
- _sendDone$0() {
- var cancelFuture, _this = this,
- t1 = new A._BufferingStreamSubscription__sendDone_sendDone(_this);
- _this._cancel$0();
- _this._state = (_this._state | 16) >>> 0;
- cancelFuture = _this._cancelFuture;
- if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
- cancelFuture.whenComplete$1(t1);
- else
- t1.call$0();
- },
- _guardCallback$1(callback) {
- var _this = this,
- t1 = _this._state;
- _this._state = (t1 | 64) >>> 0;
- callback.call$0();
- _this._state = (_this._state & 4294967231) >>> 0;
- _this._checkState$1((t1 & 4) !== 0);
- },
- _checkState$1(wasInputPaused) {
- var t2, isInputPaused, _this = this,
- t1 = _this._state;
- if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent == null) {
- t1 = _this._state = (t1 & 4294967167) >>> 0;
- if ((t1 & 4) !== 0)
- if (t1 < 256) {
- t2 = _this._pending;
- t2 = t2 == null ? null : t2.lastPendingEvent == null;
- t2 = t2 !== false;
- } else
- t2 = false;
- else
- t2 = false;
- if (t2) {
- t1 = (t1 & 4294967291) >>> 0;
- _this._state = t1;
- }
- }
- for (; true; wasInputPaused = isInputPaused) {
- if ((t1 & 8) !== 0) {
- _this._pending = null;
- return;
- }
- isInputPaused = (t1 & 4) !== 0;
- if (wasInputPaused === isInputPaused)
- break;
- _this._state = (t1 ^ 64) >>> 0;
- if (isInputPaused)
- _this._async$_onPause$0();
- else
- _this._async$_onResume$0();
- t1 = (_this._state & 4294967231) >>> 0;
- _this._state = t1;
- }
- if ((t1 & 128) !== 0 && t1 < 256)
- _this._pending.schedule$1(_this);
- },
- $isStreamSubscription: 1
- };
- A._BufferingStreamSubscription__sendError_sendError.prototype = {
- call$0() {
- var onError, t3, t4,
- t1 = this.$this,
- t2 = t1._state;
- if ((t2 & 8) !== 0 && (t2 & 16) === 0)
- return;
- t1._state = (t2 | 64) >>> 0;
- onError = t1._onError;
- t2 = this.error;
- t3 = type$.Object;
- t4 = t1._zone;
- if (type$.void_Function_Object_StackTrace._is(onError))
- t4.runBinaryGuarded$2$3(onError, t2, this.stackTrace, t3, type$.StackTrace);
- else
- t4.runUnaryGuarded$1$2(onError, t2, t3);
- t1._state = (t1._state & 4294967231) >>> 0;
- },
- $signature: 0
- };
- A._BufferingStreamSubscription__sendDone_sendDone.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._state;
- if ((t2 & 16) === 0)
- return;
- t1._state = (t2 | 74) >>> 0;
- t1._zone.runGuarded$1(t1._onDone);
- t1._state = (t1._state & 4294967231) >>> 0;
- },
- $signature: 0
- };
- A._StreamImpl.prototype = {
- listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
- return this._controller._subscribe$4(onData, onError, onDone, cancelOnError === true);
- },
- listen$1(_, onData) {
- return this.listen$4$cancelOnError$onDone$onError(0, onData, null, null, null);
- },
- listen$3$onDone$onError(_, onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(0, onData, null, onDone, onError);
- }
- };
- A._DelayedEvent.prototype = {
- get$next() {
- return this.next;
- },
- set$next(val) {
- return this.next = val;
- }
- };
- A._DelayedData.prototype = {
- perform$1(dispatch) {
- dispatch._sendData$1(this.value);
- }
- };
- A._DelayedError.prototype = {
- perform$1(dispatch) {
- dispatch._sendError$2(this.error, this.stackTrace);
- }
- };
- A._DelayedDone.prototype = {
- perform$1(dispatch) {
- dispatch._sendDone$0();
- },
- get$next() {
- return null;
- },
- set$next(_) {
- throw A.wrapException(A.StateError$("No events after a done."));
- }
- };
- A._PendingEvents.prototype = {
- schedule$1(dispatch) {
- var _this = this,
- t1 = _this._state;
- if (t1 === 1)
- return;
- if (t1 >= 1) {
- _this._state = 1;
- return;
- }
- A.scheduleMicrotask(new A._PendingEvents_schedule_closure(_this, dispatch));
- _this._state = 1;
- },
- add$1(_, $event) {
- var _this = this,
- lastEvent = _this.lastPendingEvent;
- if (lastEvent == null)
- _this.firstPendingEvent = _this.lastPendingEvent = $event;
- else {
- lastEvent.set$next($event);
- _this.lastPendingEvent = $event;
- }
- }
- };
- A._PendingEvents_schedule_closure.prototype = {
- call$0() {
- var $event, nextEvent,
- t1 = this.$this,
- oldState = t1._state;
- t1._state = 0;
- if (oldState === 3)
- return;
- $event = t1.firstPendingEvent;
- nextEvent = $event.get$next();
- t1.firstPendingEvent = nextEvent;
- if (nextEvent == null)
- t1.lastPendingEvent = null;
- $event.perform$1(this.dispatch);
- },
- $signature: 0
- };
- A._StreamIterator.prototype = {
- get$current(_) {
- if (this._async$_hasValue)
- return this._stateData;
- return null;
- },
- moveNext$0() {
- var future, _this = this,
- subscription = _this._subscription;
- if (subscription != null) {
- if (_this._async$_hasValue) {
- future = new A._Future($.Zone__current, type$._Future_bool);
- _this._stateData = future;
- _this._async$_hasValue = false;
- subscription.resume$0(0);
- return future;
- }
- throw A.wrapException(A.StateError$("Already waiting for next."));
- }
- return _this._initializeOrDone$0();
- },
- _initializeOrDone$0() {
- var future, subscription, _this = this,
- stateData = _this._stateData;
- if (stateData != null) {
- future = new A._Future($.Zone__current, type$._Future_bool);
- _this._stateData = future;
- subscription = stateData.listen$4$cancelOnError$onDone$onError(0, _this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError());
- if (_this._stateData != null)
- _this._subscription = subscription;
- return future;
- }
- return $.$get$Future__falseFuture();
- },
- cancel$0() {
- var _this = this,
- subscription = _this._subscription,
- stateData = _this._stateData;
- _this._stateData = null;
- if (subscription != null) {
- _this._subscription = null;
- if (!_this._async$_hasValue)
- stateData._asyncComplete$1(false);
- else
- _this._async$_hasValue = false;
- return subscription.cancel$0();
- }
- return $.$get$Future__nullFuture();
- },
- _onData$1(data) {
- var moveNextFuture, t1, _this = this;
- if (_this._subscription == null)
- return;
- moveNextFuture = _this._stateData;
- _this._stateData = data;
- _this._async$_hasValue = true;
- moveNextFuture._complete$1(true);
- if (_this._async$_hasValue) {
- t1 = _this._subscription;
- if (t1 != null)
- t1.pause$0(0);
- }
- },
- _onError$2(error, stackTrace) {
- var _this = this,
- subscription = _this._subscription,
- moveNextFuture = _this._stateData;
- _this._stateData = _this._subscription = null;
- if (subscription != null)
- moveNextFuture._completeError$2(error, stackTrace);
- else
- moveNextFuture._asyncCompleteError$2(error, stackTrace);
- },
- _onDone$0() {
- var _this = this,
- subscription = _this._subscription,
- moveNextFuture = _this._stateData;
- _this._stateData = _this._subscription = null;
- if (subscription != null)
- moveNextFuture._completeWithValue$1(false);
- else
- moveNextFuture._asyncCompleteWithValue$1(false);
- }
- };
- A._ForwardingStream.prototype = {
- get$isBroadcast() {
- return this._async$_source.get$isBroadcast();
- },
- listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
- var t1 = this.$ti,
- t2 = t1._rest[1],
- t3 = $.Zone__current,
- t4 = cancelOnError === true ? 1 : 0,
- t5 = onError != null ? 32 : 0,
- t6 = A._BufferingStreamSubscription__registerDataHandler(t3, onData, t2),
- t7 = A._BufferingStreamSubscription__registerErrorHandler(t3, onError),
- t8 = onDone == null ? A.async___nullDoneHandler$closure() : onDone;
- t2 = new A._ForwardingStreamSubscription(this, t6, t7, t3.registerCallback$1$1(t8, type$.void), t3, t4 | t5, t1._eval$1("@<1>")._bind$1(t2)._eval$1("_ForwardingStreamSubscription<1,2>"));
- t2._subscription = this._async$_source.listen$3$onDone$onError(0, t2.get$_handleData(), t2.get$_handleDone(), t2.get$_handleError());
- return t2;
- },
- listen$1(_, onData) {
- return this.listen$4$cancelOnError$onDone$onError(0, onData, null, null, null);
- },
- listen$3$onDone$onError(_, onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(0, onData, null, onDone, onError);
- }
- };
- A._ForwardingStreamSubscription.prototype = {
- _async$_add$1(data) {
- if ((this._state & 2) !== 0)
- return;
- this.super$_BufferingStreamSubscription$_add(data);
- },
- _addError$2(error, stackTrace) {
- if ((this._state & 2) !== 0)
- return;
- this.super$_BufferingStreamSubscription$_addError(error, stackTrace);
- },
- _async$_onPause$0() {
- var t1 = this._subscription;
- if (t1 != null)
- t1.pause$0(0);
- },
- _async$_onResume$0() {
- var t1 = this._subscription;
- if (t1 != null)
- t1.resume$0(0);
- },
- _async$_onCancel$0() {
- var subscription = this._subscription;
- if (subscription != null) {
- this._subscription = null;
- return subscription.cancel$0();
- }
- return null;
- },
- _handleData$1(data) {
- this._stream._handleData$2(data, this);
- },
- _handleError$2(error, stackTrace) {
- this._addError$2(error, stackTrace);
- },
- _handleDone$0() {
- this._close$0();
- }
- };
- A._ExpandStream.prototype = {
- _handleData$2(inputEvent, sink) {
- var value, e, s, t1, exception, error, stackTrace, replacement;
- try {
- for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) {
- value = t1.get$current(t1);
- sink._async$_add$1(value);
- }
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- error = e;
- stackTrace = s;
- replacement = $.Zone__current.errorCallback$2(error, stackTrace);
- if (replacement != null) {
- error = replacement.error;
- stackTrace = replacement.stackTrace;
- }
- sink._addError$2(error, stackTrace);
- }
- }
- };
- A._ZoneFunction.prototype = {};
- A._ZoneSpecification.prototype = {$isZoneSpecification: 1};
- A._ZoneDelegate.prototype = {$isZoneDelegate: 1};
- A._Zone.prototype = {
- _processUncaughtError$3(zone, error, stackTrace) {
- var handler, parentDelegate, parentZone, currentZone, e, s, t1, exception,
- implementation = this.get$_handleUncaughtError(),
- implZone = implementation.zone;
- if (implZone === B.C__RootZone) {
- A._rootHandleError(error, stackTrace);
- return;
- }
- handler = implementation.$function;
- parentDelegate = implZone.get$_parentDelegate();
- t1 = J.get$parent$z(implZone);
- t1.toString;
- parentZone = t1;
- currentZone = $.Zone__current;
- try {
- $.Zone__current = parentZone;
- handler.call$5(implZone, parentDelegate, zone, error, stackTrace);
- $.Zone__current = currentZone;
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- $.Zone__current = currentZone;
- t1 = error === e ? stackTrace : s;
- parentZone._processUncaughtError$3(implZone, e, t1);
- }
- },
- $isZone: 1
- };
- A._CustomZone.prototype = {
- get$_delegate() {
- var t1 = this._delegateCache;
- return t1 == null ? this._delegateCache = new A._ZoneDelegate(this) : t1;
- },
- get$_parentDelegate() {
- return this.parent.get$_delegate();
- },
- get$errorZone() {
- return this._handleUncaughtError.zone;
- },
- runGuarded$1(f) {
- var e, s, exception;
- try {
- this.run$1$1(0, f, type$.void);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- this._processUncaughtError$3(this, e, s);
- }
- },
- runUnaryGuarded$1$2(f, arg, $T) {
- var e, s, exception;
- try {
- this.runUnary$2$2(f, arg, type$.void, $T);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- this._processUncaughtError$3(this, e, s);
- }
- },
- runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) {
- var e, s, exception;
- try {
- this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- this._processUncaughtError$3(this, e, s);
- }
- },
- bindCallback$1$1(f, $R) {
- return new A._CustomZone_bindCallback_closure(this, this.registerCallback$1$1(f, $R), $R);
- },
- bindUnaryCallback$2$1(f, $R, $T) {
- return new A._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1(f, $R, $T), $T, $R);
- },
- bindCallbackGuarded$1(f) {
- return new A._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(f, type$.void));
- },
- $index(_, key) {
- var value,
- t1 = this._async$_map,
- result = t1.$index(0, key);
- if (result != null || t1.containsKey$1(key))
- return result;
- value = this.parent.$index(0, key);
- if (value != null)
- t1.$indexSet(0, key, value);
- return value;
- },
- handleUncaughtError$2(error, stackTrace) {
- this._processUncaughtError$3(this, error, stackTrace);
- },
- fork$2$specification$zoneValues(specification, zoneValues) {
- var implementation = this._fork,
- t1 = implementation.zone;
- return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues);
- },
- run$1$1(_, f) {
- var implementation = this._run,
- t1 = implementation.zone;
- return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
- },
- runUnary$2$2(f, arg) {
- var implementation = this._runUnary,
- t1 = implementation.zone;
- return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, f, arg);
- },
- runBinary$3$3(f, arg1, arg2) {
- var implementation = this._runBinary,
- t1 = implementation.zone;
- return implementation.$function.call$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2);
- },
- registerCallback$1$1(callback) {
- var implementation = this._registerCallback,
- t1 = implementation.zone;
- return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
- },
- registerUnaryCallback$2$1(callback) {
- var implementation = this._registerUnaryCallback,
- t1 = implementation.zone;
- return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
- },
- registerBinaryCallback$3$1(callback) {
- var implementation = this._registerBinaryCallback,
- t1 = implementation.zone;
- return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
- },
- errorCallback$2(error, stackTrace) {
- var implementation, implementationZone;
- A.checkNotNullable(error, "error", type$.Object);
- implementation = this._errorCallback;
- implementationZone = implementation.zone;
- if (implementationZone === B.C__RootZone)
- return null;
- return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace);
- },
- scheduleMicrotask$1(f) {
- var implementation = this._scheduleMicrotask,
- t1 = implementation.zone;
- return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
- },
- createTimer$2(duration, f) {
- var implementation = this._createTimer,
- t1 = implementation.zone;
- return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f);
- },
- print$1(line) {
- var implementation = this._print,
- t1 = implementation.zone;
- return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line);
- },
- get$_run() {
- return this._run;
- },
- get$_runUnary() {
- return this._runUnary;
- },
- get$_runBinary() {
- return this._runBinary;
- },
- get$_registerCallback() {
- return this._registerCallback;
- },
- get$_registerUnaryCallback() {
- return this._registerUnaryCallback;
- },
- get$_registerBinaryCallback() {
- return this._registerBinaryCallback;
- },
- get$_errorCallback() {
- return this._errorCallback;
- },
- get$_scheduleMicrotask() {
- return this._scheduleMicrotask;
- },
- get$_createTimer() {
- return this._createTimer;
- },
- get$_createPeriodicTimer() {
- return this._createPeriodicTimer;
- },
- get$_print() {
- return this._print;
- },
- get$_fork() {
- return this._fork;
- },
- get$_handleUncaughtError() {
- return this._handleUncaughtError;
- },
- get$parent(receiver) {
- return this.parent;
- },
- get$_async$_map() {
- return this._async$_map;
- }
- };
- A._CustomZone_bindCallback_closure.prototype = {
- call$0() {
- return this.$this.run$1$1(0, this.registered, this.R);
- },
- $signature() {
- return this.R._eval$1("0()");
- }
- };
- A._CustomZone_bindUnaryCallback_closure.prototype = {
- call$1(arg) {
- var _this = this;
- return _this.$this.runUnary$2$2(_this.registered, arg, _this.R, _this.T);
- },
- $signature() {
- return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
- }
- };
- A._CustomZone_bindCallbackGuarded_closure.prototype = {
- call$0() {
- return this.$this.runGuarded$1(this.registered);
- },
- $signature: 0
- };
- A._rootHandleError_closure.prototype = {
- call$0() {
- A.Error_throwWithStackTrace(this.error, this.stackTrace);
- },
- $signature: 0
- };
- A._RootZone.prototype = {
- get$_run() {
- return B._ZoneFunction__RootZone__rootRun;
- },
- get$_runUnary() {
- return B._ZoneFunction__RootZone__rootRunUnary;
- },
- get$_runBinary() {
- return B._ZoneFunction__RootZone__rootRunBinary;
- },
- get$_registerCallback() {
- return B._ZoneFunction__RootZone__rootRegisterCallback;
- },
- get$_registerUnaryCallback() {
- return B._ZoneFunction_QOa;
- },
- get$_registerBinaryCallback() {
- return B._ZoneFunction_qxw;
- },
- get$_errorCallback() {
- return B._ZoneFunction__RootZone__rootErrorCallback;
- },
- get$_scheduleMicrotask() {
- return B._ZoneFunction__RootZone__rootScheduleMicrotask;
- },
- get$_createTimer() {
- return B._ZoneFunction__RootZone__rootCreateTimer;
- },
- get$_createPeriodicTimer() {
- return B._ZoneFunction_kWM;
- },
- get$_print() {
- return B._ZoneFunction__RootZone__rootPrint;
- },
- get$_fork() {
- return B._ZoneFunction__RootZone__rootFork;
- },
- get$_handleUncaughtError() {
- return B._ZoneFunction_NIe;
- },
- get$parent(_) {
- return null;
- },
- get$_async$_map() {
- return $.$get$_RootZone__rootMap();
- },
- get$_delegate() {
- var t1 = $._RootZone__rootDelegate;
- return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1;
- },
- get$_parentDelegate() {
- var t1 = $._RootZone__rootDelegate;
- return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1;
- },
- get$errorZone() {
- return this;
- },
- runGuarded$1(f) {
- var e, s, exception;
- try {
- if (B.C__RootZone === $.Zone__current) {
- f.call$0();
- return;
- }
- A._rootRun(null, null, this, f);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- A._rootHandleError(e, s);
- }
- },
- runUnaryGuarded$1$2(f, arg) {
- var e, s, exception;
- try {
- if (B.C__RootZone === $.Zone__current) {
- f.call$1(arg);
- return;
- }
- A._rootRunUnary(null, null, this, f, arg);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- A._rootHandleError(e, s);
- }
- },
- runBinaryGuarded$2$3(f, arg1, arg2) {
- var e, s, exception;
- try {
- if (B.C__RootZone === $.Zone__current) {
- f.call$2(arg1, arg2);
- return;
- }
- A._rootRunBinary(null, null, this, f, arg1, arg2);
- } catch (exception) {
- e = A.unwrapException(exception);
- s = A.getTraceFromException(exception);
- A._rootHandleError(e, s);
- }
- },
- bindCallback$1$1(f, $R) {
- return new A._RootZone_bindCallback_closure(this, f, $R);
- },
- bindUnaryCallback$2$1(f, $R, $T) {
- return new A._RootZone_bindUnaryCallback_closure(this, f, $T, $R);
- },
- bindCallbackGuarded$1(f) {
- return new A._RootZone_bindCallbackGuarded_closure(this, f);
- },
- $index(_, key) {
- return null;
- },
- handleUncaughtError$2(error, stackTrace) {
- A._rootHandleError(error, stackTrace);
- },
- fork$2$specification$zoneValues(specification, zoneValues) {
- return A._rootFork(null, null, this, specification, zoneValues);
- },
- run$1$1(_, f) {
- if ($.Zone__current === B.C__RootZone)
- return f.call$0();
- return A._rootRun(null, null, this, f);
- },
- runUnary$2$2(f, arg) {
- if ($.Zone__current === B.C__RootZone)
- return f.call$1(arg);
- return A._rootRunUnary(null, null, this, f, arg);
- },
- runBinary$3$3(f, arg1, arg2) {
- if ($.Zone__current === B.C__RootZone)
- return f.call$2(arg1, arg2);
- return A._rootRunBinary(null, null, this, f, arg1, arg2);
- },
- registerCallback$1$1(f) {
- return f;
- },
- registerUnaryCallback$2$1(f) {
- return f;
- },
- registerBinaryCallback$3$1(f) {
- return f;
- },
- errorCallback$2(error, stackTrace) {
- return null;
- },
- scheduleMicrotask$1(f) {
- A._rootScheduleMicrotask(null, null, this, f);
- },
- createTimer$2(duration, f) {
- return A.Timer__createTimer(duration, f);
- },
- print$1(line) {
- A.printString(line);
- }
- };
- A._RootZone_bindCallback_closure.prototype = {
- call$0() {
- return this.$this.run$1$1(0, this.f, this.R);
- },
- $signature() {
- return this.R._eval$1("0()");
- }
- };
- A._RootZone_bindUnaryCallback_closure.prototype = {
- call$1(arg) {
- var _this = this;
- return _this.$this.runUnary$2$2(_this.f, arg, _this.R, _this.T);
- },
- $signature() {
- return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
- }
- };
- A._RootZone_bindCallbackGuarded_closure.prototype = {
- call$0() {
- return this.$this.runGuarded$1(this.f);
- },
- $signature: 0
- };
- A._HashMap.prototype = {
- get$length(_) {
- return this._collection$_length;
- },
- get$isEmpty(_) {
- return this._collection$_length === 0;
- },
- get$isNotEmpty(_) {
- return this._collection$_length !== 0;
- },
- get$keys(_) {
- return new A._HashMapKeyIterable(this, A._instanceType(this)._eval$1("_HashMapKeyIterable<1>"));
- },
- get$values(_) {
- var t1 = A._instanceType(this);
- return A.MappedIterable_MappedIterable(new A._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new A._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
- },
- containsKey$1(key) {
- var strings, nums;
- if (typeof key == "string" && key !== "__proto__") {
- strings = this._strings;
- return strings == null ? false : strings[key] != null;
- } else if (typeof key == "number" && (key & 1073741823) === key) {
- nums = this._nums;
- return nums == null ? false : nums[key] != null;
- } else
- return this._containsKey$1(key);
- },
- _containsKey$1(key) {
- var rest = this._collection$_rest;
- if (rest == null)
- return false;
- return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0;
- },
- addAll$1(_, other) {
- other.forEach$1(0, new A._HashMap_addAll_closure(this));
- },
- $index(_, key) {
- var strings, t1, nums;
- if (typeof key == "string" && key !== "__proto__") {
- strings = this._strings;
- t1 = strings == null ? null : A._HashMap__getTableEntry(strings, key);
- return t1;
- } else if (typeof key == "number" && (key & 1073741823) === key) {
- nums = this._nums;
- t1 = nums == null ? null : A._HashMap__getTableEntry(nums, key);
- return t1;
- } else
- return this._get$1(key);
- },
- _get$1(key) {
- var bucket, index,
- rest = this._collection$_rest;
- if (rest == null)
- return null;
- bucket = this._getBucket$2(rest, key);
- index = this._findBucketIndex$2(bucket, key);
- return index < 0 ? null : bucket[index + 1];
- },
- $indexSet(_, key, value) {
- var strings, nums, _this = this;
- if (typeof key == "string" && key !== "__proto__") {
- strings = _this._strings;
- _this._addHashTableEntry$3(strings == null ? _this._strings = A._HashMap__newHashTable() : strings, key, value);
- } else if (typeof key == "number" && (key & 1073741823) === key) {
- nums = _this._nums;
- _this._addHashTableEntry$3(nums == null ? _this._nums = A._HashMap__newHashTable() : nums, key, value);
- } else
- _this._set$2(key, value);
- },
- _set$2(key, value) {
- var hash, bucket, index, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- rest = _this._collection$_rest = A._HashMap__newHashTable();
- hash = _this._computeHashCode$1(key);
- bucket = rest[hash];
- if (bucket == null) {
- A._HashMap__setTableEntry(rest, hash, [key, value]);
- ++_this._collection$_length;
- _this._collection$_keys = null;
- } else {
- index = _this._findBucketIndex$2(bucket, key);
- if (index >= 0)
- bucket[index + 1] = value;
- else {
- bucket.push(key, value);
- ++_this._collection$_length;
- _this._collection$_keys = null;
- }
- }
- },
- remove$1(_, key) {
- var _this = this;
- if (typeof key == "string" && key !== "__proto__")
- return _this._removeHashTableEntry$2(_this._strings, key);
- else if (typeof key == "number" && (key & 1073741823) === key)
- return _this._removeHashTableEntry$2(_this._nums, key);
- else
- return _this._remove$1(key);
- },
- _remove$1(key) {
- var hash, bucket, index, result, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- return null;
- hash = _this._computeHashCode$1(key);
- bucket = rest[hash];
- index = _this._findBucketIndex$2(bucket, key);
- if (index < 0)
- return null;
- --_this._collection$_length;
- _this._collection$_keys = null;
- result = bucket.splice(index, 2)[1];
- if (0 === bucket.length)
- delete rest[hash];
- return result;
- },
- forEach$1(_, action) {
- var $length, t1, i, key, t2, _this = this,
- keys = _this._computeKeys$0();
- for ($length = keys.length, t1 = A._instanceType(_this)._rest[1], i = 0; i < $length; ++i) {
- key = keys[i];
- t2 = _this.$index(0, key);
- action.call$2(key, t2 == null ? t1._as(t2) : t2);
- if (keys !== _this._collection$_keys)
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- },
- _computeKeys$0() {
- var strings, names, entries, index, i, nums, rest, bucket, $length, i0, _this = this,
- result = _this._collection$_keys;
- if (result != null)
- return result;
- result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic);
- strings = _this._strings;
- if (strings != null) {
- names = Object.getOwnPropertyNames(strings);
- entries = names.length;
- for (index = 0, i = 0; i < entries; ++i) {
- result[index] = names[i];
- ++index;
- }
- } else
- index = 0;
- nums = _this._nums;
- if (nums != null) {
- names = Object.getOwnPropertyNames(nums);
- entries = names.length;
- for (i = 0; i < entries; ++i) {
- result[index] = +names[i];
- ++index;
- }
- }
- rest = _this._collection$_rest;
- if (rest != null) {
- names = Object.getOwnPropertyNames(rest);
- entries = names.length;
- for (i = 0; i < entries; ++i) {
- bucket = rest[names[i]];
- $length = bucket.length;
- for (i0 = 0; i0 < $length; i0 += 2) {
- result[index] = bucket[i0];
- ++index;
- }
- }
- }
- return _this._collection$_keys = result;
- },
- _addHashTableEntry$3(table, key, value) {
- if (table[key] == null) {
- ++this._collection$_length;
- this._collection$_keys = null;
- }
- A._HashMap__setTableEntry(table, key, value);
- },
- _removeHashTableEntry$2(table, key) {
- var value;
- if (table != null && table[key] != null) {
- value = A._HashMap__getTableEntry(table, key);
- delete table[key];
- --this._collection$_length;
- this._collection$_keys = null;
- return value;
- } else
- return null;
- },
- _computeHashCode$1(key) {
- return J.get$hashCode$(key) & 1073741823;
- },
- _getBucket$2(table, key) {
- return table[this._computeHashCode$1(key)];
- },
- _findBucketIndex$2(bucket, key) {
- var $length, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; i += 2)
- if (J.$eq$(bucket[i], key))
- return i;
- return -1;
- }
- };
- A._HashMap_values_closure.prototype = {
- call$1(each) {
- var t1 = this.$this,
- t2 = t1.$index(0, each);
- return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2;
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("2(1)");
- }
- };
- A._HashMap_addAll_closure.prototype = {
- call$2(key, value) {
- this.$this.$indexSet(0, key, value);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("~(1,2)");
- }
- };
- A._IdentityHashMap.prototype = {
- _computeHashCode$1(key) {
- return A.objectHashCode(key) & 1073741823;
- },
- _findBucketIndex$2(bucket, key) {
- var $length, i, t1;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; i += 2) {
- t1 = bucket[i];
- if (t1 == null ? key == null : t1 === key)
- return i;
- }
- return -1;
- }
- };
- A._HashMapKeyIterable.prototype = {
- get$length(_) {
- return this._map._collection$_length;
- },
- get$isEmpty(_) {
- return this._map._collection$_length === 0;
- },
- get$isNotEmpty(_) {
- return this._map._collection$_length !== 0;
- },
- get$iterator(_) {
- var t1 = this._map;
- return new A._HashMapKeyIterator(t1, t1._computeKeys$0(), this.$ti._eval$1("_HashMapKeyIterator<1>"));
- },
- contains$1(_, element) {
- return this._map.containsKey$1(element);
- }
- };
- A._HashMapKeyIterator.prototype = {
- get$current(_) {
- var t1 = this._collection$_current;
- return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
- },
- moveNext$0() {
- var _this = this,
- keys = _this._collection$_keys,
- offset = _this._offset,
- t1 = _this._map;
- if (keys !== t1._collection$_keys)
- throw A.wrapException(A.ConcurrentModificationError$(t1));
- else if (offset >= keys.length) {
- _this._collection$_current = null;
- return false;
- } else {
- _this._collection$_current = keys[offset];
- _this._offset = offset + 1;
- return true;
- }
- }
- };
- A._LinkedCustomHashMap.prototype = {
- $index(_, key) {
- if (!this._validKey.call$1(key))
- return null;
- return this.super$JsLinkedHashMap$internalGet(key);
- },
- $indexSet(_, key, value) {
- this.super$JsLinkedHashMap$internalSet(key, value);
- },
- containsKey$1(key) {
- if (!this._validKey.call$1(key))
- return false;
- return this.super$JsLinkedHashMap$internalContainsKey(key);
- },
- remove$1(_, key) {
- if (!this._validKey.call$1(key))
- return null;
- return this.super$JsLinkedHashMap$internalRemove(key);
- },
- internalComputeHashCode$1(key) {
- return this._hashCode.call$1(key) & 1073741823;
- },
- internalFindBucketIndex$2(bucket, key) {
- var $length, t1, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (t1 = this._equals, i = 0; i < $length; ++i)
- if (t1.call$2(bucket[i].hashMapCellKey, key))
- return i;
- return -1;
- }
- };
- A._LinkedCustomHashMap_closure.prototype = {
- call$1(v) {
- return this.K._is(v);
- },
- $signature: 128
- };
- A._LinkedHashSet.prototype = {
- _newSet$0() {
- return new A._LinkedHashSet(A._instanceType(this)._eval$1("_LinkedHashSet<1>"));
- },
- _newSimilarSet$1$0($R) {
- return new A._LinkedHashSet($R._eval$1("_LinkedHashSet<0>"));
- },
- _newSimilarSet$0() {
- return this._newSimilarSet$1$0(type$.dynamic);
- },
- get$iterator(_) {
- var _this = this,
- t1 = new A._LinkedHashSetIterator(_this, _this._modifications, A._instanceType(_this)._eval$1("_LinkedHashSetIterator<1>"));
- t1._cell = _this._first;
- return t1;
- },
- get$length(_) {
- return this._collection$_length;
- },
- get$isEmpty(_) {
- return this._collection$_length === 0;
- },
- get$isNotEmpty(_) {
- return this._collection$_length !== 0;
- },
- contains$1(_, object) {
- var strings, nums;
- if (typeof object == "string" && object !== "__proto__") {
- strings = this._strings;
- if (strings == null)
- return false;
- return strings[object] != null;
- } else if (typeof object == "number" && (object & 1073741823) === object) {
- nums = this._nums;
- if (nums == null)
- return false;
- return nums[object] != null;
- } else
- return this._contains$1(object);
- },
- _contains$1(object) {
- var rest = this._collection$_rest;
- if (rest == null)
- return false;
- return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
- },
- get$first(_) {
- var first = this._first;
- if (first == null)
- throw A.wrapException(A.StateError$("No elements"));
- return first._element;
- },
- get$last(_) {
- var last = this._last;
- if (last == null)
- throw A.wrapException(A.StateError$("No elements"));
- return last._element;
- },
- add$1(_, element) {
- var strings, nums, _this = this;
- if (typeof element == "string" && element !== "__proto__") {
- strings = _this._strings;
- return _this._addHashTableEntry$2(strings == null ? _this._strings = A._LinkedHashSet__newHashTable() : strings, element);
- } else if (typeof element == "number" && (element & 1073741823) === element) {
- nums = _this._nums;
- return _this._addHashTableEntry$2(nums == null ? _this._nums = A._LinkedHashSet__newHashTable() : nums, element);
- } else
- return _this._add$1(element);
- },
- _add$1(element) {
- var hash, bucket, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- rest = _this._collection$_rest = A._LinkedHashSet__newHashTable();
- hash = _this._computeHashCode$1(element);
- bucket = rest[hash];
- if (bucket == null)
- rest[hash] = [_this._newLinkedCell$1(element)];
- else {
- if (_this._findBucketIndex$2(bucket, element) >= 0)
- return false;
- bucket.push(_this._newLinkedCell$1(element));
- }
- return true;
- },
- remove$1(_, object) {
- var _this = this;
- if (typeof object == "string" && object !== "__proto__")
- return _this._removeHashTableEntry$2(_this._strings, object);
- else if (typeof object == "number" && (object & 1073741823) === object)
- return _this._removeHashTableEntry$2(_this._nums, object);
- else
- return _this._remove$1(object);
- },
- _remove$1(object) {
- var hash, bucket, index, cell, _this = this,
- rest = _this._collection$_rest;
- if (rest == null)
- return false;
- hash = _this._computeHashCode$1(object);
- bucket = rest[hash];
- index = _this._findBucketIndex$2(bucket, object);
- if (index < 0)
- return false;
- cell = bucket.splice(index, 1)[0];
- if (0 === bucket.length)
- delete rest[hash];
- _this._unlinkCell$1(cell);
- return true;
- },
- _addHashTableEntry$2(table, element) {
- if (table[element] != null)
- return false;
- table[element] = this._newLinkedCell$1(element);
- return true;
- },
- _removeHashTableEntry$2(table, element) {
- var cell;
- if (table == null)
- return false;
- cell = table[element];
- if (cell == null)
- return false;
- this._unlinkCell$1(cell);
- delete table[element];
- return true;
- },
- _modified$0() {
- this._modifications = this._modifications + 1 & 1073741823;
- },
- _newLinkedCell$1(element) {
- var t1, _this = this,
- cell = new A._LinkedHashSetCell(element);
- if (_this._first == null)
- _this._first = _this._last = cell;
- else {
- t1 = _this._last;
- t1.toString;
- cell._previous = t1;
- _this._last = t1._next = cell;
- }
- ++_this._collection$_length;
- _this._modified$0();
- return cell;
- },
- _unlinkCell$1(cell) {
- var _this = this,
- previous = cell._previous,
- next = cell._next;
- if (previous == null)
- _this._first = next;
- else
- previous._next = next;
- if (next == null)
- _this._last = previous;
- else
- next._previous = previous;
- --_this._collection$_length;
- _this._modified$0();
- },
- _computeHashCode$1(element) {
- return J.get$hashCode$(element) & 1073741823;
- },
- _findBucketIndex$2(bucket, element) {
- var $length, i;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i)
- if (J.$eq$(bucket[i]._element, element))
- return i;
- return -1;
- }
- };
- A._LinkedIdentityHashSet.prototype = {
- _newSet$0() {
- return new A._LinkedIdentityHashSet(this.$ti);
- },
- _newSimilarSet$1$0($R) {
- return new A._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>"));
- },
- _newSimilarSet$0() {
- return this._newSimilarSet$1$0(type$.dynamic);
- },
- _computeHashCode$1(key) {
- return A.objectHashCode(key) & 1073741823;
- },
- _findBucketIndex$2(bucket, element) {
- var $length, i, t1;
- if (bucket == null)
- return -1;
- $length = bucket.length;
- for (i = 0; i < $length; ++i) {
- t1 = bucket[i]._element;
- if (t1 == null ? element == null : t1 === element)
- return i;
- }
- return -1;
- }
- };
- A._LinkedHashSetCell.prototype = {};
- A._LinkedHashSetIterator.prototype = {
- get$current(_) {
- var t1 = this._collection$_current;
- return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
- },
- moveNext$0() {
- var _this = this,
- cell = _this._cell,
- t1 = _this._set;
- if (_this._modifications !== t1._modifications)
- throw A.wrapException(A.ConcurrentModificationError$(t1));
- else if (cell == null) {
- _this._collection$_current = null;
- return false;
- } else {
- _this._collection$_current = cell._element;
- _this._cell = cell._next;
- return true;
- }
- }
- };
- A.UnmodifiableListView.prototype = {
- cast$1$0(_, $R) {
- return new A.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>"));
- },
- get$length(_) {
- return J.get$length$asx(this._collection$_source);
- },
- $index(_, index) {
- return J.elementAt$1$ax(this._collection$_source, index);
- }
- };
- A.HashMap_HashMap$from_closure.prototype = {
- call$2(k, v) {
- this.result.$indexSet(0, this.K._as(k), this.V._as(v));
- },
- $signature: 168
- };
- A.LinkedHashMap_LinkedHashMap$from_closure.prototype = {
- call$2(k, v) {
- this.result.$indexSet(0, this.K._as(k), this.V._as(v));
- },
- $signature: 168
- };
- A.ListBase.prototype = {
- get$iterator(receiver) {
- return new A.ListIterator(receiver, this.get$length(receiver), A.instanceType(receiver)._eval$1("ListIterator<ListBase.E>"));
- },
- elementAt$1(receiver, index) {
- return this.$index(receiver, index);
- },
- forEach$1(receiver, action) {
- var i,
- $length = this.get$length(receiver);
- for (i = 0; i < $length; ++i) {
- action.call$1(this.$index(receiver, i));
- if ($length !== this.get$length(receiver))
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- },
- get$isEmpty(receiver) {
- return this.get$length(receiver) === 0;
- },
- get$isNotEmpty(receiver) {
- return !this.get$isEmpty(receiver);
- },
- get$first(receiver) {
- if (this.get$length(receiver) === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- return this.$index(receiver, 0);
- },
- get$last(receiver) {
- if (this.get$length(receiver) === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- return this.$index(receiver, this.get$length(receiver) - 1);
- },
- get$single(receiver) {
- if (this.get$length(receiver) === 0)
- throw A.wrapException(A.IterableElementError_noElement());
- if (this.get$length(receiver) > 1)
- throw A.wrapException(A.IterableElementError_tooMany());
- return this.$index(receiver, 0);
- },
- contains$1(receiver, element) {
- var i,
- $length = this.get$length(receiver);
- for (i = 0; i < $length; ++i) {
- if (J.$eq$(this.$index(receiver, i), element))
- return true;
- if ($length !== this.get$length(receiver))
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- return false;
- },
- every$1(receiver, test) {
- var i,
- $length = this.get$length(receiver);
- for (i = 0; i < $length; ++i) {
- if (!test.call$1(this.$index(receiver, i)))
- return false;
- if ($length !== this.get$length(receiver))
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- return true;
- },
- any$1(receiver, test) {
- var i,
- $length = this.get$length(receiver);
- for (i = 0; i < $length; ++i) {
- if (test.call$1(this.$index(receiver, i)))
- return true;
- if ($length !== this.get$length(receiver))
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- return false;
- },
- lastWhere$2$orElse(receiver, test, orElse) {
- var i, element,
- $length = this.get$length(receiver);
- for (i = $length - 1; i >= 0; --i) {
- element = this.$index(receiver, i);
- if (test.call$1(element))
- return element;
- if ($length !== this.get$length(receiver))
- throw A.wrapException(A.ConcurrentModificationError$(receiver));
- }
- if (orElse != null)
- return orElse.call$0();
- throw A.wrapException(A.IterableElementError_noElement());
- },
- join$1(receiver, separator) {
- var t1;
- if (this.get$length(receiver) === 0)
- return "";
- t1 = A.StringBuffer__writeAll("", receiver, separator);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- where$1(receiver, test) {
- return new A.WhereIterable(receiver, test, A.instanceType(receiver)._eval$1("WhereIterable<ListBase.E>"));
- },
- map$1$1(receiver, f, $T) {
- return new A.MappedListIterable(receiver, f, A.instanceType(receiver)._eval$1("@<ListBase.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
- },
- expand$1$1(receiver, f, $T) {
- return new A.ExpandIterable(receiver, f, A.instanceType(receiver)._eval$1("@<ListBase.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
- },
- skip$1(receiver, count) {
- return A.SubListIterable$(receiver, count, null, A.instanceType(receiver)._eval$1("ListBase.E"));
- },
- take$1(receiver, count) {
- return A.SubListIterable$(receiver, 0, A.checkNotNullable(count, "count", type$.int), A.instanceType(receiver)._eval$1("ListBase.E"));
- },
- toList$1$growable(receiver, growable) {
- var t1, first, result, i, _this = this;
- if (_this.get$isEmpty(receiver)) {
- t1 = J.JSArray_JSArray$growable(0, A.instanceType(receiver)._eval$1("ListBase.E"));
- return t1;
- }
- first = _this.$index(receiver, 0);
- result = A.List_List$filled(_this.get$length(receiver), first, true, A.instanceType(receiver)._eval$1("ListBase.E"));
- for (i = 1; i < _this.get$length(receiver); ++i)
- result[i] = _this.$index(receiver, i);
- return result;
- },
- toList$0(receiver) {
- return this.toList$1$growable(receiver, true);
- },
- toSet$0(receiver) {
- var i,
- result = A.LinkedHashSet_LinkedHashSet(A.instanceType(receiver)._eval$1("ListBase.E"));
- for (i = 0; i < this.get$length(receiver); ++i)
- result.add$1(0, this.$index(receiver, i));
- return result;
- },
- add$1(receiver, element) {
- var t1 = this.get$length(receiver);
- this.set$length(receiver, t1 + 1);
- this.$indexSet(receiver, t1, element);
- },
- addAll$1(receiver, iterable) {
- var t1,
- i = this.get$length(receiver);
- for (t1 = iterable.get$iterator(iterable); t1.moveNext$0();) {
- this.add$1(receiver, t1.get$current(t1));
- ++i;
- }
- },
- _closeGap$2(receiver, start, end) {
- var i, _this = this,
- $length = _this.get$length(receiver),
- size = end - start;
- for (i = end; i < $length; ++i)
- _this.$indexSet(receiver, i - size, _this.$index(receiver, i));
- _this.set$length(receiver, $length - size);
- },
- cast$1$0(receiver, $R) {
- return new A.CastList(receiver, A.instanceType(receiver)._eval$1("@<ListBase.E>")._bind$1($R)._eval$1("CastList<1,2>"));
- },
- sort$1(receiver, compare) {
- var t1 = compare == null ? A.collection_ListBase__compareAny$closure() : compare;
- A.Sort__doSort(receiver, 0, this.get$length(receiver) - 1, t1);
- },
- sublist$2(receiver, start, end) {
- var listLength = this.get$length(receiver);
- A.RangeError_checkValidRange(start, listLength, listLength);
- return A.List_List$from(this.getRange$2(receiver, start, listLength), true, A.instanceType(receiver)._eval$1("ListBase.E"));
- },
- sublist$1(receiver, start) {
- return this.sublist$2(receiver, start, null);
- },
- getRange$2(receiver, start, end) {
- A.RangeError_checkValidRange(start, end, this.get$length(receiver));
- return A.SubListIterable$(receiver, start, end, A.instanceType(receiver)._eval$1("ListBase.E"));
- },
- removeRange$2(receiver, start, end) {
- A.RangeError_checkValidRange(start, end, this.get$length(receiver));
- if (end > start)
- this._closeGap$2(receiver, start, end);
- },
- fillRange$3(receiver, start, end, fill) {
- var i,
- value = fill == null ? A.instanceType(receiver)._eval$1("ListBase.E")._as(fill) : fill;
- A.RangeError_checkValidRange(start, end, this.get$length(receiver));
- for (i = start; i < end; ++i)
- this.$indexSet(receiver, i, value);
- },
- setRange$4(receiver, start, end, iterable, skipCount) {
- var $length, otherStart, otherList, t1, i;
- A.RangeError_checkValidRange(start, end, this.get$length(receiver));
- $length = end - start;
- if ($length === 0)
- return;
- A.RangeError_checkNotNegative(skipCount, "skipCount");
- if (A.instanceType(receiver)._eval$1("List<ListBase.E>")._is(iterable)) {
- otherStart = skipCount;
- otherList = iterable;
- } else {
- otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
- otherStart = 0;
- }
- t1 = J.getInterceptor$asx(otherList);
- if (otherStart + $length > t1.get$length(otherList))
- throw A.wrapException(A.IterableElementError_tooFew());
- if (otherStart < start)
- for (i = $length - 1; i >= 0; --i)
- this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
- else
- for (i = 0; i < $length; ++i)
- this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
- },
- get$reversed(receiver) {
- return new A.ReversedListIterable(receiver, A.instanceType(receiver)._eval$1("ReversedListIterable<ListBase.E>"));
- },
- toString$0(receiver) {
- return A.Iterable_iterableToFullString(receiver, "[", "]");
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isList: 1
- };
- A.MapBase.prototype = {
- cast$2$0(_, RK, RV) {
- var t1 = A._instanceType(this);
- return A.Map_castFrom(this, t1._eval$1("MapBase.K"), t1._eval$1("MapBase.V"), RK, RV);
- },
- forEach$1(_, action) {
- var t1, t2, key, t3, _this = this;
- for (t1 = J.get$iterator$ax(_this.get$keys(_this)), t2 = A._instanceType(_this)._eval$1("MapBase.V"); t1.moveNext$0();) {
- key = t1.get$current(t1);
- t3 = _this.$index(0, key);
- action.call$2(key, t3 == null ? t2._as(t3) : t3);
- }
- },
- addAll$1(_, other) {
- other.forEach$1(0, new A.MapBase_addAll_closure(this));
- },
- get$entries(_) {
- var _this = this;
- return J.map$1$1$ax(_this.get$keys(_this), new A.MapBase_entries_closure(_this), A._instanceType(_this)._eval$1("MapEntry<MapBase.K,MapBase.V>"));
- },
- removeWhere$1(_, test) {
- var t2, key, t3, _i, _this = this,
- t1 = A._instanceType(_this),
- keysToRemove = A._setArrayType([], t1._eval$1("JSArray<MapBase.K>"));
- for (t2 = J.get$iterator$ax(_this.get$keys(_this)), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) {
- key = t2.get$current(t2);
- t3 = _this.$index(0, key);
- if (test.call$2(key, t3 == null ? t1._as(t3) : t3))
- keysToRemove.push(key);
- }
- for (t1 = keysToRemove.length, _i = 0; _i < keysToRemove.length; keysToRemove.length === t1 || (0, A.throwConcurrentModificationError)(keysToRemove), ++_i)
- _this.remove$1(0, keysToRemove[_i]);
- },
- containsKey$1(key) {
- return J.contains$1$asx(this.get$keys(this), key);
- },
- get$length(_) {
- return J.get$length$asx(this.get$keys(this));
- },
- get$isEmpty(_) {
- return J.get$isEmpty$asx(this.get$keys(this));
- },
- get$isNotEmpty(_) {
- return J.get$isNotEmpty$asx(this.get$keys(this));
- },
- get$values(_) {
- var t1 = A._instanceType(this);
- return new A._MapBaseValueIterable(this, t1._eval$1("@<MapBase.K>")._bind$1(t1._eval$1("MapBase.V"))._eval$1("_MapBaseValueIterable<1,2>"));
- },
- toString$0(_) {
- return A.MapBase_mapToString(this);
- },
- $isMap: 1
- };
- A.MapBase_addAll_closure.prototype = {
- call$2(key, value) {
- this.$this.$indexSet(0, key, value);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("~(MapBase.K,MapBase.V)");
- }
- };
- A.MapBase_entries_closure.prototype = {
- call$1(key) {
- var t1 = this.$this,
- t2 = t1.$index(0, key);
- if (t2 == null)
- t2 = A._instanceType(t1)._eval$1("MapBase.V")._as(t2);
- t1 = A._instanceType(t1);
- return new A.MapEntry(key, t2, t1._eval$1("@<MapBase.K>")._bind$1(t1._eval$1("MapBase.V"))._eval$1("MapEntry<1,2>"));
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("MapEntry<MapBase.K,MapBase.V>(MapBase.K)");
- }
- };
- A.MapBase_mapToString_closure.prototype = {
- call$2(k, v) {
- var t2,
- t1 = this._box_0;
- if (!t1.first)
- this.result._contents += ", ";
- t1.first = false;
- t1 = this.result;
- t2 = A.S(k);
- t2 = t1._contents += t2;
- t1._contents = t2 + ": ";
- t2 = A.S(v);
- t1._contents += t2;
- },
- $signature: 170
- };
- A.UnmodifiableMapBase.prototype = {};
- A._MapBaseValueIterable.prototype = {
- get$length(_) {
- var t1 = this._map;
- return t1.get$length(t1);
- },
- get$isEmpty(_) {
- var t1 = this._map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty(_) {
- var t1 = this._map;
- return t1.get$isNotEmpty(t1);
- },
- get$first(_) {
- var t1 = this._map;
- t1 = t1.$index(0, J.get$first$ax(t1.get$keys(t1)));
- return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
- },
- get$single(_) {
- var t1 = this._map;
- t1 = t1.$index(0, J.get$single$ax(t1.get$keys(t1)));
- return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
- },
- get$last(_) {
- var t1 = this._map;
- t1 = t1.$index(0, J.get$last$ax(t1.get$keys(t1)));
- return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
- },
- get$iterator(_) {
- var t1 = this._map,
- t2 = this.$ti;
- return new A._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys(t1)), t1, t2._eval$1("@<1>")._bind$1(t2._rest[1])._eval$1("_MapBaseValueIterator<1,2>"));
- }
- };
- A._MapBaseValueIterator.prototype = {
- moveNext$0() {
- var _this = this,
- t1 = _this._collection$_keys;
- if (t1.moveNext$0()) {
- _this._collection$_current = _this._map.$index(0, t1.get$current(t1));
- return true;
- }
- _this._collection$_current = null;
- return false;
- },
- get$current(_) {
- var t1 = this._collection$_current;
- return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
- }
- };
- A._UnmodifiableMapMixin.prototype = {
- $indexSet(_, key, value) {
- throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
- },
- addAll$1(_, other) {
- throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
- },
- remove$1(_, key) {
- throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
- }
- };
- A.MapView.prototype = {
- cast$2$0(_, RK, RV) {
- return this._map.cast$2$0(0, RK, RV);
- },
- $index(_, key) {
- return this._map.$index(0, key);
- },
- $indexSet(_, key, value) {
- this._map.$indexSet(0, key, value);
- },
- addAll$1(_, other) {
- this._map.addAll$1(0, other);
- },
- containsKey$1(key) {
- return this._map.containsKey$1(key);
- },
- forEach$1(_, action) {
- this._map.forEach$1(0, action);
- },
- get$isEmpty(_) {
- var t1 = this._map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty(_) {
- var t1 = this._map;
- return t1.get$isNotEmpty(t1);
- },
- get$length(_) {
- var t1 = this._map;
- return t1.get$length(t1);
- },
- get$keys(_) {
- var t1 = this._map;
- return t1.get$keys(t1);
- },
- remove$1(_, key) {
- return this._map.remove$1(0, key);
- },
- toString$0(_) {
- return this._map.toString$0(0);
- },
- get$values(_) {
- var t1 = this._map;
- return t1.get$values(t1);
- },
- get$entries(_) {
- var t1 = this._map;
- return t1.get$entries(t1);
- },
- $isMap: 1
- };
- A.UnmodifiableMapView.prototype = {
- cast$2$0(_, RK, RV) {
- return new A.UnmodifiableMapView(this._map.cast$2$0(0, RK, RV), RK._eval$1("@<0>")._bind$1(RV)._eval$1("UnmodifiableMapView<1,2>"));
- }
- };
- A.ListQueue.prototype = {
- get$iterator(_) {
- var _this = this;
- return new A._ListQueueIterator(_this, _this._tail, _this._modificationCount, _this._head, _this.$ti._eval$1("_ListQueueIterator<1>"));
- },
- get$isEmpty(_) {
- return this._head === this._tail;
- },
- get$length(_) {
- return (this._tail - this._head & this._table.length - 1) >>> 0;
- },
- get$first(_) {
- var _this = this,
- t1 = _this._head;
- if (t1 === _this._tail)
- throw A.wrapException(A.IterableElementError_noElement());
- t1 = _this._table[t1];
- return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
- },
- get$last(_) {
- var _this = this,
- t1 = _this._head,
- t2 = _this._tail;
- if (t1 === t2)
- throw A.wrapException(A.IterableElementError_noElement());
- t1 = _this._table;
- t1 = t1[(t2 - 1 & t1.length - 1) >>> 0];
- return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
- },
- get$single(_) {
- var t1, _this = this;
- if (_this._head === _this._tail)
- throw A.wrapException(A.IterableElementError_noElement());
- if (_this.get$length(0) > 1)
- throw A.wrapException(A.IterableElementError_tooMany());
- t1 = _this._table[_this._head];
- return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
- },
- elementAt$1(_, index) {
- var t1, _this = this;
- A.IndexError_check(index, _this.get$length(0), _this, null, null);
- t1 = _this._table;
- t1 = t1[(_this._head + index & t1.length - 1) >>> 0];
- return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
- },
- toList$1$growable(_, growable) {
- var t1, list, t2, t3, i, t4, _this = this,
- mask = _this._table.length - 1,
- $length = (_this._tail - _this._head & mask) >>> 0;
- if ($length === 0) {
- t1 = J.JSArray_JSArray$growable(0, _this.$ti._precomputed1);
- return t1;
- }
- t1 = _this.$ti._precomputed1;
- list = A.List_List$filled($length, _this.get$first(0), true, t1);
- for (t2 = _this._table, t3 = _this._head, i = 0; i < $length; ++i) {
- t4 = t2[(t3 + i & mask) >>> 0];
- list[i] = t4 == null ? t1._as(t4) : t4;
- }
- return list;
- },
- toList$0(_) {
- return this.toList$1$growable(0, true);
- },
- addAll$1(_, elements) {
- var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _i, _this = this,
- t1 = _this.$ti;
- if (t1._eval$1("List<1>")._is(elements)) {
- addCount = elements.length;
- $length = _this.get$length(0);
- t2 = $length + addCount;
- t3 = _this._table;
- t4 = t3.length;
- if (t2 >= t4) {
- newTable = A.List_List$filled(A.ListQueue__nextPowerOf2(t2 + (t2 >>> 1)), null, false, t1._eval$1("1?"));
- _this._tail = _this._collection$_writeToList$1(newTable);
- _this._table = newTable;
- _this._head = 0;
- B.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0);
- _this._tail += addCount;
- } else {
- t1 = _this._tail;
- endSpace = t4 - t1;
- if (addCount < endSpace) {
- B.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0);
- _this._tail += addCount;
- } else {
- preSpace = addCount - endSpace;
- B.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0);
- B.JSArray_methods.setRange$4(_this._table, 0, preSpace, elements, endSpace);
- _this._tail = preSpace;
- }
- }
- ++_this._modificationCount;
- } else
- for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i)
- _this._add$1(elements[_i]);
- },
- clear$0(_) {
- var t2, t3, _this = this,
- i = _this._head,
- t1 = _this._tail;
- if (i !== t1) {
- for (t2 = _this._table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0)
- t2[i] = null;
- _this._head = _this._tail = 0;
- ++_this._modificationCount;
- }
- },
- toString$0(_) {
- return A.Iterable_iterableToFullString(this, "{", "}");
- },
- addFirst$1(value) {
- var _this = this,
- t1 = _this._head,
- t2 = _this._table;
- t1 = _this._head = (t1 - 1 & t2.length - 1) >>> 0;
- t2[t1] = value;
- if (t1 === _this._tail)
- _this._grow$0();
- ++_this._modificationCount;
- },
- removeFirst$0() {
- var t2, result, _this = this,
- t1 = _this._head;
- if (t1 === _this._tail)
- throw A.wrapException(A.IterableElementError_noElement());
- ++_this._modificationCount;
- t2 = _this._table;
- result = t2[t1];
- if (result == null)
- result = _this.$ti._precomputed1._as(result);
- t2[t1] = null;
- _this._head = (t1 + 1 & t2.length - 1) >>> 0;
- return result;
- },
- _add$1(element) {
- var _this = this,
- t1 = _this._table,
- t2 = _this._tail;
- t1[t2] = element;
- t1 = (t2 + 1 & t1.length - 1) >>> 0;
- _this._tail = t1;
- if (_this._head === t1)
- _this._grow$0();
- ++_this._modificationCount;
- },
- _grow$0() {
- var _this = this,
- newTable = A.List_List$filled(_this._table.length * 2, null, false, _this.$ti._eval$1("1?")),
- t1 = _this._table,
- t2 = _this._head,
- split = t1.length - t2;
- B.JSArray_methods.setRange$4(newTable, 0, split, t1, t2);
- B.JSArray_methods.setRange$4(newTable, split, split + _this._head, _this._table, 0);
- _this._head = 0;
- _this._tail = _this._table.length;
- _this._table = newTable;
- },
- _collection$_writeToList$1(target) {
- var $length, firstPartSize, _this = this,
- t1 = _this._head,
- t2 = _this._tail,
- t3 = _this._table;
- if (t1 <= t2) {
- $length = t2 - t1;
- B.JSArray_methods.setRange$4(target, 0, $length, t3, t1);
- return $length;
- } else {
- firstPartSize = t3.length - t1;
- B.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1);
- B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._tail, _this._table, 0);
- return _this._tail + firstPartSize;
- }
- },
- $isQueue: 1
- };
- A._ListQueueIterator.prototype = {
- get$current(_) {
- var t1 = this._collection$_current;
- return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
- },
- moveNext$0() {
- var t2, _this = this,
- t1 = _this._queue;
- if (_this._modificationCount !== t1._modificationCount)
- A.throwExpression(A.ConcurrentModificationError$(t1));
- t2 = _this._collection$_position;
- if (t2 === _this._collection$_end) {
- _this._collection$_current = null;
- return false;
- }
- t1 = t1._table;
- _this._collection$_current = t1[t2];
- _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0;
- return true;
- }
- };
- A.SetBase.prototype = {
- get$isEmpty(_) {
- return this.get$length(this) === 0;
- },
- get$isNotEmpty(_) {
- return this.get$length(this) !== 0;
- },
- addAll$1(_, elements) {
- var t1;
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- this.add$1(0, t1.get$current(t1));
- },
- removeAll$1(elements) {
- var t1;
- for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
- this.remove$1(0, t1.get$current(t1));
- },
- difference$1(other) {
- var t1, t2, element,
- result = this.toSet$0(0);
- for (t1 = this.get$iterator(this), t2 = other._source; t1.moveNext$0();) {
- element = t1.get$current(t1);
- if (t2.contains$1(0, element))
- result.remove$1(0, element);
- }
- return result;
- },
- toList$1$growable(_, growable) {
- return A.List_List$of(this, true, A._instanceType(this)._precomputed1);
- },
- toList$0(_) {
- return this.toList$1$growable(0, true);
- },
- map$1$1(_, f, $T) {
- return new A.EfficientLengthMappedIterable(this, f, A._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
- },
- get$single(_) {
- var it, _this = this;
- if (_this.get$length(_this) > 1)
- throw A.wrapException(A.IterableElementError_tooMany());
- it = _this.get$iterator(_this);
- if (!it.moveNext$0())
- throw A.wrapException(A.IterableElementError_noElement());
- return it.get$current(it);
- },
- toString$0(_) {
- return A.Iterable_iterableToFullString(this, "{", "}");
- },
- where$1(_, f) {
- return new A.WhereIterable(this, f, A._instanceType(this)._eval$1("WhereIterable<1>"));
- },
- forEach$1(_, f) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- f.call$1(t1.get$current(t1));
- },
- every$1(_, f) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (!f.call$1(t1.get$current(t1)))
- return false;
- return true;
- },
- any$1(_, test) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (test.call$1(t1.get$current(t1)))
- return true;
- return false;
- },
- take$1(_, n) {
- return A.TakeIterable_TakeIterable(this, n, A._instanceType(this)._precomputed1);
- },
- skip$1(_, n) {
- return A.SkipIterable_SkipIterable(this, n, A._instanceType(this)._precomputed1);
- },
- get$first(_) {
- var it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw A.wrapException(A.IterableElementError_noElement());
- return it.get$current(it);
- },
- get$last(_) {
- var result,
- it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw A.wrapException(A.IterableElementError_noElement());
- do
- result = it.get$current(it);
- while (it.moveNext$0());
- return result;
- },
- elementAt$1(_, index) {
- var iterator, skipCount;
- A.RangeError_checkNotNegative(index, "index");
- iterator = this.get$iterator(this);
- for (skipCount = index; iterator.moveNext$0();) {
- if (skipCount === 0)
- return iterator.get$current(iterator);
- --skipCount;
- }
- throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index"));
- },
- $isEfficientLengthIterable: 1,
- $isIterable: 1,
- $isSet: 1
- };
- A._SetBase.prototype = {
- difference$1(other) {
- var t1, t2, t3, element, _this = this,
- result = _this._newSet$0();
- for (t1 = A._LinkedHashSetIterator$(_this, _this._modifications, A._instanceType(_this)._precomputed1), t2 = other._source, t3 = t1.$ti._precomputed1; t1.moveNext$0();) {
- element = t1._collection$_current;
- if (element == null)
- element = t3._as(element);
- if (!t2.contains$1(0, element))
- result.add$1(0, element);
- }
- return result;
- },
- intersection$1(other) {
- var t1, t2, t3, element, _this = this,
- result = _this._newSet$0();
- for (t1 = A._LinkedHashSetIterator$(_this, _this._modifications, A._instanceType(_this)._precomputed1), t2 = other._baseMap, t3 = t1.$ti._precomputed1; t1.moveNext$0();) {
- element = t1._collection$_current;
- if (element == null)
- element = t3._as(element);
- if (t2.containsKey$1(element))
- result.add$1(0, element);
- }
- return result;
- },
- toSet$0(_) {
- var t1 = this._newSet$0();
- t1.addAll$1(0, this);
- return t1;
- }
- };
- A._UnmodifiableSetMixin.prototype = {
- add$1(_, value) {
- return A._UnmodifiableSetMixin__throwUnmodifiable();
- },
- addAll$1(_, elements) {
- return A._UnmodifiableSetMixin__throwUnmodifiable();
- },
- remove$1(_, value) {
- return A._UnmodifiableSetMixin__throwUnmodifiable();
- }
- };
- A.UnmodifiableSetView.prototype = {
- contains$1(_, element) {
- return this._collection$_source.contains$1(0, element);
- },
- get$length(_) {
- return this._collection$_source._collection$_length;
- },
- get$iterator(_) {
- var t1 = this._collection$_source;
- return A._LinkedHashSetIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1);
- },
- toSet$0(_) {
- return this._collection$_source.toSet$0(0);
- }
- };
- A._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {};
- A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin.prototype = {};
- A._JsonMap.prototype = {
- $index(_, key) {
- var result,
- t1 = this._processed;
- if (t1 == null)
- return this._data.$index(0, key);
- else if (typeof key != "string")
- return null;
- else {
- result = t1[key];
- return typeof result == "undefined" ? this._process$1(key) : result;
- }
- },
- get$length(_) {
- return this._processed == null ? this._data.__js_helper$_length : this._convert$_computeKeys$0().length;
- },
- get$isEmpty(_) {
- return this.get$length(0) === 0;
- },
- get$isNotEmpty(_) {
- return this.get$length(0) > 0;
- },
- get$keys(_) {
- var t1;
- if (this._processed == null) {
- t1 = this._data;
- return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
- }
- return new A._JsonMapKeyIterable(this);
- },
- get$values(_) {
- var _this = this;
- if (_this._processed == null)
- return _this._data.get$values(0);
- return A.MappedIterable_MappedIterable(_this._convert$_computeKeys$0(), new A._JsonMap_values_closure(_this), type$.String, type$.dynamic);
- },
- $indexSet(_, key, value) {
- var processed, original, _this = this;
- if (_this._processed == null)
- _this._data.$indexSet(0, key, value);
- else if (_this.containsKey$1(key)) {
- processed = _this._processed;
- processed[key] = value;
- original = _this._original;
- if (original == null ? processed != null : original !== processed)
- original[key] = null;
- } else
- _this._upgrade$0().$indexSet(0, key, value);
- },
- addAll$1(_, other) {
- other.forEach$1(0, new A._JsonMap_addAll_closure(this));
- },
- containsKey$1(key) {
- if (this._processed == null)
- return this._data.containsKey$1(key);
- if (typeof key != "string")
- return false;
- return Object.prototype.hasOwnProperty.call(this._original, key);
- },
- remove$1(_, key) {
- if (this._processed != null && !this.containsKey$1(key))
- return null;
- return this._upgrade$0().remove$1(0, key);
- },
- forEach$1(_, f) {
- var keys, i, key, value, _this = this;
- if (_this._processed == null)
- return _this._data.forEach$1(0, f);
- keys = _this._convert$_computeKeys$0();
- for (i = 0; i < keys.length; ++i) {
- key = keys[i];
- value = _this._processed[key];
- if (typeof value == "undefined") {
- value = A._convertJsonToDartLazy(_this._original[key]);
- _this._processed[key] = value;
- }
- f.call$2(key, value);
- if (keys !== _this._data)
- throw A.wrapException(A.ConcurrentModificationError$(_this));
- }
- },
- _convert$_computeKeys$0() {
- var keys = this._data;
- if (keys == null)
- keys = this._data = A._setArrayType(Object.keys(this._original), type$.JSArray_String);
- return keys;
- },
- _upgrade$0() {
- var result, keys, i, t1, key, _this = this;
- if (_this._processed == null)
- return _this._data;
- result = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic);
- keys = _this._convert$_computeKeys$0();
- for (i = 0; t1 = keys.length, i < t1; ++i) {
- key = keys[i];
- result.$indexSet(0, key, _this.$index(0, key));
- }
- if (t1 === 0)
- keys.push("");
- else
- B.JSArray_methods.clear$0(keys);
- _this._original = _this._processed = null;
- return _this._data = result;
- },
- _process$1(key) {
- var result;
- if (!Object.prototype.hasOwnProperty.call(this._original, key))
- return null;
- result = A._convertJsonToDartLazy(this._original[key]);
- return this._processed[key] = result;
- }
- };
- A._JsonMap_values_closure.prototype = {
- call$1(each) {
- return this.$this.$index(0, each);
- },
- $signature: 171
- };
- A._JsonMap_addAll_closure.prototype = {
- call$2(key, value) {
- this.$this.$indexSet(0, key, value);
- },
- $signature: 114
- };
- A._JsonMapKeyIterable.prototype = {
- get$length(_) {
- return this._convert$_parent.get$length(0);
- },
- elementAt$1(_, index) {
- var t1 = this._convert$_parent;
- return t1._processed == null ? t1.get$keys(0).elementAt$1(0, index) : t1._convert$_computeKeys$0()[index];
- },
- get$iterator(_) {
- var t1 = this._convert$_parent;
- if (t1._processed == null) {
- t1 = t1.get$keys(0);
- t1 = t1.get$iterator(t1);
- } else {
- t1 = t1._convert$_computeKeys$0();
- t1 = new J.ArrayIterator(t1, t1.length, A._arrayInstanceType(t1)._eval$1("ArrayIterator<1>"));
- }
- return t1;
- },
- contains$1(_, key) {
- return this._convert$_parent.containsKey$1(key);
- }
- };
- A._Utf8Decoder__decoder_closure.prototype = {
- call$0() {
- var t1, exception;
- try {
- t1 = new TextDecoder("utf-8", {fatal: true});
- return t1;
- } catch (exception) {
- }
- return null;
- },
- $signature: 60
- };
- A._Utf8Decoder__decoderNonfatal_closure.prototype = {
- call$0() {
- var t1, exception;
- try {
- t1 = new TextDecoder("utf-8", {fatal: false});
- return t1;
- } catch (exception) {
- }
- return null;
- },
- $signature: 60
- };
- A.AsciiCodec.prototype = {
- encode$1(source) {
- return B.AsciiEncoder_127.convert$1(source);
- }
- };
- A._UnicodeSubsetEncoder.prototype = {
- convert$1(string) {
- var t1, i, codeUnit,
- $length = A.RangeError_checkValidRange(0, null, string.length) - 0,
- result = new Uint8Array($length);
- for (t1 = ~this._subsetMask, i = 0; i < $length; ++i) {
- codeUnit = string.charCodeAt(i);
- if ((codeUnit & t1) !== 0)
- throw A.wrapException(A.ArgumentError$value(string, "string", "Contains invalid characters."));
- result[i] = codeUnit;
- }
- return result;
- }
- };
- A.AsciiEncoder.prototype = {};
- A.Base64Codec.prototype = {
- normalize$3(source, start, end) {
- var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length,
- _s31_ = "Invalid base64 encoding length ";
- end = A.RangeError_checkValidRange(start, end, source.length);
- inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet();
- for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) {
- i0 = i + 1;
- char = source.charCodeAt(i);
- if (char === 37) {
- i1 = i0 + 2;
- if (i1 <= end) {
- digit1 = A.hexDigitValue(source.charCodeAt(i0));
- digit2 = A.hexDigitValue(source.charCodeAt(i0 + 1));
- char0 = digit1 * 16 + digit2 - (digit2 & 256);
- if (char0 === 37)
- char0 = -1;
- i0 = i1;
- } else
- char0 = -1;
- } else
- char0 = char;
- if (0 <= char0 && char0 <= 127) {
- value = inverseAlphabet[char0];
- if (value >= 0) {
- char0 = string$.ABCDEF.charCodeAt(value);
- if (char0 === char)
- continue;
- char = char0;
- } else {
- if (value === -1) {
- if (firstPadding < 0) {
- t1 = buffer == null ? null : buffer._contents.length;
- if (t1 == null)
- t1 = 0;
- firstPadding = t1 + (i - sliceStart);
- firstPaddingSourceIndex = i;
- }
- ++paddingCount;
- if (char === 61)
- continue;
- }
- char = char0;
- }
- if (value !== -2) {
- if (buffer == null) {
- buffer = new A.StringBuffer("");
- t1 = buffer;
- } else
- t1 = buffer;
- t1._contents += B.JSString_methods.substring$2(source, sliceStart, i);
- t2 = A.Primitives_stringFromCharCode(char);
- t1._contents += t2;
- sliceStart = i0;
- continue;
- }
- }
- throw A.wrapException(A.FormatException$("Invalid base64 data", source, i));
- }
- if (buffer != null) {
- t1 = B.JSString_methods.substring$2(source, sliceStart, end);
- t1 = buffer._contents += t1;
- t2 = t1.length;
- if (firstPadding >= 0)
- A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2);
- else {
- endLength = B.JSInt_methods.$mod(t2 - 1, 4) + 1;
- if (endLength === 1)
- throw A.wrapException(A.FormatException$(_s31_, source, end));
- for (; endLength < 4;) {
- t1 += "=";
- buffer._contents = t1;
- ++endLength;
- }
- }
- t1 = buffer._contents;
- return B.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1);
- }
- $length = end - start;
- if (firstPadding >= 0)
- A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length);
- else {
- endLength = B.JSInt_methods.$mod($length, 4);
- if (endLength === 1)
- throw A.wrapException(A.FormatException$(_s31_, source, end));
- if (endLength > 1)
- source = B.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "=");
- }
- return source;
- }
- };
- A.Base64Encoder.prototype = {
- startChunkedConversion$1(sink) {
- return new A._Utf8Base64EncoderSink(new A._Utf8StringSinkAdapter(new A._Utf8Decoder(false), sink, sink._stringSink), new A._Base64Encoder(string$.ABCDEF));
- }
- };
- A._Base64Encoder.prototype = {
- createBuffer$1(bufferLength) {
- return new Uint8Array(bufferLength);
- },
- encode$4(bytes, start, end, isLast) {
- var output, _this = this,
- byteCount = (_this._convert$_state & 3) + (end - start),
- fullChunks = B.JSInt_methods._tdivFast$1(byteCount, 3),
- bufferLength = fullChunks * 4;
- if (isLast && byteCount - fullChunks * 3 > 0)
- bufferLength += 4;
- output = _this.createBuffer$1(bufferLength);
- _this._convert$_state = A._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state);
- if (bufferLength > 0)
- return output;
- return null;
- }
- };
- A._Base64EncoderSink.prototype = {};
- A._Utf8Base64EncoderSink.prototype = {
- _convert$_add$4(source, start, end, isLast) {
- var buffer = this._encoder.encode$4(source, start, end, isLast);
- if (buffer != null)
- this._sink.addSlice$4(buffer, 0, buffer.length, isLast);
- }
- };
- A.ByteConversionSink.prototype = {};
- A.Codec.prototype = {};
- A.Converter.prototype = {};
- A.Encoding.prototype = {};
- A.JsonUnsupportedObjectError.prototype = {
- toString$0(_) {
- var safeString = A.Error_safeToString(this.unsupportedObject);
- return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString;
- }
- };
- A.JsonCyclicError.prototype = {
- toString$0(_) {
- return "Cyclic error in JSON stringify";
- }
- };
- A.JsonCodec.prototype = {
- decode$1(source) {
- var t1 = A._parseJson(source, this.get$decoder()._reviver);
- return t1;
- },
- encode$2$toEncodable(value, toEncodable) {
- var t1 = A._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null);
- return t1;
- },
- get$encoder() {
- return B.JsonEncoder_null;
- },
- get$decoder() {
- return B.JsonDecoder_null;
- }
- };
- A.JsonEncoder.prototype = {};
- A.JsonDecoder.prototype = {};
- A._JsonStringifier.prototype = {
- writeStringContent$1(s) {
- var offset, i, charCode, t1, t2, _this = this,
- $length = s.length;
- for (offset = 0, i = 0; i < $length; ++i) {
- charCode = s.charCodeAt(i);
- if (charCode > 92) {
- if (charCode >= 55296) {
- t1 = charCode & 64512;
- if (t1 === 55296) {
- t2 = i + 1;
- t2 = !(t2 < $length && (s.charCodeAt(t2) & 64512) === 56320);
- } else
- t2 = false;
- if (!t2)
- if (t1 === 56320) {
- t1 = i - 1;
- t1 = !(t1 >= 0 && (s.charCodeAt(t1) & 64512) === 55296);
- } else
- t1 = false;
- else
- t1 = true;
- if (t1) {
- if (i > offset)
- _this.writeStringSlice$3(s, offset, i);
- offset = i + 1;
- _this.writeCharCode$1(92);
- _this.writeCharCode$1(117);
- _this.writeCharCode$1(100);
- t1 = charCode >>> 8 & 15;
- _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
- t1 = charCode >>> 4 & 15;
- _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
- t1 = charCode & 15;
- _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
- }
- }
- continue;
- }
- if (charCode < 32) {
- if (i > offset)
- _this.writeStringSlice$3(s, offset, i);
- offset = i + 1;
- _this.writeCharCode$1(92);
- switch (charCode) {
- case 8:
- _this.writeCharCode$1(98);
- break;
- case 9:
- _this.writeCharCode$1(116);
- break;
- case 10:
- _this.writeCharCode$1(110);
- break;
- case 12:
- _this.writeCharCode$1(102);
- break;
- case 13:
- _this.writeCharCode$1(114);
- break;
- default:
- _this.writeCharCode$1(117);
- _this.writeCharCode$1(48);
- _this.writeCharCode$1(48);
- t1 = charCode >>> 4 & 15;
- _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
- t1 = charCode & 15;
- _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
- break;
- }
- } else if (charCode === 34 || charCode === 92) {
- if (i > offset)
- _this.writeStringSlice$3(s, offset, i);
- offset = i + 1;
- _this.writeCharCode$1(92);
- _this.writeCharCode$1(charCode);
- }
- }
- if (offset === 0)
- _this.writeString$1(s);
- else if (offset < $length)
- _this.writeStringSlice$3(s, offset, $length);
- },
- _checkCycle$1(object) {
- var t1, t2, i, t3;
- for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) {
- t3 = t1[i];
- if (object == null ? t3 == null : object === t3)
- throw A.wrapException(new A.JsonCyclicError(object, null));
- }
- t1.push(object);
- },
- writeObject$1(object) {
- var customJson, e, t1, exception, _this = this;
- if (_this.writeJsonValue$1(object))
- return;
- _this._checkCycle$1(object);
- try {
- customJson = _this._toEncodable.call$1(object);
- if (!_this.writeJsonValue$1(customJson)) {
- t1 = A.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult());
- throw A.wrapException(t1);
- }
- _this._seen.pop();
- } catch (exception) {
- e = A.unwrapException(exception);
- t1 = A.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult());
- throw A.wrapException(t1);
- }
- },
- writeJsonValue$1(object) {
- var success, _this = this;
- if (typeof object == "number") {
- if (!isFinite(object))
- return false;
- _this.writeNumber$1(object);
- return true;
- } else if (object === true) {
- _this.writeString$1("true");
- return true;
- } else if (object === false) {
- _this.writeString$1("false");
- return true;
- } else if (object == null) {
- _this.writeString$1("null");
- return true;
- } else if (typeof object == "string") {
- _this.writeString$1('"');
- _this.writeStringContent$1(object);
- _this.writeString$1('"');
- return true;
- } else if (type$.List_dynamic._is(object)) {
- _this._checkCycle$1(object);
- _this.writeList$1(object);
- _this._seen.pop();
- return true;
- } else if (type$.Map_dynamic_dynamic._is(object)) {
- _this._checkCycle$1(object);
- success = _this.writeMap$1(object);
- _this._seen.pop();
- return success;
- } else
- return false;
- },
- writeList$1(list) {
- var t1, i, _this = this;
- _this.writeString$1("[");
- t1 = J.getInterceptor$asx(list);
- if (t1.get$isNotEmpty(list)) {
- _this.writeObject$1(t1.$index(list, 0));
- for (i = 1; i < t1.get$length(list); ++i) {
- _this.writeString$1(",");
- _this.writeObject$1(t1.$index(list, i));
- }
- }
- _this.writeString$1("]");
- },
- writeMap$1(map) {
- var t1, keyValueList, i, separator, _this = this, _box_0 = {};
- if (map.get$isEmpty(map)) {
- _this.writeString$1("{}");
- return true;
- }
- t1 = map.get$length(map) * 2;
- keyValueList = A.List_List$filled(t1, null, false, type$.nullable_Object);
- i = _box_0.i = 0;
- _box_0.allStringKeys = true;
- map.forEach$1(0, new A._JsonStringifier_writeMap_closure(_box_0, keyValueList));
- if (!_box_0.allStringKeys)
- return false;
- _this.writeString$1("{");
- for (separator = '"'; i < t1; i += 2, separator = ',"') {
- _this.writeString$1(separator);
- _this.writeStringContent$1(A._asString(keyValueList[i]));
- _this.writeString$1('":');
- _this.writeObject$1(keyValueList[i + 1]);
- }
- _this.writeString$1("}");
- return true;
- }
- };
- A._JsonStringifier_writeMap_closure.prototype = {
- call$2(key, value) {
- var t1, t2, t3, i;
- if (typeof key != "string")
- this._box_0.allStringKeys = false;
- t1 = this.keyValueList;
- t2 = this._box_0;
- t3 = t2.i;
- i = t2.i = t3 + 1;
- t1[t3] = key;
- t2.i = i + 1;
- t1[i] = value;
- },
- $signature: 170
- };
- A._JsonStringStringifier.prototype = {
- get$_partialResult() {
- var t1 = this._sink._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- writeNumber$1(number) {
- var t1 = this._sink,
- t2 = B.JSNumber_methods.toString$0(number);
- t1._contents += t2;
- },
- writeString$1(string) {
- this._sink._contents += string;
- },
- writeStringSlice$3(string, start, end) {
- this._sink._contents += B.JSString_methods.substring$2(string, start, end);
- },
- writeCharCode$1(charCode) {
- var t1 = this._sink,
- t2 = A.Primitives_stringFromCharCode(charCode);
- t1._contents += t2;
- }
- };
- A.StringConversionSink.prototype = {};
- A._StringSinkConversionSink.prototype = {
- close$0(_) {
- }
- };
- A._StringCallbackSink.prototype = {
- close$0(_) {
- var t1 = this._stringSink,
- t2 = t1._contents;
- t1._contents = "";
- this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2);
- },
- asUtf8Sink$1(allowMalformed) {
- return new A._Utf8StringSinkAdapter(new A._Utf8Decoder(allowMalformed), this, this._stringSink);
- }
- };
- A._Utf8StringSinkAdapter.prototype = {
- close$0(_) {
- this._decoder.flush$1(this._stringSink);
- this._sink.close$0(0);
- },
- add$1(_, chunk) {
- this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
- },
- addSlice$4(codeUnits, startIndex, endIndex, isLast) {
- var t1 = this._stringSink,
- t2 = this._decoder._convertGeneral$4(codeUnits, startIndex, endIndex, false);
- t1._contents += t2;
- if (isLast)
- this.close$0(0);
- }
- };
- A.Utf8Codec.prototype = {
- encode$1(string) {
- return B.C_Utf8Encoder.convert$1(string);
- }
- };
- A.Utf8Encoder.prototype = {
- convert$1(string) {
- var t1, encoder,
- end = A.RangeError_checkValidRange(0, null, string.length),
- $length = end - 0;
- if ($length === 0)
- return new Uint8Array(0);
- t1 = new Uint8Array($length * 3);
- encoder = new A._Utf8Encoder(t1);
- if (encoder._fillBuffer$3(string, 0, end) !== end)
- encoder._writeReplacementCharacter$0();
- return B.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex);
- }
- };
- A._Utf8Encoder.prototype = {
- _writeReplacementCharacter$0() {
- var _this = this,
- t1 = _this._buffer,
- t2 = _this._bufferIndex,
- t3 = _this._bufferIndex = t2 + 1;
- t1[t2] = 239;
- t2 = _this._bufferIndex = t3 + 1;
- t1[t3] = 191;
- _this._bufferIndex = t2 + 1;
- t1[t2] = 189;
- },
- _writeSurrogate$2(leadingSurrogate, nextCodeUnit) {
- var rune, t1, t2, t3, _this = this;
- if ((nextCodeUnit & 64512) === 56320) {
- rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023;
- t1 = _this._buffer;
- t2 = _this._bufferIndex;
- t3 = _this._bufferIndex = t2 + 1;
- t1[t2] = rune >>> 18 | 240;
- t2 = _this._bufferIndex = t3 + 1;
- t1[t3] = rune >>> 12 & 63 | 128;
- t3 = _this._bufferIndex = t2 + 1;
- t1[t2] = rune >>> 6 & 63 | 128;
- _this._bufferIndex = t3 + 1;
- t1[t3] = rune & 63 | 128;
- return true;
- } else {
- _this._writeReplacementCharacter$0();
- return false;
- }
- },
- _fillBuffer$3(str, start, end) {
- var t1, t2, stringIndex, codeUnit, t3, stringIndex0, t4, _this = this;
- if (start !== end && (str.charCodeAt(end - 1) & 64512) === 55296)
- --end;
- for (t1 = _this._buffer, t2 = t1.length, stringIndex = start; stringIndex < end; ++stringIndex) {
- codeUnit = str.charCodeAt(stringIndex);
- if (codeUnit <= 127) {
- t3 = _this._bufferIndex;
- if (t3 >= t2)
- break;
- _this._bufferIndex = t3 + 1;
- t1[t3] = codeUnit;
- } else {
- t3 = codeUnit & 64512;
- if (t3 === 55296) {
- if (_this._bufferIndex + 4 > t2)
- break;
- stringIndex0 = stringIndex + 1;
- if (_this._writeSurrogate$2(codeUnit, str.charCodeAt(stringIndex0)))
- stringIndex = stringIndex0;
- } else if (t3 === 56320) {
- if (_this._bufferIndex + 3 > t2)
- break;
- _this._writeReplacementCharacter$0();
- } else if (codeUnit <= 2047) {
- t3 = _this._bufferIndex;
- t4 = t3 + 1;
- if (t4 >= t2)
- break;
- _this._bufferIndex = t4;
- t1[t3] = codeUnit >>> 6 | 192;
- _this._bufferIndex = t4 + 1;
- t1[t4] = codeUnit & 63 | 128;
- } else {
- t3 = _this._bufferIndex;
- if (t3 + 2 >= t2)
- break;
- t4 = _this._bufferIndex = t3 + 1;
- t1[t3] = codeUnit >>> 12 | 224;
- t3 = _this._bufferIndex = t4 + 1;
- t1[t4] = codeUnit >>> 6 & 63 | 128;
- _this._bufferIndex = t3 + 1;
- t1[t3] = codeUnit & 63 | 128;
- }
- }
- }
- return stringIndex;
- }
- };
- A.Utf8Decoder.prototype = {
- convert$1(codeUnits) {
- return new A._Utf8Decoder(this._allowMalformed)._convertGeneral$4(codeUnits, 0, null, true);
- }
- };
- A._Utf8Decoder.prototype = {
- _convertGeneral$4(codeUnits, start, maybeEnd, single) {
- var casted, bytes, errorOffset, t1, result, message, _this = this,
- end = A.RangeError_checkValidRange(start, maybeEnd, J.get$length$asx(codeUnits));
- if (start === end)
- return "";
- if (codeUnits instanceof Uint8Array) {
- casted = codeUnits;
- bytes = casted;
- errorOffset = 0;
- } else {
- bytes = A._Utf8Decoder__makeNativeUint8List(codeUnits, start, end);
- end -= start;
- errorOffset = start;
- start = 0;
- }
- if (single && end - start >= 15) {
- t1 = _this.allowMalformed;
- result = A._Utf8Decoder__convertInterceptedUint8List(t1, bytes, start, end);
- if (result != null) {
- if (!t1)
- return result;
- if (result.indexOf("\ufffd") < 0)
- return result;
- }
- }
- result = _this._decodeRecursive$4(bytes, start, end, single);
- t1 = _this._convert$_state;
- if ((t1 & 1) !== 0) {
- message = A._Utf8Decoder_errorDescription(t1);
- _this._convert$_state = 0;
- throw A.wrapException(A.FormatException$(message, codeUnits, errorOffset + _this._charOrIndex));
- }
- return result;
- },
- _decodeRecursive$4(bytes, start, end, single) {
- var mid, s1, _this = this;
- if (end - start > 1000) {
- mid = B.JSInt_methods._tdivFast$1(start + end, 2);
- s1 = _this._decodeRecursive$4(bytes, start, mid, false);
- if ((_this._convert$_state & 1) !== 0)
- return s1;
- return s1 + _this._decodeRecursive$4(bytes, mid, end, single);
- }
- return _this.decodeGeneral$4(bytes, start, end, single);
- },
- flush$1(sink) {
- var t1,
- state = this._convert$_state;
- this._convert$_state = 0;
- if (state <= 32)
- return;
- if (this.allowMalformed) {
- t1 = A.Primitives_stringFromCharCode(65533);
- sink._contents += t1;
- } else
- throw A.wrapException(A.FormatException$(A._Utf8Decoder_errorDescription(77), null, null));
- },
- decodeGeneral$4(bytes, start, end, single) {
- var t1, type, t2, i0, markEnd, i1, m, _this = this, _65533 = 65533,
- state = _this._convert$_state,
- char = _this._charOrIndex,
- buffer = new A.StringBuffer(""),
- i = start + 1,
- byte = bytes[start];
- $label0$0:
- for (t1 = _this.allowMalformed; true;) {
- for (; true; i = i0) {
- type = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE".charCodeAt(byte) & 31;
- char = state <= 32 ? byte & 61694 >>> type : (byte & 63 | char << 6) >>> 0;
- state = " \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA".charCodeAt(state + type);
- if (state === 0) {
- t2 = A.Primitives_stringFromCharCode(char);
- buffer._contents += t2;
- if (i === end)
- break $label0$0;
- break;
- } else if ((state & 1) !== 0) {
- if (t1)
- switch (state) {
- case 69:
- case 67:
- t2 = A.Primitives_stringFromCharCode(_65533);
- buffer._contents += t2;
- break;
- case 65:
- t2 = A.Primitives_stringFromCharCode(_65533);
- buffer._contents += t2;
- --i;
- break;
- default:
- t2 = A.Primitives_stringFromCharCode(_65533);
- t2 = buffer._contents += t2;
- buffer._contents = t2 + A.Primitives_stringFromCharCode(_65533);
- break;
- }
- else {
- _this._convert$_state = state;
- _this._charOrIndex = i - 1;
- return "";
- }
- state = 0;
- }
- if (i === end)
- break $label0$0;
- i0 = i + 1;
- byte = bytes[i];
- }
- i0 = i + 1;
- byte = bytes[i];
- if (byte < 128) {
- while (true) {
- if (!(i0 < end)) {
- markEnd = end;
- break;
- }
- i1 = i0 + 1;
- byte = bytes[i0];
- if (byte >= 128) {
- markEnd = i1 - 1;
- i0 = i1;
- break;
- }
- i0 = i1;
- }
- if (markEnd - i < 20)
- for (m = i; m < markEnd; ++m) {
- t2 = A.Primitives_stringFromCharCode(bytes[m]);
- buffer._contents += t2;
- }
- else {
- t2 = A.String_String$fromCharCodes(bytes, i, markEnd);
- buffer._contents += t2;
- }
- if (markEnd === end)
- break $label0$0;
- i = i0;
- } else
- i = i0;
- }
- if (single && state > 32)
- if (t1) {
- t1 = A.Primitives_stringFromCharCode(_65533);
- buffer._contents += t1;
- } else {
- _this._convert$_state = 77;
- _this._charOrIndex = end;
- return "";
- }
- _this._convert$_state = state;
- _this._charOrIndex = char;
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- A.NoSuchMethodError_toString_closure.prototype = {
- call$2(key, value) {
- var t1 = this.sb,
- t2 = this._box_0,
- t3 = t1._contents += t2.comma;
- t3 += key.__internal$_name;
- t1._contents = t3;
- t1._contents = t3 + ": ";
- t3 = A.Error_safeToString(value);
- t1._contents += t3;
- t2.comma = ", ";
- },
- $signature: 325
- };
- A.DateTime.prototype = {
- $eq(_, other) {
- var t1;
- if (other == null)
- return false;
- if (other instanceof A.DateTime)
- t1 = this._value === other._value;
- else
- t1 = false;
- return t1;
- },
- compareTo$1(_, other) {
- return B.JSInt_methods.compareTo$1(this._value, other._value);
- },
- get$hashCode(_) {
- var t1 = this._value;
- return (t1 ^ B.JSInt_methods._shrOtherPositive$1(t1, 30)) & 1073741823;
- },
- toString$0(_) {
- var _this = this,
- y = A.DateTime__fourDigits(A.Primitives_getYear(_this)),
- m = A.DateTime__twoDigits(A.Primitives_getMonth(_this)),
- d = A.DateTime__twoDigits(A.Primitives_getDay(_this)),
- h = A.DateTime__twoDigits(A.Primitives_getHours(_this)),
- min = A.DateTime__twoDigits(A.Primitives_getMinutes(_this)),
- sec = A.DateTime__twoDigits(A.Primitives_getSeconds(_this)),
- ms = A.DateTime__threeDigits(A.Primitives_getMilliseconds(_this));
- return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms;
- },
- $isComparable: 1
- };
- A.Duration.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.Duration && this._duration === other._duration;
- },
- get$hashCode(_) {
- return B.JSInt_methods.get$hashCode(this._duration);
- },
- compareTo$1(_, other) {
- return B.JSInt_methods.compareTo$1(this._duration, other._duration);
- },
- toString$0(_) {
- var sign, minutes, minutesPadding, seconds, secondsPadding,
- microseconds = this._duration,
- hours = B.JSInt_methods._tdivFast$1(microseconds, 3600000000),
- microseconds0 = microseconds % 3600000000;
- if (microseconds < 0) {
- hours = 0 - hours;
- microseconds = 0 - microseconds0;
- sign = "-";
- } else {
- microseconds = microseconds0;
- sign = "";
- }
- minutes = B.JSInt_methods._tdivFast$1(microseconds, 60000000);
- microseconds %= 60000000;
- minutesPadding = minutes < 10 ? "0" : "";
- seconds = B.JSInt_methods._tdivFast$1(microseconds, 1000000);
- secondsPadding = seconds < 10 ? "0" : "";
- return sign + hours + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0");
- },
- $isComparable: 1
- };
- A._Enum.prototype = {
- toString$0(_) {
- return this._enumToString$0();
- }
- };
- A.Error.prototype = {
- get$stackTrace() {
- return A.Primitives_extractStackTrace(this);
- }
- };
- A.AssertionError.prototype = {
- toString$0(_) {
- var t1 = this.message;
- if (t1 != null)
- return "Assertion failed: " + A.Error_safeToString(t1);
- return "Assertion failed";
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A.TypeError.prototype = {};
- A.ArgumentError.prototype = {
- get$_errorName() {
- return "Invalid argument" + (!this._hasValue ? "(s)" : "");
- },
- get$_errorExplanation() {
- return "";
- },
- toString$0(_) {
- var _this = this,
- $name = _this.name,
- nameString = $name == null ? "" : " (" + $name + ")",
- message = _this.message,
- messageString = message == null ? "" : ": " + A.S(message),
- prefix = _this.get$_errorName() + nameString + messageString;
- if (!_this._hasValue)
- return prefix;
- return prefix + _this.get$_errorExplanation() + ": " + A.Error_safeToString(_this.get$invalidValue());
- },
- get$invalidValue() {
- return this.invalidValue;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A.RangeError.prototype = {
- get$invalidValue() {
- return this.invalidValue;
- },
- get$_errorName() {
- return "RangeError";
- },
- get$_errorExplanation() {
- var explanation,
- start = this.start,
- end = this.end;
- if (start == null)
- explanation = end != null ? ": Not less than or equal to " + A.S(end) : "";
- else if (end == null)
- explanation = ": Not greater than or equal to " + A.S(start);
- else if (end > start)
- explanation = ": Not in inclusive range " + A.S(start) + ".." + A.S(end);
- else
- explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + A.S(start);
- return explanation;
- }
- };
- A.IndexError.prototype = {
- get$invalidValue() {
- return this.invalidValue;
- },
- get$_errorName() {
- return "RangeError";
- },
- get$_errorExplanation() {
- if (this.invalidValue < 0)
- return ": index must not be negative";
- var t1 = this.length;
- if (t1 === 0)
- return ": no indices are valid";
- return ": index should be less than " + t1;
- },
- $isRangeError: 1,
- get$length(receiver) {
- return this.length;
- }
- };
- A.NoSuchMethodError.prototype = {
- toString$0(_) {
- var $arguments, t1, _i, t2, t3, argument, receiverText, actualParameters, _this = this, _box_0 = {},
- sb = new A.StringBuffer("");
- _box_0.comma = "";
- $arguments = _this._core$_arguments;
- for (t1 = $arguments.length, _i = 0, t2 = "", t3 = ""; _i < t1; ++_i, t3 = ", ") {
- argument = $arguments[_i];
- sb._contents = t2 + t3;
- t2 = A.Error_safeToString(argument);
- t2 = sb._contents += t2;
- _box_0.comma = ", ";
- }
- _this._namedArguments.forEach$1(0, new A.NoSuchMethodError_toString_closure(_box_0, sb));
- receiverText = A.Error_safeToString(_this._core$_receiver);
- actualParameters = sb.toString$0(0);
- return "NoSuchMethodError: method not found: '" + _this._memberName.__internal$_name + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]";
- }
- };
- A.UnsupportedError.prototype = {
- toString$0(_) {
- return "Unsupported operation: " + this.message;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A.UnimplementedError.prototype = {
- toString$0(_) {
- return "UnimplementedError: " + this.message;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A.StateError.prototype = {
- toString$0(_) {
- return "Bad state: " + this.message;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A.ConcurrentModificationError.prototype = {
- toString$0(_) {
- var t1 = this.modifiedObject;
- if (t1 == null)
- return "Concurrent modification during iteration.";
- return "Concurrent modification during iteration: " + A.Error_safeToString(t1) + ".";
- }
- };
- A.OutOfMemoryError.prototype = {
- toString$0(_) {
- return "Out of Memory";
- },
- get$stackTrace() {
- return null;
- },
- $isError: 1
- };
- A.StackOverflowError.prototype = {
- toString$0(_) {
- return "Stack Overflow";
- },
- get$stackTrace() {
- return null;
- },
- $isError: 1
- };
- A._Exception.prototype = {
- toString$0(_) {
- return "Exception: " + this.message;
- },
- $isException: 1,
- get$message(receiver) {
- return this.message;
- }
- };
- A.FormatException.prototype = {
- toString$0(_) {
- var t1, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, end, start, prefix, postfix,
- message = this.message,
- report = "" !== message ? "FormatException: " + message : "FormatException",
- offset = this.offset,
- source = this.source;
- if (typeof source == "string") {
- if (offset != null)
- t1 = offset < 0 || offset > source.length;
- else
- t1 = false;
- if (t1)
- offset = null;
- if (offset == null) {
- if (source.length > 78)
- source = B.JSString_methods.substring$2(source, 0, 75) + "...";
- return report + "\n" + source;
- }
- for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) {
- char = source.charCodeAt(i);
- if (char === 10) {
- if (lineStart !== i || !previousCharWasCR)
- ++lineNum;
- lineStart = i + 1;
- previousCharWasCR = false;
- } else if (char === 13) {
- ++lineNum;
- lineStart = i + 1;
- previousCharWasCR = true;
- }
- }
- report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n");
- lineEnd = source.length;
- for (i = offset; i < lineEnd; ++i) {
- char = source.charCodeAt(i);
- if (char === 10 || char === 13) {
- lineEnd = i;
- break;
- }
- }
- if (lineEnd - lineStart > 78)
- if (offset - lineStart < 75) {
- end = lineStart + 75;
- start = lineStart;
- prefix = "";
- postfix = "...";
- } else {
- if (lineEnd - offset < 75) {
- start = lineEnd - 75;
- end = lineEnd;
- postfix = "";
- } else {
- start = offset - 36;
- end = offset + 36;
- postfix = "...";
- }
- prefix = "...";
- }
- else {
- end = lineEnd;
- start = lineStart;
- prefix = "";
- postfix = "";
- }
- return report + prefix + B.JSString_methods.substring$2(source, start, end) + postfix + "\n" + B.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n";
- } else
- return offset != null ? report + (" (at offset " + A.S(offset) + ")") : report;
- },
- $isException: 1,
- get$message(receiver) {
- return this.message;
- }
- };
- A.Iterable.prototype = {
- cast$1$0(_, $R) {
- return A.CastIterable_CastIterable(this, A._instanceType(this)._eval$1("Iterable.E"), $R);
- },
- followedBy$1(_, other) {
- var _this = this,
- t1 = A._instanceType(_this);
- if (t1._eval$1("EfficientLengthIterable<Iterable.E>")._is(_this))
- return A.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E"));
- return new A.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable<Iterable.E>"));
- },
- map$1$1(_, toElement, $T) {
- return A.MappedIterable_MappedIterable(this, toElement, A._instanceType(this)._eval$1("Iterable.E"), $T);
- },
- where$1(_, test) {
- return new A.WhereIterable(this, test, A._instanceType(this)._eval$1("WhereIterable<Iterable.E>"));
- },
- expand$1$1(_, toElements, $T) {
- return new A.ExpandIterable(this, toElements, A._instanceType(this)._eval$1("@<Iterable.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
- },
- contains$1(_, element) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (J.$eq$(t1.get$current(t1), element))
- return true;
- return false;
- },
- forEach$1(_, action) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- action.call$1(t1.get$current(t1));
- },
- fold$1$2(_, initialValue, combine) {
- var t1, value;
- for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();)
- value = combine.call$2(value, t1.get$current(t1));
- return value;
- },
- fold$2(_, initialValue, combine) {
- return this.fold$1$2(0, initialValue, combine, type$.dynamic);
- },
- every$1(_, test) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (!test.call$1(t1.get$current(t1)))
- return false;
- return true;
- },
- join$1(_, separator) {
- var first, t1,
- iterator = this.get$iterator(this);
- if (!iterator.moveNext$0())
- return "";
- first = J.toString$0$(iterator.get$current(iterator));
- if (!iterator.moveNext$0())
- return first;
- if (separator.length === 0) {
- t1 = first;
- do
- t1 += A.S(J.toString$0$(iterator.get$current(iterator)));
- while (iterator.moveNext$0());
- } else {
- t1 = first;
- do
- t1 = t1 + separator + A.S(J.toString$0$(iterator.get$current(iterator)));
- while (iterator.moveNext$0());
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- any$1(_, test) {
- var t1;
- for (t1 = this.get$iterator(this); t1.moveNext$0();)
- if (test.call$1(t1.get$current(t1)))
- return true;
- return false;
- },
- toList$1$growable(_, growable) {
- return A.List_List$of(this, growable, A._instanceType(this)._eval$1("Iterable.E"));
- },
- toList$0(_) {
- return this.toList$1$growable(0, true);
- },
- toSet$0(_) {
- return A.LinkedHashSet_LinkedHashSet$of(this, A._instanceType(this)._eval$1("Iterable.E"));
- },
- get$length(_) {
- var count,
- it = this.get$iterator(this);
- for (count = 0; it.moveNext$0();)
- ++count;
- return count;
- },
- get$isEmpty(_) {
- return !this.get$iterator(this).moveNext$0();
- },
- get$isNotEmpty(_) {
- return !this.get$isEmpty(this);
- },
- take$1(_, count) {
- return A.TakeIterable_TakeIterable(this, count, A._instanceType(this)._eval$1("Iterable.E"));
- },
- skip$1(_, count) {
- return A.SkipIterable_SkipIterable(this, count, A._instanceType(this)._eval$1("Iterable.E"));
- },
- skipWhile$1(_, test) {
- return new A.SkipWhileIterable(this, test, A._instanceType(this)._eval$1("SkipWhileIterable<Iterable.E>"));
- },
- get$first(_) {
- var it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw A.wrapException(A.IterableElementError_noElement());
- return it.get$current(it);
- },
- get$last(_) {
- var result,
- it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw A.wrapException(A.IterableElementError_noElement());
- do
- result = it.get$current(it);
- while (it.moveNext$0());
- return result;
- },
- get$single(_) {
- var result,
- it = this.get$iterator(this);
- if (!it.moveNext$0())
- throw A.wrapException(A.IterableElementError_noElement());
- result = it.get$current(it);
- if (it.moveNext$0())
- throw A.wrapException(A.IterableElementError_tooMany());
- return result;
- },
- elementAt$1(_, index) {
- var iterator, skipCount;
- A.RangeError_checkNotNegative(index, "index");
- iterator = this.get$iterator(this);
- for (skipCount = index; iterator.moveNext$0();) {
- if (skipCount === 0)
- return iterator.get$current(iterator);
- --skipCount;
- }
- throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index"));
- },
- toString$0(_) {
- return A.Iterable_iterableToShortString(this, "(", ")");
- }
- };
- A._GeneratorIterable.prototype = {
- elementAt$1(_, index) {
- A.IndexError_check(index, this.length, this, null, null);
- return this._generator.call$1(index);
- },
- get$length(receiver) {
- return this.length;
- }
- };
- A.MapEntry.prototype = {
- toString$0(_) {
- return "MapEntry(" + A.S(this.key) + ": " + A.S(this.value) + ")";
- }
- };
- A.Null.prototype = {
- get$hashCode(_) {
- return A.Object.prototype.get$hashCode.call(this, 0);
- },
- toString$0(_) {
- return "null";
- }
- };
- A.Object.prototype = {$isObject: 1,
- $eq(_, other) {
- return this === other;
- },
- get$hashCode(_) {
- return A.Primitives_objectHashCode(this);
- },
- toString$0(_) {
- return "Instance of '" + A.Primitives_objectTypeName(this) + "'";
- },
- noSuchMethod$1(_, invocation) {
- throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, invocation));
- },
- get$runtimeType(_) {
- return A.getRuntimeTypeOfDartObject(this);
- },
- toString() {
- return this.toString$0(this);
- }
- };
- A._StringStackTrace.prototype = {
- toString$0(_) {
- return this._stackTrace;
- },
- $isStackTrace: 1
- };
- A.Runes.prototype = {
- get$iterator(_) {
- return new A.RuneIterator(this.string);
- },
- get$last(_) {
- var code, previousCode,
- t1 = this.string,
- t2 = t1.length;
- if (t2 === 0)
- throw A.wrapException(A.StateError$("No elements."));
- code = t1.charCodeAt(t2 - 1);
- if ((code & 64512) === 56320 && t2 > 1) {
- previousCode = t1.charCodeAt(t2 - 2);
- if ((previousCode & 64512) === 55296)
- return A._combineSurrogatePair(previousCode, code);
- }
- return code;
- }
- };
- A.RuneIterator.prototype = {
- get$current(_) {
- return this._currentCodePoint;
- },
- moveNext$0() {
- var codeUnit, nextPosition, nextCodeUnit, _this = this,
- t1 = _this._position = _this._nextPosition,
- t2 = _this.string,
- t3 = t2.length;
- if (t1 === t3) {
- _this._currentCodePoint = -1;
- return false;
- }
- codeUnit = t2.charCodeAt(t1);
- nextPosition = t1 + 1;
- if ((codeUnit & 64512) === 55296 && nextPosition < t3) {
- nextCodeUnit = t2.charCodeAt(nextPosition);
- if ((nextCodeUnit & 64512) === 56320) {
- _this._nextPosition = nextPosition + 1;
- _this._currentCodePoint = A._combineSurrogatePair(codeUnit, nextCodeUnit);
- return true;
- }
- }
- _this._nextPosition = nextPosition;
- _this._currentCodePoint = codeUnit;
- return true;
- }
- };
- A.StringBuffer.prototype = {
- get$length(_) {
- return this._contents.length;
- },
- write$1(_, obj) {
- var t1 = A.S(obj);
- this._contents += t1;
- },
- writeCharCode$1(charCode) {
- var t1 = A.Primitives_stringFromCharCode(charCode);
- this._contents += t1;
- },
- toString$0(_) {
- var t1 = this._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- A.Uri__parseIPv4Address_error.prototype = {
- call$2(msg, position) {
- throw A.wrapException(A.FormatException$("Illegal IPv4 address, " + msg, this.host, position));
- },
- $signature: 288
- };
- A.Uri_parseIPv6Address_error.prototype = {
- call$2(msg, position) {
- throw A.wrapException(A.FormatException$("Illegal IPv6 address, " + msg, this.host, position));
- },
- $signature: 295
- };
- A.Uri_parseIPv6Address_parseHex.prototype = {
- call$2(start, end) {
- var value;
- if (end - start > 4)
- this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
- value = A.int_parse(B.JSString_methods.substring$2(this.host, start, end), 16);
- if (value < 0 || value > 65535)
- this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start);
- return value;
- },
- $signature: 296
- };
- A._Uri.prototype = {
- get$_text() {
- var t1, t2, t3, t4, _this = this,
- value = _this.___Uri__text_FI;
- if (value === $) {
- t1 = _this.scheme;
- t2 = t1.length !== 0 ? "" + t1 + ":" : "";
- t3 = _this._host;
- t4 = t3 == null;
- if (!t4 || t1 === "file") {
- t1 = t2 + "//";
- t2 = _this._userInfo;
- if (t2.length !== 0)
- t1 = t1 + t2 + "@";
- if (!t4)
- t1 += t3;
- t2 = _this._port;
- if (t2 != null)
- t1 = t1 + ":" + A.S(t2);
- } else
- t1 = t2;
- t1 += _this.path;
- t2 = _this._query;
- if (t2 != null)
- t1 = t1 + "?" + t2;
- t2 = _this._fragment;
- if (t2 != null)
- t1 = t1 + "#" + t2;
- value !== $ && A.throwUnnamedLateFieldADI();
- value = _this.___Uri__text_FI = t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- return value;
- },
- get$pathSegments() {
- var pathToSplit, result, _this = this,
- value = _this.___Uri_pathSegments_FI;
- if (value === $) {
- pathToSplit = _this.path;
- if (pathToSplit.length !== 0 && pathToSplit.charCodeAt(0) === 47)
- pathToSplit = B.JSString_methods.substring$1(pathToSplit, 1);
- result = pathToSplit.length === 0 ? B.List_empty : A.List_List$unmodifiable(new A.MappedListIterable(A._setArrayType(pathToSplit.split("/"), type$.JSArray_String), A.core_Uri_decodeComponent$closure(), type$.MappedListIterable_String_dynamic), type$.String);
- _this.___Uri_pathSegments_FI !== $ && A.throwUnnamedLateFieldADI();
- value = _this.___Uri_pathSegments_FI = result;
- }
- return value;
- },
- get$hashCode(_) {
- var result, _this = this,
- value = _this.___Uri_hashCode_FI;
- if (value === $) {
- result = B.JSString_methods.get$hashCode(_this.get$_text());
- _this.___Uri_hashCode_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.___Uri_hashCode_FI = result;
- value = result;
- }
- return value;
- },
- get$userInfo() {
- return this._userInfo;
- },
- get$host() {
- var host = this._host;
- if (host == null)
- return "";
- if (B.JSString_methods.startsWith$1(host, "["))
- return B.JSString_methods.substring$2(host, 1, host.length - 1);
- return host;
- },
- get$port(_) {
- var t1 = this._port;
- return t1 == null ? A._Uri__defaultPort(this.scheme) : t1;
- },
- get$query() {
- var t1 = this._query;
- return t1 == null ? "" : t1;
- },
- get$fragment() {
- var t1 = this._fragment;
- return t1 == null ? "" : t1;
- },
- isScheme$1(scheme) {
- var thisScheme = this.scheme;
- if (scheme.length !== thisScheme.length)
- return false;
- return A._caseInsensitiveCompareStart(scheme, thisScheme, 0) >= 0;
- },
- replace$1$scheme(scheme) {
- var isFile, userInfo, port, host, currentPath, t1, path, _this = this;
- scheme = A._Uri__makeScheme(scheme, 0, scheme.length);
- isFile = scheme === "file";
- userInfo = _this._userInfo;
- port = _this._port;
- if (scheme !== _this.scheme)
- port = A._Uri__makePort(port, scheme);
- host = _this._host;
- if (!(host != null))
- host = userInfo.length !== 0 || port != null || isFile ? "" : null;
- currentPath = _this.path;
- if (!isFile)
- t1 = host != null && currentPath.length !== 0;
- else
- t1 = true;
- if (t1 && !B.JSString_methods.startsWith$1(currentPath, "/"))
- currentPath = "/" + currentPath;
- path = currentPath;
- return A._Uri$_internal(scheme, userInfo, host, port, path, _this._query, _this._fragment);
- },
- _mergePaths$2(base, reference) {
- var backCount, refStart, baseEnd, newEnd, delta, t1;
- for (backCount = 0, refStart = 0; B.JSString_methods.startsWith$2(reference, "../", refStart);) {
- refStart += 3;
- ++backCount;
- }
- baseEnd = B.JSString_methods.lastIndexOf$1(base, "/");
- while (true) {
- if (!(baseEnd > 0 && backCount > 0))
- break;
- newEnd = B.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1);
- if (newEnd < 0)
- break;
- delta = baseEnd - newEnd;
- t1 = delta !== 2;
- if (!t1 || delta === 3)
- if (base.charCodeAt(newEnd + 1) === 46)
- t1 = !t1 || base.charCodeAt(newEnd + 2) === 46;
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- break;
- --backCount;
- baseEnd = newEnd;
- }
- return B.JSString_methods.replaceRange$3(base, baseEnd + 1, null, B.JSString_methods.substring$1(reference, refStart - 3 * backCount));
- },
- resolve$1(_, reference) {
- return this.resolveUri$1(A.Uri_parse(reference));
- },
- resolveUri$1(reference) {
- var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, split, packageNameEnd, packageName, mergedPath, t1, fragment, _this = this, _null = null;
- if (reference.get$scheme().length !== 0) {
- if (type$._PlatformUri._is(reference))
- return reference;
- targetScheme = reference.get$scheme();
- if (reference.get$hasAuthority()) {
- targetUserInfo = reference.get$userInfo();
- targetHost = reference.get$host();
- targetPort = reference.get$hasPort() ? reference.get$port(reference) : _null;
- } else {
- targetPort = _null;
- targetHost = targetPort;
- targetUserInfo = "";
- }
- targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
- targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
- split = 0;
- } else {
- targetScheme = _this.scheme;
- if (reference.get$hasAuthority()) {
- if (type$._PlatformUri._is(reference))
- return reference.replace$1$scheme(targetScheme);
- targetUserInfo = reference.get$userInfo();
- targetHost = reference.get$host();
- targetPort = A._Uri__makePort(reference.get$hasPort() ? reference.get$port(reference) : _null, targetScheme);
- targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
- targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
- split = 1;
- } else {
- targetUserInfo = _this._userInfo;
- targetHost = _this._host;
- targetPort = _this._port;
- targetPath = _this.path;
- if (reference.get$hasEmptyPath())
- if (reference.get$hasQuery()) {
- targetQuery = reference.get$query();
- split = 3;
- } else {
- targetQuery = _this._query;
- split = 4;
- }
- else {
- packageNameEnd = A._Uri__packageNameEnd(_this, targetPath);
- if (packageNameEnd > 0) {
- packageName = B.JSString_methods.substring$2(targetPath, 0, packageNameEnd);
- targetPath = reference.get$hasAbsolutePath() ? packageName + A._Uri__removeDotSegments(reference.get$path(reference)) : packageName + A._Uri__removeDotSegments(_this._mergePaths$2(B.JSString_methods.substring$1(targetPath, packageName.length), reference.get$path(reference)));
- } else if (reference.get$hasAbsolutePath())
- targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
- else if (targetPath.length === 0)
- if (targetHost == null)
- targetPath = targetScheme.length === 0 ? reference.get$path(reference) : A._Uri__removeDotSegments(reference.get$path(reference));
- else
- targetPath = A._Uri__removeDotSegments("/" + reference.get$path(reference));
- else {
- mergedPath = _this._mergePaths$2(targetPath, reference.get$path(reference));
- t1 = targetScheme.length === 0;
- if (!t1 || targetHost != null || B.JSString_methods.startsWith$1(targetPath, "/"))
- targetPath = A._Uri__removeDotSegments(mergedPath);
- else
- targetPath = A._Uri__normalizeRelativePath(mergedPath, !t1 || targetHost != null);
- }
- targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
- split = 2;
- }
- }
- }
- fragment = reference.get$hasFragment() ? reference.get$fragment() : _null;
- if (!type$._PlatformUri._is(reference)) {
- if (split === 0)
- targetScheme = A._Uri__makeScheme(targetScheme, 0, targetScheme.length);
- if (split <= 1) {
- targetUserInfo = A._Uri__makeUserInfo(targetUserInfo, 0, targetUserInfo.length);
- if (targetPort != null)
- targetPort = A._Uri__makePort(targetPort, targetScheme);
- if (targetHost != null && targetHost.length !== 0)
- targetHost = A._Uri__makeHost(targetHost, 0, targetHost.length, false);
- }
- t1 = split <= 3;
- if (t1)
- targetPath = A._Uri__makePath(targetPath, 0, targetPath.length, _null, targetScheme, targetHost != null);
- if (t1 && targetQuery != null)
- targetQuery = A._Uri__makeQuery(targetQuery, 0, targetQuery.length, _null);
- if (fragment != null)
- fragment = A._Uri__makeFragment(fragment, 0, fragment.length);
- }
- return A._Uri$_internal(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, fragment);
- },
- get$hasAuthority() {
- return this._host != null;
- },
- get$hasPort() {
- return this._port != null;
- },
- get$hasQuery() {
- return this._query != null;
- },
- get$hasFragment() {
- return this._fragment != null;
- },
- get$hasEmptyPath() {
- return this.path.length === 0;
- },
- get$hasAbsolutePath() {
- return B.JSString_methods.startsWith$1(this.path, "/");
- },
- toFilePath$0() {
- var pathSegments, _this = this,
- t1 = _this.scheme;
- if (t1 !== "" && t1 !== "file")
- throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + t1 + " URI"));
- t1 = _this._query;
- if ((t1 == null ? "" : t1) !== "")
- throw A.wrapException(A.UnsupportedError$(string$.Cannotfq));
- t1 = _this._fragment;
- if ((t1 == null ? "" : t1) !== "")
- throw A.wrapException(A.UnsupportedError$(string$.Cannotff));
- t1 = $.$get$_Uri__isWindowsCached();
- if (t1)
- t1 = A._Uri__toWindowsFilePath(_this);
- else {
- if (_this._host != null && _this.get$host() !== "")
- A.throwExpression(A.UnsupportedError$(string$.Cannotn));
- pathSegments = _this.get$pathSegments();
- A._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false);
- t1 = A.StringBuffer__writeAll(B.JSString_methods.startsWith$1(_this.path, "/") ? "" + "/" : "", pathSegments, "/");
- t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- return t1;
- },
- toString$0(_) {
- return this.get$_text();
- },
- $eq(_, other) {
- var t1, t2, _this = this;
- if (other == null)
- return false;
- if (_this === other)
- return true;
- if (type$.Uri._is(other))
- if (_this.scheme === other.get$scheme())
- if (_this._host != null === other.get$hasAuthority())
- if (_this._userInfo === other.get$userInfo())
- if (_this.get$host() === other.get$host())
- if (_this.get$port(0) === other.get$port(other))
- if (_this.path === other.get$path(other)) {
- t1 = _this._query;
- t2 = t1 == null;
- if (!t2 === other.get$hasQuery()) {
- if (t2)
- t1 = "";
- if (t1 === other.get$query()) {
- t1 = _this._fragment;
- t2 = t1 == null;
- if (!t2 === other.get$hasFragment()) {
- if (t2)
- t1 = "";
- t1 = t1 === other.get$fragment();
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- $isUri: 1,
- $is_PlatformUri: 1,
- get$scheme() {
- return this.scheme;
- },
- get$path(receiver) {
- return this.path;
- }
- };
- A._Uri__makePath_closure.prototype = {
- call$1(s) {
- return A._Uri__uriEncode(B.List_M2I0, s, B.C_Utf8Codec, false);
- },
- $signature: 5
- };
- A.UriData.prototype = {
- get$uri() {
- var t2, queryIndex, end, query, _this = this, _null = null,
- t1 = _this._uriCache;
- if (t1 == null) {
- t1 = _this._text;
- t2 = _this._separatorIndices[0] + 1;
- queryIndex = B.JSString_methods.indexOf$2(t1, "?", t2);
- end = t1.length;
- if (queryIndex >= 0) {
- query = A._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, B.List_42A, false, false);
- end = queryIndex;
- } else
- query = _null;
- t1 = _this._uriCache = new A._DataUri("data", "", _null, _null, A._Uri__normalizeOrSubstring(t1, t2, end, B.List_M2I, false, false), query, _null);
- }
- return t1;
- },
- toString$0(_) {
- var t1 = this._text;
- return this._separatorIndices[0] === -1 ? "data:" + t1 : t1;
- }
- };
- A._createTables_build.prototype = {
- call$2(state, defaultTransition) {
- var t1 = this.tables[state];
- B.NativeUint8List_methods.fillRange$3(t1, 0, 96, defaultTransition);
- return t1;
- },
- $signature: 328
- };
- A._createTables_setChars.prototype = {
- call$3(target, chars, transition) {
- var t1, i;
- for (t1 = chars.length, i = 0; i < t1; ++i)
- target[chars.charCodeAt(i) ^ 96] = transition;
- },
- $signature: 221
- };
- A._createTables_setRange.prototype = {
- call$3(target, range, transition) {
- var i, n;
- for (i = range.charCodeAt(0), n = range.charCodeAt(1); i <= n; ++i)
- target[(i ^ 96) >>> 0] = transition;
- },
- $signature: 221
- };
- A._SimpleUri.prototype = {
- get$hasAuthority() {
- return this._hostStart > 0;
- },
- get$hasPort() {
- return this._hostStart > 0 && this._portStart + 1 < this._pathStart;
- },
- get$hasQuery() {
- return this._queryStart < this._fragmentStart;
- },
- get$hasFragment() {
- return this._fragmentStart < this._uri.length;
- },
- get$hasAbsolutePath() {
- return B.JSString_methods.startsWith$2(this._uri, "/", this._pathStart);
- },
- get$hasEmptyPath() {
- return this._pathStart === this._queryStart;
- },
- get$scheme() {
- var t1 = this._schemeCache;
- return t1 == null ? this._schemeCache = this._computeScheme$0() : t1;
- },
- _computeScheme$0() {
- var t2, _this = this,
- t1 = _this._schemeEnd;
- if (t1 <= 0)
- return "";
- t2 = t1 === 4;
- if (t2 && B.JSString_methods.startsWith$1(_this._uri, "http"))
- return "http";
- if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https"))
- return "https";
- if (t2 && B.JSString_methods.startsWith$1(_this._uri, "file"))
- return "file";
- if (t1 === 7 && B.JSString_methods.startsWith$1(_this._uri, "package"))
- return "package";
- return B.JSString_methods.substring$2(_this._uri, 0, t1);
- },
- get$userInfo() {
- var t1 = this._hostStart,
- t2 = this._schemeEnd + 3;
- return t1 > t2 ? B.JSString_methods.substring$2(this._uri, t2, t1 - 1) : "";
- },
- get$host() {
- var t1 = this._hostStart;
- return t1 > 0 ? B.JSString_methods.substring$2(this._uri, t1, this._portStart) : "";
- },
- get$port(_) {
- var t1, _this = this;
- if (_this.get$hasPort())
- return A.int_parse(B.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null);
- t1 = _this._schemeEnd;
- if (t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "http"))
- return 80;
- if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https"))
- return 443;
- return 0;
- },
- get$path(_) {
- return B.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart);
- },
- get$query() {
- var t1 = this._queryStart,
- t2 = this._fragmentStart;
- return t1 < t2 ? B.JSString_methods.substring$2(this._uri, t1 + 1, t2) : "";
- },
- get$fragment() {
- var t1 = this._fragmentStart,
- t2 = this._uri;
- return t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : "";
- },
- get$pathSegments() {
- var parts, i,
- start = this._pathStart,
- end = this._queryStart,
- t1 = this._uri;
- if (B.JSString_methods.startsWith$2(t1, "/", start))
- ++start;
- if (start === end)
- return B.List_empty;
- parts = A._setArrayType([], type$.JSArray_String);
- for (i = start; i < end; ++i)
- if (t1.charCodeAt(i) === 47) {
- parts.push(B.JSString_methods.substring$2(t1, start, i));
- start = i + 1;
- }
- parts.push(B.JSString_methods.substring$2(t1, start, end));
- return A.List_List$unmodifiable(parts, type$.String);
- },
- _isPort$1(port) {
- var portDigitStart = this._portStart + 1;
- return portDigitStart + port.length === this._pathStart && B.JSString_methods.startsWith$2(this._uri, port, portDigitStart);
- },
- removeFragment$0() {
- var _this = this,
- t1 = _this._fragmentStart,
- t2 = _this._uri;
- if (t1 >= t2.length)
- return _this;
- return new A._SimpleUri(B.JSString_methods.substring$2(t2, 0, t1), _this._schemeEnd, _this._hostStart, _this._portStart, _this._pathStart, _this._queryStart, t1, _this._schemeCache);
- },
- replace$1$scheme(scheme) {
- var schemeChanged, isFile, t1, userInfo, port, host, t2, path, t3, query, fragment, _this = this, _null = null;
- scheme = A._Uri__makeScheme(scheme, 0, scheme.length);
- schemeChanged = !(_this._schemeEnd === scheme.length && B.JSString_methods.startsWith$1(_this._uri, scheme));
- isFile = scheme === "file";
- t1 = _this._hostStart;
- userInfo = t1 > 0 ? B.JSString_methods.substring$2(_this._uri, _this._schemeEnd + 3, t1) : "";
- port = _this.get$hasPort() ? _this.get$port(0) : _null;
- if (schemeChanged)
- port = A._Uri__makePort(port, scheme);
- t1 = _this._hostStart;
- if (t1 > 0)
- host = B.JSString_methods.substring$2(_this._uri, t1, _this._portStart);
- else
- host = userInfo.length !== 0 || port != null || isFile ? "" : _null;
- t1 = _this._uri;
- t2 = _this._queryStart;
- path = B.JSString_methods.substring$2(t1, _this._pathStart, t2);
- if (!isFile)
- t3 = host != null && path.length !== 0;
- else
- t3 = true;
- if (t3 && !B.JSString_methods.startsWith$1(path, "/"))
- path = "/" + path;
- t3 = _this._fragmentStart;
- query = t2 < t3 ? B.JSString_methods.substring$2(t1, t2 + 1, t3) : _null;
- t2 = _this._fragmentStart;
- fragment = t2 < t1.length ? B.JSString_methods.substring$1(t1, t2 + 1) : _null;
- return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragment);
- },
- resolve$1(_, reference) {
- return this.resolveUri$1(A.Uri_parse(reference));
- },
- resolveUri$1(reference) {
- if (reference instanceof A._SimpleUri)
- return this._simpleMerge$2(this, reference);
- return this._toNonSimple$0().resolveUri$1(reference);
- },
- _simpleMerge$2(base, ref) {
- var t2, t3, t4, isSimple, delta, refStart, basePathStart, packageNameEnd, basePathStart0, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert,
- t1 = ref._schemeEnd;
- if (t1 > 0)
- return ref;
- t2 = ref._hostStart;
- if (t2 > 0) {
- t3 = base._schemeEnd;
- if (t3 <= 0)
- return ref;
- t4 = t3 === 4;
- if (t4 && B.JSString_methods.startsWith$1(base._uri, "file"))
- isSimple = ref._pathStart !== ref._queryStart;
- else if (t4 && B.JSString_methods.startsWith$1(base._uri, "http"))
- isSimple = !ref._isPort$1("80");
- else
- isSimple = !(t3 === 5 && B.JSString_methods.startsWith$1(base._uri, "https")) || !ref._isPort$1("443");
- if (isSimple) {
- delta = t3 + 1;
- return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, delta) + B.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);
- } else
- return this._toNonSimple$0().resolveUri$1(ref);
- }
- refStart = ref._pathStart;
- t1 = ref._queryStart;
- if (refStart === t1) {
- t2 = ref._fragmentStart;
- if (t1 < t2) {
- t3 = base._queryStart;
- delta = t3 - t1;
- return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, t3) + B.JSString_methods.substring$1(ref._uri, t1), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, t1 + delta, t2 + delta, base._schemeCache);
- }
- t1 = ref._uri;
- if (t2 < t1.length) {
- t3 = base._fragmentStart;
- return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, t3) + B.JSString_methods.substring$1(t1, t2), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, base._queryStart, t2 + (t3 - t2), base._schemeCache);
- }
- return base.removeFragment$0();
- }
- t2 = ref._uri;
- if (B.JSString_methods.startsWith$2(t2, "/", refStart)) {
- basePathStart = base._pathStart;
- packageNameEnd = A._SimpleUri__packageNameEnd(this);
- basePathStart0 = packageNameEnd > 0 ? packageNameEnd : basePathStart;
- delta = basePathStart0 - refStart;
- return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, basePathStart0) + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, basePathStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
- }
- baseStart = base._pathStart;
- baseEnd = base._queryStart;
- if (baseStart === baseEnd && base._hostStart > 0) {
- for (; B.JSString_methods.startsWith$2(t2, "../", refStart);)
- refStart += 3;
- delta = baseStart - refStart + 1;
- return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, baseStart) + "/" + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
- }
- baseUri = base._uri;
- packageNameEnd = A._SimpleUri__packageNameEnd(this);
- if (packageNameEnd >= 0)
- baseStart0 = packageNameEnd;
- else
- for (baseStart0 = baseStart; B.JSString_methods.startsWith$2(baseUri, "../", baseStart0);)
- baseStart0 += 3;
- backCount = 0;
- while (true) {
- refStart0 = refStart + 3;
- if (!(refStart0 <= t1 && B.JSString_methods.startsWith$2(t2, "../", refStart)))
- break;
- ++backCount;
- refStart = refStart0;
- }
- for (insert = ""; baseEnd > baseStart0;) {
- --baseEnd;
- if (baseUri.charCodeAt(baseEnd) === 47) {
- if (backCount === 0) {
- insert = "/";
- break;
- }
- --backCount;
- insert = "/";
- }
- }
- if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !B.JSString_methods.startsWith$2(baseUri, "/", baseStart)) {
- refStart -= backCount * 3;
- insert = "";
- }
- delta = baseEnd - refStart + insert.length;
- return new A._SimpleUri(B.JSString_methods.substring$2(baseUri, 0, baseEnd) + insert + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
- },
- toFilePath$0() {
- var t2, t3, _this = this,
- t1 = _this._schemeEnd;
- if (t1 >= 0) {
- t2 = !(t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "file"));
- t1 = t2;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + _this.get$scheme() + " URI"));
- t1 = _this._queryStart;
- t2 = _this._uri;
- if (t1 < t2.length) {
- if (t1 < _this._fragmentStart)
- throw A.wrapException(A.UnsupportedError$(string$.Cannotfq));
- throw A.wrapException(A.UnsupportedError$(string$.Cannotff));
- }
- t3 = $.$get$_Uri__isWindowsCached();
- if (t3)
- t1 = A._Uri__toWindowsFilePath(_this);
- else {
- if (_this._hostStart < _this._portStart)
- A.throwExpression(A.UnsupportedError$(string$.Cannotn));
- t1 = B.JSString_methods.substring$2(t2, _this._pathStart, t1);
- }
- return t1;
- },
- get$hashCode(_) {
- var t1 = this._hashCodeCache;
- return t1 == null ? this._hashCodeCache = B.JSString_methods.get$hashCode(this._uri) : t1;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- if (this === other)
- return true;
- return type$.Uri._is(other) && this._uri === other.toString$0(0);
- },
- _toNonSimple$0() {
- var _this = this, _null = null,
- t1 = _this.get$scheme(),
- t2 = _this.get$userInfo(),
- t3 = _this._hostStart > 0 ? _this.get$host() : _null,
- t4 = _this.get$hasPort() ? _this.get$port(0) : _null,
- t5 = _this._uri,
- t6 = _this._queryStart,
- t7 = B.JSString_methods.substring$2(t5, _this._pathStart, t6),
- t8 = _this._fragmentStart;
- t6 = t6 < t8 ? _this.get$query() : _null;
- return A._Uri$_internal(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null);
- },
- toString$0(_) {
- return this._uri;
- },
- $isUri: 1,
- $is_PlatformUri: 1
- };
- A._DataUri.prototype = {};
- A.Expando.prototype = {
- $indexSet(_, object, value) {
- if (object instanceof A._Record)
- A.Expando__badExpandoKey(object);
- this._jsWeakMap.set(object, value);
- },
- toString$0(_) {
- return "Expando:null";
- }
- };
- A.jsify__convert.prototype = {
- call$1(o) {
- var t1, convertedMap, key, convertedList;
- if (A._noJsifyRequired(o))
- return o;
- t1 = this._convertedObjects;
- if (t1.containsKey$1(o))
- return t1.$index(0, o);
- if (type$.Map_of_nullable_Object_and_nullable_Object._is(o)) {
- convertedMap = {};
- t1.$indexSet(0, o, convertedMap);
- for (t1 = J.get$iterator$ax(o.get$keys(o)); t1.moveNext$0();) {
- key = t1.get$current(t1);
- convertedMap[key] = this.call$1(o.$index(0, key));
- }
- return convertedMap;
- } else if (type$.Iterable_nullable_Object._is(o)) {
- convertedList = [];
- t1.$indexSet(0, o, convertedList);
- B.JSArray_methods.addAll$1(convertedList, J.map$1$1$ax(o, this, type$.dynamic));
- return convertedList;
- } else
- return o;
- },
- $signature: 392
- };
- A.promiseToFuture_closure1.prototype = {
- call$1(r) {
- return this.completer.complete$1(r);
- },
- $signature: 71
- };
- A.promiseToFuture_closure2.prototype = {
- call$1(e) {
- if (e == null)
- return this.completer.completeError$1(new A.NullRejectionException(e === undefined));
- return this.completer.completeError$1(e);
- },
- $signature: 71
- };
- A.NullRejectionException.prototype = {
- toString$0(_) {
- return "Promise was rejected with a value of `" + (this.isUndefined ? "undefined" : "null") + "`.";
- },
- $isException: 1
- };
- A._JSRandom.prototype = {
- nextInt$1(max) {
- if (max <= 0 || max > 4294967296)
- throw A.wrapException(A.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max));
- return Math.random() * max >>> 0;
- },
- nextDouble$0() {
- return Math.random();
- }
- };
- A.ArgParser.prototype = {
- addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, defaultsTo, help, hide, negatable) {
- var _null = null;
- this._addOption$12$aliases$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, B.OptionType_I6i, B.List_empty, hide, negatable);
- },
- addFlag$2$hide($name, hide) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true);
- },
- addFlag$2$help($name, help) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true);
- },
- addFlag$3$defaultsTo$help($name, defaultsTo, help) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true);
- },
- addFlag$3$help$negatable($name, help, negatable) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable);
- },
- addFlag$3$abbr$help($name, abbr, help) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true);
- },
- addFlag$4$abbr$help$negatable($name, abbr, help, negatable) {
- return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable);
- },
- addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, hide, valueHelp) {
- this._addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, B.OptionType_tew, B.List_empty, hide, false);
- },
- addOption$2$hide($name, hide) {
- var _null = null;
- return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, _null, _null, _null, _null, hide, _null);
- },
- addOption$6$abbr$allowed$defaultsTo$help$valueHelp($name, abbr, allowed, defaultsTo, help, valueHelp) {
- return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp);
- },
- addOption$4$allowed$defaultsTo$help($name, allowed, defaultsTo, help) {
- return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null);
- },
- addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, abbr, allowed, allowedHelp, help, splitCommas, valueHelp) {
- var t1 = A._setArrayType([], type$.JSArray_String);
- this._addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, t1, null, B.OptionType_yPm, B.List_empty, false, splitCommas);
- },
- addMultiOption$5$abbr$help$splitCommas$valueHelp($name, abbr, help, splitCommas, valueHelp) {
- return this.addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, abbr, null, null, help, splitCommas, valueHelp);
- },
- addMultiOption$6$abbr$allowed$allowedHelp$help$valueHelp($name, abbr, allowed, allowedHelp, help, valueHelp) {
- return this.addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, abbr, allowed, allowedHelp, help, true, valueHelp);
- },
- addMultiOption$2$help($name, help) {
- var _null = null;
- return this.addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, _null, _null, _null, help, true, _null);
- },
- _addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, negatable, splitCommas) {
- var existing, t2, t3, option, _i, _this = this, _null = null,
- t1 = A._setArrayType([$name], type$.JSArray_String);
- B.JSArray_methods.addAll$1(t1, aliases);
- if (B.JSArray_methods.any$1(t1, new A.ArgParser__addOption_closure(_this)))
- throw A.wrapException(A.ArgumentError$('Duplicate option or alias "' + $name + '".', _null));
- t1 = abbr != null;
- if (t1) {
- existing = _this.findByAbbreviation$1(abbr);
- if (existing != null)
- throw A.wrapException(A.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".', _null));
- }
- t2 = allowed == null ? _null : A.List_List$unmodifiable(allowed, type$.String);
- if (allowedHelp == null)
- t3 = _null;
- else {
- t3 = type$.String;
- t3 = A.ConstantMap_ConstantMap$from(allowedHelp, t3, t3);
- }
- option = new A.Option($name, abbr, help, valueHelp, t2, t3, defaultsTo, negatable, callback, type, splitCommas == null ? type === B.OptionType_yPm : splitCommas, false, hide);
- if ($name.length === 0)
- A.throwExpression(A.ArgumentError$("Name cannot be empty.", _null));
- else if (B.JSString_methods.startsWith$1($name, "-"))
- A.throwExpression(A.ArgumentError$("Name " + $name + ' cannot start with "-".', _null));
- t2 = $.$get$Option__invalidChars()._nativeRegExp;
- if (t2.test($name))
- A.throwExpression(A.ArgumentError$('Name "' + $name + '" contains invalid characters.', _null));
- if (t1) {
- if (abbr.length !== 1)
- A.throwExpression(A.ArgumentError$("Abbreviation must be null or have length 1.", _null));
- else if (abbr === "-")
- A.throwExpression(A.ArgumentError$('Abbreviation cannot be "-".', _null));
- if (t2.test(abbr))
- A.throwExpression(A.ArgumentError$("Abbreviation is an invalid character.", _null));
- }
- _this._arg_parser$_options.$indexSet(0, $name, option);
- _this._optionsAndSeparators.push(option);
- for (t1 = _this._aliases, _i = 0; false; ++_i)
- t1.$indexSet(0, aliases[_i], $name);
- },
- _addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, splitCommas) {
- return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, false, splitCommas);
- },
- _addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory) {
- return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, false, null);
- },
- _addOption$12$aliases$hide$negatable($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, negatable) {
- return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, negatable, null);
- },
- findByAbbreviation$1(abbr) {
- var t1, t2;
- for (t1 = this.options._map, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- if (t2.abbr === abbr)
- return t2;
- }
- return null;
- },
- findByNameOrAlias$1($name) {
- var t1 = this._aliases.$index(0, $name);
- if (t1 == null)
- t1 = $name;
- return this.options._map.$index(0, t1);
- }
- };
- A.ArgParser__addOption_closure.prototype = {
- call$1($name) {
- return this.$this.findByNameOrAlias$1($name) != null;
- },
- $signature: 4
- };
- A.ArgParserException.prototype = {};
- A.ArgResults.prototype = {
- $index(_, $name) {
- var t1 = this._parser.options._map;
- if (!t1.containsKey$1($name))
- throw A.wrapException(A.ArgumentError$('Could not find an option named "' + $name + '".', null));
- t1 = t1.$index(0, $name);
- t1.toString;
- return t1.valueOrDefault$1(this._parsed.$index(0, $name));
- },
- wasParsed$1($name) {
- if (!this._parser.options._map.containsKey$1($name))
- throw A.wrapException(A.ArgumentError$('Could not find an option named "' + $name + '".', null));
- return this._parsed.containsKey$1($name);
- }
- };
- A.Option.prototype = {
- valueOrDefault$1(value) {
- var t1;
- if (value != null)
- return value;
- if (this.type === B.OptionType_yPm) {
- t1 = this.defaultsTo;
- return t1 == null ? A._setArrayType([], type$.JSArray_String) : t1;
- }
- return this.defaultsTo;
- }
- };
- A.OptionType.prototype = {};
- A.Parser0.prototype = {
- parse$0() {
- var commandResults, commandName, commandParser, error, t1, t3, t4, t5, t6, t7, t8, command, exception, _this = this,
- t2 = _this._args;
- t2.toList$0(0);
- commandResults = null;
- for (t3 = _this._parser$_rest, t4 = _this._grammar, t5 = t4.commands, t6 = t2.$ti._precomputed1; !t2.get$isEmpty(0);) {
- t7 = t2._head;
- if (t7 === t2._tail)
- A.throwExpression(A.IterableElementError_noElement());
- t7 = t2._table[t7];
- t8 = t7 == null;
- if ((t8 ? t6._as(t7) : t7) === "--") {
- t2.removeFirst$0();
- break;
- }
- if (t8)
- t7 = t6._as(t7);
- command = t5._map.$index(0, t7);
- if (command != null) {
- if (t3.length !== 0)
- A.throwExpression(A.ArgParserException$("Cannot specify arguments before a command.", null));
- commandName = t2.removeFirst$0();
- t5 = type$.JSArray_String;
- t6 = A._setArrayType([], t5);
- B.JSArray_methods.addAll$1(t6, t3);
- commandParser = new A.Parser0(commandName, _this, command, t2, t6, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
- try {
- commandResults = commandParser.parse$0();
- } catch (exception) {
- t2 = A.unwrapException(exception);
- if (t2 instanceof A.ArgParserException) {
- error = t2;
- t2 = error.message;
- t1 = A._setArrayType([commandName], t5);
- J.addAll$1$ax(t1, error.commands);
- throw A.wrapException(A.ArgParserException$(t2, t1));
- } else
- throw exception;
- }
- B.JSArray_methods.clear$0(t3);
- break;
- }
- if (_this._parseSoloOption$0())
- continue;
- if (_this._parseAbbreviation$1(_this))
- continue;
- if (_this._parseLongOption$0())
- continue;
- t3.push(t2.removeFirst$0());
- }
- t4.options._map.forEach$1(0, new A.Parser_parse_closure(_this));
- B.JSArray_methods.addAll$1(t3, t2);
- t2.clear$0(0);
- return new A.ArgResults(t4, _this._results, _this._commandName, new A.UnmodifiableListView(t3, type$.UnmodifiableListView_String));
- },
- _readNextArgAsValue$1(option) {
- var t1 = this._args;
- if (t1.get$isEmpty(0))
- A.throwExpression(A.ArgParserException$('Missing argument for "' + option.name + '".', null));
- this._setOption$3(this._results, option, t1.get$first(0));
- t1.removeFirst$0();
- },
- _parseSoloOption$0() {
- var opt,
- t1 = this._args;
- if (t1.get$first(0).length !== 2)
- return false;
- if (!B.JSString_methods.startsWith$1(t1.get$first(0), "-"))
- return false;
- opt = t1.get$first(0)[1];
- if (!A._isLetterOrDigit(opt.charCodeAt(0)))
- return false;
- this._handleSoloOption$1(opt);
- return true;
- },
- _handleSoloOption$1(opt) {
- var t1, _this = this,
- option = _this._grammar.findByAbbreviation$1(opt);
- if (option == null) {
- t1 = _this._parser$_parent;
- if (t1 == null)
- A.throwExpression(A.ArgParserException$('Could not find an option or flag "-' + opt + '".', null));
- t1._handleSoloOption$1(opt);
- return true;
- }
- _this._args.removeFirst$0();
- if (option.type === B.OptionType_I6i)
- _this._results.$indexSet(0, option.name, true);
- else
- _this._readNextArgAsValue$1(option);
- return true;
- },
- _parseAbbreviation$1(innermostCommand) {
- var t2, index, t3, t4, lettersAndDigits, rest,
- t1 = this._args;
- if (t1.get$first(0).length < 2)
- return false;
- if (!B.JSString_methods.startsWith$1(t1.get$first(0), "-"))
- return false;
- t2 = t1.$ti._precomputed1;
- index = 1;
- while (true) {
- t3 = t1._head;
- if (t3 === t1._tail)
- A.throwExpression(A.IterableElementError_noElement());
- t3 = t1._table[t3];
- t4 = t3 == null;
- if (index < (t4 ? t2._as(t3) : t3).length) {
- t3 = (t4 ? t2._as(t3) : t3).charCodeAt(index);
- if (!(t3 >= 65 && t3 <= 90))
- if (!(t3 >= 97 && t3 <= 122))
- t3 = t3 >= 48 && t3 <= 57;
- else
- t3 = true;
- else
- t3 = true;
- } else
- t3 = false;
- if (!t3)
- break;
- ++index;
- }
- if (index === 1)
- return false;
- lettersAndDigits = B.JSString_methods.substring$2(t1.get$first(0), 1, index);
- rest = B.JSString_methods.substring$1(t1.get$first(0), index);
- if (B.JSString_methods.contains$1(rest, "\n") || B.JSString_methods.contains$1(rest, "\r"))
- return false;
- this._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand);
- return true;
- },
- _handleAbbreviation$3(lettersAndDigits, rest, innermostCommand) {
- var t1, i, i0, _this = this,
- c = B.JSString_methods.substring$2(lettersAndDigits, 0, 1),
- first = _this._grammar.findByAbbreviation$1(c);
- if (first == null) {
- t1 = _this._parser$_parent;
- if (t1 == null)
- A.throwExpression(A.ArgParserException$(string$.Could_ + c + '".', null));
- t1._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand);
- return true;
- } else if (first.type !== B.OptionType_I6i)
- _this._setOption$3(_this._results, first, B.JSString_methods.substring$1(lettersAndDigits, 1) + rest);
- else {
- t1 = B.JSString_methods.substring$1(lettersAndDigits, 1);
- if (rest !== "")
- A.throwExpression(A.ArgParserException$('Option "-' + c + '" is a flag and cannot handle value "' + t1 + rest + '".', null));
- for (t1 = lettersAndDigits.length, i = 0; i < t1; i = i0) {
- i0 = i + 1;
- innermostCommand._parseShortFlag$1(B.JSString_methods.substring$2(lettersAndDigits, i, i0));
- }
- }
- _this._args.removeFirst$0();
- return true;
- },
- _parseShortFlag$1(c) {
- var t1,
- option = this._grammar.findByAbbreviation$1(c);
- if (option == null) {
- t1 = this._parser$_parent;
- if (t1 == null)
- A.throwExpression(A.ArgParserException$(string$.Could_ + c + '".', null));
- t1._parseShortFlag$1(c);
- return;
- }
- if (option.type !== B.OptionType_I6i)
- A.throwExpression(A.ArgParserException$('Option "-' + c + '" must be a flag to be in a collapsed "-".', null));
- this._results.$indexSet(0, option.name, true);
- },
- _parseLongOption$0() {
- var index, t2, $name, t3, i, t4, t5, value,
- t1 = this._args;
- if (!B.JSString_methods.startsWith$1(t1.get$first(0), "--"))
- return false;
- index = B.JSString_methods.indexOf$1(t1.get$first(0), "=");
- t2 = index === -1;
- $name = t2 ? B.JSString_methods.substring$1(t1.get$first(0), 2) : B.JSString_methods.substring$2(t1.get$first(0), 2, index);
- for (t3 = $name.length, i = 0; i !== t3; ++i) {
- t4 = $name.charCodeAt(i);
- if (!(t4 >= 65 && t4 <= 90))
- if (!(t4 >= 97 && t4 <= 122))
- t5 = t4 >= 48 && t4 <= 57;
- else
- t5 = true;
- else
- t5 = true;
- if (!(t5 || t4 === 45 || t4 === 95))
- return false;
- }
- value = t2 ? null : B.JSString_methods.substring$1(t1.get$first(0), index + 1);
- if (value != null)
- t1 = B.JSString_methods.contains$1(value, "\n") || B.JSString_methods.contains$1(value, "\r");
- else
- t1 = false;
- if (t1)
- return false;
- this._handleLongOption$2($name, value);
- return true;
- },
- _handleLongOption$2($name, value) {
- var _this = this, _null = null,
- _s32_ = 'Could not find an option named "',
- t1 = _this._grammar,
- option = t1.findByNameOrAlias$1($name);
- if (option != null) {
- _this._args.removeFirst$0();
- if (option.type === B.OptionType_I6i) {
- if (value != null)
- A.throwExpression(A.ArgParserException$('Flag option "' + $name + '" should not be given a value.', _null));
- _this._results.$indexSet(0, option.name, true);
- } else if (value != null)
- _this._setOption$3(_this._results, option, value);
- else
- _this._readNextArgAsValue$1(option);
- } else if (B.JSString_methods.startsWith$1($name, "no-")) {
- option = t1.findByNameOrAlias$1(B.JSString_methods.substring$1($name, 3));
- if (option == null) {
- t1 = _this._parser$_parent;
- if (t1 == null)
- A.throwExpression(A.ArgParserException$(_s32_ + $name + '".', _null));
- t1._handleLongOption$2($name, value);
- return true;
- }
- _this._args.removeFirst$0();
- if (option.type !== B.OptionType_I6i)
- A.throwExpression(A.ArgParserException$('Cannot negate non-flag option "' + $name + '".', _null));
- if (!option.negatable)
- A.throwExpression(A.ArgParserException$('Cannot negate option "' + $name + '".', _null));
- _this._results.$indexSet(0, option.name, false);
- } else {
- t1 = _this._parser$_parent;
- if (t1 == null)
- A.throwExpression(A.ArgParserException$(_s32_ + $name + '".', _null));
- t1._handleLongOption$2($name, value);
- return true;
- }
- return true;
- },
- _setOption$3(results, option, value) {
- var list, t1, t2, t3, _i, element;
- if (option.type !== B.OptionType_yPm) {
- this._validateAllowed$2(option, value);
- results.$indexSet(0, option.name, value);
- return;
- }
- list = type$.List_dynamic._as(results.putIfAbsent$2(option.name, new A.Parser__setOption_closure()));
- if (option.splitCommas)
- for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) {
- element = t1[_i];
- this._validateAllowed$2(option, element);
- t3.add$1(list, element);
- }
- else {
- this._validateAllowed$2(option, value);
- J.add$1$ax(list, value);
- }
- },
- _validateAllowed$2(option, value) {
- var t1 = option.allowed;
- if (t1 == null)
- return;
- if (!B.JSArray_methods.contains$1(t1, value))
- A.throwExpression(A.ArgParserException$('"' + value + '" is not an allowed value for option "' + option.name + '".', null));
- }
- };
- A.Parser_parse_closure.prototype = {
- call$2($name, option) {
- var parsedOption = this.$this._results.$index(0, $name),
- callback = option.callback;
- if (callback == null)
- return;
- callback.call$1(option.valueOrDefault$1(parsedOption));
- },
- $signature: 423
- };
- A.Parser__setOption_closure.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_String);
- },
- $signature: 124
- };
- A._Usage.prototype = {
- get$_columnWidths() {
- var result, _this = this,
- value = _this.___Usage__columnWidths_FI;
- if (value === $) {
- result = _this._calculateColumnWidths$0();
- _this.___Usage__columnWidths_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.___Usage__columnWidths_FI = result;
- value = result;
- }
- return value;
- },
- generate$0() {
- var t1, t2, t3, t4, _i, optionOrSeparator, t5, _this = this;
- for (t1 = _this._usage$_optionsAndSeparators, t2 = t1.length, t3 = type$.Option, t4 = _this._usage$_buffer, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- optionOrSeparator = t1[_i];
- if (typeof optionOrSeparator == "string") {
- t5 = t4._contents;
- t4._contents = (t5.length !== 0 ? t4._contents = t5 + "\n\n" : t5) + optionOrSeparator;
- _this._newlinesNeeded = 1;
- continue;
- }
- t3._as(optionOrSeparator);
- if (optionOrSeparator.hide)
- continue;
- _this._writeOption$1(optionOrSeparator);
- }
- t1 = t4._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _writeOption$1(option) {
- var allowedNames, t2, t3, t4, _i, $name, t5, _this = this,
- t1 = option.abbr;
- _this._write$2(0, t1 == null ? "" : "-" + t1 + ", ");
- t1 = _this._longOption$1(option);
- _this._write$2(1, t1);
- t1 = option.help;
- if (t1 != null)
- _this._write$2(2, t1);
- t1 = option.allowedHelp;
- if (t1 != null) {
- allowedNames = J.toList$0$ax(t1.get$keys(t1));
- B.JSArray_methods.sort$0(allowedNames);
- _this._newline$0();
- for (t2 = allowedNames.length, t3 = option.defaultsTo, t4 = type$.List_dynamic._is(t3), _i = 0; _i < allowedNames.length; allowedNames.length === t2 || (0, A.throwConcurrentModificationError)(allowedNames), ++_i) {
- $name = allowedNames[_i];
- t5 = (t4 ? B.JSArray_methods.contains$1(t3, $name) : t3 === $name) ? " (default)" : "";
- _this._write$2(1, " [" + $name + "]" + t5);
- t5 = t1.$index(0, $name);
- t5.toString;
- _this._write$2(2, t5);
- }
- _this._newline$0();
- } else if (option.allowed != null)
- _this._write$2(2, _this._buildAllowedList$1(option));
- else {
- t1 = option.type;
- if (t1 === B.OptionType_I6i) {
- if (option.defaultsTo === true)
- _this._write$2(2, "(defaults to on)");
- } else if (t1 === B.OptionType_yPm) {
- t1 = option.defaultsTo;
- if (t1 != null && type$.Iterable_dynamic._as(t1).length !== 0) {
- type$.List_dynamic._as(t1);
- _this._write$2(2, "(defaults to " + new A.MappedListIterable(t1, new A._Usage__writeOption_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")");
- }
- } else {
- t1 = option.defaultsTo;
- if (t1 != null)
- _this._write$2(2, '(defaults to "' + A.S(t1) + '")');
- }
- }
- },
- _longOption$1(option) {
- var t1 = option.name,
- result = option.negatable ? "--[no-]" + t1 : "--" + t1;
- t1 = option.valueHelp;
- return t1 != null ? result + ("=<" + t1 + ">") : result;
- },
- _calculateColumnWidths$0() {
- var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, t7, t8;
- for (t1 = this._usage$_optionsAndSeparators, t2 = t1.length, t3 = type$.List_dynamic, abbr = 0, title = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- option = t1[_i];
- if (!(option instanceof A.Option))
- continue;
- if (option.hide)
- continue;
- t4 = option.abbr;
- abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length);
- t4 = this._longOption$1(option);
- title = Math.max(title, t4.length);
- t4 = option.allowedHelp;
- if (t4 != null)
- for (t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) {
- t7 = t4.get$current(t4);
- t8 = (t6 ? B.JSArray_methods.contains$1(t5, t7) : t5 === t7) ? " (default)" : "";
- title = Math.max(title, (" [" + t7 + "]" + t8).length);
- }
- }
- return A._setArrayType([abbr, title + 4], type$.JSArray_int);
- },
- _newline$0() {
- ++this._newlinesNeeded;
- this._currentColumn = 0;
- },
- _write$2(column, text) {
- var t1, _i,
- lines = A._setArrayType(text.split("\n"), type$.JSArray_String);
- this.get$_columnWidths();
- while (true) {
- if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$first(lines)) === ""))
- break;
- B.JSArray_methods.removeAt$1(lines, 0);
- }
- while (true) {
- if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$last(lines)) === ""))
- break;
- lines.pop();
- }
- for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, A.throwConcurrentModificationError)(lines), ++_i)
- this._writeLine$2(column, lines[_i]);
- },
- _writeLine$2(column, text) {
- var t1, t2, _this = this;
- for (t1 = _this._usage$_buffer; t2 = _this._newlinesNeeded, t2 > 0;) {
- t1._contents += "\n";
- _this._newlinesNeeded = t2 - 1;
- }
- for (; t2 = _this._currentColumn, t2 !== column;) {
- if (t2 < 2) {
- t2 = B.JSString_methods.$mul(" ", _this.get$_columnWidths()[_this._currentColumn]);
- t1._contents += t2;
- } else
- t1._contents += "\n";
- _this._currentColumn = (_this._currentColumn + 1) % 3;
- }
- _this.get$_columnWidths();
- if (column < 2) {
- t2 = B.JSString_methods.padRight$1(text, _this.get$_columnWidths()[column]);
- t1._contents += t2;
- } else
- t1._contents += text;
- _this._currentColumn = (_this._currentColumn + 1) % 3;
- if (column === 2)
- ++_this._newlinesNeeded;
- },
- _buildAllowedList$1(option) {
- var t2, t3, first, _i, allowed,
- t1 = option.defaultsTo,
- isDefault = type$.List_dynamic._is(t1) ? B.JSArray_methods.get$contains(t1) : new A._Usage__buildAllowedList_closure(option);
- t1 = "" + "[";
- for (t2 = option.allowed, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i, first = false) {
- allowed = t2[_i];
- if (!first)
- t1 += ", ";
- t1 += A.S(allowed);
- if (isDefault.call$1(allowed))
- t1 += " (default)";
- }
- t1 += "]";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- A._Usage__writeOption_closure.prototype = {
- call$1(value) {
- return '"' + A.S(value) + '"';
- },
- $signature: 108
- };
- A._Usage__buildAllowedList_closure.prototype = {
- call$1(value) {
- return value === this.option.defaultsTo;
- },
- $signature: 128
- };
- A.FutureGroup.prototype = {
- add$1(_, task) {
- var t1, index, _this = this;
- if (_this._future_group$_closed)
- throw A.wrapException(A.StateError$("The FutureGroup is closed."));
- t1 = _this._future_group$_values;
- index = t1.length;
- t1.push(null);
- ++_this._future_group$_pending;
- task.then$1$1(0, new A.FutureGroup_add_closure(_this, index), type$.Null).catchError$1(new A.FutureGroup_add_closure0(_this));
- },
- close$0(_) {
- var t1, t2, _this = this;
- _this._future_group$_closed = true;
- if (_this._future_group$_pending !== 0)
- return;
- t1 = _this._future_group$_completer;
- if ((t1.future._state & 30) !== 0)
- return;
- t2 = _this.$ti._eval$1("WhereTypeIterable<1>");
- t1.complete$1(A.List_List$of(new A.WhereTypeIterable(_this._future_group$_values, t2), true, t2._eval$1("Iterable.E")));
- }
- };
- A.FutureGroup_add_closure.prototype = {
- call$1(value) {
- var t3, t4,
- t1 = this.$this,
- t2 = t1._future_group$_completer;
- if ((t2.future._state & 30) !== 0)
- return null;
- t3 = --t1._future_group$_pending;
- t4 = t1._future_group$_values;
- t4[this.index] = value;
- if (t3 !== 0)
- return null;
- if (!t1._future_group$_closed)
- return null;
- t1 = t1.$ti._eval$1("WhereTypeIterable<1>");
- t2.complete$1(A.List_List$of(new A.WhereTypeIterable(t4, t1), true, t1._eval$1("Iterable.E")));
- },
- $signature() {
- return this.$this.$ti._eval$1("Null(1)");
- }
- };
- A.FutureGroup_add_closure0.prototype = {
- call$2(error, stackTrace) {
- var t1 = this.$this._future_group$_completer;
- if ((t1.future._state & 30) !== 0)
- return null;
- t1.completeError$2(error, stackTrace);
- },
- $signature: 52
- };
- A.ErrorResult.prototype = {
- complete$1(completer) {
- completer.completeError$2(this.error, this.stackTrace);
- },
- get$hashCode(_) {
- return (J.get$hashCode$(this.error) ^ A.Primitives_objectHashCode(this.stackTrace) ^ 492929599) >>> 0;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace === other.stackTrace;
- },
- $isResult: 1
- };
- A.ValueResult.prototype = {
- complete$1(completer) {
- completer.complete$1(this.value);
- },
- get$hashCode(_) {
- return (J.get$hashCode$(this.value) ^ 842997089) >>> 0;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ValueResult && J.$eq$(this.value, other.value);
- },
- $isResult: 1
- };
- A.StreamCompleter.prototype = {
- setSourceStream$1(sourceStream) {
- var t1 = this._stream_completer$_stream;
- if (t1._sourceStream != null)
- throw A.wrapException(A.StateError$("Source stream already set"));
- t1._sourceStream = sourceStream;
- if (t1._stream_completer$_controller != null)
- t1._linkStreamToController$0();
- },
- setError$2(error, stackTrace) {
- var t1 = this.$ti._precomputed1;
- this.setSourceStream$1(A.Stream_Stream$fromFuture(A.Future_Future$error(error, stackTrace, t1), t1));
- },
- setError$1(error) {
- return this.setError$2(error, null);
- }
- };
- A._CompleterStream.prototype = {
- listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
- var sourceStream, t1, _this = this, _null = null;
- if (_this._stream_completer$_controller == null) {
- sourceStream = _this._sourceStream;
- if (sourceStream != null && !sourceStream.get$isBroadcast())
- return sourceStream.listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
- if (_this._stream_completer$_controller == null)
- _this._stream_completer$_controller = A.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._precomputed1);
- if (_this._sourceStream != null)
- _this._linkStreamToController$0();
- }
- t1 = _this._stream_completer$_controller;
- t1.toString;
- return new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
- },
- listen$1(_, onData) {
- return this.listen$4$cancelOnError$onDone$onError(0, onData, null, null, null);
- },
- listen$3$onDone$onError(_, onData, onDone, onError) {
- return this.listen$4$cancelOnError$onDone$onError(0, onData, null, onDone, onError);
- },
- _linkStreamToController$0() {
- var t2,
- t1 = this._stream_completer$_controller;
- t1.toString;
- t2 = this._sourceStream;
- t2.toString;
- t1.addStream$2$cancelOnError(t2, false).whenComplete$1(t1.get$close(t1));
- }
- };
- A.StreamGroup.prototype = {
- add$1(_, stream) {
- var t1, _this = this;
- if (_this._closed)
- throw A.wrapException(A.StateError$("Can't add a Stream to a closed StreamGroup."));
- t1 = _this._stream_group$_state;
- if (t1 === B._StreamGroupState_dormant)
- _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure());
- else if (t1 === B._StreamGroupState_canceled)
- return stream.listen$1(0, null).cancel$0();
- else
- _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure0(_this, stream));
- return null;
- },
- remove$1(_, stream) {
- var t1 = this._subscriptions,
- subscription = t1.remove$1(0, stream),
- future = subscription == null ? null : subscription.cancel$0();
- if (t1.__js_helper$_length === 0)
- if (this._closed) {
- t1 = this.__StreamGroup__controller_A;
- t1 === $ && A.throwUnnamedLateFieldNI();
- A.scheduleMicrotask(t1.get$close(t1));
- }
- return future;
- },
- _onListen$0() {
- var stream, t1, t2, t3, _i, entry, exception, _this = this;
- _this._stream_group$_state = B._StreamGroupState_listening;
- for (t1 = _this._subscriptions, t2 = A.List_List$of(t1.get$entries(0), true, _this.$ti._eval$1("MapEntry<Stream<1>,StreamSubscription<1>?>")), t3 = t2.length, _i = 0; _i < t3; ++_i) {
- entry = t2[_i];
- if (entry.value != null)
- continue;
- stream = entry.key;
- try {
- t1.$indexSet(0, stream, _this._listenToStream$1(stream));
- } catch (exception) {
- t1 = _this._onCancel$0();
- if (t1 != null)
- t1.catchError$1(new A.StreamGroup__onListen_closure());
- throw exception;
- }
- }
- },
- _onPause$0() {
- var t1, t2, t3;
- this._stream_group$_state = B._StreamGroupState_paused;
- for (t1 = this._subscriptions.get$values(0), t2 = A._instanceType(t1), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1]), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f, t2._eval$1("MappedIterator<1,2>")), t2 = t2._rest[1]; t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- (t3 == null ? t2._as(t3) : t3).pause$0(0);
- }
- },
- _onResume$0() {
- var t1, t2, t3;
- this._stream_group$_state = B._StreamGroupState_listening;
- for (t1 = this._subscriptions.get$values(0), t2 = A._instanceType(t1), t2 = t2._eval$1("@<1>")._bind$1(t2._rest[1]), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f, t2._eval$1("MappedIterator<1,2>")), t2 = t2._rest[1]; t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- (t3 == null ? t2._as(t3) : t3).resume$0(0);
- }
- },
- _onCancel$0() {
- var t1, t2, futures;
- this._stream_group$_state = B._StreamGroupState_canceled;
- t1 = this._subscriptions;
- t2 = A.IterableNullableExtension_whereNotNull(t1.get$entries(0).map$1$1(0, new A.StreamGroup__onCancel_closure(this), type$.nullable_Future_void), type$.Future_void);
- futures = A.List_List$of(t2, true, t2.$ti._eval$1("Iterable.E"));
- t1.clear$0(0);
- return futures.length === 0 ? null : A.Future_wait(futures, false, type$.void);
- },
- _listenToStream$1(stream) {
- var subscription,
- t1 = this.__StreamGroup__controller_A;
- t1 === $ && A.throwUnnamedLateFieldNI();
- subscription = stream.listen$3$onDone$onError(0, t1.get$add(t1), new A.StreamGroup__listenToStream_closure(this, stream), t1.get$addError());
- if (this._stream_group$_state === B._StreamGroupState_paused)
- subscription.pause$0(0);
- return subscription;
- }
- };
- A.StreamGroup_add_closure.prototype = {
- call$0() {
- return null;
- },
- $signature: 1
- };
- A.StreamGroup_add_closure0.prototype = {
- call$0() {
- return this.$this._listenToStream$1(this.stream);
- },
- $signature() {
- return this.$this.$ti._eval$1("StreamSubscription<1>()");
- }
- };
- A.StreamGroup__onListen_closure.prototype = {
- call$1(_) {
- },
- $signature: 61
- };
- A.StreamGroup__onCancel_closure.prototype = {
- call$1(entry) {
- var t1, exception,
- subscription = entry.value;
- try {
- if (subscription != null) {
- t1 = subscription.cancel$0();
- return t1;
- }
- t1 = J.listen$1$z(entry.key, null).cancel$0();
- return t1;
- } catch (exception) {
- return null;
- }
- },
- $signature() {
- return this.$this.$ti._eval$1("Future<~>?(MapEntry<Stream<1>,StreamSubscription<1>?>)");
- }
- };
- A.StreamGroup__listenToStream_closure.prototype = {
- call$0() {
- return this.$this.remove$1(0, this.stream);
- },
- $signature: 0
- };
- A._StreamGroupState.prototype = {
- toString$0(_) {
- return this.name;
- }
- };
- A.StreamQueue.prototype = {
- _updateRequests$0() {
- var t1, t2, t3, t4, _this = this;
- for (t1 = _this._requestQueue, t2 = _this._eventQueue, t3 = t1.$ti._precomputed1; !t1.get$isEmpty(0);) {
- t4 = t1._head;
- if (t4 === t1._tail)
- A.throwExpression(A.IterableElementError_noElement());
- t4 = t1._table[t4];
- if (t4 == null)
- t4 = t3._as(t4);
- if (t4.update$2(t2, _this._isDone))
- t1.removeFirst$0();
- else
- return;
- }
- if (!_this._isDone)
- _this._stream_queue$_subscription.pause$0(0);
- },
- _ensureListening$0() {
- var t1, _this = this;
- if (_this._isDone)
- return;
- t1 = _this._stream_queue$_subscription;
- if (t1 == null)
- _this._stream_queue$_subscription = _this._stream_queue$_source.listen$3$onDone$onError(0, new A.StreamQueue__ensureListening_closure(_this), new A.StreamQueue__ensureListening_closure0(_this), new A.StreamQueue__ensureListening_closure1(_this));
- else
- t1.resume$0(0);
- },
- _addResult$1(result) {
- ++this._eventsReceived;
- this._eventQueue._queue_list$_add$1(result);
- this._updateRequests$0();
- },
- _addRequest$1(request) {
- var _this = this,
- t1 = _this._requestQueue;
- if (t1._head === t1._tail) {
- if (request.update$2(_this._eventQueue, _this._isDone))
- return;
- _this._ensureListening$0();
- }
- t1._add$1(request);
- }
- };
- A.StreamQueue__ensureListening_closure.prototype = {
- call$1(data) {
- var t1 = this.$this;
- t1._addResult$1(new A.ValueResult(data, t1.$ti._eval$1("ValueResult<1>")));
- },
- $signature() {
- return this.$this.$ti._eval$1("~(1)");
- }
- };
- A.StreamQueue__ensureListening_closure1.prototype = {
- call$2(error, stackTrace) {
- this.$this._addResult$1(new A.ErrorResult(error, stackTrace));
- },
- $signature: 52
- };
- A.StreamQueue__ensureListening_closure0.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._stream_queue$_subscription = null;
- t1._isDone = true;
- t1._updateRequests$0();
- },
- $signature: 0
- };
- A._NextRequest.prototype = {
- update$2(events, isDone) {
- if (!events.get$isEmpty(events)) {
- events.removeFirst$0().complete$1(this._completer);
- return true;
- }
- if (isDone) {
- this._completer.completeError$2(new A.StateError("No elements"), A.StackTrace_current());
- return true;
- }
- return false;
- },
- $is_EventRequest: 1
- };
- A._isStrictMode_closure.prototype = {
- call$0() {
- var exception;
- try {
- "".name = null;
- return false;
- } catch (exception) {
- return true;
- }
- },
- $signature: 22
- };
- A.Repl.prototype = {};
- A.alwaysValid_closure.prototype = {
- call$1(text) {
- return true;
- },
- $signature: 4
- };
- A.ReplAdapter.prototype = {
- runAsync$0() {
- var rl, runController, _this = this, t1 = {},
- t2 = J.get$isTTY$x(self.process.stdin),
- output = (t2 == null ? false : t2) ? self.process.stdout : null;
- t2 = _this.repl.prompt;
- rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: t2});
- _this.rl = rl;
- t1.statement = "";
- t1.prompt = t2;
- runController = A._Cell$();
- runController.__late_helper$_value = A.StreamController_StreamController(_this.get$exit(_this), new A.ReplAdapter_runAsync_closure(t1, _this, rl, runController), null, null, false, type$.String);
- return runController._readLocal$0().get$stream();
- },
- exit$0(_) {
- var t1 = this.rl;
- if (t1 != null)
- J.close$0$x(t1);
- this.rl = null;
- }
- };
- A.ReplAdapter_runAsync_closure.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$handler = 1, $async$currentError, $async$self = this, lineController, lineQueue, line, error, stackTrace, t1, t2, t3, t4, $prompt, prompt0, t5, t6, t7, t8, line0, toZone, statement, exception, $async$exception;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 3;
- lineController = A.StreamController_StreamController(null, null, null, null, false, type$.String);
- t1 = lineController;
- t2 = A.QueueList$(null, type$.Result_String);
- t3 = A.ListQueue$(type$._EventRequest_dynamic);
- lineQueue = new A.StreamQueue(new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")), t2, t3, type$.StreamQueue_String);
- t1 = $async$self.rl;
- t2 = J.getInterceptor$x(t1);
- t2.on$2(t1, "line", A.allowInterop(new A.ReplAdapter_runAsync__closure(lineController)));
- t3 = $async$self._box_0, t4 = $async$self.$this.repl, $prompt = t4.continuation, prompt0 = t4.prompt, t5 = $async$self.runController;
- case 6:
- // for condition
- // trivial condition
- t6 = J.get$isTTY$x(self.process.stdin);
- if (t6 == null ? false : t6)
- J.write$1$x(self.process.stdout, t3.prompt);
- t6 = lineQueue;
- t6.toString;
- t7 = t6.$ti;
- t8 = new A._Future($.Zone__current, t7._eval$1("_Future<1>"));
- t6._addRequest$1(new A._NextRequest(new A._AsyncCompleter(t8, t7._eval$1("_AsyncCompleter<1>")), t7._eval$1("_NextRequest<1>")));
- $async$goto = 8;
- return A._asyncAwait(t8, $async$call$0);
- case 8:
- // returning from await.
- line = $async$result;
- t6 = J.get$isTTY$x(self.process.stdin);
- if (!(t6 == null ? false : t6)) {
- line0 = t3.prompt + A.S(line);
- toZone = $.printToZone;
- if (toZone == null)
- A.printString(line0);
- else
- toZone.call$1(line0);
- }
- statement = B.JSString_methods.$add(t3.statement, line);
- t3.statement = statement;
- if (t4.validator.call$1(statement)) {
- t6 = t5.__late_helper$_value;
- if (t6 === t5)
- A.throwExpression(A.LateError$localNI(""));
- J.add$1$ax(t6, t3.statement);
- t3.statement = "";
- t3.prompt = prompt0;
- t2.setPrompt$1(t1, prompt0);
- } else {
- t3.statement += "\n";
- t3.prompt = $prompt;
- t2.setPrompt$1(t1, $prompt);
- }
- // goto for condition
- $async$goto = 6;
- break;
- case 7:
- // after for
- $async$handler = 1;
- // goto after finally
- $async$goto = 5;
- break;
- case 3:
- // catch
- $async$handler = 2;
- $async$exception = $async$currentError;
- error = A.unwrapException($async$exception);
- stackTrace = A.getTraceFromException($async$exception);
- t1 = $async$self.runController;
- t1._readLocal$0().addError$2(error, stackTrace);
- t2 = $async$self.$this.exit$0(0);
- t2 = A._Future$value(t2, type$.void);
- $async$goto = 9;
- return A._asyncAwait(t2, $async$call$0);
- case 9:
- // returning from await.
- J.close$0$x(t1._readLocal$0());
- // goto after finally
- $async$goto = 5;
- break;
- case 2:
- // uncaught
- // goto rethrow
- $async$goto = 1;
- break;
- case 5:
- // after finally
- // implicit return
- return A._asyncReturn(null, $async$completer);
- case 1:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A.ReplAdapter_runAsync__closure.prototype = {
- call$1(value) {
- return this.lineController.add$1(0, A._asString(value));
- },
- $signature: 71
- };
- A.Stdin.prototype = {};
- A.Stdout.prototype = {};
- A.ReadlineModule.prototype = {};
- A.ReadlineOptions.prototype = {};
- A.ReadlineInterface.prototype = {};
- A.EmptyUnmodifiableSet.prototype = {
- get$iterator(_) {
- return B.C_EmptyIterator;
- },
- get$length(_) {
- return 0;
- },
- contains$1(_, element) {
- return false;
- },
- toSet$0(_) {
- return A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1);
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1
- };
- A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin.prototype = {};
- A.DefaultEquality.prototype = {};
- A.IterableEquality.prototype = {
- equals$2(_, elements1, elements2) {
- var it1, it2, hasNext;
- if (elements1 === elements2)
- return true;
- it1 = J.get$iterator$ax(elements1);
- it2 = J.get$iterator$ax(elements2);
- for (; true;) {
- hasNext = it1.moveNext$0();
- if (hasNext !== it2.moveNext$0())
- return false;
- if (!hasNext)
- return true;
- if (!J.$eq$(it1.get$current(it1), it2.get$current(it2)))
- return false;
- }
- },
- hash$1(elements) {
- var t1, hash, _i;
- for (t1 = elements.length, hash = 0, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i) {
- hash = hash + J.get$hashCode$(elements[_i]) & 2147483647;
- hash = hash + (hash << 10 >>> 0) & 2147483647;
- hash ^= hash >>> 6;
- }
- hash = hash + (hash << 3 >>> 0) & 2147483647;
- hash ^= hash >>> 11;
- return hash + (hash << 15 >>> 0) & 2147483647;
- }
- };
- A.ListEquality.prototype = {
- equals$2(_, list1, list2) {
- var t1, $length, t2, i;
- if (list1 == null ? list2 == null : list1 === list2)
- return true;
- if (list1 == null || list2 == null)
- return false;
- t1 = J.getInterceptor$asx(list1);
- $length = t1.get$length(list1);
- t2 = J.getInterceptor$asx(list2);
- if ($length !== t2.get$length(list2))
- return false;
- for (i = 0; i < $length; ++i)
- if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i)))
- return false;
- return true;
- },
- hash$1(list) {
- var hash, i;
- for (hash = 0, i = 0; i < list.length; ++i) {
- hash = hash + J.get$hashCode$(list[i]) & 2147483647;
- hash = hash + (hash << 10 >>> 0) & 2147483647;
- hash ^= hash >>> 6;
- }
- hash = hash + (hash << 3 >>> 0) & 2147483647;
- hash ^= hash >>> 11;
- return hash + (hash << 15 >>> 0) & 2147483647;
- }
- };
- A._MapEntry.prototype = {
- get$hashCode(_) {
- return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value);
- }
- };
- A.MapEquality.prototype = {
- equals$2(_, map1, map2) {
- var equalElementCounts, t1, key, entry, count;
- if (map1 === map2)
- return true;
- if (map1.get$length(map1) !== map2.get$length(map2))
- return false;
- equalElementCounts = A.HashMap_HashMap(type$._MapEntry, type$.int);
- for (t1 = J.get$iterator$ax(map1.get$keys(map1)); t1.moveNext$0();) {
- key = t1.get$current(t1);
- entry = new A._MapEntry(this, key, map1.$index(0, key));
- count = equalElementCounts.$index(0, entry);
- equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1);
- }
- for (t1 = J.get$iterator$ax(map2.get$keys(map2)); t1.moveNext$0();) {
- key = t1.get$current(t1);
- entry = new A._MapEntry(this, key, map2.$index(0, key));
- count = equalElementCounts.$index(0, entry);
- if (count == null || count === 0)
- return false;
- equalElementCounts.$indexSet(0, entry, count - 1);
- }
- return true;
- },
- hash$1(map) {
- var t1, t2, hash, key, keyHash, t3;
- for (t1 = J.get$iterator$ax(map.get$keys(map)), t2 = this.$ti._rest[1], hash = 0; t1.moveNext$0();) {
- key = t1.get$current(t1);
- keyHash = J.get$hashCode$(key);
- t3 = map.$index(0, key);
- hash = hash + 3 * keyHash + 7 * J.get$hashCode$(t3 == null ? t2._as(t3) : t3) & 2147483647;
- }
- hash = hash + (hash << 3 >>> 0) & 2147483647;
- hash ^= hash >>> 11;
- return hash + (hash << 15 >>> 0) & 2147483647;
- }
- };
- A.QueueList.prototype = {
- add$1(_, element) {
- this._queue_list$_add$1(element);
- },
- addAll$1(_, iterable) {
- var addCount, $length, t1, endSpace, t2, preSpace, _this = this;
- if (type$.List_dynamic._is(iterable)) {
- addCount = J.get$length$asx(iterable);
- $length = _this.get$length(0);
- t1 = $length + addCount;
- if (t1 >= J.get$length$asx(_this._queue_list$_table)) {
- _this._preGrow$1(t1);
- J.setRange$4$ax(_this._queue_list$_table, $length, t1, iterable, 0);
- _this.set$_queue_list$_tail(_this.get$_queue_list$_tail() + addCount);
- } else {
- endSpace = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_tail();
- t1 = _this._queue_list$_table;
- t2 = J.getInterceptor$ax(t1);
- if (addCount < endSpace) {
- t2.setRange$4(t1, _this.get$_queue_list$_tail(), _this.get$_queue_list$_tail() + addCount, iterable, 0);
- _this.set$_queue_list$_tail(_this.get$_queue_list$_tail() + addCount);
- } else {
- preSpace = addCount - endSpace;
- t2.setRange$4(t1, _this.get$_queue_list$_tail(), _this.get$_queue_list$_tail() + endSpace, iterable, 0);
- J.setRange$4$ax(_this._queue_list$_table, 0, preSpace, iterable, endSpace);
- _this.set$_queue_list$_tail(preSpace);
- }
- }
- } else
- for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();)
- _this._queue_list$_add$1(t1.get$current(t1));
- },
- cast$1$0(_, $T) {
- return new A._CastQueueList(this, J.cast$1$0$ax(this._queue_list$_table, $T), -1, -1, A._instanceType(this)._eval$1("@<QueueList.E>")._bind$1($T)._eval$1("_CastQueueList<1,2>"));
- },
- toString$0(_) {
- return A.Iterable_iterableToFullString(this, "{", "}");
- },
- addFirst$1(element) {
- var _this = this;
- _this.set$_queue_list$_head((_this.get$_queue_list$_head() - 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
- J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_head(), element);
- if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
- _this._queue_list$_grow$0();
- },
- removeFirst$0() {
- var result, _this = this;
- if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
- throw A.wrapException(A.StateError$("No element"));
- result = J.$index$asx(_this._queue_list$_table, _this.get$_queue_list$_head());
- if (result == null)
- result = A._instanceType(_this)._eval$1("QueueList.E")._as(result);
- J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_head(), null);
- _this.set$_queue_list$_head((_this.get$_queue_list$_head() + 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
- return result;
- },
- removeLast$0(_) {
- var result, _this = this;
- if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
- throw A.wrapException(A.StateError$("No element"));
- _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() - 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
- result = J.$index$asx(_this._queue_list$_table, _this.get$_queue_list$_tail());
- if (result == null)
- result = A._instanceType(_this)._eval$1("QueueList.E")._as(result);
- J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_tail(), null);
- return result;
- },
- get$length(_) {
- return (this.get$_queue_list$_tail() - this.get$_queue_list$_head() & J.get$length$asx(this._queue_list$_table) - 1) >>> 0;
- },
- set$length(_, value) {
- var delta, newTail, t1, t2, _this = this;
- if (value < 0)
- throw A.wrapException(A.RangeError$("Length " + value + " may not be negative."));
- if (value > _this.get$length(0) && !A._instanceType(_this)._eval$1("QueueList.E")._is(null))
- throw A.wrapException(A.UnsupportedError$("The length can only be increased when the element type is nullable, but the current element type is `" + A.createRuntimeType(A._instanceType(_this)._eval$1("QueueList.E")).toString$0(0) + "`."));
- delta = value - _this.get$length(0);
- if (delta >= 0) {
- if (J.get$length$asx(_this._queue_list$_table) <= value)
- _this._preGrow$1(value);
- _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() + delta & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
- return;
- }
- newTail = _this.get$_queue_list$_tail() + delta;
- t1 = _this._queue_list$_table;
- if (newTail >= 0)
- J.fillRange$3$ax(t1, newTail, _this.get$_queue_list$_tail(), null);
- else {
- newTail += J.get$length$asx(t1);
- J.fillRange$3$ax(_this._queue_list$_table, 0, _this.get$_queue_list$_tail(), null);
- t1 = _this._queue_list$_table;
- t2 = J.getInterceptor$asx(t1);
- t2.fillRange$3(t1, newTail, t2.get$length(t1), null);
- }
- _this.set$_queue_list$_tail(newTail);
- },
- $index(_, index) {
- var t1, _this = this;
- if (index < 0 || index >= _this.get$length(0))
- throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(0) + ")."));
- t1 = J.$index$asx(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
- return t1 == null ? A._instanceType(_this)._eval$1("QueueList.E")._as(t1) : t1;
- },
- $indexSet(_, index, value) {
- var _this = this;
- if (index < 0 || index >= _this.get$length(0))
- throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(0) + ")."));
- J.$indexSet$ax(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0, value);
- },
- _queue_list$_add$1(element) {
- var _this = this;
- J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_tail(), element);
- _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() + 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
- if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
- _this._queue_list$_grow$0();
- },
- _queue_list$_grow$0() {
- var _this = this,
- newTable = A.List_List$filled(J.get$length$asx(_this._queue_list$_table) * 2, null, false, A._instanceType(_this)._eval$1("QueueList.E?")),
- split = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head();
- B.JSArray_methods.setRange$4(newTable, 0, split, _this._queue_list$_table, _this.get$_queue_list$_head());
- B.JSArray_methods.setRange$4(newTable, split, split + _this.get$_queue_list$_head(), _this._queue_list$_table, 0);
- _this.set$_queue_list$_head(0);
- _this.set$_queue_list$_tail(J.get$length$asx(_this._queue_list$_table));
- _this._queue_list$_table = newTable;
- },
- _writeToList$1(target) {
- var $length, firstPartSize, _this = this;
- if (_this.get$_queue_list$_head() <= _this.get$_queue_list$_tail()) {
- $length = _this.get$_queue_list$_tail() - _this.get$_queue_list$_head();
- B.JSArray_methods.setRange$4(target, 0, $length, _this._queue_list$_table, _this.get$_queue_list$_head());
- return $length;
- } else {
- firstPartSize = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head();
- B.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._queue_list$_table, _this.get$_queue_list$_head());
- B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_queue_list$_tail(), _this._queue_list$_table, 0);
- return _this.get$_queue_list$_tail() + firstPartSize;
- }
- },
- _preGrow$1(newElementCount) {
- var _this = this,
- newTable = A.List_List$filled(A.QueueList__nextPowerOf2(newElementCount + B.JSInt_methods._shrOtherPositive$1(newElementCount, 1)), null, false, A._instanceType(_this)._eval$1("QueueList.E?"));
- _this.set$_queue_list$_tail(_this._writeToList$1(newTable));
- _this._queue_list$_table = newTable;
- _this.set$_queue_list$_head(0);
- },
- $isEfficientLengthIterable: 1,
- $isQueue: 1,
- $isIterable: 1,
- $isList: 1,
- get$_queue_list$_head() {
- return this._queue_list$_head;
- },
- get$_queue_list$_tail() {
- return this._queue_list$_tail;
- },
- set$_queue_list$_head(val) {
- return this._queue_list$_head = val;
- },
- set$_queue_list$_tail(val) {
- return this._queue_list$_tail = val;
- }
- };
- A._CastQueueList.prototype = {
- get$_queue_list$_head() {
- return this._queue_list$_delegate.get$_queue_list$_head();
- },
- set$_queue_list$_head(value) {
- this._queue_list$_delegate.set$_queue_list$_head(value);
- },
- get$_queue_list$_tail() {
- return this._queue_list$_delegate.get$_queue_list$_tail();
- },
- set$_queue_list$_tail(value) {
- this._queue_list$_delegate.set$_queue_list$_tail(value);
- }
- };
- A._QueueList_Object_ListMixin.prototype = {};
- A.UnionSet.prototype = {
- get$length(_) {
- var t1 = this.get$_union_set$_iterable().get$length(0);
- return t1;
- },
- get$iterator(_) {
- var t1 = this.get$_union_set$_iterable();
- return t1.get$iterator(t1);
- },
- get$_union_set$_iterable() {
- var t1 = this._sets,
- t2 = this.$ti._precomputed1,
- t3 = A._instanceType(t1)._eval$1("@<1>")._bind$1(t2)._eval$1("ExpandIterable<1,2>");
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t2);
- return new A.WhereIterable(new A.ExpandIterable(t1, new A.UnionSet__iterable_closure(this), t3), t2.get$add(t2), t3._eval$1("WhereIterable<Iterable.E>"));
- },
- contains$1(_, element) {
- return this._sets.any$1(0, new A.UnionSet_contains_closure(this, element));
- },
- toSet$0(_) {
- var t2, t3, t4,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1);
- for (t2 = this._sets, t2 = A._LinkedHashSetIterator$(t2, t2._modifications, A._instanceType(t2)._precomputed1), t3 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t4 = t2._collection$_current;
- t1.addAll$1(0, t4 == null ? t3._as(t4) : t4);
- }
- return t1;
- }
- };
- A.UnionSet__iterable_closure.prototype = {
- call$1(set) {
- return set;
- },
- $signature() {
- return this.$this.$ti._eval$1("Set<1>(Set<1>)");
- }
- };
- A.UnionSet_contains_closure.prototype = {
- call$1(set) {
- return set.contains$1(0, this.element);
- },
- $signature() {
- return this.$this.$ti._eval$1("bool(Set<1>)");
- }
- };
- A._UnionSet_SetBase_UnmodifiableSetMixin.prototype = {};
- A.UnmodifiableSetView0.prototype = {};
- A.UnmodifiableSetMixin.prototype = {
- add$1(_, value) {
- return A.UnmodifiableSetMixin__throw();
- },
- addAll$1(_, elements) {
- return A.UnmodifiableSetMixin__throw();
- },
- remove$1(_, value) {
- return A.UnmodifiableSetMixin__throw();
- }
- };
- A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {};
- A._DelegatingIterableBase.prototype = {
- any$1(_, test) {
- return J.any$1$ax(this.get$_base(), test);
- },
- contains$1(_, element) {
- return J.contains$1$asx(this.get$_base(), element);
- },
- elementAt$1(_, index) {
- return J.elementAt$1$ax(this.get$_base(), index);
- },
- every$1(_, test) {
- return J.every$1$ax(this.get$_base(), test);
- },
- get$first(_) {
- return J.get$first$ax(this.get$_base());
- },
- get$isEmpty(_) {
- return J.get$isEmpty$asx(this.get$_base());
- },
- get$isNotEmpty(_) {
- return J.get$isNotEmpty$asx(this.get$_base());
- },
- get$iterator(_) {
- return J.get$iterator$ax(this.get$_base());
- },
- get$last(_) {
- return J.get$last$ax(this.get$_base());
- },
- get$length(_) {
- return J.get$length$asx(this.get$_base());
- },
- map$1$1(_, f, $T) {
- return J.map$1$1$ax(this.get$_base(), f, $T);
- },
- get$single(_) {
- return J.get$single$ax(this.get$_base());
- },
- skip$1(_, n) {
- return J.skip$1$ax(this.get$_base(), n);
- },
- take$1(_, n) {
- return J.take$1$ax(this.get$_base(), n);
- },
- toList$1$growable(_, growable) {
- return J.toList$1$growable$ax(this.get$_base(), true);
- },
- toList$0(_) {
- return this.toList$1$growable(0, true);
- },
- toSet$0(_) {
- return J.toSet$0$ax(this.get$_base());
- },
- where$1(_, test) {
- return J.where$1$ax(this.get$_base(), test);
- },
- toString$0(_) {
- return J.toString$0$(this.get$_base());
- },
- $isIterable: 1
- };
- A.DelegatingSet.prototype = {
- add$1(_, value) {
- return this._base.add$1(0, value);
- },
- addAll$1(_, elements) {
- this._base.addAll$1(0, elements);
- },
- toSet$0(_) {
- return new A.DelegatingSet(this._base.toSet$0(0), A._instanceType(this)._eval$1("DelegatingSet<1>"));
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1,
- get$_base() {
- return this._base;
- }
- };
- A.MapKeySet.prototype = {
- get$_base() {
- var t1 = this._baseMap;
- return t1.get$keys(t1);
- },
- contains$1(_, element) {
- return this._baseMap.containsKey$1(element);
- },
- get$isEmpty(_) {
- var t1 = this._baseMap;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty(_) {
- var t1 = this._baseMap;
- return t1.get$isNotEmpty(t1);
- },
- get$length(_) {
- var t1 = this._baseMap;
- return t1.get$length(t1);
- },
- toString$0(_) {
- return A.Iterable_iterableToFullString(this, "{", "}");
- },
- difference$1(other) {
- return J.where$1$ax(this.get$_base(), new A.MapKeySet_difference_closure(this, other)).toSet$0(0);
- },
- $isEfficientLengthIterable: 1,
- $isSet: 1
- };
- A.MapKeySet_difference_closure.prototype = {
- call$1(element) {
- return !this.other._source.contains$1(0, element);
- },
- $signature() {
- return this.$this.$ti._eval$1("bool(1)");
- }
- };
- A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {};
- A.BufferModule.prototype = {};
- A.BufferConstants.prototype = {};
- A.Buffer.prototype = {};
- A.ConsoleModule.prototype = {};
- A.Console.prototype = {};
- A.EventEmitter.prototype = {};
- A.FS.prototype = {};
- A.FSConstants.prototype = {};
- A.FSWatcher.prototype = {};
- A.ReadStream.prototype = {};
- A.ReadStreamOptions.prototype = {};
- A.WriteStream.prototype = {};
- A.WriteStreamOptions.prototype = {};
- A.FileOptions.prototype = {};
- A.StatOptions.prototype = {};
- A.MkdirOptions.prototype = {};
- A.RmdirOptions.prototype = {};
- A.WatchOptions.prototype = {};
- A.WatchFileOptions.prototype = {};
- A.Stats.prototype = {};
- A.Promise.prototype = {};
- A.Date.prototype = {};
- A.JsError.prototype = {};
- A.Atomics.prototype = {};
- A.Modules.prototype = {};
- A.Module.prototype = {};
- A.Net.prototype = {};
- A.Socket.prototype = {};
- A.NetAddress.prototype = {};
- A.NetServer.prototype = {};
- A.NodeJsError.prototype = {};
- A.JsAssertionError.prototype = {};
- A.JsRangeError.prototype = {};
- A.JsReferenceError.prototype = {};
- A.JsSyntaxError.prototype = {};
- A.JsTypeError.prototype = {};
- A.JsSystemError.prototype = {};
- A.Process.prototype = {};
- A.CPUUsage.prototype = {};
- A.Release.prototype = {};
- A.StreamModule.prototype = {};
- A.Readable.prototype = {};
- A.Writable.prototype = {};
- A.Duplex.prototype = {};
- A.Transform.prototype = {};
- A.WritableOptions.prototype = {};
- A.ReadableOptions.prototype = {};
- A.Immediate.prototype = {};
- A.Timeout.prototype = {};
- A.TTY.prototype = {};
- A.TTYReadStream.prototype = {};
- A.TTYWriteStream.prototype = {};
- A.Util.prototype = {};
- A.promiseToFuture_closure.prototype = {
- call$1(value) {
- this.completer.complete$1(value);
- },
- $signature: 61
- };
- A.promiseToFuture_closure0.prototype = {
- call$1(error) {
- this.completer.completeError$1(error);
- },
- $signature: 61
- };
- A.futureToPromise_closure.prototype = {
- call$2(resolve, reject) {
- this.future.then$1$2$onError(0, new A.futureToPromise__closure(resolve, this.T), reject, type$.dynamic);
- },
- $signature: 629
- };
- A.futureToPromise__closure.prototype = {
- call$1(result) {
- return this.resolve.call$1(result);
- },
- $signature() {
- return this.T._eval$1("@(0)");
- }
- };
- A.Context.prototype = {
- absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) {
- var t1;
- A._validateArgList("absolute", A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15], type$.JSArray_nullable_String));
- if (part2 == null) {
- t1 = this.style;
- t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1);
- } else
- t1 = false;
- if (t1)
- return part1;
- t1 = this._context$_current;
- return this.join$16(0, t1 == null ? A.current() : t1, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15);
- },
- absolute$1(part1) {
- var _null = null;
- return this.absolute$15(part1, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- },
- dirname$1(path) {
- var t1, t2,
- parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
- parsed.removeTrailingSeparators$0();
- t1 = parsed.parts;
- t2 = t1.length;
- if (t2 === 0) {
- t1 = parsed.root;
- return t1 == null ? "." : t1;
- }
- if (t2 === 1) {
- t1 = parsed.root;
- return t1 == null ? "." : t1;
- }
- B.JSArray_methods.removeLast$0(t1);
- parsed.separators.pop();
- parsed.removeTrailingSeparators$0();
- return parsed.toString$0(0);
- },
- join$16(_, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16) {
- var parts = A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16], type$.JSArray_nullable_String);
- A._validateArgList("join", parts);
- return this.joinAll$1(new A.WhereTypeIterable(parts, type$.WhereTypeIterable_String));
- },
- join$2(_, part1, part2) {
- var _null = null;
- return this.join$16(0, part1, part2, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- },
- joinAll$1(parts) {
- var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path;
- for (t1 = J.where$1$ax(parts, new A.Context_joinAll_closure()), t2 = J.get$iterator$ax(t1.__internal$_iterable), t1 = new A.WhereIterator(t2, t1._f), t3 = this.style, needsSeparator = false, isAbsoluteAndNotRootRelative = false, t4 = ""; t1.moveNext$0();) {
- t5 = t2.get$current(t2);
- if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) {
- parsed = A.ParsedPath_ParsedPath$parse(t5, t3);
- path = t4.charCodeAt(0) == 0 ? t4 : t4;
- t4 = B.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true));
- parsed.root = t4;
- if (t3.needsSeparator$1(t4))
- parsed.separators[0] = t3.get$separator(t3);
- t4 = "" + parsed.toString$0(0);
- } else if (t3.rootLength$1(t5) > 0) {
- isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5);
- t4 = "" + t5;
- } else {
- if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0])))
- if (needsSeparator)
- t4 += t3.get$separator(t3);
- t4 += t5;
- }
- needsSeparator = t3.needsSeparator$1(t5);
- }
- return t4.charCodeAt(0) == 0 ? t4 : t4;
- },
- split$1(_, path) {
- var parsed = A.ParsedPath_ParsedPath$parse(path, this.style),
- t1 = parsed.parts,
- t2 = A._arrayInstanceType(t1)._eval$1("WhereIterable<1>");
- t2 = A.List_List$of(new A.WhereIterable(t1, new A.Context_split_closure(), t2), true, t2._eval$1("Iterable.E"));
- parsed.parts = t2;
- t1 = parsed.root;
- if (t1 != null)
- B.JSArray_methods.insert$2(t2, 0, t1);
- return parsed.parts;
- },
- canonicalize$1(_, path) {
- var t1, parsed;
- path = this.absolute$1(path);
- t1 = this.style;
- if (t1 !== $.$get$Style_windows() && !this._needsNormalization$1(path))
- return path;
- parsed = A.ParsedPath_ParsedPath$parse(path, t1);
- parsed.normalize$1$canonicalize(true);
- return parsed.toString$0(0);
- },
- normalize$1(path) {
- var parsed;
- if (!this._needsNormalization$1(path))
- return path;
- parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
- parsed.normalize$0();
- return parsed.toString$0(0);
- },
- _needsNormalization$1(path) {
- var i, start, previous, t2, t3, previousPrevious, codeUnit, t4,
- t1 = this.style,
- root = t1.rootLength$1(path);
- if (root !== 0) {
- if (t1 === $.$get$Style_windows())
- for (i = 0; i < root; ++i)
- if (path.charCodeAt(i) === 47)
- return true;
- start = root;
- previous = 47;
- } else {
- start = 0;
- previous = null;
- }
- for (t2 = new A.CodeUnits(path)._string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) {
- codeUnit = t2.charCodeAt(i);
- if (t1.isSeparator$1(codeUnit)) {
- if (t1 === $.$get$Style_windows() && codeUnit === 47)
- return true;
- if (previous != null && t1.isSeparator$1(previous))
- return true;
- if (previous === 46)
- t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious);
- else
- t4 = false;
- if (t4)
- return true;
- }
- }
- if (previous == null)
- return true;
- if (t1.isSeparator$1(previous))
- return true;
- if (previous === 46)
- t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46;
- else
- t1 = false;
- if (t1)
- return true;
- return false;
- },
- relative$2$from(path, from) {
- var fromParsed, pathParsed, t2, t3, _this = this,
- _s26_ = 'Unable to find a path to "',
- t1 = from == null;
- if (t1 && _this.style.rootLength$1(path) <= 0)
- return _this.normalize$1(path);
- if (t1) {
- t1 = _this._context$_current;
- from = t1 == null ? A.current() : t1;
- } else
- from = _this.absolute$1(from);
- t1 = _this.style;
- if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
- return _this.normalize$1(path);
- if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path))
- path = _this.absolute$1(path);
- if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
- throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".'));
- fromParsed = A.ParsedPath_ParsedPath$parse(from, t1);
- fromParsed.normalize$0();
- pathParsed = A.ParsedPath_ParsedPath$parse(path, t1);
- pathParsed.normalize$0();
- t2 = fromParsed.parts;
- if (t2.length !== 0 && J.$eq$(t2[0], "."))
- return pathParsed.toString$0(0);
- t2 = fromParsed.root;
- t3 = pathParsed.root;
- if (t2 != t3)
- t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3);
- else
- t2 = false;
- if (t2)
- return pathParsed.toString$0(0);
- while (true) {
- t2 = fromParsed.parts;
- if (t2.length !== 0) {
- t3 = pathParsed.parts;
- t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]);
- } else
- t2 = false;
- if (!t2)
- break;
- B.JSArray_methods.removeAt$1(fromParsed.parts, 0);
- B.JSArray_methods.removeAt$1(fromParsed.separators, 1);
- B.JSArray_methods.removeAt$1(pathParsed.parts, 0);
- B.JSArray_methods.removeAt$1(pathParsed.separators, 1);
- }
- t2 = fromParsed.parts;
- if (t2.length !== 0 && J.$eq$(t2[0], ".."))
- throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".'));
- t2 = type$.String;
- B.JSArray_methods.insertAll$2(pathParsed.parts, 0, A.List_List$filled(fromParsed.parts.length, "..", false, t2));
- t3 = pathParsed.separators;
- t3[0] = "";
- B.JSArray_methods.insertAll$2(t3, 1, A.List_List$filled(fromParsed.parts.length, t1.get$separator(t1), false, t2));
- t1 = pathParsed.parts;
- t2 = t1.length;
- if (t2 === 0)
- return ".";
- if (t2 > 1 && J.$eq$(B.JSArray_methods.get$last(t1), ".")) {
- B.JSArray_methods.removeLast$0(pathParsed.parts);
- t1 = pathParsed.separators;
- t1.pop();
- t1.pop();
- t1.push("");
- }
- pathParsed.root = "";
- pathParsed.removeTrailingSeparators$0();
- return pathParsed.toString$0(0);
- },
- relative$1(path) {
- return this.relative$2$from(path, null);
- },
- _isWithinOrEquals$2($parent, child) {
- var relative, t1, parentIsAbsolute, childIsAbsolute, childIsRootRelative, parentIsRootRelative, result, exception, _this = this;
- $parent = $parent;
- child = child;
- t1 = _this.style;
- parentIsAbsolute = t1.rootLength$1($parent) > 0;
- childIsAbsolute = t1.rootLength$1(child) > 0;
- if (parentIsAbsolute && !childIsAbsolute) {
- child = _this.absolute$1(child);
- if (t1.isRootRelative$1($parent))
- $parent = _this.absolute$1($parent);
- } else if (childIsAbsolute && !parentIsAbsolute) {
- $parent = _this.absolute$1($parent);
- if (t1.isRootRelative$1(child))
- child = _this.absolute$1(child);
- } else if (childIsAbsolute && parentIsAbsolute) {
- childIsRootRelative = t1.isRootRelative$1(child);
- parentIsRootRelative = t1.isRootRelative$1($parent);
- if (childIsRootRelative && !parentIsRootRelative)
- child = _this.absolute$1(child);
- else if (parentIsRootRelative && !childIsRootRelative)
- $parent = _this.absolute$1($parent);
- }
- result = _this._isWithinOrEqualsFast$2($parent, child);
- if (result !== B._PathRelation_inconclusive)
- return result;
- relative = null;
- try {
- relative = _this.relative$2$from(child, $parent);
- } catch (exception) {
- if (A.unwrapException(exception) instanceof A.PathException)
- return B._PathRelation_different;
- else
- throw exception;
- }
- if (t1.rootLength$1(relative) > 0)
- return B._PathRelation_different;
- if (J.$eq$(relative, "."))
- return B._PathRelation_equal;
- if (J.$eq$(relative, ".."))
- return B._PathRelation_different;
- return J.get$length$asx(relative) >= 3 && J.startsWith$1$s(relative, "..") && t1.isSeparator$1(J.codeUnitAt$1$s(relative, 2)) ? B._PathRelation_different : B._PathRelation_within;
- },
- _isWithinOrEqualsFast$2($parent, child) {
- var t1, parentRootLength, childRootLength, i, t2, t3, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, direction, _this = this;
- if ($parent === ".")
- $parent = "";
- t1 = _this.style;
- parentRootLength = t1.rootLength$1($parent);
- childRootLength = t1.rootLength$1(child);
- if (parentRootLength !== childRootLength)
- return B._PathRelation_different;
- for (i = 0; i < parentRootLength; ++i)
- if (!t1.codeUnitsEqual$2($parent.charCodeAt(i), child.charCodeAt(i)))
- return B._PathRelation_different;
- t2 = child.length;
- t3 = $parent.length;
- childIndex = childRootLength;
- parentIndex = parentRootLength;
- lastCodeUnit = 47;
- lastParentSeparator = null;
- while (true) {
- if (!(parentIndex < t3 && childIndex < t2))
- break;
- c$0: {
- parentCodeUnit = $parent.charCodeAt(parentIndex);
- childCodeUnit = child.charCodeAt(childIndex);
- if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) {
- if (t1.isSeparator$1(parentCodeUnit))
- lastParentSeparator = parentIndex;
- ++parentIndex;
- ++childIndex;
- lastCodeUnit = parentCodeUnit;
- break c$0;
- }
- if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
- parentIndex0 = parentIndex + 1;
- lastParentSeparator = parentIndex;
- parentIndex = parentIndex0;
- break c$0;
- } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
- ++childIndex;
- break c$0;
- }
- if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
- ++parentIndex;
- if (parentIndex === t3)
- break;
- parentCodeUnit = $parent.charCodeAt(parentIndex);
- if (t1.isSeparator$1(parentCodeUnit)) {
- parentIndex0 = parentIndex + 1;
- lastParentSeparator = parentIndex;
- parentIndex = parentIndex0;
- break c$0;
- }
- if (parentCodeUnit === 46) {
- ++parentIndex;
- if (parentIndex === t3 || t1.isSeparator$1($parent.charCodeAt(parentIndex)))
- return B._PathRelation_inconclusive;
- }
- }
- if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
- ++childIndex;
- if (childIndex === t2)
- break;
- childCodeUnit = child.charCodeAt(childIndex);
- if (t1.isSeparator$1(childCodeUnit)) {
- ++childIndex;
- break c$0;
- }
- if (childCodeUnit === 46) {
- ++childIndex;
- if (childIndex === t2 || t1.isSeparator$1(child.charCodeAt(childIndex)))
- return B._PathRelation_inconclusive;
- }
- }
- if (_this._pathDirection$2(child, childIndex) !== B._PathDirection_yLX)
- return B._PathRelation_inconclusive;
- if (_this._pathDirection$2($parent, parentIndex) !== B._PathDirection_yLX)
- return B._PathRelation_inconclusive;
- return B._PathRelation_different;
- }
- }
- if (childIndex === t2) {
- if (parentIndex === t3 || t1.isSeparator$1($parent.charCodeAt(parentIndex)))
- lastParentSeparator = parentIndex;
- else if (lastParentSeparator == null)
- lastParentSeparator = Math.max(0, parentRootLength - 1);
- direction = _this._pathDirection$2($parent, lastParentSeparator);
- if (direction === B._PathDirection_8OV)
- return B._PathRelation_equal;
- return direction === B._PathDirection_3KU ? B._PathRelation_inconclusive : B._PathRelation_different;
- }
- direction = _this._pathDirection$2(child, childIndex);
- if (direction === B._PathDirection_8OV)
- return B._PathRelation_equal;
- if (direction === B._PathDirection_3KU)
- return B._PathRelation_inconclusive;
- return t1.isSeparator$1(child.charCodeAt(childIndex)) || t1.isSeparator$1(lastCodeUnit) ? B._PathRelation_within : B._PathRelation_different;
- },
- _pathDirection$2(path, index) {
- var t1, t2, i, depth, reachedRoot, i0, t3;
- for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) {
- while (true) {
- if (!(i < t1 && t2.isSeparator$1(path.charCodeAt(i))))
- break;
- ++i;
- }
- if (i === t1)
- break;
- i0 = i;
- while (true) {
- if (!(i0 < t1 && !t2.isSeparator$1(path.charCodeAt(i0))))
- break;
- ++i0;
- }
- t3 = i0 - i;
- if (!(t3 === 1 && path.charCodeAt(i) === 46))
- if (t3 === 2 && path.charCodeAt(i) === 46 && path.charCodeAt(i + 1) === 46) {
- --depth;
- if (depth < 0)
- break;
- if (depth === 0)
- reachedRoot = true;
- } else
- ++depth;
- if (i0 === t1)
- break;
- i = i0 + 1;
- }
- if (depth < 0)
- return B._PathDirection_3KU;
- if (depth === 0)
- return B._PathDirection_8OV;
- if (reachedRoot)
- return B._PathDirection_e7w;
- return B._PathDirection_yLX;
- },
- hash$1(path) {
- var result, parsed, t1, _this = this;
- path = _this.absolute$1(path);
- result = _this._hashFast$1(path);
- if (result != null)
- return result;
- parsed = A.ParsedPath_ParsedPath$parse(path, _this.style);
- parsed.normalize$0();
- t1 = _this._hashFast$1(parsed.toString$0(0));
- t1.toString;
- return t1;
- },
- _hashFast$1(path) {
- var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next;
- for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) {
- codeUnit = t2.canonicalizeCodeUnit$1(path.charCodeAt(i));
- if (t2.isSeparator$1(codeUnit)) {
- wasSeparator = true;
- continue;
- }
- if (codeUnit === 46 && wasSeparator) {
- t3 = i + 1;
- if (t3 === t1)
- break;
- next = path.charCodeAt(t3);
- if (t2.isSeparator$1(next))
- continue;
- if (!beginning)
- if (next === 46) {
- t3 = i + 2;
- t3 = t3 === t1 || t2.isSeparator$1(path.charCodeAt(t3));
- } else
- t3 = false;
- else
- t3 = false;
- if (t3)
- return null;
- }
- hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0;
- beginning = false;
- wasSeparator = false;
- }
- return hash;
- },
- withoutExtension$1(path) {
- var i,
- parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
- for (i = parsed.parts.length - 1; i >= 0; --i)
- if (J.get$length$asx(parsed.parts[i]) !== 0) {
- parsed.parts[i] = parsed._splitExtension$0()[0];
- break;
- }
- return parsed.toString$0(0);
- },
- toUri$1(path) {
- var t2,
- t1 = this.style;
- if (t1.rootLength$1(path) <= 0)
- return t1.relativePathToUri$1(path);
- else {
- t2 = this._context$_current;
- return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? A.current() : t2, path));
- }
- },
- prettyUri$1(uri) {
- var path, rel, _this = this,
- typedUri = A._parseUri(uri);
- if (typedUri.get$scheme() === "file" && _this.style === $.$get$Style_url())
- return typedUri.toString$0(0);
- else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style !== $.$get$Style_url())
- return typedUri.toString$0(0);
- path = _this.normalize$1(_this.style.pathFromUri$1(A._parseUri(typedUri)));
- rel = _this.relative$1(path);
- return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel;
- }
- };
- A.Context_joinAll_closure.prototype = {
- call$1(part) {
- return part !== "";
- },
- $signature: 4
- };
- A.Context_split_closure.prototype = {
- call$1(part) {
- return part.length !== 0;
- },
- $signature: 4
- };
- A._validateArgList_closure.prototype = {
- call$1(arg) {
- return arg == null ? "null" : '"' + arg + '"';
- },
- $signature: 609
- };
- A._PathDirection.prototype = {
- toString$0(_) {
- return this.name;
- }
- };
- A._PathRelation.prototype = {
- toString$0(_) {
- return this.name;
- }
- };
- A.InternalStyle.prototype = {
- getRoot$1(path) {
- var $length = this.rootLength$1(path);
- if ($length > 0)
- return B.JSString_methods.substring$2(path, 0, $length);
- return this.isRootRelative$1(path) ? path[0] : null;
- },
- relativePathToUri$1(path) {
- var segments, _null = null,
- t1 = path.length;
- if (t1 === 0)
- return A._Uri__Uri(_null, _null, _null, _null);
- segments = A.Context_Context(this).split$1(0, path);
- if (this.isSeparator$1(path.charCodeAt(t1 - 1)))
- B.JSArray_methods.add$1(segments, "");
- return A._Uri__Uri(_null, _null, segments, _null);
- },
- codeUnitsEqual$2(codeUnit1, codeUnit2) {
- return codeUnit1 === codeUnit2;
- },
- pathsEqual$2(path1, path2) {
- return path1 === path2;
- },
- canonicalizeCodeUnit$1(codeUnit) {
- return codeUnit;
- },
- canonicalizePart$1(part) {
- return part;
- }
- };
- A.ParsedPath.prototype = {
- get$basename() {
- var _this = this,
- t1 = type$.String,
- copy = new A.ParsedPath(_this.style, _this.root, _this.isRootRelative, A.List_List$from(_this.parts, true, t1), A.List_List$from(_this.separators, true, t1));
- copy.removeTrailingSeparators$0();
- t1 = copy.parts;
- if (t1.length === 0) {
- t1 = _this.root;
- return t1 == null ? "" : t1;
- }
- return B.JSArray_methods.get$last(t1);
- },
- get$hasTrailingSeparator() {
- var t1 = this.parts;
- if (t1.length !== 0)
- t1 = J.$eq$(B.JSArray_methods.get$last(t1), "") || !J.$eq$(B.JSArray_methods.get$last(this.separators), "");
- else
- t1 = false;
- return t1;
- },
- removeTrailingSeparators$0() {
- var t1, t2, _this = this;
- while (true) {
- t1 = _this.parts;
- if (!(t1.length !== 0 && J.$eq$(B.JSArray_methods.get$last(t1), "")))
- break;
- B.JSArray_methods.removeLast$0(_this.parts);
- _this.separators.pop();
- }
- t1 = _this.separators;
- t2 = t1.length;
- if (t2 !== 0)
- t1[t2 - 1] = "";
- },
- normalize$1$canonicalize(canonicalize) {
- var t1, t2, t3, leadingDoubles, _i, part, t4, _this = this,
- newParts = A._setArrayType([], type$.JSArray_String);
- for (t1 = _this.parts, t2 = t1.length, t3 = _this.style, leadingDoubles = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- part = t1[_i];
- t4 = J.getInterceptor$(part);
- if (!(t4.$eq(part, ".") || t4.$eq(part, "")))
- if (t4.$eq(part, ".."))
- if (newParts.length !== 0)
- newParts.pop();
- else
- ++leadingDoubles;
- else
- newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part);
- }
- if (_this.root == null)
- B.JSArray_methods.insertAll$2(newParts, 0, A.List_List$filled(leadingDoubles, "..", false, type$.String));
- if (newParts.length === 0 && _this.root == null)
- newParts.push(".");
- _this.parts = newParts;
- _this.separators = A.List_List$filled(newParts.length + 1, t3.get$separator(t3), true, type$.String);
- t1 = _this.root;
- if (t1 == null || newParts.length === 0 || !t3.needsSeparator$1(t1))
- _this.separators[0] = "";
- t1 = _this.root;
- if (t1 != null && t3 === $.$get$Style_windows()) {
- if (canonicalize)
- t1 = _this.root = t1.toLowerCase();
- t1.toString;
- _this.root = A.stringReplaceAllUnchecked(t1, "/", "\\");
- }
- _this.removeTrailingSeparators$0();
- },
- normalize$0() {
- return this.normalize$1$canonicalize(false);
- },
- toString$0(_) {
- var i, _this = this,
- t1 = _this.root;
- t1 = t1 != null ? "" + t1 : "";
- for (i = 0; i < _this.parts.length; ++i)
- t1 = t1 + A.S(_this.separators[i]) + A.S(_this.parts[i]);
- t1 += A.S(B.JSArray_methods.get$last(_this.separators));
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _kthLastIndexOf$3(path, character, k) {
- var index, count, leftMostIndexedCharacter;
- for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index)
- if (path[index] === character) {
- ++count;
- if (count === k)
- return index;
- leftMostIndexedCharacter = index;
- }
- return leftMostIndexedCharacter;
- },
- _splitExtension$1(level) {
- var t1, file, lastDot;
- if (level <= 0)
- throw A.wrapException(A.RangeError$value(level, "level", "level's value must be greater than 0"));
- t1 = this.parts;
- t1 = new A.CastList(t1, A._arrayInstanceType(t1)._eval$1("CastList<1,String?>"));
- file = t1.lastWhere$2$orElse(t1, new A.ParsedPath__splitExtension_closure(), new A.ParsedPath__splitExtension_closure0());
- if (file == null)
- return A._setArrayType(["", ""], type$.JSArray_String);
- if (file === "..")
- return A._setArrayType(["..", ""], type$.JSArray_String);
- lastDot = this._kthLastIndexOf$3(file, ".", level);
- if (lastDot <= 0)
- return A._setArrayType([file, ""], type$.JSArray_String);
- return A._setArrayType([B.JSString_methods.substring$2(file, 0, lastDot), B.JSString_methods.substring$1(file, lastDot)], type$.JSArray_String);
- },
- _splitExtension$0() {
- return this._splitExtension$1(1);
- }
- };
- A.ParsedPath__splitExtension_closure.prototype = {
- call$1(p) {
- return p !== "";
- },
- $signature: 139
- };
- A.ParsedPath__splitExtension_closure0.prototype = {
- call$0() {
- return null;
- },
- $signature: 1
- };
- A.PathException.prototype = {
- toString$0(_) {
- return "PathException: " + this.message;
- },
- $isException: 1,
- get$message(receiver) {
- return this.message;
- }
- };
- A.PathMap.prototype = {};
- A.PathMap__create_closure.prototype = {
- call$2(path1, path2) {
- if (path1 == null)
- return path2 == null;
- if (path2 == null)
- return false;
- return this._box_0.context._isWithinOrEquals$2(path1, path2) === B._PathRelation_equal;
- },
- $signature: 553
- };
- A.PathMap__create_closure0.prototype = {
- call$1(path) {
- return path == null ? 0 : this._box_0.context.hash$1(path);
- },
- $signature: 530
- };
- A.PathMap__create_closure1.prototype = {
- call$1(path) {
- return typeof path == "string" || path == null;
- },
- $signature: 128
- };
- A.Style.prototype = {
- toString$0(_) {
- return this.get$name(this);
- }
- };
- A.PosixStyle.prototype = {
- containsSeparator$1(path) {
- return B.JSString_methods.contains$1(path, "/");
- },
- isSeparator$1(codeUnit) {
- return codeUnit === 47;
- },
- needsSeparator$1(path) {
- var t1 = path.length;
- return t1 !== 0 && path.charCodeAt(t1 - 1) !== 47;
- },
- rootLength$2$withDrive(path, withDrive) {
- if (path.length !== 0 && path.charCodeAt(0) === 47)
- return 1;
- return 0;
- },
- rootLength$1(path) {
- return this.rootLength$2$withDrive(path, false);
- },
- isRootRelative$1(path) {
- return false;
- },
- pathFromUri$1(uri) {
- var t1;
- if (uri.get$scheme() === "" || uri.get$scheme() === "file") {
- t1 = uri.get$path(uri);
- return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false);
- }
- throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null));
- },
- absolutePathToUri$1(path) {
- var parsed = A.ParsedPath_ParsedPath$parse(path, this),
- t1 = parsed.parts;
- if (t1.length === 0)
- B.JSArray_methods.addAll$1(t1, A._setArrayType(["", ""], type$.JSArray_String));
- else if (parsed.get$hasTrailingSeparator())
- B.JSArray_methods.add$1(parsed.parts, "");
- return A._Uri__Uri(null, null, parsed.parts, "file");
- },
- get$name() {
- return "posix";
- },
- get$separator() {
- return "/";
- }
- };
- A.UrlStyle.prototype = {
- containsSeparator$1(path) {
- return B.JSString_methods.contains$1(path, "/");
- },
- isSeparator$1(codeUnit) {
- return codeUnit === 47;
- },
- needsSeparator$1(path) {
- var t1 = path.length;
- if (t1 === 0)
- return false;
- if (path.charCodeAt(t1 - 1) !== 47)
- return true;
- return B.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1;
- },
- rootLength$2$withDrive(path, withDrive) {
- var i, codeUnit, index,
- t1 = path.length;
- if (t1 === 0)
- return 0;
- if (path.charCodeAt(0) === 47)
- return 1;
- for (i = 0; i < t1; ++i) {
- codeUnit = path.charCodeAt(i);
- if (codeUnit === 47)
- return 0;
- if (codeUnit === 58) {
- if (i === 0)
- return 0;
- index = B.JSString_methods.indexOf$2(path, "/", B.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i);
- if (index <= 0)
- return t1;
- if (!withDrive || t1 < index + 3)
- return index;
- if (!B.JSString_methods.startsWith$1(path, "file://"))
- return index;
- t1 = A.driveLetterEnd(path, index + 1);
- return t1 == null ? index : t1;
- }
- }
- return 0;
- },
- rootLength$1(path) {
- return this.rootLength$2$withDrive(path, false);
- },
- isRootRelative$1(path) {
- return path.length !== 0 && path.charCodeAt(0) === 47;
- },
- pathFromUri$1(uri) {
- return uri.toString$0(0);
- },
- relativePathToUri$1(path) {
- return A.Uri_parse(path);
- },
- absolutePathToUri$1(path) {
- return A.Uri_parse(path);
- },
- get$name() {
- return "url";
- },
- get$separator() {
- return "/";
- }
- };
- A.WindowsStyle.prototype = {
- containsSeparator$1(path) {
- return B.JSString_methods.contains$1(path, "/");
- },
- isSeparator$1(codeUnit) {
- return codeUnit === 47 || codeUnit === 92;
- },
- needsSeparator$1(path) {
- var t1 = path.length;
- if (t1 === 0)
- return false;
- t1 = path.charCodeAt(t1 - 1);
- return !(t1 === 47 || t1 === 92);
- },
- rootLength$2$withDrive(path, withDrive) {
- var index,
- t1 = path.length;
- if (t1 === 0)
- return 0;
- if (path.charCodeAt(0) === 47)
- return 1;
- if (path.charCodeAt(0) === 92) {
- if (t1 < 2 || path.charCodeAt(1) !== 92)
- return 1;
- index = B.JSString_methods.indexOf$2(path, "\\", 2);
- if (index > 0) {
- index = B.JSString_methods.indexOf$2(path, "\\", index + 1);
- if (index > 0)
- return index;
- }
- return t1;
- }
- if (t1 < 3)
- return 0;
- if (!A.isAlphabetic(path.charCodeAt(0)))
- return 0;
- if (path.charCodeAt(1) !== 58)
- return 0;
- t1 = path.charCodeAt(2);
- if (!(t1 === 47 || t1 === 92))
- return 0;
- return 3;
- },
- rootLength$1(path) {
- return this.rootLength$2$withDrive(path, false);
- },
- isRootRelative$1(path) {
- return this.rootLength$1(path) === 1;
- },
- pathFromUri$1(uri) {
- var path, t1;
- if (uri.get$scheme() !== "" && uri.get$scheme() !== "file")
- throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null));
- path = uri.get$path(uri);
- if (uri.get$host() === "") {
- if (path.length >= 3 && B.JSString_methods.startsWith$1(path, "/") && A.driveLetterEnd(path, 1) != null)
- path = B.JSString_methods.replaceFirst$2(path, "/", "");
- } else
- path = "\\\\" + uri.get$host() + path;
- t1 = A.stringReplaceAllUnchecked(path, "/", "\\");
- return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false);
- },
- absolutePathToUri$1(path) {
- var rootParts, t2,
- parsed = A.ParsedPath_ParsedPath$parse(path, this),
- t1 = parsed.root;
- t1.toString;
- if (B.JSString_methods.startsWith$1(t1, "\\\\")) {
- rootParts = new A.WhereIterable(A._setArrayType(t1.split("\\"), type$.JSArray_String), new A.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String);
- B.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(0));
- if (parsed.get$hasTrailingSeparator())
- B.JSArray_methods.add$1(parsed.parts, "");
- return A._Uri__Uri(rootParts.get$first(0), null, parsed.parts, "file");
- } else {
- if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
- B.JSArray_methods.add$1(parsed.parts, "");
- t1 = parsed.parts;
- t2 = parsed.root;
- t2.toString;
- t2 = A.stringReplaceAllUnchecked(t2, "/", "");
- B.JSArray_methods.insert$2(t1, 0, A.stringReplaceAllUnchecked(t2, "\\", ""));
- return A._Uri__Uri(null, null, parsed.parts, "file");
- }
- },
- codeUnitsEqual$2(codeUnit1, codeUnit2) {
- var upperCase1;
- if (codeUnit1 === codeUnit2)
- return true;
- if (codeUnit1 === 47)
- return codeUnit2 === 92;
- if (codeUnit1 === 92)
- return codeUnit2 === 47;
- if ((codeUnit1 ^ codeUnit2) !== 32)
- return false;
- upperCase1 = codeUnit1 | 32;
- return upperCase1 >= 97 && upperCase1 <= 122;
- },
- pathsEqual$2(path1, path2) {
- var t1, i;
- if (path1 === path2)
- return true;
- t1 = path1.length;
- if (t1 !== path2.length)
- return false;
- for (i = 0; i < t1; ++i)
- if (!this.codeUnitsEqual$2(path1.charCodeAt(i), path2.charCodeAt(i)))
- return false;
- return true;
- },
- canonicalizeCodeUnit$1(codeUnit) {
- if (codeUnit === 47)
- return 92;
- if (codeUnit < 65)
- return codeUnit;
- if (codeUnit > 90)
- return codeUnit;
- return codeUnit | 32;
- },
- canonicalizePart$1(part) {
- return part.toLowerCase();
- },
- get$name() {
- return "windows";
- },
- get$separator() {
- return "\\";
- }
- };
- A.WindowsStyle_absolutePathToUri_closure.prototype = {
- call$1(part) {
- return part !== "";
- },
- $signature: 4
- };
- A.Version.prototype = {
- get$min() {
- return this;
- },
- get$max() {
- return this;
- },
- get$includeMin() {
- return true;
- },
- get$includeMax() {
- return true;
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A.Version && _this.major === other.major && _this.minor === other.minor && _this.patch === other.patch && B.C_IterableEquality.equals$2(0, _this.preRelease, other.preRelease) && B.C_IterableEquality.equals$2(0, _this.build, other.build);
- },
- get$hashCode(_) {
- var _this = this;
- return (_this.major ^ _this.minor ^ _this.patch ^ B.C_IterableEquality.hash$1(_this.preRelease) ^ B.C_IterableEquality.hash$1(_this.build)) >>> 0;
- },
- compareTo$1(_, other) {
- var t1, t2, t3, comparison, _this = this;
- if (other instanceof A.Version) {
- t1 = _this.major;
- t2 = other.major;
- if (t1 !== t2)
- return B.JSInt_methods.compareTo$1(t1, t2);
- t1 = _this.minor;
- t2 = other.minor;
- if (t1 !== t2)
- return B.JSInt_methods.compareTo$1(t1, t2);
- t1 = _this.patch;
- t2 = other.patch;
- if (t1 !== t2)
- return B.JSInt_methods.compareTo$1(t1, t2);
- t1 = _this.preRelease;
- t2 = t1.length === 0;
- if (t2 && other.preRelease.length !== 0)
- return 1;
- t3 = other.preRelease;
- if (t3.length === 0 && !t2)
- return -1;
- comparison = _this._compareLists$2(t1, t3);
- if (comparison !== 0)
- return comparison;
- t1 = _this.build;
- t2 = t1.length === 0;
- if (t2 && other.build.length !== 0)
- return -1;
- t3 = other.build;
- if (t3.length === 0 && !t2)
- return 1;
- return _this._compareLists$2(t1, t3);
- } else
- return -other.compareTo$1(0, _this);
- },
- toString$0(_) {
- return this._version$_text;
- },
- _compareLists$2(a, b) {
- var i, t1, t2, aPart, bPart;
- for (i = 0; t1 = a.length, t2 = b.length, i < Math.max(t1, t2); ++i) {
- aPart = i < t1 ? a[i] : null;
- bPart = i < t2 ? b[i] : null;
- if (J.$eq$(aPart, bPart))
- continue;
- if (aPart == null)
- return -1;
- if (bPart == null)
- return 1;
- if (typeof aPart == "number")
- if (typeof bPart == "number")
- return B.JSNumber_methods.compareTo$1(aPart, bPart);
- else
- return -1;
- else if (typeof bPart == "number")
- return 1;
- else {
- A._asString(aPart);
- A._asString(bPart);
- if (aPart === bPart)
- t1 = 0;
- else
- t1 = aPart < bPart ? -1 : 1;
- return t1;
- }
- }
- return 0;
- },
- $isComparable: 1,
- $isVersionRange: 1
- };
- A.Version__splitParts_closure.prototype = {
- call$1(part) {
- var t1 = A.Primitives_parseInt(part, null);
- return t1 == null ? part : t1;
- },
- $signature: 529
- };
- A.VersionRange.prototype = {
- $eq(_, other) {
- var t1;
- if (other == null)
- return false;
- if (!type$.VersionRange._is(other))
- return false;
- if (this.min == other.get$min())
- if (J.$eq$(this.max, other.get$max())) {
- t1 = !other.get$includeMin();
- if (t1)
- other.get$includeMax();
- } else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- get$hashCode(_) {
- var t1 = B.JSNull_methods.get$hashCode(this.min),
- t2 = J.get$hashCode$(this.max);
- return (t1 ^ t2 * 3 ^ 1090795 ^ 3633126) >>> 0;
- },
- allows$1(other) {
- var t1 = this.max;
- if (t1 != null)
- if (other.compareTo$1(0, t1) > 0)
- return false;
- return true;
- },
- compareTo$1(_, other) {
- if (other.get$min() == null)
- return this._compareMax$1(other);
- return -1;
- },
- _compareMax$1(other) {
- var t2, result,
- t1 = this.max;
- if (t1 == null) {
- if (other.get$max() == null)
- return 0;
- return 1;
- } else if (other.get$max() == null)
- return -1;
- t2 = other.get$max();
- t2.toString;
- result = t1.compareTo$1(0, t2);
- if (result !== 0)
- return result;
- other.get$includeMax();
- return 0;
- },
- toString$0(_) {
- var t2,
- max = this.max,
- t1 = max == null;
- if (!t1)
- t2 = "" + "<=" + max.toString$0(0);
- else
- t2 = "";
- t1 = t1 ? t2 + "any" : t2;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isComparable: 1,
- get$min() {
- return this.min;
- },
- get$max() {
- return this.max;
- },
- get$includeMin() {
- return this.includeMin;
- },
- get$includeMax() {
- return this.includeMax;
- }
- };
- A.CssMediaQuery.prototype = {
- merge$1(other) {
- var t1, ourModifier, t2, t3, ourType, t4, theirModifier, t5, t6, theirType, t7, t8, negativeConditions, conditions, type, modifier, fewerConditions, fewerConditions0, moreConditions, _this = this, _null = null, _s3_ = "all";
- if (!_this.conjunction || !other.conjunction)
- return B._SingletonCssMediaQueryMergeResult_1;
- t1 = _this.modifier;
- ourModifier = t1 == null ? _null : t1.toLowerCase();
- t2 = _this.type;
- t3 = t2 == null;
- ourType = t3 ? _null : t2.toLowerCase();
- t4 = other.modifier;
- theirModifier = t4 == null ? _null : t4.toLowerCase();
- t5 = other.type;
- t6 = t5 == null;
- theirType = t6 ? _null : t5.toLowerCase();
- t7 = ourType == null;
- if (t7 && theirType == null) {
- t1 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t1, other.conditions);
- return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$condition(t1, true));
- }
- t8 = ourModifier === "not";
- if (t8 !== (theirModifier === "not")) {
- if (ourType == theirType) {
- negativeConditions = t8 ? _this.conditions : other.conditions;
- if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions)))
- return B._SingletonCssMediaQueryMergeResult_0;
- else
- return B._SingletonCssMediaQueryMergeResult_1;
- } else if (t3 || A.equalsIgnoreCase(t2, _s3_) || t6 || A.equalsIgnoreCase(t5, _s3_))
- return B._SingletonCssMediaQueryMergeResult_1;
- if (t8) {
- conditions = other.conditions;
- type = theirType;
- modifier = theirModifier;
- } else {
- conditions = _this.conditions;
- type = ourType;
- modifier = ourModifier;
- }
- } else if (t8) {
- if (ourType != theirType)
- return B._SingletonCssMediaQueryMergeResult_1;
- fewerConditions = _this.conditions;
- fewerConditions0 = other.conditions;
- t3 = fewerConditions.length > fewerConditions0.length;
- moreConditions = t3 ? fewerConditions : fewerConditions0;
- if (t3)
- fewerConditions = fewerConditions0;
- if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions)))
- return B._SingletonCssMediaQueryMergeResult_1;
- conditions = moreConditions;
- type = ourType;
- modifier = ourModifier;
- } else if (t3 || A.equalsIgnoreCase(t2, _s3_)) {
- type = (t6 || A.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType;
- t3 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t3, other.conditions);
- conditions = t3;
- modifier = theirModifier;
- } else {
- if (t6 || A.equalsIgnoreCase(t5, _s3_)) {
- t3 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t3, other.conditions);
- conditions = t3;
- modifier = ourModifier;
- } else {
- if (ourType != theirType)
- return B._SingletonCssMediaQueryMergeResult_0;
- else {
- modifier = ourModifier == null ? theirModifier : ourModifier;
- t3 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t3, other.conditions);
- }
- conditions = t3;
- }
- type = ourType;
- }
- t2 = type == ourType ? t2 : t5;
- return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$type(t2, conditions, modifier == ourModifier ? t1 : t4));
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions);
- },
- get$hashCode(_) {
- return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions);
- },
- toString$0(_) {
- var t2, _this = this,
- t1 = _this.modifier;
- t1 = t1 != null ? "" + (t1 + " ") : "";
- t2 = _this.type;
- if (t2 != null) {
- t1 += t2;
- if (_this.conditions.length !== 0)
- t1 += " and ";
- }
- t2 = _this.conjunction ? " and " : " or ";
- t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- A._SingletonCssMediaQueryMergeResult.prototype = {
- _enumToString$0() {
- return "_SingletonCssMediaQueryMergeResult." + this._name;
- }
- };
- A.MediaQuerySuccessfulMergeResult.prototype = {
- toString$0(_) {
- return this.query.toString$0(0);
- }
- };
- A.ModifiableCssAtRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssAtRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- var t1, t2;
- if (other instanceof A.ModifiableCssAtRule) {
- t1 = this.name;
- t2 = other.name;
- t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value) && J.$eq$(this.value, other.value) && this.isChildless === other.isChildless;
- } else
- t1 = false;
- return t1;
- },
- copyWithoutChildren$0() {
- var _this = this;
- return A.ModifiableCssAtRule$(_this.name, _this.span, _this.isChildless, _this.value);
- },
- addChild$1(child) {
- this.super$ModifiableCssParentNode$addChild(child);
- },
- get$isChildless() {
- return this.isChildless;
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssComment.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssComment$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $isCssComment: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssDeclaration.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssDeclaration$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssImport.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssImport$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssKeyframeBlock.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssKeyframeBlock$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- return other instanceof A.ModifiableCssKeyframeBlock && B.C_ListEquality.equals$2(0, this.selector.value, other.selector.value);
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssKeyframeBlock$(this.selector, this.span);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssMediaRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssMediaRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- return other instanceof A.ModifiableCssMediaRule && B.C_ListEquality.equals$2(0, this.queries, other.queries);
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssMediaRule$(this.queries, this.span);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssNode.prototype = {
- get$hasFollowingSibling() {
- var t2,
- t1 = this._parent;
- if (t1 == null)
- t1 = null;
- else {
- t1 = t1.children;
- t2 = this._indexInParent;
- t2.toString;
- t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListBase.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure());
- }
- return t1 === true;
- },
- get$isGroupEnd() {
- return this.isGroupEnd;
- }
- };
- A.ModifiableCssNode_hasFollowingSibling_closure.prototype = {
- call$1(sibling) {
- return !sibling.accept$1(B._IsInvisibleVisitor_true_false);
- },
- $signature: 525
- };
- A.ModifiableCssParentNode.prototype = {
- get$isChildless() {
- return false;
- },
- addChild$1(child) {
- var t1;
- child._parent = this;
- t1 = this._children;
- child._indexInParent = t1.length;
- t1.push(child);
- },
- clearChildren$0() {
- var t1, t2, _i, child;
- for (t1 = this._children, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- child = t1[_i];
- child._indexInParent = child._parent = null;
- }
- B.JSArray_methods.clear$0(t1);
- },
- $isCssParentNode: 1,
- get$children(receiver) {
- return this.children;
- }
- };
- A.ModifiableCssStyleRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssStyleRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- var t1;
- if (other instanceof A.ModifiableCssStyleRule)
- t1 = B.C_ListEquality.equals$2(0, other._style_rule$_selector._box$_inner.value.components, this._style_rule$_selector._box$_inner.value.components);
- else
- t1 = false;
- return t1;
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssStyleRule$(this._style_rule$_selector, this.span, false, this.originalSelector);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssStylesheet.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- return other instanceof A.ModifiableCssStylesheet;
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssStylesheet$(this.span);
- },
- $isCssStylesheet: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssSupportsRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssSupportsRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- var t1, t2;
- if (other instanceof A.ModifiableCssSupportsRule) {
- t1 = this.condition;
- t2 = other.condition;
- t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value);
- } else
- t1 = false;
- return t1;
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssSupportsRule$(this.condition, this.span);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.CssNode.prototype = {
- toString$0(_) {
- return A.serialize(this, true, null, true, null, false, null, true)._0;
- },
- $isAstNode: 1
- };
- A.CssParentNode.prototype = {};
- A._IsInvisibleVisitor.prototype = {
- visitCssAtRule$1(rule) {
- return false;
- },
- visitCssComment$1(comment) {
- return this.includeComments && comment.text.charCodeAt(2) !== 33;
- },
- visitCssStyleRule$1(rule) {
- var t1 = rule._style_rule$_selector._box$_inner;
- return (this.includeBogus ? t1.value.accept$1(B._IsInvisibleVisitor_true) : t1.value.accept$1(B._IsInvisibleVisitor_false)) || this.super$EveryCssVisitor$visitCssStyleRule(rule);
- }
- };
- A.__IsInvisibleVisitor_Object_EveryCssVisitor.prototype = {};
- A.CssStylesheet.prototype = {
- get$isGroupEnd() {
- return false;
- },
- get$isChildless() {
- return false;
- },
- accept$1$1(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$children(receiver) {
- return this.children;
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.CssValue.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return this.$ti._is(other) && J.$eq$(other.value, this.value);
- },
- get$hashCode(_) {
- return J.get$hashCode$(this.value);
- },
- toString$0(_) {
- return J.toString$0$(this.value);
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._FakeAstNode.prototype = {
- get$span(_) {
- return this._callback.call$0();
- },
- $isAstNode: 1
- };
- A.Argument.prototype = {
- toString$0(_) {
- var t1 = this.defaultValue,
- t2 = this.name;
- return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ArgumentDeclaration.prototype = {
- get$spanWithName() {
- var t3, t4,
- t1 = this.span,
- t2 = t1.file,
- text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
- i = A.FileLocation$_(t2, t1._file$_start).offset - 1;
- while (true) {
- if (i > 0) {
- t3 = text.charCodeAt(i);
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = text.charCodeAt(i);
- if (!(t3 === 95 || A.CharacterExtension_get_isAlphabetic(t3) || t3 >= 128))
- t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
- else
- t3 = true;
- if (!t3)
- return t1;
- --i;
- while (true) {
- if (i >= 0) {
- t3 = text.charCodeAt(i);
- if (t3 !== 95) {
- if (!(t3 >= 97 && t3 <= 122))
- t4 = t3 >= 65 && t3 <= 90;
- else
- t4 = true;
- t4 = t4 || t3 >= 128;
- } else
- t4 = true;
- if (!t4)
- t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
- else
- t3 = true;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = i + 1;
- t4 = text.charCodeAt(t3);
- if (!(t4 === 95 || A.CharacterExtension_get_isAlphabetic(t4) || t4 >= 128))
- return t1;
- return A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset)));
- },
- verify$2(positional, names) {
- var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
- _s10_ = "invocation",
- _s8_ = "argument";
- for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- throw A.wrapException(A.SassScriptException$("Argument " + _this._originalArgumentName$1(t4) + string$.x20was_p, null));
- } else {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- ++namedUsed;
- else if (argument.defaultValue == null)
- throw A.wrapException(A.MultiSpanSassScriptException$("Missing argument " + _this._originalArgumentName$1(t4) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
- }
- }
- if (_this.restArgument != null)
- return;
- if (positional > t2) {
- t1 = names.get$isEmpty(0) ? "" : "positional ";
- throw A.wrapException(A.MultiSpanSassScriptException$("Only " + t2 + " " + t1 + A.pluralize(_s8_, t2, null) + " allowed, but " + positional + " " + A.pluralize("was", positional, "were") + " passed.", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
- }
- if (namedUsed < t3.get$length(t3)) {
- t2 = type$.String;
- unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2);
- unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>")));
- throw A.wrapException(A.MultiSpanSassScriptException$("No " + A.pluralize(_s8_, unknownNames._collection$_length, null) + " named " + A.toSentence(unknownNames.map$1$1(0, new A.ArgumentDeclaration_verify_closure0(), type$.Object), "or") + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
- }
- },
- _originalArgumentName$1($name) {
- var t1, text, t2, _i, argument, t3, t4, end, _null = null;
- if ($name === this.restArgument) {
- t1 = this.span;
- text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null);
- return B.JSString_methods.substring$2(B.JSString_methods.substring$1(text, B.JSString_methods.lastIndexOf$1(text, "$")), 0, B.JSString_methods.indexOf$1(text, "."));
- }
- for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- argument = t1[_i];
- if (argument.name === $name) {
- t1 = argument.defaultValue;
- t2 = argument.span;
- t3 = t2.file;
- t4 = t2._file$_start;
- t2 = t2._end;
- if (t1 == null) {
- t1 = t3._decodedChars;
- t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
- } else {
- t1 = t3._decodedChars;
- text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
- t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":"));
- end = A._lastNonWhitespace(t1, false);
- t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1);
- }
- return t1;
- }
- }
- throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null));
- },
- matches$2(positional, names) {
- var t1, t2, t3, namedUsed, i, argument;
- for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- if (t3.containsKey$1(argument.name))
- return false;
- } else if (t3.containsKey$1(argument.name))
- ++namedUsed;
- else if (argument.defaultValue == null)
- return false;
- }
- if (this.restArgument != null)
- return true;
- if (positional > t2)
- return false;
- if (namedUsed < t3.get$length(t3))
- return false;
- return true;
- },
- toString$0(_) {
- var t2, t3, _i,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push("$" + A.S(t2[_i]));
- t2 = this.restArgument;
- if (t2 != null)
- t1.push("$" + t2 + "...");
- return B.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ArgumentDeclaration_verify_closure.prototype = {
- call$1(argument) {
- return argument.name;
- },
- $signature: 518
- };
- A.ArgumentDeclaration_verify_closure0.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A.ArgumentInvocation.prototype = {
- get$isEmpty(_) {
- var t1;
- if (this.positional.length === 0) {
- t1 = this.named;
- t1 = t1.get$isEmpty(t1) && this.rest == null;
- } else
- t1 = false;
- return t1;
- },
- toString$0(_) {
- var t2, t3, _i, _1_0, _2_0, _this = this,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(_this._parenthesizeArgument$1(t2[_i]));
- for (t2 = A.MapExtensions_get_pairs(_this.named, type$.String, type$.Expression), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push("$" + t3._0 + ": " + _this._parenthesizeArgument$1(t3._1));
- }
- _1_0 = _this.rest;
- if (_1_0 != null)
- t1.push(_this._parenthesizeArgument$1(_1_0) + "...");
- _2_0 = _this.keywordRest;
- if (_2_0 != null)
- t1.push(_this._parenthesizeArgument$1(_2_0) + "...");
- return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
- },
- _parenthesizeArgument$1(argument) {
- var t1;
- $label0$0: {
- if (argument instanceof A.ListExpression && B.ListSeparator_ECn === argument.separator && !argument.hasBrackets && argument.contents.length >= 2) {
- t1 = "(" + argument.toString$0(0) + ")";
- break $label0$0;
- }
- t1 = argument.toString$0(0);
- break $label0$0;
- }
- return t1;
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.AtRootQuery.prototype = {
- excludes$1(node) {
- var t1, _this = this;
- if (_this._all)
- return !_this.include;
- $label0$0: {
- if (node instanceof A.ModifiableCssStyleRule) {
- t1 = _this._at_root_query$_rule !== _this.include;
- break $label0$0;
- }
- if (node instanceof A.ModifiableCssMediaRule) {
- t1 = _this.excludesName$1("media");
- break $label0$0;
- }
- if (node instanceof A.ModifiableCssSupportsRule) {
- t1 = _this.excludesName$1("supports");
- break $label0$0;
- }
- if (node instanceof A.ModifiableCssAtRule) {
- t1 = _this.excludesName$1(node.name.value.toLowerCase());
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- excludesName$1($name) {
- var t1 = this._all || this.names.contains$1(0, $name);
- return t1 !== this.include;
- }
- };
- A.ConfiguredVariable.prototype = {
- toString$0(_) {
- var t1 = this.expression.toString$0(0),
- t2 = this.isGuarded ? " !default" : "";
- return "$" + this.name + ": " + t1 + t2;
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._IsCalculationSafeVisitor.prototype = {
- visitBinaryOperationExpression$1(node) {
- var t1;
- if (B.Set_mqKz.contains$1(0, node.operator))
- t1 = node.left.accept$1(this) || node.right.accept$1(this);
- else
- t1 = false;
- return t1;
- },
- visitBooleanExpression$1(node) {
- return false;
- },
- visitColorExpression$1(node) {
- return false;
- },
- visitFunctionExpression$1(node) {
- return true;
- },
- visitInterpolatedFunctionExpression$1(node) {
- return true;
- },
- visitIfExpression$1(node) {
- return true;
- },
- visitListExpression$1(node) {
- var t1;
- if (node.separator === B.ListSeparator_nbm)
- if (!node.hasBrackets) {
- t1 = node.contents;
- t1 = t1.length > 1 && B.JSArray_methods.every$1(t1, new A._IsCalculationSafeVisitor_visitListExpression_closure(this));
- } else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- visitMapExpression$1(node) {
- return false;
- },
- visitNullExpression$1(node) {
- return false;
- },
- visitNumberExpression$1(node) {
- return true;
- },
- visitParenthesizedExpression$1(node) {
- return node.expression.accept$1(this);
- },
- visitSelectorExpression$1(node) {
- return false;
- },
- visitStringExpression$1(node) {
- var text, t1, t2;
- if (node.hasQuotes)
- return false;
- text = node.text.get$initialPlain();
- if (!B.JSString_methods.startsWith$1(text, "!"))
- if (!B.JSString_methods.startsWith$1(text, "#")) {
- t1 = text.length;
- if ((1 >= t1 ? null : text.charCodeAt(1)) !== 43) {
- t2 = (3 >= t1 ? null : text.charCodeAt(3)) !== 40;
- t1 = t2;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- visitSupportsExpression$1(node) {
- return false;
- },
- visitUnaryOperationExpression$1(node) {
- return false;
- },
- visitValueExpression$1(node) {
- return false;
- },
- visitVariableExpression$1(node) {
- return true;
- }
- };
- A._IsCalculationSafeVisitor_visitListExpression_closure.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 113
- };
- A.BinaryOperationExpression.prototype = {
- get$span(_) {
- var right,
- left = this.left;
- for (; left instanceof A.BinaryOperationExpression;)
- left = left.left;
- right = this.right;
- for (; right instanceof A.BinaryOperationExpression;)
- right = right.right;
- return left.get$span(left).expand$1(0, right.get$span(right));
- },
- get$operatorSpan() {
- var t3, t4,
- t1 = this.left,
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t3 = this.right;
- t4 = t3.get$span(t3);
- if (t2 === t4.get$file(t4)) {
- t2 = t1.get$span(t1);
- t2 = t2.get$end(t2);
- t4 = t3.get$span(t3);
- t4 = t2.offset < t4.get$start(t4).offset;
- t2 = t4;
- } else
- t2 = false;
- if (t2) {
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t1 = t1.get$span(t1);
- t1 = t1.get$end(t1);
- t3 = t3.get$span(t3);
- t3 = A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, t1.offset, t3.get$start(t3).offset)));
- t1 = t3;
- } else
- t1 = this.get$span(0);
- return t1;
- },
- accept$1$1(visitor) {
- return visitor.visitBinaryOperationExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1, t2, right, operator, t3, _this = this,
- _0_0 = _this.left;
- $label0$0: {
- if (_0_0 instanceof A.BinaryOperationExpression) {
- t1 = _0_0.operator.precedence < _this.operator.precedence;
- break $label0$0;
- }
- if (_0_0 instanceof A.ListExpression && !_0_0.hasBrackets && _0_0.contents.length >= 2) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- t2 = t1 ? "" + A.Primitives_stringFromCharCode(40) : "";
- t2 += _0_0.toString$0(0);
- t1 = t1 ? t2 + A.Primitives_stringFromCharCode(41) : t2;
- t2 = _this.operator;
- t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32);
- right = _this.right;
- $label1$1: {
- if (right instanceof A.BinaryOperationExpression) {
- operator = right.operator;
- if (operator.precedence <= t2.precedence) {
- t3 = !(operator === t2 && operator.isAssociative);
- t2 = t3;
- } else
- t2 = false;
- break $label1$1;
- }
- if (right instanceof A.ListExpression && !right.hasBrackets && right.contents.length >= 2) {
- t2 = true;
- break $label1$1;
- }
- t2 = false;
- break $label1$1;
- }
- if (t2)
- t1 += A.Primitives_stringFromCharCode(40);
- t1 += right.toString$0(0);
- if (t2)
- t1 += A.Primitives_stringFromCharCode(41);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isExpression: 1
- };
- A.BinaryOperator.prototype = {
- _enumToString$0() {
- return "BinaryOperator." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.BooleanExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitBooleanExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return String(this.value);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ColorExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitColorExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return A.serializeValue(this.value, true, true);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.FunctionExpression.prototype = {
- get$nameSpan() {
- if (this.namespace == null)
- return A.SpanExtensions_initialIdentifier(this.span);
- return A.SpanExtensions_initialIdentifier(A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier(this.span), 1, null));
- },
- accept$1$1(visitor) {
- return visitor.visitFunctionExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "" + (t1 + ".") : "";
- t1 += this.originalName + this.$arguments.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.IfExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitIfExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "if" + this.$arguments.toString$0(0);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.InterpolatedFunctionExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitInterpolatedFunctionExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.name.toString$0(0) + this.$arguments.toString$0(0);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ListExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitListExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, t3, t4, t5, _this = this,
- t1 = _this.hasBrackets;
- if (t1)
- t2 = "" + A.Primitives_stringFromCharCode(91);
- else {
- t2 = _this.contents.length;
- if (t2 !== 0)
- t2 = t2 === 1 && _this.separator === B.ListSeparator_ECn;
- else
- t2 = true;
- t2 = t2 ? "" + A.Primitives_stringFromCharCode(40) : "";
- }
- t3 = _this.contents;
- t4 = _this.separator === B.ListSeparator_ECn;
- t5 = t4 ? ", " : " ";
- t5 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t5);
- if (t1)
- t1 = t5 + A.Primitives_stringFromCharCode(93);
- else {
- t1 = t3.length;
- if (t1 === 0)
- t1 = t5 + A.Primitives_stringFromCharCode(41);
- else
- t1 = t1 === 1 && t4 ? t5 + ",)" : t5;
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _list0$_elementNeedsParens$1(expression) {
- var childSeparator, t1, _0_13;
- $label0$0: {
- if (expression instanceof A.ListExpression && expression.contents.length >= 2 && !expression.hasBrackets) {
- childSeparator = expression.separator;
- t1 = this.separator === B.ListSeparator_ECn ? childSeparator === B.ListSeparator_ECn : childSeparator !== B.ListSeparator_undecided_null_undecided;
- break $label0$0;
- }
- if (expression instanceof A.UnaryOperationExpression) {
- _0_13 = expression.operator;
- if (B.UnaryOperator_cLp !== _0_13)
- t1 = B.UnaryOperator_AiQ === _0_13;
- else
- t1 = true;
- } else
- t1 = false;
- if (t1) {
- t1 = this.separator === B.ListSeparator_nbm;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ListExpression_toString_closure.prototype = {
- call$1(element) {
- return this.$this._list0$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0);
- },
- $signature: 111
- };
- A.MapExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitMapExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, t3, _i, t4, key, value,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = this.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- t1.push(key.toString$0(0) + ": " + value.toString$0(0));
- }
- return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.NullExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitNullExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "null";
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.NumberExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitNumberExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return A.serializeValue(A.SassNumber_SassNumber(this.value, this.unit), true, true);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ParenthesizedExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitParenthesizedExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "(" + this.expression.toString$0(0) + ")";
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SelectorExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitSelectorExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "&";
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.StringExpression.prototype = {
- get$span(_) {
- return this.text.span;
- },
- accept$1$1(visitor) {
- return visitor.visitStringExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- asInterpolation$1$static($static) {
- var t1, t2, quote, t3, t4, buffer, t5, t6, _i, value;
- if (!this.hasQuotes)
- return this.text;
- t1 = this.text;
- t2 = t1.contents;
- quote = A.StringExpression__bestQuote(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String));
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer(t3, t4);
- t5 = A.Primitives_stringFromCharCode(quote);
- t3._contents += t5;
- for (t5 = t2.length, t6 = type$.Expression, _i = 0; _i < t5; ++_i) {
- value = t2[_i];
- if (t6._is(value)) {
- buffer._flushText$0();
- t4.push(value);
- continue;
- }
- if (typeof value == "string")
- A.StringExpression__quoteInnerText(value, quote, buffer, $static);
- }
- t2 = A.Primitives_stringFromCharCode(quote);
- t3._contents += t2;
- return buffer.interpolation$1(t1.span);
- },
- asInterpolation$0() {
- return this.asInterpolation$1$static(false);
- },
- toString$0(_) {
- return this.asInterpolation$0().toString$0(0);
- },
- $isAstNode: 1,
- $isExpression: 1
- };
- A.SupportsExpression.prototype = {
- get$span(_) {
- var t1 = this.condition;
- return t1.get$span(t1);
- },
- accept$1$1(visitor) {
- return visitor.visitSupportsExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.condition.toString$0(0);
- },
- $isAstNode: 1,
- $isExpression: 1
- };
- A.UnaryOperationExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitUnaryOperationExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var operand,
- t1 = this.operator,
- t2 = t1.operator;
- t1 = t1 === B.UnaryOperator_not_not_not ? t2 + A.Primitives_stringFromCharCode(32) : t2;
- operand = this.operand;
- $label0$0: {
- if (!(operand instanceof A.BinaryOperationExpression))
- if (!(operand instanceof A.UnaryOperationExpression))
- t2 = operand instanceof A.ListExpression && !operand.hasBrackets && operand.contents.length >= 2;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- break $label0$0;
- break $label0$0;
- }
- if (t2)
- t1 += "40";
- t1 += operand.toString$0(0);
- if (t2)
- t1 += "41";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.UnaryOperator.prototype = {
- _enumToString$0() {
- return "UnaryOperator." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.ValueExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitValueExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return A.serializeValue(this.value, true, true);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.VariableExpression.prototype = {
- accept$1$1(visitor) {
- return visitor.visitVariableExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.span;
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
- },
- $isAstNode: 1,
- $isExpression: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.DynamicImport.prototype = {
- toString$0(_) {
- return A.StringExpression_quoteText(this.urlString);
- },
- $isAstNode: 1,
- $isImport: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.StaticImport.prototype = {
- toString$0(_) {
- var t1 = this.url.toString$0(0),
- t2 = this.modifiers;
- return t1 + (t2 == null ? "" : " " + t2.toString$0(0));
- },
- $isAstNode: 1,
- $isImport: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Interpolation.prototype = {
- get$asPlain() {
- var _0_1, t1, _0_6_isSet, _0_6, first, _null = null,
- _0_0 = this.contents;
- $label0$0: {
- _0_1 = _0_0.length;
- if (_0_1 <= 0) {
- t1 = "";
- break $label0$0;
- }
- _0_6_isSet = _0_1 === 1;
- if (_0_6_isSet) {
- _0_6 = _0_0[0];
- t1 = _0_6;
- t1 = typeof t1 == "string";
- } else {
- _0_6 = _null;
- t1 = false;
- }
- if (t1) {
- first = A._asString(_0_6_isSet ? _0_6 : _0_0[0]);
- t1 = first;
- break $label0$0;
- }
- t1 = _null;
- break $label0$0;
- }
- return t1;
- },
- get$initialPlain() {
- var _0_4_isSet, _0_4, t1, first,
- _0_0 = this.contents;
- $label0$0: {
- _0_4_isSet = _0_0.length >= 1;
- if (_0_4_isSet) {
- _0_4 = _0_0[0];
- t1 = _0_4;
- t1 = typeof t1 == "string";
- } else {
- _0_4 = null;
- t1 = false;
- }
- if (t1) {
- first = A._asString(_0_4_isSet ? _0_4 : _0_0[0]);
- t1 = first;
- break $label0$0;
- }
- t1 = "";
- break $label0$0;
- }
- return t1;
- },
- Interpolation$2(contents, span) {
- var t1, t2, t3, i, t4, t5,
- _s8_ = "contents";
- for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression, i = 0; i < t2; ++i) {
- t4 = t1[i];
- t5 = typeof t4 == "string";
- if (!t5 && !t3._is(t4))
- throw A.wrapException(A.ArgumentError$value(t1, _s8_, string$.May_on));
- if (i !== 0 && typeof t1[i - 1] == "string" && t5)
- throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
- }
- },
- toString$0(_) {
- var t1 = this.contents;
- return new A.MappedListIterable(t1, new A.Interpolation_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Interpolation_toString_closure.prototype = {
- call$1(value) {
- return typeof value == "string" ? value : "#{" + A.S(value) + "}";
- },
- $signature: 134
- };
- A.AtRootRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitAtRootRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var buffer = new A.StringBuffer("@at-root "),
- t1 = this.query;
- if (t1 != null)
- buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
- t1 = this.children;
- return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.AtRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitAtRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var children,
- t1 = "@" + this.name.toString$0(0),
- buffer = new A.StringBuffer(t1),
- t2 = this.value;
- if (t2 != null)
- buffer._contents = t1 + (" " + t2.toString$0(0));
- children = this.children;
- return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.CallableDeclaration.prototype = {
- get$span(receiver) {
- return this.span;
- }
- };
- A.ContentBlock.prototype = {
- accept$1$1(visitor) {
- return visitor.visitContentBlock$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2,
- t1 = this.$arguments;
- t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
- t2 = this.children;
- return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
- }
- };
- A.ContentRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitContentRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.$arguments;
- return t1.get$isEmpty(0) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.DebugRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitDebugRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@debug " + this.expression.toString$0(0) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Declaration.prototype = {
- accept$1$1(visitor) {
- return visitor.visitDeclaration$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t3, _0_0,
- buffer = new A.StringBuffer(""),
- t1 = this.name,
- t2 = "" + t1.toString$0(0);
- buffer._contents = t2;
- t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58);
- t3 = this.value;
- if (t3 != null) {
- t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2;
- buffer._contents = t1 + t3.toString$0(0);
- }
- _0_0 = this.children;
- if (_0_0 != null)
- return buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(_0_0, " ") + "}";
- else
- return buffer.toString$0(0) + ";";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.EachRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitEachRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.variables,
- t2 = this.children;
- return "@each " + new A.MappedListIterable(t1, new A.EachRule_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + this.list.toString$0(0) + " {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.EachRule_toString_closure.prototype = {
- call$1(variable) {
- return "$" + variable;
- },
- $signature: 5
- };
- A.ErrorRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitErrorRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@error " + this.expression.toString$0(0) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ExtendRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitExtendRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.selector.toString$0(0),
- t2 = this.isOptional ? " !optional" : "";
- return "@extend " + t1 + t2 + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ForRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitForRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var _this = this,
- t1 = _this.from.toString$0(0),
- t2 = _this.isExclusive ? "to" : "through",
- t3 = _this.children;
- return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ForwardRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitForwardRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, prefix, _this = this,
- t1 = "@forward " + A.StringExpression_quoteText(_this.url.toString$0(0)),
- shownMixinsAndFunctions = _this.shownMixinsAndFunctions,
- hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions;
- if (shownMixinsAndFunctions != null) {
- t2 = _this.shownVariables;
- t2.toString;
- t2 = t1 + " show " + _this._forward_rule$_memberList$2(shownMixinsAndFunctions, t2);
- t1 = t2;
- } else if (hiddenMixinsAndFunctions != null && hiddenMixinsAndFunctions._base.get$isNotEmpty(0)) {
- t2 = _this.hiddenVariables;
- t2.toString;
- t2 = t1 + " hide " + _this._forward_rule$_memberList$2(hiddenMixinsAndFunctions, t2);
- t1 = t2;
- }
- prefix = _this.prefix;
- if (prefix != null)
- t1 += " as " + prefix + "*";
- t2 = _this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _forward_rule$_memberList$2(mixinsAndFunctions, variables) {
- var t2,
- t1 = A.List_List$of(mixinsAndFunctions, true, type$.String);
- for (t2 = variables._base.get$iterator(0); t2.moveNext$0();)
- t1.push("$" + t2.get$current(0));
- return B.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.FunctionRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitFunctionRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- }
- };
- A.IfRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitIfRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure(), type$.IfClause, type$.String).join$1(0, " "),
- lastClause = this.lastClause;
- return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.IfRule_toString_closure.prototype = {
- call$2(index, clause) {
- var t1 = index === 0 ? "if" : "else if";
- return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}";
- },
- $signature: 499
- };
- A.IfRuleClause.prototype = {};
- A.IfRuleClause$__closure.prototype = {
- call$1(child) {
- var t1;
- $label0$0: {
- if (child instanceof A.VariableDeclaration || child instanceof A.FunctionRule || child instanceof A.MixinRule) {
- t1 = true;
- break $label0$0;
- }
- if (child instanceof A.ImportRule) {
- t1 = B.JSArray_methods.any$1(child.imports, new A.IfRuleClause$___closure());
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $signature: 152
- };
- A.IfRuleClause$___closure.prototype = {
- call$1($import) {
- return $import instanceof A.DynamicImport;
- },
- $signature: 156
- };
- A.IfClause.prototype = {
- toString$0(_) {
- return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}";
- }
- };
- A.ElseClause.prototype = {
- toString$0(_) {
- return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}";
- }
- };
- A.ImportRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitImportRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.IncludeRule.prototype = {
- get$spanWithoutContent() {
- var t2, t3,
- t1 = this.span;
- if (!(this.content == null)) {
- t2 = t1.file;
- t3 = this.$arguments.span;
- t3 = A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset)));
- t1 = t3;
- }
- return t1;
- },
- get$nameSpan() {
- var startSpan, scanner, _null = null,
- t1 = this.span,
- t2 = t1._file$_start,
- t3 = t1._end,
- t4 = t1.file._decodedChars;
- if (B.JSString_methods.startsWith$1(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), "+"))
- startSpan = A.SpanExtensions_trimLeft(A.FileSpanExtension_subspan(t1, 1, _null));
- else {
- scanner = A.StringScanner$(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), _null, _null);
- scanner.expectChar$1(64);
- A._scanIdentifier(scanner);
- startSpan = A.SpanExtensions_trimLeft(A.FileSpanExtension_subspan(t1, scanner._string_scanner$_position, _null));
- }
- return A.SpanExtensions_initialIdentifier(this.namespace != null ? A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier(startSpan), 1, _null) : startSpan);
- },
- accept$1$1(visitor) {
- return visitor.visitIncludeRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, _this = this,
- t1 = _this.namespace;
- t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
- t1 += _this.name;
- t2 = _this.$arguments;
- if (!t2.get$isEmpty(0))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = _this.content;
- t1 += t2 == null ? ";" : " " + t2.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.LoudComment.prototype = {
- get$span(_) {
- return this.text.span;
- },
- accept$1$1(visitor) {
- return visitor.visitLoudComment$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.text.toString$0(0);
- },
- $isAstNode: 1,
- $isStatement: 1
- };
- A.MediaRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitMediaRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.MixinRule.prototype = {
- get$hasContent() {
- var result, _this = this,
- value = _this.__MixinRule_hasContent_FI;
- if (value === $) {
- result = J.$eq$(B.C__HasContentVisitor.visitChildren$1(_this.children), true);
- _this.__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__MixinRule_hasContent_FI = result;
- value = result;
- }
- return value;
- },
- accept$1$1(visitor) {
- return visitor.visitMixinRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = "@mixin " + this.name,
- t2 = this.$arguments;
- if (!(t2.$arguments.length === 0 && t2.restArgument == null))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = this.children;
- t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- A._HasContentVisitor.prototype = {
- visitContentRule$1(_) {
- return true;
- }
- };
- A.__HasContentVisitor_Object_StatementSearchVisitor.prototype = {};
- A.ParentStatement.prototype = {$isAstNode: 1, $isStatement: 1};
- A.ParentStatement_closure.prototype = {
- call$1(child) {
- var t1;
- $label0$0: {
- if (child instanceof A.VariableDeclaration || child instanceof A.FunctionRule || child instanceof A.MixinRule) {
- t1 = true;
- break $label0$0;
- }
- if (child instanceof A.ImportRule) {
- t1 = B.JSArray_methods.any$1(child.imports, new A.ParentStatement__closure());
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $signature: 152
- };
- A.ParentStatement__closure.prototype = {
- call$1($import) {
- return $import instanceof A.DynamicImport;
- },
- $signature: 156
- };
- A.ReturnRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitReturnRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@return " + this.expression.toString$0(0) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SilentComment.prototype = {
- accept$1$1(visitor) {
- return visitor.visitSilentComment$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.text;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.StyleRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitStyleRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.Stylesheet.prototype = {
- Stylesheet$internal$3$plainCss(children, span, plainCss) {
- var t1, t2, t3, t4, _i, child;
- for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) {
- child = t1[_i];
- if (child instanceof A.UseRule) {
- t4.push(child);
- continue;
- }
- if (child instanceof A.ForwardRule) {
- t3.push(child);
- continue;
- }
- if (child instanceof A.SilentComment || child instanceof A.LoudComment || child instanceof A.VariableDeclaration)
- continue;
- break;
- }
- },
- accept$1$1(visitor) {
- return visitor.visitStylesheet$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return (t1 && B.JSArray_methods).join$1(t1, " ");
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitSupportsRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.UseRule.prototype = {
- UseRule$4$configuration(url, namespace, span, configuration) {
- var t1, t2, _i, variable;
- for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (variable.isGuarded)
- throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
- }
- },
- accept$1$1(visitor) {
- return visitor.visitUseRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.url,
- t2 = "@use " + A.StringExpression_quoteText(t1.toString$0(0)),
- basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()),
- dot = B.JSString_methods.indexOf$1(basename, ".");
- t1 = this.namespace;
- if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
- t1 = t2 + (" as " + (t1 == null ? "*" : t1));
- else
- t1 = t2;
- t2 = this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.VariableDeclaration.prototype = {
- accept$1$1(visitor) {
- return visitor.visitVariableDeclaration$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "" + (t1 + ".") : "";
- t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.WarnRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitWarnRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@warn " + this.expression.toString$0(0) + ";";
- },
- $isAstNode: 1,
- $isStatement: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.WhileRule.prototype = {
- accept$1$1(visitor) {
- return visitor.visitWhileRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsAnything.prototype = {
- toString$0(_) {
- return "(" + this.contents.toString$0(0) + ")";
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsDeclaration.prototype = {
- get$isCustomProperty() {
- var t1,
- _0_0 = this.name;
- $label0$0: {
- if (_0_0 instanceof A.StringExpression && !_0_0.hasQuotes) {
- t1 = B.JSString_methods.startsWith$1(_0_0.text.get$initialPlain(), "--");
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- toString$0(_) {
- return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")";
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsFunction.prototype = {
- toString$0(_) {
- return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsInterpolation.prototype = {
- toString$0(_) {
- return "#{" + this.expression.toString$0(0) + "}";
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsNegation.prototype = {
- toString$0(_) {
- var t1 = this.condition;
- if (t1 instanceof A.SupportsNegation || t1 instanceof A.SupportsOperation)
- return "not (" + t1.toString$0(0) + ")";
- else
- return "not " + t1.toString$0(0);
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsOperation.prototype = {
- toString$0(_) {
- var _this = this;
- return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right);
- },
- _operation$_parenthesize$1(condition) {
- var t1;
- if (!(condition instanceof A.SupportsNegation))
- t1 = condition instanceof A.SupportsOperation && condition.operator === this.operator;
- else
- t1 = true;
- return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Selector.prototype = {
- assertNotBogus$1$name($name) {
- if (!this.accept$1(B._IsBogusVisitor_true))
- return;
- A.warnForDeprecation("$" + $name + ": " + (this.toString$0(0) + string$.x20is_nov), B.Deprecation_ido);
- },
- toString$0(_) {
- var visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
- this.accept$1(visitor);
- return visitor._serialize$_buffer.toString$0(0);
- },
- $isAstNode: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._IsInvisibleVisitor0.prototype = {
- visitSelectorList$1(list) {
- return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector());
- },
- visitComplexSelector$1(complex) {
- var t1;
- if (!this.super$AnySelectorVisitor$visitComplexSelector(complex))
- t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false);
- else
- t1 = true;
- return t1;
- },
- visitPlaceholderSelector$1(placeholder) {
- return true;
- },
- visitPseudoSelector$1(pseudo) {
- var t1,
- _0_0 = pseudo.selector;
- if (_0_0 != null) {
- if (pseudo.name === "not")
- t1 = this.includeBogus && _0_0.accept$1(B._IsBogusVisitor_true);
- else
- t1 = this.visitSelectorList$1(_0_0);
- return t1;
- } else
- return false;
- }
- };
- A._IsBogusVisitor.prototype = {
- visitComplexSelector$1(complex) {
- var t2,
- t1 = complex.components;
- if (t1.length === 0)
- return complex.leadingCombinators.length !== 0;
- else {
- t2 = this.includeLeadingCombinator ? 0 : 1;
- return complex.leadingCombinators.length > t2 || B.JSArray_methods.get$last(t1).combinators.length !== 0 || B.JSArray_methods.any$1(t1, new A._IsBogusVisitor_visitComplexSelector_closure(this));
- }
- },
- visitPseudoSelector$1(pseudo) {
- var selector = pseudo.selector;
- if (selector == null)
- return false;
- return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false) : selector.accept$1(B._IsBogusVisitor_true);
- }
- };
- A._IsBogusVisitor_visitComplexSelector_closure.prototype = {
- call$1(component) {
- return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature: 49
- };
- A._IsUselessVisitor.prototype = {
- visitComplexSelector$1(complex) {
- return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure(this));
- },
- visitPseudoSelector$1(pseudo) {
- return pseudo.accept$1(B._IsBogusVisitor_true);
- }
- };
- A._IsUselessVisitor_visitComplexSelector_closure.prototype = {
- call$1(component) {
- return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature: 49
- };
- A.__IsBogusVisitor_Object_AnySelectorVisitor.prototype = {};
- A.__IsInvisibleVisitor_Object_AnySelectorVisitor.prototype = {};
- A.__IsUselessVisitor_Object_AnySelectorVisitor.prototype = {};
- A.AttributeSelector.prototype = {
- accept$1$1(visitor) {
- return visitor.visitAttributeSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
- },
- get$hashCode(_) {
- var _this = this,
- t1 = _this.name;
- return (B.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;
- }
- };
- A.AttributeOperator.prototype = {
- _enumToString$0() {
- return "AttributeOperator." + this._name;
- },
- toString$0(_) {
- return this._attribute$_text;
- }
- };
- A.ClassSelector.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ClassSelector && other.name === this.name;
- },
- accept$1$1(visitor) {
- return visitor.visitClassSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- return new A.ClassSelector(this.name + suffix, this.span);
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- }
- };
- A.Combinator.prototype = {
- _enumToString$0() {
- return "Combinator." + this._name;
- },
- toString$0(_) {
- return this._combinator$_text;
- }
- };
- A.ComplexSelector.prototype = {
- get$specificity() {
- var result, _this = this,
- value = _this.__ComplexSelector_specificity_FI;
- if (value === $) {
- result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure());
- _this.__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__ComplexSelector_specificity_FI = result;
- value = result;
- }
- return value;
- },
- get$singleCompound() {
- var _0_0, _0_4, t1, selector, _null = null;
- if (this.leadingCombinators.length !== 0)
- return _null;
- _0_0 = this.components;
- $label0$0: {
- if (_0_0.length === 1) {
- _0_4 = _0_0[0];
- t1 = _0_4;
- selector = t1.selector;
- t1 = _0_4.combinators.length <= 0;
- } else {
- selector = _null;
- t1 = false;
- }
- if (t1) {
- t1 = selector;
- break $label0$0;
- }
- t1 = _null;
- break $label0$0;
- }
- return t1;
- },
- accept$1$1(visitor) {
- return visitor.visitComplexSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- isSuperselector$1(other) {
- return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector(this.components, other.components);
- },
- withAdditionalCombinators$1(combinators) {
- var _0_0, _0_1, t1, initial, last, _this = this;
- if (combinators.length === 0)
- return _this;
- _0_0 = _this.components;
- $label0$0: {
- _0_1 = _0_0.length;
- if (_0_1 >= 1) {
- t1 = _0_1 - 1;
- initial = B.JSArray_methods.sublist$2(_0_0, 0, t1);
- last = _0_0[t1];
- t1 = A.List_List$of(initial, true, type$.ComplexSelectorComponent);
- t1.push(last.withAdditionalCombinators$1(combinators));
- t1 = A.ComplexSelector$(_this.leadingCombinators, t1, _this.span, _this.lineBreak);
- break $label0$0;
- }
- if (_0_1 <= 0) {
- t1 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator);
- B.JSArray_methods.addAll$1(t1, combinators);
- t1 = A.ComplexSelector$(t1, B.List_empty2, _this.span, _this.lineBreak);
- break $label0$0;
- }
- throw A.wrapException(A.ReachabilityError$(string$.None_o));
- }
- return t1;
- },
- concatenate$3$forceLineBreak(child, span, forceLineBreak) {
- var t2, _0_1, initial, last, _this = this,
- t1 = child.leadingCombinators,
- _0_0 = _this.components;
- if (t1.length === 0) {
- t1 = A.List_List$of(_0_0, true, type$.ComplexSelectorComponent);
- B.JSArray_methods.addAll$1(t1, child.components);
- t2 = _this.lineBreak || child.lineBreak || forceLineBreak;
- return A.ComplexSelector$(_this.leadingCombinators, t1, span, t2);
- } else {
- _0_1 = _0_0.length;
- if (_0_1 >= 1) {
- t2 = _0_1 - 1;
- initial = B.JSArray_methods.sublist$2(_0_0, 0, t2);
- last = _0_0[t2];
- t2 = A.List_List$of(initial, true, type$.ComplexSelectorComponent);
- t2.push(last.withAdditionalCombinators$1(t1));
- B.JSArray_methods.addAll$1(t2, child.components);
- t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
- return A.ComplexSelector$(_this.leadingCombinators, t2, span, t1);
- } else {
- t2 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator);
- B.JSArray_methods.addAll$1(t2, t1);
- t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
- return A.ComplexSelector$(t2, child.components, span, t1);
- }
- }
- },
- concatenate$2(child, span) {
- return this.concatenate$3$forceLineBreak(child, span, false);
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ComplexSelector && B.C_ListEquality.equals$2(0, this.leadingCombinators, other.leadingCombinators) && B.C_ListEquality.equals$2(0, this.components, other.components);
- }
- };
- A.ComplexSelector_specificity_closure.prototype = {
- call$2(sum, component) {
- return sum + component.selector.get$specificity();
- },
- $signature: 359
- };
- A.ComplexSelectorComponent.prototype = {
- withAdditionalCombinators$1(combinators) {
- var t1, t2, _this = this;
- if (combinators.length === 0)
- t1 = _this;
- else {
- t1 = type$.CssValue_Combinator;
- t2 = A.List_List$of(_this.combinators, true, t1);
- B.JSArray_methods.addAll$1(t2, combinators);
- t1 = new A.ComplexSelectorComponent(_this.selector, A.List_List$unmodifiable(t2, t1), _this.span);
- }
- return t1;
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators);
- },
- $eq(_, other) {
- var t1;
- if (other == null)
- return false;
- if (other instanceof A.ComplexSelectorComponent) {
- t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components);
- t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators);
- } else
- t1 = false;
- return t1;
- },
- toString$0(_) {
- var t1 = this.combinators;
- return A.serializeSelector(this.selector, true) + new A.MappedListIterable(t1, new A.ComplexSelectorComponent_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, "");
- }
- };
- A.ComplexSelectorComponent_toString_closure.prototype = {
- call$1(combinator) {
- return " " + combinator.toString$0(0);
- },
- $signature: 353
- };
- A.CompoundSelector.prototype = {
- get$specificity() {
- var result, _this = this,
- value = _this.__CompoundSelector_specificity_FI;
- if (value === $) {
- result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure());
- _this.__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__CompoundSelector_specificity_FI = result;
- value = result;
- }
- return value;
- },
- get$hasComplicatedSuperselectorSemantics() {
- var result, _this = this,
- value = _this.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI;
- if (value === $) {
- result = B.JSArray_methods.any$1(_this.components, new A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure());
- _this.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = result;
- value = result;
- }
- return value;
- },
- accept$1$1(visitor) {
- return visitor.visitCompoundSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.components);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.CompoundSelector && B.C_ListEquality.equals$2(0, this.components, other.components);
- }
- };
- A.CompoundSelector_specificity_closure.prototype = {
- call$2(sum, component) {
- return sum + component.get$specificity();
- },
- $signature: 346
- };
- A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure.prototype = {
- call$1(component) {
- return component.get$hasComplicatedSuperselectorSemantics();
- },
- $signature: 13
- };
- A.IDSelector.prototype = {
- get$specificity() {
- return A._asInt(Math.pow(A.SimpleSelector.prototype.get$specificity.call(this), 2));
- },
- accept$1$1(visitor) {
- return visitor.visitIDSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- return new A.IDSelector(this.name + suffix, this.span);
- },
- unify$1(compound) {
- if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure(this)))
- return null;
- return this.super$SimpleSelector$unify(compound);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.IDSelector && other.name === this.name;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- }
- };
- A.IDSelector_unify_closure.prototype = {
- call$1(simple) {
- var t1;
- if (simple instanceof A.IDSelector)
- t1 = this.$this.name !== simple.name;
- else
- t1 = false;
- return t1;
- },
- $signature: 13
- };
- A.SelectorList.prototype = {
- get$asSassList() {
- var t1 = this.components;
- return A.SassList$(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_ECn, false);
- },
- accept$1$1(visitor) {
- return visitor.visitSelectorList$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1(other) {
- var t3, t4, t5, t6, _i, complex1, _i0, t7,
- t1 = type$.JSArray_ComplexSelector,
- t2 = A._setArrayType([], t1);
- for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) {
- complex1 = t3[_i];
- for (_i0 = 0; _i0 < t6; ++_i0) {
- t7 = A.unifyComplex(A._setArrayType([complex1, t5[_i0]], t1), complex1.span);
- if (t7 != null)
- B.JSArray_methods.addAll$1(t2, t7);
- }
- }
- return t2.length === 0 ? null : A.SelectorList$(t2, this.span);
- },
- nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, preserveParentSelectors) {
- var parentSelector, t1, _this = this;
- if ($parent == null) {
- if (preserveParentSelectors)
- return _this;
- parentSelector = B.C__ParentSelectorVisitor.visitSelectorList$1(_this);
- if (parentSelector == null)
- return _this;
- throw A.wrapException(A.SassException$(string$.Top_les, parentSelector.span, null));
- }
- t1 = _this.components;
- return A.SelectorList$(A.flattenVertically(new A.MappedListIterable(t1, new A.SelectorList_nestWithin_closure(_this, preserveParentSelectors, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector>>")), type$.ComplexSelector), _this.span);
- },
- nestWithin$1($parent) {
- return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, true, false);
- },
- nestWithin$2$implicitParent($parent, implicitParent) {
- return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, false);
- },
- _nestWithinCompound$2(component, $parent) {
- var resolvedSimples, parentSelector, error, stackTrace, t2, resolvedSimples0, exception,
- t1 = component.selector,
- simples = t1.components,
- containsSelectorPseudo = J.any$1$ax(simples, new A.SelectorList__nestWithinCompound_closure());
- if (!containsSelectorPseudo && !(J.get$first$ax(simples) instanceof A.ParentSelector))
- return null;
- if (containsSelectorPseudo) {
- t2 = simples;
- resolvedSimples0 = new A.MappedListIterable(t2, new A.SelectorList__nestWithinCompound_closure0($parent), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,SimpleSelector>"));
- } else
- resolvedSimples0 = simples;
- resolvedSimples = resolvedSimples0;
- parentSelector = J.get$first$ax(simples);
- try {
- if (!(parentSelector instanceof A.ParentSelector)) {
- t2 = component.span;
- t2 = A._setArrayType([A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(resolvedSimples, t1.span), A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator), t2)], type$.JSArray_ComplexSelectorComponent), t2, false)], type$.JSArray_ComplexSelector);
- return t2;
- } else if (J.get$length$asx(simples) === 1 && parentSelector.suffix == null) {
- t1 = $parent.withAdditionalCombinators$1(component.combinators);
- return t1.components;
- }
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace(error.withAdditionalSpan$2(parentSelector.span, "parent selector"), error, stackTrace);
- } else
- throw exception;
- }
- t1 = $parent.components;
- return new A.MappedListIterable(t1, new A.SelectorList__nestWithinCompound_closure1(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
- },
- isSuperselector$1(other) {
- return A.listIsSuperselector(this.components, other.components);
- },
- withAdditionalCombinators$1(combinators) {
- var t1;
- if (combinators.length === 0)
- t1 = this;
- else {
- t1 = this.components;
- t1 = A.SelectorList$(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")), this.span);
- }
- return t1;
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.components);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SelectorList && B.C_ListEquality.equals$2(0, this.components, other.components);
- }
- };
- A.SelectorList_asSassList_closure.prototype = {
- call$1(complex) {
- var t3, t4, _i, component, t5, visitor, t6, t7, _i0,
- t1 = type$.JSArray_Value,
- t2 = A._setArrayType([], t1);
- for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i)
- t2.push(new A.SassString(J.toString$0$(t3[_i].value), false));
- for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
- component = t3[_i];
- t5 = component.selector;
- visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
- t5.accept$1(visitor);
- t5 = A._setArrayType([new A.SassString(visitor._serialize$_buffer.toString$0(0), false)], t1);
- for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0)
- t5.push(new A.SassString(J.toString$0$(t6[_i0].value), false));
- B.JSArray_methods.addAll$1(t2, t5);
- }
- return A.SassList$(t2, B.ListSeparator_nbm, false);
- },
- $signature: 341
- };
- A.SelectorList_nestWithin_closure.prototype = {
- call$1(complex) {
- var t1, newComplexes, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, _i, component, resolved, i, t12, t13, t14, _i0, newComplex, t15, _this = this;
- if (_this.preserveParentSelectors || complex.accept$1(B.C__ParentSelectorVisitor) == null) {
- if (!_this.implicitParent)
- return A._setArrayType([complex], type$.JSArray_ComplexSelector);
- t1 = _this.parent.components;
- return new A.MappedListIterable(t1, new A.SelectorList_nestWithin__closure(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
- }
- t1 = type$.JSArray_ComplexSelector;
- newComplexes = A._setArrayType([], t1);
- for (t2 = complex.components, t3 = t2.length, t4 = _this.$this, t5 = _this.parent, t6 = type$.ComplexSelector, t7 = complex.leadingCombinators, t8 = t7.length === 0, t9 = complex.span, t10 = type$.ComplexSelectorComponent, t11 = type$.JSArray_ComplexSelectorComponent, _i = 0; _i < t3; ++_i) {
- component = t2[_i];
- resolved = t4._nestWithinCompound$2(component, t5);
- if (resolved == null)
- if (newComplexes.length === 0)
- newComplexes.push(A.ComplexSelector$(t7, A._setArrayType([component], t11), t9, false));
- else
- for (i = 0; i < newComplexes.length; ++i) {
- t12 = newComplexes[i];
- t13 = t12.leadingCombinators;
- t14 = A.List_List$of(t12.components, true, t10);
- t14.push(component);
- t12 = t12.lineBreak;
- newComplexes[i] = A.ComplexSelector$(t13, t14, t9, t12);
- }
- else if (newComplexes.length === 0)
- B.JSArray_methods.addAll$1(newComplexes, t8 ? resolved : J.map$1$1$ax(resolved, new A.SelectorList_nestWithin__closure0(complex), t6));
- else {
- t12 = A._setArrayType([], t1);
- for (t13 = newComplexes.length, t14 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t13 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) {
- newComplex = newComplexes[_i0];
- for (t15 = t14.get$iterator(resolved); t15.moveNext$0();)
- t12.push(newComplex.concatenate$2(t15.get$current(t15), newComplex.span));
- }
- newComplexes = t12;
- }
- }
- return newComplexes;
- },
- $signature: 337
- };
- A.SelectorList_nestWithin__closure.prototype = {
- call$1(parentComplex) {
- var t1 = this.complex;
- return parentComplex.concatenate$2(t1, t1.span);
- },
- $signature: 59
- };
- A.SelectorList_nestWithin__closure0.prototype = {
- call$1(resolvedComplex) {
- var t1 = resolvedComplex.leadingCombinators,
- t2 = this.complex,
- t3 = t2.leadingCombinators;
- if (t1.length === 0)
- t1 = t3;
- else {
- t3 = A.List_List$of(t3, true, type$.CssValue_Combinator);
- B.JSArray_methods.addAll$1(t3, t1);
- t1 = t3;
- }
- return A.ComplexSelector$(t1, resolvedComplex.components, t2.span, resolvedComplex.lineBreak);
- },
- $signature: 59
- };
- A.SelectorList__nestWithinCompound_closure.prototype = {
- call$1(simple) {
- var selector;
- if (!(simple instanceof A.PseudoSelector))
- return false;
- selector = simple.selector;
- return selector != null && selector.accept$1(B.C__ParentSelectorVisitor) != null;
- },
- $signature: 13
- };
- A.SelectorList__nestWithinCompound_closure0.prototype = {
- call$1(simple) {
- var _0_2, selector, t1;
- $label0$0: {
- if (simple instanceof A.PseudoSelector) {
- _0_2 = simple.selector;
- if (_0_2 != null) {
- selector = _0_2 == null ? type$.SelectorList._as(_0_2) : _0_2;
- t1 = selector.accept$1(B.C__ParentSelectorVisitor) != null;
- } else {
- selector = null;
- t1 = false;
- }
- } else {
- selector = null;
- t1 = false;
- }
- if (t1) {
- t1 = simple.withSelector$1(selector.nestWithin$2$implicitParent(this.parent, false));
- break $label0$0;
- }
- t1 = simple;
- break $label0$0;
- }
- return t1;
- },
- $signature: 333
- };
- A.SelectorList__nestWithinCompound_closure1.prototype = {
- call$1(complex) {
- var lastComponent, suffix, lastSimples, t1, t2, last, t3, error, stackTrace, t4, t5, t6, t7, exception, _this = this;
- try {
- t4 = complex.components;
- lastComponent = B.JSArray_methods.get$last(t4);
- if (lastComponent.combinators.length !== 0) {
- t1 = A.MultiSpanSassException$('Selector "' + complex.toString$0(0) + string$.x22x20can_, A.SpanExtensions_trimRight(lastComponent.span), "outer selector", A.LinkedHashMap_LinkedHashMap$_literal([_this.parentSelector.span, "parent selector"], type$.FileSpan, type$.String), null);
- throw A.wrapException(t1);
- }
- suffix = _this.parentSelector.suffix;
- lastSimples = lastComponent.selector.components;
- t5 = type$.SimpleSelector;
- t6 = _this.resolvedSimples;
- t7 = J.getInterceptor$ax(t6);
- if (suffix == null) {
- t1 = A.List_List$of(lastSimples, true, t5);
- J.addAll$1$ax(t1, t7.skip$1(t6, 1));
- t1 = t1;
- } else {
- t2 = A.List_List$of(A.IterableExtension_get_exceptLast(lastSimples), true, t5);
- J.add$1$ax(t2, J.get$last$ax(lastSimples).addSuffix$1(suffix));
- J.addAll$1$ax(t2, t7.skip$1(t6, 1));
- t1 = t2;
- }
- t2 = _this.component;
- last = A.CompoundSelector$(t1, t2.selector.span);
- t3 = A.List_List$of(A.IterableExtension_get_exceptLast(t4), true, type$.ComplexSelectorComponent);
- t4 = t2.span;
- J.add$1$ax(t3, new A.ComplexSelectorComponent(last, A.List_List$unmodifiable(t2.combinators, type$.CssValue_Combinator), t4));
- t4 = A.ComplexSelector$(complex.leadingCombinators, t3, t4, complex.lineBreak);
- return t4;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace(error.withAdditionalSpan$2(_this.parentSelector.span, "parent selector"), error, stackTrace);
- } else
- throw exception;
- }
- },
- $signature: 59
- };
- A.SelectorList_withAdditionalCombinators_closure.prototype = {
- call$1(complex) {
- return complex.withAdditionalCombinators$1(this.combinators);
- },
- $signature: 59
- };
- A._ParentSelectorVisitor.prototype = {
- visitParentSelector$1(selector) {
- return selector;
- }
- };
- A.__ParentSelectorVisitor_Object_SelectorSearchVisitor.prototype = {};
- A.ParentSelector.prototype = {
- accept$1$1(visitor) {
- return visitor.visitParentSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1(compound) {
- return A.throwExpression(A.UnsupportedError$("& doesn't support unification."));
- }
- };
- A.PlaceholderSelector.prototype = {
- accept$1$1(visitor) {
- return visitor.visitPlaceholderSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- return new A.PlaceholderSelector(this.name + suffix, this.span);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.PlaceholderSelector && other.name === this.name;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- }
- };
- A.PseudoSelector.prototype = {
- get$isHostContext() {
- return this.isClass && this.name === "host-context" && this.selector != null;
- },
- get$hasComplicatedSuperselectorSemantics() {
- return !this.isClass || this.selector != null;
- },
- get$specificity() {
- var result, _this = this,
- value = _this.__PseudoSelector_specificity_FI;
- if (value === $) {
- result = new A.PseudoSelector_specificity_closure(_this).call$0();
- _this.__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__PseudoSelector_specificity_FI = result;
- value = result;
- }
- return value;
- },
- withSelector$1(selector) {
- var _this = this;
- return A.PseudoSelector$(_this.name, _this.span, _this.argument, !_this.isClass, selector);
- },
- addSuffix$1(suffix) {
- var _this = this;
- if (_this.argument != null || _this.selector != null)
- _this.super$SimpleSelector$addSuffix(suffix);
- return A.PseudoSelector$(_this.name + suffix, _this.span, null, !_this.isClass, null);
- },
- unify$1(compound) {
- var other, result, t2, addedThis, _i, simple, _this = this,
- t1 = _this.name;
- if (t1 === "host" || t1 === "host-context") {
- if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure()))
- return null;
- } else {
- if (compound.length === 1) {
- other = compound[0];
- if (!(other instanceof A.UniversalSelector))
- if (other instanceof A.PseudoSelector)
- t1 = other.isClass && other.name === "host" || other.get$isHostContext();
- else
- t1 = false;
- else
- t1 = true;
- } else {
- other = null;
- t1 = false;
- }
- if (t1)
- return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector));
- }
- if (B.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = A._setArrayType([], type$.JSArray_SimpleSelector);
- for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (simple instanceof A.PseudoSelector && !simple.isClass) {
- if (t2)
- return null;
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- },
- isSuperselector$1(other) {
- var selector, t1, t2, _this = this;
- if (_this.super$SimpleSelector$isSuperselector(other))
- return true;
- selector = _this.selector;
- if (selector == null)
- return _this.$eq(0, other);
- if (other instanceof A.PseudoSelector && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) {
- t1 = A.NullableExtension_andThen(other.selector, selector.get$isSuperselector());
- return t1 == null ? false : t1;
- }
- t1 = type$.JSArray_SimpleSelector;
- t2 = _this.span;
- return A.compoundIsSuperselector(A.CompoundSelector$(A._setArrayType([_this], t1), t2), A.CompoundSelector$(A._setArrayType([other], t1), t2), null);
- },
- accept$1$1(visitor) {
- return visitor.visitPseudoSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
- },
- get$hashCode(_) {
- var _this = this,
- t1 = B.JSString_methods.get$hashCode(_this.name),
- t2 = !_this.isClass ? 519018 : 218159;
- return t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector);
- }
- };
- A.PseudoSelector_specificity_closure.prototype = {
- call$0() {
- var selector, t2,
- t1 = this.$this;
- if (!t1.isClass)
- return 1;
- selector = t1.selector;
- if (selector == null)
- return A.SimpleSelector.prototype.get$specificity.call(t1);
- switch (t1.normalizedName) {
- case "where":
- return 0;
- case "is":
- case "not":
- case "has":
- case "matches":
- t1 = selector.components;
- return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")));
- case "nth-child":
- case "nth-last-child":
- t1 = A.SimpleSelector.prototype.get$specificity.call(t1);
- t2 = selector.components;
- return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>")));
- default:
- return A.SimpleSelector.prototype.get$specificity.call(t1);
- }
- },
- $signature: 10
- };
- A.PseudoSelector_specificity__closure.prototype = {
- call$1(component) {
- return component.get$specificity();
- },
- $signature: 177
- };
- A.PseudoSelector_specificity__closure0.prototype = {
- call$1(component) {
- return component.get$specificity();
- },
- $signature: 177
- };
- A.PseudoSelector_unify_closure.prototype = {
- call$1(simple) {
- var t1;
- if (simple instanceof A.PseudoSelector)
- t1 = simple.isClass && simple.name === "host" || simple.selector != null;
- else
- t1 = false;
- return t1;
- },
- $signature: 13
- };
- A.QualifiedName.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.QualifiedName && other.name === this.name && other.namespace == this.namespace;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
- },
- toString$0(_) {
- var t1 = this.namespace,
- t2 = this.name;
- return t1 == null ? t2 : t1 + "|" + t2;
- }
- };
- A.SimpleSelector.prototype = {
- get$specificity() {
- return 1000;
- },
- get$hasComplicatedSuperselectorSemantics() {
- return false;
- },
- addSuffix$1(suffix) {
- return A.throwExpression(A.MultiSpanSassException$('Selector "' + this.toString$0(0) + "\" can't have a suffix", this.span, "outer selector", A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String), null));
- },
- unify$1(compound) {
- var other, t1, result, addedThis, _i, simple, _this = this;
- if (compound.length === 1) {
- other = compound[0];
- if (!(other instanceof A.UniversalSelector))
- if (other instanceof A.PseudoSelector)
- t1 = other.isClass && other.name === "host" || other.get$isHostContext();
- else
- t1 = false;
- else
- t1 = true;
- } else {
- other = null;
- t1 = false;
- }
- if (t1)
- return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector));
- if (B.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = A._setArrayType([], type$.JSArray_SimpleSelector);
- for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (!addedThis && simple instanceof A.PseudoSelector) {
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- },
- isSuperselector$1(other) {
- var list;
- if (this.$eq(0, other))
- return true;
- if (other instanceof A.PseudoSelector && other.isClass) {
- list = other.selector;
- if (list != null && $._subselectorPseudos.contains$1(0, other.normalizedName))
- return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure(this));
- }
- return false;
- }
- };
- A.SimpleSelector_isSuperselector_closure.prototype = {
- call$1(complex) {
- var t1 = complex.components;
- return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure(this.$this));
- },
- $signature: 16
- };
- A.SimpleSelector_isSuperselector__closure.prototype = {
- call$1(simple) {
- return this.$this.isSuperselector$1(simple);
- },
- $signature: 13
- };
- A.TypeSelector.prototype = {
- get$specificity() {
- return 1;
- },
- accept$1$1(visitor) {
- return visitor.visitTypeSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- var t1 = this.name;
- return new A.TypeSelector(new A.QualifiedName(t1.name + suffix, t1.namespace), this.span);
- },
- unify$1(compound) {
- var unified, t1,
- _0_0 = B.JSArray_methods.get$first(compound);
- if (_0_0 instanceof A.UniversalSelector || _0_0 instanceof A.TypeSelector) {
- unified = A.unifyUniversalAndElement(this, B.JSArray_methods.get$first(compound));
- if (unified == null)
- return null;
- t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector);
- B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
- return t1;
- } else {
- t1 = A._setArrayType([this], type$.JSArray_SimpleSelector);
- B.JSArray_methods.addAll$1(t1, compound);
- return t1;
- }
- },
- isSuperselector$1(other) {
- var t1, t2;
- if (!this.super$SimpleSelector$isSuperselector(other))
- if (other instanceof A.TypeSelector) {
- t1 = this.name;
- t2 = other.name;
- if (t1.name === t2.name) {
- t1 = t1.namespace;
- t1 = t1 === "*" || t1 == t2.namespace;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.TypeSelector && other.name.$eq(0, this.name);
- },
- get$hashCode(_) {
- var t1 = this.name;
- return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
- }
- };
- A.UniversalSelector.prototype = {
- get$specificity() {
- return 0;
- },
- accept$1$1(visitor) {
- return visitor.visitUniversalSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1(compound) {
- var _0_4, t1, rest, unified, _this = this, _null = null,
- _0_1 = compound.length,
- _0_4_isSet = _0_1 >= 1;
- if (_0_4_isSet) {
- _0_4 = compound[0];
- t1 = _0_4;
- if (!(t1 instanceof A.UniversalSelector))
- t1 = _0_4 instanceof A.TypeSelector;
- else
- t1 = true;
- rest = t1 ? B.JSArray_methods.sublist$1(compound, 1) : _null;
- } else {
- rest = _null;
- _0_4 = rest;
- t1 = false;
- }
- if (t1) {
- unified = A.unifyUniversalAndElement(_this, B.JSArray_methods.get$first(compound));
- if (unified == null)
- return _null;
- t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector);
- B.JSArray_methods.addAll$1(t1, rest);
- return t1;
- }
- if (_0_1 === 1) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- _0_4 = compound[0];
- t1 = _0_4;
- _0_4_isSet = true;
- }
- if (t1 instanceof A.PseudoSelector) {
- t1 = _0_4_isSet ? _0_4 : compound[0];
- type$.PseudoSelector._as(t1);
- t1 = t1.isClass && t1.name === "host" || t1.get$isHostContext();
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- return _null;
- if (_0_1 <= 0)
- return A._setArrayType([_this], type$.JSArray_SimpleSelector);
- t1 = _this.namespace;
- if (t1 == null || t1 === "*")
- t1 = compound;
- else {
- t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector);
- B.JSArray_methods.addAll$1(t1, compound);
- }
- return t1;
- },
- isSuperselector$1(other) {
- var t1 = this.namespace;
- if (t1 === "*")
- return true;
- if (other instanceof A.TypeSelector)
- return t1 == other.name.namespace;
- if (other instanceof A.UniversalSelector)
- return t1 == other.namespace;
- return t1 == null || this.super$SimpleSelector$isSuperselector(other);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.UniversalSelector && other.namespace == this.namespace;
- },
- get$hashCode(_) {
- return J.get$hashCode$(this.namespace);
- }
- };
- A._compileStylesheet_closure0.prototype = {
- call$1(url) {
- var t1;
- if (url === "") {
- t1 = this.stylesheet.span;
- t1 = A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text();
- } else
- t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
- return t1;
- },
- $signature: 5
- };
- A.AsyncEnvironment.prototype = {
- closure$0() {
- var t4, t5, t6, _this = this,
- t1 = _this._async_environment$_forwardedModules,
- t2 = _this._async_environment$_nestedForwardedModules,
- t3 = _this._async_environment$_variables;
- t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
- t4 = _this._async_environment$_variableNodes;
- t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
- t5 = _this._async_environment$_functions;
- t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
- t6 = _this._async_environment$_mixins;
- t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
- return A.AsyncEnvironment$_(_this._async_environment$_modules, _this._async_environment$_namespaceNodes, _this._async_environment$_globalModules, _this._async_environment$_importedModules, t1, t2, _this._async_environment$_allModules, t3, t4, t5, t6, _this._async_environment$_content);
- },
- forwardModule$2(module, rule) {
- var view, t1, t2, _this = this,
- forwardedModules = _this._async_environment$_forwardedModules;
- if (forwardedModules == null)
- forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
- view = A.ForwardedModuleView_ifNecessary(module, rule, type$.AsyncCallable);
- for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
- t2 = t1.__js_helper$_current;
- _this._async_environment$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
- _this._async_environment$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
- _this._async_environment$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
- }
- _this._async_environment$_allModules.push(module);
- forwardedModules.$indexSet(0, view, rule);
- },
- _async_environment$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
- var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = type$.String, t2 = A.MapExtensions_get_pairs(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- $name = t4._0;
- small = t4._1;
- large = larger.$index(0, $name);
- if (large == null)
- continue;
- if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
- continue;
- if (t3)
- $name = "$" + $name;
- t2 = this._async_environment$_forwardedModules;
- if (t2 == null)
- span = null;
- else {
- t2 = t2.$index(0, oldModule);
- span = t2 == null ? null : J.get$span$z(t2);
- }
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
- if (span != null)
- t2.$indexSet(0, span, "original @forward");
- throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
- }
- },
- importForwards$1(module) {
- var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this,
- forwarded = module._async_environment$_environment._async_environment$_forwardedModules;
- if (forwarded == null)
- return;
- forwardedModules = _this._async_environment$_forwardedModules;
- if (forwardedModules != null) {
- t1 = type$.Module_AsyncCallable;
- t2 = type$.AstNode;
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t1 = A.MapExtensions_get_pairs(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._async_environment$_globalModules; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- module = t4._0;
- node = t4._1;
- if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
- t3.$indexSet(0, module, node);
- }
- forwarded = t3;
- } else
- forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
- for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
- t2.add$1(0, t4.get$current(t4));
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
- t5 = t4.__js_helper$_current;
- for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t3.add$1(0, t5.get$current(t5));
- }
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
- for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t1.add$1(0, t5.get$current(t5));
- t4 = _this._async_environment$_variables;
- t5 = t4.length;
- if (t5 === 1) {
- for (t5 = _this._async_environment$_importedModules, t6 = type$.Module_AsyncCallable, t7 = type$.AstNode, t8 = A.MapExtensions_get_pairs(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.AsyncCallable, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
- t11 = t8[_i];
- module = t11._0;
- node = t11._1;
- shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
- if (shadowed != null) {
- t5.remove$1(0, module);
- t11 = shadowed.variables;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.functions;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.mixins;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed._shadowed_view$_inner;
- t11 = t11.get$css(t11);
- t11 = J.get$isEmpty$asx(t11.get$children(t11));
- } else
- t11 = false;
- } else
- t11 = false;
- } else
- t11 = false;
- if (!t11)
- t5.$indexSet(0, shadowed, node);
- }
- }
- for (t6 = A.MapExtensions_get_pairs(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
- t8 = t6[_i];
- module = t8._0;
- node = t8._1;
- shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
- if (shadowed != null) {
- forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view$_inner;
- t8 = t8.get$css(t8);
- t8 = J.get$isEmpty$asx(t8.get$children(t8));
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8)
- forwardedModules.$indexSet(0, shadowed, node);
- }
- }
- t5.addAll$1(0, forwarded);
- forwardedModules.addAll$1(0, forwarded);
- } else {
- t6 = _this._async_environment$_nestedForwardedModules;
- if (t6 == null) {
- _length = t5 - 1;
- _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable);
- for (t5 = type$.JSArray_Module_AsyncCallable, _i = 0; _i < _length; ++_i)
- _list[_i] = A._setArrayType([], t5);
- _this._async_environment$_nestedForwardedModules = _list;
- t5 = _list;
- } else
- t5 = t6;
- B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
- }
- for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._async_environment$_variableIndices, t6 = _this._async_environment$_variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t8 = t2._collection$_current;
- if (t8 == null)
- t8 = t7._as(t8);
- t5.remove$1(0, t8);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
- J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
- }
- for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._async_environment$_functionIndices, t4 = _this._async_environment$_functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t6 = t2._collection$_current;
- if (t6 == null)
- t6 = t5._as(t6);
- t3.remove$1(0, t6);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
- }
- for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t5 = t1._collection$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- t2.remove$1(0, t5);
- J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
- }
- },
- getVariable$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._async_environment$_lastVariableName === $name) {
- t1 = _this._async_environment$_lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._async_environment$_variables[t1], $name);
- return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment$_variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._async_environment$_variables[_0_0], $name);
- return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment$_variableIndex$1($name);
- if (_1_0 != null) {
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment$_variables[_1_0], $name);
- return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment$_getVariableFromGlobalModule$1($name);
- }
- },
- getVariable$1($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _async_environment$_getVariableFromGlobalModule$1($name) {
- return this._async_environment$_fromOneModule$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure($name));
- },
- getVariableNode$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._async_environment$_lastVariableName === $name) {
- t1 = _this._async_environment$_lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._async_environment$_variableNodes[t1], $name);
- return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment$_variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._async_environment$_variableNodes[_0_0], $name);
- return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment$_variableIndex$1($name);
- if (_1_0 != null) {
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment$_variableNodes[_1_0], $name);
- return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment$_getVariableNodeFromGlobalModule$1($name);
- }
- },
- _async_environment$_getVariableNodeFromGlobalModule$1($name) {
- var t1, t2, _0_0;
- for (t1 = this._async_environment$_importedModules, t2 = this._async_environment$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
- t1 = t2._currentIterator;
- _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- globalVariableExists$2$namespace($name, namespace) {
- if (namespace != null)
- return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name);
- if (B.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name))
- return true;
- return this._async_environment$_getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _async_environment$_variableIndex$1($name) {
- var t1, i;
- for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
- if (namespace != null) {
- _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._async_environment$_variables.length === 1) {
- _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure(_this, $name));
- t1 = _this._async_environment$_variables;
- if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._async_environment$_fromOneModule$3($name, "variable", new A.AsyncEnvironment_setVariable_closure0($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment$_variableNodes), $name, nodeWithSpan);
- return;
- }
- nestedForwardedModules = _this._async_environment$_nestedForwardedModules;
- if (nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null)
- for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- if (t5.get$variables().containsKey$1($name)) {
- t5.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- if (_this._async_environment$_lastVariableName === $name) {
- t1 = _this._async_environment$_lastVariableIndex;
- t1.toString;
- index = t1;
- } else
- index = _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure1(_this, $name));
- if (!_this._async_environment$_inSemiGlobalScope && index === 0) {
- index = _this._async_environment$_variables.length - 1;
- _this._async_environment$_variableIndices.$indexSet(0, $name, index);
- }
- _this._async_environment$_lastVariableName = $name;
- _this._async_environment$_lastVariableIndex = index;
- J.$indexSet$ax(_this._async_environment$_variables[index], $name, value);
- J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan);
- },
- setVariable$4$global($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._async_environment$_variables,
- t2 = t1.length;
- _this._async_environment$_lastVariableName = $name;
- index = _this._async_environment$_lastVariableIndex = t2 - 1;
- _this._async_environment$_variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null) {
- t1 = _this._async_environment$_getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._async_environment$_functionIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._async_environment$_functions[_0_0], $name);
- return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment$_functionIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment$_functions[_1_0], $name);
- return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment$_getFunctionFromGlobalModule$1($name);
- }
- },
- getFunction$1($name) {
- return this.getFunction$2$namespace($name, null);
- },
- _async_environment$_getFunctionFromGlobalModule$1($name) {
- return this._async_environment$_fromOneModule$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure($name));
- },
- _async_environment$_functionIndex$1($name) {
- var t1, i;
- for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._async_environment$_mixinIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._async_environment$_mixins[_0_0], $name);
- return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment$_mixinIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment$_mixins[_1_0], $name);
- return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment$_getMixinFromGlobalModule$1($name);
- }
- },
- _async_environment$_getMixinFromGlobalModule$1($name) {
- return this._async_environment$_fromOneModule$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure($name));
- },
- _async_environment$_mixinIndex$1($name) {
- var t1, i;
- for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- withContent$2($content, callback) {
- return this.withContent$body$AsyncEnvironment($content, callback);
- },
- withContent$body$AsyncEnvironment($content, callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldContent;
- var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldContent = $async$self._async_environment$_content;
- $async$self._async_environment$_content = $content;
- $async$goto = 2;
- return A._asyncAwait(callback.call$0(), $async$withContent$2);
- case 2:
- // returning from await.
- $async$self._async_environment$_content = oldContent;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$withContent$2, $async$completer);
- },
- asMixin$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldInMixin;
- var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInMixin = $async$self._async_environment$_inMixin;
- $async$self._async_environment$_inMixin = true;
- $async$goto = 2;
- return A._asyncAwait(callback.call$0(), $async$asMixin$1);
- case 2:
- // returning from await.
- $async$self._async_environment$_inMixin = oldInMixin;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$asMixin$1, $async$completer);
- },
- scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) {
- return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T);
- },
- scope$1$1(callback, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
- },
- scope$1$2$when(callback, when, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
- },
- scope$1$2$semiGlobal(callback, semiGlobal, $T) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
- },
- scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6;
- var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope;
- wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope;
- $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
- $async$goto = !when ? 3 : 4;
- break;
- case 3:
- // then
- $async$handler = 5;
- $async$goto = 8;
- return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 8:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- $async$next = [1];
- // goto finally
- $async$goto = 6;
- break;
- $async$next.push(7);
- // goto finally
- $async$goto = 6;
- break;
- case 5:
- // uncaught
- $async$next = [2];
- case 6:
- // finally
- $async$handler = 2;
- $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 7:
- // after finally
- case 4:
- // join
- t1 = $async$self._async_environment$_variables;
- t2 = type$.String;
- B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
- t3 = $async$self._async_environment$_variableNodes;
- B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
- t4 = $async$self._async_environment$_functions;
- t5 = type$.AsyncCallable;
- B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t6 = $async$self._async_environment$_mixins;
- B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t5 = $async$self._async_environment$_nestedForwardedModules;
- if (t5 != null)
- t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable));
- $async$handler = 9;
- $async$goto = 12;
- return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 12:
- // returning from await.
- t2 = $async$result;
- $async$returnValue = t2;
- $async$next = [1];
- // goto finally
- $async$goto = 10;
- break;
- $async$next.push(11);
- // goto finally
- $async$goto = 10;
- break;
- case 9:
- // uncaught
- $async$next = [2];
- case 10:
- // finally
- $async$handler = 2;
- $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
- $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null;
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment$_variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- B.JSArray_methods.removeLast$0(t3);
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = $async$self._async_environment$_functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = $async$self._async_environment$_mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = $async$self._async_environment$_nestedForwardedModules;
- if (t1 != null)
- t1.pop();
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 11:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
- },
- toImplicitConfiguration$0() {
- var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
- t1 = type$.String,
- configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
- for (t2 = this._async_environment$_variables, t3 = type$.Value, t4 = this._async_environment$_variableNodes, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4[i];
- for (t5 = A.MapExtensions_get_pairs(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
- t6 = t5.get$current(t5);
- $name = t6._0;
- value = t6._1;
- t6 = nodes.$index(0, $name);
- t6.toString;
- configuration.$indexSet(0, $name, new A.ConfiguredValue(value, null, t6));
- }
- }
- return new A.Configuration(configuration, null);
- },
- toModule$3(css, preModuleComments, extensionStore) {
- return A._EnvironmentModule__EnvironmentModule0(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toModule_closure()));
- },
- toDummyModule$0() {
- return A._EnvironmentModule__EnvironmentModule0(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty7, B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure()));
- },
- _async_environment$_getModule$1(namespace) {
- var _0_0 = this._async_environment$_modules.$index(0, namespace);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null));
- },
- _async_environment$_fromOneModule$1$3($name, type, callback) {
- var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
- _0_0 = this._async_environment$_nestedForwardedModules;
- if (_0_0 != null)
- for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
- if (_1_0 != null)
- return _1_0;
- }
- }
- for (t1 = this._async_environment$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
- _2_0 = callback.call$1(t1.__js_helper$_current);
- if (_2_0 != null)
- return _2_0;
- }
- for (t1 = this._async_environment$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.AsyncCallable, value = null, identity = null; t2.moveNext$0();) {
- t4 = t2.__js_helper$_current;
- valueInModule = callback.call$1(t4);
- if (valueInModule == null)
- continue;
- identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t3 = A.MapExtensions_get_pairs(t1, type$.Module_AsyncCallable, type$.AstNode), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
- t1 = t3.get$current(t3);
- module = t1._0;
- node = t1._1;
- if (callback.call$1(module) != null)
- t2.$indexSet(0, node.get$span(node), t4);
- }
- throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _async_environment$_fromOneModule$3($name, type, callback) {
- return this._async_environment$_fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- A.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = {
- call$1(module) {
- return module.get$variables().$index(0, this.name);
- },
- $signature: 318
- };
- A.AsyncEnvironment_setVariable_closure.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._async_environment$_lastVariableName = this.name;
- return t1._async_environment$_lastVariableIndex = 0;
- },
- $signature: 10
- };
- A.AsyncEnvironment_setVariable_closure0.prototype = {
- call$1(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- },
- $signature: 317
- };
- A.AsyncEnvironment_setVariable_closure1.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._async_environment$_variableIndex$1(this.name);
- return t2 == null ? t1._async_environment$_variables.length - 1 : t2;
- },
- $signature: 10
- };
- A.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = {
- call$1(module) {
- return module.get$functions(module).$index(0, this.name);
- },
- $signature: 178
- };
- A.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = {
- call$1(module) {
- return module.get$mixins().$index(0, this.name);
- },
- $signature: 178
- };
- A.AsyncEnvironment_toModule_closure.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable);
- },
- $signature: 180
- };
- A.AsyncEnvironment_toDummyModule_closure.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable);
- },
- $signature: 180
- };
- A._EnvironmentModule0.prototype = {
- get$url(_) {
- var t1 = this.css;
- t1 = t1.get$span(t1);
- return t1.get$sourceUrl(t1);
- },
- setVariable$3($name, value, nodeWithSpan) {
- var t1, t2,
- _0_0 = this._async_environment$_modulesByVariable.$index(0, $name);
- if (_0_0 != null) {
- _0_0.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._async_environment$_environment;
- t2 = t1._async_environment$_variables;
- if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
- throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
- J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment$_variableNodes), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1($name) {
- var module = this._async_environment$_modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0() {
- var _0_0, _this = this;
- if (!_this.transitivelyContainsCss)
- return _this;
- _0_0 = A.cloneCssStylesheet(_this.css, _this.extensionStore);
- return A._EnvironmentModule$_0(_this._async_environment$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._async_environment$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
- },
- toString$0(_) {
- var t1 = this.css,
- t2 = t1.get$span(t1);
- if (t2.get$sourceUrl(t2) == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span(t1);
- t1 = t1.get$sourceUrl(t1);
- t2 = $.$get$context();
- t1.toString;
- t1 = t2.prettyUri$1(t1);
- }
- return t1;
- },
- $isModule0: 1,
- get$upstream() {
- return this.upstream;
- },
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- },
- get$extensionStore() {
- return this.extensionStore;
- },
- get$css(receiver) {
- return this.css;
- },
- get$preModuleComments() {
- return this.preModuleComments;
- },
- get$transitivelyContainsCss() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions() {
- return this.transitivelyContainsExtensions;
- }
- };
- A._EnvironmentModule__EnvironmentModule_closure5.prototype = {
- call$1(module) {
- return module.get$variables();
- },
- $signature: 312
- };
- A._EnvironmentModule__EnvironmentModule_closure6.prototype = {
- call$1(module) {
- return module.get$variableNodes();
- },
- $signature: 306
- };
- A._EnvironmentModule__EnvironmentModule_closure7.prototype = {
- call$1(module) {
- return module.get$functions(module);
- },
- $signature: 185
- };
- A._EnvironmentModule__EnvironmentModule_closure8.prototype = {
- call$1(module) {
- return module.get$mixins();
- },
- $signature: 185
- };
- A._EnvironmentModule__EnvironmentModule_closure9.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 123
- };
- A._EnvironmentModule__EnvironmentModule_closure10.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsExtensions();
- },
- $signature: 123
- };
- A.AsyncImportCache.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
- return this.canonicalize$body$AsyncImportCache(0, url, baseImporter, baseUrl, forImport);
- },
- canonicalize$body$AsyncImportCache(_, url, baseImporter, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl),
- $async$returnValue, $async$self = this, t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, _1_2, result, _2_0, _2_1, _2_5_isSet, _2_3, _2_5, _2_3_isSet, j;
- var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (A.isBrowser())
- t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter) && $async$self._async_import_cache$_importers.length === 0;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(string$.Custom);
- $async$goto = baseImporter != null && url.get$scheme() === "" ? 3 : 4;
- break;
- case 3:
- // then
- resolvedUrl = baseUrl == null ? null : baseUrl.resolveUri$1(url);
- if (resolvedUrl == null)
- resolvedUrl = url;
- key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
- $async$goto = 5;
- return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_perImporterCanonicalizeCache, key, new A.AsyncImportCache_canonicalize_closure($async$self, baseImporter, resolvedUrl, baseUrl, forImport, key, url), type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 5:
- // returning from await.
- relativeResult = $async$result;
- if (relativeResult != null) {
- $async$returnValue = relativeResult;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // join
- key = new A._Record_2_forImport(url, forImport);
- t1 = $async$self._async_import_cache$_canonicalizeCache;
- if (t1.containsKey$1(key)) {
- $async$returnValue = t1.$index(0, key);
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = $async$self._async_import_cache$_importers, t3 = type$.Record_1_nullable_Object, t4 = $async$self._async_import_cache$_perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl, t6 = type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl, cacheable = true, i = 0;
- case 6:
- // for condition
- if (!(i < t2.length)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- importer = t2[i];
- perImporterKey = new A._Record_3_forImport(importer, url, forImport);
- if (t4.containsKey$1(perImporterKey)) {
- t7 = t4.$index(0, perImporterKey);
- _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
- } else
- _1_0 = null;
- _1_2_isSet = t3._is(_1_0);
- if (_1_2_isSet) {
- _1_2 = _1_0._0;
- t7 = _1_2 != null;
- if (t7) {
- t6._as(_1_2);
- result = _1_2;
- } else
- result = null;
- } else {
- _1_2 = null;
- result = null;
- t7 = false;
- }
- if (t7) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (_1_2_isSet)
- t7 = _1_2 == null;
- else
- t7 = false;
- if (t7) {
- // goto for update
- $async$goto = 7;
- break;
- }
- $async$goto = 10;
- return A._asyncAwait($async$self._async_import_cache$_canonicalize$4(importer, url, baseUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 10:
- // returning from await.
- _2_0 = $async$result;
- _2_1 = _2_0._0;
- _2_5_isSet = _2_1 != null;
- if (_2_5_isSet) {
- result = _2_1 == null ? t6._as(_2_1) : _2_1;
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_5 = t7;
- t7 = t7 && cacheable;
- } else {
- _2_5 = null;
- _2_3 = null;
- result = null;
- t7 = false;
- }
- if (t7) {
- t1.$indexSet(0, key, result);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (_2_5_isSet) {
- t7 = _2_5;
- _2_3_isSet = _2_5_isSet;
- } else {
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_3_isSet = true;
- }
- t7 = t7 && !cacheable;
- if (t7) {
- t4.$indexSet(0, perImporterKey, _2_1);
- if (_2_1 != null) {
- $async$returnValue = _2_1;
- // goto return
- $async$goto = 1;
- break;
- }
- // goto break $label0$1
- $async$goto = 9;
- break;
- }
- t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
- if (t7) {
- if (cacheable) {
- for (j = 0; j < i; ++j)
- t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), null);
- cacheable = false;
- }
- if (_2_1 != null) {
- $async$returnValue = _2_1;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- case 9:
- // break $label0$1
- case 7:
- // for update
- ++i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- if (cacheable)
- t1.$indexSet(0, key, null);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
- },
- _async_import_cache$_canonicalize$4(importer, url, baseUrl, forImport) {
- return this._canonicalize$body$AsyncImportCache(importer, url, baseUrl, forImport);
- },
- _canonicalize$body$AsyncImportCache(importer, url, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool),
- $async$returnValue, $async$self = this, t1, passContainingUrl, canonicalizeContext, result, cacheable;
- var $async$_async_import_cache$_canonicalize$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = baseUrl != null ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = url.get$scheme() !== "" ? 6 : 8;
- break;
- case 6:
- // then
- t1 = A._Future$value(importer.isNonCanonicalScheme$1(url.get$scheme()), type$.bool);
- $async$goto = 9;
- return A._asyncAwait(t1, $async$_async_import_cache$_canonicalize$4);
- case 9:
- // returning from await.
- t1 = $async$result;
- passContainingUrl = t1;
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- passContainingUrl = true;
- case 7:
- // join
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- passContainingUrl = false;
- case 4:
- // join
- canonicalizeContext = new A.CanonicalizeContext(forImport, passContainingUrl ? baseUrl : null);
- t1 = type$.nullable_Object;
- t1 = A.runZoned(new A.AsyncImportCache__canonicalize_closure(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.FutureOr_nullable_Uri);
- $async$goto = 10;
- return A._asyncAwait(type$.Future_nullable_Uri._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Uri), $async$_async_import_cache$_canonicalize$4);
- case 10:
- // returning from await.
- result = $async$result;
- cacheable = !passContainingUrl || !canonicalizeContext._wasContainingUrlAccessed;
- if (result == null) {
- $async$returnValue = new A._Record_2(null, cacheable);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = result.get$scheme() === "" ? 11 : 13;
- break;
- case 11:
- // then
- A.WarnForDeprecation_warnForDeprecation($async$self._async_import_cache$_logger, B.Deprecation_IMm, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, null, null);
- // goto join
- $async$goto = 12;
- break;
- case 13:
- // else
- t1 = A._Future$value(importer.isNonCanonicalScheme$1(result.get$scheme()), type$.bool);
- $async$goto = 14;
- return A._asyncAwait(t1, $async$_async_import_cache$_canonicalize$4);
- case 14:
- // returning from await.
- if ($async$result)
- throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
- case 12:
- // join
- $async$returnValue = new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_import_cache$_canonicalize$4, $async$completer);
- },
- importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
- return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl, quiet);
- },
- importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
- return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
- },
- importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl, quiet) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet),
- $async$returnValue, $async$self = this;
- var $async$importCanonical$4$originalUrl$quiet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl, quiet), type$.Uri, type$.nullable_Stylesheet), $async$importCanonical$4$originalUrl$quiet);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$importCanonical$4$originalUrl$quiet, $async$completer);
- },
- humanize$1(canonicalUrl) {
- var t1 = A.IterableNullableExtension_whereNotNull(this._async_import_cache$_canonicalizeCache.get$values(0), type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl),
- t2 = t1.$ti;
- t2 = A.NullableExtension_andThen(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.AsyncImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.AsyncImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.AsyncImportCache_humanize_closure1()), new A.AsyncImportCache_humanize_closure2(canonicalUrl));
- return t2 == null ? canonicalUrl : t2;
- },
- sourceMapUrl$1(_, canonicalUrl) {
- var t1 = this._async_import_cache$_resultsCache.$index(0, canonicalUrl);
- t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
- return t1 == null ? canonicalUrl : t1;
- }
- };
- A.AsyncImportCache_canonicalize_closure.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl),
- $async$returnValue, $async$self = this, t1, t2, _0_0, result;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.baseUrl;
- $async$goto = 3;
- return A._asyncAwait(t1._async_import_cache$_canonicalize$4($async$self.baseImporter, $async$self.resolvedUrl, t2, $async$self.forImport), $async$call$0);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- result = _0_0._0;
- _0_0._1;
- if (t2 != null)
- t1._async_import_cache$_nonCanonicalRelativeUrls.$indexSet(0, $async$self.key, $async$self.url);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 266
- };
- A.AsyncImportCache__canonicalize_closure.prototype = {
- call$0() {
- return this.importer.canonicalize$1(0, this.url);
- },
- $signature: 263
- };
- A.AsyncImportCache_importCanonical_closure.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet),
- $async$returnValue, $async$self = this, t3, t4, t1, t2, result;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.canonicalUrl;
- t2 = A._Future$value($async$self.importer.load$1(0, t1), type$.nullable_ImporterResult);
- $async$goto = 3;
- return A._asyncAwait(t2, $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = $async$self.$this;
- t2._async_import_cache$_resultsCache.$indexSet(0, t1, result);
- t3 = result.contents;
- t4 = result.syntax;
- t1 = $async$self.originalUrl.resolveUri$1(t1);
- $async$returnValue = A.Stylesheet_Stylesheet$parse(t3, t4, $async$self.quiet ? $.$get$Logger_quiet() : t2._async_import_cache$_logger, t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 278
- };
- A.AsyncImportCache_humanize_closure.prototype = {
- call$1(result) {
- return J.$eq$(result._1, this.canonicalUrl);
- },
- $signature: 289
- };
- A.AsyncImportCache_humanize_closure0.prototype = {
- call$1(result) {
- return result._2;
- },
- $signature: 294
- };
- A.AsyncImportCache_humanize_closure1.prototype = {
- call$1(url) {
- return url.get$path(url).length;
- },
- $signature: 87
- };
- A.AsyncImportCache_humanize_closure2.prototype = {
- call$1(url) {
- var t1 = $.$get$url(),
- t2 = this.canonicalUrl;
- return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
- },
- $signature: 43
- };
- A.AsyncBuiltInCallable.prototype = {
- callbackFor$2(positional, names) {
- return new A._Record_2(this._async_built_in$_arguments, this._async_built_in$_callback);
- },
- $isAsyncCallable: 1,
- get$name(receiver) {
- return this.name;
- },
- get$acceptsContent() {
- return this.acceptsContent;
- }
- };
- A.AsyncBuiltInCallable$mixin_closure.prototype = {
- call$1($arguments) {
- return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments);
- },
- $call$body$AsyncBuiltInCallable$mixin_closure($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.callback.call$1($arguments);
- $async$goto = 3;
- return A._asyncAwait(t1 instanceof A._Future ? t1 : A._Future$value(t1, type$.void), $async$call$1);
- case 3:
- // returning from await.
- $async$returnValue = B.C__SassNull;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 257
- };
- A.BuiltInCallable.prototype = {
- callbackFor$2(positional, names) {
- var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
- for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- overload = t1[_i];
- t3 = overload._0;
- if (t3.matches$2(positional, names))
- return overload;
- mismatchDistance = t3.$arguments.length - positional;
- if (minMismatchDistance != null) {
- t3 = Math.abs(mismatchDistance);
- t4 = Math.abs(minMismatchDistance);
- if (t3 > t4)
- continue;
- if (t3 === t4 && mismatchDistance < 0)
- continue;
- }
- minMismatchDistance = mismatchDistance;
- fuzzyMatch = overload;
- }
- if (fuzzyMatch != null)
- return fuzzyMatch;
- throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads."));
- },
- withName$1($name) {
- return new A.BuiltInCallable($name, this._overloads, this.acceptsContent);
- },
- $isCallable0: 1,
- $isAsyncCallable: 1,
- $isAsyncBuiltInCallable: 1,
- get$name(receiver) {
- return this.name;
- },
- get$acceptsContent() {
- return this.acceptsContent;
- }
- };
- A.BuiltInCallable$mixin_closure.prototype = {
- call$1($arguments) {
- this.callback.call$1($arguments);
- return B.C__SassNull;
- },
- $signature: 6
- };
- A.PlainCssCallable.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.PlainCssCallable && this.name === other.name;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- },
- $isCallable0: 1,
- $isAsyncCallable: 1,
- get$name(receiver) {
- return this.name;
- }
- };
- A.UserDefinedCallable.prototype = {
- get$name(_) {
- return this.declaration.name;
- },
- $isCallable0: 1,
- $isAsyncCallable: 1
- };
- A._compileStylesheet_closure.prototype = {
- call$1(url) {
- var t1;
- if (url === "") {
- t1 = this.stylesheet.span;
- t1 = A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text();
- } else
- t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
- return t1;
- },
- $signature: 5
- };
- A.CompileResult.prototype = {};
- A.Configuration.prototype = {
- throughForward$1($forward) {
- var _0_0, _1_0, _2_0, t1, hiddenVariables,
- newValues = this._configuration$_values;
- if (newValues.get$isEmpty(newValues))
- return B.Configuration_Map_empty_null;
- _0_0 = $forward.prefix;
- if (_0_0 != null)
- newValues = new A.UnprefixedMapView(newValues, _0_0, type$.UnprefixedMapView_ConfiguredValue);
- _1_0 = $forward.shownVariables;
- if (_1_0 != null)
- newValues = new A.LimitedMapView(newValues, _1_0._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue);
- else {
- _2_0 = $forward.hiddenVariables;
- if (_2_0 != null) {
- t1 = _2_0._base.get$isNotEmpty(0);
- hiddenVariables = _2_0;
- } else {
- hiddenVariables = null;
- t1 = false;
- }
- if (t1)
- newValues = A.LimitedMapView$blocklist(newValues, hiddenVariables, type$.String, type$.ConfiguredValue);
- }
- return this._withValues$1(newValues);
- },
- _withValues$1(values) {
- var t1 = this.__originalConfiguration;
- return new A.Configuration(values, t1 == null ? this : t1);
- },
- toString$0(_) {
- var t2, t3,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(this._configuration$_values, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push("$" + t3._0 + ": " + t3._1.toString$0(0));
- }
- return "(" + B.JSArray_methods.join$1(t1, ",") + ")";
- }
- };
- A.ExplicitConfiguration.prototype = {
- _withValues$1(values) {
- var t1 = this.__originalConfiguration;
- if (t1 == null)
- t1 = this;
- return new A.ExplicitConfiguration(this.nodeWithSpan, values, t1);
- }
- };
- A.ConfiguredValue.prototype = {
- toString$0(_) {
- return A.serializeValue(this.value, true, true);
- }
- };
- A.Deprecation.prototype = {
- _enumToString$0() {
- return "Deprecation." + this._name;
- },
- toString$0(_) {
- return this.id;
- }
- };
- A.Deprecation_fromId_closure.prototype = {
- call$1(deprecation) {
- return deprecation.id === this.id;
- },
- $signature: 302
- };
- A.Environment.prototype = {
- closure$0() {
- var t4, t5, t6, _this = this,
- t1 = _this._forwardedModules,
- t2 = _this._nestedForwardedModules,
- t3 = _this._variables;
- t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
- t4 = _this._variableNodes;
- t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
- t5 = _this._functions;
- t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
- t6 = _this._mixins;
- t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
- return A.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._importedModules, t1, t2, _this._allModules, t3, t4, t5, t6, _this._content);
- },
- forwardModule$2(module, rule) {
- var view, t1, t2, _this = this,
- forwardedModules = _this._forwardedModules;
- if (forwardedModules == null)
- forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
- view = A.ForwardedModuleView_ifNecessary(module, rule, type$.Callable);
- for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
- t2 = t1.__js_helper$_current;
- _this._assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
- _this._assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
- _this._assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
- }
- _this._allModules.push(module);
- forwardedModules.$indexSet(0, view, rule);
- },
- _assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
- var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = type$.String, t2 = A.MapExtensions_get_pairs(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- $name = t4._0;
- small = t4._1;
- large = larger.$index(0, $name);
- if (large == null)
- continue;
- if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
- continue;
- if (t3)
- $name = "$" + $name;
- t2 = this._forwardedModules;
- if (t2 == null)
- span = null;
- else {
- t2 = t2.$index(0, oldModule);
- span = t2 == null ? null : J.get$span$z(t2);
- }
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
- if (span != null)
- t2.$indexSet(0, span, "original @forward");
- throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
- }
- },
- importForwards$1(module) {
- var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this,
- forwarded = module._environment$_environment._forwardedModules;
- if (forwarded == null)
- return;
- forwardedModules = _this._forwardedModules;
- if (forwardedModules != null) {
- t1 = type$.Module_Callable;
- t2 = type$.AstNode;
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t1 = A.MapExtensions_get_pairs(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._globalModules; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- module = t4._0;
- node = t4._1;
- if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
- t3.$indexSet(0, module, node);
- }
- forwarded = t3;
- } else
- forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
- for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
- t2.add$1(0, t4.get$current(t4));
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
- t5 = t4.__js_helper$_current;
- for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t3.add$1(0, t5.get$current(t5));
- }
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
- for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t1.add$1(0, t5.get$current(t5));
- t4 = _this._variables;
- t5 = t4.length;
- if (t5 === 1) {
- for (t5 = _this._importedModules, t6 = type$.Module_Callable, t7 = type$.AstNode, t8 = A.MapExtensions_get_pairs(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.Callable, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
- t11 = t8[_i];
- module = t11._0;
- node = t11._1;
- shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
- if (shadowed != null) {
- t5.remove$1(0, module);
- t11 = shadowed.variables;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.functions;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.mixins;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed._shadowed_view$_inner;
- t11 = t11.get$css(t11);
- t11 = J.get$isEmpty$asx(t11.get$children(t11));
- } else
- t11 = false;
- } else
- t11 = false;
- } else
- t11 = false;
- if (!t11)
- t5.$indexSet(0, shadowed, node);
- }
- }
- for (t6 = A.MapExtensions_get_pairs(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
- t8 = t6[_i];
- module = t8._0;
- node = t8._1;
- shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
- if (shadowed != null) {
- forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view$_inner;
- t8 = t8.get$css(t8);
- t8 = J.get$isEmpty$asx(t8.get$children(t8));
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8)
- forwardedModules.$indexSet(0, shadowed, node);
- }
- }
- t5.addAll$1(0, forwarded);
- forwardedModules.addAll$1(0, forwarded);
- } else {
- t6 = _this._nestedForwardedModules;
- if (t6 == null) {
- _length = t5 - 1;
- _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable);
- for (t5 = type$.JSArray_Module_Callable, _i = 0; _i < _length; ++_i)
- _list[_i] = A._setArrayType([], t5);
- _this._nestedForwardedModules = _list;
- t5 = _list;
- } else
- t5 = t6;
- B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
- }
- for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._variableIndices, t6 = _this._variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t8 = t2._collection$_current;
- if (t8 == null)
- t8 = t7._as(t8);
- t5.remove$1(0, t8);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
- J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
- }
- for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._functionIndices, t4 = _this._functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t6 = t2._collection$_current;
- if (t6 == null)
- t6 = t5._as(t6);
- t3.remove$1(0, t6);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
- }
- for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._mixinIndices, t3 = _this._mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t5 = t1._collection$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- t2.remove$1(0, t5);
- J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
- }
- },
- getVariable$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._lastVariableName === $name) {
- t1 = _this._lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._variables[t1], $name);
- return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._lastVariableName = $name;
- _this._lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._variables[_0_0], $name);
- return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._variableIndex$1($name);
- if (_1_0 != null) {
- _this._lastVariableName = $name;
- _this._lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._variables[_1_0], $name);
- return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
- } else
- return _this._getVariableFromGlobalModule$1($name);
- }
- },
- getVariable$1($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _getVariableFromGlobalModule$1($name) {
- return this._fromOneModule$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure($name));
- },
- getVariableNode$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._lastVariableName === $name) {
- t1 = _this._lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._variableNodes[t1], $name);
- return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._lastVariableName = $name;
- _this._lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._variableNodes[_0_0], $name);
- return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._variableIndex$1($name);
- if (_1_0 != null) {
- _this._lastVariableName = $name;
- _this._lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._variableNodes[_1_0], $name);
- return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
- } else
- return _this._getVariableNodeFromGlobalModule$1($name);
- }
- },
- _getVariableNodeFromGlobalModule$1($name) {
- var t1, t2, _0_0;
- for (t1 = this._importedModules, t2 = this._globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
- t1 = t2._currentIterator;
- _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- globalVariableExists$2$namespace($name, namespace) {
- if (namespace != null)
- return this._getModule$1(namespace).get$variables().containsKey$1($name);
- if (B.JSArray_methods.get$first(this._variables).containsKey$1($name))
- return true;
- return this._getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _variableIndex$1($name) {
- var t1, i;
- for (t1 = this._variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
- if (namespace != null) {
- _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._variables.length === 1) {
- _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure(_this, $name));
- t1 = _this._variables;
- if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._fromOneModule$3($name, "variable", new A.Environment_setVariable_closure0($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(_this._variableNodes), $name, nodeWithSpan);
- return;
- }
- nestedForwardedModules = _this._nestedForwardedModules;
- if (nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null)
- for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- if (t5.get$variables().containsKey$1($name)) {
- t5.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- if (_this._lastVariableName === $name) {
- t1 = _this._lastVariableIndex;
- t1.toString;
- index = t1;
- } else
- index = _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure1(_this, $name));
- if (!_this._inSemiGlobalScope && index === 0) {
- index = _this._variables.length - 1;
- _this._variableIndices.$indexSet(0, $name, index);
- }
- _this._lastVariableName = $name;
- _this._lastVariableIndex = index;
- J.$indexSet$ax(_this._variables[index], $name, value);
- J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan);
- },
- setVariable$4$global($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._variables,
- t2 = t1.length;
- _this._lastVariableName = $name;
- index = _this._lastVariableIndex = t2 - 1;
- _this._variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null) {
- t1 = _this._getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._functionIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._functions[_0_0], $name);
- return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._functionIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._functions[_1_0], $name);
- return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
- } else
- return _this._getFunctionFromGlobalModule$1($name);
- }
- },
- getFunction$1($name) {
- return this.getFunction$2$namespace($name, null);
- },
- _getFunctionFromGlobalModule$1($name) {
- return this._fromOneModule$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure($name));
- },
- _functionIndex$1($name) {
- var t1, i;
- for (t1 = this._functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._mixinIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._mixins[_0_0], $name);
- return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._mixinIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._mixins[_1_0], $name);
- return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
- } else
- return _this._getMixinFromGlobalModule$1($name);
- }
- },
- _getMixinFromGlobalModule$1($name) {
- return this._fromOneModule$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure($name));
- },
- _mixinIndex$1($name) {
- var t1, i;
- for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- withContent$2($content, callback) {
- var oldContent = this._content;
- this._content = $content;
- callback.call$0();
- this._content = oldContent;
- },
- asMixin$1(callback) {
- var oldInMixin = this._inMixin;
- this._inMixin = true;
- callback.call$0();
- this._inMixin = oldInMixin;
- },
- scope$1$3$semiGlobal$when(callback, semiGlobal, when) {
- var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this;
- semiGlobal = semiGlobal && _this._inSemiGlobalScope;
- wasInSemiGlobalScope = _this._inSemiGlobalScope;
- _this._inSemiGlobalScope = semiGlobal;
- if (!when)
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._inSemiGlobalScope = wasInSemiGlobalScope;
- }
- t1 = _this._variables;
- t2 = type$.String;
- B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
- t3 = _this._variableNodes;
- B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
- t4 = _this._functions;
- t5 = type$.Callable;
- B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t6 = _this._mixins;
- B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t5 = _this._nestedForwardedModules;
- if (t5 != null)
- t5.push(A._setArrayType([], type$.JSArray_Module_Callable));
- try {
- t2 = callback.call$0();
- return t2;
- } finally {
- _this._inSemiGlobalScope = wasInSemiGlobalScope;
- _this._lastVariableIndex = _this._lastVariableName = null;
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- B.JSArray_methods.removeLast$0(t3);
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = _this._nestedForwardedModules;
- if (t1 != null)
- t1.pop();
- }
- },
- scope$1$1(callback) {
- return this.scope$1$3$semiGlobal$when(callback, false, true);
- },
- scope$1$2$when(callback, when) {
- return this.scope$1$3$semiGlobal$when(callback, false, when);
- },
- scope$1$2$semiGlobal(callback, semiGlobal) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true);
- },
- toImplicitConfiguration$0() {
- var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
- t1 = type$.String,
- configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
- for (t2 = this._variables, t3 = type$.Value, t4 = this._variableNodes, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4[i];
- for (t5 = A.MapExtensions_get_pairs(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
- t6 = t5.get$current(t5);
- $name = t6._0;
- value = t6._1;
- t6 = nodes.$index(0, $name);
- t6.toString;
- configuration.$indexSet(0, $name, new A.ConfiguredValue(value, null, t6));
- }
- }
- return new A.Configuration(configuration, null);
- },
- toModule$3(css, preModuleComments, extensionStore) {
- return A._EnvironmentModule__EnvironmentModule(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toModule_closure()));
- },
- toDummyModule$0() {
- return A._EnvironmentModule__EnvironmentModule(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty0, B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toDummyModule_closure()));
- },
- _getModule$1(namespace) {
- var _0_0 = this._environment$_modules.$index(0, namespace);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null));
- },
- _fromOneModule$1$3($name, type, callback) {
- var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
- _0_0 = this._nestedForwardedModules;
- if (_0_0 != null)
- for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
- if (_1_0 != null)
- return _1_0;
- }
- }
- for (t1 = this._importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
- _2_0 = callback.call$1(t1.__js_helper$_current);
- if (_2_0 != null)
- return _2_0;
- }
- for (t1 = this._globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.Callable, value = null, identity = null; t2.moveNext$0();) {
- t4 = t2.__js_helper$_current;
- valueInModule = callback.call$1(t4);
- if (valueInModule == null)
- continue;
- identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t3 = A.MapExtensions_get_pairs(t1, type$.Module_Callable, type$.AstNode), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
- t1 = t3.get$current(t3);
- module = t1._0;
- node = t1._1;
- if (callback.call$1(module) != null)
- t2.$indexSet(0, node.get$span(node), t4);
- }
- throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _fromOneModule$3($name, type, callback) {
- return this._fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- A.Environment__getVariableFromGlobalModule_closure.prototype = {
- call$1(module) {
- return module.get$variables().$index(0, this.name);
- },
- $signature: 310
- };
- A.Environment_setVariable_closure.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._lastVariableName = this.name;
- return t1._lastVariableIndex = 0;
- },
- $signature: 10
- };
- A.Environment_setVariable_closure0.prototype = {
- call$1(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- },
- $signature: 313
- };
- A.Environment_setVariable_closure1.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._variableIndex$1(this.name);
- return t2 == null ? t1._variables.length - 1 : t2;
- },
- $signature: 10
- };
- A.Environment__getFunctionFromGlobalModule_closure.prototype = {
- call$1(module) {
- return module.get$functions(module).$index(0, this.name);
- },
- $signature: 246
- };
- A.Environment__getMixinFromGlobalModule_closure.prototype = {
- call$1(module) {
- return module.get$mixins().$index(0, this.name);
- },
- $signature: 246
- };
- A.Environment_toModule_closure.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable);
- },
- $signature: 243
- };
- A.Environment_toDummyModule_closure.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable);
- },
- $signature: 243
- };
- A._EnvironmentModule.prototype = {
- get$url(_) {
- var t1 = this.css;
- t1 = t1.get$span(t1);
- return t1.get$sourceUrl(t1);
- },
- setVariable$3($name, value, nodeWithSpan) {
- var t1, t2,
- _0_0 = this._modulesByVariable.$index(0, $name);
- if (_0_0 != null) {
- _0_0.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._environment$_environment;
- t2 = t1._variables;
- if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
- throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
- J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(t1._variableNodes), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1($name) {
- var module = this._modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0() {
- var _0_0, _this = this;
- if (!_this.transitivelyContainsCss)
- return _this;
- _0_0 = A.cloneCssStylesheet(_this.css, _this.extensionStore);
- return A._EnvironmentModule$_(_this._environment$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
- },
- toString$0(_) {
- var t1 = this.css,
- t2 = t1.get$span(t1);
- if (t2.get$sourceUrl(t2) == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span(t1);
- t1 = t1.get$sourceUrl(t1);
- t2 = $.$get$context();
- t1.toString;
- t1 = t2.prettyUri$1(t1);
- }
- return t1;
- },
- $isModule0: 1,
- get$upstream() {
- return this.upstream;
- },
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- },
- get$extensionStore() {
- return this.extensionStore;
- },
- get$css(receiver) {
- return this.css;
- },
- get$preModuleComments() {
- return this.preModuleComments;
- },
- get$transitivelyContainsCss() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions() {
- return this.transitivelyContainsExtensions;
- }
- };
- A._EnvironmentModule__EnvironmentModule_closure.prototype = {
- call$1(module) {
- return module.get$variables();
- },
- $signature: 319
- };
- A._EnvironmentModule__EnvironmentModule_closure0.prototype = {
- call$1(module) {
- return module.get$variableNodes();
- },
- $signature: 323
- };
- A._EnvironmentModule__EnvironmentModule_closure1.prototype = {
- call$1(module) {
- return module.get$functions(module);
- },
- $signature: 234
- };
- A._EnvironmentModule__EnvironmentModule_closure2.prototype = {
- call$1(module) {
- return module.get$mixins();
- },
- $signature: 234
- };
- A._EnvironmentModule__EnvironmentModule_closure3.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 117
- };
- A._EnvironmentModule__EnvironmentModule_closure4.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsExtensions();
- },
- $signature: 117
- };
- A.SassException.prototype = {
- get$trace(_) {
- return A.Trace$(A._setArrayType([A.frameForSpan(A.SourceSpanException.prototype.get$span.call(this, 0), "root stylesheet", null)], type$.JSArray_Frame), null);
- },
- get$span(_) {
- return A.SourceSpanException.prototype.get$span.call(this, 0);
- },
- withAdditionalSpan$2(span, label) {
- return A.MultiSpanSassException$(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
- },
- withTrace$1(trace) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(this.loadedUrls, type$.Uri);
- return new A.SassRuntimeException(trace, t2, this._span_exception$_message, t1);
- },
- withLoadedUrls$1(loadedUrls) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
- return new A.SassException(t2, this._span_exception$_message, t1);
- },
- toString$1$color(_, color) {
- var t2, _i, frame, t3, _this = this,
- buffer = new A.StringBuffer(""),
- t1 = "" + ("Error: " + _this._span_exception$_message + "\n");
- buffer._contents = t1;
- buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, 0).highlight$1$color(color);
- for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- if (J.get$length$asx(frame) === 0)
- continue;
- t3 = buffer._contents += "\n";
- buffer._contents = t3 + (" " + A.S(frame));
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- toString$0(_) {
- return this.toString$1$color(0, null);
- },
- toCssString$0() {
- var commentMessage, stringMessage, rune,
- t1 = $._glyphs,
- t2 = $._glyphs = B.C_AsciiGlyphSet,
- t3 = this.toString$1$color(0, false);
- t3 = A.stringReplaceAllUnchecked(t3, "*/", "*\u2215");
- commentMessage = A.stringReplaceAllUnchecked(t3, "\r\n", "\n");
- $._glyphs = t1 === B.C_AsciiGlyphSet ? t2 : B.C_UnicodeGlyphSet;
- stringMessage = new A.StringBuffer("");
- for (t1 = new A.RuneIterator(A.serializeValue(new A.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) {
- rune = t1._currentCodePoint;
- if (rune > 127) {
- t2 = A.Primitives_stringFromCharCode(92);
- stringMessage._contents += t2;
- t2 = B.JSInt_methods.toRadixString$1(rune, 16);
- stringMessage._contents += t2;
- t2 = A.Primitives_stringFromCharCode(32);
- stringMessage._contents += t2;
- } else {
- t2 = A.Primitives_stringFromCharCode(rune);
- stringMessage._contents += t2;
- }
- }
- return "/* " + B.JSArray_methods.join$1(A._setArrayType(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}";
- }
- };
- A.MultiSpanSassException.prototype = {
- withAdditionalSpan$2(span, label) {
- var _this = this,
- t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
- t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
- t2.$indexSet(0, span, label);
- return A.MultiSpanSassException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
- },
- withTrace$1(trace) {
- var _this = this;
- return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, trace, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var _this = this;
- return A.MultiSpanSassException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
- },
- toString$1$color(_, color) {
- var t1, t2, _i, frame, t3, _this = this,
- useColor = color === true,
- buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n");
- A.NullableExtension_andThen(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer));
- for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- if (J.get$length$asx(frame) === 0)
- continue;
- buffer._contents += "\n";
- t3 = " " + A.S(frame);
- buffer._contents += t3;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- toString$0(_) {
- return this.toString$1$color(0, null);
- },
- get$primaryLabel() {
- return this.primaryLabel;
- },
- get$secondarySpans() {
- return this.secondarySpans;
- }
- };
- A.SassRuntimeException.prototype = {
- withAdditionalSpan$2(span, label) {
- var _this = this;
- return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.trace, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
- return new A.SassRuntimeException(this.trace, t2, this._span_exception$_message, t1);
- },
- get$trace(receiver) {
- return this.trace;
- }
- };
- A.MultiSpanSassRuntimeException.prototype = {
- withAdditionalSpan$2(span, label) {
- var _this = this,
- t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
- t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
- t2.$indexSet(0, span, label);
- return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.trace, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var _this = this;
- return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, _this.trace, loadedUrls);
- },
- $isSassRuntimeException: 1,
- get$trace(receiver) {
- return this.trace;
- }
- };
- A.SassFormatException.prototype = {
- get$source() {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
- },
- withAdditionalSpan$2(span, label) {
- return A.MultiSpanSassFormatException$(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
- return new A.SassFormatException(t2, this._span_exception$_message, t1);
- },
- $isFormatException: 1,
- $isSourceSpanFormatException: 1
- };
- A.MultiSpanSassFormatException.prototype = {
- get$source() {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
- },
- withAdditionalSpan$2(span, label) {
- var _this = this,
- t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
- t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
- t2.$indexSet(0, span, label);
- return A.MultiSpanSassFormatException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var _this = this;
- return A.MultiSpanSassFormatException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
- },
- $isFormatException: 1,
- $isSassFormatException: 1,
- $isSourceSpanFormatException: 1,
- $isMultiSourceSpanFormatException: 1
- };
- A.SassScriptException.prototype = {
- withSpan$1(span) {
- return new A.SassException(B.Set_empty, this.message, span);
- },
- toString$0(_) {
- return this.message + string$.x0a_BUG_;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A.MultiSpanSassScriptException.prototype = {
- withSpan$1(span) {
- return A.MultiSpanSassException$(this.message, span, this.primaryLabel, this.secondarySpans, null);
- }
- };
- A._writeSourceMap_closure.prototype = {
- call$1(url) {
- return this.options.sourceMapUrl$2(0, A.Uri_parse(url), this.destination).toString$0(0);
- },
- $signature: 5
- };
- A.ExecutableOptions.prototype = {
- get$interactive() {
- var result, _this = this,
- value = _this.__ExecutableOptions_interactive_FI;
- if (value === $) {
- result = new A.ExecutableOptions_interactive_closure(_this).call$0();
- _this.__ExecutableOptions_interactive_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__ExecutableOptions_interactive_FI = result;
- value = result;
- }
- return value;
- },
- get$color() {
- var t1 = this._options;
- return t1.wasParsed$1("color") ? A._asBool(t1.$index(0, "color")) : A.hasTerminal();
- },
- get$pkgImporters() {
- var t2, t3, t4, _null = null,
- t1 = A._setArrayType([], type$.JSArray_Importer);
- for (t2 = J.get$iterator$ax(type$.List_String._as(this._options.$index(0, "pkg-importer"))); t2.moveNext$0();) {
- t2.get$current(t2);
- t3 = new A.NodePackageImporter();
- t4 = self.process;
- if (t4 == null)
- t4 = _null;
- else {
- t4 = J.get$release$x(t4);
- t4 = t4 == null ? _null : J.get$name$x(t4);
- }
- if (!J.$eq$(t4, "node") && self.document != null && typeof self.document.querySelector == "function")
- A.throwExpression(string$.The_No);
- t3.__NodePackageImporter__entryPointDirectory_F = $.$get$context().absolute$15(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- t1.push(t3);
- }
- return t1;
- },
- get$emitErrorCss() {
- var t1 = A._asBoolQ(this._options.$index(0, "error-css"));
- if (t1 == null) {
- this._ensureSources$0();
- t1 = this._sourcesToDestinations;
- t1 = t1.get$values(t1).any$1(0, new A.ExecutableOptions_emitErrorCss_closure());
- }
- return t1;
- },
- _ensureSources$0() {
- var t1, stdin, t2, t3, $directories, t4, t5, t6, colonArgs, positionalArgs, t7, t8, t9, message, target, source, destination, seen, _0_0, _this = this, _null = null,
- _s18_ = 'Duplicate source "';
- if (_this._sourcesToDestinations != null)
- return;
- t1 = _this._options;
- stdin = A._asBool(t1.$index(0, "stdin"));
- t2 = t1.rest;
- if (t2.get$length(0) === 0 && !stdin)
- A.ExecutableOptions__fail("Compile Sass to CSS.");
- t3 = type$.String;
- $directories = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (t4 = t2.$ti, t5 = t4._eval$1("ListIterator<ListBase.E>"), t6 = new A.ListIterator(t2, t2.get$length(0), t5), t4 = t4._eval$1("ListBase.E"), colonArgs = false, positionalArgs = false; t6.moveNext$0();) {
- t7 = t6.__internal$_current;
- if (t7 == null)
- t7 = t4._as(t7);
- t8 = t7.length;
- if (t8 === 0)
- A.ExecutableOptions__fail('Invalid argument "".');
- if (A.stringContainsUnchecked(t7, ":", 0)) {
- if (t8 > 2) {
- t9 = t7.charCodeAt(0);
- if (!(t9 >= 97 && t9 <= 122))
- t9 = t9 >= 65 && t9 <= 90;
- else
- t9 = true;
- t9 = t9 && t7.charCodeAt(1) === 58;
- } else
- t9 = false;
- if (t9) {
- if (2 > t8)
- A.throwExpression(A.RangeError$range(2, 0, t8, _null, _null));
- t8 = A.stringContainsUnchecked(t7, ":", 2);
- } else
- t8 = true;
- } else
- t8 = false;
- if (t8)
- colonArgs = true;
- else if (A.dirExists(t7))
- $directories.add$1(0, t7);
- else
- positionalArgs = true;
- }
- if (positionalArgs || t2.get$length(0) === 0) {
- if (colonArgs)
- A.ExecutableOptions__fail('Positional and ":" arguments may not both be used.');
- else if (stdin) {
- if (J.get$length$asx(t2._collection$_source) > 1)
- A.ExecutableOptions__fail("Only one argument is allowed with --stdin.");
- else if (A._asBool(t1.$index(0, "update")))
- A.ExecutableOptions__fail("--update is not allowed with --stdin.");
- else if (A._asBool(t1.$index(0, "watch")))
- A.ExecutableOptions__fail("--watch is not allowed with --stdin.");
- t1 = t2.get$length(0) === 0 ? _null : t2.get$first(t2);
- t2 = type$.dynamic;
- t3 = type$.nullable_String;
- _this._sourcesToDestinations = A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3);
- } else {
- t3 = t2._collection$_source;
- t4 = J.getInterceptor$asx(t3);
- if (t4.get$length(t3) > 2)
- A.ExecutableOptions__fail("Only two positional args may be passed.");
- else if ($directories._collection$_length !== 0) {
- message = 'Directory "' + A.S($directories.get$first(0)) + '" may not be a positional arg.';
- target = t2.get$last(t2);
- A.ExecutableOptions__fail(J.$eq$($directories.get$first(0), t2.get$first(t2)) && !A.fileExists(target) ? message + ('\nTo compile all CSS in "' + A.S($directories.get$first(0)) + '" to "' + target + '", use `sass ' + A.S($directories.get$first(0)) + ":" + target + "`.") : message);
- } else {
- source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2);
- destination = t4.get$length(t3) === 1 ? _null : t2.get$last(t2);
- if (destination == null)
- if (A._asBool(t1.$index(0, "update")))
- A.ExecutableOptions__fail("--update is not allowed when printing to stdout.");
- else if (A._asBool(t1.$index(0, "watch")))
- A.ExecutableOptions__fail("--watch is not allowed when printing to stdout.");
- t1 = A.PathMap__create(_null, type$.nullable_String);
- t1.$indexSet(0, source, destination);
- _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, type$.PathMap_nullable_String), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String);
- }
- }
- _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI();
- _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = B.Map_empty;
- return;
- }
- if (stdin)
- A.ExecutableOptions__fail('--stdin may not be used with ":" arguments.');
- seen = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- t1 = A.PathMap__create(_null, t3);
- t6 = type$.PathMap_String;
- t3 = A.PathMap__create(_null, t3);
- for (t2 = new A.ListIterator(t2, t2.get$length(0), t5); t2.moveNext$0();) {
- t5 = t2.__internal$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- if ($directories.contains$1(0, t5)) {
- if (!seen.add$1(0, t5))
- A.ExecutableOptions__fail(_s18_ + t5 + '".');
- t3.$indexSet(0, t5, t5);
- t1.addAll$1(0, _this._listSourceDirectory$2(t5, t5));
- continue;
- }
- _0_0 = _this._splitSourceAndDestination$1(t5);
- source = _0_0._0;
- destination = _0_0._1;
- if (!seen.add$1(0, source))
- A.ExecutableOptions__fail(_s18_ + source + '".');
- if (source === "-")
- t1.$indexSet(0, _null, destination);
- else if (A.dirExists(source)) {
- t3.$indexSet(0, source, destination);
- t1.addAll$1(0, _this._listSourceDirectory$2(source, destination));
- } else
- t1.$indexSet(0, source, destination);
- }
- _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, t6), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String);
- _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI();
- _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = new A.UnmodifiableMapView(new A.PathMap(t3, t6), type$.UnmodifiableMapView_of_nullable_String_and_String);
- },
- _splitSourceAndDestination$1(argument) {
- var t1, i, t2, t3, nextColon;
- for (t1 = argument.length, i = 0; i < t1; ++i) {
- if (i === 1) {
- t2 = i - 1;
- if (t1 > t2 + 2) {
- t3 = argument.charCodeAt(t2);
- if (!(t3 >= 97 && t3 <= 122))
- t3 = t3 >= 65 && t3 <= 90;
- else
- t3 = true;
- t2 = t3 && argument.charCodeAt(t2 + 1) === 58;
- } else
- t2 = false;
- } else
- t2 = false;
- if (t2)
- continue;
- if (argument.charCodeAt(i) === 58) {
- t2 = i + 1;
- nextColon = B.JSString_methods.indexOf$2(argument, ":", t2);
- if (nextColon === i + 2)
- if (t1 > t2 + 2) {
- t1 = argument.charCodeAt(t2);
- if (!(t1 >= 97 && t1 <= 122))
- t1 = t1 >= 65 && t1 <= 90;
- else
- t1 = true;
- t1 = t1 && argument.charCodeAt(t2 + 1) === 58;
- } else
- t1 = false;
- else
- t1 = false;
- if ((t1 ? B.JSString_methods.indexOf$2(argument, ":", nextColon + 1) : nextColon) !== -1)
- A.ExecutableOptions__fail('"' + argument + '" may only contain one ":".');
- return new A._Record_2(B.JSString_methods.substring$2(argument, 0, i), B.JSString_methods.substring$1(argument, t2));
- }
- }
- throw A.wrapException(A.ArgumentError$('Expected "' + argument + '" to contain a colon.', null));
- },
- _listSourceDirectory$2(source, destination) {
- var t2, t3, t4, t5,
- t1 = type$.String;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t2 = J.get$iterator$ax(A.listDir(source, true)), t3 = source === destination; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- if (this._isEntrypoint$1(t4))
- t5 = !(t3 && A.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css");
- else
- t5 = false;
- if (t5) {
- t5 = $.$get$context();
- t1.$indexSet(0, t4, A.join(destination, t5.withoutExtension$1(t5.relative$2$from(t4, source)) + ".css", null));
- }
- }
- return t1;
- },
- _isEntrypoint$1(path) {
- var extension,
- t1 = $.$get$context().style;
- if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_"))
- return false;
- extension = A.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1];
- return extension === ".scss" || extension === ".sass" || extension === ".css";
- },
- get$_writeToStdout() {
- var t1, _this = this;
- _this._ensureSources$0();
- t1 = _this._sourcesToDestinations;
- if (t1.get$length(t1) === 1) {
- _this._ensureSources$0();
- t1 = _this._sourcesToDestinations;
- t1 = t1.get$values(t1);
- t1 = t1.get$single(t1) == null;
- } else
- t1 = false;
- return t1;
- },
- get$emitSourceMap() {
- var _this = this,
- _s10_ = "source-map",
- _s15_ = "source-map-urls",
- _s13_ = "embed-sources",
- _s16_ = "embed-source-map",
- t1 = _this._options;
- if (!A._asBool(t1.$index(0, _s10_)))
- if (t1.wasParsed$1(_s15_))
- A.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map.");
- else if (t1.wasParsed$1(_s13_))
- A.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map.");
- else if (t1.wasParsed$1(_s16_))
- A.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map.");
- if (!_this.get$_writeToStdout())
- return A._asBool(t1.$index(0, _s10_));
- if (J.$eq$(_this._ifParsed$1(_s15_), "relative"))
- A.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout.");
- if (A._asBool(t1.$index(0, _s16_)))
- return A._asBool(t1.$index(0, _s10_));
- else if (J.$eq$(_this._ifParsed$1(_s10_), true))
- A.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map.");
- else if (t1.wasParsed$1(_s15_))
- A.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map.");
- else if (A._asBool(t1.$index(0, _s13_)))
- A.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map.");
- else
- return false;
- },
- sourceMapUrl$2(_, url, destination) {
- var t1, path, t2, _null = null;
- if (url.get$scheme().length !== 0 && url.get$scheme() !== "file")
- return url;
- t1 = $.$get$context();
- path = t1.style.pathFromUri$1(A._parseUri(url));
- if (J.$eq$(this._options.$index(0, "source-map-urls"), "relative") && !this.get$_writeToStdout()) {
- destination.toString;
- t2 = t1.relative$2$from(path, t1.dirname$1(destination));
- } else
- t2 = A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- return t1.toUri$1(t2);
- },
- get$silenceDeprecations(_) {
- var t2, t3, t4,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
- for (t2 = J.get$iterator$ax(type$.List_String._as(this._options.$index(0, "silence-deprecation"))); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t4 = A.Deprecation_fromId(t3);
- t1.add$1(0, t4 == null ? A.ExecutableOptions__fail('Invalid deprecation "' + t3 + '".') : t4);
- }
- return t1;
- },
- get$fatalDeprecations(_) {
- var t1 = this._fatalDeprecations;
- return t1 == null ? this._fatalDeprecations = new A.ExecutableOptions_fatalDeprecations_closure(this).call$0() : t1;
- },
- get$futureDeprecations(_) {
- var t2, t3, t4,
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
- for (t2 = J.get$iterator$ax(type$.List_String._as(this._options.$index(0, "future-deprecation"))); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t4 = A.Deprecation_fromId(t3);
- t1.add$1(0, t4 == null ? A.ExecutableOptions__fail('Invalid deprecation "' + t3 + '".') : t4);
- }
- return t1;
- },
- _ifParsed$1($name) {
- var t1 = this._options;
- return t1.wasParsed$1($name) ? t1.$index(0, $name) : null;
- }
- };
- A.ExecutableOptions__parser_closure.prototype = {
- call$0() {
- var t1 = type$.String,
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Option),
- t3 = [],
- parser = new A.ArgParser(t2, A.LinkedHashMap_LinkedHashMap$_empty(t1, t1), new A.UnmodifiableMapView(t2, type$.UnmodifiableMapView_String_Option), new A.UnmodifiableMapView(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ArgParser), type$.UnmodifiableMapView_String_ArgParser), t3, true, null);
- parser.addOption$2$hide("precision", true);
- parser.addFlag$2$hide("async", true);
- t3.push(A.ExecutableOptions__separator("Input and Output"));
- parser.addFlag$2$help("stdin", "Read the stylesheet from stdin.");
- parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin.");
- parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH");
- t2 = type$.JSArray_String;
- parser.addMultiOption$6$abbr$allowed$allowedHelp$help$valueHelp("pkg-importer", "p", A._setArrayType(["node"], t2), A.LinkedHashMap_LinkedHashMap$_literal(["node", "Load files like Node.js package resolution."], t1, t1), "Built-in importer(s) to use for pkg: URLs.", "TYPE");
- parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", A._setArrayType(["expanded", "compressed"], t2), "expanded", "Output style.", "NAME");
- parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters.");
- 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.");
- parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false);
- t3.push(A.ExecutableOptions__separator("Source Maps"));
- parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps.");
- parser.addOption$4$allowed$defaultsTo$help("source-map-urls", A._setArrayType(["relative", "absolute"], t2), "relative", "How to link from source maps to source files.");
- parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps.");
- parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS.");
- t3.push(A.ExecutableOptions__separator("Warnings"));
- parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings.");
- parser.addFlag$2$help("quiet-deps", "Don't print compiler warnings from dependencies.\nStylesheets imported through load paths count as dependencies.");
- parser.addFlag$2$help("verbose", "Print all deprecation warnings even when they're repetitive.");
- parser.addMultiOption$2$help("fatal-deprecation", "Deprecations to treat as errors. You may also pass a Sass\nversion to include any behavior deprecated in or before it.\nSee https://sass-lang.com/documentation/breaking-changes for \na complete list.");
- parser.addMultiOption$2$help("silence-deprecation", "Deprecations to ignore.");
- parser.addMultiOption$2$help("future-deprecation", "Opt in to a deprecation early.");
- t3.push(A.ExecutableOptions__separator("Other"));
- parser.addFlag$4$abbr$help$negatable("watch", "w", "Watch stylesheets and recompile when they change.", false);
- parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch.");
- parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered.");
- parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false);
- parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages.");
- parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages.");
- parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions.");
- parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false);
- parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false);
- return parser;
- },
- $signature: 330
- };
- A.ExecutableOptions_interactive_closure.prototype = {
- call$0() {
- var _0_0,
- t1 = this.$this._options;
- if (!A._asBool(t1.$index(0, "interactive")))
- return false;
- _0_0 = A.IterableExtension_firstWhereOrNull(A._setArrayType(["stdin", "indented", "style", "source-map", "source-map-urls", "embed-sources", "embed-source-map", "update", "watch"], type$.JSArray_String), t1.get$wasParsed());
- if (_0_0 != null)
- throw A.wrapException(A.UsageException$("--" + _0_0 + " isn't allowed with --interactive."));
- return true;
- },
- $signature: 22
- };
- A.ExecutableOptions_emitErrorCss_closure.prototype = {
- call$1(destination) {
- return destination != null;
- },
- $signature: 139
- };
- A.ExecutableOptions_fatalDeprecations_closure.prototype = {
- call$0() {
- var id, argVersion, sassVersion, t1, t2, _0_0, exception,
- deprecations = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
- for (t1 = J.get$iterator$ax(type$.List_String._as(this.$this._options.$index(0, "fatal-deprecation"))), t2 = type$.FormatException; t1.moveNext$0();) {
- id = t1.get$current(t1);
- _0_0 = A.Deprecation_fromId(id);
- if (_0_0 != null) {
- J.add$1$ax(deprecations, _0_0);
- continue;
- }
- try {
- argVersion = A.Version_Version$parse(id);
- sassVersion = A.Version_Version$parse("1.77.8");
- if (J.compareTo$1$ns(argVersion, sassVersion) > 0)
- A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version.");
- J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion));
- } catch (exception) {
- if (t2._is(A.unwrapException(exception)))
- A.ExecutableOptions__fail('Invalid deprecation "' + A.S(id) + '".');
- else
- throw exception;
- }
- }
- return deprecations;
- },
- $signature: 332
- };
- A.UsageException.prototype = {$isException: 1,
- get$message(receiver) {
- return this.message;
- }
- };
- A.watch_closure.prototype = {
- call$1(dir) {
- for (; !A.dirExists(dir);)
- dir = $.$get$context().dirname$1(dir);
- return this.dirWatcher.watch$1(0, dir);
- },
- $signature: 334
- };
- A._Watcher.prototype = {
- _delete$1(path) {
- var buffer, t1, exception;
- try {
- A.deleteFile(path);
- buffer = new A.StringBuffer("");
- t1 = this._watch$_options;
- if (t1.get$color())
- buffer._contents += "\x1b[33m";
- buffer._contents += "Deleted " + path + ".";
- if (t1.get$color())
- buffer._contents += "\x1b[0m";
- A.print(buffer);
- } catch (exception) {
- if (!(A.unwrapException(exception) instanceof A.FileSystemException))
- throw exception;
- }
- },
- watch$1(_, watcher) {
- return this.watch$body$_Watcher(0, watcher);
- },
- watch$body$_Watcher(_, watcher) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1;
- var $async$watch$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = watcher._group.__StreamGroup__controller_A;
- t1 === $ && A.throwUnnamedLateFieldNI();
- t1 = new A._StreamIterator(A.checkNotNullable($async$self._debounceEvents$1(new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>"))), "stream", type$.Object));
- $async$handler = 3;
- t2 = $async$self._watch$_options._options;
- case 6:
- // for condition
- $async$goto = 8;
- return A._asyncAwait(t1.moveNext$0(), $async$watch$1);
- case 8:
- // returning from await.
- if (!$async$result) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $event = t1.get$current(0);
- extension = A.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1];
- if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) {
- // goto for condition
- $async$goto = 6;
- break;
- }
- case 9:
- // switch
- switch ($event.type) {
- case B.ChangeType_modify:
- // goto case
- $async$goto = 11;
- break;
- case B.ChangeType_add:
- // goto case
- $async$goto = 12;
- break;
- case B.ChangeType_remove:
- // goto case
- $async$goto = 13;
- break;
- default:
- // goto after switch
- $async$goto = 10;
- break;
- }
- break;
- case 11:
- // case
- $async$goto = 14;
- return A._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1);
- case 14:
- // returning from await.
- success = $async$result;
- if (!success && A._asBool(t2.$index(0, "stop-on-error"))) {
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- }
- // goto after switch
- $async$goto = 10;
- break;
- case 12:
- // case
- $async$goto = 15;
- return A._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1);
- case 15:
- // returning from await.
- success0 = $async$result;
- if (!success0 && A._asBool(t2.$index(0, "stop-on-error"))) {
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- }
- // goto after switch
- $async$goto = 10;
- break;
- case 13:
- // case
- $async$goto = 16;
- return A._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1);
- case 16:
- // returning from await.
- success1 = $async$result;
- if (!success1 && A._asBool(t2.$index(0, "stop-on-error"))) {
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- }
- // goto after switch
- $async$goto = 10;
- break;
- case 10:
- // after switch
- // goto for condition
- $async$goto = 6;
- break;
- case 7:
- // after for
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 4:
- // finally
- $async$handler = 2;
- $async$goto = 17;
- return A._asyncAwait(t1.cancel$0(), $async$watch$1);
- case 17:
- // returning from await.
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$watch$1, $async$completer);
- },
- _handleModify$1(path) {
- return this._handleModify$body$_Watcher(path);
- },
- _handleModify$body$_Watcher(path) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, t2, t0, url, _0_0, t1;
- var $async$_handleModify$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = A.isNodeJs() ? self.process : null;
- if (!J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32")) {
- t1 = A.isNodeJs() ? self.process : null;
- t1 = J.$eq$(t1 == null ? null : J.get$platform$x(t1), "darwin");
- } else
- t1 = true;
- if (t1) {
- t1 = $.$get$context();
- t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
- t0 = t2;
- t2 = t1;
- t1 = t0;
- } else {
- t1 = $.$get$context();
- t2 = t1.canonicalize$1(0, path);
- t0 = t2;
- t2 = t1;
- t1 = t0;
- }
- url = t2.toUri$1(t1);
- t1 = $async$self._graph;
- _0_0 = t1._nodes.$index(0, url);
- $async$goto = _0_0 != null ? 3 : 5;
- break;
- case 3:
- // then
- t1.reload$1(url);
- $async$goto = 6;
- return A._asyncAwait($async$self._recompileDownstream$1(A._setArrayType([_0_0], type$.JSArray_StylesheetNode)), $async$_handleModify$1);
- case 6:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$returnValue = $async$self._handleAdd$1(path);
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_handleModify$1, $async$completer);
- },
- _handleAdd$1(path) {
- return this._handleAdd$body$_Watcher(path);
- },
- _handleAdd$body$_Watcher(path) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, t1, success, t2, t3, t0, destination;
- var $async$_handleAdd$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- destination = $async$self._destinationFor$1(path);
- $async$goto = destination != null ? 3 : 5;
- break;
- case 3:
- // then
- t1 = type$.nullable_String;
- $async$goto = 6;
- return A._asyncAwait(A.compileStylesheets($async$self._watch$_options, $async$self._graph, A.LinkedHashMap_LinkedHashMap$_literal([path, destination], t1, t1), true), $async$_handleAdd$1);
- case 6:
- // returning from await.
- success = $async$result;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- success = true;
- case 4:
- // join
- t1 = $.$get$FilesystemImporter_cwd();
- t2 = A.isNodeJs() ? self.process : null;
- if (!J.$eq$(t2 == null ? null : J.get$platform$x(t2), "win32")) {
- t2 = A.isNodeJs() ? self.process : null;
- t2 = J.$eq$(t2 == null ? null : J.get$platform$x(t2), "darwin");
- } else
- t2 = true;
- if (t2) {
- t2 = $.$get$context();
- t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
- t0 = t3;
- t3 = t2;
- t2 = t0;
- } else {
- t2 = $.$get$context();
- t3 = t2.canonicalize$1(0, path);
- t0 = t3;
- t3 = t2;
- t2 = t0;
- }
- $async$goto = 7;
- return A._asyncAwait($async$self._recompileDownstream$1($async$self._graph.addCanonical$3(t1, t3.toUri$1(t2), t3.toUri$1(path))), $async$_handleAdd$1);
- case 7:
- // returning from await.
- $async$returnValue = $async$result && success;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_handleAdd$1, $async$completer);
- },
- _handleRemove$1(path) {
- return this._handleRemove$body$_Watcher(path);
- },
- _handleRemove$body$_Watcher(path) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, t2, t0, url, _0_0, t3, node, toRecompile, t1;
- var $async$_handleRemove$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = A.isNodeJs() ? self.process : null;
- if (!J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32")) {
- t1 = A.isNodeJs() ? self.process : null;
- t1 = J.$eq$(t1 == null ? null : J.get$platform$x(t1), "darwin");
- } else
- t1 = true;
- if (t1) {
- t1 = $.$get$context();
- t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
- t0 = t2;
- t2 = t1;
- t1 = t0;
- } else {
- t1 = $.$get$context();
- t2 = t1.canonicalize$1(0, path);
- t0 = t2;
- t2 = t1;
- t1 = t0;
- }
- url = t2.toUri$1(t1);
- t1 = $async$self._graph;
- t2 = t1._nodes;
- if (t2.containsKey$1(url)) {
- _0_0 = $async$self._destinationFor$1(path);
- if (_0_0 != null)
- $async$self._delete$1(_0_0);
- }
- t3 = $.$get$FilesystemImporter_cwd();
- node = t2.remove$1(0, url);
- t2 = node != null;
- if (t2) {
- t1._transitiveModificationTimes.clear$0(0);
- t1.importCache.clearImport$1(url);
- node._stylesheet_graph$_remove$0();
- }
- toRecompile = t1._recanonicalizeImports$2(t3, url);
- if (t2)
- toRecompile.addAll$1(0, node._downstream);
- $async$goto = 3;
- return A._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_handleRemove$1, $async$completer);
- },
- _debounceEvents$1(events) {
- var t1 = type$.WatchEvent;
- t1 = A.RateLimit__debounceAggregate(events, A.Duration$(25), A.instantiate1(A.rate_limit___collect$closure(), t1), false, true, t1, type$.List_WatchEvent);
- return new A._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, A._instanceType(t1)._eval$1("_ExpandStream<Stream.T,WatchEvent>"));
- },
- _recompileDownstream$1(nodes) {
- return this._recompileDownstream$body$_Watcher(nodes);
- },
- _recompileDownstream$body$_Watcher(nodes) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, allSucceeded, t6, t7, t8, sourcesToDestinations, success, _i, seen;
- var $async$_recompileDownstream$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- seen = A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode);
- t1 = type$.UnmodifiableSetView_StylesheetNode, t2 = type$.JSArray_StylesheetNode, t3 = $async$self._watch$_options, t4 = $async$self._graph, t5 = t3._options, allSucceeded = true;
- case 3:
- // for condition
- if (!(t6 = J.getInterceptor$asx(nodes), t6.get$isNotEmpty(nodes))) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t7 = A._setArrayType([], t2);
- for (t6 = t6.get$iterator(nodes); t6.moveNext$0();) {
- t8 = t6.get$current(t6);
- if (seen.add$1(0, t8))
- t7.push(t8);
- }
- sourcesToDestinations = $async$self._sourceEntrypointsToDestinations$1(t7);
- $async$goto = sourcesToDestinations.__js_helper$_length !== 0 ? 6 : 7;
- break;
- case 6:
- // then
- $async$goto = 8;
- return A._asyncAwait(A.compileStylesheets(t3, t4, sourcesToDestinations, true), $async$_recompileDownstream$1);
- case 8:
- // returning from await.
- success = $async$result;
- if (!success && A._asBool(t5.$index(0, "stop-on-error"))) {
- $async$returnValue = false;
- // goto return
- $async$goto = 1;
- break;
- }
- allSucceeded = allSucceeded && success;
- case 7:
- // join
- t6 = A._setArrayType([], t2);
- for (t8 = t7.length, _i = 0; _i < t7.length; t7.length === t8 || (0, A.throwConcurrentModificationError)(t7), ++_i)
- B.JSArray_methods.addAll$1(t6, new A.UnmodifiableSetView0(t7[_i]._downstream, t1));
- case 4:
- // for update
- nodes = t6;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = allSucceeded;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_recompileDownstream$1, $async$completer);
- },
- _sourceEntrypointsToDestinations$1(nodes) {
- var _i, url, source, _0_0,
- t1 = type$.String,
- entrypoints = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t1 = nodes.length, _i = 0; _i < nodes.length; nodes.length === t1 || (0, A.throwConcurrentModificationError)(nodes), ++_i) {
- url = nodes[_i].canonicalUrl;
- if (url.get$scheme() !== "file")
- continue;
- source = $.$get$context().style.pathFromUri$1(A._parseUri(url));
- _0_0 = this._destinationFor$1(source);
- if (_0_0 != null)
- entrypoints.$indexSet(0, source, _0_0);
- }
- return entrypoints;
- },
- _destinationFor$1(source) {
- var t2, _0_0, t3, sourceDir, destinationDir, destination,
- t1 = this._watch$_options;
- t1._ensureSources$0();
- t2 = type$.String;
- _0_0 = t1._sourcesToDestinations.cast$2$0(0, t2, t2).$index(0, source);
- if (_0_0 != null)
- return _0_0;
- t3 = $.$get$context();
- if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(source, t3.style).get$basename(), "_"))
- return null;
- t1._ensureSources$0();
- t1 = t1.__ExecutableOptions__sourceDirectoriesToDestinations_F;
- t1 === $ && A.throwUnnamedLateFieldNI();
- t2 = A.MapExtensions_get_pairs(t1.cast$2$0(0, t2, t2), t2, t2);
- t2 = t2.get$iterator(t2);
- for (; t2.moveNext$0();) {
- t1 = t2.get$current(t2);
- sourceDir = t1._0;
- destinationDir = t1._1;
- if (t3._isWithinOrEquals$2(sourceDir, source) !== B._PathRelation_within)
- continue;
- destination = A.join(destinationDir, t3.withoutExtension$1(t3.relative$2$from(source, sourceDir)) + ".css", null);
- if (t3._isWithinOrEquals$2(destination, source) !== B._PathRelation_equal)
- return destination;
- }
- return null;
- }
- };
- A._Watcher__debounceEvents_closure.prototype = {
- call$1(buffer) {
- var t3, t4, t5, oldType, newType, _1_1,
- t1 = type$.ChangeType,
- t2 = A.PathMap__create(null, t1);
- for (t3 = J.get$iterator$ax(buffer); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t5 = t4.path;
- oldType = t2.$index(0, t5);
- newType = t4.type;
- $label0$0: {
- if (oldType == null) {
- t4 = newType;
- break $label0$0;
- }
- if (B.ChangeType_remove === newType) {
- t4 = B.ChangeType_remove;
- break $label0$0;
- }
- if (B.ChangeType_add === oldType) {
- t4 = B.ChangeType_add;
- break $label0$0;
- }
- t4 = B.ChangeType_modify;
- break $label0$0;
- }
- t2.$indexSet(0, t5, t4);
- }
- t3 = A._setArrayType([], type$.JSArray_WatchEvent);
- for (t1 = A.MapExtensions_get_pairs(new A.PathMap(t2, type$.PathMap_ChangeType), type$.nullable_String, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- _1_1 = t2._0;
- t4 = _1_1;
- t4.toString;
- _1_1.toString;
- t3.push(new A.WatchEvent(t2._1, _1_1));
- }
- return t3;
- },
- $signature: 340
- };
- A.EmptyExtensionStore.prototype = {
- get$_extensions() {
- return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__extensions, "get$_empty_extension_store$_extensions", 1, [], [], 0)));
- },
- get$_sourceSpecificity() {
- return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__sourceSpecificity, "get$_empty_extension_store$_sourceSpecificity", 1, [], [], 0)));
- },
- get$isEmpty(_) {
- return true;
- },
- get$simpleSelectors() {
- return B.C_EmptyUnmodifiableSet;
- },
- extensionsWhereTarget$1(callback) {
- return B.List_empty5;
- },
- addExtensions$1(extenders) {
- throw A.wrapException(A.UnsupportedError$(string$.addExt));
- },
- clone$0() {
- return B.Record2_EmptyExtensionStore_Map_empty;
- },
- $isExtensionStore: 1
- };
- A.Extension.prototype = {
- toString$0(_) {
- var t1 = this.extender.toString$0(0),
- t2 = this.target.toString$0(0),
- t3 = this.isOptional ? " !optional" : "";
- return t1 + " {@extend " + t2 + t3 + "}";
- }
- };
- A.Extender.prototype = {
- assertCompatibleMediaContext$1(mediaContext) {
- var expectedMediaContext,
- extension = this._extension;
- if (extension == null)
- return;
- expectedMediaContext = extension.mediaContext;
- if (expectedMediaContext == null)
- return;
- if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext))
- return;
- throw A.wrapException(A.SassException$(string$.You_ma, extension.span, null));
- },
- toString$0(_) {
- return A.serializeSelector(this.selector, true);
- }
- };
- A.ExtensionStore.prototype = {
- get$isEmpty(_) {
- return this._extensions.__js_helper$_length === 0;
- },
- get$simpleSelectors() {
- return new A.MapKeySet(this._selectors, type$.MapKeySet_SimpleSelector);
- },
- extensionsWhereTarget$1(callback) {
- return new A._SyncStarIterable(this.extensionsWhereTarget$body$ExtensionStore(callback), type$._SyncStarIterable_Extension);
- },
- extensionsWhereTarget$body$ExtensionStore($async$callback) {
- var $async$self = this;
- return function() {
- var callback = $async$callback;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, simple, sources, t3;
- return function $async$extensionsWhereTarget$1($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = A.MapExtensions_get_pairs($async$self._extensions, type$.SimpleSelector, type$.Map_ComplexSelector_Extension), t1 = t1.get$iterator(t1);
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t2 = t1.get$current(t1);
- simple = t2._0;
- sources = t2._1;
- if (!callback.call$1(simple)) {
- // goto for condition
- $async$goto = 2;
- break;
- }
- t2 = sources.get$values(sources), t2 = t2.get$iterator(t2);
- case 4:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t3 = t2.get$current(t2);
- $async$goto = t3 instanceof A.MergedExtension ? 6 : 8;
- break;
- case 6:
- // then
- t3 = t3.unmerge$0();
- $async$goto = 9;
- return $async$iterator._yieldStar$1(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure(), t3.$ti._eval$1("WhereIterable<Iterable.E>")));
- case 9:
- // after yield
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = !t3.isOptional ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return $async$iterator._async$_current = t3, 1;
- case 12:
- // after yield
- case 11:
- // join
- case 7:
- // join
- // goto for condition
- $async$goto = 4;
- break;
- case 5:
- // after for
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- addSelector$2(selector, mediaContext) {
- var originalSelector, error, stackTrace, t1, exception, t2, t3, t4, modifiableSelector, _this = this;
- selector = selector;
- originalSelector = selector;
- if (!originalSelector.accept$1(B._IsInvisibleVisitor_true))
- _this._originals.addAll$1(0, originalSelector.components);
- t1 = _this._extensions;
- if (t1.__js_helper$_length !== 0)
- try {
- selector = _this._extendList$3(originalSelector, t1, mediaContext);
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- t1 = A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, "");
- t2 = error._span_exception$_message;
- t3 = error;
- t4 = J.getInterceptor$z(t3);
- t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
- A.throwWithTrace(new A.SassException(B.Set_empty, "From " + t1 + "\n" + t2, t3), error, stackTrace);
- } else
- throw exception;
- }
- modifiableSelector = new A.ModifiableBox(selector, type$.ModifiableBox_SelectorList);
- if (mediaContext != null)
- _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
- _this._registerSelector$2(selector, modifiableSelector);
- return new A.Box(modifiableSelector, type$.Box_SelectorList);
- },
- _registerSelector$2(list, selector) {
- var t1, t2, t3, t4, _i, t5, t6, _i0, t7, t8, _i1, simple, _0_2_isSet, _0_2, t9, selectorInPseudo;
- for (t1 = list.components, t2 = t1.length, t3 = this._selectors, t4 = type$.SelectorList, _i = 0; _i < t2; ++_i)
- for (t5 = t1[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
- for (t7 = t5[_i0].selector.components, t8 = t7.length, _i1 = 0; _i1 < t8; ++_i1) {
- simple = t7[_i1];
- J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure()), selector);
- _0_2_isSet = simple instanceof A.PseudoSelector;
- if (_0_2_isSet) {
- _0_2 = simple.selector;
- t9 = _0_2 != null;
- } else {
- _0_2 = null;
- t9 = false;
- }
- if (t9) {
- selectorInPseudo = _0_2_isSet ? _0_2 : simple.selector;
- this._registerSelector$2(selectorInPseudo == null ? t4._as(selectorInPseudo) : selectorInPseudo, selector);
- }
- }
- },
- addExtension$4(extender, target, extend, mediaContext) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10, newExtensions, _i, complex, t11, extension, _0_0, t12, newExtensionsByTarget, additionalExtensions, _this = this,
- selectors = _this._selectors.$index(0, target),
- t1 = _this._extensionsByExtender,
- existingExtensions = t1.$index(0, target),
- sources = _this._extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure());
- for (t2 = extender.components, t3 = t2.length, t4 = selectors == null, t5 = _this._sourceSpecificity, t6 = extend.span, t7 = extend.isOptional, t8 = existingExtensions != null, t9 = type$.ComplexSelector, t10 = type$.Extension, newExtensions = null, _i = 0; _i < t3; ++_i) {
- complex = t2[_i];
- if (complex.accept$1(B.C__IsUselessVisitor))
- continue;
- complex.get$specificity();
- t11 = new A.Extender(complex, false);
- extension = t11._extension = new A.Extension(t11, target, mediaContext, t7, t6);
- _0_0 = sources.$index(0, complex);
- if (_0_0 != null) {
- sources.$indexSet(0, complex, A.MergedExtension_merge(_0_0, extension));
- continue;
- }
- sources.$indexSet(0, complex, extension);
- for (t11 = new A._SyncStarIterator(_this._simpleSelectors$1(complex)._outerHelper()); t11.moveNext$0();) {
- t12 = t11._async$_current;
- J.add$1$ax(t1.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure0()), extension);
- t5.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure1(complex));
- }
- if (!t4 || t8) {
- if (newExtensions == null)
- newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t9, t10);
- newExtensions.$indexSet(0, complex, extension);
- }
- }
- if (newExtensions == null)
- return;
- t1 = type$.SimpleSelector;
- newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension);
- if (t8) {
- additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
- if (additionalExtensions != null)
- A.mapAddAll2(newExtensionsByTarget, additionalExtensions, t1, t9, t10);
- }
- if (!t4)
- _this._extendExistingSelectors$2(selectors, newExtensionsByTarget);
- },
- _simpleSelectors$1(complex) {
- return new A._SyncStarIterable(this._simpleSelectors$body$ExtensionStore(complex), type$._SyncStarIterable_SimpleSelector);
- },
- _simpleSelectors$body$ExtensionStore($async$complex) {
- var $async$self = this;
- return function() {
- var complex = $async$complex;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, _i, t4, t5, _i0, simple, _0_2_isSet, _0_2, t6, selector, t7, _i1;
- return function $async$_simpleSelectors$1($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = complex.components, t2 = t1.length, t3 = type$.SelectorList, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- t4 = t1[_i].selector.components, t5 = t4.length, _i0 = 0;
- case 5:
- // for condition
- if (!(_i0 < t5)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- simple = t4[_i0];
- $async$goto = 8;
- return $async$iterator._async$_current = simple, 1;
- case 8:
- // after yield
- _0_2_isSet = simple instanceof A.PseudoSelector;
- if (_0_2_isSet) {
- _0_2 = simple.selector;
- t6 = _0_2 != null;
- } else {
- _0_2 = null;
- t6 = false;
- }
- $async$goto = t6 ? 9 : 10;
- break;
- case 9:
- // then
- selector = _0_2_isSet ? _0_2 : simple.selector;
- t6 = (selector == null ? t3._as(selector) : selector).components, t7 = t6.length, _i1 = 0;
- case 11:
- // for condition
- if (!(_i1 < t7)) {
- // goto after for
- $async$goto = 13;
- break;
- }
- $async$goto = 14;
- return $async$iterator._yieldStar$1($async$self._simpleSelectors$1(t6[_i1]));
- case 14:
- // after yield
- case 12:
- // for update
- ++_i1;
- // goto for condition
- $async$goto = 11;
- break;
- case 13:
- // after for
- case 10:
- // join
- case 6:
- // for update
- ++_i0;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- _extendExistingExtensions$2(extensions, newExtensions) {
- var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, selectors0, t10, t11, t12, t13, t14, withExtender, _0_0, _i0, _i1;
- 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, A.throwConcurrentModificationError)(t1), ++_i) {
- extension = t1[_i];
- t7 = t6.$index(0, extension.target);
- t7.toString;
- selectors = null;
- try {
- selectors = this._extendComplex$3(extension.extender.selector, newExtensions, extension.mediaContext);
- if (selectors == null)
- continue;
- } catch (exception) {
- t8 = A.unwrapException(exception);
- if (t8 instanceof A.SassException) {
- error = t8;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace(error.withAdditionalSpan$2(extension.extender.selector.span, "target selector"), error, stackTrace);
- } else
- throw exception;
- }
- t8 = J.get$first$ax(selectors);
- t9 = extension.extender.selector;
- if (B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components)) {
- t8 = selectors;
- t9 = A._arrayInstanceType(t8);
- selectors0 = new A.SubListIterable(t8, 1, null, t9._eval$1("SubListIterable<1>"));
- selectors0.SubListIterable$3(t8, 1, null, t9._precomputed1);
- selectors = selectors0;
- }
- for (t8 = J.get$iterator$ax(selectors); t8.moveNext$0();) {
- t9 = t8.get$current(t8);
- t10 = extension;
- t11 = t10.target;
- t12 = t10.span;
- t13 = t10.mediaContext;
- t10 = t10.isOptional;
- t9.get$specificity();
- t14 = new A.Extender(t9, false);
- withExtender = t14._extension = new A.Extension(t14, t11, t13, t10, t12);
- _0_0 = t7.$index(0, t9);
- if (_0_0 != null)
- t7.$indexSet(0, t9, A.MergedExtension_merge(_0_0, withExtender));
- else {
- t7.$indexSet(0, t9, withExtender);
- for (t10 = t9.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0)
- for (t12 = t10[_i0].selector.components, t13 = t12.length, _i1 = 0; _i1 < t13; ++_i1)
- J.add$1$ax(t3.putIfAbsent$2(t12[_i1], new A.ExtensionStore__extendExistingExtensions_closure()), withExtender);
- if (newExtensions.containsKey$1(extension.target)) {
- if (additionalExtensions == null)
- additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
- additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure0()).$indexSet(0, t9, withExtender);
- }
- }
- }
- }
- return additionalExtensions;
- },
- _extendExistingSelectors$2(selectors, newExtensions) {
- var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4, t5, t6;
- for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) {
- selector = t1.get$current(t1);
- oldValue = selector.value;
- try {
- selector.value = this._extendList$3(selector.value, newExtensions, t2.$index(0, selector));
- } catch (exception) {
- t3 = A.unwrapException(exception);
- if (t3 instanceof A.SassException) {
- error = t3;
- stackTrace = A.getTraceFromException(exception);
- t3 = selector.value.span.message$1(0, "");
- t4 = error._span_exception$_message;
- t5 = error;
- t6 = J.getInterceptor$z(t5);
- t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
- A.throwWithTrace(new A.SassException(B.Set_empty, "From " + t3 + "\n" + t4, t5), error, stackTrace);
- } else
- throw exception;
- }
- if (oldValue === selector.value)
- continue;
- this._registerSelector$2(selector.value, selector);
- }
- },
- addExtensions$1(extensionStores) {
- var t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, selectorsToExtend, extensionsToExtend, t12, t13, target, newSources, first, extensionsForTarget, t14, selectorsForTarget, t15, _2_0, t16, extender, extension, _this = this, _null = null;
- for (t1 = J.get$iterator$ax(extensionStores), t2 = type$.SimpleSelector, t3 = type$.Map_ComplexSelector_Extension, t4 = _this._extensions, t5 = type$.ComplexSelector, t6 = type$.Extension, t7 = _this._selectors, t8 = _this._extensionsByExtender, t9 = type$.JSArray_Extension, t10 = type$.ModifiableBox_SelectorList, t11 = _this._sourceSpecificity, newExtensions = _null, selectorsToExtend = newExtensions, extensionsToExtend = selectorsToExtend; t1.moveNext$0();) {
- t12 = t1.get$current(t1);
- if (t12.get$isEmpty(t12))
- continue;
- t11.addAll$1(0, t12.get$_sourceSpecificity());
- for (t12 = A.MapExtensions_get_pairs(t12.get$_extensions(), t2, t3), t12 = t12.get$iterator(t12); t12.moveNext$0();) {
- t13 = t12.get$current(t12);
- target = t13._0;
- newSources = t13._1;
- if (target instanceof A.PlaceholderSelector) {
- first = target.name.charCodeAt(0);
- t13 = first === 45 || first === 95;
- } else
- t13 = false;
- if (t13)
- continue;
- extensionsForTarget = t8.$index(0, target);
- t13 = extensionsForTarget == null;
- if (!t13) {
- if (extensionsToExtend == null) {
- extensionsToExtend = A._setArrayType([], t9);
- t14 = extensionsToExtend;
- } else
- t14 = extensionsToExtend;
- B.JSArray_methods.addAll$1(t14, extensionsForTarget);
- }
- selectorsForTarget = t7.$index(0, target);
- t14 = selectorsForTarget != null;
- if (t14) {
- if (selectorsToExtend == null) {
- selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(t10);
- t15 = selectorsToExtend;
- } else
- t15 = selectorsToExtend;
- t15.addAll$1(0, selectorsForTarget);
- }
- _2_0 = t4.$index(0, target);
- if (_2_0 != null)
- for (t15 = A.MapExtensions_get_pairs(newSources, t5, t6), t15 = t15.get$iterator(t15); t15.moveNext$0();) {
- t16 = t15.get$current(t15);
- extender = t16._0;
- extension = t16._1;
- if (_2_0.containsKey$1(extender)) {
- t16 = _2_0.$index(0, extender);
- extension = A.MergedExtension_merge(t16 == null ? t6._as(t16) : t16, extension);
- _2_0.$indexSet(0, extender, extension);
- } else
- _2_0.$indexSet(0, extender, extension);
- if (!t13 || t14) {
- if (newExtensions == null) {
- newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
- t16 = newExtensions;
- } else
- t16 = newExtensions;
- J.$indexSet$ax(t16.putIfAbsent$2(target, new A.ExtensionStore_addExtensions_closure()), extender, extension);
- }
- }
- else {
- t15 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
- t15.addAll$1(0, newSources);
- t4.$indexSet(0, target, t15);
- if (!t13 || t14) {
- if (newExtensions == null) {
- newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
- t13 = newExtensions;
- } else
- t13 = newExtensions;
- t14 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
- t14.addAll$1(0, newSources);
- t13.$indexSet(0, target, t14);
- }
- }
- }
- }
- if (newExtensions != null) {
- if (extensionsToExtend != null)
- _this._extendExistingExtensions$2(extensionsToExtend, newExtensions);
- if (selectorsToExtend != null)
- _this._extendExistingSelectors$2(selectorsToExtend, newExtensions);
- }
- },
- _extendList$3(list, extensions, mediaQueryContext) {
- var t1, t2, t3, extended, i, complex, result, t4;
- for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, extended = null, i = 0; i < t2; ++i) {
- complex = t1[i];
- result = this._extendComplex$3(complex, extensions, mediaQueryContext);
- if (result == null) {
- if (extended != null)
- extended.push(complex);
- } else {
- if (extended == null)
- if (i === 0)
- extended = A._setArrayType([], t3);
- else {
- t4 = B.JSArray_methods.sublist$2(t1, 0, i);
- extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
- }
- B.JSArray_methods.addAll$1(extended, result);
- }
- }
- if (extended == null)
- return list;
- t1 = this._originals;
- return A.SelectorList$(this._trim$2(extended, t1.get$contains(t1)), list.span);
- },
- _extendList$2(list, extensions) {
- return this._extendList$3(list, extensions, null);
- },
- _extendComplex$3(complex, extensions, mediaQueryContext) {
- var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, extendedNotExpanded, i, component, extended, t11, t12, t13, t14, _box_0 = {},
- t1 = complex.leadingCombinators,
- t2 = t1.length;
- if (t2 > 1)
- return null;
- isOriginal = this._originals.contains$1(0, complex);
- for (t3 = complex.components, t4 = t3.length, t5 = type$.JSArray_List_ComplexSelector, t6 = complex.lineBreak, t7 = !t6, t8 = complex.span, t9 = type$.JSArray_ComplexSelector, t2 = t2 === 0, t10 = type$.JSArray_ComplexSelectorComponent, extendedNotExpanded = null, i = 0; i < t4; ++i) {
- component = t3[i];
- extended = this._extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
- if (extended == null) {
- if (extendedNotExpanded != null)
- extendedNotExpanded.push(A._setArrayType([A.ComplexSelector$(B.List_empty0, A._setArrayType([component], t10), t8, t6)], t9));
- } else if (extendedNotExpanded != null)
- extendedNotExpanded.push(extended);
- else if (i !== 0) {
- t11 = A._arrayInstanceType(t3);
- t12 = new A.SubListIterable(t3, 0, i, t11._eval$1("SubListIterable<1>"));
- t12.SubListIterable$3(t3, 0, i, t11._precomputed1);
- extendedNotExpanded = A._setArrayType([A._setArrayType([A.ComplexSelector$(t1, t12, t8, t6)], t9), extended], t5);
- } else if (t2)
- extendedNotExpanded = A._setArrayType([extended], t5);
- else {
- t11 = A._setArrayType([], t9);
- for (t12 = J.get$iterator$ax(extended); t12.moveNext$0();) {
- t13 = t12.get$current(t12);
- t14 = t13.leadingCombinators;
- if (t14.length === 0 || B.C_ListEquality.equals$2(0, t1, t14)) {
- t14 = t13.components;
- t11.push(A.ComplexSelector$(t1, t14, t8, !t7 || t13.lineBreak));
- }
- }
- extendedNotExpanded = A._setArrayType([t11], t5);
- }
- }
- if (extendedNotExpanded == null)
- return null;
- _box_0.first = true;
- t1 = type$.ComplexSelector;
- t1 = J.expand$1$1$ax(A.paths(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure(_box_0, this, complex), t1);
- return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
- },
- _extendCompound$4$inOriginal(component, extensions, mediaQueryContext, inOriginal) {
- var t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, t12, result, compound, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null,
- t1 = _this._mode,
- targetsUsed = t1 === B.ExtendMode_normal_normal || extensions.__js_helper$_length < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector),
- t2 = component.selector,
- simples = t2.components;
- for (t3 = simples.length, t4 = type$.JSArray_List_Extender, t5 = type$.JSArray_Extender, t6 = type$.CssValue_Combinator, t7 = type$.JSArray_ComplexSelectorComponent, t8 = A._arrayInstanceType(simples), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = component.span, t11 = type$.SimpleSelector, options = _null, i = 0; i < t3; ++i) {
- simple = simples[i];
- extended = _this._extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
- if (extended == null) {
- if (options != null)
- options.push(A._setArrayType([_this._extenderForSimple$1(simple)], t5));
- } else {
- if (options == null) {
- options = A._setArrayType([], t4);
- if (i !== 0) {
- t12 = new A.SubListIterable(simples, 0, i, t8);
- t12.SubListIterable$3(simples, 0, i, t9);
- result = A.List_List$from(t12, false, t11);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- compound = new A.CompoundSelector(t12, t10);
- if (t12.length === 0)
- A.throwExpression(A.ArgumentError$("components may not be empty.", _null));
- result = A.List_List$from(B.List_empty0, false, t6);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(compound, result, t10)], t7), t10, false);
- _this._sourceSpecificityFor$1(compound);
- options.push(A._setArrayType([new A.Extender(t12, true)], t5));
- }
- }
- B.JSArray_methods.addAll$1(options, extended);
- }
- }
- if (options == null)
- return _null;
- if (targetsUsed != null && targetsUsed._collection$_length !== extensions.__js_helper$_length)
- return _null;
- if (options.length === 1) {
- for (t1 = J.get$iterator$ax(options[0]), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector, result = _null; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- t4.assertCompatibleMediaContext$1(mediaQueryContext);
- complex = t4.selector.withAdditionalCombinators$1(t2);
- if (complex.accept$1(B.C__IsUselessVisitor))
- continue;
- if (result == null)
- result = A._setArrayType([], t3);
- result.push(complex);
- }
- return result;
- }
- extenderPaths = A.paths(options, type$.Extender);
- t3 = A._setArrayType([], type$.JSArray_ComplexSelector);
- t1 = t1 === B.ExtendMode_replace_replace;
- t4 = !t1;
- if (t4)
- t3.push(A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(J.expand$1$1$ax(J.get$first$ax(extenderPaths), new A.ExtensionStore__extendCompound_closure(), t11), t2.span), A.List_List$unmodifiable(component.combinators, t6), t10)], t7), t10, false));
- t2 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1);
- t5 = t2.$ti;
- t2 = new A.ListIterator(t2, t2.get$length(0), t5._eval$1("ListIterator<ListIterable.E>"));
- t6 = component.combinators;
- t5 = t5._eval$1("ListIterable.E");
- for (; t2.moveNext$0();) {
- t1 = t2.__internal$_current;
- extended = _this._unifyExtenders$3(t1 == null ? t5._as(t1) : t1, mediaQueryContext, t10);
- if (extended == null)
- continue;
- for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) {
- withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t6);
- if (!withCombinators.accept$1(B.C__IsUselessVisitor))
- t3.push(withCombinators);
- }
- }
- isOriginal = new A.ExtensionStore__extendCompound_closure0();
- return _this._trim$2(t3, inOriginal && t4 ? new A.ExtensionStore__extendCompound_closure1(B.JSArray_methods.get$first(t3)) : isOriginal);
- },
- _unifyExtenders$3(extenders, mediaQueryContext, span) {
- var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null,
- toUnify = A.QueueList$(_null, type$.ComplexSelector);
- for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector, originals = _null, originalsLineBreak = false; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- if (t4.isOriginal) {
- if (originals == null)
- originals = A._setArrayType([], t3);
- t4 = t4.selector;
- B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components);
- originalsLineBreak = originalsLineBreak || t4.lineBreak;
- } else {
- t4 = t4.selector;
- if (t4.accept$1(B.C__IsUselessVisitor))
- return _null;
- else
- toUnify._queue_list$_add$1(t4);
- }
- }
- if (originals != null)
- toUnify.addFirst$1(A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(originals, span), A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent), span, originalsLineBreak));
- complexes = A.unifyComplex(toUnify, span);
- if (complexes == null)
- return _null;
- for (t1 = t1.get$iterator(extenders); t1.moveNext$0();)
- t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext);
- return complexes;
- },
- _extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed) {
- var t2, _1_0,
- t1 = new A.ExtensionStore__extendSimple_withoutPseudo(this, extensions, targetsUsed);
- if (simple instanceof A.PseudoSelector)
- t2 = simple.selector != null;
- else
- t2 = false;
- if (t2) {
- _1_0 = this._extendPseudo$3(simple, extensions, mediaQueryContext);
- if (_1_0 != null)
- return new A.MappedListIterable(_1_0, new A.ExtensionStore__extendSimple_closure(this, t1), A._arrayInstanceType(_1_0)._eval$1("MappedListIterable<1,List<Extender>>"));
- }
- return A.NullableExtension_andThen(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure0());
- },
- _extenderForSimple$1(simple) {
- var t1 = simple.span;
- t1 = A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([simple], type$.JSArray_SimpleSelector), t1), A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), t1)], type$.JSArray_ComplexSelectorComponent), t1, false);
- this._sourceSpecificity.$index(0, simple);
- return new A.Extender(t1, true);
- },
- _extendPseudo$3(pseudo, extensions, mediaQueryContext) {
- var extended, complexes, t1, result,
- selector = pseudo.selector;
- if (selector == null)
- throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null));
- extended = this._extendList$3(selector, extensions, mediaQueryContext);
- if (extended === selector)
- return null;
- complexes = extended.components;
- t1 = pseudo.normalizedName === "not";
- if (t1 && !B.JSArray_methods.any$1(selector.components, new A.ExtensionStore__extendPseudo_closure()) && B.JSArray_methods.any$1(complexes, new A.ExtensionStore__extendPseudo_closure0()))
- complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure1(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
- complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure2(pseudo), type$.ComplexSelector);
- if (t1 && selector.components.length === 1) {
- t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure3(pseudo, selector), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector);
- result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
- return result.length === 0 ? null : result;
- } else
- return A._setArrayType([pseudo.withSelector$1(A.SelectorList$(complexes, selector.span))], type$.JSArray_PseudoSelector);
- },
- _trim$2(selectors, isOriginal) {
- var i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity,
- result = A.QueueList$(null, type$.ComplexSelector);
- $label0$0:
- for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
- _box_0 = {};
- complex1 = selectors[i];
- if (isOriginal.call$1(complex1)) {
- for (j = 0; j < numOriginals; ++j)
- if (J.$eq$(result.$index(0, j), complex1)) {
- A.rotateSlice(result, 0, j + 1);
- continue $label0$0;
- }
- ++numOriginals;
- result.addFirst$1(complex1);
- continue $label0$0;
- }
- _box_0.maxSpecificity = 0;
- for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) {
- maxSpecificity = Math.max(t5, this._sourceSpecificityFor$1(t3[_i].selector));
- _box_0.maxSpecificity = maxSpecificity;
- }
- if (result.any$1(result, new A.ExtensionStore__trim_closure(_box_0, complex1)))
- continue $label0$0;
- t3 = new A.SubListIterable(selectors, 0, i, t1);
- t3.SubListIterable$3(selectors, 0, i, t2);
- if (t3.any$1(0, new A.ExtensionStore__trim_closure0(_box_0, complex1)))
- continue $label0$0;
- result.addFirst$1(complex1);
- }
- return result;
- },
- _sourceSpecificityFor$1(compound) {
- var t1, t2, t3, specificity, _i, t4;
- for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
- t4 = t3.$index(0, t1[_i]);
- specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4));
- }
- return specificity;
- },
- clone$0() {
- var t2, t3, t4, _this = this,
- t1 = type$.SimpleSelector,
- newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList),
- newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList, type$.List_CssMediaQuery),
- oldToNewSelectors = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList);
- _this._selectors.forEach$1(0, new A.ExtensionStore_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts));
- t2 = type$.Extension;
- t3 = A.copyMapOfMap(_this._extensions, t1, type$.ComplexSelector, t2);
- t2 = A.copyMapOfList(_this._extensionsByExtender, t1, t2);
- t1 = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int);
- t1.addAll$1(0, _this._sourceSpecificity);
- t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector);
- t4.addAll$1(0, _this._originals);
- return new A._Record_2(new A.ExtensionStore(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal), oldToNewSelectors);
- },
- get$_extensions() {
- return this._extensions;
- },
- get$_sourceSpecificity() {
- return this._sourceSpecificity;
- }
- };
- A.ExtensionStore_extensionsWhereTarget_closure.prototype = {
- call$1(extension) {
- return !extension.isOptional;
- },
- $signature: 342
- };
- A.ExtensionStore__registerSelector_closure.prototype = {
- call$0() {
- return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableBox_SelectorList);
- },
- $signature: 343
- };
- A.ExtensionStore_addExtension_closure.prototype = {
- call$0() {
- return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
- },
- $signature: 115
- };
- A.ExtensionStore_addExtension_closure0.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_Extension);
- },
- $signature: 220
- };
- A.ExtensionStore_addExtension_closure1.prototype = {
- call$0() {
- return this.complex.get$specificity();
- },
- $signature: 10
- };
- A.ExtensionStore__extendExistingExtensions_closure.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_Extension);
- },
- $signature: 220
- };
- A.ExtensionStore__extendExistingExtensions_closure0.prototype = {
- call$0() {
- return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
- },
- $signature: 115
- };
- A.ExtensionStore_addExtensions_closure.prototype = {
- call$0() {
- return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
- },
- $signature: 115
- };
- A.ExtensionStore__extendComplex_closure.prototype = {
- call$1(path) {
- var t1 = this.complex;
- return J.map$1$1$ax(A.weave(path, t1.span, t1.lineBreak), new A.ExtensionStore__extendComplex__closure(this._box_0, this.$this, t1), type$.ComplexSelector);
- },
- $signature: 348
- };
- A.ExtensionStore__extendComplex__closure.prototype = {
- call$1(outputComplex) {
- var _this = this,
- t1 = _this._box_0;
- if (t1.first && _this.$this._originals.contains$1(0, _this.complex))
- _this.$this._originals.add$1(0, outputComplex);
- t1.first = false;
- return outputComplex;
- },
- $signature: 59
- };
- A.ExtensionStore__extendCompound_closure.prototype = {
- call$1(extender) {
- return B.JSArray_methods.get$last(extender.selector.components).selector.components;
- },
- $signature: 349
- };
- A.ExtensionStore__extendCompound_closure0.prototype = {
- call$1(_) {
- return false;
- },
- $signature: 16
- };
- A.ExtensionStore__extendCompound_closure1.prototype = {
- call$1(complex) {
- return complex.$eq(0, this.original);
- },
- $signature: 16
- };
- A.ExtensionStore__extendSimple_withoutPseudo.prototype = {
- call$1(simple) {
- var t1, t2,
- extensionsForSimple = this.extensions.$index(0, simple);
- if (extensionsForSimple == null)
- return null;
- t1 = this.targetsUsed;
- if (t1 != null)
- t1.add$1(0, simple);
- t1 = A._setArrayType([], type$.JSArray_Extender);
- t2 = this.$this;
- if (t2._mode !== B.ExtendMode_replace_replace)
- t1.push(t2._extenderForSimple$1(simple));
- for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.get$current(t2).extender);
- return t1;
- },
- $signature: 350
- };
- A.ExtensionStore__extendSimple_closure.prototype = {
- call$1(pseudo) {
- var t1 = this.withoutPseudo.call$1(pseudo);
- return t1 == null ? A._setArrayType([this.$this._extenderForSimple$1(pseudo)], type$.JSArray_Extender) : t1;
- },
- $signature: 361
- };
- A.ExtensionStore__extendSimple_closure0.prototype = {
- call$1(result) {
- return A._setArrayType([result], type$.JSArray_List_Extender);
- },
- $signature: 362
- };
- A.ExtensionStore__extendPseudo_closure.prototype = {
- call$1(complex) {
- return complex.components.length > 1;
- },
- $signature: 16
- };
- A.ExtensionStore__extendPseudo_closure0.prototype = {
- call$1(complex) {
- return complex.components.length === 1;
- },
- $signature: 16
- };
- A.ExtensionStore__extendPseudo_closure1.prototype = {
- call$1(complex) {
- return complex.components.length <= 1;
- },
- $signature: 16
- };
- A.ExtensionStore__extendPseudo_closure2.prototype = {
- call$1(complex) {
- var innerPseudo, innerSelector,
- t1 = complex.get$singleCompound();
- if (t1 == null)
- innerPseudo = null;
- else {
- t1 = t1.components;
- innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null;
- }
- if (!(innerPseudo instanceof A.PseudoSelector))
- return A._setArrayType([complex], type$.JSArray_ComplexSelector);
- innerSelector = innerPseudo.selector;
- if (innerSelector == null)
- return A._setArrayType([complex], type$.JSArray_ComplexSelector);
- t1 = this.pseudo;
- switch (t1.normalizedName) {
- case "not":
- if (!B.Set_mlzm2.contains$1(0, innerPseudo.normalizedName))
- return A._setArrayType([], type$.JSArray_ComplexSelector);
- return innerSelector.components;
- case "is":
- case "matches":
- case "where":
- case "any":
- case "current":
- case "nth-child":
- case "nth-last-child":
- if (innerPseudo.name !== t1.name)
- return A._setArrayType([], type$.JSArray_ComplexSelector);
- if (innerPseudo.argument != t1.argument)
- return A._setArrayType([], type$.JSArray_ComplexSelector);
- return innerSelector.components;
- case "has":
- case "host":
- case "host-context":
- case "slotted":
- return A._setArrayType([complex], type$.JSArray_ComplexSelector);
- default:
- return A._setArrayType([], type$.JSArray_ComplexSelector);
- }
- },
- $signature: 378
- };
- A.ExtensionStore__extendPseudo_closure3.prototype = {
- call$1(complex) {
- return this.pseudo.withSelector$1(A.SelectorList$(A._setArrayType([complex], type$.JSArray_ComplexSelector), this.selector.span));
- },
- $signature: 379
- };
- A.ExtensionStore__trim_closure.prototype = {
- call$1(complex2) {
- return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
- },
- $signature: 16
- };
- A.ExtensionStore__trim_closure0.prototype = {
- call$1(complex2) {
- return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
- },
- $signature: 16
- };
- A.ExtensionStore_clone_closure.prototype = {
- call$2(simple, selectors) {
- var t2, t3, t4, t5, t6, t7, newSelector, _0_0, _this = this,
- t1 = type$.ModifiableBox_SelectorList,
- newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- _this.newSelectors.$indexSet(0, simple, newSelectorSet);
- for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = type$.Box_SelectorList, t5 = _this.$this._mediaContexts, t6 = _this.newMediaContexts; t2.moveNext$0();) {
- t7 = t2.get$current(t2);
- newSelector = new A.ModifiableBox(t7.value, t1);
- newSelectorSet.add$1(0, newSelector);
- t3.$indexSet(0, t7.value, new A.Box(newSelector, t4));
- _0_0 = t5.$index(0, t7);
- if (_0_0 != null)
- t6.$indexSet(0, newSelector, _0_0);
- }
- },
- $signature: 380
- };
- A.unifyComplex_closure.prototype = {
- call$1(complex) {
- return complex.lineBreak;
- },
- $signature: 16
- };
- A._weaveParents_closure.prototype = {
- call$2(group1, group2) {
- var t1, unified;
- if (B.C_ListEquality.equals$2(0, group1, group2))
- return group1;
- if (A._complexIsParentSuperselector(group1, group2))
- return group2;
- if (A._complexIsParentSuperselector(group2, group1))
- return group1;
- if (!A._mustUnify(group1, group2))
- return null;
- t1 = this.span;
- unified = A.unifyComplex(A._setArrayType([A.ComplexSelector$(B.List_empty0, group1, t1, false), A.ComplexSelector$(B.List_empty0, group2, t1, false)], type$.JSArray_ComplexSelector), t1);
- if (unified == null)
- t1 = null;
- else {
- t1 = A.IterableExtension_get_singleOrNull(unified);
- t1 = t1 == null ? null : t1.components;
- }
- return t1;
- },
- $signature: 381
- };
- A._weaveParents_closure0.prototype = {
- call$1(sequence) {
- return A._complexIsParentSuperselector(sequence.get$first(sequence), this.group);
- },
- $signature: 206
- };
- A._weaveParents_closure1.prototype = {
- call$1(sequence) {
- return sequence.get$length(0) === 0;
- },
- $signature: 206
- };
- A._weaveParents_closure2.prototype = {
- call$1(choice) {
- return J.get$isNotEmpty$asx(choice);
- },
- $signature: 387
- };
- A._mustUnify_closure.prototype = {
- call$1(component) {
- return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure(this.uniqueSelectors));
- },
- $signature: 49
- };
- A._mustUnify__closure.prototype = {
- call$1(simple) {
- var t1;
- if (!(simple instanceof A.IDSelector))
- t1 = simple instanceof A.PseudoSelector && !simple.isClass;
- else
- t1 = true;
- return t1 && this.uniqueSelectors.contains$1(0, simple);
- },
- $signature: 13
- };
- A.paths_closure.prototype = {
- call$2(paths, choice) {
- var t1 = this.T;
- t1 = J.expand$1$1$ax(choice, new A.paths__closure(paths, t1), t1._eval$1("List<0>"));
- return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
- },
- $signature() {
- return this.T._eval$1("List<List<0>>(List<List<0>>,List<0>)");
- }
- };
- A.paths__closure.prototype = {
- call$1(option) {
- var t1 = this.T;
- return J.map$1$1$ax(this.paths, new A.paths___closure(option, t1), t1._eval$1("List<0>"));
- },
- $signature() {
- return this.T._eval$1("Iterable<List<0>>(0)");
- }
- };
- A.paths___closure.prototype = {
- call$1(path) {
- var t1 = A.List_List$of(path, true, this.T);
- t1.push(this.option);
- return t1;
- },
- $signature() {
- return this.T._eval$1("List<0>(List<0>)");
- }
- };
- A.listIsSuperselector_closure.prototype = {
- call$1(complex1) {
- return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure(complex1));
- },
- $signature: 16
- };
- A.listIsSuperselector__closure.prototype = {
- call$1(complex2) {
- return complex2.isSuperselector$1(this.complex1);
- },
- $signature: 16
- };
- A.complexIsSuperselector_closure.prototype = {
- call$1($parent) {
- return $parent.combinators.length > 1;
- },
- $signature: 49
- };
- A.complexIsSuperselector_closure0.prototype = {
- call$1(component) {
- return A._isSupercombinator(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators));
- },
- $signature: 49
- };
- A._compatibleWithPreviousCombinator_closure.prototype = {
- call$1(component) {
- var t1 = component.combinators,
- t2 = A.IterableExtension_get_firstOrNull(t1);
- if (!J.$eq$(t2 == null ? null : t2.value, B.Combinator_y18)) {
- t1 = A.IterableExtension_get_firstOrNull(t1);
- t1 = J.$eq$(t1 == null ? null : t1.value, B.Combinator_gRV);
- } else
- t1 = true;
- return t1;
- },
- $signature: 49
- };
- A.compoundIsSuperselector_closure.prototype = {
- call$1(simple1) {
- return B.JSArray_methods.any$1(this.compound2.components, simple1.get$isSuperselector());
- },
- $signature: 13
- };
- A._selectorPseudoIsSuperselector_closure.prototype = {
- call$1(selector2) {
- return A.listIsSuperselector(this.selector1.components, selector2.components);
- },
- $signature: 70
- };
- A._selectorPseudoIsSuperselector_closure0.prototype = {
- call$1(complex1) {
- var t1, t2;
- if (complex1.leadingCombinators.length === 0) {
- t1 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent);
- t2 = this.parents;
- if (t2 != null)
- B.JSArray_methods.addAll$1(t1, t2);
- t2 = this.compound2;
- t1.push(new A.ComplexSelectorComponent(t2, A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), t2.span));
- t1 = A.complexIsSuperselector(complex1.components, t1);
- } else
- t1 = false;
- return t1;
- },
- $signature: 16
- };
- A._selectorPseudoIsSuperselector_closure1.prototype = {
- call$1(selector2) {
- return A.listIsSuperselector(this.selector1.components, selector2.components);
- },
- $signature: 70
- };
- A._selectorPseudoIsSuperselector_closure2.prototype = {
- call$1(selector2) {
- return A.listIsSuperselector(this.selector1.components, selector2.components);
- },
- $signature: 70
- };
- A._selectorPseudoIsSuperselector_closure3.prototype = {
- call$1(complex) {
- if (complex.accept$1(B._IsBogusVisitor_true))
- return false;
- return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure(complex, this.pseudo1));
- },
- $signature: 16
- };
- A._selectorPseudoIsSuperselector__closure.prototype = {
- call$1(simple2) {
- var t1, _0_4, selector2, _this = this;
- $label0$1: {
- if (simple2 instanceof A.TypeSelector) {
- t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure(simple2));
- break $label0$1;
- }
- if (simple2 instanceof A.IDSelector) {
- t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure0(simple2));
- break $label0$1;
- }
- if (simple2 instanceof A.PseudoSelector) {
- _0_4 = simple2.selector;
- if (_0_4 != null) {
- selector2 = _0_4 == null ? type$.SelectorList._as(_0_4) : _0_4;
- t1 = simple2.name === _this.pseudo1.name;
- } else {
- selector2 = null;
- t1 = false;
- }
- } else {
- selector2 = null;
- t1 = false;
- }
- if (t1) {
- t1 = A.listIsSuperselector(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector));
- break $label0$1;
- }
- t1 = false;
- break $label0$1;
- }
- return t1;
- },
- $signature: 13
- };
- A._selectorPseudoIsSuperselector___closure.prototype = {
- call$1(simple1) {
- var t1;
- if (simple1 instanceof A.TypeSelector) {
- t1 = this.simple2;
- t1 = !(t1 instanceof A.TypeSelector && t1.name.$eq(0, simple1.name));
- } else
- t1 = false;
- return t1;
- },
- $signature: 13
- };
- A._selectorPseudoIsSuperselector___closure0.prototype = {
- call$1(simple1) {
- var t1;
- if (simple1 instanceof A.IDSelector) {
- t1 = this.simple2;
- t1 = !(t1 instanceof A.IDSelector && t1.name === simple1.name);
- } else
- t1 = false;
- return t1;
- },
- $signature: 13
- };
- A._selectorPseudoIsSuperselector_closure4.prototype = {
- call$1(selector2) {
- var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components);
- return t1;
- },
- $signature: 70
- };
- A._selectorPseudoIsSuperselector_closure5.prototype = {
- call$1(pseudo2) {
- var t1, selector2;
- if (!(pseudo2 instanceof A.PseudoSelector))
- return false;
- t1 = this.pseudo1;
- if (pseudo2.name !== t1.name)
- return false;
- if (pseudo2.argument != t1.argument)
- return false;
- selector2 = pseudo2.selector;
- if (selector2 == null)
- return false;
- return A.listIsSuperselector(this.selector1.components, selector2.components);
- },
- $signature: 13
- };
- A._selectorPseudoArgs_closure.prototype = {
- call$1(pseudo) {
- return pseudo.isClass === this.isClass && pseudo.name === this.name;
- },
- $signature: 388
- };
- A._selectorPseudoArgs_closure0.prototype = {
- call$1(pseudo) {
- return pseudo.selector;
- },
- $signature: 390
- };
- A.MergedExtension.prototype = {
- unmerge$0() {
- return new A._SyncStarIterable(this.unmerge$body$MergedExtension(), type$._SyncStarIterable_Extension);
- },
- unmerge$body$MergedExtension() {
- var $async$self = this;
- return function() {
- var $async$goto = 0, $async$handler = 1, $async$currentError, right, left;
- return function $async$unmerge$0($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- left = $async$self.left;
- $async$goto = left instanceof A.MergedExtension ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return $async$iterator._yieldStar$1(left.unmerge$0());
- case 5:
- // after yield
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 6;
- return $async$iterator._async$_current = left, 1;
- case 6:
- // after yield
- case 3:
- // join
- right = $async$self.right;
- $async$goto = right instanceof A.MergedExtension ? 7 : 9;
- break;
- case 7:
- // then
- $async$goto = 10;
- return $async$iterator._yieldStar$1(right.unmerge$0());
- case 10:
- // after yield
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = 11;
- return $async$iterator._async$_current = right, 1;
- case 11:
- // after yield
- case 8:
- // join
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- }
- };
- A.ExtendMode.prototype = {
- _enumToString$0() {
- return "ExtendMode." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.globalFunctions_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
- },
- $signature: 6
- };
- A.global_closure0.prototype = {
- call$1($arguments) {
- return A._rgb("rgb", $arguments);
- },
- $signature: 6
- };
- A.global_closure1.prototype = {
- call$1($arguments) {
- return A._rgb("rgb", $arguments);
- },
- $signature: 6
- };
- A.global_closure2.prototype = {
- call$1($arguments) {
- return A._rgbTwoArg("rgb", $arguments);
- },
- $signature: 6
- };
- A.global_closure3.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels("rgb", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString ? parsed : A._rgb("rgb", type$.List_Value._as(parsed));
- },
- $signature: 6
- };
- A.global_closure4.prototype = {
- call$1($arguments) {
- return A._rgb("rgba", $arguments);
- },
- $signature: 6
- };
- A.global_closure5.prototype = {
- call$1($arguments) {
- return A._rgb("rgba", $arguments);
- },
- $signature: 6
- };
- A.global_closure6.prototype = {
- call$1($arguments) {
- return A._rgbTwoArg("rgba", $arguments);
- },
- $signature: 6
- };
- A.global_closure7.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels("rgba", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString ? parsed : A._rgb("rgba", type$.List_Value._as(parsed));
- },
- $signature: 6
- };
- A.global_closure8.prototype = {
- call$1($arguments) {
- var color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber()) {
- if (weight._number$_value !== 100 || !weight.hasUnit$1("%"))
- throw A.wrapException(string$.Only_oa);
- return A._functionString("invert", t1.take$1($arguments, 1));
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red(0);
- t2 = color.get$green(0);
- return A._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(0), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 6
- };
- A.global_closure9.prototype = {
- call$1($arguments) {
- return A._hsl("hsl", $arguments);
- },
- $signature: 6
- };
- A.global_closure10.prototype = {
- call$1($arguments) {
- return A._hsl("hsl", $arguments);
- },
- $signature: 6
- };
- A.global_closure11.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return A._functionString("hsl", $arguments);
- else
- throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null));
- },
- $signature: 17
- };
- A.global_closure12.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels("hsl", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString ? parsed : A._hsl("hsl", type$.List_Value._as(parsed));
- },
- $signature: 6
- };
- A.global_closure13.prototype = {
- call$1($arguments) {
- return A._hsl("hsla", $arguments);
- },
- $signature: 6
- };
- A.global_closure14.prototype = {
- call$1($arguments) {
- return A._hsl("hsla", $arguments);
- },
- $signature: 6
- };
- A.global_closure15.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return A._functionString("hsla", $arguments);
- else
- throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null));
- },
- $signature: 17
- };
- A.global_closure16.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels("hsla", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString ? parsed : A._hsl("hsla", type$.List_Value._as(parsed));
- },
- $signature: 6
- };
- A.global_closure17.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber())
- return A._functionString("grayscale", $arguments);
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 6
- };
- A.global_closure18.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- degrees = A._angleValue(t1.$index($arguments, 1), "degrees");
- return color.changeHsl$1$hue(color.get$hue(0) + degrees);
- },
- $signature: 29
- };
- A.global_closure19.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(0) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 29
- };
- A.global_closure20.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(0) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 29
- };
- A.global_closure21.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber())
- return A._functionString("saturate", $arguments);
- return new A.SassString("saturate(" + A.serializeValue(t1.$index($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
- },
- $signature: 17
- };
- A.global_closure22.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(0) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 29
- };
- A.global_closure23.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(0) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 29
- };
- A.global_closure24.prototype = {
- call$1($arguments) {
- var argument = J.$index$asx($arguments, 0);
- if (argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart()))
- return A._functionString("alpha", $arguments);
- return A.SassNumber_SassNumber(argument.assertColor$1("color")._alpha, null);
- },
- $signature: 6
- };
- A.global_closure25.prototype = {
- call$1($arguments) {
- var t1,
- argList = J.$index$asx($arguments, 0).get$asList();
- if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure()))
- return A._functionString("alpha", $arguments);
- t1 = argList.length;
- if (t1 === 0)
- throw A.wrapException(A.SassScriptException$("Missing argument $color.", null));
- else
- throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed.", null));
- },
- $signature: 17
- };
- A.global__closure.prototype = {
- call$1(argument) {
- return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart());
- },
- $signature: 72
- };
- A.global_closure26.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber())
- return A._functionString("opacity", $arguments);
- return A.SassNumber_SassNumber(t1.$index($arguments, 0).assertColor$1("color")._alpha, null);
- },
- $signature: 6
- };
- A.module_closure1.prototype = {
- call$1($arguments) {
- var result, color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof A.SassNumber) {
- if (weight._number$_value !== 100 || !weight.hasUnit$1("%"))
- throw A.wrapException(string$.Only_oa);
- result = A._functionString("invert", t1.take$1($arguments, 1));
- A.warnForDeprecation("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x29x20to_ci + result.toString$0(0), B.Deprecation_iDZ);
- return result;
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red(0);
- t2 = color.get$green(0);
- return A._mixColors(color.changeRgb$3$blue$green$red(255 - color.get$blue(0), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 6
- };
- A.module_closure2.prototype = {
- call$1($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber) {
- result = A._functionString("grayscale", t1.take$1($arguments, 1));
- A.warnForDeprecation("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x29x20to_cg + result.toString$0(0), B.Deprecation_iDZ);
- return result;
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 6
- };
- A.module_closure3.prototype = {
- call$1($arguments) {
- return A._hwb($arguments);
- },
- $signature: 6
- };
- A.module_closure4.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels("hwb", A._setArrayType(["$hue", "$whiteness", "$blackness"], type$.JSArray_String), J.get$first$ax($arguments));
- if (parsed instanceof A.SassString)
- throw A.wrapException(A.SassScriptException$('Expected numeric channels, got "' + parsed.toString$0(0) + '".', null));
- else
- return A._hwb(type$.List_Value._as(parsed));
- },
- $signature: 6
- };
- A.module_closure5.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$whiteness(0), "%");
- },
- $signature: 11
- };
- A.module_closure6.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$blackness(0), "%");
- },
- $signature: 11
- };
- A.module_closure7.prototype = {
- call$1($arguments) {
- var result,
- argument = J.$index$asx($arguments, 0);
- if (argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart())) {
- result = A._functionString("alpha", $arguments);
- A.warnForDeprecation(string$.Using_c + result.toString$0(0), B.Deprecation_iDZ);
- return result;
- }
- return A.SassNumber_SassNumber(argument.assertColor$1("color")._alpha, null);
- },
- $signature: 6
- };
- A.module_closure8.prototype = {
- call$1($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure1())) {
- result = A._functionString("alpha", $arguments);
- A.warnForDeprecation(string$.Using_c + result.toString$0(0), B.Deprecation_iDZ);
- return result;
- }
- throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null));
- },
- $signature: 17
- };
- A.module__closure1.prototype = {
- call$1(argument) {
- return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart());
- },
- $signature: 72
- };
- A.module_closure9.prototype = {
- call$1($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber) {
- result = A._functionString("opacity", $arguments);
- A.warnForDeprecation("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x20to_co + result.toString$0(0), B.Deprecation_iDZ);
- return result;
- }
- return A.SassNumber_SassNumber(t1.$index($arguments, 0).assertColor$1("color")._alpha, null);
- },
- $signature: 6
- };
- A._red_closure.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$red(0), null);
- },
- $signature: 11
- };
- A._green_closure.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$green(0), null);
- },
- $signature: 11
- };
- A._blue_closure.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$blue(0), null);
- },
- $signature: 11
- };
- A._mix_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A._mixColors(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
- },
- $signature: 29
- };
- A._hue_closure.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$hue(0), "deg");
- },
- $signature: 11
- };
- A._saturation_closure.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$saturation(0), "%");
- },
- $signature: 11
- };
- A._lightness_closure.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.get$first$ax($arguments).assertColor$1("color").get$lightness(0), "%");
- },
- $signature: 11
- };
- A._complement_closure.prototype = {
- call$1($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color");
- return color.changeHsl$1$hue(color.get$hue(0) + 180);
- },
- $signature: 29
- };
- A._adjust_closure.prototype = {
- call$1($arguments) {
- return A._updateComponents($arguments, true, false, false);
- },
- $signature: 29
- };
- A._scale_closure.prototype = {
- call$1($arguments) {
- return A._updateComponents($arguments, false, false, true);
- },
- $signature: 29
- };
- A._change_closure.prototype = {
- call$1($arguments) {
- return A._updateComponents($arguments, false, true, false);
- },
- $signature: 29
- };
- A._ieHexStr_closure.prototype = {
- call$1($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color"),
- t1 = new A._ieHexStr_closure_hexString();
- return new A.SassString("#" + A.S(t1.call$1(A.fuzzyRound(color._alpha * 255))) + A.S(t1.call$1(color.get$red(0))) + A.S(t1.call$1(color.get$green(0))) + A.S(t1.call$1(color.get$blue(0))), false);
- },
- $signature: 17
- };
- A._ieHexStr_closure_hexString.prototype = {
- call$1(component) {
- return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(component, 16), 2, "0").toUpperCase();
- },
- $signature: 191
- };
- A._updateComponents_getParam.prototype = {
- call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, checkPercent, checkUnitless) {
- var t2, _this = this,
- t1 = _this.keywords.remove$1(0, $name),
- number = t1 == null ? null : t1.assertNumber$1($name);
- if (number == null)
- return null;
- t1 = _this.scale;
- t2 = !t1;
- if (t2 && checkUnitless)
- if (number.get$hasUnits())
- A.warnForDeprecation("$" + $name + ": Passing a number with unit " + number.get$unitString() + string$.x20is_de + number.unitSuggestion$1($name) + string$.x0a_Morex3a, B.Deprecation_2jN);
- if (t2 && checkPercent)
- A._checkPercent(number, $name);
- if (!t2 || assertPercent)
- number.assertUnit$2("%", $name);
- if (t1)
- max = 100;
- if (!t2 || assertPercent)
- t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name);
- else {
- t1 = _this.change ? 0 : -max;
- t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : "");
- }
- return t1;
- },
- call$2($name, max) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, false);
- },
- call$3$checkUnitless($name, max, checkUnitless) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, checkUnitless);
- },
- call$3$checkPercent($name, max, checkPercent) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, checkPercent, false);
- },
- call$3$assertPercent($name, max, assertPercent) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, false, false);
- },
- $signature: 189
- };
- A._updateComponents_closure.prototype = {
- call$1(hue) {
- return A._angleValue(hue, "hue");
- },
- $signature: 83
- };
- A._updateComponents_closure0.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._updateComponents_updateValue.prototype = {
- call$3(current, param, max) {
- var t1;
- if (param == null)
- return current;
- if (this.change)
- return param;
- if (this.adjust)
- return B.JSNumber_methods.clamp$2(current + param, 0, max);
- t1 = param > 0 ? max - current : current;
- return current + t1 * (param / 100);
- },
- $signature: 251
- };
- A._updateComponents_updateRgb.prototype = {
- call$2(current, param) {
- return A.fuzzyRound(this.updateValue.call$3(current, param, 255));
- },
- $signature: 249
- };
- A._functionString_closure.prototype = {
- call$1(argument) {
- return A.serializeValue(argument, false, true);
- },
- $signature: 475
- };
- A._removedColorFunction_closure.prototype = {
- call$1($arguments) {
- var t1 = this.name,
- t2 = J.getInterceptor$asx($arguments),
- t3 = A.S(t2.$index($arguments, 0)),
- t4 = this.negative ? "-" : "";
- throw A.wrapException(A.SassScriptException$("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Mor + t1, null));
- },
- $signature: 527
- };
- A._rgb_closure.prototype = {
- call$1(alpha) {
- return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
- },
- $signature: 83
- };
- A._hsl_closure.prototype = {
- call$1(alpha) {
- return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
- },
- $signature: 83
- };
- A._hwb_closure.prototype = {
- call$1(alpha) {
- return A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
- },
- $signature: 83
- };
- A._parseChannels_closure.prototype = {
- call$1(value) {
- return value.get$isVar();
- },
- $signature: 72
- };
- A._length_closure0.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).get$asList().length, null);
- },
- $signature: 11
- };
- A._nth_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1);
- return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
- },
- $signature: 6
- };
- A._setNth_closure.prototype = {
- call$1($arguments) {
- var newList,
- t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1),
- value = t1.$index($arguments, 2);
- t1 = list.get$asList();
- newList = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
- newList[list.sassIndexToListIndex$2(index, "n")] = value;
- return list.withListContents$1(newList);
- },
- $signature: 24
- };
- A._join_closure.prototype = {
- call$1($arguments) {
- var _0_1, _0_4, _0_3, t2, _0_40, separator, bracketed, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- list1 = t1.$index($arguments, 0),
- list2 = t1.$index($arguments, 1),
- separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
- bracketedParam = t1.$index($arguments, 3),
- _1_0 = separatorParam._string$_text;
- $label1$1: {
- if ("auto" === _1_0) {
- _0_1 = list1.get$separator(list1);
- _0_4 = list2.get$separator(list2);
- $label0$0: {
- _0_3 = B.ListSeparator_undecided_null_undecided === _0_1;
- t1 = _0_3;
- if (t1) {
- t2 = B.ListSeparator_undecided_null_undecided === _0_4;
- _0_40 = _0_4;
- } else {
- _0_40 = _null;
- t2 = false;
- }
- if (t2) {
- t1 = B.ListSeparator_nbm;
- break $label0$0;
- }
- if (_0_3)
- separator = t1 ? _0_40 : _0_4;
- else
- separator = _null;
- if (!_0_3)
- separator = _0_1;
- t1 = separator;
- break $label0$0;
- }
- break $label1$1;
- }
- if ("space" === _1_0) {
- t1 = B.ListSeparator_nbm;
- break $label1$1;
- }
- if ("comma" === _1_0) {
- t1 = B.ListSeparator_ECn;
- break $label1$1;
- }
- if ("slash" === _1_0) {
- t1 = B.ListSeparator_cQA;
- break $label1$1;
- }
- t1 = A.throwExpression(A.SassScriptException$(string$.x24separ, _null));
- }
- bracketed = bracketedParam instanceof A.SassString && bracketedParam._string$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
- t2 = A.List_List$of(list1.get$asList(), true, type$.Value);
- B.JSArray_methods.addAll$1(t2, list2.get$asList());
- return A.SassList$(t2, t1, bracketed);
- },
- $signature: 24
- };
- A._append_closure0.prototype = {
- call$1($arguments) {
- var t2,
- t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- value = t1.$index($arguments, 1),
- _0_0 = t1.$index($arguments, 2).assertString$1("separator")._string$_text;
- $label0$0: {
- if ("auto" === _0_0) {
- t1 = list.get$separator(list) === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_nbm : list.get$separator(list);
- break $label0$0;
- }
- if ("space" === _0_0) {
- t1 = B.ListSeparator_nbm;
- break $label0$0;
- }
- if ("comma" === _0_0) {
- t1 = B.ListSeparator_ECn;
- break $label0$0;
- }
- if ("slash" === _0_0) {
- t1 = B.ListSeparator_cQA;
- break $label0$0;
- }
- t1 = A.throwExpression(A.SassScriptException$(string$.x24separ, null));
- }
- t2 = A.List_List$of(list.get$asList(), true, type$.Value);
- t2.push(value);
- return list.withListContents$2$separator(t2, t1);
- },
- $signature: 24
- };
- A._zip_closure.prototype = {
- call$1($arguments) {
- var results, result, _box_0 = {},
- t1 = J.$index$asx($arguments, 0).get$asList(),
- t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value>>"),
- lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure(), t2), true, t2._eval$1("ListIterable.E"));
- if (lists.length === 0)
- return B.SassList_bdS;
- _box_0.i = 0;
- results = A._setArrayType([], type$.JSArray_SassList);
- for (t1 = A._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value>"), t2 = type$.Value; B.JSArray_methods.every$1(lists, new A._zip__closure0(_box_0));) {
- result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure1(_box_0), t1), false, t2);
- result.fixed$length = Array;
- result.immutable$list = Array;
- results.push(new A.SassList(result, B.ListSeparator_nbm, false));
- ++_box_0.i;
- }
- return A.SassList$(results, B.ListSeparator_ECn, false);
- },
- $signature: 24
- };
- A._zip__closure.prototype = {
- call$1(list) {
- return list.get$asList();
- },
- $signature: 591
- };
- A._zip__closure0.prototype = {
- call$1(list) {
- return this._box_0.i !== J.get$length$asx(list);
- },
- $signature: 608
- };
- A._zip__closure1.prototype = {
- call$1(list) {
- return J.$index$asx(list, this._box_0.i);
- },
- $signature: 6
- };
- A._index_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
- return index === -1 ? B.C__SassNull : A.SassNumber_SassNumber(index + 1, null);
- },
- $signature: 6
- };
- A._separator_closure.prototype = {
- call$1($arguments) {
- var t1,
- _0_0 = J.get$separator$x(J.$index$asx($arguments, 0));
- $label0$0: {
- if (B.ListSeparator_ECn === _0_0) {
- t1 = new A.SassString("comma", false);
- break $label0$0;
- }
- if (B.ListSeparator_cQA === _0_0) {
- t1 = new A.SassString("slash", false);
- break $label0$0;
- }
- t1 = new A.SassString("space", false);
- break $label0$0;
- }
- return t1;
- },
- $signature: 17
- };
- A._isBracketed_closure.prototype = {
- call$1($arguments) {
- return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._slash_closure.prototype = {
- call$1($arguments) {
- var list = J.$index$asx($arguments, 0).get$asList();
- if (list.length < 2)
- throw A.wrapException(A.SassScriptException$("At least two elements are required.", null));
- return A.SassList$(list, B.ListSeparator_cQA, false);
- },
- $signature: 24
- };
- A._get_closure.prototype = {
- call$1($arguments) {
- var value,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
- value = map._map$_contents.$index(0, t1.get$current(t1));
- if (!(value instanceof A.SassMap))
- return B.C__SassNull;
- }
- t1 = map._map$_contents.$index(0, B.JSArray_methods.get$last(t2));
- return t1 == null ? B.C__SassNull : t1;
- },
- $signature: 6
- };
- A._set_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A._modify(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value), new A._set__closure0($arguments), true);
- },
- $signature: 6
- };
- A._set__closure0.prototype = {
- call$1(_) {
- return J.$index$asx(this.$arguments, 2);
- },
- $signature: 39
- };
- A._set_closure0.prototype = {
- call$1($arguments) {
- var keys, t3, t1 = {},
- t2 = J.getInterceptor$asx($arguments),
- map = t2.$index($arguments, 0).assertMap$1("map"),
- _0_0 = t2.$index($arguments, 1).get$asList(),
- _0_1 = _0_0.length;
- if (_0_1 <= 0)
- throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", null));
- if (_0_1 === 1)
- throw A.wrapException(A.SassScriptException$("Expected $args to contain a value.", null));
- keys = t1.value = null;
- t2 = _0_1 >= 1;
- if (t2) {
- t3 = _0_1 - 1;
- keys = B.JSArray_methods.sublist$2(_0_0, 0, t3);
- t1.value = _0_0[t3];
- }
- if (t2)
- return A._modify(map, keys, new A._set__closure(t1), true);
- throw A.wrapException("[BUG] Unreachable code");
- },
- $signature: 6
- };
- A._set__closure.prototype = {
- call$1(_) {
- return this._box_0.value;
- },
- $signature: 39
- };
- A._merge_closure.prototype = {
- call$1($arguments) {
- var t2,
- t1 = J.getInterceptor$asx($arguments),
- map1 = t1.$index($arguments, 0).assertMap$1("map1"),
- map2 = t1.$index($arguments, 1).assertMap$1("map2");
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map$_contents, t1, t1);
- t2.addAll$1(0, map2._map$_contents);
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 33
- };
- A._merge_closure0.prototype = {
- call$1($arguments) {
- var t2, keys, last, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- map1 = t1.$index($arguments, 0).assertMap$1("map1"),
- _0_0 = t1.$index($arguments, 1).get$asList(),
- _0_1 = _0_0.length;
- if (_0_1 <= 0)
- throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", _null));
- if (_0_1 === 1)
- throw A.wrapException(A.SassScriptException$("Expected $args to contain a map.", _null));
- t1 = _0_1 >= 1;
- if (t1) {
- t2 = _0_1 - 1;
- keys = B.JSArray_methods.sublist$2(_0_0, 0, t2);
- last = _0_0[t2];
- } else {
- last = _null;
- keys = last;
- }
- if (t1)
- return A._modify(map1, keys, new A._merge__closure(last.assertMap$1("map2")), true);
- throw A.wrapException("[BUG] Unreachable code");
- },
- $signature: 6
- };
- A._merge__closure.prototype = {
- call$1(oldValue) {
- var t1, t2,
- nestedMap = oldValue.tryMap$0();
- if (nestedMap == null)
- return this.map2;
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1);
- t2.addAll$1(0, this.map2._map$_contents);
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 301
- };
- A._deepMerge_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A._deepMergeImpl(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
- },
- $signature: 33
- };
- A._deepRemove_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- return A._modify(map, A.IterableExtension_get_exceptLast(t2), new A._deepRemove__closure(t2), false);
- },
- $signature: 6
- };
- A._deepRemove__closure.prototype = {
- call$1(value) {
- var t1, nestedMap, t2,
- _0_0 = value.tryMap$0();
- if (_0_0 != null) {
- t1 = _0_0._map$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys));
- nestedMap = _0_0;
- } else {
- nestedMap = null;
- t1 = false;
- }
- if (t1) {
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1);
- t2.remove$1(0, B.JSArray_methods.get$last(this.keys));
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- }
- return value;
- },
- $signature: 39
- };
- A._remove_closure.prototype = {
- call$1($arguments) {
- return J.$index$asx($arguments, 0).assertMap$1("map");
- },
- $signature: 33
- };
- A._remove_closure0.prototype = {
- call$1($arguments) {
- var mutableMap, t3, _i,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- t1 = type$.Value;
- mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1);
- for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i)
- mutableMap.remove$1(0, t2[_i]);
- return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- },
- $signature: 33
- };
- A._keys_closure.prototype = {
- call$1($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents;
- return A.SassList$(t1.get$keys(t1), B.ListSeparator_ECn, false);
- },
- $signature: 24
- };
- A._values_closure.prototype = {
- call$1($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents;
- return A.SassList$(t1.get$values(t1), B.ListSeparator_ECn, false);
- },
- $signature: 24
- };
- A._hasKey_closure.prototype = {
- call$1($arguments) {
- var value,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
- value = map._map$_contents.$index(0, t1.get$current(t1));
- if (!(value instanceof A.SassMap))
- return B.SassBoolean_false;
- }
- return map._map$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._modify_modifyNestedMap.prototype = {
- call$1(map) {
- var nestedMap, _this = this,
- t1 = type$.Value,
- mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1),
- t2 = _this.keyIterator,
- key = t2.get$current(t2);
- if (!t2.moveNext$0()) {
- t2 = mutableMap.$index(0, key);
- if (t2 == null)
- t2 = B.C__SassNull;
- mutableMap.$indexSet(0, key, _this.modify.call$1(t2));
- return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- }
- t2 = mutableMap.$index(0, key);
- nestedMap = t2 == null ? null : t2.tryMap$0();
- t2 = nestedMap == null;
- if (t2 && !_this.addNesting)
- return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty : nestedMap));
- return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- },
- $signature: 627
- };
- A.global_closure.prototype = {
- call$1($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.hasUnit$1("%"))
- A.warnForDeprecation(string$.Passinp + number.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + number.toString$0(0) + string$.x7d__Mor, B.Deprecation_GFc);
- t1 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits(Math.abs(number._number$_value), number.get$denominatorUnits(number), t1);
- },
- $signature: 11
- };
- A.module_closure0.prototype = {
- call$1(value) {
- return Math.abs(value);
- },
- $signature: 37
- };
- A._ceil_closure.prototype = {
- call$1(value) {
- return B.JSNumber_methods.ceil$0(value);
- },
- $signature: 37
- };
- A._clamp_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- min = t1.$index($arguments, 0).assertNumber$1("min"),
- number = t1.$index($arguments, 1).assertNumber$1("number"),
- max = t1.$index($arguments, 2).assertNumber$1("max");
- number.convertValueToMatch$3(min, "number", "min");
- max.convertValueToMatch$3(min, "max", "min");
- if (min.greaterThanOrEquals$1(max).value)
- return min;
- if (min.greaterThanOrEquals$1(number).value)
- return min;
- if (number.greaterThanOrEquals$1(max).value)
- return max;
- return number;
- },
- $signature: 11
- };
- A._floor_closure.prototype = {
- call$1(value) {
- return B.JSNumber_methods.floor$0(value);
- },
- $signature: 37
- };
- A._max_closure.prototype = {
- call$1($arguments) {
- var t1, t2, max, _i, number;
- for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- number = t1[_i].assertNumber$0();
- if (max == null || max.lessThan$1(number).value)
- max = number;
- }
- if (max != null)
- return max;
- throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
- },
- $signature: 11
- };
- A._min_closure.prototype = {
- call$1($arguments) {
- var t1, t2, min, _i, number;
- for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- number = t1[_i].assertNumber$0();
- if (min == null || min.greaterThan$1(number).value)
- min = number;
- }
- if (min != null)
- return min;
- throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
- },
- $signature: 11
- };
- A._round_closure.prototype = {
- call$1(number) {
- return B.JSNumber_methods.round$0(number);
- },
- $signature: 37
- };
- A._hypot_closure.prototype = {
- call$1($arguments) {
- var subtotal, i, i0, t3, t4,
- t1 = J.$index$asx($arguments, 0).get$asList(),
- t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber>"),
- numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure(), t2), true, t2._eval$1("ListIterable.E"));
- t1 = numbers.length;
- if (t1 === 0)
- throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
- for (subtotal = 0, i = 0; i < t1; i = i0) {
- i0 = i + 1;
- subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2);
- }
- t1 = Math.sqrt(subtotal);
- t2 = numbers[0];
- t3 = J.getInterceptor$x(t2);
- t4 = t3.get$numeratorUnits(t2);
- return A.SassNumber_SassNumber$withUnits(t1, t3.get$denominatorUnits(t2), t4);
- },
- $signature: 11
- };
- A._hypot__closure.prototype = {
- call$1(argument) {
- return argument.assertNumber$0();
- },
- $signature: 606
- };
- A._log_closure.prototype = {
- call$1($arguments) {
- var base,
- _s18_ = " to have no units.",
- _null = null,
- t1 = J.getInterceptor$asx($arguments),
- number = t1.$index($arguments, 0).assertNumber$1("number");
- if (number.get$hasUnits())
- throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_, _null));
- else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull))
- return A.SassNumber_SassNumber(Math.log(number._number$_value), _null);
- base = t1.$index($arguments, 1).assertNumber$1("base");
- if (base.get$hasUnits())
- throw A.wrapException(A.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_, _null));
- else
- return A.SassNumber_SassNumber(Math.log(number._number$_value) / Math.log(base._number$_value), _null);
- },
- $signature: 11
- };
- A._pow_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A.pow0(t1.$index($arguments, 0).assertNumber$1("base"), t1.$index($arguments, 1).assertNumber$1("exponent"));
- },
- $signature: 11
- };
- A._atan2_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- y = t1.$index($arguments, 0).assertNumber$1("y");
- return A.SassNumber_SassNumber$withUnits(Math.atan2(y._number$_value, t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- $signature: 11
- };
- A._compatible_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._isUnitless_closure.prototype = {
- call$1($arguments) {
- return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._unit_closure.prototype = {
- call$1($arguments) {
- return new A.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
- },
- $signature: 17
- };
- A._percentage_closure.prototype = {
- call$1($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber(number._number$_value * 100, "%");
- },
- $signature: 11
- };
- A._randomFunction_closure.prototype = {
- call$1($arguments) {
- var limit, limitScalar,
- t1 = J.getInterceptor$asx($arguments);
- if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull))
- return A.SassNumber_SassNumber($.$get$_random0().nextDouble$0(), null);
- limit = t1.$index($arguments, 0).assertNumber$1("limit");
- if (limit.get$hasUnits())
- A.warnForDeprecation(string$.math_r + limit.toString$0(0) + string$.x29x20in_a + limit.get$unitString() + ")) * 1" + limit.get$unitString() + string$.x0a_To_p + limit.get$unitString() + string$.x29x29__Mo, B.Deprecation_2jN);
- limitScalar = limit.assertInt$1("limit");
- if (limitScalar < 1)
- throw A.wrapException(A.SassScriptException$("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null));
- return A.SassNumber_SassNumber($.$get$_random0().nextInt$1(limitScalar) + 1, null);
- },
- $signature: 11
- };
- A._div_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- number1 = t1.$index($arguments, 0),
- number2 = t1.$index($arguments, 1);
- if (!(number1 instanceof A.SassNumber) || !(number2 instanceof A.SassNumber))
- A.warn(string$.math_d);
- return number1.dividedBy$1(number2);
- },
- $signature: 6
- };
- A._singleArgumentMathFunc_closure.prototype = {
- call$1($arguments) {
- return this.mathFunc.call$1(J.$index$asx($arguments, 0).assertNumber$1("number"));
- },
- $signature: 11
- };
- A._numberFunction_closure.prototype = {
- call$1($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number"),
- t1 = this.transform.call$1(number._number$_value),
- t2 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits(t1, number.get$denominatorUnits(number), t2);
- },
- $signature: 11
- };
- A.global_closure27.prototype = {
- call$1($arguments) {
- return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A.global_closure28.prototype = {
- call$1($arguments) {
- return new A.SassString(A.serializeValue(J.get$first$ax($arguments), true, true), false);
- },
- $signature: 17
- };
- A.global_closure29.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- _0_0 = t1.$index($arguments, 0);
- $label0$0: {
- if (_0_0 instanceof A.SassArgumentList) {
- t1 = "arglist";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassBoolean) {
- t1 = "bool";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassColor) {
- t1 = "color";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassList) {
- t1 = "list";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassMap) {
- t1 = "map";
- break $label0$0;
- }
- if (B.C__SassNull === _0_0) {
- t1 = "null";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassNumber) {
- t1 = "number";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassFunction) {
- t1 = "function";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassMixin) {
- t1 = "mixin";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassCalculation) {
- t1 = "calculation";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassString) {
- t1 = "string";
- break $label0$0;
- }
- t1 = A.throwExpression("[BUG] Unknown value type " + A.S(t1.$index($arguments, 0)));
- }
- return new A.SassString(t1, false);
- },
- $signature: 17
- };
- A.global_closure30.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- _1_0 = t1.$index($arguments, 0);
- if (_1_0 instanceof A.SassArgumentList) {
- _1_0._wereKeywordsAccessed = true;
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs(_1_0._keywords, type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString(t4._0, false), t4._1);
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- } else
- throw A.wrapException("$args: " + A.S(t1.$index($arguments, 0)) + " is not an argument list.");
- },
- $signature: 33
- };
- A.local_closure.prototype = {
- call$1($arguments) {
- return new A.SassString(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true);
- },
- $signature: 17
- };
- A.local_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments;
- return A.SassList$(new A.MappedListIterable(t1, new A.local__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_ECn, false);
- },
- $signature: 24
- };
- A.local__closure.prototype = {
- call$1(argument) {
- return argument instanceof A.Value ? argument : new A.SassString(J.toString$0$(argument), false);
- },
- $signature: 605
- };
- A.local_closure1.prototype = {
- call$1($arguments) {
- var _0_2_isSet, _0_2, acceptsContent, t1, _0_5_isSet, _0_5, hasContent,
- mixin = J.$index$asx($arguments, 0).assertMixin$1("mixin"),
- _0_0 = mixin.callable;
- $label0$0: {
- _0_2_isSet = type$.AsyncBuiltInCallable._is(_0_0);
- if (_0_2_isSet) {
- _0_2 = _0_0.get$acceptsContent();
- acceptsContent = _0_2;
- } else
- acceptsContent = null;
- if (!_0_2_isSet) {
- _0_2_isSet = _0_0 instanceof A.BuiltInCallable;
- if (_0_2_isSet) {
- _0_2 = _0_0.acceptsContent;
- acceptsContent = _0_2;
- }
- t1 = _0_2_isSet;
- } else
- t1 = true;
- if (t1) {
- t1 = acceptsContent;
- break $label0$0;
- }
- _0_5_isSet = _0_0 instanceof A.UserDefinedCallable;
- if (_0_5_isSet) {
- _0_5 = _0_0.declaration;
- t1 = _0_5 instanceof A.MixinRule;
- } else {
- _0_5 = null;
- t1 = false;
- }
- if (t1) {
- t1 = _0_5_isSet ? _0_5 : _0_0.declaration;
- hasContent = type$.MixinRule._as(t1).get$hasContent();
- t1 = hasContent;
- break $label0$0;
- }
- t1 = A.throwExpression(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- }
- return t1 ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._nest_closure.prototype = {
- call$1($arguments) {
- var t1 = {},
- selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw A.wrapException(A.SassScriptException$(string$.x24selec, null));
- t1.first = true;
- return new A.MappedListIterable(selectors, new A._nest__closure(t1), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new A._nest__closure0()).get$asSassList();
- },
- $signature: 24
- };
- A._nest__closure.prototype = {
- call$1(selector) {
- var t1 = this._box_0,
- result = A.SassApiValue_assertSelector(selector, !t1.first, null);
- t1.first = false;
- return result;
- },
- $signature: 137
- };
- A._nest__closure0.prototype = {
- call$2($parent, child) {
- return child.nestWithin$1($parent);
- },
- $signature: 138
- };
- A._append_closure.prototype = {
- call$1($arguments) {
- var t1,
- selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw A.wrapException(A.SassScriptException$(string$.x24selec, null));
- t1 = A.EvaluationContext_currentOrNull();
- return new A.MappedListIterable(selectors, new A._append__closure(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new A._append__closure0((t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan())).get$asSassList();
- },
- $signature: 24
- };
- A._append__closure.prototype = {
- call$1(selector) {
- return A.SassApiValue_assertSelector(selector, false, null);
- },
- $signature: 137
- };
- A._append__closure0.prototype = {
- call$2($parent, child) {
- var t1 = child.components,
- t2 = this.span;
- return A.SelectorList$(new A.MappedListIterable(t1, new A._append___closure($parent, t2), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")), t2).nestWithin$1($parent);
- },
- $signature: 138
- };
- A._append___closure.prototype = {
- call$1(complex) {
- var _0_0, t1, component, rest, newCompound, t2, _null = null;
- if (complex.leadingCombinators.length !== 0)
- throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
- _0_0 = complex.components;
- t1 = _0_0.length >= 1;
- if (t1) {
- component = _0_0[0];
- rest = B.JSArray_methods.sublist$1(_0_0, 1);
- } else {
- rest = _null;
- component = rest;
- }
- if (!t1)
- throw A.wrapException(A.StateError$("Pattern matching error"));
- newCompound = A._prependParent(component.selector);
- if (newCompound == null)
- throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
- t1 = this.span;
- t2 = A._setArrayType([new A.ComplexSelectorComponent(newCompound, A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator), t1)], type$.JSArray_ComplexSelectorComponent);
- B.JSArray_methods.addAll$1(t2, rest);
- return A.ComplexSelector$(B.List_empty0, t2, t1, false);
- },
- $signature: 59
- };
- A._extend_closure.prototype = {
- call$1($arguments) {
- var target, source,
- _s8_ = "selector",
- _s8_0 = "extendee",
- _s8_1 = "extender",
- t1 = J.getInterceptor$asx($arguments),
- selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_);
- selector.assertNotBogus$1$name(_s8_);
- target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0);
- target.assertNotBogus$1$name(_s8_0);
- source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s8_1);
- source.assertNotBogus$1$name(_s8_1);
- t1 = A.EvaluationContext_currentOrNull();
- return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_allTargets_allTargets, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
- },
- $signature: 24
- };
- A._replace_closure.prototype = {
- call$1($arguments) {
- var target, source,
- _s8_ = "selector",
- _s8_0 = "original",
- _s11_ = "replacement",
- t1 = J.getInterceptor$asx($arguments),
- selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_);
- selector.assertNotBogus$1$name(_s8_);
- target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0);
- target.assertNotBogus$1$name(_s8_0);
- source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s11_);
- source.assertNotBogus$1$name(_s11_);
- t1 = A.EvaluationContext_currentOrNull();
- return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_replace_replace, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
- },
- $signature: 24
- };
- A._unify_closure.prototype = {
- call$1($arguments) {
- var selector2,
- _s9_ = "selector1",
- _s9_0 = "selector2",
- t1 = J.getInterceptor$asx($arguments),
- selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s9_);
- selector1.assertNotBogus$1$name(_s9_);
- selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s9_0);
- selector2.assertNotBogus$1$name(_s9_0);
- t1 = selector1.unify$1(selector2);
- t1 = t1 == null ? null : t1.get$asSassList();
- return t1 == null ? B.C__SassNull : t1;
- },
- $signature: 6
- };
- A._isSuperselector_closure.prototype = {
- call$1($arguments) {
- var selector2,
- t1 = J.getInterceptor$asx($arguments),
- selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, "super");
- selector1.assertNotBogus$1$name("super");
- selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, "sub");
- selector2.assertNotBogus$1$name("sub");
- return A.listIsSuperselector(selector1.components, selector2.components) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._simpleSelectors_closure.prototype = {
- call$1($arguments) {
- var t1 = A.SassApiValue_assertCompoundSelector(J.$index$asx($arguments, 0), "selector").components;
- return A.SassList$(new A.MappedListIterable(t1, new A._simpleSelectors__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_ECn, false);
- },
- $signature: 24
- };
- A._simpleSelectors__closure.prototype = {
- call$1(simple) {
- return new A.SassString(A.serializeSelector(simple, true), false);
- },
- $signature: 590
- };
- A._parse_closure.prototype = {
- call$1($arguments) {
- return A.SassApiValue_assertSelector(J.$index$asx($arguments, 0), false, "selector").get$asSassList();
- },
- $signature: 24
- };
- A.module_closure.prototype = {
- call$1($arguments) {
- var limit, t2, chunks, i, lastEnd, match, t3,
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- separator = t1.$index($arguments, 1).assertString$1("separator");
- t1 = t1.$index($arguments, 2).get$realNull();
- limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit");
- if (limit != null && limit < 1)
- throw A.wrapException(A.SassScriptException$("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null));
- t1 = string._string$_text;
- if (t1.length === 0)
- return B.SassList_bdS0;
- else {
- t2 = separator._string$_text;
- if (t2.length === 0)
- return A.SassList$(A.MappedIterable_MappedIterable(new A.Runes(t1), new A.module__closure(string), type$.Runes._eval$1("Iterable.E"), type$.Value), B.ListSeparator_ECn, true);
- }
- chunks = A._setArrayType([], type$.JSArray_String);
- for (t2 = B.JSString_methods.allMatches$1(t2, t1), t2 = new A._StringAllMatchesIterator(t2._input, t2._pattern, t2.__js_helper$_index), i = 0, lastEnd = 0; t2.moveNext$0();) {
- match = t2.__js_helper$_current;
- t3 = match.start;
- chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3));
- lastEnd = t3 + match.pattern.length;
- ++i;
- if (i === limit)
- break;
- }
- chunks.push(B.JSString_methods.substring$1(t1, lastEnd));
- return A.SassList$(new A.MappedListIterable(chunks, new A.module__closure0(string), type$.MappedListIterable_String_Value), B.ListSeparator_ECn, true);
- },
- $signature: 24
- };
- A.module__closure.prototype = {
- call$1(rune) {
- return new A.SassString(A.Primitives_stringFromCharCode(rune), this.string._hasQuotes);
- },
- $signature: 569
- };
- A.module__closure0.prototype = {
- call$1(chunk) {
- return new A.SassString(chunk, this.string._hasQuotes);
- },
- $signature: 562
- };
- A._unquote_closure.prototype = {
- call$1($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (!string._hasQuotes)
- return string;
- return new A.SassString(string._string$_text, false);
- },
- $signature: 17
- };
- A._quote_closure.prototype = {
- call$1($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (string._hasQuotes)
- return string;
- return new A.SassString(string._string$_text, true);
- },
- $signature: 17
- };
- A._length_closure.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).assertString$1("string").get$_sassLength(), null);
- },
- $signature: 11
- };
- A._insert_closure.prototype = {
- call$1($arguments) {
- var indexInt, codeUnitIndex, _s5_ = "index",
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- insert = t1.$index($arguments, 1).assertString$1("insert"),
- index = t1.$index($arguments, 2).assertNumber$1(_s5_);
- index.assertNoUnits$1(_s5_);
- indexInt = index.assertInt$1(_s5_);
- if (indexInt < 0)
- indexInt = Math.max(string.get$_sassLength() + indexInt + 2, 0);
- t1 = string._string$_text;
- codeUnitIndex = A.codepointIndexToCodeUnitIndex(t1, A._codepointForIndex(indexInt, string.get$_sassLength(), false));
- return new A.SassString(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string$_text), string._hasQuotes);
- },
- $signature: 17
- };
- A._index_closure.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- t2 = t1.$index($arguments, 0).assertString$1("string")._string$_text,
- codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string$_text);
- if (codeUnitIndex === -1)
- return B.C__SassNull;
- return A.SassNumber_SassNumber(A.codeUnitIndexToCodepointIndex(t2, codeUnitIndex) + 1, null);
- },
- $signature: 6
- };
- A._slice_closure.prototype = {
- call$1($arguments) {
- var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
- _s8_ = "start-at",
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- start = t1.$index($arguments, 1).assertNumber$1(_s8_),
- end = t1.$index($arguments, 2).assertNumber$1("end-at");
- start.assertNoUnits$1(_s8_);
- end.assertNoUnits$1("end-at");
- lengthInCodepoints = string.get$_sassLength();
- endInt = end.assertInt$0();
- if (endInt === 0)
- return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
- startCodepoint = A._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false);
- endCodepoint = A._codepointForIndex(endInt, lengthInCodepoints, true);
- if (endCodepoint === lengthInCodepoints)
- --endCodepoint;
- if (endCodepoint < startCodepoint)
- return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
- t1 = string._string$_text;
- return new A.SassString(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex(t1, startCodepoint), A.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string._hasQuotes);
- },
- $signature: 17
- };
- A._toUpperCase_closure.prototype = {
- call$1($arguments) {
- var t1, t2, i, t3, t4,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
- t4 = t1.charCodeAt(i);
- t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4);
- }
- return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes);
- },
- $signature: 17
- };
- A._toLowerCase_closure.prototype = {
- call$1($arguments) {
- var t1, t2, i, t3, t4,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
- t4 = t1.charCodeAt(i);
- t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4);
- }
- return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes);
- },
- $signature: 17
- };
- A._uniqueId_closure.prototype = {
- call$1($arguments) {
- var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1);
- $._previousUniqueId = t1;
- if (t1 > Math.pow(36, 6))
- $._previousUniqueId = B.JSInt_methods.$mod($.$get$_previousUniqueId(), A._asInt(Math.pow(36, 6)));
- return new A.SassString("u" + B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1($.$get$_previousUniqueId(), 36), 6, "0"), false);
- },
- $signature: 17
- };
- A.ImportCache.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
- var t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, _1_2, result, _2_0, _2_1, _2_5_isSet, _2_3, _2_5, _2_3_isSet, j, _this = this, _null = null;
- if (A.isBrowser())
- t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter) && _this._importers.length === 0;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(string$.Custom);
- if (baseImporter != null && url.get$scheme() === "") {
- resolvedUrl = baseUrl == null ? _null : baseUrl.resolveUri$1(url);
- if (resolvedUrl == null)
- resolvedUrl = url;
- key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
- relativeResult = _this._perImporterCanonicalizeCache.putIfAbsent$2(key, new A.ImportCache_canonicalize_closure(_this, baseImporter, resolvedUrl, baseUrl, forImport, key, url));
- if (relativeResult != null)
- return relativeResult;
- }
- key = new A._Record_2_forImport(url, forImport);
- t1 = _this._canonicalizeCache;
- if (t1.containsKey$1(key))
- return t1.$index(0, key);
- for (t2 = _this._importers, t3 = type$.Record_1_nullable_Object, t4 = _this._perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl, t6 = type$.Record_3_Importer_and_Uri_and_Uri_originalUrl, cacheable = true, i = 0; i < t2.length; ++i) {
- importer = t2[i];
- perImporterKey = new A._Record_3_forImport(importer, url, forImport);
- if (t4.containsKey$1(perImporterKey)) {
- t7 = t4.$index(0, perImporterKey);
- _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
- } else
- _1_0 = _null;
- _1_2_isSet = t3._is(_1_0);
- if (_1_2_isSet) {
- _1_2 = _1_0._0;
- t7 = _1_2 != null;
- if (t7) {
- t6._as(_1_2);
- result = _1_2;
- } else
- result = _null;
- } else {
- result = _null;
- _1_2 = result;
- t7 = false;
- }
- if (t7)
- return result;
- if (_1_2_isSet)
- t7 = _1_2 == null;
- else
- t7 = false;
- if (t7)
- continue;
- $label0$1: {
- _2_0 = _this._canonicalize$4(importer, url, baseUrl, forImport);
- _2_1 = _2_0._0;
- _2_5_isSet = _2_1 != null;
- if (_2_5_isSet) {
- result = _2_1 == null ? t6._as(_2_1) : _2_1;
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_5 = t7;
- t7 = t7 && cacheable;
- } else {
- result = _null;
- _2_3 = result;
- _2_5 = _2_3;
- t7 = false;
- }
- if (t7) {
- t1.$indexSet(0, key, result);
- return result;
- }
- if (_2_5_isSet) {
- t7 = _2_5;
- _2_3_isSet = _2_5_isSet;
- } else {
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_3_isSet = true;
- }
- t7 = t7 && !cacheable;
- if (t7) {
- t4.$indexSet(0, perImporterKey, _2_1);
- if (_2_1 != null)
- return _2_1;
- break $label0$1;
- }
- t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
- if (t7) {
- if (cacheable) {
- for (j = 0; j < i; ++j)
- t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), _null);
- cacheable = false;
- }
- if (_2_1 != null)
- return _2_1;
- }
- }
- }
- if (cacheable)
- t1.$indexSet(0, key, _null);
- return _null;
- },
- canonicalize$3$baseImporter$baseUrl(_, url, baseImporter, baseUrl) {
- return this.canonicalize$4$baseImporter$baseUrl$forImport(0, url, baseImporter, baseUrl, false);
- },
- _canonicalize$4(importer, url, baseUrl, forImport) {
- var passContainingUrl, canonicalizeContext, t1, result, cacheable, _null = null;
- if (baseUrl != null)
- passContainingUrl = url.get$scheme() === "" || importer.isNonCanonicalScheme$1(url.get$scheme());
- else
- passContainingUrl = false;
- canonicalizeContext = new A.CanonicalizeContext(forImport, passContainingUrl ? baseUrl : _null);
- t1 = type$.nullable_Object;
- result = A.runZoned(new A.ImportCache__canonicalize_closure(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.nullable_Uri);
- cacheable = !passContainingUrl || !canonicalizeContext._wasContainingUrlAccessed;
- if (result == null)
- return new A._Record_2(_null, cacheable);
- if (result.get$scheme() === "")
- A.WarnForDeprecation_warnForDeprecation(this._logger, B.Deprecation_IMm, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, _null, _null);
- else if (importer.isNonCanonicalScheme$1(result.get$scheme()))
- throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
- return new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
- },
- importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
- return this._importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl, quiet));
- },
- importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
- return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
- },
- importCanonical$2(importer, canonicalUrl) {
- return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, null, false);
- },
- humanize$1(canonicalUrl) {
- var t1 = A.IterableNullableExtension_whereNotNull(this._canonicalizeCache.get$values(0), type$.Record_3_Importer_and_Uri_and_Uri_originalUrl),
- t2 = t1.$ti;
- t2 = A.NullableExtension_andThen(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.ImportCache_humanize_closure(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.ImportCache_humanize_closure0(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.ImportCache_humanize_closure1()), new A.ImportCache_humanize_closure2(canonicalUrl));
- return t2 == null ? canonicalUrl : t2;
- },
- sourceMapUrl$1(_, canonicalUrl) {
- var t1 = this._resultsCache.$index(0, canonicalUrl);
- t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
- return t1 == null ? canonicalUrl : t1;
- },
- clearCanonicalize$1(url) {
- var t1 = this._canonicalizeCache;
- t1.remove$1(0, new A._Record_2_forImport(url, false));
- t1.remove$1(0, new A._Record_2_forImport(url, true));
- this._perImporterCanonicalizeCache.removeWhere$1(0, new A.ImportCache_clearCanonicalize_closure(this, url));
- },
- clearImport$1(canonicalUrl) {
- this._resultsCache.remove$1(0, canonicalUrl);
- this._importCache.remove$1(0, canonicalUrl);
- }
- };
- A.ImportCache_canonicalize_closure.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.baseUrl,
- _0_0 = t1._canonicalize$4(_this.baseImporter, _this.resolvedUrl, t2, _this.forImport);
- if (t2 != null)
- t1._nonCanonicalRelativeUrls.$indexSet(0, _this.key, _this.url);
- return _0_0._0;
- },
- $signature: 122
- };
- A.ImportCache__canonicalize_closure.prototype = {
- call$0() {
- return this.importer.canonicalize$1(0, this.url);
- },
- $signature: 140
- };
- A.ImportCache_importCanonical_closure.prototype = {
- call$0() {
- var t2, t3, t4, t5, _this = this,
- t1 = _this.canonicalUrl,
- result = _this.importer.load$1(0, t1);
- if (result == null)
- return null;
- t2 = _this.$this;
- t2._resultsCache.$indexSet(0, t1, result);
- t3 = result.contents;
- t4 = result.syntax;
- t5 = _this.originalUrl;
- t1 = t5 == null ? t1 : t5.resolveUri$1(t1);
- return A.Stylesheet_Stylesheet$parse(t3, t4, _this.quiet ? $.$get$Logger_quiet() : t2._logger, t1);
- },
- $signature: 81
- };
- A.ImportCache_humanize_closure.prototype = {
- call$1(result) {
- return J.$eq$(result._1, this.canonicalUrl);
- },
- $signature: 541
- };
- A.ImportCache_humanize_closure0.prototype = {
- call$1(result) {
- return result._2;
- },
- $signature: 540
- };
- A.ImportCache_humanize_closure1.prototype = {
- call$1(url) {
- return url.get$path(url).length;
- },
- $signature: 87
- };
- A.ImportCache_humanize_closure2.prototype = {
- call$1(url) {
- var t1 = $.$get$url(),
- t2 = this.canonicalUrl;
- return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
- },
- $signature: 43
- };
- A.ImportCache_clearCanonicalize_closure.prototype = {
- call$2(key, _) {
- var t1 = this.url;
- return J.$eq$(key._1, t1) || J.$eq$(this.$this._nonCanonicalRelativeUrls.$index(0, key), t1);
- },
- $signature: 538
- };
- A.Importer.prototype = {
- modificationTime$1(url) {
- return new A.DateTime(Date.now(), false);
- },
- couldCanonicalize$2(url, canonicalUrl) {
- return true;
- },
- isNonCanonicalScheme$1(scheme) {
- return false;
- }
- };
- A.AsyncImporter.prototype = {};
- A.CanonicalizeContext.prototype = {};
- A.FilesystemImporter.prototype = {
- canonicalize$1(_, url) {
- var resolved, _0_0;
- if (url.get$scheme() === "file")
- resolved = A.resolveImportPath($.$get$context().style.pathFromUri$1(A._parseUri(url)));
- else if (url.get$scheme() !== "")
- return null;
- else {
- _0_0 = this._loadPath;
- if (_0_0 != null) {
- resolved = A.resolveImportPath(A.join(_0_0, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null));
- if (resolved != null && this._loadPathDeprecated)
- A.warnForDeprecation(string$.Using_t, B.Deprecation_B4v);
- } else
- return null;
- }
- return A.NullableExtension_andThen(resolved, new A.FilesystemImporter_canonicalize_closure());
- },
- load$1(_, url) {
- var path = $.$get$context().style.pathFromUri$1(A._parseUri(url)),
- t1 = A.readFile(path),
- t2 = A.Syntax_forPath(path),
- t3 = url.get$scheme();
- if (t3 === "")
- A.throwExpression(A.ArgumentError$value(url, "sourceMapUrl", "must be absolute"));
- return new A.ImporterResult(t1, url, t2);
- },
- modificationTime$1(url) {
- return A.modificationTime($.$get$context().style.pathFromUri$1(A._parseUri(url)));
- },
- couldCanonicalize$2(url, canonicalUrl) {
- var t1, t2, basename, canonicalBasename;
- if (url.get$scheme() !== "file" && url.get$scheme() !== "")
- return false;
- if (canonicalUrl.get$scheme() !== "file")
- return false;
- t1 = $.$get$url();
- t2 = t1.style;
- basename = A.ParsedPath_ParsedPath$parse(url.get$path(url), t2).get$basename();
- canonicalBasename = A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t2).get$basename();
- if (!B.JSString_methods.startsWith$1(basename, "_") && B.JSString_methods.startsWith$1(canonicalBasename, "_"))
- canonicalBasename = B.JSString_methods.substring$1(canonicalBasename, 1);
- return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename);
- },
- toString$0(_) {
- var t1 = this._loadPath;
- return t1 == null ? "<absolute file importer>" : t1;
- }
- };
- A.FilesystemImporter_canonicalize_closure.prototype = {
- call$1(resolved) {
- var t2, t0, _null = null,
- t1 = A.isNodeJs() ? self.process : _null;
- if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
- t1 = A.isNodeJs() ? self.process : _null;
- t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
- } else
- t1 = true;
- if (t1) {
- t1 = $.$get$context();
- t2 = A._realCasePath(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
- t0 = t2;
- t2 = t1;
- t1 = t0;
- } else {
- t1 = $.$get$context();
- t2 = t1.canonicalize$1(0, resolved);
- t0 = t2;
- t2 = t1;
- t1 = t0;
- }
- return t2.toUri$1(t1);
- },
- $signature: 141
- };
- A.NoOpImporter.prototype = {};
- A.NodePackageImporter.prototype = {
- isNonCanonicalScheme$1(scheme) {
- return scheme === "pkg";
- },
- canonicalize$1(_, url) {
- var packageName, jsonPath, jsonString, packageManifest, e, t1, t2, t3, t4, baseDirectory, parts, t5, $name, subpath, packageRoot, exception, _1_0, rootPath, subpathInRoot, _this = this, _null = null;
- if (url.get$scheme() === "file")
- return $.$get$FilesystemImporter_cwd().canonicalize$1(0, url);
- if (url.get$scheme() !== "pkg")
- return _null;
- if (url.get$hasAuthority())
- throw A.wrapException(string$.A_pkg_h);
- else {
- t1 = $.$get$url();
- t2 = t1.style;
- if (t2.rootLength$1(url.get$path(url)) > 0)
- throw A.wrapException("A pkg: URL's path must not begin with /.");
- else if (url.get$path(url).length === 0)
- throw A.wrapException("A pkg: URL must not have an empty path.");
- else if (url.get$hasQuery() || url.get$hasFragment())
- throw A.wrapException(string$.A_pkg_q);
- }
- t3 = A.canonicalizeContext();
- t3._wasContainingUrlAccessed = true;
- t3 = t3._containingUrl;
- if ((t3 == null ? _null : t3.get$scheme()) === "file") {
- t3 = A.canonicalizeContext();
- t3._wasContainingUrlAccessed = true;
- t3 = t3._containingUrl;
- t3.toString;
- t4 = $.$get$context();
- baseDirectory = t4.dirname$1(t4.style.pathFromUri$1(A._parseUri(t3)));
- } else {
- t3 = _this.__NodePackageImporter__entryPointDirectory_F;
- t3 === $ && A.throwUnnamedLateFieldNI();
- baseDirectory = t3;
- }
- packageName = null;
- parts = t1.split$1(0, url.get$path(url));
- t3 = B.JSArray_methods.removeAt$1(parts, 0);
- t4 = $.$get$context();
- t3.toString;
- t5 = t4.style;
- $name = t5.pathFromUri$1(A._parseUri(t3));
- if (B.JSString_methods.startsWith$1($name, "@"))
- $name = parts.length !== 0 ? t1.join$2(0, $name, B.JSArray_methods.removeAt$1(parts, 0)) : $name;
- subpath = parts.length !== 0 ? t5.pathFromUri$1(A._parseUri(t1.joinAll$1(parts))) : _null;
- packageName = $name;
- if (!J.startsWith$1$s(packageName, "."))
- if (!J.contains$1$asx(packageName, "\\"))
- if (!J.contains$1$asx(packageName, "%"))
- t1 = J.startsWith$1$s(packageName, "@") && !J.contains$1$asx(packageName, t2.get$separator(t2));
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1)
- return _null;
- packageRoot = _this._resolvePackageRoot$2(packageName, baseDirectory);
- if (packageRoot == null)
- return _null;
- jsonPath = A.join(packageRoot, "package.json", _null);
- jsonString = A.readFile(jsonPath);
- packageManifest = null;
- try {
- packageManifest = type$.Map_String_dynamic._as(B.C_JsonCodec.decode$1(jsonString));
- } catch (exception) {
- e = A.unwrapException(exception);
- t1 = A.S(jsonPath);
- t2 = A.S(packageName);
- t3 = A.S(e);
- throw A.wrapException("Failed to parse " + t1 + ' for "pkg:' + t2 + '": ' + t3);
- }
- _1_0 = _this._resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName);
- if (_1_0 != null)
- if (B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, t5)._splitExtension$1(1)[1]))
- return t4.toUri$1(t4.canonicalize$1(0, _1_0));
- else {
- t1 = subpath == null ? "root" : subpath;
- throw A.wrapException("The export for '" + t1 + "' in '" + A.S(packageName) + "' resolved to '" + _1_0 + string$.x27x2c_whi);
- }
- if (subpath == null) {
- rootPath = _this._resolvePackageRootValues$2(packageRoot, packageManifest);
- return rootPath != null ? t4.toUri$1(t4.canonicalize$1(0, rootPath)) : _null;
- }
- subpathInRoot = A.join(packageRoot, subpath, _null);
- return $.$get$FilesystemImporter_cwd().canonicalize$1(0, t4.toUri$1(subpathInRoot));
- },
- load$1(_, url) {
- return $.$get$FilesystemImporter_cwd().load$1(0, url);
- },
- _resolvePackageRoot$2(packageName, baseDirectory) {
- var potentialPackage, t1;
- for (; true;) {
- potentialPackage = A.join(baseDirectory, "node_modules", packageName);
- if (A.dirExists(potentialPackage))
- return potentialPackage;
- t1 = $.$get$context();
- if (t1.split$1(0, baseDirectory).length === 1)
- return null;
- baseDirectory = t1.dirname$1(baseDirectory);
- }
- },
- _resolvePackageRootValues$2(packageRoot, packageManifest) {
- var t1, sassValue, _1_0, styleValue, _null = null,
- _0_0 = packageManifest.$index(0, "sass");
- if (typeof _0_0 == "string") {
- t1 = B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(_0_0, $.$get$url().style)._splitExtension$1(1)[1]);
- sassValue = _0_0;
- } else {
- sassValue = _null;
- t1 = false;
- }
- if (t1)
- return A.join(packageRoot, sassValue, _null);
- else {
- _1_0 = packageManifest.$index(0, "style");
- if (typeof _1_0 == "string") {
- t1 = B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, $.$get$url().style)._splitExtension$1(1)[1]);
- styleValue = _1_0;
- } else {
- styleValue = _null;
- t1 = false;
- }
- if (t1)
- return A.join(packageRoot, styleValue, _null);
- }
- return A.resolveImportPath(A.join(packageRoot, "index", _null));
- },
- _resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName) {
- var _0_0, _1_0, _this = this,
- exports = packageManifest.$index(0, "exports");
- if (exports == null)
- return null;
- _0_0 = _this._nodePackageExportsResolve$5(packageRoot, _this._exportsToCheck$1(subpath), exports, subpath, packageName);
- if (_0_0 != null)
- return _0_0;
- if (subpath != null && A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1].length !== 0)
- return null;
- _1_0 = _this._nodePackageExportsResolve$5(packageRoot, _this._exportsToCheck$2$addIndex(subpath, true), exports, subpath, packageName);
- if (_1_0 != null)
- return _1_0;
- return null;
- },
- _nodePackageExportsResolve$5(packageRoot, subpathVariants, exports, subpath, packageName) {
- var t1, matches, _1_1, path;
- if (type$.Map_String_dynamic._is(exports) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure()) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure0()))
- throw A.wrapException("`exports` in " + packageName + string$.x20can_n + J.map$1$1$ax(J.get$keys$z(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure1(), type$.String).join$1(0, ",") + " in " + A.join(packageRoot, "package.json", null) + ".");
- t1 = A.IterableNullableExtension_whereNotNull(new A.MappedListIterable(subpathVariants, new A.NodePackageImporter__nodePackageExportsResolve_closure2(this, exports, packageRoot), A._arrayInstanceType(subpathVariants)._eval$1("MappedListIterable<1,String?>")), type$.String);
- matches = A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
- $label0$1: {
- _1_1 = matches.length;
- if (_1_1 === 1) {
- path = matches[0];
- t1 = path;
- break $label0$1;
- }
- if (_1_1 <= 0) {
- t1 = null;
- break $label0$1;
- }
- t1 = subpath == null ? "root" : subpath;
- t1 = A.throwExpression(string$.Unable + t1 + " in " + packageName + " should be used. \n\nFound:\n" + B.JSArray_methods.join$1(matches, "\n"));
- }
- return t1;
- },
- _compareExpansionKeys$2(keyA, keyB) {
- var t1 = B.JSString_methods.contains$1(keyA, "*"),
- baseLengthA = t1 ? B.JSString_methods.indexOf$1(keyA, "*") + 1 : keyA.length,
- t2 = B.JSString_methods.contains$1(keyB, "*"),
- baseLengthB = t2 ? B.JSString_methods.indexOf$1(keyB, "*") + 1 : keyB.length;
- if (baseLengthA > baseLengthB)
- return -1;
- if (baseLengthB > baseLengthA)
- return 1;
- if (!t1)
- return 1;
- if (!t2)
- return -1;
- t1 = keyA.length;
- t2 = keyB.length;
- if (t1 > t2)
- return -1;
- if (t2 > t1)
- return 1;
- return 0;
- },
- _packageTargetResolve$4(subpath, exports, packageRoot, patternMatch) {
- var t2, string, path, map, key, value, _1_0, array, _2_0, _null = null,
- t1 = typeof exports == "string";
- if (t1) {
- t2 = !B.JSString_methods.startsWith$1(exports, "./");
- string = exports;
- } else {
- string = _null;
- t2 = false;
- }
- if (t2)
- throw A.wrapException("Export '" + A.S(string) + string$.x27x20must + packageRoot + "'.");
- if (t1) {
- t2 = patternMatch != null;
- string = exports;
- } else {
- string = _null;
- t2 = false;
- }
- if (t2) {
- t1 = J.replaceFirst$2$s(string, "*", patternMatch);
- t2 = $.$get$context();
- path = t2.normalize$1(A.join(packageRoot, t2.style.pathFromUri$1(A._parseUri(t1)), _null));
- return A.fileExists(path) ? path : _null;
- }
- string = t1 ? exports : _null;
- if (t1) {
- t1 = $.$get$context();
- string.toString;
- return A.join(packageRoot, t1.style.pathFromUri$1(A._parseUri(string)), _null);
- }
- t1 = type$.Map_String_dynamic._is(exports);
- map = t1 ? exports : _null;
- if (t1) {
- for (t1 = A.MapExtensions_get_pairs(map, type$.String, type$.dynamic), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- key = t2._0;
- value = t2._1;
- if (!B.Set_TnQrk.contains$1(0, key))
- continue;
- if (value == null)
- continue;
- _1_0 = this._packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
- if (_1_0 != null)
- return _1_0;
- }
- return _null;
- }
- if (type$.List_nullable_Object._is(exports) && J.get$length$asx(exports) <= 0)
- return _null;
- t1 = type$.List_dynamic._is(exports);
- array = t1 ? exports : _null;
- if (t1) {
- for (t1 = J.get$iterator$ax(array); t1.moveNext$0();) {
- value = t1.get$current(t1);
- if (value == null)
- continue;
- _2_0 = this._packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
- if (_2_0 != null)
- return _2_0;
- }
- return _null;
- }
- throw A.wrapException("Invalid 'exports' value " + A.S(exports) + " in " + A.join(packageRoot, "package.json", _null) + ".");
- },
- _packageTargetResolve$3(subpath, exports, packageRoot) {
- return this._packageTargetResolve$4(subpath, exports, packageRoot, null);
- },
- _getMainExport$1(exports) {
- var t1, t2, map, _0_4, $export;
- $label0$0: {
- if (typeof exports == "string") {
- t1 = exports;
- break $label0$0;
- }
- if (type$.List_String._is(exports)) {
- t1 = exports;
- break $label0$0;
- }
- t1 = type$.Map_String_dynamic._is(exports);
- if (t1) {
- t2 = !J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__getMainExport_closure());
- map = exports;
- } else {
- map = null;
- t2 = false;
- }
- if (t2) {
- t1 = map;
- break $label0$0;
- }
- if (t1) {
- _0_4 = exports.$index(0, ".");
- if (_0_4 == null)
- t2 = exports.containsKey$1(".");
- else
- t2 = true;
- if (t2)
- t2 = _0_4 != null;
- else
- t2 = false;
- } else {
- _0_4 = null;
- t2 = false;
- }
- if (t2) {
- $export = t1 ? _0_4 : J.$index$asx(exports, ".");
- t1 = $export;
- break $label0$0;
- }
- t1 = null;
- break $label0$0;
- }
- return t1;
- },
- _exportsToCheck$2$addIndex(subpath, addIndex) {
- var basename, dirname, t3, t4, _i, path,
- t1 = type$.JSArray_String,
- paths = A._setArrayType([], t1),
- t2 = subpath == null;
- if (t2 && addIndex)
- subpath = "index";
- else if (!t2 && addIndex)
- subpath = A.join(subpath, "index", null);
- if (subpath == null)
- return A._setArrayType([null], type$.JSArray_nullable_String);
- if (B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1]))
- paths.push(subpath);
- else
- B.JSArray_methods.addAll$1(paths, A._setArrayType([subpath, subpath + ".scss", subpath + ".sass", subpath + ".css"], t1));
- t1 = $.$get$context();
- t2 = t1.style;
- basename = A.ParsedPath_ParsedPath$parse(subpath, t2).get$basename();
- dirname = t1.dirname$1(subpath);
- if (B.JSString_methods.startsWith$1(basename, "_"))
- return paths;
- t1 = A.List_List$of(paths, true, type$.nullable_String);
- for (t3 = paths.length, t4 = dirname === ".", _i = 0; _i < paths.length; paths.length === t3 || (0, A.throwConcurrentModificationError)(paths), ++_i) {
- path = paths[_i];
- if (t4)
- t1.push("_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename());
- else
- t1.push(A.join(dirname, "_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename(), null));
- }
- return t1;
- },
- _exportsToCheck$1(subpath) {
- return this._exportsToCheck$2$addIndex(subpath, false);
- }
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure.prototype = {
- call$1(key) {
- return B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure0.prototype = {
- call$1(key) {
- return !B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure1.prototype = {
- call$1(key) {
- return '"' + key + '"';
- },
- $signature: 5
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure2.prototype = {
- call$1(variant) {
- var t1, matchKey, t2, t3, t4, t5, t6, _i, expansionKey, _0_0, t7, patternBase, patternTrailer, t8, target, _this = this, _null = null;
- if (variant == null) {
- t1 = _this.$this;
- return A.NullableExtension_andThen(t1._getMainExport$1(_this.exports), new A.NodePackageImporter__nodePackageExportsResolve__closure(t1, variant, _this.packageRoot));
- } else {
- t1 = _this.exports;
- if (!type$.Map_String_dynamic._is(t1) || J.every$1$ax(t1.get$keys(t1), new A.NodePackageImporter__nodePackageExportsResolve__closure0()))
- return _null;
- }
- matchKey = "./" + $.$get$context().toUri$1(variant).toString$0(0);
- if (t1.containsKey$1(matchKey) && J.$index$asx(t1, matchKey) != null && !B.JSString_methods.contains$1(matchKey, "*")) {
- t1 = J.$index$asx(t1, matchKey);
- if (t1 == null)
- t1 = type$.Object._as(t1);
- return _this.$this._packageTargetResolve$3(matchKey, t1, _this.packageRoot);
- }
- t2 = A._setArrayType([], type$.JSArray_String);
- for (t3 = J.getInterceptor$z(t1), t4 = J.get$iterator$ax(t3.get$keys(t1)); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- if (B.JSString_methods.allMatches$1("*", t5).get$length(0) === 1)
- t2.push(t5);
- }
- t4 = _this.$this;
- B.JSArray_methods.sort$1(t2, t4.get$_compareExpansionKeys());
- for (t5 = t2.length, t6 = matchKey.length, _i = 0; _i < t2.length; t2.length === t5 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- expansionKey = t2[_i];
- _0_0 = expansionKey.split("*");
- t7 = _0_0.length === 2;
- if (t7) {
- patternBase = _0_0[0];
- patternTrailer = _0_0[1];
- patternTrailer = patternTrailer;
- } else {
- patternTrailer = _null;
- patternBase = patternTrailer;
- }
- if (!t7)
- throw A.wrapException(A.StateError$("Pattern matching error"));
- if (!B.JSString_methods.startsWith$1(matchKey, patternBase))
- continue;
- if (matchKey === patternBase)
- continue;
- t7 = patternTrailer.length;
- if (t7 !== 0)
- t8 = B.JSString_methods.endsWith$1(matchKey, patternTrailer) && t6 >= expansionKey.length;
- else
- t8 = true;
- if (t8) {
- target = t3.$index(t1, expansionKey);
- if (target == null)
- continue;
- return t4._packageTargetResolve$4(variant, target, _this.packageRoot, B.JSString_methods.substring$2(matchKey, patternBase.length, t6 - t7));
- }
- }
- return _null;
- },
- $signature: 143
- };
- A.NodePackageImporter__nodePackageExportsResolve__closure.prototype = {
- call$1(mainExport) {
- return this.$this._packageTargetResolve$3(this.variant, mainExport, this.packageRoot);
- },
- $signature: 144
- };
- A.NodePackageImporter__nodePackageExportsResolve__closure0.prototype = {
- call$1(key) {
- return !B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.NodePackageImporter__getMainExport_closure.prototype = {
- call$1(key) {
- return B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.ImporterResult.prototype = {
- get$sourceMapUrl(_) {
- return this._sourceMapUrl;
- }
- };
- A.resolveImportPath_closure.prototype = {
- call$0() {
- return A._exactlyOne(A._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
- },
- $signature: 44
- };
- A.resolveImportPath_closure0.prototype = {
- call$0() {
- return A._exactlyOne(A._tryPathWithExtensions(this.path + ".import"));
- },
- $signature: 44
- };
- A._tryPathAsDirectory_closure.prototype = {
- call$0() {
- return A._exactlyOne(A._tryPathWithExtensions(A.join(this.path, "index.import", null)));
- },
- $signature: 44
- };
- A._exactlyOne_closure.prototype = {
- call$1(path) {
- var t1 = $.$get$context();
- return " " + t1.prettyUri$1(t1.toUri$1(path));
- },
- $signature: 5
- };
- A.InterpolationBuffer.prototype = {
- writeCharCode$1(character) {
- var t1 = this._interpolation_buffer$_text,
- t2 = A.Primitives_stringFromCharCode(character);
- t1._contents += t2;
- return null;
- },
- addInterpolation$1(interpolation) {
- var _0_4_isSet, _0_4, first, rest, t2, _this = this,
- toAdd = interpolation.contents,
- t1 = toAdd.length;
- if (t1 === 0)
- return;
- _0_4_isSet = t1 >= 1;
- if (_0_4_isSet) {
- _0_4 = toAdd[0];
- t1 = _0_4;
- t1 = typeof t1 == "string";
- } else {
- _0_4 = null;
- t1 = false;
- }
- if (t1) {
- first = A._asString(_0_4_isSet ? _0_4 : toAdd[0]);
- rest = B.JSArray_methods.sublist$1(toAdd, 1);
- t1 = _this._interpolation_buffer$_text;
- t1._contents += first;
- toAdd = rest;
- }
- _this._flushText$0();
- t1 = _this._interpolation_buffer$_contents;
- B.JSArray_methods.addAll$1(t1, toAdd);
- if (typeof B.JSArray_methods.get$last(t1) == "string") {
- t2 = _this._interpolation_buffer$_text;
- t1 = A.S(t1.pop());
- t2._contents += t1;
- }
- },
- _flushText$0() {
- var t1 = this._interpolation_buffer$_text,
- t2 = t1._contents;
- if (t2.length === 0)
- return;
- this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- t1._contents = "";
- },
- interpolation$1(span) {
- var t1 = A.List_List$of(this._interpolation_buffer$_contents, true, type$.Object),
- t2 = this._interpolation_buffer$_text._contents;
- if (t2.length !== 0)
- t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- return A.Interpolation$(t1, span);
- },
- toString$0(_) {
- var t1, t2, _i, t3, element;
- for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- element = t1[_i];
- t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125);
- }
- t1 = t3 + this._interpolation_buffer$_text.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- A.InterpolationMap.prototype = {
- mapException$1(error) {
- var t3, t4, _this = this,
- target = error.get$span(error),
- source = _this.mapSpan$1(target),
- startIndex = _this._indexInContents$1(target.get$start(target)),
- endIndex = _this._indexInContents$1(target.get$end(target)),
- t1 = _this._interpolation.contents,
- t2 = error._span_exception$_message;
- if (!A.SubListIterable$(t1, startIndex, null, A._arrayInstanceType(t1)._precomputed1).take$1(0, endIndex - startIndex + 1).any$1(0, new A.InterpolationMap_mapException_closure()))
- return new A.SourceSpanFormatException(error.get$source(), t2, source);
- else {
- t1 = type$.SourceSpan;
- t3 = type$.String;
- t4 = A.LinkedHashMap_LinkedHashMap$_literal([target, "error in interpolated output"], t1, t3);
- return new A.MultiSourceSpanFormatException(error.get$source(), "", A.ConstantMap_ConstantMap$from(t4, t1, t3), t2, source);
- }
- },
- mapSpan$1(target) {
- var _0_10, t1, _0_2_isSet, _0_20, t2, start, end, _this = this, _null = null,
- _0_1 = _this._mapLocation$1(target.get$start(target)),
- _0_2 = _this._mapLocation$1(target.get$end(target));
- $label0$0: {
- _0_10 = _0_1;
- t1 = type$.FileSpan;
- _0_2_isSet = t1._is(_0_1);
- if (_0_2_isSet) {
- t1._as(_0_10);
- _0_20 = _0_2;
- t2 = t1._is(_0_2);
- start = _0_10;
- _0_1 = start;
- } else {
- start = _null;
- _0_20 = start;
- _0_1 = _0_10;
- t2 = false;
- }
- if (t2) {
- t1 = start.expand$1(0, t1._as(_0_2_isSet ? _0_20 : _0_2));
- break $label0$0;
- }
- if (t1._is(_0_1)) {
- if (_0_2_isSet)
- t2 = _0_20;
- else {
- t2 = _0_2;
- _0_20 = t2;
- _0_2_isSet = true;
- }
- t2 = t2 instanceof A.FileLocation;
- start = _0_1;
- } else {
- start = _null;
- t2 = false;
- }
- if (t2) {
- t1 = _0_2_isSet ? _0_20 : _0_2;
- type$.FileLocation._as(t1);
- t2 = _this._interpolation.span;
- t1 = t2.get$file(t2).span$2(0, _this._expandInterpolationSpanLeft$1(start.get$start(start)), t1.offset);
- break $label0$0;
- }
- if (_0_1 instanceof A.FileLocation) {
- if (_0_2_isSet)
- t2 = _0_20;
- else {
- t2 = _0_2;
- _0_20 = t2;
- _0_2_isSet = true;
- }
- t2 = t1._is(t2);
- start = _0_1;
- } else {
- start = _null;
- t2 = false;
- }
- if (t2) {
- end = t1._as(_0_2_isSet ? _0_20 : _0_2);
- t1 = _this._interpolation.span;
- t1 = t1.get$file(t1).span$2(0, start.offset, _this._expandInterpolationSpanRight$1(end.get$end(end)));
- break $label0$0;
- }
- if (_0_1 instanceof A.FileLocation) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- t1 = t1 instanceof A.FileLocation;
- start = _0_1;
- } else {
- start = _null;
- t1 = false;
- }
- if (t1) {
- t1 = _0_2_isSet ? _0_20 : _0_2;
- type$.FileLocation._as(t1);
- t2 = _this._interpolation.span;
- t1 = t2.get$file(t2).span$2(0, start.offset, t1.offset);
- break $label0$0;
- }
- t1 = A.throwExpression("[BUG] Unreachable");
- }
- return t1;
- },
- _mapLocation$1(target) {
- var t4, previousLocation, _this = this,
- index = _this._indexInContents$1(target),
- t1 = _this._interpolation,
- t2 = t1.contents,
- _0_0 = t2[index],
- t3 = type$.Expression;
- if (t3._is(_0_0))
- return _0_0.get$span(_0_0);
- t4 = index === 0;
- t1 = t1.span;
- if (t4)
- previousLocation = t1.get$start(t1);
- else {
- t1 = t1.get$file(t1);
- t2 = t3._as(t2[index - 1]);
- t2 = t2.get$span(t2);
- previousLocation = A.FileLocation$_(t1, _this._expandInterpolationSpanRight$1(t2.get$end(t2)));
- }
- t1 = t4 ? 0 : _this._targetLocations[index - 1].get$offset();
- return A.FileLocation$_(previousLocation.file, previousLocation.offset + (target.offset - t1));
- },
- _indexInContents$1(target) {
- var t1, t2, t3, i;
- for (t1 = this._targetLocations, t2 = t1.length, t3 = target.offset, i = 0; i < t2; ++i)
- if (t3 < t1[i].get$offset())
- return i;
- return this._interpolation.contents.length - 1;
- },
- _expandInterpolationSpanLeft$1(start) {
- var i0, prev, char,
- source = start.file._decodedChars,
- i = start.offset - 1;
- for (; i >= 0;) {
- i0 = i - 1;
- prev = source[i];
- if (prev === 123) {
- if (source[i0] === 35) {
- i = i0;
- break;
- }
- i = i0;
- } else if (prev === 47) {
- i = i0 - 1;
- if (source[i0] === 42)
- for (; true;) {
- i0 = i - 1;
- if (source[i] !== 42) {
- i = i0;
- continue;
- }
- i = i0;
- do {
- i0 = i - 1;
- char = source[i];
- if (char === 42) {
- i = i0;
- continue;
- } else
- break;
- } while (true);
- if (char === 47) {
- i = i0;
- break;
- }
- i = i0;
- }
- } else
- i = i0;
- }
- return i;
- },
- _expandInterpolationSpanRight$1(end) {
- var t1, i0, next, second, t2, char,
- source = end.file._decodedChars,
- i = end.offset;
- for (t1 = source.length; i < t1;) {
- i0 = i + 1;
- next = source[i];
- if (next === 125) {
- i = i0;
- break;
- }
- if (next === 47) {
- i = i0 + 1;
- second = source[i0];
- if (second === 47) {
- while (true) {
- i0 = i + 1;
- t2 = source[i];
- if (!!(t2 === 10 || t2 === 13 || t2 === 12))
- break;
- i = i0;
- }
- i = i0;
- } else if (second === 42)
- for (; true;) {
- i0 = i + 1;
- if (source[i] !== 42) {
- i = i0;
- continue;
- }
- i = i0;
- do {
- i0 = i + 1;
- char = source[i];
- if (char === 42) {
- i = i0;
- continue;
- } else
- break;
- } while (true);
- if (char === 47) {
- i = i0;
- break;
- }
- i = i0;
- }
- } else
- i = i0;
- }
- return i;
- }
- };
- A.InterpolationMap_mapException_closure.prototype = {
- call$1($content) {
- return type$.Expression._is($content);
- },
- $signature: 75
- };
- A._realCasePath_helper.prototype = {
- call$1(path) {
- var dirname = $.$get$context().dirname$1(path);
- if (dirname === path)
- return path;
- return $._realCaseCache.putIfAbsent$2(path, new A._realCasePath_helper_closure(this, dirname, path));
- },
- $signature: 5
- };
- A._realCasePath_helper_closure.prototype = {
- call$0() {
- var matches, t1, _0_0, match, exception,
- realDirname = this.helper.call$1(this.dirname),
- t2 = this.path,
- basename = A.ParsedPath_ParsedPath$parse(t2, $.$get$context().style).get$basename();
- try {
- matches = J.where$1$ax(A.listDir(realDirname, false), new A._realCasePath_helper__closure(basename)).toList$0(0);
- t1 = null;
- _0_0 = matches;
- $label0$0: {
- match = null;
- if (J.get$length$asx(_0_0) === 1) {
- match = J.$index$asx(_0_0, 0);
- t1 = match;
- break $label0$0;
- }
- t1 = A.join(realDirname, basename, null);
- break $label0$0;
- }
- t1 = t1;
- return t1;
- } catch (exception) {
- if (A.unwrapException(exception) instanceof A.FileSystemException)
- return t2;
- else
- throw exception;
- }
- },
- $signature: 26
- };
- A._realCasePath_helper__closure.prototype = {
- call$1(realPath) {
- return A.equalsIgnoreCase(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
- },
- $signature: 4
- };
- A.FileSystemException.prototype = {
- toString$0(_) {
- var t1 = $.$get$context();
- return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A._readFile_closure.prototype = {
- call$0() {
- return J.readFileSync$2$x(A.fs(), this.path, this.encoding);
- },
- $signature: 60
- };
- A.writeFile_closure.prototype = {
- call$0() {
- return J.writeFileSync$2$x(A.fs(), this.path, this.contents);
- },
- $signature: 0
- };
- A.deleteFile_closure.prototype = {
- call$0() {
- return J.unlinkSync$1$x(A.fs(), this.path);
- },
- $signature: 0
- };
- A.readStdin_closure.prototype = {
- call$1(result) {
- this._box_0.contents = result;
- this.completer.complete$1(result);
- },
- $signature: 104
- };
- A.readStdin_closure0.prototype = {
- call$1(chunk) {
- this.sink.add$1(0, type$.List_int._as(chunk));
- },
- call$0() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues() {
- return [null];
- },
- $signature: 93
- };
- A.readStdin_closure1.prototype = {
- call$1(_) {
- this.sink.close$0(0);
- },
- call$0() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues() {
- return [null];
- },
- $signature: 93
- };
- A.readStdin_closure2.prototype = {
- call$1(e) {
- A.printError("Failed to read from stdin");
- A.printError(e);
- e.toString;
- this.completer.completeError$1(e);
- },
- call$0() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues() {
- return [null];
- },
- $signature: 93
- };
- A.fileExists_closure.prototype = {
- call$0() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(A.fs(), t1))
- return false;
- try {
- t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1));
- return t1;
- } catch (exception) {
- error = A.unwrapException(exception);
- systemError = type$.JsSystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 22
- };
- A.dirExists_closure.prototype = {
- call$0() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(A.fs(), t1))
- return false;
- try {
- t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1));
- return t1;
- } catch (exception) {
- error = A.unwrapException(exception);
- systemError = type$.JsSystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 22
- };
- A.ensureDir_closure.prototype = {
- call$0() {
- var error, systemError, exception, t1;
- try {
- J.mkdirSync$1$x(A.fs(), this.path);
- } catch (exception) {
- error = A.unwrapException(exception);
- systemError = type$.JsSystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "EEXIST"))
- return;
- if (!J.$eq$(J.get$code$x(systemError), "ENOENT"))
- throw exception;
- t1 = this.path;
- A.ensureDir($.$get$context().dirname$1(t1));
- J.mkdirSync$1$x(A.fs(), t1);
- }
- },
- $signature: 0
- };
- A.listDir_closure.prototype = {
- call$0() {
- var t1 = this.path;
- if (!this.recursive)
- return J.map$1$1$ax(J.readdirSync$1$x(A.fs(), t1), new A.listDir__closure(t1), type$.String).super$Iterable$where(0, new A.listDir__closure0());
- else
- return new A.listDir_closure_list().call$1(t1);
- },
- $signature: 145
- };
- A.listDir__closure.prototype = {
- call$1(child) {
- return A.join(this.path, A._asString(child), null);
- },
- $signature: 108
- };
- A.listDir__closure0.prototype = {
- call$1(child) {
- return !A.dirExists(child);
- },
- $signature: 4
- };
- A.listDir_closure_list.prototype = {
- call$1($parent) {
- return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure($parent, this), type$.String);
- },
- $signature: 146
- };
- A.listDir__list_closure.prototype = {
- call$1(child) {
- var path = A.join(this.parent, A._asString(child), null);
- return A.dirExists(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String);
- },
- $signature: 147
- };
- A.modificationTime_closure.prototype = {
- call$0() {
- var t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(A.fs(), this.path)));
- if (Math.abs(t1) > 864e13)
- A.throwExpression(A.ArgumentError$("DateTime is outside valid range: " + A.S(t1), null));
- A.checkNotNullable(false, "isUtc", type$.bool);
- return new A.DateTime(t1, false);
- },
- $signature: 148
- };
- A.watchDir_closure.prototype = {
- call$2(path, _) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_add, path));
- },
- call$1(path) {
- return this.call$2(path, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 149
- };
- A.watchDir_closure0.prototype = {
- call$2(path, _) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_modify, path));
- },
- call$1(path) {
- return this.call$2(path, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 149
- };
- A.watchDir_closure1.prototype = {
- call$1(path) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_remove, path));
- },
- $signature: 104
- };
- A.watchDir_closure2.prototype = {
- call$1(error) {
- var t1 = this._box_0.controller;
- return t1 == null ? null : t1.addError$1(error);
- },
- $signature: 99
- };
- A.watchDir_closure3.prototype = {
- call$0() {
- var controller = A.StreamController_StreamController(new A.watchDir__closure(this.watcher), null, null, null, false, type$.WatchEvent);
- this._box_0.controller = controller;
- this.completer.complete$1(new A._ControllerStream(controller, A._instanceType(controller)._eval$1("_ControllerStream<1>")));
- },
- $signature: 1
- };
- A.watchDir__closure.prototype = {
- call$0() {
- J.close$0$x(this.watcher);
- },
- $signature: 1
- };
- A.JSArray0.prototype = {};
- A.Chokidar.prototype = {};
- A.ChokidarOptions.prototype = {};
- A.ChokidarWatcher.prototype = {};
- A.JSFunction.prototype = {};
- A.ImmutableList.prototype = {};
- A.ImmutableMap.prototype = {};
- A.NodeImporterResult.prototype = {};
- A.RenderContext.prototype = {};
- A.RenderContextOptions.prototype = {};
- A.RenderContextResult.prototype = {};
- A.RenderContextResultStats.prototype = {};
- A.JSModule.prototype = {};
- A.JSModuleRequire.prototype = {};
- A.JSClass.prototype = {};
- A.JSUrl.prototype = {};
- A._PropertyDescriptor.prototype = {};
- A._RequireMain.prototype = {};
- A.LoggerWithDeprecationType0.prototype = {
- warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
- this.internalWarn$4$deprecation$span$trace(message, deprecation ? B.Deprecation_JeE : null, span, trace);
- },
- warn$3$span$trace(_, message, span, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
- },
- warn$2$span(_, message, span) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, null);
- },
- warn$2$trace(_, message, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
- }
- };
- A._QuietLogger.prototype = {
- warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
- },
- warn$1(_, message) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, null);
- },
- warn$3$span$trace(_, message, span, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
- },
- warn$2$span(_, message, span) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, null);
- },
- debug$2(_, message, span) {
- }
- };
- A.DeprecationProcessingLogger.prototype = {
- DeprecationProcessingLogger$5$fatalDeprecations$futureDeprecations$limitRepetition$silenceDeprecations(_inner, fatalDeprecations, futureDeprecations, limitRepetition, silenceDeprecations) {
- var t1, t2, t3, t4, t5, t6, _1_7, _this = this, _null = null;
- for (t1 = _this.fatalDeprecations, t1 = t1.get$iterator(t1), t2 = _this.silenceDeprecations, t3 = _this.futureDeprecations, t4 = _this._inner; t1.moveNext$0();) {
- t5 = t1.get$current(t1);
- if (t5.isFuture && !t3.contains$1(0, t5)) {
- t5 = t5.toString$0(0);
- t4.warn$3$span$trace(0, "Future " + t5 + string$.x20deprex20m, _null, _null);
- continue;
- }
- t6 = t2.contains$1(0, t5);
- if (t6) {
- t5 = t5.toString$0(0);
- t4.warn$3$span$trace(0, "Ignoring setting to silence " + t5 + string$.x20deprex2c, _null, _null);
- continue;
- }
- }
- for (t1 = A._LinkedHashSetIterator$(t2, t2._modifications, A._instanceType(t2)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t5 = t1._collection$_current;
- if (t5 == null)
- t5 = t2._as(t5);
- if (B.Deprecation_JeE === t5) {
- t4.warn$3$span$trace(0, string$.User_a, _null, _null);
- continue;
- }
- _1_7 = t5.isFuture;
- if (_1_7 && t3.contains$1(0, t5)) {
- t5 = t5.toString$0(0);
- t4.warn$3$span$trace(0, "Conflicting options for future " + t5 + " deprecation cancel each other out.", _null, _null);
- continue;
- }
- if (_1_7) {
- t5 = t5.toString$0(0);
- t4.warn$3$span$trace(0, "Future " + t5 + string$.x20deprex20i, _null, _null);
- continue;
- }
- }
- for (t1 = A._LinkedHashSetIterator$(t3, t3._modifications, A._instanceType(t3)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- if (!t3.isFuture) {
- t3 = t3.toString$0(0);
- t4.warn$3$span$trace(0, t3 + string$.x20is_noaf, _null, _null);
- }
- }
- },
- internalWarn$4$deprecation$span$trace(message, deprecation, span, trace) {
- if (deprecation != null)
- this._handleDeprecation$4$span$trace(deprecation, message, span, trace);
- else
- this._inner.warn$3$span$trace(0, message, span, trace);
- },
- _handleDeprecation$4$span$trace(deprecation, message, span, trace) {
- var _0_3_isSet, span0, t1, _0_3, t2, count, _this = this, _null = null;
- if (deprecation.isFuture && !_this.futureDeprecations.contains$1(0, deprecation))
- return;
- if (_this.fatalDeprecations.contains$1(0, deprecation)) {
- message += string$.x0a_This + deprecation.toString$0(0) + string$.x20deprex20t;
- $label0$0: {
- _0_3_isSet = span != null;
- if (_0_3_isSet) {
- span0 = span == null ? type$.FileSpan._as(span) : span;
- t1 = trace != null;
- _0_3 = trace;
- } else {
- span0 = _null;
- _0_3 = span0;
- t1 = false;
- }
- if (t1) {
- if (_0_3_isSet)
- trace = _0_3;
- t1 = A.SassRuntimeException$(message, span0, trace == null ? type$.Trace._as(trace) : trace, _null);
- break $label0$0;
- }
- if (span != null)
- t1 = (_0_3_isSet ? _0_3 : trace) == null;
- else {
- span = _null;
- t1 = false;
- }
- if (t1) {
- t1 = A.SassException$(message, span, _null);
- break $label0$0;
- }
- t1 = A.SassScriptException$(message, _null);
- break $label0$0;
- }
- throw A.wrapException(t1);
- }
- if (_this.silenceDeprecations.contains$1(0, deprecation))
- return;
- if (_this.limitRepetition) {
- t1 = _this._warningCounts;
- t2 = t1.$index(0, deprecation);
- count = (t2 == null ? 0 : t2) + 1;
- t1.$indexSet(0, deprecation, count);
- if (count > 5)
- return;
- }
- _this._inner.warn$4$deprecation$span$trace(0, message, true, span, trace);
- },
- debug$2(_, message, span) {
- return this._inner.debug$2(0, message, span);
- },
- summarize$1$js(js) {
- var t1 = this._warningCounts.get$values(0),
- t2 = A._instanceType(t1),
- total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.DeprecationProcessingLogger_summarize_closure(), t2._eval$1("WhereIterable<Iterable.E>")), new A.DeprecationProcessingLogger_summarize_closure0(), t2._eval$1("MappedIterable<Iterable.E,int>")));
- if (total > 0) {
- t1 = js ? "" : string$.x0aRun_i;
- this._inner.warn$1(0, "" + total + string$.x20repet + t1);
- }
- }
- };
- A.DeprecationProcessingLogger_summarize_closure.prototype = {
- call$1(count) {
- return count > 5;
- },
- $signature: 45
- };
- A.DeprecationProcessingLogger_summarize_closure0.prototype = {
- call$1(count) {
- return count - 5;
- },
- $signature: 150
- };
- A.StderrLogger.prototype = {
- warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
- var t2,
- result = new A.StringBuffer(""),
- t1 = this.color;
- if (t1) {
- t2 = result._contents = "" + "\x1b[33m\x1b[1m";
- t2 = result._contents = (deprecation ? result._contents = t2 + "Deprecation " : t2) + "Warning\x1b[0m";
- } else
- t2 = result._contents = (deprecation ? result._contents = "" + "DEPRECATION " : "") + "WARNING";
- if (span == null)
- t1 = result._contents = t2 + (": " + message + "\n");
- else if (trace != null) {
- t1 = t2 + (": " + message + "\n\n" + span.highlight$1$color(t1) + "\n");
- result._contents = t1;
- } else {
- t1 = t2 + (" on " + span.message$2$color(0, "\n" + message, t1) + "\n");
- result._contents = t1;
- }
- if (trace != null)
- result._contents = t1 + (A.indent(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4) + "\n");
- A.printError(result);
- },
- warn$1(_, message) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, null);
- },
- warn$3$span$trace(_, message, span, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
- },
- warn$2$span(_, message, span) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, null);
- },
- warn$2$trace(_, message, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
- },
- debug$2(_, message, span) {
- var url, t3, t4,
- t1 = span.file,
- t2 = span._file$_start;
- if (A.FileLocation$_(t1, t2).file.url == null)
- url = "-";
- else {
- t3 = A.FileLocation$_(t1, t2).file.url;
- t4 = $.$get$context();
- t3.toString;
- url = t4.prettyUri$1(t3);
- }
- t1 = A.FileLocation$_(t1, t2);
- t1 = t1.file.getLine$1(t1.offset);
- t2 = this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG";
- t2 = "" + (url + ":" + (t1 + 1) + " ") + t2 + (": " + message);
- A.printError(t2.charCodeAt(0) == 0 ? t2 : t2);
- }
- };
- A.TrackingLogger.prototype = {
- warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
- this._emittedWarning = true;
- this._tracking$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, trace);
- },
- warn$1(_, message) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, null);
- },
- warn$3$span$trace(_, message, span, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
- },
- debug$2(_, message, span) {
- this._emittedDebug = true;
- this._tracking$_logger.debug$2(0, message, span);
- }
- };
- A.BuiltInModule.prototype = {
- get$upstream() {
- return B.List_empty7;
- },
- get$variableNodes() {
- return B.Map_empty4;
- },
- get$extensionStore() {
- return B.C_EmptyExtensionStore;
- },
- get$css(_) {
- return new A.CssStylesheet(B.List_empty3, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0));
- },
- get$preModuleComments() {
- return B.Map_empty2;
- },
- get$transitivelyContainsCss() {
- return false;
- },
- get$transitivelyContainsExtensions() {
- return false;
- },
- setVariable$3($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
- throw A.wrapException(A.SassScriptException$("Cannot modify built-in variable.", null));
- },
- variableIdentity$1($name) {
- return this;
- },
- cloneCss$0() {
- return this;
- },
- $isModule0: 1,
- get$url(receiver) {
- return this.url;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- },
- get$variables() {
- return this.variables;
- }
- };
- A.ForwardedModuleView.prototype = {
- get$url(_) {
- var t1 = this._forwarded_view$_inner;
- return t1.get$url(t1);
- },
- get$upstream() {
- return this._forwarded_view$_inner.get$upstream();
- },
- get$extensionStore() {
- return this._forwarded_view$_inner.get$extensionStore();
- },
- get$css(_) {
- var t1 = this._forwarded_view$_inner;
- return t1.get$css(t1);
- },
- get$preModuleComments() {
- return this._forwarded_view$_inner.get$preModuleComments();
- },
- get$transitivelyContainsCss() {
- return this._forwarded_view$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions() {
- return this._forwarded_view$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3($name, value, nodeWithSpan) {
- var t2, _1_0, _2_0,
- _s19_ = "Undefined variable.",
- t1 = this._rule,
- _0_0 = t1.shownVariables;
- if (_0_0 != null)
- t2 = !_0_0._base.contains$1(0, $name);
- else
- t2 = false;
- if (t2)
- throw A.wrapException(A.SassScriptException$(_s19_, null));
- else {
- _1_0 = t1.hiddenVariables;
- if (_1_0 != null)
- t2 = _1_0._base.contains$1(0, $name);
- else
- t2 = false;
- if (t2)
- throw A.wrapException(A.SassScriptException$(_s19_, null));
- }
- _2_0 = t1.prefix;
- if (_2_0 != null) {
- if (!B.JSString_methods.startsWith$1($name, _2_0))
- throw A.wrapException(A.SassScriptException$(_s19_, null));
- $name = B.JSString_methods.substring$1($name, _2_0.length);
- }
- return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1($name) {
- var _0_0 = this._rule.prefix;
- if (_0_0 != null)
- $name = B.JSString_methods.substring$1($name, _0_0.length);
- return this._forwarded_view$_inner.variableIdentity$1($name);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ForwardedModuleView && this._forwarded_view$_inner.$eq(0, other._forwarded_view$_inner) && this._rule === other._rule;
- },
- get$hashCode(_) {
- var t1 = this._forwarded_view$_inner;
- return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._rule)) >>> 0;
- },
- cloneCss$0() {
- return A.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._precomputed1);
- },
- toString$0(_) {
- return "forwarded " + this._forwarded_view$_inner.toString$0(0);
- },
- $isModule0: 1,
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- }
- };
- A.ShadowedModuleView.prototype = {
- get$url(_) {
- var t1 = this._shadowed_view$_inner;
- return t1.get$url(t1);
- },
- get$upstream() {
- return this._shadowed_view$_inner.get$upstream();
- },
- get$extensionStore() {
- return this._shadowed_view$_inner.get$extensionStore();
- },
- get$css(_) {
- var t1 = this._shadowed_view$_inner;
- return t1.get$css(t1);
- },
- get$preModuleComments() {
- return this._shadowed_view$_inner.get$preModuleComments();
- },
- get$transitivelyContainsCss() {
- return this._shadowed_view$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions() {
- return this._shadowed_view$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
- else
- this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1($name) {
- return this._shadowed_view$_inner.variableIdentity$1($name);
- },
- $eq(_, other) {
- var t1, t2, _this = this;
- if (other == null)
- return false;
- if (other instanceof A.ShadowedModuleView)
- if (_this._shadowed_view$_inner.$eq(0, other._shadowed_view$_inner)) {
- t1 = _this.variables;
- t1 = t1.get$keys(t1);
- t2 = other.variables;
- if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
- t1 = _this.functions;
- t1 = t1.get$keys(t1);
- t2 = other.functions;
- if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
- t1 = _this.mixins;
- t1 = t1.get$keys(t1);
- t2 = other.mixins;
- t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
- t1 = t2;
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- get$hashCode(_) {
- var t1 = this._shadowed_view$_inner;
- return t1.get$hashCode(t1);
- },
- cloneCss$0() {
- var _this = this;
- return new A.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
- },
- toString$0(_) {
- return "shadowed " + this._shadowed_view$_inner.toString$0(0);
- },
- $isModule0: 1,
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- }
- };
- A.AtRootQueryParser.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure(this));
- }
- };
- A.AtRootQueryParser_parse_closure.prototype = {
- call$0() {
- var include, atRules,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$1(40);
- t1.whitespace$0();
- include = t1.scanIdentifier$1("with");
- if (!include)
- t1.expectIdentifier$2$name("without", '"with" or "without"');
- t1.whitespace$0();
- t2.expectChar$1(58);
- t1.whitespace$0();
- atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- do {
- atRules.add$1(0, t1.identifier$0().toLowerCase());
- t1.whitespace$0();
- } while (t1.lookingAtIdentifier$0());
- t2.expectChar$1(41);
- t2.expectDone$0();
- return new A.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
- },
- $signature: 515
- };
- A._disallowedFunctionNames_closure.prototype = {
- call$1($function) {
- return $function.name;
- },
- $signature: 514
- };
- A.CssParser.prototype = {
- get$plainCss() {
- return true;
- },
- silentComment$0() {
- var t1, t2, _this = this;
- if (_this._inExpression)
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- _this.super$Parser$silentComment();
- _this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- atRule$2$root(child, root) {
- var $name, _0_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(64);
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- _0_0 = $name.get$asPlain();
- $label0$0: {
- if ("at-root" === _0_0 || "content" === _0_0 || "debug" === _0_0 || "each" === _0_0 || "error" === _0_0 || "extend" === _0_0 || "for" === _0_0 || "function" === _0_0 || "if" === _0_0 || "include" === _0_0 || "mixin" === _0_0 || "return" === _0_0 || "warn" === _0_0 || "while" === _0_0)
- _this._forbiddenAtRule$1(start);
- if ("import" === _0_0) {
- t1 = _this._cssImportRule$1(start);
- break $label0$0;
- }
- if ("media" === _0_0) {
- t1 = _this.mediaRule$1(start);
- break $label0$0;
- }
- if ("-moz-document" === _0_0) {
- t1 = _this.mozDocumentRule$2(start, $name);
- break $label0$0;
- }
- if ("supports" === _0_0) {
- t1 = _this.supportsRule$1(start);
- break $label0$0;
- }
- t1 = _this.unknownAtRule$2(start, $name);
- break $label0$0;
- }
- return t1;
- },
- _forbiddenAtRule$1(start) {
- this.almostAnyValue$0();
- this.error$2(0, "This at-rule isn't allowed in plain CSS.", this.scanner.spanFrom$1(start));
- },
- _cssImportRule$1(start) {
- var t2, urlSpan, modifiers, _this = this,
- t1 = _this.scanner,
- urlStart = new A._SpanScannerState(t1, t1._string_scanner$_position),
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (117 === _0_0 || 85 === _0_0) {
- t2 = _this.dynamicUrl$0();
- break $label0$0;
- }
- t2 = new A.StringExpression(_this.interpolatedString$0().asInterpolation$1$static(true), false);
- break $label0$0;
- }
- urlSpan = t1.spanFrom$1(urlStart);
- _this.whitespace$0();
- modifiers = _this.tryImportModifiers$0();
- _this.expectStatementSeparator$1("@import rule");
- t2 = A._setArrayType([new A.StaticImport(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(urlStart))], type$.JSArray_Import);
- t1 = t1.spanFrom$1(start);
- return new A.ImportRule(A.List_List$unmodifiable(t2, type$.Import), t1);
- },
- parentheses$0() {
- var expression,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- this.whitespace$0();
- expression = this.expressionUntilComma$0();
- t1.expectChar$1(41);
- return new A.ParenthesizedExpression(expression, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- identifierLike$0() {
- var t2, allowEmptySecondArg, $arguments, t3, t4, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- lower = plain.toLowerCase(),
- _0_0 = _this.trySpecialFunction$2(lower, start);
- if (_0_0 != null)
- return _0_0;
- t2 = t1._string_scanner$_position;
- if (t1.scanChar$1(46))
- return _this.namespacedExpression$2(plain, start);
- if (!t1.scanChar$1(40))
- return new A.StringExpression(identifier, false);
- allowEmptySecondArg = lower === "var";
- $arguments = A._setArrayType([], type$.JSArray_Expression);
- if (!t1.scanChar$1(41)) {
- do {
- _this.whitespace$0();
- if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) {
- t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t4 = t3.offset;
- t4 = A._FileSpan$(t3.file, t4, t4);
- $arguments.push(new A.StringExpression(A.Interpolation$(A._setArrayType([""], type$.JSArray_Object), t4), false));
- break;
- }
- $arguments.push(_this.expressionUntilComma$1$singleEquals(true));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- t1.expectChar$1(41);
- }
- if ($.$get$_disallowedFunctionNames().contains$1(0, plain))
- _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
- t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- t3 = type$.Expression;
- t4 = A.List_List$unmodifiable($arguments, t3);
- t3 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3);
- t1 = t1.spanFrom$1(start);
- return new A.FunctionExpression(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, new A.ArgumentInvocation(t4, t3, null, null, t2), t1);
- },
- namespacedExpression$2(namespace, start) {
- var expression = this.super$StylesheetParser$namespacedExpression(namespace, start);
- this.error$2(0, string$.Modulen, expression.get$span(expression));
- }
- };
- A.KeyframeSelectorParser.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure(this));
- },
- _percentage$0() {
- var $self, _0_0,
- t1 = this.scanner,
- t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "",
- second = t1.peekChar$0();
- if (!(second != null && second >= 48 && second <= 57) && second !== 46)
- t1.error$1(0, "Expected number.");
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- }
- if (t1.peekChar$0() === 46) {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- }
- }
- if (this.scanIdentChar$1(101)) {
- t2 += A.Primitives_stringFromCharCode(101);
- _0_0 = t1.peekChar$0();
- if (43 === _0_0 || 45 === _0_0)
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- t1.error$1(0, "Expected digit.");
- do {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- } while ($self != null && $self >= 48 && $self <= 57);
- }
- t1.expectChar$1(37);
- t2 += A.Primitives_stringFromCharCode(37);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- A.KeyframeSelectorParser_parse_closure.prototype = {
- call$0() {
- var selectors = A._setArrayType([], type$.JSArray_String),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- if (t1.lookingAtIdentifier$0())
- if (t1.scanIdentifier$1("from"))
- selectors.push("from");
- else {
- t1.expectIdentifier$2$name("to", '"to" or "from"');
- selectors.push("to");
- }
- else
- selectors.push(t1._percentage$0());
- t1.whitespace$0();
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return selectors;
- },
- $signature: 124
- };
- A.MediaQueryParser.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure(this));
- },
- _mediaQuery$0() {
- var conditions, conjunction, t1, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null;
- if (_this.scanner.peekChar$0() === 40) {
- conditions = A._setArrayType([_this._mediaInParens$0()], type$.JSArray_String);
- _this.whitespace$0();
- if (_this.scanIdentifier$1(_s3_)) {
- _this.expectWhitespace$0();
- B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1(_s3_));
- conjunction = true;
- } else {
- t1 = _this.scanIdentifier$1("or");
- if (t1) {
- _this.expectWhitespace$0();
- B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1("or"));
- }
- conjunction = !t1;
- }
- return A.CssMediaQuery$condition(conditions, conjunction);
- }
- identifier1 = _this.identifier$0();
- if (A.equalsIgnoreCase(identifier1, "not")) {
- _this.expectWhitespace$0();
- if (!_this.lookingAtIdentifier$0())
- return A.CssMediaQuery$condition(A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), _null);
- }
- _this.whitespace$0();
- if (!_this.lookingAtIdentifier$0())
- return A.CssMediaQuery$type(identifier1, _null, _null);
- identifier2 = _this.identifier$0();
- if (A.equalsIgnoreCase(identifier2, _s3_)) {
- _this.expectWhitespace$0();
- type = identifier1;
- modifier = _null;
- } else {
- _this.whitespace$0();
- if (_this.scanIdentifier$1(_s3_))
- _this.expectWhitespace$0();
- else
- return A.CssMediaQuery$type(identifier2, _null, identifier1);
- type = identifier2;
- modifier = identifier1;
- }
- if (_this.scanIdentifier$1("not")) {
- _this.expectWhitespace$0();
- return A.CssMediaQuery$type(type, A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), modifier);
- }
- return A.CssMediaQuery$type(type, _this._mediaLogicSequence$1(_s3_), modifier);
- },
- _mediaLogicSequence$1(operator) {
- var t1, t2, _this = this,
- result = A._setArrayType([], type$.JSArray_String);
- for (t1 = _this.scanner; true;) {
- t1.expectChar$2$name(40, "media condition in parentheses");
- t2 = _this.declarationValue$0();
- t1.expectChar$1(41);
- result.push("(" + t2 + ")");
- _this.whitespace$0();
- if (!_this.scanIdentifier$1(operator))
- return result;
- _this.expectWhitespace$0();
- }
- },
- _mediaInParens$0() {
- var t2,
- t1 = this.scanner;
- t1.expectChar$2$name(40, "media condition in parentheses");
- t2 = this.declarationValue$0();
- t1.expectChar$1(41);
- return "(" + t2 + ")";
- }
- };
- A.MediaQueryParser_parse_closure.prototype = {
- call$0() {
- var queries = A._setArrayType([], type$.JSArray_CssMediaQuery),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- queries.push(t1._mediaQuery$0());
- t1.whitespace$0();
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return queries;
- },
- $signature: 509
- };
- A.Parser.prototype = {
- _parseIdentifier$0() {
- return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure(this));
- },
- _isVariableDeclarationLike$0() {
- var _this = this,
- t1 = _this.scanner;
- if (!t1.scanChar$1(36))
- return false;
- if (!_this.lookingAtIdentifier$0())
- return false;
- _this.identifier$0();
- _this.whitespace$0();
- return t1.scanChar$1(58);
- },
- whitespace$0() {
- do
- this.whitespaceWithoutComments$0();
- while (this.scanComment$0());
- },
- whitespaceWithoutComments$0() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- spaces$0() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- scanComment$0() {
- var _0_0,
- t1 = this.scanner;
- if (t1.peekChar$0() !== 47)
- return false;
- _0_0 = t1.peekChar$1(1);
- if (47 === _0_0)
- return this.silentComment$0();
- if (42 === _0_0) {
- this.loudComment$0();
- return true;
- }
- return false;
- },
- expectWhitespace$0() {
- var t2, t3,
- t1 = this.scanner;
- if (t1._string_scanner$_position !== t1.string.length) {
- t2 = t1.peekChar$0();
- t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0());
- t2 = t3;
- } else
- t2 = true;
- if (t2)
- t1.error$1(0, "Expected whitespace.");
- this.whitespace$0();
- },
- silentComment$0() {
- var t2, t3,
- t1 = this.scanner;
- t1.expect$1("//");
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- return true;
- },
- loudComment$0() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- if (t1.readChar$0() !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- identifier$2$normalize$unit(normalize, unit) {
- var t2, _0_0, _this = this,
- _s20_ = "Expected identifier.",
- text = new A.StringBuffer(""),
- t1 = _this.scanner;
- if (t1.scanChar$1(45)) {
- t2 = text._contents = "" + A.Primitives_stringFromCharCode(45);
- if (t1.scanChar$1(45)) {
- text._contents = t2 + A.Primitives_stringFromCharCode(45);
- _this._identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- } else
- t2 = "";
- $label0$0: {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- t1.error$1(0, _s20_);
- if (95 === _0_0 && normalize) {
- t1.readChar$0();
- text._contents = t2 + A.Primitives_stringFromCharCode(45);
- break $label0$0;
- }
- if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128) {
- text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0());
- break $label0$0;
- }
- if (92 === _0_0) {
- text._contents = t2 + _this.escape$1$identifierStart(true);
- break $label0$0;
- }
- t1.error$1(0, _s20_);
- }
- _this._identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- identifier$0() {
- return this.identifier$2$normalize$unit(false, false);
- },
- identifier$1$normalize(normalize) {
- return this.identifier$2$normalize$unit(normalize, false);
- },
- identifier$1$unit(unit) {
- return this.identifier$2$normalize$unit(false, unit);
- },
- _identifierBody$3$normalize$unit(text, normalize, unit) {
- var t1, _1_0, _0_0, t2;
- for (t1 = this.scanner; true;) {
- _1_0 = t1.peekChar$0();
- if (_1_0 == null)
- break;
- if (45 === _1_0 && unit) {
- _0_0 = t1.peekChar$1(1);
- if (46 !== _0_0)
- t2 = A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57;
- else
- t2 = true;
- if (t2)
- break;
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- text._contents += t2;
- continue;
- }
- if (95 === _1_0 && normalize) {
- t1.readChar$0();
- t2 = A.Primitives_stringFromCharCode(45);
- text._contents += t2;
- continue;
- }
- if (_1_0 !== 95) {
- if (!(_1_0 >= 97 && _1_0 <= 122))
- t2 = _1_0 >= 65 && _1_0 <= 90;
- else
- t2 = true;
- t2 = t2 || _1_0 >= 128;
- } else
- t2 = true;
- if (!t2)
- t2 = _1_0 >= 48 && _1_0 <= 57 || _1_0 === 45;
- else
- t2 = true;
- if (t2) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- text._contents += t2;
- continue;
- }
- if (92 === _1_0) {
- t2 = this.escape$0();
- text._contents += t2;
- continue;
- }
- break;
- }
- },
- _identifierBody$1(text) {
- return this._identifierBody$3$normalize$unit(text, false, false);
- },
- string$0() {
- var buffer, _0_0, t2,
- t1 = this.scanner,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34)
- t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1);
- buffer = new A.StringBuffer("");
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 === quote) {
- t1.readChar$0();
- break;
- }
- if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)
- t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
- if (92 === _0_0) {
- t2 = t1.peekChar$1(1);
- if (t2 === 10 || t2 === 13 || t2 === 12) {
- t1.readChar$0();
- t1.readChar$0();
- } else {
- t2 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1));
- buffer._contents += t2;
- }
- continue;
- }
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t2;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- declarationValue$1$allowEmpty(allowEmpty) {
- var t1, t2, wroteNewline, next, t3, start, end, _0_0, _this = this,
- buffer = new A.StringBuffer(""),
- brackets = A._setArrayType([], type$.JSArray_int);
- for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- if (92 === next) {
- t3 = _this.escape$1$identifierStart(true);
- buffer._contents += t3;
- wroteNewline = false;
- continue;
- }
- if (34 === next || 39 === next) {
- start = t1._string_scanner$_position;
- t2.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
- wroteNewline = false;
- continue;
- }
- if (47 === next) {
- if (t1.peekChar$1(1) === 42) {
- t3 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t3.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
- } else {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- }
- wroteNewline = false;
- continue;
- }
- if (32 === next || 9 === next) {
- if (!wroteNewline) {
- t3 = t1.peekChar$1(1);
- t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = true;
- if (t3) {
- t3 = A.Primitives_stringFromCharCode(32);
- buffer._contents += t3;
- }
- t1.readChar$0();
- continue;
- }
- if (10 === next || 13 === next || 12 === next) {
- t3 = t1.peekChar$1(-1);
- if (!(t3 === 10 || t3 === 13 || t3 === 12))
- buffer._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- continue;
- }
- if (40 === next || 123 === next || 91 === next) {
- t3 = A.Primitives_stringFromCharCode(next);
- buffer._contents += t3;
- brackets.push(A.opposite(t1.readChar$0()));
- wroteNewline = false;
- continue;
- }
- if (41 === next || 125 === next || 93 === next) {
- if (brackets.length === 0)
- break;
- t3 = A.Primitives_stringFromCharCode(next);
- buffer._contents += t3;
- t1.expectChar$1(brackets.pop());
- wroteNewline = false;
- continue;
- }
- if (59 === next) {
- if (brackets.length === 0)
- break;
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- continue;
- }
- if (117 === next || 85 === next) {
- _0_0 = _this.tryUrl$0();
- if (_0_0 != null)
- buffer._contents += _0_0;
- else {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- }
- wroteNewline = false;
- continue;
- }
- if (_this.lookingAtIdentifier$0()) {
- t3 = _this.identifier$0();
- buffer._contents += t3;
- } else {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- }
- wroteNewline = false;
- }
- if (brackets.length !== 0)
- t1.expectChar$1(B.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._contents.length === 0)
- t1.error$1(0, "Expected token.");
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- declarationValue$0() {
- return this.declarationValue$1$allowEmpty(false);
- },
- tryUrl$0() {
- var buffer, _0_0, t2, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (!_this.scanIdentifier$1("url"))
- return null;
- if (!t1.scanChar$1(40)) {
- t1.set$state(start);
- return null;
- }
- _this.whitespace$0();
- buffer = new A.StringBuffer("");
- buffer._contents = "" + "url(";
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- break;
- if (92 === _0_0) {
- t2 = _this.escape$0();
- buffer._contents += t2;
- continue;
- }
- if (37 !== _0_0)
- if (38 !== _0_0)
- if (35 !== _0_0)
- t2 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128;
- else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t2;
- continue;
- }
- if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) {
- _this.whitespace$0();
- if (t1.peekChar$0() !== 41)
- break;
- continue;
- }
- if (41 === _0_0) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2 = buffer._contents += t2;
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- break;
- }
- t1.set$state(start);
- return null;
- },
- variableName$0() {
- this.scanner.expectChar$1(36);
- return this.identifier$1$normalize(true);
- },
- escape$1$identifierStart(identifierStart) {
- var value, _0_0, i, next, t2, exception,
- _s25_ = "Expected escape sequence.",
- t1 = this.scanner,
- start = t1._string_scanner$_position;
- t1.expectChar$1(92);
- value = 0;
- $label0$1: {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- t1.error$1(0, _s25_);
- if (_0_0 === 10 || _0_0 === 13 || _0_0 === 12)
- t1.error$1(0, _s25_);
- if (A.CharacterExtension_get_isHex(_0_0)) {
- for (i = 0; i < 6; ++i) {
- next = t1.peekChar$0();
- if (next != null) {
- if (!(next >= 48 && next <= 57))
- if (!(next >= 97 && next <= 102))
- t2 = next >= 65 && next <= 70;
- else
- t2 = true;
- else
- t2 = true;
- t2 = !t2;
- } else
- t2 = true;
- if (t2)
- break;
- value *= 16;
- value += A.asHex(t1.readChar$0());
- }
- this.scanCharIf$1(new A.Parser_escape_closure());
- break $label0$1;
- }
- value = t1.readChar$0();
- }
- if (identifierStart) {
- t2 = value;
- t2 = t2 === 95 || A.CharacterExtension_get_isAlphabetic(t2) || t2 >= 128;
- } else {
- t2 = value;
- if (!(t2 === 95 || A.CharacterExtension_get_isAlphabetic(t2) || t2 >= 128))
- t2 = t2 >= 48 && t2 <= 57 || t2 === 45;
- else
- t2 = true;
- }
- if (t2)
- try {
- t2 = A.Primitives_stringFromCharCode(value);
- return t2;
- } catch (exception) {
- if (type$.RangeError._is(A.unwrapException(exception)))
- t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
- else
- throw exception;
- }
- else {
- if (!(value <= 31))
- if (!J.$eq$(value, 127))
- if (identifierStart) {
- t1 = value;
- t1 = t1 >= 48 && t1 <= 57;
- } else
- t1 = false;
- else
- t1 = true;
- else
- t1 = true;
- if (t1) {
- t1 = "" + A.Primitives_stringFromCharCode(92);
- if (value > 15)
- t1 += A.Primitives_stringFromCharCode(A.hexCharFor(B.JSNumber_methods._shrOtherPositive$1(value, 4)));
- t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor(value & 15)) + A.Primitives_stringFromCharCode(32);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else
- return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null);
- }
- },
- escape$0() {
- return this.escape$1$identifierStart(false);
- },
- scanCharIf$1(condition) {
- var t1 = this.scanner;
- if (!condition.call$1(t1.peekChar$0()))
- return false;
- t1.readChar$0();
- return true;
- },
- scanIdentChar$2$caseSensitive(char, caseSensitive) {
- var t3,
- t1 = new A.Parser_scanIdentChar_matches(caseSensitive, char),
- t2 = this.scanner,
- _0_0 = t2.peekChar$0();
- if (_0_0 != null) {
- t3 = t1.call$1(_0_0);
- t3 = t3;
- } else
- t3 = false;
- if (t3) {
- t2.readChar$0();
- return true;
- }
- if (92 === _0_0) {
- t3 = t2._string_scanner$_position;
- if (t1.call$1(A.consumeEscapedCharacter(t2)))
- return true;
- t2.set$state(new A._SpanScannerState(t2, t3));
- }
- return false;
- },
- scanIdentChar$1(char) {
- return this.scanIdentChar$2$caseSensitive(char, false);
- },
- expectIdentChar$1(letter) {
- var t1;
- if (this.scanIdentChar$2$caseSensitive(letter, false))
- return;
- t1 = this.scanner;
- t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
- },
- lookingAtIdentifier$1($forward) {
- var t1, _1_0, t2, _0_0;
- if ($forward == null)
- $forward = 0;
- t1 = this.scanner;
- _1_0 = t1.peekChar$1($forward);
- $label0$0: {
- if (A._isInt(_1_0))
- t2 = _1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128;
- else
- t2 = false;
- if (t2 || 92 === _1_0) {
- t1 = true;
- break $label0$0;
- }
- if (45 === _1_0) {
- _0_0 = t1.peekChar$1($forward + 1);
- $label1$1: {
- if (A._isInt(_0_0))
- t1 = _0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128;
- else
- t1 = false;
- t1 = t1 || 92 === _0_0 || 45 === _0_0;
- if (t1)
- break $label1$1;
- break $label1$1;
- }
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- lookingAtIdentifier$0() {
- return this.lookingAtIdentifier$1(null);
- },
- lookingAtIdentifierBody$0() {
- var t1,
- next = this.scanner.peekChar$0();
- if (next != null) {
- if (!(next === 95 || A.CharacterExtension_get_isAlphabetic(next) || next >= 128))
- t1 = next >= 48 && next <= 57 || next === 45;
- else
- t1 = true;
- t1 = t1 || next === 92;
- } else
- t1 = false;
- return t1;
- },
- scanIdentifier$2$caseSensitive(text, caseSensitive) {
- var t1, t2, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- if (_this._consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0())
- return true;
- else {
- t1.set$state(new A._SpanScannerState(t1, t2));
- return false;
- }
- },
- scanIdentifier$1(text) {
- return this.scanIdentifier$2$caseSensitive(text, false);
- },
- _consumeIdentifier$2(text, caseSensitive) {
- var t1, t2, t3;
- for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive))
- return false;
- }
- return true;
- },
- expectIdentifier$2$name(text, $name) {
- var t1, start, t2, t3, t4, t5, t6;
- if ($name == null)
- $name = '"' + text + '"';
- t1 = this.scanner;
- start = t1._string_scanner$_position;
- for (t2 = new A.CodeUnits(text), t3 = type$.CodeUnits, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = "Expected " + $name, t5 = t4 + ".", t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
- t6 = t2.__internal$_current;
- if (this.scanIdentChar$2$caseSensitive(t6 == null ? t3._as(t6) : t6, false))
- continue;
- t1.error$2$position(0, t5, start);
- }
- if (!this.lookingAtIdentifierBody$0())
- return;
- t1.error$2$position(0, t4, start);
- },
- expectIdentifier$1(text) {
- return this.expectIdentifier$2$name(text, null);
- },
- rawText$1(consumer) {
- var t1 = this.scanner,
- start = t1._string_scanner$_position;
- consumer.call$0();
- return t1.substring$1(0, start);
- },
- spanFrom$1(state) {
- var span = this.scanner.spanFrom$1(state);
- return this._interpolationMap == null ? span : new A.LazyFileSpan(new A.Parser_spanFrom_closure(this, span));
- },
- error$3(_, message, span, trace) {
- var exception = new A.StringScannerException(this.scanner.string, message, span);
- if (trace == null)
- throw A.wrapException(exception);
- else
- A.throwWithTrace(exception, this.get$error(this), trace);
- },
- error$2(_, message, span) {
- return this.error$3(0, message, span, null);
- },
- withErrorMessage$1$2(message, callback) {
- var error, stackTrace, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = J.get$span$z(error);
- A.throwWithTrace(new A.SourceSpanFormatException(error.get$source(), message, t1), error, stackTrace);
- } else
- throw exception;
- }
- },
- withErrorMessage$2(message, callback) {
- return this.withErrorMessage$1$2(message, callback, type$.dynamic);
- },
- wrapSpanFormatException$1$1(callback) {
- var error, stackTrace, map, error0, stackTrace0, span, error1, stackTrace1, span0, secondarySpans, t1, t2, span1, description, _0_0, t3, exception, t4, _this = this,
- _s8_ = "expected";
- try {
- try {
- t3 = callback.call$0();
- return t3;
- } catch (exception) {
- t3 = A.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t3)) {
- error = t3;
- stackTrace = A.getTraceFromException(exception);
- map = _this._interpolationMap;
- if (map == null)
- throw exception;
- A.throwWithTrace(map.mapException$1(error), error, stackTrace);
- } else
- throw exception;
- }
- } catch (exception) {
- t3 = A.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t3)) {
- error0 = t3;
- stackTrace0 = A.getTraceFromException(exception);
- span = J.get$span$z(error0);
- if (A.startsWithIgnoreCase(error0._span_exception$_message, _s8_))
- span = _this._adjustExceptionSpan$1(span);
- t1 = error0._span_exception$_message;
- t2 = span;
- A.throwWithTrace(new A.SassFormatException(B.Set_empty, t1, t2), error0, stackTrace0);
- } else if (type$.MultiSourceSpanFormatException._is(t3)) {
- error1 = t3;
- stackTrace1 = A.getTraceFromException(exception);
- span0 = J.get$span$z(error1);
- t3 = type$.FileSpan;
- t4 = type$.String;
- secondarySpans = error1.get$secondarySpans().cast$2$0(0, t3, t4);
- if (A.startsWithIgnoreCase(error1._span_exception$_message, _s8_)) {
- span0 = _this._adjustExceptionSpan$1(span0);
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
- for (t3 = A.MapExtensions_get_pairs(secondarySpans, t3, t4), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t2 = t3.get$current(t3);
- span1 = null;
- description = null;
- _0_0 = t2;
- span1 = _0_0._0;
- description = _0_0._1;
- J.$indexSet$ax(t1, _this._adjustExceptionSpan$1(span1), description);
- }
- secondarySpans = t1;
- }
- A.throwWithTrace(A.MultiSpanSassFormatException$(error1._span_exception$_message, span0, error1.get$primaryLabel(), secondarySpans, null), error1, stackTrace1);
- } else
- throw exception;
- }
- },
- wrapSpanFormatException$1(callback) {
- return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
- },
- _adjustExceptionSpan$1(span) {
- var start, t1;
- if (span.get$length(span) > 0)
- return span;
- start = this._firstNewlineBefore$1(span.get$start(span));
- if (start.$eq(0, span.get$start(span)))
- t1 = span;
- else {
- t1 = start.offset;
- t1 = A._FileSpan$(start.file, t1, t1);
- }
- return t1;
- },
- _firstNewlineBefore$1($location) {
- var lastNewline, codeUnit,
- t1 = $location.file,
- t2 = $location.offset,
- text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, 0, t2), 0, null),
- index = t2 - 1;
- for (lastNewline = null; index >= 0;) {
- codeUnit = text.charCodeAt(index);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) {
- if (lastNewline == null)
- t1 = $location;
- else {
- t2 = new A.FileLocation(t1, lastNewline);
- t2.FileLocation$_$2(t1, lastNewline);
- t1 = t2;
- }
- return t1;
- }
- if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
- lastNewline = index;
- --index;
- }
- return $location;
- }
- };
- A.Parser__parseIdentifier_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- result = t1.identifier$0();
- t1.scanner.expectDone$0();
- return result;
- },
- $signature: 26
- };
- A.Parser_escape_closure.prototype = {
- call$1(char) {
- return char === 32 || char === 9 || char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A.Parser_scanIdentChar_matches.prototype = {
- call$1(actual) {
- var t1 = this.char;
- return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase(t1, actual);
- },
- $signature: 45
- };
- A.Parser_spanFrom_closure.prototype = {
- call$0() {
- return this.$this._interpolationMap.mapSpan$1(this.span);
- },
- $signature: 27
- };
- A.SassParser.prototype = {
- get$currentIndentation() {
- return this._currentIndentation;
- },
- get$indented() {
- return true;
- },
- styleRuleSelector$0() {
- var t4,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object));
- do {
- buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
- t4 = A.Primitives_stringFromCharCode(10);
- t4 = t3._contents += t4;
- } while (B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(new A.SassParser_styleRuleSelector_closure()));
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- expectStatementSeparator$1($name) {
- var t1, _this = this;
- if (!_this.atEndOfStatement$0())
- _this._expectNewline$0();
- if (_this._peekIndentation$0() <= _this._currentIndentation)
- return;
- t1 = $name == null ? "here" : "beneath a " + $name;
- _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._nextIndentationEnd.position);
- },
- expectStatementSeparator$0() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0() {
- var t1 = this.scanner.peekChar$0();
- if (t1 == null)
- t1 = null;
- else
- t1 = t1 === 10 || t1 === 13 || t1 === 12;
- return t1 !== false;
- },
- lookingAtChildren$0() {
- return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation;
- },
- importArgument$0() {
- var url, span, innerError, stackTrace, t1, _0_0, start, next, t2, exception, _this = this;
- $label0$0: {
- t1 = _this.scanner;
- _0_0 = t1.peekChar$0();
- if (117 === _0_0 || 85 === _0_0) {
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this.scanIdentifier$1("url"))
- if (t1.scanChar$1(40)) {
- t1.set$state(start);
- return _this.super$StylesheetParser$importArgument();
- } else
- t1.set$state(start);
- break $label0$0;
- }
- if (39 === _0_0 || 34 === _0_0)
- return _this.super$StylesheetParser$importArgument();
- }
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- next = t1.peekChar$0();
- while (true) {
- if (next != null)
- if (next !== 44)
- if (next !== 59)
- t2 = !(next === 10 || next === 13 || next === 12);
- else
- t2 = false;
- else
- t2 = false;
- else
- t2 = false;
- if (!t2)
- break;
- t1.readChar$0();
- next = t1.peekChar$0();
- }
- url = t1.substring$1(0, start.position);
- span = t1.spanFrom$1(start);
- if (_this.isPlainImportUrl$1(url))
- return new A.StaticImport(A.Interpolation$(A._setArrayType([A.serializeValue(new A.SassString(url, true), true, true)], type$.JSArray_Object), span), null, span);
- else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new A.DynamicImport(t1, span);
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- stackTrace = A.getTraceFromException(exception);
- _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace);
- } else
- throw exception;
- }
- },
- scanElse$1(ifIndentation) {
- var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
- if (_this._peekIndentation$0() !== ifIndentation)
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- startIndentation = _this._currentIndentation;
- startNextIndentation = _this._nextIndentation;
- startNextIndentationEnd = _this._nextIndentationEnd;
- _this._readIndentation$0();
- if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
- return true;
- t1.set$state(new A._SpanScannerState(t1, t2));
- _this._currentIndentation = startIndentation;
- _this._nextIndentation = startNextIndentation;
- _this._nextIndentationEnd = startNextIndentationEnd;
- return false;
- },
- children$1(_, child) {
- var children = A._setArrayType([], type$.JSArray_Statement);
- this._whileIndentedLower$1(new A.SassParser_children_closure(this, child, children));
- return children;
- },
- statements$1(statement) {
- var statements, t2, _1_0,
- t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- if (9 === _0_0 || 32 === _0_0)
- t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
- statements = A._setArrayType([], type$.JSArray_Statement);
- for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- _1_0 = this._child$1(statement);
- if (_1_0 != null)
- statements.push(_1_0);
- this._readIndentation$0();
- }
- return statements;
- },
- _child$1(child) {
- var _0_0, _this = this,
- t1 = _this.scanner,
- _1_0 = t1.peekChar$0();
- $label0$0: {
- if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) {
- t1 = null;
- break $label0$0;
- }
- if (36 === _1_0) {
- t1 = _this.variableDeclarationWithoutNamespace$0();
- break $label0$0;
- }
- if (47 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label1$1: {
- if (47 === _0_0) {
- t1 = _this._silentComment$0();
- break $label1$1;
- }
- if (42 === _0_0) {
- t1 = _this._loudComment$0();
- break $label1$1;
- }
- t1 = child.call$0();
- break $label1$1;
- }
- break $label0$0;
- }
- t1 = child.call$0();
- break $label0$0;
- }
- return t1;
- },
- _silentComment$0() {
- var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("//");
- buffer = new A.StringBuffer("");
- parentIndentation = _this._currentIndentation;
- t3 = t1.string.length;
- t4 = 1 + parentIndentation;
- t5 = 2 + parentIndentation;
- $label0$0:
- do {
- commentPrefix = t1.scanChar$1(47) ? "///" : "//";
- for (i = commentPrefix.length; true;) {
- t6 = buffer._contents += commentPrefix;
- for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) {
- t6 += A.Primitives_stringFromCharCode(32);
- buffer._contents = t6;
- }
- while (true) {
- if (t1._string_scanner$_position !== t3) {
- t7 = t1.peekChar$0();
- t7 = !(t7 === 10 || t7 === 13 || t7 === 12);
- } else
- t7 = false;
- if (!t7)
- break;
- t6 += A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents = t6;
- }
- buffer._contents = t6 + "\n";
- if (_this._peekIndentation$0() < parentIndentation)
- break $label0$0;
- if (_this._peekIndentation$0() === parentIndentation) {
- if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47)
- _this._readIndentation$0();
- break;
- }
- _this._readIndentation$0();
- }
- } while (t1.scan$1("//"));
- t3 = buffer._contents;
- return _this.lastSilentComment = new A.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _loudComment$0() {
- var t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _0_0, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer(t3, t4);
- t3._contents = "" + "/*";
- parentIndentation = _this._currentIndentation;
- for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) {
- if (first) {
- beginningOfComment = t1._string_scanner$_position;
- _this.spaces$0();
- t7 = t1.peekChar$0();
- if (t7 === 10 || t7 === 13 || t7 === 12) {
- _this._readIndentation$0();
- t7 = A.Primitives_stringFromCharCode(32);
- t3._contents += t7;
- } else {
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end);
- }
- } else {
- t7 = t3._contents += "\n";
- t3._contents = t7 + " * ";
- }
- for (i = 3; i < _this._currentIndentation - parentIndentation; ++i) {
- t7 = A.Primitives_stringFromCharCode(32);
- t3._contents += t7;
- }
- for (; t1._string_scanner$_position !== t6;) {
- _0_0 = t1.peekChar$0();
- if (10 === _0_0 || 13 === _0_0 || 12 === _0_0)
- break;
- if (35 === _0_0) {
- if (t1.peekChar$1(1) === 123) {
- t7 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t7);
- } else {
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- continue;
- }
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- if (_this._peekIndentation$0() <= parentIndentation)
- break;
- for (; _this._lookingAtDoubleNewline$0();) {
- _this._expectNewline$0();
- t7 = t3._contents += "\n";
- t3._contents = t7 + " *";
- }
- _this._readIndentation$0();
- }
- t4 = t3._contents;
- if (!B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
- t3._contents += " */";
- return new A.LoudComment(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
- },
- whitespaceWithoutComments$0() {
- var t1, t2, next;
- for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- next = t1.peekChar$0();
- if (next !== 9 && next !== 32)
- break;
- t1.readChar$0();
- }
- },
- loudComment$0() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- next = t1.readChar$0();
- if (next === 10 || next === 13 || next === 12)
- t1.error$1(0, "expected */.");
- if (next !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- _expectNewline$0() {
- var t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- if (59 === _0_0)
- t1.error$1(0, string$.semico);
- if (13 === _0_0) {
- t1.readChar$0();
- if (t1.peekChar$0() === 10)
- t1.readChar$0();
- return;
- }
- if (10 === _0_0 || 12 === _0_0) {
- t1.readChar$0();
- return;
- }
- t1.error$1(0, "expected newline.");
- },
- _lookingAtDoubleNewline$0() {
- var _0_0,
- t1 = this.scanner,
- _1_0 = t1.peekChar$0();
- $label1$1: {
- if (13 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label0$0: {
- if (10 === _0_0) {
- t1 = t1.peekChar$1(2);
- t1 = t1 === 10 || t1 === 13 || t1 === 12;
- break $label0$0;
- }
- if (13 === _0_0 || 12 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- break $label1$1;
- }
- if (10 === _1_0 || 12 === _1_0) {
- t1 = t1.peekChar$1(1);
- t1 = t1 === 10 || t1 === 13 || t1 === 12;
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- return t1;
- },
- _whileIndentedLower$1(body) {
- var t1, t2, childIndentation, indentation, t3, t4, _this = this,
- parentIndentation = _this._currentIndentation;
- for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) {
- indentation = _this._readIndentation$0();
- if (childIndentation == null)
- childIndentation = indentation;
- if (childIndentation !== indentation) {
- t3 = t1._string_scanner$_position;
- t4 = t2.getColumn$1(t3);
- t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4);
- }
- body.call$0();
- }
- },
- _readIndentation$0() {
- var t1, _this = this,
- currentIndentation = _this._nextIndentation;
- if (currentIndentation == null)
- currentIndentation = _this._nextIndentation = _this._peekIndentation$0();
- _this._currentIndentation = currentIndentation;
- t1 = _this._nextIndentationEnd;
- t1.toString;
- _this.scanner.set$state(t1);
- _this._nextIndentationEnd = _this._nextIndentation = null;
- return currentIndentation;
- },
- _peekIndentation$0() {
- var t1, t2, t3, start, containsTab, containsSpace, nextIndentation, _1_0, t4, _this = this,
- _0_0 = _this._nextIndentation;
- if (_0_0 != null)
- return _0_0;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- t3 = t1.string.length;
- if (t2 === t3) {
- _this._nextIndentation = 0;
- _this._nextIndentationEnd = new A._SpanScannerState(t1, t2);
- return 0;
- }
- start = new A._SpanScannerState(t1, t2);
- if (!_this.scanCharIf$1(new A.SassParser__peekIndentation_closure()))
- t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
- containsTab = A._Cell$();
- containsSpace = A._Cell$();
- nextIndentation = A._Cell$();
- do {
- containsSpace.__late_helper$_value = containsTab.__late_helper$_value = false;
- nextIndentation.__late_helper$_value = 0;
- for (; true;) {
- $label0$0: {
- _1_0 = t1.peekChar$0();
- if (32 === _1_0) {
- containsSpace.__late_helper$_value = true;
- break $label0$0;
- }
- if (9 === _1_0) {
- containsTab.__late_helper$_value = true;
- break $label0$0;
- }
- break;
- }
- t2 = nextIndentation.__late_helper$_value;
- if (t2 === nextIndentation)
- A.throwExpression(A.LateError$localNI(""));
- nextIndentation.__late_helper$_value = t2 + 1;
- t1.readChar$0();
- }
- t2 = t1._string_scanner$_position;
- if (t2 === t3) {
- _this._nextIndentation = 0;
- _this._nextIndentationEnd = new A._SpanScannerState(t1, t2);
- t1.set$state(start);
- return 0;
- }
- } while (_this.scanCharIf$1(new A.SassParser__peekIndentation_closure0()));
- t2 = containsTab._readLocal$0();
- t3 = containsSpace._readLocal$0();
- if (t2) {
- if (t3) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- } else if (_this._spaces === true) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- } else if (t3 && _this._spaces === false) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- _this._nextIndentation = nextIndentation._readLocal$0();
- if (nextIndentation._readLocal$0() > 0)
- if (_this._spaces == null)
- _this._spaces = containsSpace._readLocal$0();
- _this._nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.set$state(start);
- return nextIndentation._readLocal$0();
- }
- };
- A.SassParser_styleRuleSelector_closure.prototype = {
- call$1(char) {
- return char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A.SassParser_children_closure.prototype = {
- call$0() {
- var _0_0 = this.$this._child$1(this.child);
- if (_0_0 != null)
- this.children.push(_0_0);
- },
- $signature: 0
- };
- A.SassParser__peekIndentation_closure.prototype = {
- call$1(char) {
- return char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A.SassParser__peekIndentation_closure0.prototype = {
- call$1(char) {
- return char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A.ScssParser.prototype = {
- get$indented() {
- return false;
- },
- get$currentIndentation() {
- return 0;
- },
- styleRuleSelector$0() {
- return this.almostAnyValue$0();
- },
- expectStatementSeparator$1($name) {
- var t1, _0_0;
- this.whitespaceWithoutComments$0();
- t1 = this.scanner;
- if (t1._string_scanner$_position === t1.string.length)
- return;
- _0_0 = t1.peekChar$0();
- if (59 === _0_0 || 125 === _0_0)
- return;
- t1.expectChar$1(59);
- },
- expectStatementSeparator$0() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0() {
- var next = this.scanner.peekChar$0();
- return next == null || next === 59 || next === 125 || next === 123;
- },
- lookingAtChildren$0() {
- return this.scanner.peekChar$0() === 123;
- },
- scanElse$1(ifIndentation) {
- var t3, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- _this.whitespace$0();
- t3 = t1._string_scanner$_position;
- if (t1.scanChar$1(64)) {
- if (_this.scanIdentifier$2$caseSensitive("else", true))
- return true;
- if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
- A.WarnForDeprecation_warnForDeprecation(_this.logger, B.Deprecation_EJz, string$.x40elsei, t1.spanFrom$1(new A._SpanScannerState(t1, t3)), null);
- t1.set$position(t1._string_scanner$_position - 2);
- return true;
- }
- }
- t1.set$state(new A._SpanScannerState(t1, t2));
- return false;
- },
- children$1(_, child) {
- var children, _this = this,
- t1 = _this.scanner;
- t1.expectChar$1(123);
- _this.whitespaceWithoutComments$0();
- children = A._setArrayType([], type$.JSArray_Statement);
- for (; true;)
- switch (t1.peekChar$0()) {
- case 36:
- children.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- children.push(_this._scss$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- children.push(_this._scss$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- children.push(child.call$0());
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- case 125:
- t1.expectChar$1(125);
- return children;
- default:
- children.push(child.call$0());
- }
- },
- statements$1(statement) {
- var t1, t2, _0_0, _1_0, _this = this,
- statements = A._setArrayType([], type$.JSArray_Statement);
- _this.whitespaceWithoutComments$0();
- for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
- switch (t1.peekChar$0()) {
- case 36:
- statements.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- statements.push(_this._scss$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- statements.push(_this._scss$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- _0_0 = statement.call$0();
- if (_0_0 != null)
- statements.push(_0_0);
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- default:
- _1_0 = statement.call$0();
- if (_1_0 != null)
- statements.push(_1_0);
- }
- return statements;
- },
- _scss$_silentComment$0() {
- var t2, t3, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expect$1("//");
- t2 = t1.string.length;
- do {
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.readChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- }
- if (t1._string_scanner$_position === t2)
- break;
- _this.spaces$0();
- } while (t1.scan$1("//"));
- if (_this.get$plainCss())
- _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
- return _this.lastSilentComment = new A.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start));
- },
- _scss$_loudComment$0() {
- var t3, t4, buffer, t5, endPosition, t6, result,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer(t3, t4);
- t3._contents = "" + "/*";
- $label0$1:
- for (; true;)
- switch (t1.peekChar$0()) {
- case 35:
- if (t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t5);
- } else {
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- }
- break;
- case 42:
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- if (t1.peekChar$0() !== 47)
- continue $label0$1;
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- endPosition = t1._string_scanner$_position;
- t5 = t1._sourceFile;
- t6 = new A._SpanScannerState(t1, t2).position;
- t1 = new A._FileSpan(t5, t6, endPosition);
- t1._FileSpan$3(t5, t6, endPosition);
- t6 = type$.Object;
- t5 = A.List_List$of(t4, true, t6);
- t2 = t3._contents;
- if (t2.length !== 0)
- t5.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- result = A.List_List$from(t5, false, t6);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t2 = new A.Interpolation(result, t1);
- t2.Interpolation$2(t5, t1);
- return new A.LoudComment(t2);
- case 13:
- t1.readChar$0();
- if (t1.peekChar$0() !== 10) {
- t5 = A.Primitives_stringFromCharCode(10);
- t3._contents += t5;
- }
- break;
- case 12:
- t1.readChar$0();
- t5 = A.Primitives_stringFromCharCode(10);
- t3._contents += t5;
- break;
- default:
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- }
- }
- };
- A.SelectorParser.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure(this));
- },
- parseCompoundSelector$0() {
- return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure(this));
- },
- _selectorList$0() {
- var t4, t5, lineBreak, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = t1._sourceFile,
- previousLine = t3.getLine$1(t2),
- components = A._setArrayType([_this._complexSelector$0()], type$.JSArray_ComplexSelector);
- _this.whitespace$0();
- for (t4 = t1.string.length; t1.scanChar$1(44);) {
- _this.whitespace$0();
- if (t1.peekChar$0() === 44)
- continue;
- t5 = t1._string_scanner$_position;
- if (t5 === t4)
- break;
- lineBreak = t3.getLine$1(t5) !== previousLine;
- if (lineBreak)
- previousLine = t3.getLine$1(t1._string_scanner$_position);
- components.push(_this._complexSelector$1$lineBreak(lineBreak));
- }
- return A.SelectorList$(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _complexSelector$1$lineBreak(lineBreak) {
- var t4, lastCompound, initialCombinators, _0_0, t5, result, _this = this,
- _s18_ = "expected selector.",
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- componentStart = new A._SpanScannerState(t1, t2),
- t3 = type$.JSArray_CssValue_Combinator,
- combinators = A._setArrayType([], t3),
- components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent);
- for (t4 = type$.CssValue_Combinator, lastCompound = null, initialCombinators = null; true;) {
- _this.whitespace$0();
- _0_0 = t1.peekChar$0();
- if (43 === _0_0) {
- t5 = t1._string_scanner$_position;
- t1.readChar$0();
- combinators.push(new A.CssValue(B.Combinator_gRV, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
- continue;
- }
- if (62 === _0_0) {
- t5 = t1._string_scanner$_position;
- t1.readChar$0();
- combinators.push(new A.CssValue(B.Combinator_8I8, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
- continue;
- }
- if (126 === _0_0) {
- t5 = t1._string_scanner$_position;
- t1.readChar$0();
- combinators.push(new A.CssValue(B.Combinator_y18, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
- continue;
- }
- if (_0_0 == null)
- break;
- if (91 !== _0_0)
- if (46 !== _0_0)
- if (35 !== _0_0)
- if (37 !== _0_0)
- if (58 !== _0_0)
- if (38 !== _0_0)
- if (42 !== _0_0)
- if (124 !== _0_0)
- t5 = _this.lookingAtIdentifier$0();
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5) {
- if (lastCompound != null) {
- t5 = _this.spanFrom$1(componentStart);
- result = A.List_List$from(combinators, false, t4);
- result.fixed$length = Array;
- result.immutable$list = Array;
- components.push(new A.ComplexSelectorComponent(lastCompound, result, t5));
- } else if (combinators.length !== 0) {
- componentStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
- initialCombinators = combinators;
- }
- lastCompound = _this._compoundSelector$0();
- combinators = A._setArrayType([], t3);
- if (t1.peekChar$0() === 38)
- t1.error$1(0, string$.x22x26__ma);
- continue;
- }
- break;
- }
- t3 = combinators.length !== 0;
- if (t3 && _this._plainCss)
- t1.error$1(0, _s18_);
- else if (lastCompound != null) {
- t3 = _this.spanFrom$1(componentStart);
- components.push(new A.ComplexSelectorComponent(lastCompound, A.List_List$unmodifiable(combinators, t4), t3));
- } else if (t3)
- initialCombinators = combinators;
- else
- t1.error$1(0, _s18_);
- t3 = initialCombinators == null ? B.List_empty0 : initialCombinators;
- return A.ComplexSelector$(t3, components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)), lineBreak);
- },
- _complexSelector$0() {
- return this._complexSelector$1$lineBreak(false);
- },
- _compoundSelector$0() {
- var t3, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- components = A._setArrayType([_this._simpleSelector$0()], type$.JSArray_SimpleSelector);
- for (t3 = _this._plainCss; _this._isSimpleSelectorStart$1(t1.peekChar$0());)
- components.push(_this._simpleSelector$1$allowParent(t3));
- return A.CompoundSelector$(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _simpleSelector$1$allowParent(allowParent) {
- var t2, $name, text, t3, suffix, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (allowParent == null)
- allowParent = _this._allowParent;
- switch (t1.peekChar$0()) {
- case 91:
- return _this._attributeSelector$0();
- case 46:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(46);
- return new A.ClassSelector(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- case 35:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(35);
- return new A.IDSelector(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- case 37:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(37);
- $name = _this.identifier$0();
- t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
- if (_this._plainCss)
- _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
- return new A.PlaceholderSelector($name, t2);
- case 58:
- return _this._pseudoSelector$0();
- case 38:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(38);
- if (_this.lookingAtIdentifierBody$0()) {
- text = new A.StringBuffer("");
- _this._identifierBody$1(text);
- if (text._contents.length === 0)
- t1.error$1(0, "Expected identifier body.");
- t3 = text._contents;
- suffix = t3.charCodeAt(0) == 0 ? t3 : t3;
- } else
- suffix = null;
- if (_this._plainCss && suffix != null)
- t1.error$3$length$position(0, string$.Parent, t1._string_scanner$_position - t2, t2);
- t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
- if (!allowParent)
- _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
- return new A.ParentSelector(suffix, t2);
- default:
- return _this._typeOrUniversalSelector$0();
- }
- },
- _simpleSelector$0() {
- return this._simpleSelector$1$allowParent(null);
- },
- _attributeSelector$0() {
- var $name, operator, next, value, modifier, _this = this, _null = null,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(91);
- _this.whitespace$0();
- $name = _this._attributeName$0();
- _this.whitespace$0();
- if (t1.scanChar$1(93))
- return new A.AttributeSelector($name, _null, _null, _null, _this.spanFrom$1(start));
- operator = _this._attributeOperator$0();
- _this.whitespace$0();
- next = t1.peekChar$0();
- value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
- _this.whitespace$0();
- next = t1.peekChar$0();
- modifier = next != null && A.CharacterExtension_get_isAlphabetic(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
- t1.expectChar$1(93);
- return new A.AttributeSelector($name, operator, value, modifier, _this.spanFrom$1(start));
- },
- _attributeName$0() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner;
- if (t1.scanChar$1(42)) {
- t1.expectChar$1(124);
- return new A.QualifiedName(_this.identifier$0(), "*");
- }
- if (t1.scanChar$1(124))
- return new A.QualifiedName(_this.identifier$0(), "");
- nameOrNamespace = _this.identifier$0();
- if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
- return new A.QualifiedName(nameOrNamespace, null);
- t1.readChar$0();
- return new A.QualifiedName(_this.identifier$0(), nameOrNamespace);
- },
- _attributeOperator$0() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- switch (t1.readChar$0()) {
- case 61:
- return B.AttributeOperator_4QF;
- case 126:
- t1.expectChar$1(61);
- return B.AttributeOperator_yT8;
- case 124:
- t1.expectChar$1(61);
- return B.AttributeOperator_jqB;
- case 94:
- t1.expectChar$1(61);
- return B.AttributeOperator_cMb;
- case 36:
- t1.expectChar$1(61);
- return B.AttributeOperator_qhE;
- case 42:
- t1.expectChar$1(61);
- return B.AttributeOperator_61T;
- default:
- t1.error$2$position(0, 'Expected "]".', t2);
- }
- },
- _pseudoSelector$0() {
- var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(58);
- element = t1.scanChar$1(58);
- $name = _this.identifier$0();
- if (!t1.scanChar$1(40))
- return A.PseudoSelector$($name, _this.spanFrom$1(start), _null, element, _null);
- _this.whitespace$0();
- unvendored = A.unvendor($name);
- if (element)
- if ($._selectorPseudoElements.contains$1(0, unvendored)) {
- selector = _this._selectorList$0();
- argument = _null;
- } else {
- argument = _this.declarationValue$1$allowEmpty(true);
- selector = _null;
- }
- else if ($._selectorPseudoClasses.contains$1(0, unvendored)) {
- selector = _this._selectorList$0();
- argument = _null;
- } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
- argument = _this._aNPlusB$0();
- _this.whitespace$0();
- t2 = t1.peekChar$1(-1);
- if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) {
- _this.expectIdentifier$1("of");
- argument += " of";
- _this.whitespace$0();
- selector = _this._selectorList$0();
- } else
- selector = _null;
- } else {
- argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
- selector = _null;
- }
- t1.expectChar$1(41);
- return A.PseudoSelector$($name, _this.spanFrom$1(start), argument, element, selector);
- },
- _aNPlusB$0() {
- var t1, _0_0, t2, $self, next, _this = this;
- $label0$0: {
- t1 = _this.scanner;
- _0_0 = t1.peekChar$0();
- if (101 === _0_0 || 69 === _0_0) {
- _this.expectIdentifier$1("even");
- return "even";
- }
- if (111 === _0_0 || 79 === _0_0) {
- _this.expectIdentifier$1("odd");
- return "odd";
- }
- if (43 === _0_0 || 45 === _0_0) {
- t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0());
- break $label0$0;
- }
- t2 = "";
- }
- $self = t1.peekChar$0();
- if ($self != null && $self >= 48 && $self <= 57) {
- do {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- } while ($self != null && $self >= 48 && $self <= 57);
- _this.whitespace$0();
- if (!_this.scanIdentChar$1(110))
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- _this.expectIdentChar$1(110);
- t2 += A.Primitives_stringFromCharCode(110);
- _this.whitespace$0();
- next = t1.peekChar$0();
- if (next !== 43 && next !== 45)
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- _this.whitespace$0();
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- t1.error$1(0, "Expected a number.");
- do {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- } while ($self != null && $self >= 48 && $self <= 57);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- },
- _typeOrUniversalSelector$0() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (t1.scanChar$1(42)) {
- if (!t1.scanChar$1(124))
- return new A.UniversalSelector(null, _this.spanFrom$1(start));
- return t1.scanChar$1(42) ? new A.UniversalSelector("*", _this.spanFrom$1(start)) : new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), "*"), _this.spanFrom$1(start));
- } else if (t1.scanChar$1(124))
- return t1.scanChar$1(42) ? new A.UniversalSelector("", _this.spanFrom$1(start)) : new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), ""), _this.spanFrom$1(start));
- nameOrNamespace = _this.identifier$0();
- if (!t1.scanChar$1(124))
- return new A.TypeSelector(new A.QualifiedName(nameOrNamespace, null), _this.spanFrom$1(start));
- else if (t1.scanChar$1(42))
- return new A.UniversalSelector(nameOrNamespace, _this.spanFrom$1(start));
- else
- return new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), nameOrNamespace), _this.spanFrom$1(start));
- },
- _isSimpleSelectorStart$1(character) {
- var t1;
- $label0$0: {
- if (42 === character || 91 === character || 46 === character || 35 === character || 37 === character || 58 === character) {
- t1 = true;
- break $label0$0;
- }
- if (38 === character) {
- t1 = this._plainCss;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- }
- };
- A.SelectorParser_parse_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- selector = t1._selectorList$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1(0, "expected selector.");
- return selector;
- },
- $signature: 497
- };
- A.SelectorParser_parseCompoundSelector_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- compound = t1._compoundSelector$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1(0, "expected selector.");
- return compound;
- },
- $signature: 484
- };
- A.StylesheetParser.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure(this));
- },
- parseArgumentDeclaration$0() {
- return this._parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure(this), type$.ArgumentDeclaration);
- },
- parseVariableDeclaration$0() {
- return this._parseSingleProduction$1$1(new A.StylesheetParser_parseVariableDeclaration_closure(this), type$.VariableDeclaration);
- },
- parseUseRule$0() {
- return this._parseSingleProduction$1$1(new A.StylesheetParser_parseUseRule_closure(this), type$.UseRule);
- },
- _parseSingleProduction$1$1(production, $T) {
- return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure(this, production, $T));
- },
- _statement$1$root(root) {
- var t2, _this = this,
- t1 = _this.scanner,
- _0_0 = t1.peekChar$0();
- if (64 === _0_0)
- return _this.atRule$2$root(new A.StylesheetParser__statement_closure(_this), root);
- if (43 === _0_0) {
- if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
- return _this._styleRule$0();
- _this._isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- return _this._includeRule$1(new A._SpanScannerState(t1, t2));
- }
- if (61 === _0_0) {
- if (!_this.get$indented())
- return _this._styleRule$0();
- _this._isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- _this.whitespace$0();
- return _this._mixinRule$1(new A._SpanScannerState(t1, t2));
- }
- if (125 === _0_0)
- t1.error$2$length(0, 'unmatched "}".', 1);
- return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0();
- },
- _statement$0() {
- return this._statement$1$root(false);
- },
- _variableDeclarationWithNamespace$0() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- namespace = this.identifier$0();
- t1.expectChar$1(46);
- return this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2));
- },
- variableDeclarationWithoutNamespace$2(namespace, start_) {
- var t1, start, $name, t2, value, flagStart, t3, guarded, global, _0_0, endPosition, t4, t5, t6, declaration, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- if (start_ == null) {
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- } else
- start = start_;
- $name = _this.variableName$0();
- t1 = namespace != null;
- if (t1)
- _this._assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure(_this, start));
- if (_this.get$plainCss())
- _this.error$2(0, string$.Sassx20v, _this.scanner.spanFrom$1(start));
- _this.whitespace$0();
- t2 = _this.scanner;
- t2.expectChar$1(58);
- _this.whitespace$0();
- value = _this._expression$0();
- flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
- for (t3 = _this.logger, guarded = false, global = false; t2.scanChar$1(33);) {
- $label0$0: {
- _0_0 = _this.identifier$0();
- if ("default" === _0_0) {
- if (guarded) {
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- A.WarnForDeprecation_warnForDeprecation(t3, B.Deprecation_zrt, string$.x21defau, t6, null);
- }
- guarded = true;
- break $label0$0;
- }
- if ("global" === _0_0) {
- if (t1) {
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- _this.error$2(0, string$.x21globai, t6);
- } else if (global) {
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- A.WarnForDeprecation_warnForDeprecation(t3, B.Deprecation_zrt, string$.x21globas, t6, null);
- }
- global = true;
- break $label0$0;
- }
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- _this.error$2(0, "Invalid flag name.", t6);
- }
- _this.whitespace$0();
- flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
- }
- _this.expectStatementSeparator$1("variable declaration");
- declaration = A.VariableDeclaration$($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace);
- if (global)
- _this._globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration));
- return declaration;
- },
- variableDeclarationWithoutNamespace$0() {
- return this.variableDeclarationWithoutNamespace$2(null, null);
- },
- _variableDeclarationOrStyleRule$0() {
- var t1, t2, variableOrInterpolation, t3, _this = this;
- if (_this.get$plainCss())
- return _this._styleRule$0();
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._styleRule$0();
- if (!_this.lookingAtIdentifier$0())
- return _this._styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof A.VariableDeclaration)
- t1 = variableOrInterpolation;
- else {
- t3 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
- t3.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
- t2 = _this._styleRule$2(t3, new A._SpanScannerState(t1, t2));
- t1 = t2;
- }
- return t1;
- },
- _declarationOrStyleRule$0() {
- var t1, t2, declarationOrBuffer, _this = this;
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- declarationOrBuffer = _this._declarationOrBuffer$0();
- return type$.Statement._is(declarationOrBuffer) ? declarationOrBuffer : _this._styleRule$2(type$.InterpolationBuffer._as(declarationOrBuffer), new A._SpanScannerState(t1, t2));
- },
- _declarationOrBuffer$0() {
- var midBuffer, couldBeSelector, beforeDeclaration, value, additional, t2, t3, variableOrInterpolation, t4, t5, $name, postColonWhitespace, _0_0, exception, _1_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- nameBuffer = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)),
- startsWithPunctuation = _this._lookingAtPotentialPropertyHack$0();
- if (startsWithPunctuation) {
- t2 = t1.readChar$0();
- t3 = nameBuffer._interpolation_buffer$_text;
- t2 = A.Primitives_stringFromCharCode(t2);
- t3._contents += t2;
- t2 = _this.rawText$1(_this.get$whitespace());
- t3 = nameBuffer._interpolation_buffer$_text;
- t3._contents += t2;
- }
- if (!_this._lookingAtInterpolatedIdentifier$0())
- return nameBuffer;
- variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof A.VariableDeclaration)
- return variableOrInterpolation;
- else
- nameBuffer.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
- _this._isUseAllowed = false;
- if (t1.matches$1("/*")) {
- t2 = _this.rawText$1(_this.get$loudComment());
- t3 = nameBuffer._interpolation_buffer$_text;
- t3._contents += t2;
- }
- midBuffer = new A.StringBuffer("");
- t2 = midBuffer;
- t3 = _this.get$whitespace();
- t4 = _this.rawText$1(t3);
- t2._contents += t4;
- t4 = t1._string_scanner$_position;
- if (!t1.scanChar$1(58)) {
- if (midBuffer._contents.length !== 0) {
- t1 = nameBuffer._interpolation_buffer$_text;
- t2 = A.Primitives_stringFromCharCode(32);
- t1._contents += t2;
- }
- return nameBuffer;
- }
- t2 = midBuffer;
- t5 = A.Primitives_stringFromCharCode(58);
- t2._contents += t5;
- $name = nameBuffer.interpolation$1(t1.spanFrom$2(start, new A._SpanScannerState(t1, t4)));
- if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
- t2 = _this._interpolatedDeclarationValue$1$silentComments(false);
- _this.expectStatementSeparator$1("custom property");
- return A.Declaration$($name, new A.StringExpression(t2, false), t1.spanFrom$1(start));
- }
- if (t1.scanChar$1(58)) {
- t1 = nameBuffer;
- t2 = t1._interpolation_buffer$_text;
- t3 = A.S(midBuffer);
- t2._contents += t3;
- t3 = A.Primitives_stringFromCharCode(58);
- t2._contents += t3;
- return t1;
- } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) {
- t1 = nameBuffer;
- t2 = t1._interpolation_buffer$_text;
- t3 = A.S(midBuffer);
- t2._contents += t3;
- return t1;
- }
- postColonWhitespace = _this.rawText$1(t3);
- _0_0 = _this._tryDeclarationChildren$2($name, start);
- if (_0_0 != null)
- return _0_0;
- midBuffer._contents += postColonWhitespace;
- couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0();
- beforeDeclaration = new A._SpanScannerState(t1, t1._string_scanner$_position);
- value = null;
- try {
- value = _this._expression$0();
- if (_this.lookingAtChildren$0()) {
- if (couldBeSelector)
- _this.expectStatementSeparator$0();
- } else if (!_this.atEndOfStatement$0())
- _this.expectStatementSeparator$0();
- } catch (exception) {
- if (type$.FormatException._is(A.unwrapException(exception))) {
- if (!couldBeSelector)
- throw exception;
- t1.set$state(beforeDeclaration);
- additional = _this.almostAnyValue$0();
- if (!_this.get$indented() && t1.peekChar$0() === 59)
- throw exception;
- t1 = nameBuffer._interpolation_buffer$_text;
- t2 = A.S(midBuffer);
- t1._contents += t2;
- nameBuffer.addInterpolation$1(additional);
- return nameBuffer;
- } else
- throw exception;
- }
- _1_0 = _this._tryDeclarationChildren$3$value($name, start, value);
- if (_1_0 != null)
- return _1_0;
- else {
- _this.expectStatementSeparator$0();
- return A.Declaration$($name, value, t1.spanFrom$1(start));
- }
- },
- _variableDeclarationOrInterpolation$0() {
- var t1, start, identifier, t2, buffer, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return _this.interpolatedIdentifier$0();
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- identifier = _this.identifier$0();
- if (t1.matches$1(".$")) {
- t1.readChar$0();
- return _this.variableDeclarationWithoutNamespace$2(identifier, start);
- } else {
- t2 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object));
- t2._contents = "" + identifier;
- if (_this._lookingAtInterpolatedIdentifierBody$0())
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- },
- _styleRule$2(buffer, start_) {
- var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {};
- _this._isUseAllowed = false;
- if (start_ == null) {
- t2 = _this.scanner;
- start = new A._SpanScannerState(t2, t2._string_scanner$_position);
- } else
- start = start_;
- interpolation = t1.interpolation = _this.styleRuleSelector$0();
- if (buffer != null) {
- buffer.addInterpolation$1(interpolation);
- t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start));
- } else
- t2 = interpolation;
- if (t2.contents.length === 0)
- _this.scanner.error$1(0, 'expected "}".');
- wasInStyleRule = _this._inStyleRule;
- _this._inStyleRule = true;
- return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule, start));
- },
- _styleRule$0() {
- return this._styleRule$2(null, null);
- },
- _propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) {
- var t2, nameBuffer, t3, $name, variableOrInterpolation, _0_0, value, _1_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this._lookingAtPotentialPropertyHack$0()) {
- t2 = new A.StringBuffer("");
- nameBuffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object));
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += t3;
- t3 = _this.rawText$1(_this.get$whitespace());
- t2._contents += t3;
- nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- $name = nameBuffer.interpolation$1(t1.spanFrom$1(start));
- } else if (!_this.get$plainCss()) {
- variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof A.VariableDeclaration)
- return variableOrInterpolation;
- else
- type$.Interpolation._as(variableOrInterpolation);
- $name = variableOrInterpolation;
- } else
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- _0_0 = _this._tryDeclarationChildren$2($name, start);
- if (_0_0 != null)
- return _0_0;
- value = _this._expression$0();
- _1_0 = _this._tryDeclarationChildren$3$value($name, start, value);
- if (_1_0 != null)
- return _1_0;
- else {
- _this.expectStatementSeparator$0();
- return A.Declaration$($name, value, t1.spanFrom$1(start));
- }
- },
- _tryDeclarationChildren$3$value($name, start, value) {
- var _this = this;
- if (!_this.lookingAtChildren$0())
- return null;
- if (_this.get$plainCss())
- _this.scanner.error$1(0, string$.Nested);
- return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__tryDeclarationChildren_closure($name, value));
- },
- _tryDeclarationChildren$2($name, start) {
- return this._tryDeclarationChildren$3$value($name, start, null);
- },
- _declarationChild$0() {
- return this.scanner.peekChar$0() === 64 ? this._declarationAtRule$0() : this._propertyOrVariableDeclaration$1$parseCustomProperties(false);
- },
- atRule$2$root(child, root) {
- var $name, wasUseAllowed, value, optional, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$2$name(64, "@-rule");
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- wasUseAllowed = _this._isUseAllowed;
- _this._isUseAllowed = false;
- switch ($name.get$asPlain()) {
- case "at-root":
- return _this._atRootRule$1(start);
- case "content":
- return _this._contentRule$1(start);
- case "debug":
- return _this._debugRule$1(start);
- case "each":
- return _this._eachRule$2(start, child);
- case "else":
- return _this._disallowedAtRule$1(start);
- case "error":
- return _this._errorRule$1(start);
- case "extend":
- if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock)
- _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
- value = _this.almostAnyValue$0();
- optional = t1.scanChar$1(33);
- if (optional) {
- _this.expectIdentifier$1("optional");
- _this.whitespace$0();
- }
- _this.expectStatementSeparator$1("@extend rule");
- return new A.ExtendRule(value, optional, t1.spanFrom$1(start));
- case "for":
- return _this._forRule$2(start, child);
- case "forward":
- _this._isUseAllowed = wasUseAllowed;
- if (!root)
- _this._disallowedAtRule$1(start);
- return _this._forwardRule$1(start);
- case "function":
- return _this._functionRule$1(start);
- case "if":
- return _this._ifRule$2(start, child);
- case "import":
- return _this._importRule$1(start);
- case "include":
- return _this._includeRule$1(start);
- case "media":
- return _this.mediaRule$1(start);
- case "mixin":
- return _this._mixinRule$1(start);
- case "-moz-document":
- return _this.mozDocumentRule$2(start, $name);
- case "return":
- return _this._disallowedAtRule$1(start);
- case "supports":
- return _this.supportsRule$1(start);
- case "use":
- _this._isUseAllowed = wasUseAllowed;
- if (!root)
- _this._disallowedAtRule$1(start);
- return _this._useRule$1(start);
- case "warn":
- return _this._warnRule$1(start);
- case "while":
- return _this._whileRule$2(start, child);
- default:
- return _this.unknownAtRule$2(start, $name);
- }
- },
- _declarationAtRule$0() {
- var _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- _0_0 = _this._plainAtRuleName$0();
- $label0$0: {
- if ("content" === _0_0) {
- t1 = _this._contentRule$1(start);
- break $label0$0;
- }
- if ("debug" === _0_0) {
- t1 = _this._debugRule$1(start);
- break $label0$0;
- }
- if ("each" === _0_0) {
- t1 = _this._eachRule$2(start, _this.get$_declarationChild());
- break $label0$0;
- }
- if ("else" === _0_0)
- _this._disallowedAtRule$1(start);
- if ("error" === _0_0) {
- t1 = _this._errorRule$1(start);
- break $label0$0;
- }
- if ("for" === _0_0) {
- t1 = _this._forRule$2(start, _this.get$_declarationChild());
- break $label0$0;
- }
- if ("if" === _0_0) {
- t1 = _this._ifRule$2(start, _this.get$_declarationChild());
- break $label0$0;
- }
- if ("include" === _0_0) {
- t1 = _this._includeRule$1(start);
- break $label0$0;
- }
- if ("warn" === _0_0) {
- t1 = _this._warnRule$1(start);
- break $label0$0;
- }
- if ("while" === _0_0) {
- t1 = _this._whileRule$2(start, _this.get$_declarationChild());
- break $label0$0;
- }
- t1 = _this._disallowedAtRule$1(start);
- }
- return t1;
- },
- _functionChild$0() {
- var state, variableDeclarationError, stackTrace, statement, t2, exception, t3, start, _0_0, value, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() !== 64) {
- state = new A._SpanScannerState(t1, t1._string_scanner$_position);
- try {
- t2 = _this._variableDeclarationWithNamespace$0();
- return t2;
- } catch (exception) {
- t2 = A.unwrapException(exception);
- t3 = type$.SourceSpanFormatException;
- if (t3._is(t2)) {
- variableDeclarationError = t2;
- stackTrace = A.getTraceFromException(exception);
- t1.set$state(state);
- statement = null;
- try {
- statement = _this._declarationOrStyleRule$0();
- } catch (exception) {
- if (t3._is(A.unwrapException(exception)))
- throw A.wrapException(variableDeclarationError);
- else
- throw exception;
- }
- t2 = statement instanceof A.StyleRule ? "style rules" : "declarations";
- _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace);
- } else
- throw exception;
- }
- }
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _0_0 = _this._plainAtRuleName$0();
- $label0$0: {
- if ("debug" === _0_0) {
- t1 = _this._debugRule$1(start);
- break $label0$0;
- }
- if ("each" === _0_0) {
- t1 = _this._eachRule$2(start, _this.get$_functionChild());
- break $label0$0;
- }
- if ("else" === _0_0)
- _this._disallowedAtRule$1(start);
- if ("error" === _0_0) {
- t1 = _this._errorRule$1(start);
- break $label0$0;
- }
- if ("for" === _0_0) {
- t1 = _this._forRule$2(start, _this.get$_functionChild());
- break $label0$0;
- }
- if ("if" === _0_0) {
- t1 = _this._ifRule$2(start, _this.get$_functionChild());
- break $label0$0;
- }
- if ("return" === _0_0) {
- value = _this._expression$0();
- _this.expectStatementSeparator$1("@return rule");
- t1 = new A.ReturnRule(value, t1.spanFrom$1(start));
- break $label0$0;
- }
- if ("warn" === _0_0) {
- t1 = _this._warnRule$1(start);
- break $label0$0;
- }
- if ("while" === _0_0) {
- t1 = _this._whileRule$2(start, _this.get$_functionChild());
- break $label0$0;
- }
- t1 = _this._disallowedAtRule$1(start);
- }
- return t1;
- },
- _plainAtRuleName$0() {
- this.scanner.expectChar$2$name(64, "@-rule");
- var $name = this.identifier$0();
- this.whitespace$0();
- return $name;
- },
- _atRootRule$1(start) {
- var t2, t3, t4, buffer, t5, query, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40) {
- t2 = t1._string_scanner$_position;
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer(t3, t4);
- t1.expectChar$1(40);
- t5 = A.Primitives_stringFromCharCode(40);
- t3._contents += t5;
- _this.whitespace$0();
- t5 = _this._expression$0();
- buffer._flushText$0();
- t4.push(t5);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t5 = A.Primitives_stringFromCharCode(58);
- t3._contents += t5;
- t5 = A.Primitives_stringFromCharCode(32);
- t3._contents += t5;
- t5 = _this._expression$0();
- buffer._flushText$0();
- t4.push(t5);
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t4 = A.Primitives_stringFromCharCode(41);
- t3._contents += t4;
- query = buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- _this.whitespace$0();
- return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure(query));
- } else if (_this.lookingAtChildren$0())
- return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure0());
- else
- return A.AtRootRule$(A._setArrayType([_this._styleRule$0()], type$.JSArray_Statement), t1.spanFrom$1(start), null);
- },
- _contentRule$1(start) {
- var t1, beforeWhitespace, $arguments, t2, _this = this;
- if (!_this._stylesheet$_inMixin)
- _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
- t1 = _this.scanner;
- beforeWhitespace = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- _this.whitespace$0();
- if (t1.peekChar$0() === 40) {
- $arguments = _this._argumentInvocation$1$mixin(true);
- _this.whitespace$0();
- } else {
- t2 = beforeWhitespace.offset;
- $arguments = A.ArgumentInvocation$empty(A._FileSpan$(beforeWhitespace.file, t2, t2));
- }
- _this.expectStatementSeparator$1("@content rule");
- return new A.ContentRule($arguments, t1.spanFrom$1(start));
- },
- _debugRule$1(start) {
- var value = this._expression$0();
- this.expectStatementSeparator$1("@debug rule");
- return new A.DebugRule(value, this.scanner.spanFrom$1(start));
- },
- _eachRule$2(start, child) {
- var variables, t1, _this = this,
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String);
- _this.whitespace$0();
- for (t1 = _this.scanner; t1.scanChar$1(44);) {
- _this.whitespace$0();
- t1.expectChar$1(36);
- variables.push(_this.identifier$1$normalize(true));
- _this.whitespace$0();
- }
- _this.expectIdentifier$1("in");
- _this.whitespace$0();
- return _this._withChildren$3(child, start, new A.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this._expression$0()));
- },
- _errorRule$1(start) {
- var value = this._expression$0();
- this.expectStatementSeparator$1("@error rule");
- return new A.ErrorRule(value, this.scanner.spanFrom$1(start));
- },
- _functionRule$1(start) {
- var t1, t2, $name, $arguments, _0_0, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- $name = _this.identifier$0();
- if (B.JSString_methods.startsWith$1($name, "--"))
- A.WarnForDeprecation_warnForDeprecation(_this.logger, B.Deprecation_HJ0, string$.Sassx20_fm, t1.spanFrom$1(new A._SpanScannerState(t1, t2)), null);
- _this.whitespace$0();
- $arguments = _this._argumentDeclaration$0();
- if (_this._stylesheet$_inMixin || _this._inContentBlock)
- _this.error$2(0, string$.Mixinscf, t1.spanFrom$1(start));
- else if (_this._inControlDirective)
- _this.error$2(0, string$.Functi, t1.spanFrom$1(start));
- _0_0 = A.unvendor($name);
- if ("calc" === _0_0 || "element" === _0_0 || "expression" === _0_0 || "url" === _0_0 || "and" === _0_0 || "or" === _0_0 || "not" === _0_0 || "clamp" === _0_0)
- _this.error$2(0, "Invalid function name.", t1.spanFrom$1(start));
- _this.whitespace$0();
- return _this._withChildren$3(_this.get$_functionChild(), start, new A.StylesheetParser__functionRule_closure($name, $arguments, precedingComment));
- },
- _forRule$2(start, child) {
- var variable, from, _this = this, t1 = {},
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- variable = _this.variableName$0();
- _this.whitespace$0();
- _this.expectIdentifier$1("from");
- _this.whitespace$0();
- t1.exclusive = null;
- from = _this._expression$1$until(new A.StylesheetParser__forRule_closure(t1, _this));
- if (t1.exclusive == null)
- _this.scanner.error$1(0, 'Expected "to" or "through".');
- _this.whitespace$0();
- return _this._withChildren$3(child, start, new A.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this._expression$0()));
- },
- _forwardRule$1(start) {
- var prefix, _0_0, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, _1_0, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
- url = _this._urlString$0();
- _this.whitespace$0();
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- prefix = _this.identifier$1$normalize(true);
- _this.scanner.expectChar$1(42);
- _this.whitespace$0();
- } else
- prefix = _null;
- if (_this.scanIdentifier$1("show")) {
- _0_0 = _this._memberList$0();
- shownMixinsAndFunctions = _0_0._0;
- shownVariables = _0_0._1;
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- } else {
- if (_this.scanIdentifier$1("hide")) {
- _1_0 = _this._memberList$0();
- hiddenMixinsAndFunctions = _1_0._0;
- hiddenVariables = _1_0._1;
- } else {
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- }
- shownVariables = _null;
- shownMixinsAndFunctions = shownVariables;
- }
- configuration = _this._stylesheet$_configuration$1$allowGuarded(true);
- _this.whitespace$0();
- _this.expectStatementSeparator$1("@forward rule");
- span = _this.scanner.spanFrom$1(start);
- if (!_this._isUseAllowed)
- _this.error$2(0, string$.x40forwa, span);
- if (shownMixinsAndFunctions != null) {
- shownVariables.toString;
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
- t4 = configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
- return new A.ForwardRule(url, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), _null, _null, prefix, t4, span);
- } else if (hiddenMixinsAndFunctions != null) {
- hiddenVariables.toString;
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
- t4 = configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
- return new A.ForwardRule(url, _null, _null, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), prefix, t4, span);
- } else
- return new A.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
- },
- _memberList$0() {
- var _this = this,
- t1 = type$.String,
- identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1),
- variables = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t1 = _this.scanner;
- do {
- _this.whitespace$0();
- _this.withErrorMessage$2(string$.Expect, new A.StylesheetParser__memberList_closure(_this, variables, identifiers));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- return new A._Record_2(identifiers, variables);
- },
- _ifRule$2(start, child) {
- var condition, children, clauses, lastClause, span, _this = this,
- ifIndentation = _this.get$currentIndentation(),
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- condition = _this._expression$0();
- children = _this.children$1(0, child);
- _this.whitespaceWithoutComments$0();
- clauses = A._setArrayType([A.IfClause$(condition, children)], type$.JSArray_IfClause);
- while (true) {
- if (!_this.scanElse$1(ifIndentation)) {
- lastClause = null;
- break;
- }
- _this.whitespace$0();
- if (_this.scanIdentifier$1("if")) {
- _this.whitespace$0();
- clauses.push(A.IfClause$(_this._expression$0(), _this.children$1(0, child)));
- } else {
- lastClause = A.ElseClause$(_this.children$1(0, child));
- break;
- }
- }
- _this._inControlDirective = wasInControlDirective;
- span = _this.scanner.spanFrom$1(start);
- _this.whitespaceWithoutComments$0();
- return new A.IfRule(A.List_List$unmodifiable(clauses, type$.IfClause), lastClause, span);
- },
- _importRule$1(start) {
- var argument, t3, _this = this,
- imports = A._setArrayType([], type$.JSArray_Import),
- t1 = _this.scanner,
- t2 = _this.logger;
- do {
- _this.whitespace$0();
- argument = _this.importArgument$0();
- t3 = argument instanceof A.DynamicImport;
- if (t3)
- A.WarnForDeprecation_warnForDeprecation(t2, B.Deprecation_import_null_true_import, string$.Sassx20_i, argument.span, null);
- if ((_this._inControlDirective || _this._stylesheet$_inMixin) && t3)
- _this._disallowedAtRule$1(start);
- imports.push(argument);
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- _this.expectStatementSeparator$1("@import rule");
- t1 = t1.spanFrom$1(start);
- return new A.ImportRule(A.List_List$unmodifiable(imports, type$.Import), t1);
- },
- importArgument$0() {
- var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- _0_0 = t1.peekChar$0();
- if (117 === _0_0 || 85 === _0_0) {
- url = _this.dynamicUrl$0();
- _this.whitespace$0();
- modifiers = _this.tryImportModifiers$0();
- return new A.StaticImport(A.Interpolation$(A._setArrayType([url], type$.JSArray_Object), t1.spanFrom$1(start)), modifiers, t1.spanFrom$1(start));
- }
- url = _this.string$0();
- urlSpan = t1.spanFrom$1(start);
- _this.whitespace$0();
- modifiers = _this.tryImportModifiers$0();
- if (_this.isPlainImportUrl$1(url) || modifiers != null) {
- t2 = urlSpan;
- return new A.StaticImport(A.Interpolation$(A._setArrayType([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(start));
- } else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new A.DynamicImport(t1, urlSpan);
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- stackTrace = A.getTraceFromException(exception);
- _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace);
- } else
- throw exception;
- }
- },
- parseImportUrl$1(url) {
- var t1 = $.$get$windows();
- if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url))
- return t1.toUri$1(url).toString$0(0);
- A.Uri_parse(url);
- return url;
- },
- isPlainImportUrl$1(url) {
- var _0_0, t1;
- if (url.length < 5)
- return false;
- if (B.JSString_methods.endsWith$1(url, ".css"))
- return true;
- _0_0 = url.charCodeAt(0);
- $label0$0: {
- if (47 === _0_0) {
- t1 = url.charCodeAt(1) === 47;
- break $label0$0;
- }
- if (104 === _0_0) {
- t1 = B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://");
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- tryImportModifiers$0() {
- var t1, start, t2, t3, buffer, t4, identifier, $name, query, t5, endPosition, result, _this = this;
- if (!_this._lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40)
- return null;
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t2 = new A.StringBuffer("");
- t3 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer(t2, t3);
- for (; true;)
- if (_this._lookingAtInterpolatedIdentifier$0()) {
- if (!(t3.length === 0 && t2._contents.length === 0)) {
- t4 = A.Primitives_stringFromCharCode(32);
- t2._contents += t4;
- }
- identifier = _this.interpolatedIdentifier$0();
- buffer.addInterpolation$1(identifier);
- t4 = identifier.get$asPlain();
- $name = t4 == null ? null : t4.toLowerCase();
- if ($name !== "and" && t1.scanChar$1(40)) {
- if ($name === "supports") {
- query = _this._importSupportsQuery$0();
- t4 = !(query instanceof A.SupportsDeclaration);
- if (t4) {
- t5 = A.Primitives_stringFromCharCode(40);
- t2._contents += t5;
- }
- buffer._flushText$0();
- t3.push(new A.SupportsExpression(query));
- if (t4) {
- t4 = A.Primitives_stringFromCharCode(41);
- t2._contents += t4;
- }
- } else {
- t4 = A.Primitives_stringFromCharCode(40);
- t2._contents += t4;
- buffer.addInterpolation$1(_this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true));
- t4 = A.Primitives_stringFromCharCode(41);
- t2._contents += t4;
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- } else {
- _this.whitespace$0();
- if (t1.scanChar$1(44)) {
- t2._contents += ", ";
- buffer.addInterpolation$1(_this._mediaQueryList$0());
- endPosition = t1._string_scanner$_position;
- t4 = t1._sourceFile;
- t5 = start.position;
- t1 = new A._FileSpan(t4, t5, endPosition);
- t1._FileSpan$3(t4, t5, endPosition);
- t5 = type$.Object;
- t4 = A.List_List$of(t3, true, t5);
- t3 = t2._contents;
- if (t3.length !== 0)
- t4.push(t3.charCodeAt(0) == 0 ? t3 : t3);
- result = A.List_List$from(t4, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t2 = new A.Interpolation(result, t1);
- t2.Interpolation$2(t4, t1);
- return t2;
- }
- }
- } else if (t1.peekChar$0() === 40) {
- if (!(t3.length === 0 && t2._contents.length === 0)) {
- t4 = A.Primitives_stringFromCharCode(32);
- t2._contents += t4;
- }
- buffer.addInterpolation$1(_this._mediaQueryList$0());
- endPosition = t1._string_scanner$_position;
- t1 = t1._sourceFile;
- t4 = start.position;
- t5 = new A._FileSpan(t1, t4, endPosition);
- t5._FileSpan$3(t1, t4, endPosition);
- t4 = type$.Object;
- t3 = A.List_List$of(t3, true, t4);
- t1 = t2._contents;
- if (t1.length !== 0)
- t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
- result = A.List_List$from(t3, false, t4);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1 = new A.Interpolation(result, t5);
- t1.Interpolation$2(t3, t5);
- return t1;
- } else {
- endPosition = t1._string_scanner$_position;
- t1 = t1._sourceFile;
- t4 = start.position;
- t5 = new A._FileSpan(t1, t4, endPosition);
- t5._FileSpan$3(t1, t4, endPosition);
- t4 = type$.Object;
- t3 = A.List_List$of(t3, true, t4);
- t1 = t2._contents;
- if (t1.length !== 0)
- t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
- result = A.List_List$from(t3, false, t4);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1 = new A.Interpolation(result, t5);
- t1.Interpolation$2(t3, t5);
- return t1;
- }
- },
- _importSupportsQuery$0() {
- var t1, t2, _0_0, $name, _this = this;
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- } else {
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40)
- return _this._supportsCondition$0();
- else {
- _0_0 = _this._tryImportSupportsFunction$0();
- if (_0_0 != null)
- return _0_0;
- t2 = t1._string_scanner$_position;
- $name = _this._expression$0();
- t1.expectChar$1(58);
- return _this._supportsDeclarationValue$2($name, new A._SpanScannerState(t1, t2));
- }
- }
- },
- _tryImportSupportsFunction$0() {
- var t1, start, $name, value, _this = this;
- if (!_this._lookingAtInterpolatedIdentifier$0())
- return null;
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- $name = _this.interpolatedIdentifier$0();
- if (!t1.scanChar$1(40)) {
- t1.set$state(start);
- return null;
- }
- value = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
- t1.expectChar$1(41);
- return new A.SupportsFunction($name, value, t1.spanFrom$1(start));
- },
- _includeRule$1(start) {
- var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, span, _this = this, _null = null,
- $name = _this.identifier$0(),
- t1 = _this.scanner;
- if (t1.scanChar$1(46)) {
- name0 = _this._publicIdentifier$0();
- namespace = $name;
- $name = name0;
- } else
- namespace = _null;
- _this.whitespace$0();
- if (t1.peekChar$0() === 40)
- $arguments = _this._argumentInvocation$1$mixin(true);
- else {
- t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = A.ArgumentInvocation$empty(A._FileSpan$(t2.file, t3, t3));
- }
- _this.whitespace$0();
- if (_this.scanIdentifier$1("using")) {
- _this.whitespace$0();
- contentArguments = _this._argumentDeclaration$0();
- _this.whitespace$0();
- } else
- contentArguments = _null;
- t2 = contentArguments == null;
- if (!t2 || _this.lookingAtChildren$0()) {
- if (t2) {
- t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- contentArguments_ = new A.ArgumentDeclaration(B.List_empty11, _null, A._FileSpan$(t2.file, t3, t3));
- } else
- contentArguments_ = contentArguments;
- wasInContentBlock = _this._inContentBlock;
- _this._inContentBlock = true;
- $content = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__includeRule_closure(contentArguments_));
- _this._inContentBlock = wasInContentBlock;
- } else {
- _this.expectStatementSeparator$0();
- $content = _null;
- }
- t1 = t1.spanFrom$2(start, start);
- t2 = $content == null ? $arguments : $content;
- span = t1.expand$1(0, t2.get$span(t2));
- return new A.IncludeRule(namespace, A.stringReplaceAllUnchecked($name, "_", "-"), $name, $arguments, $content, span);
- },
- mediaRule$1(start) {
- return this._withChildren$3(this.get$_statement(), start, new A.StylesheetParser_mediaRule_closure(this._mediaQueryList$0()));
- },
- _mixinRule$1(start) {
- var t1, t2, $name, $arguments, t3, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- $name = _this.identifier$0();
- if (B.JSString_methods.startsWith$1($name, "--"))
- A.WarnForDeprecation_warnForDeprecation(_this.logger, B.Deprecation_HJ0, string$.Sassx20_m, t1.spanFrom$1(new A._SpanScannerState(t1, t2)), null);
- _this.whitespace$0();
- if (t1.peekChar$0() === 40)
- $arguments = _this._argumentDeclaration$0();
- else {
- t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = new A.ArgumentDeclaration(B.List_empty11, null, A._FileSpan$(t2.file, t3, t3));
- }
- if (_this._stylesheet$_inMixin || _this._inContentBlock)
- _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
- else if (_this._inControlDirective)
- _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
- _this.whitespace$0();
- _this._stylesheet$_inMixin = true;
- return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment));
- },
- mozDocumentRule$2(start, $name) {
- var t5, t6, identifier, _0_0, argument, trailing, endPosition, t7, t8, start0, end, _this = this, _box_0 = {},
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- t4 = A._setArrayType([], type$.JSArray_Object),
- buffer = new A.InterpolationBuffer(t3, t4);
- _box_0.needsDeprecationWarning = false;
- for (t5 = _this.get$whitespace(); true;) {
- if (t1.peekChar$0() === 35) {
- t6 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t6);
- _box_0.needsDeprecationWarning = true;
- } else {
- t6 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- $label0$0: {
- if ("url" === identifier || "url-prefix" === identifier || "domain" === identifier) {
- _0_0 = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t6), identifier);
- if (_0_0 != null)
- buffer.addInterpolation$1(_0_0);
- else {
- t1.expectChar$1(40);
- _this.whitespace$0();
- argument = _this.interpolatedString$0();
- t1.expectChar$1(41);
- t3._contents += identifier;
- t6 = A.Primitives_stringFromCharCode(40);
- t3._contents += t6;
- buffer.addInterpolation$1(argument.asInterpolation$0());
- t6 = A.Primitives_stringFromCharCode(41);
- t3._contents += t6;
- }
- t6 = t3._contents;
- trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
- if (!B.JSString_methods.endsWith$1(trailing, "url-prefix()") && !B.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !B.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
- _box_0.needsDeprecationWarning = true;
- break $label0$0;
- }
- if ("regexp" === identifier) {
- t3._contents += "regexp(";
- t1.expectChar$1(40);
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- t1.expectChar$1(41);
- t6 = A.Primitives_stringFromCharCode(41);
- t3._contents += t6;
- _box_0.needsDeprecationWarning = true;
- break $label0$0;
- }
- endPosition = t1._string_scanner$_position;
- t7 = t1._sourceFile;
- t8 = new A._FileSpan(t7, t6, endPosition);
- t8._FileSpan$3(t7, t6, endPosition);
- _this.error$2(0, "Invalid function name.", t8);
- }
- }
- _this.whitespace$0();
- if (!t1.scanChar$1(44))
- break;
- t6 = A.Primitives_stringFromCharCode(44);
- t3._contents += t6;
- start0 = t1._string_scanner$_position;
- t5.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t1.string, start0, end);
- }
- return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_mozDocumentRule_closure(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))));
- },
- supportsRule$1(start) {
- var _this = this,
- condition = _this._supportsCondition$0();
- _this.whitespace$0();
- return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_supportsRule_closure(condition));
- },
- _useRule$1(start) {
- var namespace, configuration, span, t1, _this = this,
- url = _this._urlString$0();
- _this.whitespace$0();
- namespace = _this._useNamespace$2(url, start);
- _this.whitespace$0();
- configuration = _this._stylesheet$_configuration$0();
- _this.whitespace$0();
- span = _this.scanner.spanFrom$1(start);
- if (!_this._isUseAllowed)
- _this.error$2(0, string$.x40use_r, span);
- _this.expectStatementSeparator$1("@use rule");
- t1 = new A.UseRule(url, namespace, configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
- t1.UseRule$4$configuration(url, namespace, span, configuration);
- return t1;
- },
- _useNamespace$2(url, start) {
- var namespace, basename, dot, t1, exception, _this = this;
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
- }
- basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments());
- dot = B.JSString_methods.indexOf$1(basename, ".");
- t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
- namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
- try {
- t1 = A.SpanScanner$(namespace, null);
- t1 = new A.Parser(t1, _this.logger, null)._parseIdentifier$0();
- return t1;
- } catch (exception) {
- if (type$.SassFormatException._is(A.unwrapException(exception)))
- _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start));
- else
- throw exception;
- }
- },
- _stylesheet$_configuration$1$allowGuarded(allowGuarded) {
- var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this;
- if (!_this.scanIdentifier$1("with"))
- return null;
- variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable);
- _this.whitespace$0();
- t1 = _this.scanner;
- t1.expectChar$1(40);
- for (; true;) {
- _this.whitespace$0();
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- expression = _this.expressionUntilComma$0();
- t3 = t1._string_scanner$_position;
- if (allowGuarded && t1.scanChar$1(33)) {
- guarded = _this.identifier$0() === "default";
- if (guarded)
- _this.whitespace$0();
- else {
- endPosition = t1._string_scanner$_position;
- t4 = t1._sourceFile;
- t5 = new A._FileSpan(t4, t3, endPosition);
- t5._FileSpan$3(t4, t3, endPosition);
- _this.error$2(0, "Invalid flag name.", t5);
- }
- } else
- guarded = false;
- endPosition = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- span = new A._FileSpan(t3, t2, endPosition);
- span._FileSpan$3(t3, t2, endPosition);
- if (variableNames.contains$1(0, $name))
- _this.error$2(0, string$.The_sa, span);
- variableNames.add$1(0, $name);
- configuration.push(new A.ConfiguredVariable($name, expression, guarded, span));
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- if (!_this._lookingAtExpression$0())
- break;
- }
- t1.expectChar$1(41);
- return configuration;
- },
- _stylesheet$_configuration$0() {
- return this._stylesheet$_configuration$1$allowGuarded(false);
- },
- _warnRule$1(start) {
- var value = this._expression$0();
- this.expectStatementSeparator$1("@warn rule");
- return new A.WarnRule(value, this.scanner.spanFrom$1(start));
- },
- _whileRule$2(start, child) {
- var _this = this,
- wasInControlDirective = _this._inControlDirective;
- _this._inControlDirective = true;
- return _this._withChildren$3(child, start, new A.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this._expression$0()));
- },
- unknownAtRule$2(start, $name) {
- var t2, t3, rule, _this = this, t1 = {},
- wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule;
- _this._stylesheet$_inUnknownAtRule = true;
- t1.value = null;
- t2 = _this.scanner;
- t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this._interpolatedDeclarationValue$1$allowOpenBrace(false) : null;
- if (_this.lookingAtChildren$0())
- rule = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_unknownAtRule_closure(t1, $name));
- else {
- _this.expectStatementSeparator$0();
- rule = A.AtRule$($name, t2.spanFrom$1(start), null, t3);
- }
- _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule;
- return rule;
- },
- _disallowedAtRule$1(start) {
- this._interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(true, false);
- this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
- },
- _argumentDeclaration$0() {
- var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- $arguments = A._setArrayType([], type$.JSArray_Argument);
- named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- while (true) {
- if (!(t1.peekChar$0() === 36)) {
- restArgument = null;
- break;
- }
- t3 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- defaultValue = _this.expressionUntilComma$0();
- } else {
- if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- _this.whitespace$0();
- restArgument = $name;
- break;
- }
- defaultValue = null;
- }
- endPosition = t1._string_scanner$_position;
- t4 = t1._sourceFile;
- t5 = new A._FileSpan(t4, t3, endPosition);
- t5._FileSpan$3(t4, t3, endPosition);
- $arguments.push(new A.Argument($name, defaultValue, t5));
- if (!named.add$1(0, $name))
- _this.error$2(0, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span);
- if (!t1.scanChar$1(44)) {
- restArgument = null;
- break;
- }
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- return new A.ArgumentDeclaration(A.List_List$unmodifiable($arguments, type$.Argument), restArgument, t1);
- },
- _argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) {
- var positional, t3, t4, named, keywordRest, t5, rest, expression, t6, t7, result, _this = this, _null = null,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- positional = A._setArrayType([], type$.JSArray_Expression);
- t3 = type$.String;
- t4 = type$.Expression;
- named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
- t5 = !mixin;
- rest = _null;
- while (true) {
- if (!_this._lookingAtExpression$0()) {
- keywordRest = _null;
- break;
- }
- expression = _this.expressionUntilComma$1$singleEquals(t5);
- _this.whitespace$0();
- if (expression instanceof A.VariableExpression && t1.scanChar$1(58)) {
- _this.whitespace$0();
- t6 = expression.name;
- if (named.containsKey$1(t6))
- _this.error$2(0, "Duplicate argument.", expression.span);
- named.$indexSet(0, t6, _this.expressionUntilComma$1$singleEquals(t5));
- } else if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- if (rest != null) {
- _this.whitespace$0();
- keywordRest = expression;
- break;
- }
- rest = expression;
- } else if (named.__js_helper$_length !== 0)
- _this.error$2(0, string$.Positi, expression.get$span(expression));
- else
- positional.push(expression);
- _this.whitespace$0();
- if (!t1.scanChar$1(44)) {
- keywordRest = _null;
- break;
- }
- _this.whitespace$0();
- if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) {
- t5 = t1._sourceFile;
- t6 = t1._string_scanner$_position;
- new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6);
- t7 = new A._FileSpan(t5, t6, t6);
- t7._FileSpan$3(t5, t6, t6);
- t6 = A._setArrayType([""], type$.JSArray_Object);
- result = A.List_List$from(t6, false, type$.Object);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t5 = new A.Interpolation(result, t7);
- t5.Interpolation$2(t6, t7);
- positional.push(new A.StringExpression(t5, false));
- keywordRest = _null;
- break;
- }
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- return new A.ArgumentInvocation(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
- },
- _argumentInvocation$0() {
- return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, false);
- },
- _argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) {
- return this._argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false);
- },
- _argumentInvocation$1$mixin(mixin) {
- return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin);
- },
- _expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) {
- var t2, beforeBracket, start, wasInExpression, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, _3_0, _1_0, t4, _3_28, _2_0, _3_32, _3_40, commaExpressions, spaceExpressions, singleExpression, _this = this,
- _s20_ = "Expected expression.",
- _box_0 = {},
- t1 = until != null;
- if (t1 && until.call$0())
- _this.scanner.error$1(0, _s20_);
- if (bracketList) {
- t2 = _this.scanner;
- beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position);
- t2.expectChar$1(91);
- _this.whitespace$0();
- if (t2.scanChar$1(93)) {
- t1 = A._setArrayType([], type$.JSArray_Expression);
- t2 = t2.spanFrom$1(beforeBracket);
- return new A.ListExpression(A.List_List$unmodifiable(t1, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2);
- }
- } else
- beforeBracket = null;
- t2 = _this.scanner;
- start = new A._SpanScannerState(t2, t2._string_scanner$_position);
- wasInExpression = _this._inExpression;
- wasInParentheses = _this._inParentheses;
- _this._inExpression = true;
- _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null;
- _box_0.allowSlash = true;
- _box_0.singleExpression_ = _this._singleExpression$0();
- resetState = new A.StylesheetParser__expression_resetState(_box_0, _this, start);
- resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation(_box_0, _this);
- resolveOperations = new A.StylesheetParser__expression_resolveOperations(_box_0, resolveOneOperation);
- addSingleExpression = new A.StylesheetParser__expression_addSingleExpression(_box_0, _this, resetState, resolveOperations);
- addOperator = new A.StylesheetParser__expression_addOperator(_box_0, _this, resolveOneOperation);
- resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions(_box_0, _this, resolveOperations);
- for (t3 = type$.JSArray_Expression; true;) {
- _this.whitespace$0();
- if (t1 && until.call$0())
- break;
- _3_0 = t2.peekChar$0();
- if (_3_0 == null)
- break;
- if (40 === _3_0) {
- addSingleExpression.call$1(_this.parentheses$0());
- continue;
- }
- if (91 === _3_0) {
- addSingleExpression.call$1(_this._expression$1$bracketList(true));
- continue;
- }
- if (36 === _3_0) {
- addSingleExpression.call$1(_this._variable$0());
- continue;
- }
- if (38 === _3_0) {
- addSingleExpression.call$1(_this._selector$0());
- continue;
- }
- if (39 === _3_0 || 34 === _3_0) {
- addSingleExpression.call$1(_this.interpolatedString$0());
- continue;
- }
- if (35 === _3_0) {
- addSingleExpression.call$1(_this._hashExpression$0());
- continue;
- }
- if (61 === _3_0) {
- t2.readChar$0();
- if (singleEquals && t2.peekChar$0() !== 61)
- addOperator.call$1(B.BinaryOperator_wdM);
- else {
- t2.expectChar$1(61);
- addOperator.call$1(B.BinaryOperator_g8k);
- }
- continue;
- }
- if (33 === _3_0) {
- $label0$1: {
- _1_0 = t2.peekChar$1(1);
- if (61 === _1_0) {
- t2.readChar$0();
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_icU);
- break $label0$1;
- }
- if (_1_0 != null)
- if (105 !== _1_0)
- if (73 !== _1_0)
- t4 = _1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12;
- else
- t4 = true;
- else
- t4 = true;
- else
- t4 = true;
- if (t4) {
- addSingleExpression.call$1(_this._importantExpression$0());
- break $label0$1;
- }
- break;
- }
- continue;
- }
- if (60 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_SPQ : B.BinaryOperator_miq);
- continue;
- }
- if (62 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_oEm : B.BinaryOperator_bEa);
- continue;
- }
- if (42 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_2No);
- continue;
- }
- _3_28 = 43 === _3_0;
- if (_3_28 && _box_0.singleExpression_ == null) {
- addSingleExpression.call$1(_this._unaryOperation$0());
- continue;
- }
- if (_3_28) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_u15);
- continue;
- }
- if (45 === _3_0) {
- _2_0 = t2.peekChar$1(1);
- if (A._isInt(_2_0) && _2_0 >= 48 && _2_0 <= 57 || 46 === _2_0)
- if (_box_0.singleExpression_ != null) {
- t4 = t2.peekChar$1(-1);
- t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
- } else
- t4 = true;
- else
- t4 = false;
- if (t4)
- addSingleExpression.call$1(_this._number$0());
- else if (_this._lookingAtInterpolatedIdentifier$0())
- addSingleExpression.call$1(_this.identifierLike$0());
- else if (_box_0.singleExpression_ == null)
- addSingleExpression.call$1(_this._unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_SjO);
- }
- continue;
- }
- _3_32 = 47 === _3_0;
- if (_3_32 && _box_0.singleExpression_ == null) {
- addSingleExpression.call$1(_this._unaryOperation$0());
- continue;
- }
- if (_3_32) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_U77);
- continue;
- }
- if (37 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_KNx);
- continue;
- }
- if (_3_0 >= 48 && _3_0 <= 57) {
- addSingleExpression.call$1(_this._number$0());
- continue;
- }
- _3_40 = 46 === _3_0;
- if (_3_40 && t2.peekChar$1(1) === 46)
- break;
- if (_3_40) {
- addSingleExpression.call$1(_this._number$0());
- continue;
- }
- if (97 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("and")) {
- addOperator.call$1(B.BinaryOperator_eDt);
- continue;
- }
- if (111 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("or")) {
- addOperator.call$1(B.BinaryOperator_qNM);
- continue;
- }
- if ((117 === _3_0 || 85 === _3_0) && t2.peekChar$1(1) === 43) {
- addSingleExpression.call$1(_this._unicodeRange$0());
- continue;
- }
- if (!(_3_0 >= 97 && _3_0 <= 122))
- t4 = _3_0 >= 65 && _3_0 <= 90 || 95 === _3_0 || 92 === _3_0 || _3_0 >= 128;
- else
- t4 = true;
- if (t4) {
- addSingleExpression.call$1(_this.identifierLike$0());
- continue;
- }
- if (44 === _3_0) {
- if (_this._inParentheses) {
- _this._inParentheses = false;
- if (_box_0.allowSlash) {
- resetState.call$0();
- continue;
- }
- }
- commaExpressions = _box_0.commaExpressions_;
- if (commaExpressions == null)
- commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3);
- if (_box_0.singleExpression_ == null)
- t2.error$1(0, _s20_);
- resolveSpaceExpressions.call$0();
- t4 = _box_0.singleExpression_;
- t4.toString;
- commaExpressions.push(t4);
- t2.readChar$0();
- _box_0.allowSlash = true;
- _box_0.singleExpression_ = null;
- continue;
- }
- break;
- }
- if (bracketList)
- t2.expectChar$1(93);
- commaExpressions = _box_0.commaExpressions_;
- spaceExpressions = _box_0.spaceExpressions_;
- if (commaExpressions != null) {
- resolveSpaceExpressions.call$0();
- _this._inParentheses = wasInParentheses;
- singleExpression = _box_0.singleExpression_;
- if (singleExpression != null)
- commaExpressions.push(singleExpression);
- _this._inExpression = wasInExpression;
- t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket);
- return new A.ListExpression(A.List_List$unmodifiable(commaExpressions, type$.Expression), B.ListSeparator_ECn, bracketList, t1);
- } else if (bracketList && spaceExpressions != null) {
- resolveOperations.call$0();
- _this._inExpression = wasInExpression;
- t1 = _box_0.singleExpression_;
- t1.toString;
- spaceExpressions.push(t1);
- beforeBracket.toString;
- t2 = t2.spanFrom$1(beforeBracket);
- return new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_nbm, true, t2);
- } else {
- resolveSpaceExpressions.call$0();
- if (bracketList) {
- t1 = _box_0.singleExpression_;
- t1.toString;
- t3 = A._setArrayType([t1], t3);
- beforeBracket.toString;
- t2 = t2.spanFrom$1(beforeBracket);
- _box_0.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(t3, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2);
- }
- _this._inExpression = wasInExpression;
- t1 = _box_0.singleExpression_;
- t1.toString;
- return t1;
- }
- },
- _expression$0() {
- return this._expression$3$bracketList$singleEquals$until(false, false, null);
- },
- _expression$2$singleEquals$until(singleEquals, until) {
- return this._expression$3$bracketList$singleEquals$until(false, singleEquals, until);
- },
- _expression$1$bracketList(bracketList) {
- return this._expression$3$bracketList$singleEquals$until(bracketList, false, null);
- },
- _expression$1$until(until) {
- return this._expression$3$bracketList$singleEquals$until(false, false, until);
- },
- expressionUntilComma$1$singleEquals(singleEquals) {
- return this._expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure(this));
- },
- expressionUntilComma$0() {
- return this.expressionUntilComma$1$singleEquals(false);
- },
- _isSlashOperand$1(expression) {
- var t1;
- if (!(expression instanceof A.NumberExpression))
- if (!(expression instanceof A.FunctionExpression))
- t1 = expression instanceof A.BinaryOperationExpression && expression.allowsSlash;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- _singleExpression$0() {
- var next, t2, _this = this,
- _s20_ = "Expected expression.",
- t1 = _this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (_0_0 == null)
- t1.error$1(0, _s20_);
- if (40 === _0_0) {
- t1 = _this.parentheses$0();
- break $label0$0;
- }
- if (47 === _0_0) {
- t1 = _this._unaryOperation$0();
- break $label0$0;
- }
- if (46 === _0_0) {
- t1 = _this._number$0();
- break $label0$0;
- }
- if (91 === _0_0) {
- t1 = _this._expression$1$bracketList(true);
- break $label0$0;
- }
- if (36 === _0_0) {
- t1 = _this._variable$0();
- break $label0$0;
- }
- if (38 === _0_0) {
- t1 = _this._selector$0();
- break $label0$0;
- }
- if (39 === _0_0 || 34 === _0_0) {
- t1 = _this.interpolatedString$0();
- break $label0$0;
- }
- if (35 === _0_0) {
- t1 = _this._hashExpression$0();
- break $label0$0;
- }
- if (43 === _0_0) {
- next = t1.peekChar$1(1);
- t1 = next != null && next >= 48 && next <= 57 || next === 46 ? _this._number$0() : _this._unaryOperation$0();
- break $label0$0;
- }
- if (45 === _0_0) {
- t1 = _this._minusExpression$0();
- break $label0$0;
- }
- if (33 === _0_0) {
- t1 = _this._importantExpression$0();
- break $label0$0;
- }
- if ((117 === _0_0 || 85 === _0_0) && t1.peekChar$1(1) === 43) {
- t1 = _this._unicodeRange$0();
- break $label0$0;
- }
- if (_0_0 >= 48 && _0_0 <= 57) {
- t1 = _this._number$0();
- break $label0$0;
- }
- if (!(_0_0 >= 97 && _0_0 <= 122))
- t2 = _0_0 >= 65 && _0_0 <= 90 || 95 === _0_0 || 92 === _0_0 || _0_0 >= 128;
- else
- t2 = true;
- if (t2) {
- t1 = _this.identifierLike$0();
- break $label0$0;
- }
- t1 = t1.error$1(0, _s20_);
- }
- return t1;
- },
- parentheses$0() {
- var start, first, expressions, t1, t2, _this = this,
- wasInParentheses = _this._inParentheses;
- _this._inParentheses = true;
- try {
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(40);
- _this.whitespace$0();
- if (!_this._lookingAtExpression$0()) {
- t1.expectChar$1(41);
- t2 = A._setArrayType([], type$.JSArray_Expression);
- t1 = t1.spanFrom$1(start);
- t2 = A.List_List$unmodifiable(t2, type$.Expression);
- return new A.ListExpression(t2, B.ListSeparator_undecided_null_undecided, false, t1);
- }
- first = _this.expressionUntilComma$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t1 = _this._stylesheet$_map$2(first, start);
- return t1;
- }
- if (!t1.scanChar$1(44)) {
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- return new A.ParenthesizedExpression(first, t1);
- }
- _this.whitespace$0();
- expressions = A._setArrayType([first], type$.JSArray_Expression);
- for (; true;) {
- if (!_this._lookingAtExpression$0())
- break;
- J.add$1$ax(expressions, _this.expressionUntilComma$0());
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- t2 = A.List_List$unmodifiable(expressions, type$.Expression);
- return new A.ListExpression(t2, B.ListSeparator_ECn, false, t1);
- } finally {
- _this._inParentheses = wasInParentheses;
- }
- },
- _stylesheet$_map$2(first, start) {
- var t1, key, _this = this,
- pairs = A._setArrayType([new A._Record_2(first, _this.expressionUntilComma$0())], type$.JSArray_Record_2_Expression_and_Expression);
- for (t1 = _this.scanner; t1.scanChar$1(44);) {
- _this.whitespace$0();
- if (!_this._lookingAtExpression$0())
- break;
- key = _this.expressionUntilComma$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- pairs.push(new A._Record_2(key, _this.expressionUntilComma$0()));
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- return new A.MapExpression(A.List_List$unmodifiable(pairs, type$.Record_2_Expression_and_Expression), t1);
- },
- _hashExpression$0() {
- var start, t2, identifier, buffer, t3, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$1(1) === 123)
- return _this.identifierLike$0();
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(35);
- t2 = t1.peekChar$0();
- if (t2 == null)
- t2 = null;
- else
- t2 = t2 >= 48 && t2 <= 57;
- if (t2 === true)
- return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start));
- t2 = t1._string_scanner$_position;
- identifier = _this.interpolatedIdentifier$0();
- if (_this._isHexColor$1(identifier)) {
- t1.set$state(new A._SpanScannerState(t1, t2));
- return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start));
- }
- t2 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object));
- t3 = A.Primitives_stringFromCharCode(35);
- t2._contents += t3;
- buffer.addInterpolation$1(identifier);
- return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _hexColorContents$1(start) {
- var red, green, blue, alpha, digit4, t2, t3, t4, _this = this,
- digit1 = _this._hexDigit$0(),
- digit2 = _this._hexDigit$0(),
- digit3 = _this._hexDigit$0(),
- t1 = _this.scanner,
- $self = t1.peekChar$0();
- if (!($self != null && A.CharacterExtension_get_isHex($self))) {
- red = (digit1 << 4 >>> 0) + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = (digit3 << 4 >>> 0) + digit3;
- alpha = null;
- } else {
- digit4 = _this._hexDigit$0();
- $self = t1.peekChar$0();
- t2 = $self != null && A.CharacterExtension_get_isHex($self);
- t3 = digit1 << 4 >>> 0;
- t4 = digit3 << 4 >>> 0;
- if (!t2) {
- red = t3 + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = t4 + digit3;
- alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
- } else {
- red = t3 + digit2;
- green = t4 + digit4;
- blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0();
- $self = t1.peekChar$0();
- alpha = $self != null && A.CharacterExtension_get_isHex($self) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : null;
- }
- }
- t2 = alpha == null;
- t3 = t2 ? 1 : alpha;
- return A.SassColor$rgbInternal(red, green, blue, t3, t2 ? new A.SpanColorFormat(t1.spanFrom$1(start)) : null);
- },
- _isHexColor$1(interpolation) {
- var _0_2, t1,
- plain = interpolation.get$asPlain();
- if (typeof plain == "string") {
- _0_2 = plain.length;
- if (3 !== _0_2)
- if (4 !== _0_2)
- if (6 !== _0_2)
- t1 = 8 === _0_2;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- } else
- t1 = false;
- if (t1) {
- t1 = new A.CodeUnits(plain);
- return t1.every$1(t1, new A.StylesheetParser__isHexColor_closure());
- } else
- return false;
- },
- _hexDigit$0() {
- var t1 = this.scanner,
- t2 = t1.peekChar$0();
- t2 = t2 == null ? null : A.CharacterExtension_get_isHex(t2);
- return t2 === true ? A.asHex(t1.readChar$0()) : t1.error$1(0, "Expected hex digit.");
- },
- _minusExpression$0() {
- var _this = this,
- _0_0 = _this.scanner.peekChar$1(1);
- if (A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57 || 46 === _0_0)
- return _this._number$0();
- if (_this._lookingAtInterpolatedIdentifier$0())
- return _this.identifierLike$0();
- return _this._unaryOperation$0();
- },
- _importantExpression$0() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- this.whitespace$0();
- this.expectIdentifier$1("important");
- t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- return new A.StringExpression(A.Interpolation$(A._setArrayType(["!important"], type$.JSArray_Object), t2), false);
- },
- _unaryOperation$0() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- operator = _this._unaryOperatorFor$1(t1.readChar$0());
- if (operator == null)
- t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
- else if (_this.get$plainCss() && operator !== B.UnaryOperator_SJr)
- t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
- _this.whitespace$0();
- return new A.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _unaryOperatorFor$1(character) {
- var t1;
- $label0$0: {
- if (43 === character) {
- t1 = B.UnaryOperator_cLp;
- break $label0$0;
- }
- if (45 === character) {
- t1 = B.UnaryOperator_AiQ;
- break $label0$0;
- }
- if (47 === character) {
- t1 = B.UnaryOperator_SJr;
- break $label0$0;
- }
- t1 = null;
- break $label0$0;
- }
- return t1;
- },
- _number$0() {
- var number, unit, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- first = t1.peekChar$0(),
- t3 = first !== 43;
- if (!t3 || first === 45)
- t1.readChar$0();
- if (t1.peekChar$0() !== 46)
- _this._consumeNaturalNumber$0();
- _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2 && t3 && first !== 45);
- _this._tryExponent$0();
- number = A.double_parse(t1.substring$1(0, t2));
- if (t1.scanChar$1(37))
- unit = "%";
- else {
- if (_this.lookingAtIdentifier$0())
- t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
- else
- t3 = false;
- unit = t3 ? _this.identifier$1$unit(true) : null;
- }
- return new A.NumberExpression(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _consumeNaturalNumber$0() {
- var $self,
- t1 = this.scanner,
- t2 = t1.readChar$0();
- if (!(t2 >= 48 && t2 <= 57))
- t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t1.readChar$0();
- }
- },
- _tryDecimal$1$allowTrailingDot(allowTrailingDot) {
- var $self,
- t1 = this.scanner;
- if (t1.peekChar$0() !== 46)
- return;
- $self = t1.peekChar$1(1);
- if (!($self != null && $self >= 48 && $self <= 57)) {
- if (allowTrailingDot)
- return;
- t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
- }
- t1.readChar$0();
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t1.readChar$0();
- }
- },
- _tryExponent$0() {
- var next, $self,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first !== 101 && first !== 69)
- return;
- next = t1.peekChar$1(1);
- if (!(next != null && next >= 48 && next <= 57) && next !== 45 && next !== 43)
- return;
- t1.readChar$0();
- if (43 === next || 45 === next)
- t1.readChar$0();
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- t1.error$1(0, "Expected digit.");
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t1.readChar$0();
- }
- },
- _unicodeRange$0() {
- var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this,
- _s26_ = "Expected at most 6 digits.",
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentChar$1(117);
- t1.expectChar$1(43);
- for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure());)
- ++firstRangeLength;
- for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true)
- ++firstRangeLength;
- if (firstRangeLength === 0)
- t1.error$1(0, 'Expected hex digit or "?".');
- else if (firstRangeLength > 6)
- _this.error$2(0, _s26_, t1.spanFrom$1(start));
- else if (hasQuestionMark) {
- t2 = t1.substring$1(0, start.position);
- t1 = t1.spanFrom$1(start);
- return new A.StringExpression(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), t1), false);
- }
- if (t1.scanChar$1(45)) {
- t2 = t1._string_scanner$_position;
- for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure0());)
- ++secondRangeLength;
- if (secondRangeLength === 0)
- t1.error$1(0, "Expected hex digit.");
- else if (secondRangeLength > 6)
- _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- }
- if (_this._lookingAtInterpolatedIdentifierBody$0())
- t1.error$1(0, "Expected end of identifier.");
- t2 = t1.substring$1(0, start.position);
- t1 = t1.spanFrom$1(start);
- return new A.StringExpression(A.Interpolation$(A._setArrayType([t2], type$.JSArray_Object), t1), false);
- },
- _variable$0() {
- var _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- $name = _this.variableName$0();
- if (_this.get$plainCss())
- _this.error$2(0, string$.Sassx20v, t1.spanFrom$1(start));
- return new A.VariableExpression(null, $name, t1.spanFrom$1(start));
- },
- _selector$0() {
- var t1, start, _this = this;
- if (_this.get$plainCss())
- _this.scanner.error$2$length(0, string$.The_pa, 1);
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(38);
- if (t1.scanChar$1(38)) {
- _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start));
- t1.set$position(t1._string_scanner$_position - 1);
- }
- return new A.SelectorExpression(t1.spanFrom$1(start));
- },
- interpolatedString$0() {
- var t3, t4, buffer, _0_0, second, t5,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34)
- t1.error$2$position(0, "Expected string.", t2);
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer(t3, t4);
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 === quote) {
- t1.readChar$0();
- break;
- }
- if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)
- t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
- if (92 === _0_0) {
- second = t1.peekChar$1(1);
- if (second === 10 || second === 13 || second === 12) {
- t1.readChar$0();
- t1.readChar$0();
- if (second === 13)
- t1.scanChar$1(10);
- } else {
- t5 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1));
- t3._contents += t5;
- }
- continue;
- }
- if (35 === _0_0 && t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t5);
- continue;
- }
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- }
- return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true);
- },
- identifierLike$0() {
- var invocation, expression, _0_0, _1_0, _2_0, _2_2, _2_4, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- lower = A._Cell$(),
- t2 = plain != null;
- if (t2) {
- if (plain === "if" && t1.peekChar$0() === 40) {
- invocation = _this._argumentInvocation$0();
- return new A.IfExpression(invocation, identifier.span.expand$1(0, invocation.span));
- } else if (plain === "not") {
- _this.whitespace$0();
- expression = _this._singleExpression$0();
- return new A.UnaryOperationExpression(B.UnaryOperator_not_not_not, expression, identifier.span.expand$1(0, expression.get$span(expression)));
- }
- lower.__late_helper$_value = plain.toLowerCase();
- if (t1.peekChar$0() !== 40) {
- switch (plain) {
- case "false":
- return new A.BooleanExpression(false, identifier.span);
- case "null":
- return new A.NullExpression(identifier.span);
- case "true":
- return new A.BooleanExpression(true, identifier.span);
- }
- _0_0 = $.$get$colorsByName().$index(0, lower._readLocal$0());
- if (_0_0 != null) {
- t1 = identifier.span;
- return new A.ColorExpression(A.SassColor$rgbInternal(_0_0.get$red(0), _0_0.get$green(0), _0_0.get$blue(0), _0_0._alpha, new A.SpanColorFormat(t1)), t1);
- }
- }
- _1_0 = _this.trySpecialFunction$2(lower._readLocal$0(), start);
- if (_1_0 != null)
- return _1_0;
- }
- _2_0 = t1.peekChar$0();
- _2_2 = 46 === _2_0;
- if (_2_2 && t1.peekChar$1(1) === 46)
- return new A.StringExpression(identifier, false);
- if (_2_2) {
- t1.readChar$0();
- if (t2)
- return _this.namespacedExpression$2(plain, start);
- _this.error$2(0, string$.Interpn, identifier.span);
- }
- _2_4 = 40 === _2_0;
- if (_2_4 && t2) {
- t2 = _this._argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var"));
- t1 = t1.spanFrom$1(start);
- return new A.FunctionExpression(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, t2, t1);
- }
- if (_2_4)
- return new A.InterpolatedFunctionExpression(identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start));
- return new A.StringExpression(identifier, false);
- },
- namespacedExpression$2(namespace, start) {
- var $name, t2, t3, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 36) {
- $name = _this.variableName$0();
- _this._assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure(_this, start));
- return new A.VariableExpression(namespace, $name, t1.spanFrom$1(start));
- }
- t2 = _this._publicIdentifier$0();
- t3 = _this._argumentInvocation$0();
- t1 = t1.spanFrom$1(start);
- return new A.FunctionExpression(namespace, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, t3, t1);
- },
- trySpecialFunction$2($name, start) {
- var t1, buffer, t2, next, t3, _this = this,
- normalized = A.unvendor($name);
- $label0$0: {
- if (!("calc" === normalized && normalized !== $name && _this.scanner.scanChar$1(40)))
- t1 = ("element" === normalized || "expression" === normalized) && _this.scanner.scanChar$1(40);
- else
- t1 = true;
- if (t1) {
- t1 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer(t1, A._setArrayType([], type$.JSArray_Object));
- t1._contents = "" + $name;
- t2 = A.Primitives_stringFromCharCode(40);
- t1._contents += t2;
- break $label0$0;
- }
- if ("progid" === normalized && _this.scanner.scanChar$1(58)) {
- t1 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer(t1, A._setArrayType([], type$.JSArray_Object));
- t1._contents = "" + $name;
- t2 = A.Primitives_stringFromCharCode(58);
- t1._contents += t2;
- t2 = _this.scanner;
- next = t2.peekChar$0();
- while (true) {
- if (next != null) {
- if (!(next >= 97 && next <= 122))
- t3 = next >= 65 && next <= 90;
- else
- t3 = true;
- t3 = t3 || next === 46;
- } else
- t3 = false;
- if (!t3)
- break;
- t3 = A.Primitives_stringFromCharCode(t2.readChar$0());
- t1._contents += t3;
- next = t2.peekChar$0();
- }
- t2.expectChar$1(40);
- t2 = A.Primitives_stringFromCharCode(40);
- t1._contents += t2;
- break $label0$0;
- }
- if ("url" === normalized)
- return A.NullableExtension_andThen(_this._tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure());
- return null;
- }
- buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true));
- t1 = _this.scanner;
- t1.expectChar$1(41);
- t2 = buffer._interpolation_buffer$_text;
- t3 = A.Primitives_stringFromCharCode(41);
- t2._contents += t3;
- return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _tryUrlContents$2$name(start, $name) {
- var t3, t4, buffer, t5, _0_0, _0_6, endPosition, result, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return null;
- _this.whitespaceWithoutComments$0();
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer(t3, t4);
- t3._contents = "" + ($name == null ? "url" : $name);
- t5 = A.Primitives_stringFromCharCode(40);
- t3._contents += t5;
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- break;
- if (92 === _0_0) {
- t5 = _this.escape$0();
- t3._contents += t5;
- continue;
- }
- _0_6 = 35 === _0_0;
- if (_0_6 && t1.peekChar$1(1) === 123) {
- t5 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t4.push(t5);
- continue;
- }
- if (33 !== _0_0)
- if (37 !== _0_0)
- if (38 !== _0_0)
- if (!_0_6)
- t5 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5) {
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- continue;
- }
- if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) {
- _this.whitespaceWithoutComments$0();
- if (t1.peekChar$0() !== 41)
- break;
- continue;
- }
- if (41 === _0_0) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t2;
- endPosition = t1._string_scanner$_position;
- t2 = t1._sourceFile;
- t5 = start.position;
- t1 = new A._FileSpan(t2, t5, endPosition);
- t1._FileSpan$3(t2, t5, endPosition);
- t5 = type$.Object;
- t2 = A.List_List$of(t4, true, t5);
- t4 = t3._contents;
- if (t4.length !== 0)
- t2.push(t4.charCodeAt(0) == 0 ? t4 : t4);
- result = A.List_List$from(t2, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t3 = new A.Interpolation(result, t1);
- t3.Interpolation$2(t2, t1);
- return t3;
- }
- break;
- }
- t1.set$state(new A._SpanScannerState(t1, t2));
- return null;
- },
- _tryUrlContents$1(start) {
- return this._tryUrlContents$2$name(start, null);
- },
- dynamicUrl$0() {
- var _0_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentifier$1("url");
- _0_0 = _this._tryUrlContents$1(start);
- if (_0_0 != null)
- return new A.StringExpression(_0_0, false);
- return new A.InterpolatedFunctionExpression(A.Interpolation$(A._setArrayType(["url"], type$.JSArray_Object), t1.spanFrom$1(start)), _this._argumentInvocation$0(), t1.spanFrom$1(start));
- },
- almostAnyValue$1$omitComments(omitComments) {
- var t4, t5, t6, _2_0, t7, _0_0, _0_2, start, end, _0_4, identifier, _1_0, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object));
- for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;)
- $label0$0: {
- _2_0 = t1.peekChar$0();
- if (92 === _2_0) {
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- break $label0$0;
- }
- if (34 === _2_0 || 39 === _2_0) {
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- break $label0$0;
- }
- if (47 === _2_0) {
- $label1$1: {
- _0_0 = t1.peekChar$1(1);
- _0_2 = 42 === _0_0;
- if (_0_2 && t6) {
- t7 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t7.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t4, start, end);
- break $label1$1;
- }
- if (_0_2) {
- _this.loudComment$0();
- break $label1$1;
- }
- _0_4 = 47 === _0_0;
- if (_0_4 && t6) {
- t7 = _this.get$silentComment();
- start = t1._string_scanner$_position;
- t7.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t4, start, end);
- break $label1$1;
- }
- if (_0_4) {
- _this.silentComment$0();
- break $label1$1;
- }
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- break $label0$0;
- }
- if (35 === _2_0 && t1.peekChar$1(1) === 123) {
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- break $label0$0;
- }
- if (13 === _2_0 || 10 === _2_0 || 12 === _2_0) {
- if (_this.get$indented())
- break;
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- break $label0$0;
- }
- if (33 === _2_0 || 59 === _2_0 || 123 === _2_0 || 125 === _2_0)
- break;
- if (117 === _2_0 || 85 === _2_0) {
- t7 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- if (identifier !== "url" && identifier !== "url-prefix") {
- t3._contents += identifier;
- continue;
- }
- _1_0 = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
- if (_1_0 != null)
- buffer.addInterpolation$1(_1_0);
- else {
- if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5)
- A.throwExpression(A.ArgumentError$("Invalid position " + t7, null));
- t1._string_scanner$_position = t7;
- t1._lastMatch = null;
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- break $label0$0;
- }
- if (_2_0 == null)
- break;
- t7 = _this.lookingAtIdentifier$0();
- if (t7) {
- t7 = _this.identifier$0();
- t3._contents += t7;
- break $label0$0;
- }
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- almostAnyValue$0() {
- return this.almostAnyValue$1$omitComments(false);
- },
- _interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, allowOpenBrace, allowSemicolon, silentComments) {
- var t4, t5, t6, t7, t8, wroteNewline, _2_0, t9, _0_0, start, end, _2_14_isSet, _2_14, _2_18_isSet, _2_18, _2_20_isSet, _2_20, _2_22, bracket, identifier, _1_0, _this = this, _null = null,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object)),
- brackets = A._setArrayType([], type$.JSArray_int);
- for (t4 = !allowOpenBrace, t5 = t1.string, t6 = t5.length, t7 = !allowColon, t8 = !allowSemicolon, wroteNewline = false; true;)
- $label0$0: {
- _2_0 = t1.peekChar$0();
- if (92 === _2_0) {
- t9 = _this.escape$1$identifierStart(true);
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (34 === _2_0 || 39 === _2_0) {
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- wroteNewline = false;
- break $label0$0;
- }
- if (47 === _2_0) {
- $label1$1: {
- _0_0 = t1.peekChar$1(1);
- if (42 === _0_0) {
- t9 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t9.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t5, start, end);
- break $label1$1;
- }
- if (47 === _0_0 && silentComments) {
- _this.silentComment$0();
- break $label1$1;
- }
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- }
- wroteNewline = false;
- break $label0$0;
- }
- if (35 === _2_0 && t1.peekChar$1(1) === 123) {
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- wroteNewline = false;
- break $label0$0;
- }
- _2_14_isSet = 32 !== _2_0;
- if (_2_14_isSet) {
- _2_14 = 9 === _2_0;
- t9 = _2_14;
- } else {
- _2_14 = _null;
- t9 = true;
- }
- if (t9)
- if (!wroteNewline) {
- t9 = t1.peekChar$1(1);
- t9 = t9 === 32 || t9 === 9 || t9 === 10 || t9 === 13 || t9 === 12;
- } else
- t9 = false;
- else
- t9 = false;
- if (t9) {
- t1.readChar$0();
- break $label0$0;
- }
- if (_2_14_isSet)
- t9 = _2_14;
- else
- t9 = true;
- if (t9) {
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- break $label0$0;
- }
- _2_18_isSet = 10 !== _2_0;
- if (_2_18_isSet) {
- _2_18 = 13 === _2_0;
- _2_20_isSet = !_2_18;
- if (_2_20_isSet) {
- _2_20 = 12 === _2_0;
- t9 = _2_20;
- } else {
- _2_20 = _null;
- t9 = true;
- }
- } else {
- _2_20 = _null;
- _2_18 = _2_20;
- _2_20_isSet = false;
- t9 = true;
- }
- if (t9 && _this.get$indented())
- break;
- if (_2_18_isSet)
- if (!_2_18)
- t9 = _2_20_isSet ? _2_20 : 12 === _2_0;
- else
- t9 = true;
- else
- t9 = true;
- if (t9) {
- t9 = t1.peekChar$1(-1);
- if (!(t9 === 10 || t9 === 13 || t9 === 12))
- t3._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- break $label0$0;
- }
- _2_22 = 123 === _2_0;
- if (_2_22 && t4)
- break;
- if (40 !== _2_0)
- t9 = _2_22 || 91 === _2_0;
- else
- t9 = true;
- if (t9) {
- bracket = t1.readChar$0();
- t9 = A.Primitives_stringFromCharCode(bracket);
- t3._contents += t9;
- brackets.push(A.opposite(bracket));
- wroteNewline = false;
- break $label0$0;
- }
- if (41 === _2_0 || 125 === _2_0 || 93 === _2_0) {
- if (brackets.length === 0)
- break;
- bracket = brackets.pop();
- t1.expectChar$1(bracket);
- t9 = A.Primitives_stringFromCharCode(bracket);
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (59 === _2_0) {
- if (t8 && brackets.length === 0)
- break;
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (58 === _2_0) {
- if (t7 && brackets.length === 0)
- break;
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (117 === _2_0 || 85 === _2_0) {
- t9 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- if (identifier !== "url" && identifier !== "url-prefix") {
- t3._contents += identifier;
- wroteNewline = false;
- continue;
- }
- _1_0 = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t9), identifier);
- if (_1_0 != null)
- buffer.addInterpolation$1(_1_0);
- else {
- if ((t9 === 0 ? 1 / t9 < 0 : t9 < 0) || t9 > t6)
- A.throwExpression(A.ArgumentError$("Invalid position " + t9, _null));
- t1._string_scanner$_position = t9;
- t1._lastMatch = null;
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- }
- wroteNewline = false;
- break $label0$0;
- }
- if (_2_0 == null)
- break;
- t9 = _this.lookingAtIdentifier$0();
- if (t9) {
- t9 = _this.identifier$0();
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- wroteNewline = false;
- }
- if (brackets.length !== 0)
- t1.expectChar$1(B.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0)
- t1.error$1(0, "Expected token.");
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _interpolatedDeclarationValue$1$allowEmpty(allowEmpty) {
- return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, false, true);
- },
- _interpolatedDeclarationValue$1$allowOpenBrace(allowOpenBrace) {
- return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, allowOpenBrace, false, true);
- },
- _interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) {
- return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, allowSemicolon, true);
- },
- _interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) {
- return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, true, allowSemicolon, true);
- },
- _interpolatedDeclarationValue$0() {
- return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, true);
- },
- _interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(allowEmpty, allowOpenBrace) {
- return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, allowOpenBrace, false, true);
- },
- _interpolatedDeclarationValue$1$silentComments(silentComments) {
- return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, silentComments);
- },
- interpolatedIdentifier$0() {
- var t4, _0_0, _this = this,
- _s20_ = "Expected identifier.",
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- t2 = new A.StringBuffer(""),
- t3 = A._setArrayType([], type$.JSArray_Object),
- buffer = new A.InterpolationBuffer(t2, t3);
- if (t1.scanChar$1(45)) {
- t4 = A.Primitives_stringFromCharCode(45);
- t2._contents += t4;
- if (t1.scanChar$1(45)) {
- t3 = A.Primitives_stringFromCharCode(45);
- t2._contents += t3;
- _this._interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- }
- $label0$0: {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- t1.error$1(0, _s20_);
- if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128) {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += t3;
- break $label0$0;
- }
- if (92 === _0_0) {
- t3 = _this.escape$1$identifierStart(true);
- t2._contents += t3;
- break $label0$0;
- }
- if (35 === _0_0 && t1.peekChar$1(1) === 123) {
- t2 = _this.singleInterpolation$0();
- buffer._flushText$0();
- t3.push(t2);
- break $label0$0;
- }
- t1.error$1(0, _s20_);
- }
- _this._interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- },
- _interpolatedIdentifierBody$1(buffer) {
- var t1, t2, t3, _0_0, t4;
- for (t1 = buffer._interpolation_buffer$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer$_text; true;) {
- _0_0 = t2.peekChar$0();
- if (_0_0 == null)
- break;
- if (95 !== _0_0)
- if (45 !== _0_0) {
- if (!(_0_0 >= 97 && _0_0 <= 122))
- t4 = _0_0 >= 65 && _0_0 <= 90;
- else
- t4 = true;
- if (!t4)
- t4 = _0_0 >= 48 && _0_0 <= 57;
- else
- t4 = true;
- t4 = t4 || _0_0 >= 128;
- } else
- t4 = true;
- else
- t4 = true;
- if (t4) {
- t4 = A.Primitives_stringFromCharCode(t2.readChar$0());
- t3._contents += t4;
- continue;
- }
- if (92 === _0_0) {
- t4 = this.escape$0();
- t3._contents += t4;
- continue;
- }
- if (35 === _0_0 && t2.peekChar$1(1) === 123) {
- t4 = this.singleInterpolation$0();
- buffer._flushText$0();
- t1.push(t4);
- continue;
- }
- break;
- }
- },
- singleInterpolation$0() {
- var contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("#{");
- _this.whitespace$0();
- contents = _this._expression$0();
- t1.expectChar$1(125);
- if (_this.get$plainCss())
- _this.error$2(0, string$.Interpp, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- return contents;
- },
- _mediaQueryList$0() {
- var t4, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object));
- for (; true;) {
- _this.whitespace$0();
- _this._stylesheet$_mediaQuery$1(buffer);
- _this.whitespace$0();
- if (!t1.scanChar$1(44))
- break;
- t4 = A.Primitives_stringFromCharCode(44);
- t3._contents += t4;
- t4 = A.Primitives_stringFromCharCode(32);
- t3._contents += t4;
- }
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _stylesheet$_mediaQuery$1(buffer) {
- var identifier1, t1, t2, identifier2, _this = this, _s3_ = "and";
- if (_this.scanner.peekChar$0() === 40) {
- _this._stylesheet$_mediaInParens$1(buffer);
- _this.whitespace$0();
- if (_this.scanIdentifier$1(_s3_)) {
- buffer._interpolation_buffer$_text._contents += " and ";
- _this.expectWhitespace$0();
- _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_);
- } else if (_this.scanIdentifier$1("or")) {
- buffer._interpolation_buffer$_text._contents += " or ";
- _this.expectWhitespace$0();
- _this._stylesheet$_mediaLogicSequence$2(buffer, "or");
- }
- return;
- }
- identifier1 = _this.interpolatedIdentifier$0();
- if (A.equalsIgnoreCase(identifier1.get$asPlain(), "not")) {
- _this.expectWhitespace$0();
- if (!_this._lookingAtInterpolatedIdentifier$0()) {
- buffer._interpolation_buffer$_text._contents += "not ";
- _this._mediaOrInterp$1(buffer);
- return;
- }
- }
- _this.whitespace$0();
- buffer.addInterpolation$1(identifier1);
- if (!_this._lookingAtInterpolatedIdentifier$0())
- return;
- t1 = buffer._interpolation_buffer$_text;
- t2 = A.Primitives_stringFromCharCode(32);
- t1._contents += t2;
- identifier2 = _this.interpolatedIdentifier$0();
- if (A.equalsIgnoreCase(identifier2.get$asPlain(), _s3_)) {
- _this.expectWhitespace$0();
- t1._contents += " and ";
- } else {
- _this.whitespace$0();
- buffer.addInterpolation$1(identifier2);
- if (_this.scanIdentifier$1(_s3_)) {
- _this.expectWhitespace$0();
- t1._contents += " and ";
- } else
- return;
- }
- if (_this.scanIdentifier$1("not")) {
- _this.expectWhitespace$0();
- t1._contents += "not ";
- _this._mediaOrInterp$1(buffer);
- return;
- }
- _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_);
- return;
- },
- _stylesheet$_mediaLogicSequence$2(buffer, operator) {
- var t1, t2, _this = this;
- for (t1 = buffer._interpolation_buffer$_text; true;) {
- _this._mediaOrInterp$1(buffer);
- _this.whitespace$0();
- if (!_this.scanIdentifier$1(operator))
- return;
- _this.expectWhitespace$0();
- t2 = A.Primitives_stringFromCharCode(32);
- t2 = t1._contents += t2;
- t1._contents = t2 + operator;
- t2 = A.Primitives_stringFromCharCode(32);
- t1._contents += t2;
- }
- },
- _mediaOrInterp$1(buffer) {
- var interpolation;
- if (this.scanner.peekChar$0() === 35) {
- interpolation = this.singleInterpolation$0();
- buffer.addInterpolation$1(A.Interpolation$(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation)));
- } else
- this._stylesheet$_mediaInParens$1(buffer);
- },
- _stylesheet$_mediaInParens$1(buffer) {
- var t2, t3, t4, next, t5, _this = this,
- t1 = _this.scanner;
- t1.expectChar$2$name(40, "media condition in parentheses");
- t2 = buffer._interpolation_buffer$_text;
- t3 = A.Primitives_stringFromCharCode(40);
- t2._contents += t3;
- _this.whitespace$0();
- if (t1.peekChar$0() === 40) {
- _this._stylesheet$_mediaInParens$1(buffer);
- _this.whitespace$0();
- if (_this.scanIdentifier$1("and")) {
- t2._contents += " and ";
- _this.expectWhitespace$0();
- _this._stylesheet$_mediaLogicSequence$2(buffer, "and");
- } else if (_this.scanIdentifier$1("or")) {
- t2._contents += " or ";
- _this.expectWhitespace$0();
- _this._stylesheet$_mediaLogicSequence$2(buffer, "or");
- }
- } else if (_this.scanIdentifier$1("not")) {
- t2._contents += "not ";
- _this.expectWhitespace$0();
- _this._mediaOrInterp$1(buffer);
- } else {
- t3 = _this._expressionUntilComparison$0();
- buffer._flushText$0();
- t4 = buffer._interpolation_buffer$_contents;
- t4.push(t3);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t3 = A.Primitives_stringFromCharCode(58);
- t2._contents += t3;
- t3 = A.Primitives_stringFromCharCode(32);
- t2._contents += t3;
- t3 = _this._expression$0();
- buffer._flushText$0();
- t4.push(t3);
- } else {
- next = t1.peekChar$0();
- t3 = 60 !== next;
- if (!t3 || 62 === next || 61 === next) {
- t5 = A.Primitives_stringFromCharCode(32);
- t2._contents += t5;
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += t5;
- if ((!t3 || 62 === next) && t1.scanChar$1(61)) {
- t5 = A.Primitives_stringFromCharCode(61);
- t2._contents += t5;
- }
- t5 = A.Primitives_stringFromCharCode(32);
- t2._contents += t5;
- _this.whitespace$0();
- t5 = _this._expressionUntilComparison$0();
- buffer._flushText$0();
- t4.push(t5);
- if (!t3 || 62 === next) {
- next.toString;
- t3 = t1.scanChar$1(next);
- } else
- t3 = false;
- if (t3) {
- t3 = A.Primitives_stringFromCharCode(32);
- t2._contents += t3;
- t3 = A.Primitives_stringFromCharCode(next);
- t2._contents += t3;
- if (t1.scanChar$1(61)) {
- t3 = A.Primitives_stringFromCharCode(61);
- t2._contents += t3;
- }
- t3 = A.Primitives_stringFromCharCode(32);
- t2._contents += t3;
- _this.whitespace$0();
- t3 = _this._expressionUntilComparison$0();
- buffer._flushText$0();
- t4.push(t3);
- }
- }
- }
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t1 = A.Primitives_stringFromCharCode(41);
- t2._contents += t1;
- },
- _expressionUntilComparison$0() {
- return this._expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure(this));
- },
- _supportsCondition$0() {
- var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- }
- condition = _this._supportsConditionInParens$0();
- _this.whitespace$0();
- for (operator = null; _this.lookingAtIdentifier$0();) {
- if (operator != null)
- _this.expectIdentifier$1(operator);
- else if (_this.scanIdentifier$1("or"))
- operator = "or";
- else {
- _this.expectIdentifier$1("and");
- operator = "and";
- }
- _this.whitespace$0();
- right = _this._supportsConditionInParens$0();
- endPosition = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = new A._FileSpan(t3, t2, endPosition);
- t4._FileSpan$3(t3, t2, endPosition);
- condition = new A.SupportsOperation(condition, right, operator, t4);
- lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- _this.whitespace$0();
- }
- return condition;
- },
- _supportsConditionInParens$0() {
- var $name, nameStart, wasInParentheses, identifier, _1_0, operation, contents, identifier0, t2, $arguments, _0_0, _0_4_isSet, _0_4, condition, exception, declaration, _this = this, _null = null,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this._lookingAtInterpolatedIdentifier$0()) {
- identifier0 = _this.interpolatedIdentifier$0();
- t2 = identifier0.get$asPlain();
- if ((t2 == null ? _null : t2.toLowerCase()) === "not")
- _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
- if (t1.scanChar$1(40)) {
- $arguments = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
- t1.expectChar$1(41);
- return new A.SupportsFunction(identifier0, $arguments, t1.spanFrom$1(start));
- } else {
- _0_0 = identifier0.contents;
- _0_4_isSet = _0_0.length === 1;
- if (_0_4_isSet) {
- _0_4 = _0_0[0];
- t2 = _0_4;
- t2 = type$.Expression._is(t2);
- } else {
- _0_4 = _null;
- t2 = false;
- }
- if (t2) {
- t2 = _0_4_isSet ? _0_4 : _0_0[0];
- return new A.SupportsInterpolation(type$.Expression._as(t2), t1.spanFrom$1(start));
- } else
- _this.error$2(0, "Expected @supports condition.", identifier0.span);
- }
- }
- t1.expectChar$1(40);
- _this.whitespace$0();
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- condition = _this._supportsConditionInParens$0();
- t1.expectChar$1(41);
- return new A.SupportsNegation(condition, t1.spanFrom$1(start));
- } else if (t1.peekChar$0() === 40) {
- condition = _this._supportsCondition$0();
- t1.expectChar$1(41);
- return condition;
- }
- $name = null;
- nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
- wasInParentheses = _this._inParentheses;
- try {
- $name = _this._expression$0();
- t1.expectChar$1(58);
- } catch (exception) {
- if (type$.FormatException._is(A.unwrapException(exception))) {
- t1.set$state(nameStart);
- _this._inParentheses = wasInParentheses;
- identifier = _this.interpolatedIdentifier$0();
- _1_0 = _this._trySupportsOperation$2(identifier, nameStart);
- operation = null;
- if (_1_0 != null) {
- operation = _1_0;
- t1.expectChar$1(41);
- return operation;
- }
- t2 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
- t2.addInterpolation$1(identifier);
- t2.addInterpolation$1(_this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
- contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
- if (t1.peekChar$0() === 58)
- throw exception;
- t1.expectChar$1(41);
- return new A.SupportsAnything(contents, t1.spanFrom$1(start));
- } else
- throw exception;
- }
- declaration = _this._supportsDeclarationValue$2($name, start);
- t1.expectChar$1(41);
- return declaration;
- },
- _supportsDeclarationValue$2($name, start) {
- var t1, value, _this = this;
- if ($name instanceof A.StringExpression)
- if (!$name.hasQuotes)
- t1 = B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--");
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- value = new A.StringExpression(_this._interpolatedDeclarationValue$0(), false);
- else {
- _this.whitespace$0();
- value = _this._expression$0();
- }
- return new A.SupportsDeclaration($name, value, _this.scanner.spanFrom$1(start));
- },
- _trySupportsOperation$2(interpolation, start) {
- var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
- t1 = interpolation.contents;
- if (t1.length !== 1)
- return _null;
- expression = B.JSArray_methods.get$first(t1);
- if (!type$.Expression._is(expression))
- return _null;
- t1 = _this.scanner;
- beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _this.whitespace$0();
- for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
- if (operator != null)
- _this.expectIdentifier$1(operator);
- else if (_this.scanIdentifier$1("and"))
- operator = "and";
- else {
- if (!_this.scanIdentifier$1("or")) {
- if (beforeWhitespace._scanner !== t1)
- A.throwExpression(A.ArgumentError$(string$.The_gi, _null));
- t2 = beforeWhitespace.position;
- if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length)
- A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null));
- t1._string_scanner$_position = t2;
- return t1._lastMatch = null;
- }
- operator = "or";
- }
- _this.whitespace$0();
- right = _this._supportsConditionInParens$0();
- t4 = operation == null ? new A.SupportsInterpolation(expression, t3) : operation;
- endPosition = t1._string_scanner$_position;
- t5 = t1._sourceFile;
- t6 = new A._FileSpan(t5, t2, endPosition);
- t6._FileSpan$3(t5, t2, endPosition);
- operation = new A.SupportsOperation(t4, right, operator, t6);
- lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- _this.whitespace$0();
- }
- return operation;
- },
- _lookingAtInterpolatedIdentifier$0() {
- var _0_0,
- t1 = this.scanner,
- _1_0 = t1.peekChar$0();
- $label0$0: {
- if (_1_0 == null) {
- t1 = false;
- break $label0$0;
- }
- if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128 || 92 === _1_0) {
- t1 = true;
- break $label0$0;
- }
- if (35 === _1_0) {
- t1 = t1.peekChar$1(1) === 123;
- break $label0$0;
- }
- if (45 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label1$1: {
- if (_0_0 == null) {
- t1 = false;
- break $label1$1;
- }
- if (35 === _0_0) {
- t1 = t1.peekChar$1(2) === 123;
- break $label1$1;
- }
- if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128 || 92 === _0_0 || 45 === _0_0) {
- t1 = true;
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _lookingAtPotentialPropertyHack$0() {
- var t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (58 === _0_0 || 42 === _0_0 || 46 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- if (35 === _0_0) {
- t1 = t1.peekChar$1(1) !== 123;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _lookingAtInterpolatedIdentifierBody$0() {
- var t2,
- t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (_0_0 == null) {
- t1 = false;
- break $label0$0;
- }
- if (!(_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128))
- t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
- else
- t2 = true;
- if (t2 || 92 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- if (35 === _0_0) {
- t1 = t1.peekChar$1(1) === 123;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _lookingAtExpression$0() {
- var _0_0,
- t1 = this.scanner,
- _1_0 = t1.peekChar$0();
- $label0$0: {
- if (_1_0 == null) {
- t1 = false;
- break $label0$0;
- }
- if (46 === _1_0) {
- t1 = t1.peekChar$1(1) !== 46;
- break $label0$0;
- }
- if (33 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label1$1: {
- if (_0_0 != null)
- if (105 !== _0_0)
- if (73 !== _0_0)
- t1 = _0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1)
- break $label1$1;
- break $label1$1;
- }
- break $label0$0;
- }
- if (40 !== _1_0)
- if (47 !== _1_0)
- if (91 !== _1_0)
- if (39 !== _1_0)
- if (34 !== _1_0)
- if (35 !== _1_0)
- if (43 !== _1_0)
- if (45 !== _1_0)
- if (92 !== _1_0)
- if (36 !== _1_0)
- if (38 !== _1_0)
- if (!(_1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128))
- t1 = _1_0 >= 48 && _1_0 <= 57;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _withChildren$1$3(child, start, create) {
- var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
- this.whitespaceWithoutComments$0();
- return result;
- },
- _withChildren$3(child, start, create) {
- return this._withChildren$1$3(child, start, create, type$.dynamic);
- },
- _urlString$0() {
- var innerError, stackTrace, t2, exception,
- t1 = this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- url = this.string$0();
- try {
- t2 = A.Uri_parse(url);
- return t2;
- } catch (exception) {
- t2 = A.unwrapException(exception);
- if (type$.FormatException._is(t2)) {
- innerError = t2;
- stackTrace = A.getTraceFromException(exception);
- this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace);
- } else
- throw exception;
- }
- },
- _publicIdentifier$0() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- result = _this.identifier$0();
- _this._assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure(_this, new A._SpanScannerState(t1, t2)));
- return result;
- },
- _assertPublic$2(identifier, span) {
- var first = identifier.charCodeAt(0);
- if (!(first === 45 || first === 95))
- return;
- this.error$2(0, string$.Privat, span.call$0());
- },
- get$plainCss() {
- return false;
- }
- };
- A.StylesheetParser_parse_closure.prototype = {
- call$0() {
- var statements, t4,
- t1 = this.$this,
- t2 = t1.scanner,
- t3 = t2._string_scanner$_position;
- t2.scanChar$1(65279);
- statements = t1.statements$1(new A.StylesheetParser_parse__closure(t1));
- t2.expectDone$0();
- t4 = t1._globalVariables.get$values(0);
- B.JSArray_methods.addAll$1(statements, A.MappedIterable_MappedIterable(t4, new A.StylesheetParser_parse__closure0(), A._instanceType(t4)._eval$1("Iterable.E"), type$.Statement));
- return A.Stylesheet$internal(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.get$plainCss());
- },
- $signature: 461
- };
- A.StylesheetParser_parse__closure.prototype = {
- call$0() {
- var t1 = this.$this;
- if (t1.scanner.scan$1("@charset")) {
- t1.whitespace$0();
- t1.string$0();
- return null;
- }
- return t1._statement$1$root(true);
- },
- $signature: 457
- };
- A.StylesheetParser_parse__closure0.prototype = {
- call$1(declaration) {
- var t1 = declaration.expression;
- return A.VariableDeclaration$(declaration.name, new A.NullExpression(t1.get$span(t1)), declaration.span, null, false, true, null);
- },
- $signature: 455
- };
- A.StylesheetParser_parseArgumentDeclaration_closure.prototype = {
- call$0() {
- var $arguments,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$2$name(64, "@-rule");
- t1.identifier$0();
- t1.whitespace$0();
- t1.identifier$0();
- $arguments = t1._argumentDeclaration$0();
- t1.whitespace$0();
- t2.expectChar$1(123);
- return $arguments;
- },
- $signature: 445
- };
- A.StylesheetParser_parseVariableDeclaration_closure.prototype = {
- call$0() {
- var t1 = this.$this;
- return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0();
- },
- $signature: 153
- };
- A.StylesheetParser_parseUseRule_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1.scanner,
- t3 = t2._string_scanner$_position;
- t2.expectChar$2$name(64, "@-rule");
- t1.expectIdentifier$1("use");
- t1.whitespace$0();
- return t1._useRule$1(new A._SpanScannerState(t2, t3));
- },
- $signature: 443
- };
- A.StylesheetParser__parseSingleProduction_closure.prototype = {
- call$0() {
- var result = this.production.call$0();
- this.$this.scanner.expectDone$0();
- return result;
- },
- $signature() {
- return this.T._eval$1("0()");
- }
- };
- A.StylesheetParser__statement_closure.prototype = {
- call$0() {
- return this.$this._statement$0();
- },
- $signature: 127
- };
- A.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = {
- call$0() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 27
- };
- A.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = {
- call$0() {
- return this.declaration;
- },
- $signature: 153
- };
- A.StylesheetParser__styleRule_closure.prototype = {
- call$2(children, span) {
- var _this = this,
- t1 = _this.$this;
- if (t1.get$indented() && children.length === 0)
- t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span);
- t1._inStyleRule = _this.wasInStyleRule;
- return A.StyleRule$(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start));
- },
- $signature: 438
- };
- A.StylesheetParser__tryDeclarationChildren_closure.prototype = {
- call$2(children, span) {
- return A.Declaration$nested(this.name, children, span, this.value);
- },
- $signature: 434
- };
- A.StylesheetParser__atRootRule_closure.prototype = {
- call$2(children, span) {
- return A.AtRootRule$(children, span, this.query);
- },
- $signature: 154
- };
- A.StylesheetParser__atRootRule_closure0.prototype = {
- call$2(children, span) {
- return A.AtRootRule$(children, span, null);
- },
- $signature: 154
- };
- A.StylesheetParser__eachRule_closure.prototype = {
- call$2(children, span) {
- var _this = this;
- _this.$this._inControlDirective = _this.wasInControlDirective;
- return A.EachRule$(_this.variables, _this.list, children, span);
- },
- $signature: 432
- };
- A.StylesheetParser__functionRule_closure.prototype = {
- call$2(children, span) {
- return A.FunctionRule$(this.name, this.$arguments, children, span, this.precedingComment);
- },
- $signature: 431
- };
- A.StylesheetParser__forRule_closure.prototype = {
- call$0() {
- var t1 = this.$this;
- if (!t1.lookingAtIdentifier$0())
- return false;
- if (t1.scanIdentifier$1("to"))
- return this._box_0.exclusive = true;
- else if (t1.scanIdentifier$1("through")) {
- this._box_0.exclusive = false;
- return true;
- } else
- return false;
- },
- $signature: 22
- };
- A.StylesheetParser__forRule_closure0.prototype = {
- call$2(children, span) {
- var t1, _this = this;
- _this.$this._inControlDirective = _this.wasInControlDirective;
- t1 = _this._box_0.exclusive;
- t1.toString;
- return A.ForRule$(_this.variable, _this.from, _this.to, children, span, t1);
- },
- $signature: 427
- };
- A.StylesheetParser__memberList_closure.prototype = {
- call$0() {
- var t1 = this.$this;
- if (t1.scanner.peekChar$0() === 36)
- this.variables.add$1(0, t1.variableName$0());
- else
- this.identifiers.add$1(0, t1.identifier$1$normalize(true));
- },
- $signature: 1
- };
- A.StylesheetParser__includeRule_closure.prototype = {
- call$2(children, span) {
- return A.ContentBlock$(this.contentArguments_, children, span);
- },
- $signature: 426
- };
- A.StylesheetParser_mediaRule_closure.prototype = {
- call$2(children, span) {
- return A.MediaRule$(this.query, children, span);
- },
- $signature: 422
- };
- A.StylesheetParser__mixinRule_closure.prototype = {
- call$2(children, span) {
- var _this = this;
- _this.$this._stylesheet$_inMixin = false;
- return A.MixinRule$(_this.name, _this.$arguments, children, span, _this.precedingComment);
- },
- $signature: 419
- };
- A.StylesheetParser_mozDocumentRule_closure.prototype = {
- call$2(children, span) {
- var _this = this;
- if (_this._box_0.needsDeprecationWarning)
- A.WarnForDeprecation_warnForDeprecation(_this.$this.logger, B.Deprecation_uNF, string$.x40_moz_, span, null);
- return A.AtRule$(_this.name, span, children, _this.value);
- },
- $signature: 155
- };
- A.StylesheetParser_supportsRule_closure.prototype = {
- call$2(children, span) {
- return A.SupportsRule$(this.condition, children, span);
- },
- $signature: 418
- };
- A.StylesheetParser__whileRule_closure.prototype = {
- call$2(children, span) {
- this.$this._inControlDirective = this.wasInControlDirective;
- return A.WhileRule$(this.condition, children, span);
- },
- $signature: 415
- };
- A.StylesheetParser_unknownAtRule_closure.prototype = {
- call$2(children, span) {
- return A.AtRule$(this.name, span, children, this._box_0.value);
- },
- $signature: 155
- };
- A.StylesheetParser__expression_resetState.prototype = {
- call$0() {
- var t2,
- t1 = this._box_0;
- t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null;
- t2 = this.$this;
- t2.scanner.set$state(this.start);
- t1.allowSlash = true;
- t1.singleExpression_ = t2._singleExpression$0();
- },
- $signature: 0
- };
- A.StylesheetParser__expression_resolveOneOperation.prototype = {
- call$0() {
- var t2, t3, t4, t5, t6, t7, _this = this,
- t1 = _this._box_0,
- operator = t1.operators_.pop(),
- left = t1.operands_.pop(),
- right = t1.singleExpression_;
- if (right == null) {
- t2 = _this.$this.scanner;
- t3 = operator.operator.length;
- t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3);
- }
- if (t1.allowSlash) {
- t2 = _this.$this;
- t2 = !t2._inParentheses && operator === B.BinaryOperator_U77 && t2._isSlashOperand$1(left) && t2._isSlashOperand$1(right);
- } else
- t2 = false;
- if (t2)
- t1.singleExpression_ = new A.BinaryOperationExpression(B.BinaryOperator_U77, left, right, true);
- else {
- t1.singleExpression_ = new A.BinaryOperationExpression(operator, left, right, false);
- t2 = t1.allowSlash = false;
- if (B.BinaryOperator_u15 === operator || B.BinaryOperator_SjO === operator) {
- t3 = _this.$this;
- t4 = t3.scanner.string;
- t5 = right.get$span(right);
- t5 = t5.get$start(t5);
- t6 = right.get$span(right);
- t7 = operator.operator;
- if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) {
- t2 = left.get$span(left);
- t2 = t4.charCodeAt(t2.get$end(t2).offset);
- t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12;
- }
- if (t2) {
- t2 = left.toString$0(0);
- t4 = right.toString$0(0);
- t5 = left.toString$0(0);
- t6 = right.toString$0(0);
- t1 = t1.singleExpression_;
- A.WarnForDeprecation_warnForDeprecation(t3.logger, B.Deprecation_2Vk, "This operation is parsed as:\n\n " + t2 + " " + t7 + " " + t4 + string$.x0a_but_ + t5 + " (" + t7 + t6 + ")\n\nAdd a space after " + t7 + string$.x20to_cl, t1.get$span(t1), null);
- }
- }
- }
- },
- $signature: 0
- };
- A.StylesheetParser__expression_resolveOperations.prototype = {
- call$0() {
- var t1,
- operators = this._box_0.operators_;
- if (operators == null)
- return;
- for (t1 = this.resolveOneOperation; operators.length !== 0;)
- t1.call$0();
- },
- $signature: 0
- };
- A.StylesheetParser__expression_addSingleExpression.prototype = {
- call$1(expression) {
- var t2, spaceExpressions, _this = this,
- t1 = _this._box_0;
- if (t1.singleExpression_ != null) {
- t2 = _this.$this;
- if (t2._inParentheses) {
- t2._inParentheses = false;
- if (t1.allowSlash) {
- _this.resetState.call$0();
- return;
- }
- }
- spaceExpressions = t1.spaceExpressions_;
- if (spaceExpressions == null)
- spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression);
- _this.resolveOperations.call$0();
- t2 = t1.singleExpression_;
- t2.toString;
- spaceExpressions.push(t2);
- t1.allowSlash = true;
- }
- t1.singleExpression_ = expression;
- },
- $signature: 414
- };
- A.StylesheetParser__expression_addOperator.prototype = {
- call$1(operator) {
- var t2, t3, operators, operands, t4, singleExpression,
- t1 = this.$this;
- if (t1.get$plainCss() && operator !== B.BinaryOperator_wdM && operator !== B.BinaryOperator_u15 && operator !== B.BinaryOperator_SjO && operator !== B.BinaryOperator_2No && operator !== B.BinaryOperator_U77) {
- t2 = t1.scanner;
- t3 = operator.operator.length;
- t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
- }
- t2 = this._box_0;
- t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_U77;
- operators = t2.operators_;
- if (operators == null)
- operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator);
- operands = t2.operands_;
- if (operands == null)
- operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression);
- t3 = this.resolveOneOperation;
- t4 = operator.precedence;
- while (true) {
- if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4))
- break;
- t3.call$0();
- }
- operators.push(operator);
- singleExpression = t2.singleExpression_;
- if (singleExpression == null) {
- t3 = t1.scanner;
- t4 = operator.operator.length;
- t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4);
- }
- operands.push(singleExpression);
- t1.whitespace$0();
- t2.singleExpression_ = t1._singleExpression$0();
- },
- $signature: 400
- };
- A.StylesheetParser__expression_resolveSpaceExpressions.prototype = {
- call$0() {
- var t1, spaceExpressions, singleExpression, t2;
- this.resolveOperations.call$0();
- t1 = this._box_0;
- spaceExpressions = t1.spaceExpressions_;
- if (spaceExpressions == null)
- return;
- singleExpression = t1.singleExpression_;
- if (singleExpression == null)
- this.$this.scanner.error$1(0, "Expected expression.");
- spaceExpressions.push(singleExpression);
- t2 = B.JSArray_methods.get$first(spaceExpressions);
- t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression));
- t1.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_nbm, false, t2);
- t1.spaceExpressions_ = null;
- },
- $signature: 0
- };
- A.StylesheetParser_expressionUntilComma_closure.prototype = {
- call$0() {
- return this.$this.scanner.peekChar$0() === 44;
- },
- $signature: 22
- };
- A.StylesheetParser__isHexColor_closure.prototype = {
- call$1(char) {
- return A.CharacterExtension_get_isHex(char);
- },
- $signature: 45
- };
- A.StylesheetParser__unicodeRange_closure.prototype = {
- call$1(char) {
- return char != null && A.CharacterExtension_get_isHex(char);
- },
- $signature: 30
- };
- A.StylesheetParser__unicodeRange_closure0.prototype = {
- call$1(char) {
- return char != null && A.CharacterExtension_get_isHex(char);
- },
- $signature: 30
- };
- A.StylesheetParser_namespacedExpression_closure.prototype = {
- call$0() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 27
- };
- A.StylesheetParser_trySpecialFunction_closure.prototype = {
- call$1(contents) {
- return new A.StringExpression(contents, false);
- },
- $signature: 394
- };
- A.StylesheetParser__expressionUntilComparison_closure.prototype = {
- call$0() {
- var t1 = this.$this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (61 === _0_0) {
- t1 = t1.peekChar$1(1) !== 61;
- break $label0$0;
- }
- if (60 === _0_0 || 62 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $signature: 22
- };
- A.StylesheetParser__publicIdentifier_closure.prototype = {
- call$0() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 27
- };
- A.StylesheetGraph.prototype = {
- modifiedSince$3(url, since, baseImporter) {
- var node = this._stylesheet_graph$_add$3(url, baseImporter, null);
- if (node == null)
- return true;
- return new A.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node)._value > since._value;
- },
- _stylesheet_graph$_add$3(url, baseImporter, baseUrl) {
- var importer, canonicalUrl, _this = this,
- result = _this._ignoreErrors$1(new A.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl));
- if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(result)) {
- importer = result._0;
- canonicalUrl = result._1;
- _this.addCanonical$3(importer, canonicalUrl, result._2);
- return _this._nodes.$index(0, canonicalUrl);
- } else
- return null;
- },
- addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, recanonicalize) {
- var stylesheet, _this = this,
- t1 = _this._nodes;
- if (t1.$index(0, canonicalUrl) != null)
- return B.Set_empty3;
- stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl));
- if (stylesheet == null)
- return B.Set_empty3;
- t1.$indexSet(0, canonicalUrl, A.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl)));
- return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : B.Set_empty3;
- },
- addCanonical$3(importer, canonicalUrl, originalUrl) {
- return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true);
- },
- _upstreamNodes$3(stylesheet, baseImporter, baseUrl) {
- var t6, t7, t8, t9, t10,
- t1 = type$.Uri,
- active = A.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1),
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1),
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1),
- t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1),
- t5 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- new A._FindDependenciesVisitor(t2, t3, t4, t5, A.LinkedHashSet_LinkedHashSet$_empty(type$.nullable_String)).visitChildren$1(stylesheet.children);
- t6 = type$.UnmodifiableSetView_Uri;
- t2 = new A.UnmodifiableSetView0(t2, t6);
- t3 = new A.UnmodifiableSetView0(t3, t6);
- t4 = new A.UnmodifiableSetView0(t4, t6);
- t7 = type$.nullable_StylesheetNode;
- t8 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t7);
- for (t9 = new A.UnionSet(A.LinkedHashSet_LinkedHashSet$_literal([t2, t3, t4], type$.Set_Uri), type$.UnionSet_Uri).get$_union_set$_iterable(), t9 = t9.get$iterator(t9); t9.moveNext$0();) {
- t10 = t9.get$current(t9);
- t8.$indexSet(0, t10, this._nodeFor$4(t10, baseImporter, baseUrl, active));
- }
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t7);
- for (t2 = new A.DependencyReport(t2, t3, t4, new A.UnmodifiableSetView0(t5, t6)).imports._base.get$iterator(0); t2.moveNext$0();) {
- t3 = t2.get$current(0);
- t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true));
- }
- return new A._Record_2_imports_modules(t1, t8);
- },
- reload$1(canonicalUrl) {
- var stylesheet, upstream, _this = this,
- node = _this._nodes.$index(0, canonicalUrl);
- if (node == null)
- throw A.wrapException(A.StateError$(canonicalUrl.toString$0(0) + " is not in the dependency graph."));
- _this._transitiveModificationTimes.clear$0(0);
- _this.importCache.clearImport$1(canonicalUrl);
- stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_reload_closure(_this, node, canonicalUrl));
- if (stylesheet == null)
- return false;
- node._stylesheet = stylesheet;
- upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl);
- node._replaceUpstream$2(upstream._1, upstream._0);
- return true;
- },
- _recanonicalizeImports$2(importer, canonicalUrl) {
- var t1, t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this,
- changed = A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode);
- for (t1 = _this._nodes.get$values(0).get$iterator(0), t2 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode, t3 = type$.Uri, t4 = type$.nullable_StylesheetNode; t1.moveNext$0();) {
- t5 = t1.get$current(0);
- newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false);
- newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true);
- if (newUpstream.__js_helper$_length !== 0 || newUpstreamImports.__js_helper$_length !== 0) {
- changed.add$1(0, t5);
- t5._replaceUpstream$2(A.mergeMaps(new A.UnmodifiableMapView(t5._upstream, t2), newUpstream, t3, t4), A.mergeMaps(new A.UnmodifiableMapView(t5._upstreamImports, t2), newUpstreamImports, t3, t4));
- }
- }
- if (changed._collection$_length !== 0)
- _this._transitiveModificationTimes.clear$0(0);
- return changed;
- },
- _recanonicalizeImportsForNode$4$forImport(node, importer, canonicalUrl, forImport) {
- var url, result, t2, newMap, t3, t4, t5, t6, upstream, exception, newCanonicalUrl,
- t1 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode,
- map = forImport ? new A.UnmodifiableMapView(node._upstreamImports, t1) : new A.UnmodifiableMapView(node._upstream, t1);
- t1 = type$.Uri;
- t2 = type$.nullable_StylesheetNode;
- newMap = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t1 = A.MapExtensions_get_pairs(map, t1, t2), t1 = t1.get$iterator(t1), t2 = this._nodes, t3 = this.importCache, t4 = node.importer, t5 = node.canonicalUrl; t1.moveNext$0();) {
- t6 = t1.get$current(t1);
- url = null;
- url = t6._0;
- upstream = t6._1;
- if (!importer.couldCanonicalize$2(url, canonicalUrl))
- continue;
- t3.clearCanonicalize$1(url);
- result = null;
- try {
- result = t3.canonicalize$4$baseImporter$baseUrl$forImport(0, url, t4, t5, forImport);
- } catch (exception) {
- }
- t6 = result;
- newCanonicalUrl = t6 == null ? null : t6._1;
- if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl))
- continue;
- t6 = url;
- newMap.$indexSet(0, t6, result == null ? null : t2.$index(0, newCanonicalUrl));
- }
- return newMap;
- },
- _nodeFor$5$forImport(url, baseImporter, baseUrl, active, forImport) {
- var canonicalUrl, t2, _1_0, stylesheet, t3, t4, node, _this = this, t1 = {},
- result = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport));
- if (result == null)
- return null;
- t1.originalUrl = t1.canonicalUrl = t1.importer = null;
- t1.importer = result._0;
- canonicalUrl = t1.canonicalUrl = result._1;
- t1.originalUrl = result._2;
- t2 = _this._nodes;
- _1_0 = t2.$index(0, canonicalUrl);
- if (_1_0 != null)
- return _1_0;
- if (active.contains$1(0, canonicalUrl))
- return null;
- stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure0(t1, _this));
- if (stylesheet == null)
- return null;
- active.add$1(0, t1.canonicalUrl);
- t3 = t1.importer;
- t4 = t1.canonicalUrl;
- node = A.StylesheetNode$_(stylesheet, t3, t4, _this._upstreamNodes$3(stylesheet, t3, t4));
- active.remove$1(0, t1.canonicalUrl);
- t2.$indexSet(0, t1.canonicalUrl, node);
- return node;
- },
- _nodeFor$4(url, baseImporter, baseUrl, active) {
- return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false);
- },
- _ignoreErrors$1$1(callback) {
- var t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- return null;
- }
- },
- _ignoreErrors$1(callback) {
- return this._ignoreErrors$1$1(callback, type$.dynamic);
- }
- };
- A.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = {
- call$1(node) {
- return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this));
- },
- $signature: 393
- };
- A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = {
- call$0() {
- var t2, t3, upstreamTime,
- t1 = this.node,
- latest = t1.importer.modificationTime$1(t1.canonicalUrl);
- for (t1 = t1._upstream.get$values(0).followedBy$1(0, t1._upstreamImports.get$values(0)), t1 = new A.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second), t2 = this.transitiveModificationTime; t1.moveNext$0();) {
- t3 = t1._currentIterator;
- t3 = t3.get$current(t3);
- upstreamTime = t3 == null ? new A.DateTime(Date.now(), false) : t2.call$1(t3);
- if (upstreamTime._value > latest._value)
- latest = upstreamTime;
- }
- return latest;
- },
- $signature: 148
- };
- A.StylesheetGraph__add_closure.prototype = {
- call$0() {
- var _this = this;
- return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(0, _this.url, _this.baseImporter, _this.baseUrl);
- },
- $signature: 122
- };
- A.StylesheetGraph_addCanonical_closure.prototype = {
- call$0() {
- var _this = this;
- return _this.$this.importCache.importCanonical$3$originalUrl(_this.importer, _this.canonicalUrl, _this.originalUrl);
- },
- $signature: 81
- };
- A.StylesheetGraph_reload_closure.prototype = {
- call$0() {
- return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl);
- },
- $signature: 81
- };
- A.StylesheetGraph__nodeFor_closure.prototype = {
- call$0() {
- var _this = this;
- return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(0, _this.url, _this.baseImporter, _this.baseUrl, _this.forImport);
- },
- $signature: 122
- };
- A.StylesheetGraph__nodeFor_closure0.prototype = {
- call$0() {
- var t1 = this._box_0;
- return this.$this.importCache.importCanonical$3$originalUrl(t1.importer, t1.canonicalUrl, t1.originalUrl);
- },
- $signature: 81
- };
- A.StylesheetNode.prototype = {
- StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream) {
- var t1, t2;
- for (t1 = this._upstream.get$values(0).followedBy$1(0, this._upstreamImports.get$values(0)), t1 = new A.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second); t1.moveNext$0();) {
- t2 = t1._currentIterator;
- t2 = t2.get$current(t2);
- if (t2 != null)
- t2._downstream.add$1(0, this);
- }
- },
- _replaceUpstream$2(newUpstream, newUpstreamImports) {
- var t3, oldUpstream, newUpstreamSet, _this = this,
- t1 = type$.nullable_StylesheetNode,
- t2 = A.LinkedHashSet_LinkedHashSet$of(_this._upstream.get$values(0), t1);
- t2.addAll$1(0, _this._upstreamImports.get$values(0));
- t3 = type$.StylesheetNode;
- oldUpstream = A.SetExtension_removeNull(t2, t3);
- t1 = A.LinkedHashSet_LinkedHashSet$of(newUpstream.get$values(0), t1);
- t1.addAll$1(0, newUpstreamImports.get$values(0));
- newUpstreamSet = A.SetExtension_removeNull(t1, t3);
- for (t1 = oldUpstream.difference$1(newUpstreamSet), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- t1.get$current(t1)._downstream.remove$1(0, _this);
- for (t1 = newUpstreamSet.difference$1(oldUpstream), t1 = t1.get$iterator(t1); t1.moveNext$0();)
- t1.get$current(t1)._downstream.add$1(0, _this);
- _this._upstream = newUpstream;
- _this._upstreamImports = newUpstreamImports;
- },
- _stylesheet_graph$_remove$0() {
- var t1, t2, t3, t4, _i, url, _this = this;
- for (t1 = A.LinkedHashSet_LinkedHashSet$of(_this._upstream.get$values(0), type$.nullable_StylesheetNode), t1.addAll$1(0, _this._upstreamImports.get$values(0)), t1 = A._LinkedHashSetIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- if (t3 == null)
- continue;
- t3._downstream.remove$1(0, _this);
- }
- for (t1 = _this._downstream.get$iterator(0); t1.moveNext$0();) {
- t2 = t1.get$current(0);
- for (t3 = t2._upstream, t4 = A._instanceType(t3)._eval$1("LinkedHashMapKeyIterable<1>"), t4 = A.List_List$of(new A.LinkedHashMapKeyIterable(t3, t4), true, t4._eval$1("Iterable.E")), t3 = t4.length, _i = 0; _i < t3; ++_i) {
- url = t4[_i];
- if (J.$eq$(t2._upstream.$index(0, url), _this)) {
- t2._upstream.$indexSet(0, url, null);
- break;
- }
- }
- for (t3 = t2._upstreamImports, t4 = A._instanceType(t3)._eval$1("LinkedHashMapKeyIterable<1>"), t4 = A.List_List$of(new A.LinkedHashMapKeyIterable(t3, t4), true, t4._eval$1("Iterable.E")), t3 = t4.length, _i = 0; _i < t3; ++_i) {
- url = t4[_i];
- if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) {
- t2._upstreamImports.$indexSet(0, url, null);
- break;
- }
- }
- }
- },
- toString$0(_) {
- var t1 = this._stylesheet.span;
- t1 = A.NullableExtension_andThen(t1.get$sourceUrl(t1), A.path__prettyUri$closure());
- return t1 == null ? "<unknown>" : t1;
- }
- };
- A.Syntax.prototype = {
- _enumToString$0() {
- return "Syntax." + this._name;
- },
- toString$0(_) {
- return this._syntax$_name;
- }
- };
- A.Box.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return this.$ti._is(other) && other._box$_inner === this._box$_inner;
- },
- get$hashCode(_) {
- return A.Primitives_objectHashCode(this._box$_inner);
- }
- };
- A.ModifiableBox.prototype = {};
- A.LazyFileSpan.prototype = {
- get$span(_) {
- var t1 = this._lazy_file_span$_span;
- return t1 == null ? this._lazy_file_span$_span = this._builder.call$0() : t1;
- },
- compareTo$1(_, other) {
- return this.get$span(0).compareTo$1(0, other);
- },
- get$context(_) {
- var t1 = this.get$span(0);
- return t1.get$context(t1);
- },
- get$end(_) {
- var t1 = this.get$span(0);
- return t1.get$end(t1);
- },
- expand$1(_, other) {
- return this.get$span(0).expand$1(0, other);
- },
- get$file(_) {
- var t1 = this.get$span(0);
- return t1.get$file(t1);
- },
- highlight$1$color(color) {
- return this.get$span(0).highlight$1$color(color);
- },
- get$length(_) {
- var t1 = this.get$span(0);
- return t1.get$length(t1);
- },
- message$2$color(_, message, color) {
- return this.get$span(0).message$2$color(0, message, color);
- },
- message$1(_, message) {
- return this.message$2$color(0, message, null);
- },
- get$sourceUrl(_) {
- var t1 = this.get$span(0);
- return t1.get$sourceUrl(t1);
- },
- get$start(_) {
- var t1 = this.get$span(0);
- return t1.get$start(t1);
- },
- get$text() {
- return this.get$span(0).get$text();
- },
- $isComparable: 1,
- $isFileSpan: 1,
- $isSourceSpan: 1,
- $isSourceSpanWithContext: 1
- };
- A.LimitedMapView.prototype = {
- get$keys(_) {
- return this._limited_map_view$_keys;
- },
- get$length(_) {
- return this._limited_map_view$_keys._collection$_length;
- },
- get$isEmpty(_) {
- return this._limited_map_view$_keys._collection$_length === 0;
- },
- get$isNotEmpty(_) {
- return this._limited_map_view$_keys._collection$_length !== 0;
- },
- $index(_, key) {
- return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null;
- },
- containsKey$1(key) {
- return this._limited_map_view$_keys.contains$1(0, key);
- },
- remove$1(_, key) {
- return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null;
- }
- };
- A.MapExtensions_get_pairs_closure.prototype = {
- call$1(e) {
- return new A._Record_2(e.key, e.value);
- },
- $signature() {
- return this.K._eval$1("@<0>")._bind$1(this.V)._eval$1("+(1,2)(MapEntry<1,2>)");
- }
- };
- A.MergedMapView.prototype = {
- get$keys(_) {
- var t1 = this._mapsByKey;
- return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
- },
- get$length(_) {
- return this._mapsByKey.__js_helper$_length;
- },
- get$isEmpty(_) {
- return this._mapsByKey.__js_helper$_length === 0;
- },
- get$isNotEmpty(_) {
- return this._mapsByKey.__js_helper$_length !== 0;
- },
- MergedMapView$1(maps, $K, $V) {
- var t1, t2, t3, _i, map, t4, t5, t6;
- 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, A.throwConcurrentModificationError)(maps), ++_i) {
- map = maps[_i];
- if (t3._is(map))
- for (t4 = map._mapsByKey.get$values(0), t5 = A._instanceType(t4), t5 = t5._eval$1("@<1>")._bind$1(t5._rest[1]), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f, t5._eval$1("MappedIterator<1,2>")), t5 = t5._rest[1]; t4.moveNext$0();) {
- t6 = t4.__internal$_current;
- if (t6 == null)
- t6 = t5._as(t6);
- A.setAll(t2, t6.get$keys(t6), t6);
- }
- else
- A.setAll(t2, map.get$keys(map), map);
- }
- },
- $index(_, key) {
- var t1 = this._mapsByKey.$index(0, this.$ti._precomputed1._as(key));
- return t1 == null ? null : t1.$index(0, key);
- },
- $indexSet(_, key, value) {
- var _0_0 = this._mapsByKey.$index(0, key);
- if (_0_0 != null)
- _0_0.$indexSet(0, key, value);
- else
- throw A.wrapException(A.UnsupportedError$(string$.New_en));
- },
- remove$1(_, key) {
- throw A.wrapException(A.UnsupportedError$(string$.Entrie));
- },
- containsKey$1(key) {
- return this._mapsByKey.containsKey$1(key);
- }
- };
- A.MultiDirWatcher.prototype = {
- watch$1(_, directory) {
- var t1, t2, t3, t4, isParentOfExistingDir, _i, t5, _0_1, existingWatcher, future, completer;
- for (t1 = this._watchers, t2 = A.MapExtensions_get_pairs(t1, type$.nullable_String, type$.Stream_WatchEvent).toList$0(0), t3 = t2.length, t1 = t1._map, t4 = this._group, isParentOfExistingDir = false, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- t5 = t2[_i];
- _0_1 = t5._0;
- _0_1.toString;
- existingWatcher = t5._1;
- if (!isParentOfExistingDir) {
- t5 = $.$get$context();
- t5 = t5._isWithinOrEquals$2(_0_1, directory) === B._PathRelation_equal || t5._isWithinOrEquals$2(_0_1, directory) === B._PathRelation_within;
- } else
- t5 = false;
- if (t5) {
- t1 = new A._Future($.Zone__current, type$._Future_void);
- t1._asyncComplete$1(null);
- return t1;
- }
- if ($.$get$context()._isWithinOrEquals$2(directory, _0_1) === B._PathRelation_within) {
- t1.remove$1(0, _0_1);
- t4.remove$1(0, existingWatcher);
- isParentOfExistingDir = true;
- }
- }
- future = A.watchDir(directory, this._poll);
- t2 = new A._CompleterStream(type$._CompleterStream_WatchEvent);
- completer = new A.StreamCompleter(t2, type$.StreamCompleter_WatchEvent);
- future.then$1$2$onError(0, completer.get$setSourceStream(), completer.get$setError(), type$.void);
- t1.$indexSet(0, directory, t2);
- t4.add$1(0, t2);
- return future;
- }
- };
- A.MultiSpan.prototype = {
- get$start(_) {
- var t1 = this._multi_span$_primary;
- return t1.get$start(t1);
- },
- get$end(_) {
- var t1 = this._multi_span$_primary;
- return t1.get$end(t1);
- },
- get$text() {
- return this._multi_span$_primary.get$text();
- },
- get$context(_) {
- var t1 = this._multi_span$_primary;
- return t1.get$context(t1);
- },
- get$file(_) {
- var t1 = this._multi_span$_primary;
- return t1.get$file(t1);
- },
- get$length(_) {
- var t1 = this._multi_span$_primary;
- return t1.get$length(t1);
- },
- get$sourceUrl(_) {
- var t1 = this._multi_span$_primary;
- return t1.get$sourceUrl(t1);
- },
- compareTo$1(_, other) {
- return this._multi_span$_primary.compareTo$1(0, other);
- },
- toString$0(_) {
- return this._multi_span$_primary.toString$0(0);
- },
- expand$1(_, other) {
- return new A.MultiSpan(this._multi_span$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans);
- },
- highlight$1$color(color) {
- return A.Highlighter$multiple(this._multi_span$_primary, this.primaryLabel, this.secondarySpans, color === true, null, null).highlight$0();
- },
- message$2$color(_, message, color) {
- var t1 = J.$eq$(color, true) || typeof color == "string",
- t2 = typeof color == "string" ? color : null;
- return A.SourceSpanExtension_messageMultiple(this._multi_span$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2, null);
- },
- message$1(_, message) {
- return this.message$2$color(0, message, null);
- },
- $isComparable: 1,
- $isFileSpan: 1,
- $isSourceSpan: 1,
- $isSourceSpanWithContext: 1
- };
- A.NoSourceMapBuffer.prototype = {
- get$length(_) {
- return this._no_source_map_buffer$_buffer._contents.length;
- },
- forSpan$1$2(span, callback) {
- return callback.call$0();
- },
- forSpan$2(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- write$1(_, object) {
- var t1 = this._no_source_map_buffer$_buffer,
- t2 = A.S(object);
- t1._contents += t2;
- return null;
- },
- writeCharCode$1(charCode) {
- var t1 = this._no_source_map_buffer$_buffer,
- t2 = A.Primitives_stringFromCharCode(charCode);
- t1._contents += t2;
- return null;
- },
- toString$0(_) {
- var t1 = this._no_source_map_buffer$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix(prefix) {
- return A.throwExpression(A.UnsupportedError$(string$.NoSour));
- }
- };
- A.PrefixedMapView.prototype = {
- get$keys(_) {
- return new A._PrefixedKeys(this);
- },
- get$length(_) {
- var t1 = this._prefixed_map_view$_map;
- return t1.get$length(t1);
- },
- get$isEmpty(_) {
- var t1 = this._prefixed_map_view$_map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty(_) {
- var t1 = this._prefixed_map_view$_map;
- return t1.get$isNotEmpty(t1);
- },
- $index(_, key) {
- return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefix) ? this._prefixed_map_view$_map.$index(0, J.substring$1$s(key, this._prefix.length)) : null;
- },
- containsKey$1(key) {
- return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefix) && this._prefixed_map_view$_map.containsKey$1(J.substring$1$s(key, this._prefix.length));
- }
- };
- A._PrefixedKeys.prototype = {
- get$length(_) {
- var t1 = this._view._prefixed_map_view$_map;
- return t1.get$length(t1);
- },
- get$iterator(_) {
- var t1 = this._view._prefixed_map_view$_map;
- t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure(this), type$.String);
- return t1.get$iterator(t1);
- },
- contains$1(_, key) {
- return this._view.containsKey$1(key);
- }
- };
- A._PrefixedKeys_iterator_closure.prototype = {
- call$1(key) {
- return this.$this._view._prefix + key;
- },
- $signature: 5
- };
- A.PublicMemberMapView.prototype = {
- get$keys(_) {
- var t1 = this._public_member_map_view$_inner;
- return J.where$1$ax(t1.get$keys(t1), A.utils__isPublic$closure());
- },
- containsKey$1(key) {
- return typeof key == "string" && A.isPublic(key) && this._public_member_map_view$_inner.containsKey$1(key);
- },
- $index(_, key) {
- if (typeof key == "string" && A.isPublic(key))
- return this._public_member_map_view$_inner.$index(0, key);
- return null;
- }
- };
- A.SourceMapBuffer.prototype = {
- get$_targetLocation() {
- var t1 = this._source_map_buffer$_buffer._contents,
- t2 = this._line;
- return A.SourceLocation$(t1.length, this._column, t2, null);
- },
- get$length(_) {
- return this._source_map_buffer$_buffer._contents.length;
- },
- forSpan$1$2(span, callback) {
- var t1, _this = this,
- wasInSpan = _this._inSpan;
- _this._inSpan = true;
- _this._addEntry$2(span.get$start(span), _this.get$_targetLocation());
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._inSpan = wasInSpan;
- }
- },
- forSpan$2(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- _addEntry$2(source, target) {
- var entry, t2,
- t1 = this._entries;
- if (t1.length !== 0) {
- entry = B.JSArray_methods.get$last(t1);
- t2 = entry.source;
- if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line)
- return;
- if (entry.target.offset === target.offset)
- return;
- }
- t1.push(new A.Entry(source, target, null));
- },
- write$1(_, object) {
- var t1, i,
- string = J.toString$0$(object);
- this._source_map_buffer$_buffer._contents += string;
- for (t1 = string.length, i = 0; i < t1; ++i)
- if (string.charCodeAt(i) === 10)
- this._source_map_buffer$_writeLine$0();
- else
- ++this._column;
- },
- writeCharCode$1(charCode) {
- var t1 = this._source_map_buffer$_buffer,
- t2 = A.Primitives_stringFromCharCode(charCode);
- t1._contents += t2;
- if (charCode === 10)
- this._source_map_buffer$_writeLine$0();
- else
- ++this._column;
- },
- _source_map_buffer$_writeLine$0() {
- var _this = this,
- t1 = _this._entries;
- if (B.JSArray_methods.get$last(t1).target.line === _this._line && B.JSArray_methods.get$last(t1).target.column === _this._column)
- t1.pop();
- ++_this._line;
- _this._column = 0;
- if (_this._inSpan)
- t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null));
- },
- toString$0(_) {
- var t1 = this._source_map_buffer$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix(prefix) {
- var i, t2, prefixColumn, _box_0 = {},
- t1 = prefix.length;
- if (t1 === 0)
- return A.SingleMapping_SingleMapping$fromEntries(this._entries);
- _box_0.prefixColumn = _box_0.prefixLines = 0;
- for (i = 0, t2 = 0; i < t1; ++i)
- if (prefix.charCodeAt(i) === 10) {
- ++_box_0.prefixLines;
- _box_0.prefixColumn = 0;
- t2 = 0;
- } else {
- prefixColumn = t2 + 1;
- _box_0.prefixColumn = prefixColumn;
- t2 = prefixColumn;
- }
- t2 = this._entries;
- return A.SingleMapping_SingleMapping$fromEntries(new A.MappedListIterable(t2, new A.SourceMapBuffer_buildSourceMap_closure(_box_0, t1), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
- }
- };
- A.SourceMapBuffer_buildSourceMap_closure.prototype = {
- call$1(entry) {
- var t1 = entry.target,
- t2 = t1.line,
- t3 = this._box_0,
- t4 = t3.prefixLines;
- t3 = t2 === 0 ? t3.prefixColumn : 0;
- return new A.Entry(entry.source, A.SourceLocation$(t1.offset + this.prefixLength, t1.column + t3, t2 + t4, null), entry.identifierName);
- },
- $signature: 158
- };
- A.UnprefixedMapView.prototype = {
- get$keys(_) {
- return new A._UnprefixedKeys(this);
- },
- $index(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, this._unprefixed_map_view$_prefix + key) : null;
- },
- containsKey$1(key) {
- return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(this._unprefixed_map_view$_prefix + key);
- },
- remove$1(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, this._unprefixed_map_view$_prefix + key) : null;
- }
- };
- A._UnprefixedKeys.prototype = {
- get$iterator(_) {
- var t1 = this._unprefixed_map_view$_view._unprefixed_map_view$_map;
- t1 = J.where$1$ax(t1.get$keys(t1), new A._UnprefixedKeys_iterator_closure(this)).map$1$1(0, new A._UnprefixedKeys_iterator_closure0(this), type$.String);
- return t1.get$iterator(t1);
- },
- contains$1(_, key) {
- return this._unprefixed_map_view$_view.containsKey$1(key);
- }
- };
- A._UnprefixedKeys_iterator_closure.prototype = {
- call$1(key) {
- return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix);
- },
- $signature: 4
- };
- A._UnprefixedKeys_iterator_closure0.prototype = {
- call$1(key) {
- return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length);
- },
- $signature: 5
- };
- A.indent_closure.prototype = {
- call$1(line) {
- return B.JSString_methods.$mul(" ", this.indentation) + line;
- },
- $signature: 5
- };
- A.flattenVertically_closure.prototype = {
- call$1(inner) {
- return A.QueueList_QueueList$from(inner, this.T);
- },
- $signature() {
- return this.T._eval$1("QueueList<0>(Iterable<0>)");
- }
- };
- A.flattenVertically_closure0.prototype = {
- call$1(queue) {
- this.result.push(queue.removeFirst$0());
- return queue.get$length(0) === 0;
- },
- $signature() {
- return this.T._eval$1("bool(QueueList<0>)");
- }
- };
- A.longestCommonSubsequence_backtrack.prototype = {
- call$2(i, j) {
- var selection, t1, _this = this;
- if (i === -1 || j === -1)
- return A._setArrayType([], _this.T._eval$1("JSArray<0>"));
- selection = _this.selections[i][j];
- if (selection != null) {
- t1 = _this.call$2(i - 1, j - 1);
- J.add$1$ax(t1, selection);
- return t1;
- }
- t1 = _this.lengths;
- return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
- },
- $signature() {
- return this.T._eval$1("List<0>(int,int)");
- }
- };
- A.mapAddAll2_closure.prototype = {
- call$2(key, inner) {
- var t1 = this.destination,
- _0_0 = t1.$index(0, key);
- if (_0_0 != null)
- _0_0.addAll$1(0, inner);
- else
- t1.$indexSet(0, key, inner);
- },
- $signature() {
- return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)");
- }
- };
- A.Value.prototype = {
- get$isTruthy() {
- return true;
- },
- get$separator(_) {
- return B.ListSeparator_undecided_null_undecided;
- },
- get$hasBrackets() {
- return false;
- },
- get$asList() {
- return A._setArrayType([this], type$.JSArray_Value);
- },
- get$lengthAsList() {
- return 1;
- },
- get$isBlank() {
- return false;
- },
- get$isSpecialNumber() {
- return false;
- },
- get$isVar() {
- return false;
- },
- get$realNull() {
- return this;
- },
- sassIndexToListIndex$2(sassIndex, $name) {
- var t1, index,
- indexValue = sassIndex.assertNumber$1($name);
- if (indexValue.get$hasUnits()) {
- t1 = indexValue.get$unitString();
- A.warnForDeprecation("$" + $name + ": Passing a number with unit " + t1 + string$.x20is_de + indexValue.unitSuggestion$1($name) + string$.x0a_Morex3a, B.Deprecation_2jN);
- }
- index = indexValue.assertInt$1($name);
- if (index === 0)
- throw A.wrapException(A.SassScriptException$("List index may not be 0.", $name));
- if (Math.abs(index) > this.get$lengthAsList())
- throw A.wrapException(A.SassScriptException$("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name));
- return index < 0 ? this.get$lengthAsList() + index : index - 1;
- },
- assertCalculation$1($name) {
- return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a calculation.", $name));
- },
- assertColor$1($name) {
- return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a color.", $name));
- },
- assertFunction$1($name) {
- return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a function reference.", $name));
- },
- assertMixin$1($name) {
- return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a mixin reference.", $name));
- },
- assertMap$1($name) {
- return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a map.", $name));
- },
- tryMap$0() {
- return null;
- },
- assertNumber$1($name) {
- return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a number.", $name));
- },
- assertNumber$0() {
- return this.assertNumber$1(null);
- },
- assertString$1($name) {
- return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a string.", $name));
- },
- _selectorString$1($name) {
- var _0_0 = this._selectorStringOrNull$0();
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$(this.toString$0(0) + string$.x20is_noav, $name));
- },
- _selectorStringOrNull$0() {
- var t1, t2, result, _1_0, _i, complex, string, compound, _this = this, _null = null;
- if (_this instanceof A.SassString)
- return _this._string$_text;
- if (!(_this instanceof A.SassList))
- return _null;
- t1 = _this._list$_contents;
- t2 = t1.length;
- if (t2 === 0)
- return _null;
- result = A._setArrayType([], type$.JSArray_String);
- $label0$1: {
- _1_0 = _this._separator;
- if (B.ListSeparator_ECn === _1_0) {
- for (_i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (complex instanceof A.SassString) {
- result.push(complex._string$_text);
- continue;
- }
- if (complex instanceof A.SassList && B.ListSeparator_nbm === complex._separator) {
- string = complex._selectorStringOrNull$0();
- if (string == null)
- return _null;
- result.push(string);
- continue;
- }
- return _null;
- }
- break $label0$1;
- }
- if (B.ListSeparator_cQA === _1_0)
- return _null;
- for (_i = 0; _i < t2; ++_i) {
- compound = t1[_i];
- if (!(compound instanceof A.SassString))
- return _null;
- result.push(compound._string$_text);
- }
- break $label0$1;
- }
- return B.JSArray_methods.join$1(result, _1_0 === B.ListSeparator_ECn ? ", " : " ");
- },
- withListContents$2$separator(contents, separator) {
- var t1 = separator == null ? this.get$separator(this) : separator,
- t2 = this.get$hasBrackets();
- return A.SassList$(contents, t1, t2);
- },
- withListContents$1(contents) {
- return this.withListContents$2$separator(contents, null);
- },
- greaterThan$1(other) {
- return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
- },
- greaterThanOrEquals$1(other) {
- return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
- },
- lessThan$1(other) {
- return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
- },
- lessThanOrEquals$1(other) {
- return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
- },
- times$1(other) {
- return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
- },
- modulo$1(other) {
- return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
- },
- plus$1(other) {
- var t1;
- $label0$0: {
- if (other instanceof A.SassString) {
- t1 = new A.SassString(A.serializeValue(this, false, true) + other._string$_text, other._hasQuotes);
- break $label0$0;
- }
- if (other instanceof A.SassCalculation)
- A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- t1 = new A.SassString(A.serializeValue(this, false, true) + A.serializeValue(other, false, true), false);
- break $label0$0;
- }
- return t1;
- },
- minus$1(other) {
- return other instanceof A.SassCalculation ? A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)) : new A.SassString(A.serializeValue(this, false, true) + "-" + A.serializeValue(other, false, true), false);
- },
- dividedBy$1(other) {
- return new A.SassString(A.serializeValue(this, false, true) + "/" + A.serializeValue(other, false, true), false);
- },
- unaryPlus$0() {
- return new A.SassString("+" + A.serializeValue(this, false, true), false);
- },
- unaryMinus$0() {
- return new A.SassString("-" + A.serializeValue(this, false, true), false);
- },
- unaryNot$0() {
- return B.SassBoolean_false;
- },
- withoutSlash$0() {
- return this;
- },
- toString$0(_) {
- return A.serializeValue(this, true, true);
- }
- };
- A.SassArgumentList.prototype = {};
- A.SassBoolean.prototype = {
- get$isTruthy() {
- return this.value;
- },
- accept$1$1(visitor) {
- return visitor._serialize$_buffer.write$1(0, String(this.value));
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unaryNot$0() {
- return this.value ? B.SassBoolean_false : B.SassBoolean_true;
- }
- };
- A.SassCalculation.prototype = {
- get$isSpecialNumber() {
- return true;
- },
- accept$1$1(visitor) {
- return visitor.visitCalculation$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertCalculation$1($name) {
- return this;
- },
- plus$1(other) {
- if (other instanceof A.SassString)
- return this.super$Value$plus(other);
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- },
- minus$1(other) {
- return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
- },
- unaryPlus$0() {
- return A.throwExpression(A.SassScriptException$('Undefined operation "+' + this.toString$0(0) + '".', null));
- },
- unaryMinus$0() {
- return A.throwExpression(A.SassScriptException$('Undefined operation "-' + this.toString$0(0) + '".', null));
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassCalculation && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments);
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments);
- }
- };
- A.SassCalculation__verifyLength_closure.prototype = {
- call$1(arg) {
- return arg instanceof A.SassString;
- },
- $signature: 75
- };
- A.CalculationOperation.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.CalculationOperation && this._operator === other._operator && J.$eq$(this._left, other._left) && J.$eq$(this._right, other._right);
- },
- get$hashCode(_) {
- return (A.Primitives_objectHashCode(this._operator) ^ J.get$hashCode$(this._left) ^ J.get$hashCode$(this._right)) >>> 0;
- },
- toString$0(_) {
- var parenthesized = A.serializeValue(new A.SassCalculation("", A._setArrayType([this], type$.JSArray_Object)), true, true);
- return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1);
- }
- };
- A.CalculationOperator.prototype = {
- _enumToString$0() {
- return "CalculationOperator." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.SassColor.prototype = {
- get$red(_) {
- var t1;
- if (this._red == null)
- this._hslToRgb$0();
- t1 = this._red;
- t1.toString;
- return t1;
- },
- get$green(_) {
- var t1;
- if (this._green == null)
- this._hslToRgb$0();
- t1 = this._green;
- t1.toString;
- return t1;
- },
- get$blue(_) {
- var t1;
- if (this._blue == null)
- this._hslToRgb$0();
- t1 = this._blue;
- t1.toString;
- return t1;
- },
- get$hue(_) {
- var t1;
- if (this._hue == null)
- this._rgbToHsl$0();
- t1 = this._hue;
- t1.toString;
- return t1;
- },
- get$saturation(_) {
- var t1;
- if (this._saturation == null)
- this._rgbToHsl$0();
- t1 = this._saturation;
- t1.toString;
- return t1;
- },
- get$lightness(_) {
- var t1;
- if (this._lightness == null)
- this._rgbToHsl$0();
- t1 = this._lightness;
- t1.toString;
- return t1;
- },
- get$whiteness(_) {
- return Math.min(Math.min(this.get$red(0), this.get$green(0)), this.get$blue(0)) / 255 * 100;
- },
- get$blackness(_) {
- return 100 - Math.max(Math.max(this.get$red(0), this.get$green(0)), this.get$blue(0)) / 255 * 100;
- },
- accept$1$1(visitor) {
- return visitor.visitColor$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertColor$1($name) {
- return this;
- },
- changeRgb$4$alpha$blue$green$red(alpha, blue, green, red) {
- return A.SassColor$rgb(red, green, blue, alpha == null ? this._alpha : alpha);
- },
- changeRgb$3$blue$green$red(blue, green, red) {
- return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
- },
- changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation) {
- var _this = this, _null = null,
- t1 = hue == null ? _this.get$hue(0) : hue,
- t2 = saturation == null ? _this.get$saturation(0) : saturation,
- t3 = lightness == null ? _this.get$lightness(0) : lightness,
- t4 = A.SassColor__handleNullAlpha(alpha == null ? _this._alpha : alpha);
- return new A.SassColor(_null, _null, _null, B.JSNumber_methods.$mod(t1, 360), A.fuzzyAssertRange(t2, 0, 100, "saturation"), A.fuzzyAssertRange(t3, 0, 100, "lightness"), A.fuzzyAssertRange(t4, 0, 1, "alpha"), _null);
- },
- changeHsl$1$saturation(saturation) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
- },
- changeHsl$1$lightness(lightness) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
- },
- changeHsl$1$hue(hue) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
- },
- changeAlpha$1(alpha) {
- var _this = this;
- return new A.SassColor(_this._red, _this._green, _this._blue, _this._hue, _this._saturation, _this._lightness, A.fuzzyAssertRange(alpha, 0, 1, "alpha"), null);
- },
- plus$1(other) {
- if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
- return this.super$Value$plus(other);
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- },
- minus$1(other) {
- if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
- return this.super$Value$minus(other);
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
- },
- dividedBy$1(other) {
- if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
- return this.super$Value$dividedBy(other);
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null));
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A.SassColor && other.get$red(0) === _this.get$red(0) && other.get$green(0) === _this.get$green(0) && other.get$blue(0) === _this.get$blue(0) && other._alpha === _this._alpha;
- },
- get$hashCode(_) {
- var _this = this;
- return B.JSInt_methods.get$hashCode(_this.get$red(0)) ^ B.JSInt_methods.get$hashCode(_this.get$green(0)) ^ B.JSInt_methods.get$hashCode(_this.get$blue(0)) ^ B.JSNumber_methods.get$hashCode(_this._alpha);
- },
- _rgbToHsl$0() {
- var t2, lightness, _this = this,
- scaledRed = _this.get$red(0) / 255,
- scaledGreen = _this.get$green(0) / 255,
- scaledBlue = _this.get$blue(0) / 255,
- max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
- min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
- delta = max - min,
- t1 = max === min;
- if (t1)
- _this._hue = 0;
- else if (max === scaledRed)
- _this._hue = B.JSNumber_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
- else if (max === scaledGreen)
- _this._hue = B.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
- else if (max === scaledBlue)
- _this._hue = B.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
- t2 = max + min;
- lightness = 50 * t2;
- _this._lightness = lightness;
- if (t1)
- _this._saturation = 0;
- else {
- t1 = 100 * delta;
- if (lightness < 50)
- _this._saturation = t1 / t2;
- else
- _this._saturation = t1 / (2 - max - min);
- }
- },
- _hslToRgb$0() {
- var _this = this,
- scaledHue = _this.get$hue(0) / 360,
- scaledSaturation = _this.get$saturation(0) / 100,
- scaledLightness = _this.get$lightness(0) / 100,
- m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
- m1 = scaledLightness * 2 - m2;
- _this._red = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue + 0.3333333333333333) * 255);
- _this._green = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue) * 255);
- _this._blue = A.fuzzyRound(A.SassColor__hueToRgb(m1, m2, scaledHue - 0.3333333333333333) * 255);
- }
- };
- A.SassColor_SassColor$hwb_toRgb.prototype = {
- call$1(hue) {
- return A.fuzzyRound((A.SassColor__hueToRgb(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255);
- },
- $signature: 159
- };
- A._ColorFormatEnum.prototype = {
- toString$0(_) {
- return this._color$_name;
- }
- };
- A.SpanColorFormat.prototype = {};
- A.SassFunction.prototype = {
- accept$1$1(visitor) {
- var t1, t2;
- if (!visitor._inspect)
- A.throwExpression(A.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value.", null));
- t1 = visitor._serialize$_buffer;
- t1.write$1(0, "get-function(");
- t2 = this.callable;
- visitor._visitQuotedString$1(t2.get$name(t2));
- t1.writeCharCode$1(41);
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertFunction$1($name) {
- return this;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassFunction && this.callable.$eq(0, other.callable);
- },
- get$hashCode(_) {
- var t1 = this.callable;
- return t1.get$hashCode(t1);
- }
- };
- A.SassList.prototype = {
- get$separator(_) {
- return this._separator;
- },
- get$hasBrackets() {
- return this._hasBrackets;
- },
- get$isBlank() {
- return !this._hasBrackets && B.JSArray_methods.every$1(this._list$_contents, new A.SassList_isBlank_closure());
- },
- get$asList() {
- return this._list$_contents;
- },
- get$lengthAsList() {
- return this._list$_contents.length;
- },
- SassList$3$brackets(contents, _separator, brackets) {
- if (this._separator === B.ListSeparator_undecided_null_undecided && this._list$_contents.length > 1)
- throw A.wrapException(A.ArgumentError$(string$.A_list, null));
- },
- accept$1$1(visitor) {
- return visitor.visitList$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1($name) {
- return this._list$_contents.length === 0 ? B.SassMap_Map_empty : this.super$Value$assertMap($name);
- },
- tryMap$0() {
- return this._list$_contents.length === 0 ? B.SassMap_Map_empty : null;
- },
- $eq(_, other) {
- var t1, _this = this;
- if (other == null)
- return false;
- if (!(other instanceof A.SassList && other._separator === _this._separator && other._hasBrackets === _this._hasBrackets && B.C_ListEquality.equals$2(0, other._list$_contents, _this._list$_contents)))
- t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0;
- else
- t1 = true;
- return t1;
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this._list$_contents);
- }
- };
- A.SassList_isBlank_closure.prototype = {
- call$1(element) {
- return element.get$isBlank();
- },
- $signature: 72
- };
- A.ListSeparator.prototype = {
- _enumToString$0() {
- return "ListSeparator." + this._name;
- },
- toString$0(_) {
- return this._list$_name;
- }
- };
- A.SassMap.prototype = {
- get$separator(_) {
- var t1 = this._map$_contents;
- return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided : B.ListSeparator_ECn;
- },
- get$asList() {
- var t3, t4, t5, result,
- t1 = type$.JSArray_Value,
- t2 = A._setArrayType([], t1);
- for (t3 = type$.Value, t4 = A.MapExtensions_get_pairs(this._map$_contents, t3, t3), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- result = A.List_List$from(A._setArrayType([t5._0, t5._1], t1), false, t3);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t2.push(new A.SassList(result, B.ListSeparator_nbm, false));
- }
- return t2;
- },
- get$lengthAsList() {
- var t1 = this._map$_contents;
- return t1.get$length(t1);
- },
- accept$1$1(visitor) {
- return visitor.visitMap$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1($name) {
- return this;
- },
- tryMap$0() {
- return this;
- },
- $eq(_, other) {
- var t1;
- if (other == null)
- return false;
- if (!(other instanceof A.SassMap && B.C_MapEquality.equals$2(0, other._map$_contents, this._map$_contents))) {
- t1 = this._map$_contents;
- t1 = t1.get$isEmpty(t1) && other instanceof A.SassList && other._list$_contents.length === 0;
- } else
- t1 = true;
- return t1;
- },
- get$hashCode(_) {
- var t1 = this._map$_contents;
- return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty8) : B.C_MapEquality.hash$1(t1);
- }
- };
- A.SassMixin.prototype = {
- accept$1$1(visitor) {
- var t1, t2;
- if (!visitor._inspect)
- A.throwExpression(A.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value.", null));
- t1 = visitor._serialize$_buffer;
- t1.write$1(0, "get-mixin(");
- t2 = this.callable;
- visitor._visitQuotedString$1(t2.get$name(t2));
- t1.writeCharCode$1(41);
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMixin$1($name) {
- return this;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassMixin && this.callable.$eq(0, other.callable);
- },
- get$hashCode(_) {
- var t1 = this.callable;
- return t1.get$hashCode(t1);
- }
- };
- A._SassNull.prototype = {
- get$isTruthy() {
- return false;
- },
- get$isBlank() {
- return true;
- },
- get$realNull() {
- return null;
- },
- accept$1$1(visitor) {
- if (visitor._inspect)
- visitor._serialize$_buffer.write$1(0, "null");
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unaryNot$0() {
- return B.SassBoolean_true;
- }
- };
- A.SassNumber.prototype = {
- get$unitString() {
- var _this = this;
- return _this.get$hasUnits() ? _this._unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : "";
- },
- accept$1$1(visitor) {
- return visitor.visitNumber$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- withoutSlash$0() {
- var _this = this;
- return _this.asSlash == null ? _this : _this.withValue$1(_this._number$_value);
- },
- assertNumber$1($name) {
- return this;
- },
- assertNumber$0() {
- return this.assertNumber$1(null);
- },
- assertInt$1($name) {
- var _0_0 = A.fuzzyAsInt(this._number$_value);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$(this.toString$0(0) + " is not an int.", $name));
- },
- assertInt$0() {
- return this.assertInt$1(null);
- },
- valueInRange$3(min, max, $name) {
- var _this = this,
- _0_0 = A.fuzzyCheckRange(_this._number$_value, min, max);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
- },
- valueInRangeWithUnit$4(min, max, $name, unit) {
- var _0_0 = A.fuzzyCheckRange(this._number$_value, min, max);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
- },
- hasCompatibleUnits$1(other) {
- var _this = this;
- if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
- return false;
- if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
- return false;
- return _this.isComparableTo$1(other);
- },
- assertUnit$2(unit, $name) {
- if (this.hasUnit$1(unit))
- return;
- throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
- },
- assertNoUnits$1($name) {
- if (!this.get$hasUnits())
- return;
- throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to have no units.", $name));
- },
- assertNoUnits$0() {
- return this.assertNoUnits$1(null);
- },
- convertValueToMatch$3(other, $name, otherName) {
- return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName);
- },
- convertValueToMatch$1(other) {
- return this.convertValueToMatch$3(other, null, null);
- },
- coerce$3(newNumerators, newDenominators, $name) {
- return A.SassNumber_SassNumber$withUnits(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators);
- },
- coerce$2(newNumerators, newDenominators) {
- return this.coerce$3(newNumerators, newDenominators, null);
- },
- coerceValue$3(newNumerators, newDenominators, $name) {
- return this._coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name);
- },
- coerceValueToUnit$2(unit, $name) {
- var t1 = type$.JSArray_String;
- return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name);
- },
- coerceValueToUnit$1(unit) {
- return this.coerceValueToUnit$2(unit, null);
- },
- coerceToMatch$3(other, $name, otherName) {
- var t1 = this.coerceValueToMatch$3(other, $name, otherName),
- t2 = other.get$numeratorUnits(other);
- return A.SassNumber_SassNumber$withUnits(t1, other.get$denominatorUnits(other), t2);
- },
- coerceValueToMatch$3(other, $name, otherName) {
- return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName);
- },
- coerceValueToMatch$1(other) {
- return this.coerceValueToMatch$3(other, null, null);
- },
- _coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
- var otherHasUnits, t1, compatibilityException, oldNumerators, _i, oldDenominators, _this = this, _box_0 = {};
- if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators))
- return _this._number$_value;
- otherHasUnits = newNumerators.length !== 0 || newDenominators.length !== 0;
- if (coerceUnitless)
- t1 = !_this.get$hasUnits() || !otherHasUnits;
- else
- t1 = false;
- if (t1)
- return _this._number$_value;
- compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
- _box_0.value = _this._number$_value;
- t1 = _this.get$numeratorUnits(_this);
- oldNumerators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
- for (t1 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t1 || (0, A.throwConcurrentModificationError)(newNumerators), ++_i)
- A.removeFirstWhere(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure(_box_0, newNumerators[_i]), new A.SassNumber__coerceOrConvertValue_closure0(compatibilityException));
- t1 = _this.get$denominatorUnits(_this);
- oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
- for (t1 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t1 || (0, A.throwConcurrentModificationError)(newDenominators), ++_i)
- A.removeFirstWhere(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure1(_box_0, newDenominators[_i]), new A.SassNumber__coerceOrConvertValue_closure2(compatibilityException));
- if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
- throw A.wrapException(compatibilityException.call$0());
- return _box_0.value;
- },
- _coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) {
- return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
- },
- isComparableTo$1(other) {
- var exception;
- if (!this.get$hasUnits() || !other.get$hasUnits())
- return true;
- try {
- this.greaterThan$1(other);
- return true;
- } catch (exception) {
- if (A.unwrapException(exception) instanceof A.SassScriptException)
- return false;
- else
- throw exception;
- }
- },
- greaterThan$1(other) {
- if (other instanceof A.SassNumber)
- return this._coerceUnits$2(other, A.number0__fuzzyGreaterThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
- },
- greaterThanOrEquals$1(other) {
- if (other instanceof A.SassNumber)
- return this._coerceUnits$2(other, A.number0__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
- },
- lessThan$1(other) {
- if (other instanceof A.SassNumber)
- return this._coerceUnits$2(other, A.number0__fuzzyLessThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
- },
- lessThanOrEquals$1(other) {
- if (other instanceof A.SassNumber)
- return this._coerceUnits$2(other, A.number0__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
- },
- modulo$1(other) {
- if (other instanceof A.SassNumber)
- return this.withValue$1(this._coerceUnits$2(other, A.number0__moduloLikeSass$closure()));
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
- },
- plus$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber)
- return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_plus_closure()));
- if (!(other instanceof A.SassColor))
- return _this.super$Value$plus(other);
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- },
- minus$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber)
- return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_minus_closure()));
- if (!(other instanceof A.SassColor))
- return _this.super$Value$minus(other);
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
- },
- times$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber) {
- if (!other.get$hasUnits())
- return _this.withValue$1(_this._number$_value * other._number$_value);
- return _this.multiplyUnits$3(_this._number$_value * other._number$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other));
- }
- throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
- },
- dividedBy$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber) {
- if (!other.get$hasUnits())
- return _this.withValue$1(_this._number$_value / other._number$_value);
- return _this.multiplyUnits$3(_this._number$_value / other._number$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other));
- }
- return _this.super$Value$dividedBy(other);
- },
- unaryPlus$0() {
- return this;
- },
- _coerceUnits$1$2(other, operation) {
- var t1, exception;
- try {
- t1 = operation.call$2(this._number$_value, other.coerceValueToMatch$1(this));
- return t1;
- } catch (exception) {
- if (A.unwrapException(exception) instanceof A.SassScriptException) {
- this.coerceValueToMatch$1(other);
- throw exception;
- } else
- throw exception;
- }
- },
- _coerceUnits$2(other, operation) {
- return this._coerceUnits$1$2(other, operation, type$.dynamic);
- },
- multiplyUnits$3(value, otherNumerators, otherDenominators) {
- var t1, _0_1, _0_2, _0_3, _0_6, _0_7_isSet, _0_7, _0_9, t2, _0_9_isSet, denominators_case_0, _0_11_isSet, _0_11, _0_13_isSet, _0_10, _0_13, numerators_case_0, t4, t3, numerators_case_1, denominators_case_1, t0, newNumerators, mutableOtherDenominators, _i, numerator, mutableDenominatorUnits, _this = this, _null = null, _box_0 = {};
- _box_0.value = value;
- t1 = [_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this), otherNumerators, otherDenominators];
- _0_1 = t1[0];
- _0_2 = t1[1];
- _0_3 = t1[2];
- _0_6 = _0_3.length <= 0;
- _0_7_isSet = _0_6;
- if (_0_7_isSet) {
- _0_7 = t1[3];
- _0_9 = _0_7.length <= 0;
- t2 = _0_9;
- } else {
- _0_7 = _null;
- _0_9 = _0_7;
- t2 = false;
- }
- _0_9_isSet = _0_7_isSet;
- denominators_case_0 = _0_2;
- _0_11_isSet = !t2;
- if (_0_11_isSet) {
- _0_11 = _0_1.length <= 0;
- _0_13_isSet = _0_11;
- _0_10 = _0_1;
- if (_0_13_isSet) {
- _0_13 = _0_2.length <= 0;
- t2 = _0_13;
- if (t2) {
- if (_0_7_isSet)
- denominators_case_0 = _0_7;
- else {
- _0_7 = t1[3];
- denominators_case_0 = _0_7;
- _0_7_isSet = true;
- }
- numerators_case_0 = _0_3;
- } else
- numerators_case_0 = _0_1;
- } else {
- numerators_case_0 = _0_1;
- _0_13 = _null;
- t2 = false;
- }
- _0_1 = _0_10;
- } else {
- numerators_case_0 = _0_1;
- _0_13 = _null;
- _0_11 = _0_13;
- _0_13_isSet = false;
- t2 = true;
- }
- if (t2) {
- t4 = denominators_case_0;
- t3 = numerators_case_0;
- } else {
- t4 = _null;
- t3 = t4;
- }
- if (!t2) {
- if (_0_11_isSet)
- t2 = _0_11;
- else {
- _0_11 = _0_1.length <= 0;
- t2 = _0_11;
- }
- if (t2) {
- if (_0_9_isSet)
- t2 = _0_9;
- else {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- _0_7 = t1[3];
- t2 = _0_7;
- _0_7_isSet = true;
- }
- _0_9 = t2.length <= 0;
- t2 = _0_9;
- }
- numerators_case_1 = _0_3;
- denominators_case_1 = _0_2;
- } else {
- numerators_case_1 = _null;
- denominators_case_1 = numerators_case_1;
- t2 = false;
- }
- if (!t2) {
- if (_0_13_isSet)
- t2 = _0_13;
- else {
- _0_13 = _0_2.length <= 0;
- t2 = _0_13;
- }
- if (t2) {
- if (_0_6)
- denominators_case_1 = _0_7_isSet ? _0_7 : t1[3];
- t1 = _0_6;
- } else
- t1 = false;
- numerators_case_1 = _0_1;
- } else
- t1 = true;
- if (t1) {
- t1 = !_this._areAnyConvertible$2(numerators_case_1, denominators_case_1);
- if (t1) {
- t3 = denominators_case_1;
- t2 = numerators_case_1;
- } else {
- t2 = t3;
- t3 = t4;
- }
- t0 = t3;
- t3 = t1;
- t1 = t2;
- t2 = t0;
- } else {
- t2 = t4;
- t1 = t3;
- t3 = false;
- }
- } else {
- t2 = t4;
- t1 = t3;
- t3 = true;
- }
- if (t3)
- return A.SassNumber_SassNumber$withUnits(value, t2, t1);
- newNumerators = A._setArrayType([], type$.JSArray_String);
- mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
- for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- numerator = t1[_i];
- A.removeFirstWhere(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure(_box_0, numerator), new A.SassNumber_multiplyUnits_closure0(newNumerators, numerator));
- }
- t1 = _this.get$denominatorUnits(_this);
- mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
- for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) {
- numerator = otherNumerators[_i];
- A.removeFirstWhere(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure1(_box_0, numerator), new A.SassNumber_multiplyUnits_closure2(newNumerators, numerator));
- }
- t1 = _box_0.value;
- B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators);
- return A.SassNumber_SassNumber$withUnits(t1, mutableDenominatorUnits, newNumerators);
- },
- _areAnyConvertible$2(units1, units2) {
- return B.JSArray_methods.any$1(units1, new A.SassNumber__areAnyConvertible_closure(units2));
- },
- _unitString$2(numerators, denominators) {
- var _0_4, _0_6, t1, _0_7, _0_5, _null = null;
- $label0$0: {
- _0_4 = numerators.length <= 0;
- if (_0_4) {
- _0_6 = denominators.length;
- t1 = _0_6;
- _0_7 = t1 <= 0;
- t1 = _0_7;
- _0_5 = denominators;
- } else {
- _0_5 = _null;
- _0_6 = _0_5;
- _0_7 = _0_6;
- t1 = false;
- }
- if (t1) {
- t1 = "no units";
- break $label0$0;
- }
- if (_0_4)
- t1 = _0_6 === 1;
- else
- t1 = false;
- if (t1) {
- t1 = (_0_4 ? _0_5 : denominators)[0] + "^-1";
- break $label0$0;
- }
- if (_0_4) {
- t1 = "(" + B.JSArray_methods.join$1(denominators, "*") + ")^-1";
- break $label0$0;
- }
- _0_6 = denominators.length;
- t1 = _0_6;
- _0_7 = t1 <= 0;
- t1 = _0_7;
- if (t1) {
- t1 = B.JSArray_methods.join$1(numerators, "*");
- break $label0$0;
- }
- t1 = B.JSArray_methods.join$1(numerators, "*") + "/" + B.JSArray_methods.join$1(denominators, "*");
- break $label0$0;
- }
- return t1;
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- if (!(other instanceof A.SassNumber))
- return false;
- if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
- return false;
- if (!_this.get$hasUnits())
- return A.fuzzyEquals(_this._number$_value, other._number$_value);
- if (!B.C_ListEquality.equals$2(0, _this._canonicalizeUnitList$1(_this.get$numeratorUnits(_this)), _this._canonicalizeUnitList$1(other.get$numeratorUnits(other))) || !B.C_ListEquality.equals$2(0, _this._canonicalizeUnitList$1(_this.get$denominatorUnits(_this)), _this._canonicalizeUnitList$1(other.get$denominatorUnits(other))))
- return false;
- return A.fuzzyEquals(_this._number$_value * _this._canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._canonicalMultiplier$1(_this.get$denominatorUnits(_this)), other._number$_value * _this._canonicalMultiplier$1(other.get$numeratorUnits(other)) / _this._canonicalMultiplier$1(other.get$denominatorUnits(other)));
- },
- get$hashCode(_) {
- var _this = this,
- t1 = _this.hashCache;
- return t1 == null ? _this.hashCache = A.fuzzyHashCode(_this._number$_value * _this._canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._canonicalMultiplier$1(_this.get$denominatorUnits(_this))) : t1;
- },
- _canonicalizeUnitList$1(units) {
- var type,
- t1 = units.length;
- if (t1 === 0)
- return units;
- if (t1 === 1) {
- type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(units));
- if (type == null)
- t1 = units;
- else {
- t1 = B.Map_397RH.$index(0, type);
- t1.toString;
- t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String);
- }
- return t1;
- }
- t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>");
- t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure(), t1), true, t1._eval$1("ListIterable.E"));
- B.JSArray_methods.sort$0(t1);
- return t1;
- },
- _canonicalMultiplier$1(units) {
- return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure(this));
- },
- canonicalMultiplierForUnit$1(unit) {
- var t1,
- innerMap = B.Map_gQqJO.$index(0, unit);
- if (innerMap == null)
- t1 = 1;
- else {
- t1 = innerMap.get$values(innerMap);
- t1 = 1 / t1.get$first(t1);
- }
- return t1;
- },
- unitSuggestion$2($name, unit) {
- var t2, t3, result, _this = this,
- t1 = _this.get$denominatorUnits(_this);
- t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- t2 = _this.get$numeratorUnits(_this);
- t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0);
- t3 = unit == null ? "" : " * 1" + unit;
- result = "$" + $name + t1 + t2 + t3;
- return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")";
- },
- unitSuggestion$1($name) {
- return this.unitSuggestion$2($name, null);
- }
- };
- A.SassNumber__coerceOrConvertValue_compatibilityException.prototype = {
- call$0() {
- var t2, t3, message, t4, type, unit, _this = this,
- t1 = _this.other;
- if (t1 != null) {
- t2 = _this.$this;
- t3 = t2.toString$0(0) + " and";
- message = new A.StringBuffer(t3);
- t4 = _this.otherName;
- if (t4 != null)
- t3 = message._contents = t3 + (" $" + t4 + ":");
- t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
- message._contents = t1;
- if (!t2.get$hasUnits() || !_this.otherHasUnits)
- message._contents = t1 + " (one has units and the other doesn't)";
- t1 = message.toString$0(0) + ".";
- t2 = _this.name;
- return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
- } else if (!_this.otherHasUnits) {
- t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
- t2 = _this.name;
- return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
- } else {
- t1 = _this.newNumerators;
- if (t1.length === 1 && _this.newDenominators.length === 0) {
- type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(t1));
- if (type != null) {
- t1 = _this.$this.toString$0(0);
- t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), type.charCodeAt(0)) ? "an " + type : "a " + type;
- t3 = B.Map_397RH.$index(0, type);
- t3.toString;
- t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ").";
- t2 = _this.name;
- return new A.SassScriptException(t2 == null ? t3 : "$" + t2 + ": " + t3);
- }
- }
- t2 = _this.newDenominators;
- unit = A.pluralize("unit", t1.length + t2.length, null);
- t3 = _this.$this;
- t2 = "Expected " + t3.toString$0(0) + " to have " + unit + " " + t3._unitString$2(t1, t2) + ".";
- t1 = _this.name;
- return new A.SassScriptException(t1 == null ? t2 : "$" + t1 + ": " + t2);
- }
- },
- $signature: 382
- };
- A.SassNumber__coerceOrConvertValue_closure.prototype = {
- call$1(oldNumerator) {
- var factor = A.conversionFactor(this.newNumerator, oldNumerator);
- if (factor == null)
- return false;
- this._box_0.value *= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber__coerceOrConvertValue_closure0.prototype = {
- call$0() {
- return A.throwExpression(this.compatibilityException.call$0());
- },
- $signature: 0
- };
- A.SassNumber__coerceOrConvertValue_closure1.prototype = {
- call$1(oldDenominator) {
- var factor = A.conversionFactor(this.newDenominator, oldDenominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber__coerceOrConvertValue_closure2.prototype = {
- call$0() {
- return A.throwExpression(this.compatibilityException.call$0());
- },
- $signature: 0
- };
- A.SassNumber_plus_closure.prototype = {
- call$2(num1, num2) {
- return num1 + num2;
- },
- $signature: 56
- };
- A.SassNumber_minus_closure.prototype = {
- call$2(num1, num2) {
- return num1 - num2;
- },
- $signature: 56
- };
- A.SassNumber_multiplyUnits_closure.prototype = {
- call$1(denominator) {
- var factor = A.conversionFactor(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber_multiplyUnits_closure0.prototype = {
- call$0() {
- return this.newNumerators.push(this.numerator);
- },
- $signature: 0
- };
- A.SassNumber_multiplyUnits_closure1.prototype = {
- call$1(denominator) {
- var factor = A.conversionFactor(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber_multiplyUnits_closure2.prototype = {
- call$0() {
- return this.newNumerators.push(this.numerator);
- },
- $signature: 0
- };
- A.SassNumber__areAnyConvertible_closure.prototype = {
- call$1(unit1) {
- var t1,
- _0_0 = B.Map_gQqJO.$index(0, unit1);
- $label0$0: {
- if (_0_0 != null) {
- t1 = B.JSArray_methods.any$1(this.units2, _0_0.get$containsKey());
- break $label0$0;
- }
- t1 = B.JSArray_methods.contains$1(this.units2, unit1);
- break $label0$0;
- }
- return t1;
- },
- $signature: 4
- };
- A.SassNumber__canonicalizeUnitList_closure.prototype = {
- call$1(unit) {
- var t1,
- type = $.$get$_typesByUnit().$index(0, unit);
- if (type == null)
- t1 = unit;
- else {
- t1 = B.Map_397RH.$index(0, type);
- t1.toString;
- t1 = B.JSArray_methods.get$first(t1);
- }
- return t1;
- },
- $signature: 5
- };
- A.SassNumber__canonicalMultiplier_closure.prototype = {
- call$2(multiplier, unit) {
- return multiplier * this.$this.canonicalMultiplierForUnit$1(unit);
- },
- $signature: 160
- };
- A.SassNumber_unitSuggestion_closure.prototype = {
- call$1(unit) {
- return " * 1" + unit;
- },
- $signature: 5
- };
- A.SassNumber_unitSuggestion_closure0.prototype = {
- call$1(unit) {
- return " / 1" + unit;
- },
- $signature: 5
- };
- A.ComplexSassNumber.prototype = {
- get$numeratorUnits(_) {
- return this._numeratorUnits;
- },
- get$denominatorUnits(_) {
- return this._denominatorUnits;
- },
- get$hasUnits() {
- return true;
- },
- get$hasComplexUnits() {
- return true;
- },
- hasUnit$1(unit) {
- return false;
- },
- compatibleWithUnit$1(unit) {
- return false;
- },
- hasPossiblyCompatibleUnits$1(other) {
- throw A.wrapException(A.UnimplementedError$(string$.Comple));
- },
- withValue$1(value) {
- return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, value, null);
- },
- withSlash$2(numerator, denominator) {
- return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, this._number$_value, new A._Record_2(numerator, denominator));
- }
- };
- A.SingleUnitSassNumber.prototype = {
- get$numeratorUnits(_) {
- return A.List_List$unmodifiable([this._unit], type$.String);
- },
- get$denominatorUnits(_) {
- return B.List_empty;
- },
- get$hasUnits() {
- return true;
- },
- get$hasComplexUnits() {
- return false;
- },
- withValue$1(value) {
- return new A.SingleUnitSassNumber(this._unit, value, null);
- },
- withSlash$2(numerator, denominator) {
- return new A.SingleUnitSassNumber(this._unit, this._number$_value, new A._Record_2(numerator, denominator));
- },
- hasUnit$1(unit) {
- return unit === this._unit;
- },
- hasCompatibleUnits$1(other) {
- return other instanceof A.SingleUnitSassNumber && A.conversionFactor(this._unit, other._unit) != null;
- },
- hasPossiblyCompatibleUnits$1(other) {
- var t1, knownCompatibilities, otherUnit;
- if (!(other instanceof A.SingleUnitSassNumber))
- return false;
- t1 = $.$get$_knownCompatibilitiesByUnit();
- knownCompatibilities = t1.$index(0, this._unit.toLowerCase());
- if (knownCompatibilities == null)
- return true;
- otherUnit = other._unit.toLowerCase();
- return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit);
- },
- compatibleWithUnit$1(unit) {
- return A.conversionFactor(this._unit, unit) != null;
- },
- coerceToMatch$1(other) {
- var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceToUnit$1(other._unit) : null;
- return t1 == null ? this.super$SassNumber$coerceToMatch(other, null, null) : t1;
- },
- coerceValueToMatch$3(other, $name, otherName) {
- var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null;
- return t1 == null ? this.super$SassNumber$coerceValueToMatch(other, $name, otherName) : t1;
- },
- coerceValueToMatch$1(other) {
- return this.coerceValueToMatch$3(other, null, null);
- },
- convertValueToMatch$3(other, $name, otherName) {
- var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null;
- return t1 == null ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : t1;
- },
- convertValueToMatch$1(other) {
- return this.convertValueToMatch$3(other, null, null);
- },
- coerce$2(newNumerators, newDenominators) {
- var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceToUnit$1(newNumerators[0]) : null;
- return t1 == null ? this.super$SassNumber$coerce(newNumerators, newDenominators, null) : t1;
- },
- coerceValue$3(newNumerators, newDenominators, $name) {
- var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceValueToUnit$1(newNumerators[0]) : null;
- return t1 == null ? this.super$SassNumber$coerceValue(newNumerators, newDenominators, $name) : t1;
- },
- coerceValueToUnit$2(unit, $name) {
- var t1 = this._coerceValueToUnit$1(unit);
- return t1 == null ? this.super$SassNumber$coerceValueToUnit(unit, $name) : t1;
- },
- coerceValueToUnit$1(unit) {
- return this.coerceValueToUnit$2(unit, null);
- },
- _coerceToUnit$1(unit) {
- var t1 = this._unit;
- if (t1 === unit)
- return this;
- return A.NullableExtension_andThen(A.conversionFactor(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure(this, unit));
- },
- _coerceValueToUnit$1(unit) {
- return A.NullableExtension_andThen(A.conversionFactor(unit, this._unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure(this));
- },
- multiplyUnits$3(value, otherNumerators, otherDenominators) {
- var mutableOtherDenominators, t1 = {};
- t1.value = value;
- t1.newNumerators = otherNumerators;
- mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
- A.removeFirstWhere(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure0(t1, this));
- return A.SassNumber_SassNumber$withUnits(t1.value, mutableOtherDenominators, t1.newNumerators);
- },
- unaryMinus$0() {
- return new A.SingleUnitSassNumber(this._unit, -this._number$_value, null);
- },
- $eq(_, other) {
- var factor;
- if (other == null)
- return false;
- if (other instanceof A.SingleUnitSassNumber) {
- factor = A.conversionFactor(other._unit, this._unit);
- return factor != null && A.fuzzyEquals(this._number$_value * factor, other._number$_value);
- } else
- return false;
- },
- get$hashCode(_) {
- var _this = this,
- t1 = _this.hashCache;
- return t1 == null ? _this.hashCache = A.fuzzyHashCode(_this._number$_value * _this.canonicalMultiplierForUnit$1(_this._unit)) : t1;
- }
- };
- A.SingleUnitSassNumber__coerceToUnit_closure.prototype = {
- call$1(factor) {
- return new A.SingleUnitSassNumber(this.unit, this.$this._number$_value * factor, null);
- },
- $signature: 360
- };
- A.SingleUnitSassNumber__coerceValueToUnit_closure.prototype = {
- call$1(factor) {
- return this.$this._number$_value * factor;
- },
- $signature: 37
- };
- A.SingleUnitSassNumber_multiplyUnits_closure.prototype = {
- call$1(denominator) {
- var factor = A.conversionFactor(denominator, this.$this._unit);
- if (factor == null)
- return false;
- this._box_0.value *= factor;
- return true;
- },
- $signature: 4
- };
- A.SingleUnitSassNumber_multiplyUnits_closure0.prototype = {
- call$0() {
- var t1 = A._setArrayType([this.$this._unit], type$.JSArray_String),
- t2 = this._box_0;
- B.JSArray_methods.addAll$1(t1, t2.newNumerators);
- t2.newNumerators = t1;
- },
- $signature: 0
- };
- A.UnitlessSassNumber.prototype = {
- get$numeratorUnits(_) {
- return B.List_empty;
- },
- get$denominatorUnits(_) {
- return B.List_empty;
- },
- get$hasUnits() {
- return false;
- },
- get$hasComplexUnits() {
- return false;
- },
- withValue$1(value) {
- return new A.UnitlessSassNumber(value, null);
- },
- withSlash$2(numerator, denominator) {
- return new A.UnitlessSassNumber(this._number$_value, new A._Record_2(numerator, denominator));
- },
- hasUnit$1(unit) {
- return false;
- },
- hasCompatibleUnits$1(other) {
- return other instanceof A.UnitlessSassNumber;
- },
- hasPossiblyCompatibleUnits$1(other) {
- return other instanceof A.UnitlessSassNumber;
- },
- compatibleWithUnit$1(unit) {
- return true;
- },
- coerceToMatch$1(other) {
- return other.withValue$1(this._number$_value);
- },
- coerceValueToMatch$3(other, $name, otherName) {
- return this._number$_value;
- },
- coerceValueToMatch$1(other) {
- return this.coerceValueToMatch$3(other, null, null);
- },
- convertValueToMatch$3(other, $name, otherName) {
- return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : this._number$_value;
- },
- convertValueToMatch$1(other) {
- return this.convertValueToMatch$3(other, null, null);
- },
- coerce$2(newNumerators, newDenominators) {
- return A.SassNumber_SassNumber$withUnits(this._number$_value, newDenominators, newNumerators);
- },
- coerceValue$3(newNumerators, newDenominators, $name) {
- return this._number$_value;
- },
- coerceValueToUnit$2(unit, $name) {
- return this._number$_value;
- },
- coerceValueToUnit$1(unit) {
- return this.coerceValueToUnit$2(unit, null);
- },
- greaterThan$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber) {
- t1 = this._number$_value;
- t2 = other._number$_value;
- return t1 > t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
- }
- return this.super$SassNumber$greaterThan(other);
- },
- greaterThanOrEquals$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber) {
- t1 = this._number$_value;
- t2 = other._number$_value;
- return t1 > t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
- }
- return this.super$SassNumber$greaterThanOrEquals(other);
- },
- lessThan$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber) {
- t1 = this._number$_value;
- t2 = other._number$_value;
- return t1 < t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
- }
- return this.super$SassNumber$lessThan(other);
- },
- lessThanOrEquals$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber) {
- t1 = this._number$_value;
- t2 = other._number$_value;
- return t1 < t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
- }
- return this.super$SassNumber$lessThanOrEquals(other);
- },
- modulo$1(other) {
- if (other instanceof A.SassNumber)
- return other.withValue$1(A.moduloLikeSass(this._number$_value, other._number$_value));
- return this.super$SassNumber$modulo(other);
- },
- plus$1(other) {
- if (other instanceof A.SassNumber)
- return other.withValue$1(this._number$_value + other._number$_value);
- return this.super$SassNumber$plus(other);
- },
- minus$1(other) {
- if (other instanceof A.SassNumber)
- return other.withValue$1(this._number$_value - other._number$_value);
- return this.super$SassNumber$minus(other);
- },
- times$1(other) {
- if (other instanceof A.SassNumber)
- return other.withValue$1(this._number$_value * other._number$_value);
- return this.super$SassNumber$times(other);
- },
- dividedBy$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber) {
- t1 = this._number$_value / other._number$_value;
- if (other.get$hasUnits()) {
- t2 = other.get$denominatorUnits(other);
- t2 = A.SassNumber_SassNumber$withUnits(t1, other.get$numeratorUnits(other), t2);
- t1 = t2;
- } else
- t1 = new A.UnitlessSassNumber(t1, null);
- return t1;
- }
- return this.super$SassNumber$dividedBy(other);
- },
- unaryMinus$0() {
- return new A.UnitlessSassNumber(-this._number$_value, null);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.UnitlessSassNumber && A.fuzzyEquals(this._number$_value, other._number$_value);
- },
- get$hashCode(_) {
- var t1 = this.hashCache;
- return t1 == null ? this.hashCache = A.fuzzyHashCode(this._number$_value) : t1;
- }
- };
- A.SassString.prototype = {
- get$_sassLength() {
- var result, _this = this,
- value = _this.__SassString__sassLength_FI;
- if (value === $) {
- result = new A.Runes(_this._string$_text).get$length(0);
- _this.__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__SassString__sassLength_FI = result;
- value = result;
- }
- return value;
- },
- get$isSpecialNumber() {
- var t1, _2_0, _0_0, _1_0;
- if (this._hasQuotes)
- return false;
- t1 = this._string$_text;
- if (t1.length < 6)
- return false;
- _2_0 = t1.charCodeAt(0);
- $label1$1: {
- if (99 === _2_0 || 67 === _2_0) {
- _0_0 = t1.charCodeAt(1);
- $label0$0: {
- if (108 === _0_0 || 76 === _0_0) {
- t1 = (t1.charCodeAt(2) | 32) === 97 && (t1.charCodeAt(3) | 32) === 109 && (t1.charCodeAt(4) | 32) === 112 && t1.charCodeAt(5) === 40;
- break $label0$0;
- }
- if (97 === _0_0 || 65 === _0_0) {
- t1 = (t1.charCodeAt(2) | 32) === 108 && (t1.charCodeAt(3) | 32) === 99 && t1.charCodeAt(4) === 40;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- break $label1$1;
- }
- if (118 === _2_0 || 86 === _2_0) {
- t1 = (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
- break $label1$1;
- }
- if (101 === _2_0 || 69 === _2_0) {
- t1 = (t1.charCodeAt(1) | 32) === 110 && (t1.charCodeAt(2) | 32) === 118 && t1.charCodeAt(3) === 40;
- break $label1$1;
- }
- if (109 === _2_0 || 77 === _2_0) {
- _1_0 = t1.charCodeAt(1);
- $label2$2: {
- if (97 === _1_0 || 65 === _1_0) {
- t1 = (t1.charCodeAt(2) | 32) === 120 && t1.charCodeAt(3) === 40;
- break $label2$2;
- }
- if (105 === _1_0 || 73 === _1_0) {
- t1 = (t1.charCodeAt(2) | 32) === 110 && t1.charCodeAt(3) === 40;
- break $label2$2;
- }
- t1 = false;
- break $label2$2;
- }
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- return t1;
- },
- get$isVar() {
- if (this._hasQuotes)
- return false;
- var t1 = this._string$_text;
- if (t1.length < 8)
- return false;
- return (t1.charCodeAt(0) | 32) === 118 && (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
- },
- get$isBlank() {
- return !this._hasQuotes && this._string$_text.length === 0;
- },
- accept$1$1(visitor) {
- var t1 = visitor._quote && this._hasQuotes,
- t2 = this._string$_text;
- if (t1)
- visitor._visitQuotedString$1(t2);
- else
- visitor._visitUnquotedString$1(t2);
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertString$1($name) {
- return this;
- },
- plus$1(other) {
- var t1 = this._string$_text,
- t2 = this._hasQuotes;
- return other instanceof A.SassString ? new A.SassString(t1 + other._string$_text, t2) : new A.SassString(t1 + A.serializeValue(other, false, true), t2);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassString && this._string$_text === other._string$_text;
- },
- get$hashCode(_) {
- var t1 = this._hashCache;
- return t1 == null ? this._hashCache = B.JSString_methods.get$hashCode(this._string$_text) : t1;
- }
- };
- A.AnySelectorVisitor.prototype = {
- visitComplexSelector$1(complex) {
- return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure(this));
- },
- visitCompoundSelector$1(compound) {
- return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure(this));
- },
- visitPseudoSelector$1(pseudo) {
- var selector = pseudo.selector;
- return selector == null ? false : this.visitSelectorList$1(selector);
- },
- visitSelectorList$1(list) {
- return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector());
- },
- visitAttributeSelector$1(attribute) {
- return false;
- },
- visitClassSelector$1(klass) {
- return false;
- },
- visitIDSelector$1(id) {
- return false;
- },
- visitParentSelector$1($parent) {
- return false;
- },
- visitPlaceholderSelector$1(placeholder) {
- return false;
- },
- visitTypeSelector$1(type) {
- return false;
- },
- visitUniversalSelector$1(universal) {
- return false;
- }
- };
- A.AnySelectorVisitor_visitComplexSelector_closure.prototype = {
- call$1(component) {
- return this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature: 49
- };
- A.AnySelectorVisitor_visitCompoundSelector_closure.prototype = {
- call$1(simple) {
- return simple.accept$1(this.$this);
- },
- $signature: 13
- };
- A._EvaluateVisitor0.prototype = {
- _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t2, metaModule, t3, _i, module, $function, t4, _this = this,
- _s20_ = "$name, $module: null",
- _s9_ = "sass:meta",
- _s7_ = "$module",
- t1 = type$.JSArray_AsyncBuiltInCallable,
- metaFunctions = A._setArrayType([A.BuiltInCallable$function("global-variable-exists", _s20_, new A._EvaluateVisitor_closure12(_this), _s9_), A.BuiltInCallable$function("variable-exists", "$name", new A._EvaluateVisitor_closure13(_this), _s9_), A.BuiltInCallable$function("function-exists", _s20_, new A._EvaluateVisitor_closure14(_this), _s9_), A.BuiltInCallable$function("mixin-exists", _s20_, new A._EvaluateVisitor_closure15(_this), _s9_), A.BuiltInCallable$function("content-exists", "", new A._EvaluateVisitor_closure16(_this), _s9_), A.BuiltInCallable$function("module-variables", _s7_, new A._EvaluateVisitor_closure17(_this), _s9_), A.BuiltInCallable$function("module-functions", _s7_, new A._EvaluateVisitor_closure18(_this), _s9_), A.BuiltInCallable$function("module-mixins", _s7_, new A._EvaluateVisitor_closure19(_this), _s9_), A.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure20(_this), _s9_), A.BuiltInCallable$function("get-mixin", _s20_, new A._EvaluateVisitor_closure21(_this), _s9_), new A.AsyncBuiltInCallable("call", A.ScssParser$("@function call($function, $args...) {", null, _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure22(_this), false)], t1),
- metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin("load-css", "$url, $with: null", new A._EvaluateVisitor_closure23(_this), false, _s9_), A.AsyncBuiltInCallable$mixin("apply", "$mixin, $args...", new A._EvaluateVisitor_closure24(_this), true, _s9_)], t1);
- t1 = type$.AsyncBuiltInCallable;
- t2 = A.List_List$of($.$get$global(), true, t1);
- B.JSArray_methods.addAll$1(t2, $.$get$local());
- B.JSArray_methods.addAll$1(t2, metaFunctions);
- metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1);
- for (t1 = A.List_List$of($.$get$coreModules(), true, type$.BuiltInModule_AsyncCallable), t1.push(metaModule), t2 = t1.length, t3 = _this._async_evaluate$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = A._setArrayType([], type$.JSArray_AsyncCallable);
- B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions());
- B.JSArray_methods.addAll$1(t1, metaFunctions);
- for (t2 = t1.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = J.get$name$x($function);
- t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2(_, importer, node) {
- return this.run$body$_EvaluateVisitor(0, importer, node);
- },
- run$body$_EvaluateVisitor(_, importer, node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
- var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- t1 = type$.nullable_Object;
- t1 = A.runZoned(new A._EvaluateVisitor_run_closure0($async$self, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext0($async$self, node)], t1, t1), type$.FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet);
- $async$goto = 7;
- return A._asyncAwait(type$.Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet._is(t1) ? t1 : A._Future$value(t1, type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet), $async$run$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- A.throwWithTrace(error.withLoadedUrls$1($async$self._async_evaluate$_loadedUrls), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$run$2, $async$completer);
- },
- _async_evaluate$_assertInModule$1$2(value, $name) {
- if (value != null)
- return value;
- throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
- },
- _async_evaluate$_assertInModule$2(value, $name) {
- return this._async_evaluate$_assertInModule$1$2(value, $name, type$.dynamic);
- },
- _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
- },
- _async_evaluate$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _async_evaluate$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
- return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t2, t1, _0_0;
- var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- _0_0 = $async$self._async_evaluate$_builtInModules.$index(0, url);
- t1.builtInModule = null;
- $async$goto = _0_0 != null ? 3 : 4;
- break;
- case 3:
- // then
- t1.builtInModule = _0_0;
- if (configuration instanceof A.ExplicitConfiguration) {
- t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
- t2 = configuration.nodeWithSpan;
- throw A.wrapException($async$self._async_evaluate$_exception$2(t1, t2.get$span(t2)));
- }
- $async$goto = 5;
- return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure1(t1, callback), type$.void), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
- case 5:
- // returning from await.
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure2($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
- case 6:
- // returning from await.
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
- },
- _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
- },
- _async_evaluate$_execute$2(importer, stylesheet) {
- return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable),
- $async$returnValue, $async$self = this, _0_0, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, t1, url;
- var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = stylesheet.span;
- url = t1.get$sourceUrl(t1);
- t1 = $async$self._async_evaluate$_modules;
- _0_0 = t1.$index(0, url);
- if (_0_0 != null) {
- t1 = configuration == null;
- currentConfiguration = t1 ? $async$self._async_evaluate$_configuration : configuration;
- t2 = $async$self._async_evaluate$_moduleConfigurations.$index(0, url);
- t3 = t2.__originalConfiguration;
- t2 = t3 == null ? t2 : t3;
- t3 = currentConfiguration.__originalConfiguration;
- if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) {
- if (namesInErrors) {
- t2 = $.$get$context();
- url.toString;
- message = t2.prettyUri$1(url) + string$.x20was_a;
- } else
- message = string$.This_mw;
- t2 = $async$self._async_evaluate$_moduleNodes.$index(0, url);
- existingSpan = t2 == null ? null : t2.get$span(t2);
- if (t1) {
- t1 = currentConfiguration.nodeWithSpan;
- configurationSpan = t1.get$span(t1);
- } else
- configurationSpan = null;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingSpan != null)
- t1.$indexSet(0, existingSpan, "original load");
- if (configurationSpan != null)
- t1.$indexSet(0, configurationSpan, "configuration");
- throw A.wrapException(t1.get$isEmpty(0) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t1));
- }
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- environment = A.AsyncEnvironment$();
- css = A._Cell$();
- preModuleComments = A._Cell$();
- extensionStore = A.ExtensionStore$();
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_withEnvironment$1$2(environment, new A._EvaluateVisitor__execute_closure0($async$self, importer, stylesheet, extensionStore, configuration, css, preModuleComments), type$.Null), $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan);
- case 3:
- // returning from await.
- t2 = css._readLocal$0();
- t3 = preModuleComments._readLocal$0();
- module = environment.toModule$3(t2, t3 == null ? B.Map_empty7 : t3, extensionStore);
- if (url != null) {
- t1.$indexSet(0, url, module);
- $async$self._async_evaluate$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate$_configuration);
- if (nodeWithSpan != null)
- $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan);
- }
- $async$returnValue = module;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
- },
- _async_evaluate$_addOutOfOrderImports$0() {
- var t1, t2, _this = this, _s5_ = "_root",
- _s13_ = "_endOfImports",
- _0_0 = _this._async_evaluate$_outOfOrderImports;
- $label0$0: {
- if (_0_0 == null) {
- t1 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
- break $label0$0;
- }
- t1 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
- t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode);
- B.JSArray_methods.addAll$1(t1, _0_0);
- t2 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
- B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
- break $label0$0;
- }
- return t1;
- },
- _async_evaluate$_combineCss$2$clone(root, clone) {
- var selectors, _0_0, t1, imports, css, sorted, t2;
- if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure1())) {
- selectors = root.get$extensionStore().get$simpleSelectors();
- _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure2(selectors)));
- if (_0_0 != null)
- this._async_evaluate$_throwForUnsatisfiedExtension$1(_0_0);
- return root.get$css(root);
- }
- t1 = type$.JSArray_CssNode;
- imports = A._setArrayType([], t1);
- css = A._setArrayType([], t1);
- t1 = type$.Module_AsyncCallable;
- sorted = A.ListQueue$(t1);
- new A._EvaluateVisitor__combineCss_visitModule0(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
- if (root.get$transitivelyContainsExtensions())
- this._async_evaluate$_extendModules$1(sorted);
- t1 = B.JSArray_methods.$add(imports, css);
- t2 = root.get$css(root);
- return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2));
- },
- _async_evaluate$_combineCss$1(root) {
- return this._async_evaluate$_combineCss$2$clone(root, false);
- },
- _async_evaluate$_extendModules$1(sortedModules) {
- var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
- downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore),
- unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
- for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure1(originalSelectors)));
- $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
- t4 = t3.get$extensionStore().get$addExtensions();
- if ($self != null)
- t4.call$1($self);
- t4 = t3.get$extensionStore();
- if (t4.get$isEmpty(t4))
- continue;
- for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
- upstream = t4[_i];
- _0_0 = upstream.get$url(upstream);
- if (_0_0 != null)
- J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure2()), t3.get$extensionStore());
- }
- unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
- },
- _async_evaluate$_throwForUnsatisfiedExtension$1(extension) {
- throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
- },
- _async_evaluate$_indexAfterImports$1(statements) {
- var t1, lastImport, i, _0_0;
- for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- $label0$0: {
- _0_0 = t1.$index(statements, i);
- if (_0_0 instanceof A.ModifiableCssImport)
- break $label0$0;
- if (_0_0 instanceof A.ModifiableCssComment)
- continue;
- break;
- }
- lastImport = i;
- }
- return lastImport + 1;
- },
- visitStylesheet$1(node) {
- return this.visitStylesheet$body$_EvaluateVisitor(node);
- },
- visitStylesheet$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, _i;
- var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.children, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitStylesheet$1, $async$completer);
- },
- visitAtRootRule$1(node) {
- return this.visitAtRootRule$body$_EvaluateVisitor(node);
- },
- visitAtRootRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, _1_0, resolved, query, $parent, included, t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _0_0;
- var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _0_0 = node.query;
- $async$goto = _0_0 != null ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(_0_0, true), $async$visitAtRootRule$1);
- case 6:
- // returning from await.
- _1_0 = $async$result;
- resolved = _1_0._0;
- _1_0._1;
- query = A.AtRootQueryParser$(resolved, $async$self._async_evaluate$_logger, null).parse$0();
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- query = B.AtRootQuery_n2q;
- case 4:
- // join
- $parent = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
- included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode);
- for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = _2_0) {
- if (!query.excludes$1($parent))
- included.push($parent);
- _2_0 = $parent._parent;
- if (_2_0 == null)
- throw A.wrapException(A.StateError$(string$.CssNod));
- }
- root = $async$self._async_evaluate$_trimIncluded$1(included);
- $async$goto = root === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") ? 7 : 8;
- break;
- case 7:
- // then
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure1($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
- case 9:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // join
- if (included.length >= 1) {
- first = included[0];
- rest = B.JSArray_methods.sublist$1(included, 1);
- innerCopy = first.copyWithoutChildren$0();
- for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
- copy = rest[_i].copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- root.addChild$1(outerCopy);
- } else
- innerCopy = root;
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure2($async$self, node)), $async$visitAtRootRule$1);
- case 10:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitAtRootRule$1, $async$completer);
- },
- _async_evaluate$_trimIncluded$1(nodes) {
- var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
- _s22_ = " to be an ancestor of ";
- if (nodes.length === 0)
- return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_);
- $parent = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__parent, "__parent");
- for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
- for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
- _0_0 = $parent._parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if (innermostContiguous == null)
- innermostContiguous = i;
- _1_0 = $parent._parent;
- if (_1_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if ($parent !== _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_))
- return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_);
- innermostContiguous.toString;
- root = nodes[innermostContiguous];
- B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
- return root;
- },
- _async_evaluate$_scopeForAtRoot$4(node, newParent, query, included) {
- var _this = this,
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node),
- t1 = query._all || query._at_root_query$_rule;
- if (t1 !== query.include)
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope);
- if (_this._async_evaluate$_mediaQueries != null && query.excludesName$1("media"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope);
- if (_this._async_evaluate$_inKeyframes && query.excludesName$1("keyframes"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope);
- return _this._async_evaluate$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure9()) ? new A._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope;
- },
- visitContentBlock$1(node) {
- return A.throwExpression(A.UnsupportedError$(string$.Evalua));
- },
- visitContentRule$1(node) {
- return this.visitContentRule$body$_EvaluateVisitor(node);
- },
- visitContentRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, $content;
- var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $content = $async$self._async_evaluate$_environment._async_environment$_content;
- if ($content == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure0($async$self, $content), type$.Null), $async$visitContentRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitContentRule$1, $async$completer);
- },
- visitDebugRule$1(node) {
- return this.visitDebugRule$body$_EvaluateVisitor(node);
- },
- visitDebugRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true);
- $async$self._async_evaluate$_logger.debug$2(0, t1, node.span);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitDebugRule$1, $async$completer);
- },
- visitDeclaration$1(node) {
- return this.visitDeclaration$body$_EvaluateVisitor(node);
- },
- visitDeclaration$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t2, _0_0, t3, $name, _1_0, _2_0, value, t4, t5, _3_0, oldDeclarationName, t1;
- var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Declarm, node.span));
- if ($async$self._async_evaluate$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Declarw, node.span));
- t2 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent")._parent.children;
- _0_0 = t2.get$last(t2);
- t2 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
- if (t2 !== _0_0) {
- t2 = type$.SourceSpan;
- t3 = type$.String;
- $async$self._async_evaluate$_warn$3(string$.Sassx27s, new A.MultiSpan(node.span, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([_0_0.get$span(_0_0), "nested rule"], t2, t3), t2, t3)), B.Deprecation_gf0);
- }
- t2 = node.name;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(t2, true), $async$visitDeclaration$1);
- case 3:
- // returning from await.
- $name = $async$result;
- _1_0 = $async$self._async_evaluate$_declarationName;
- if (_1_0 != null)
- $name = new A.CssValue(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String);
- _2_0 = node.value;
- $async$goto = _2_0 != null ? 4 : 5;
- break;
- case 4:
- // then
- $async$goto = 6;
- return A._asyncAwait(_2_0.accept$1($async$self), $async$visitDeclaration$1);
- case 6:
- // returning from await.
- value = $async$result;
- if (!value.get$isBlank() || value.get$asList().length === 0) {
- t3 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
- t4 = _2_0.get$span(_2_0);
- t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--");
- if ($async$self._async_evaluate$_sourceMap) {
- t5 = A.NullableExtension_andThen(_2_0, $async$self.get$_async_evaluate$_expressionNode());
- t5 = t5 == null ? null : J.get$span$z(t5);
- } else
- t5 = null;
- t3.addChild$1(A.ModifiableCssDeclaration$($name, new A.CssValue(value, t4, type$.CssValue_Value), node.span, t2, t5));
- } else if (J.startsWith$1$s($name.value, "--"))
- throw A.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
- case 5:
- // join
- _3_0 = node.children;
- t1.children = null;
- $async$goto = _3_0 != null ? 7 : 8;
- break;
- case 7:
- // then
- t1.children = _3_0;
- oldDeclarationName = $async$self._async_evaluate$_declarationName;
- $async$self._async_evaluate$_declarationName = $name.value;
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure0(t1, $async$self), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
- case 9:
- // returning from await.
- $async$self._async_evaluate$_declarationName = oldDeclarationName;
- case 8:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitDeclaration$1, $async$completer);
- },
- visitEachRule$1(node) {
- return this.visitEachRule$body$_EvaluateVisitor(node);
- },
- visitEachRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, _box_0, t1, list, nodeWithSpan, _0_0;
- var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- t1 = node.list;
- $async$goto = 3;
- return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
- case 3:
- // returning from await.
- list = $async$result;
- nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1);
- _0_0 = node.variables;
- $label0$0: {
- _box_0.variable = null;
- if (_0_0.length === 1) {
- _box_0.variable = _0_0[0];
- t1 = new A._EvaluateVisitor_visitEachRule_closure2(_box_0, $async$self, nodeWithSpan);
- break $label0$0;
- }
- _box_0.variables = null;
- _box_0.variables = _0_0;
- t1 = new A._EvaluateVisitor_visitEachRule_closure3(_box_0, $async$self, nodeWithSpan);
- break $label0$0;
- }
- $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure4($async$self, list, t1, node), true, type$.nullable_Value);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitEachRule$1, $async$completer);
- },
- _async_evaluate$_setMultipleVariables$3(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._async_evaluate$_environment.setLocalVariable$3(variables[i], this._async_evaluate$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._async_evaluate$_environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan);
- },
- visitErrorRule$1(node) {
- return this.visitErrorRule$body$_EvaluateVisitor(node);
- },
- visitErrorRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$self = this, $async$temp1, $async$temp2;
- var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = A;
- $async$temp2 = J;
- $async$goto = 2;
- return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
- case 2:
- // returning from await.
- throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span));
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitErrorRule$1, $async$completer);
- },
- visitExtendRule$1(node) {
- return this.visitExtendRule$body$_EvaluateVisitor(node);
- },
- visitExtendRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, targetText, targetMap, compound, styleRule;
- var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- styleRule = $async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
- if (styleRule == null || $async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.x40exten, node.span));
- for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true))
- continue;
- visitor = A._SerializeVisitor$(null, true, null, true, false, null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
- t7 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't";
- $async$self._async_evaluate$_warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan(A.SpanExtensions_trimRight(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_ido);
- }
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- targetText = _0_0._0;
- targetMap = _0_0._1;
- for (t1 = A.SelectorList_SelectorList$parse(A.trimAscii(targetText, true), false, targetMap, $async$self._async_evaluate$_logger, false).components, t2 = t1.length, t3 = styleRule._style_rule$_selector._box$_inner, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- compound = complex.get$singleCompound();
- if (compound == null)
- throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", complex.span, null));
- t4 = compound.components;
- t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null;
- if (t5 == null)
- throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, null));
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, $async$self._async_evaluate$_mediaQueries);
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitExtendRule$1, $async$completer);
- },
- visitAtRule$1(node) {
- return this.visitAtRule$body$_EvaluateVisitor(node);
- },
- visitAtRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, $name, t1, value, children, wasInKeyframes, wasInUnknownAtRule;
- var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1);
- case 3:
- // returning from await.
- $name = $async$result;
- t1 = A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure2($async$self));
- $async$goto = 4;
- return A._asyncAwait(type$.Future_nullable_CssValue_String._is(t1) ? t1 : A._Future$value(t1, type$.nullable_CssValue_String), $async$visitAtRule$1);
- case 4:
- // returning from await.
- value = $async$result;
- children = node.children;
- if (children == null) {
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
- if (A.unvendor($name.value) === "keyframes")
- $async$self._async_evaluate$_inKeyframes = true;
- else
- $async$self._async_evaluate$_inUnknownAtRule = true;
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure3($async$self, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure4(), type$.ModifiableCssAtRule, type$.Null), $async$visitAtRule$1);
- case 5:
- // returning from await.
- $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitAtRule$1, $async$completer);
- },
- visitForRule$1(node) {
- return this.visitForRule$body$_EvaluateVisitor(node);
- },
- visitForRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
- var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = node.from;
- t3 = type$.SassNumber;
- $async$goto = 3;
- return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1);
- case 3:
- // returning from await.
- fromNumber = $async$result;
- t4 = node.to;
- $async$goto = 4;
- return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1);
- case 4:
- // returning from await.
- toNumber = $async$result;
- from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure6(fromNumber));
- to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure7(toNumber, fromNumber));
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure8(t1, $async$self, node, from, direction, fromNumber), true, type$.nullable_Value);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitForRule$1, $async$completer);
- },
- visitForwardRule$1(node) {
- return this.visitForwardRule$body$_EvaluateVisitor(node);
- },
- visitForwardRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3;
- var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldConfiguration = $async$self._async_evaluate$_configuration;
- adjustedConfiguration = oldConfiguration.throughForward$1(node);
- t1 = node.configuration;
- t2 = t1.length;
- t3 = node.url;
- $async$goto = t2 !== 0 ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
- case 6:
- // returning from await.
- newConfiguration = $async$result;
- $async$goto = 7;
- return A._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure1($async$self, node), newConfiguration), $async$visitForwardRule$1);
- case 7:
- // returning from await.
- t3 = type$.String;
- t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- for (t1 = newConfiguration._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (!t3.contains$1(0, $name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- $async$self._async_evaluate$_assertConfigurationIsEmpty$1(newConfiguration);
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$self._async_evaluate$_configuration = adjustedConfiguration;
- $async$goto = 8;
- return A._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1);
- case 8:
- // returning from await.
- $async$self._async_evaluate$_configuration = oldConfiguration;
- case 4:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitForwardRule$1, $async$completer);
- },
- _async_evaluate$_addForwardConfiguration$2(configuration, node) {
- return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node);
- },
- _addForwardConfiguration$body$_EvaluateVisitor(configuration, node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, _i, variable, t6, oldValue, t7, variableNodeWithSpan, t8, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
- var $async$_async_evaluate$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = configuration._configuration$_values;
- newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
- t2 = node.configuration, t3 = t2.length, t4 = type$._Future_Value, t5 = type$.Future_Value, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- variable = t2[_i];
- if (variable.isGuarded) {
- t6 = variable.name;
- oldValue = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t6);
- if (oldValue != null)
- t7 = !oldValue.value.$eq(0, B.C__SassNull);
- else {
- oldValue = null;
- t7 = false;
- }
- if (t7) {
- newValues.$indexSet(0, t6, oldValue);
- // goto for update
- $async$goto = 4;
- break;
- }
- }
- t6 = variable.expression;
- variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t6);
- t7 = variable.name;
- t6 = t6.accept$1($async$self);
- if (!t5._is(t6)) {
- t8 = new A._Future($.Zone__current, t4);
- t8._state = 8;
- t8._resultOrListeners = t6;
- t6 = t8;
- }
- $async$temp1 = newValues;
- $async$temp2 = t7;
- $async$temp3 = A;
- $async$goto = 6;
- return A._asyncAwait(t6, $async$_async_evaluate$_addForwardConfiguration$2);
- case 6:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1)) {
- $async$returnValue = new A.ExplicitConfiguration(node, newValues, null);
- // goto return
- $async$goto = 1;
- break;
- } else {
- $async$returnValue = new A.Configuration(newValues, null);
- // goto return
- $async$goto = 1;
- break;
- }
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer);
- },
- _async_evaluate$_registerCommentsForModule$1(module) {
- var _this = this, _s5_ = "_root",
- t1 = _this._async_evaluate$__root;
- if (t1 == null)
- return;
- if (_this._async_evaluate$_assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
- return;
- t1 = _this._async_evaluate$_preModuleComments;
- if (t1 == null)
- t1 = _this._async_evaluate$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.List_CssComment);
- J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure0()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children._collection$_source, type$.CssComment), type$.UnmodifiableListView_CssComment));
- _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).clearChildren$0();
- _this._async_evaluate$__endOfImports = 0;
- },
- _async_evaluate$_removeUsedConfiguration$3$except(upstream, downstream, except) {
- var t1, t2, t3, t4, _i, $name;
- for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!t4.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
- var t1, _0_0, $name, value;
- if (!(configuration instanceof A.ExplicitConfiguration))
- return;
- t1 = configuration._configuration$_values;
- if (t1.get$isEmpty(t1))
- return;
- t1 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
- _0_0 = t1.get$first(t1);
- $name = _0_0._0;
- value = _0_0._1;
- t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
- throw A.wrapException(this._async_evaluate$_exception$2(t1, value.configurationSpan));
- },
- _async_evaluate$_assertConfigurationIsEmpty$1(configuration) {
- return this._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
- },
- visitFunctionRule$1(node) {
- return this.visitFunctionRule$body$_EvaluateVisitor(node);
- },
- visitFunctionRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
- var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_environment;
- t2 = t1.closure$0();
- t3 = $async$self._async_evaluate$_inDependency;
- t4 = t1._async_environment$_functions;
- index = t4.length - 1;
- t5 = node.name;
- t1._async_environment$_functionIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitFunctionRule$1, $async$completer);
- },
- visitIfRule$1(node) {
- return this.visitIfRule$body$_EvaluateVisitor(node);
- },
- visitIfRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, clause;
- var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- clause = node.lastClause;
- t1 = node.clauses, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- clauseToCheck = t1[_i];
- $async$goto = 6;
- return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
- case 6:
- // returning from await.
- if ($async$result.get$isTruthy()) {
- clause = clauseToCheck;
- // goto after for
- $async$goto = 5;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = A.NullableExtension_andThen(clause, new A._EvaluateVisitor_visitIfRule_closure0($async$self));
- $async$goto = 7;
- return A._asyncAwait(type$.Future_nullable_Value._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Value), $async$visitIfRule$1);
- case 7:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitIfRule$1, $async$completer);
- },
- visitImportRule$1(node) {
- return this.visitImportRule$body$_EvaluateVisitor(node);
- },
- visitImportRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
- var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $import = t1[_i];
- $async$goto = $import instanceof A.DynamicImport ? 6 : 8;
- break;
- case 6:
- // then
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1);
- case 9:
- // returning from await.
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = 10;
- return A._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
- case 10:
- // returning from await.
- case 7:
- // join
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitImportRule$1, $async$completer);
- },
- _async_evaluate$_visitDynamicImport$1($import) {
- return this._async_evaluate$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void);
- },
- _async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
- return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport);
- },
- _async_evaluate$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
- return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _async_evaluate$_loadStylesheet$3$forImport(url, span, forImport) {
- return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- _loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, $async$exception;
- var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- baseUrl = baseUrl;
- $async$handler = 4;
- $async$self._async_evaluate$_importSpan = span;
- _0_0 = $async$self._async_evaluate$_importCache;
- importCache = null;
- $async$goto = _0_0 != null ? 7 : 8;
- break;
- case 7:
- // then
- importCache = _0_0;
- if (baseUrl == null) {
- t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").span;
- baseUrl = t1.get$sourceUrl(t1);
- }
- $async$goto = 9;
- return A._asyncAwait(J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), $async$self._async_evaluate$_importer, baseUrl, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
- case 9:
- // returning from await.
- _1_0 = $async$result;
- importer = null;
- canonicalUrl = null;
- originalUrl = null;
- $async$goto = type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0) ? 10 : 11;
- break;
- case 10:
- // then
- importer = _1_0._0;
- canonicalUrl = _1_0._1;
- originalUrl = _1_0._2;
- $async$self._async_evaluate$_loadedUrls.add$1(0, canonicalUrl);
- isDependency = $async$self._async_evaluate$_inDependency || !J.$eq$(importer, $async$self._async_evaluate$_importer);
- t1 = importCache;
- t2 = importer;
- t3 = canonicalUrl;
- t4 = originalUrl;
- $async$goto = 12;
- return A._asyncAwait(t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, $async$self._async_evaluate$_quietDeps && isDependency), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
- case 12:
- // returning from await.
- _2_0 = $async$result;
- stylesheet = null;
- if (_2_0 != null) {
- stylesheet = _2_0;
- t1 = stylesheet;
- t2 = importer;
- $async$returnValue = new A._Record_3_importer_isDependency(t1, t2, isDependency);
- $async$next = [1];
- // goto finally
- $async$goto = 5;
- break;
- }
- case 11:
- // join
- case 8:
- // join
- t1 = B.JSString_methods.startsWith$1(url, "package:");
- if (t1)
- throw A.wrapException(string$.x22packa);
- else
- throw A.wrapException("Can't find stylesheet to import.");
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException)
- throw $async$exception;
- else if (t1 instanceof A.ArgumentError) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- A.throwWithTrace($async$self._async_evaluate$_exception$1(J.toString$0$(error)), error, stackTrace);
- } else {
- error0 = t1;
- stackTrace0 = A.getTraceFromException($async$exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error0));
- } catch (exception) {
- message0 = J.toString$0$(error0);
- message = message0;
- }
- A.throwWithTrace($async$self._async_evaluate$_exception$1(message), error0, stackTrace0);
- }
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 5:
- // finally
- $async$handler = 2;
- $async$self._async_evaluate$_importSpan = null;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer);
- },
- _visitStaticImport$1($import) {
- return this._visitStaticImport$body$_EvaluateVisitor($import);
- },
- _visitStaticImport$body$_EvaluateVisitor($import) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, node, $async$temp1, $async$temp2;
- var $async$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1);
- case 2:
- // returning from await.
- t1 = $async$result;
- t2 = A.NullableExtension_andThen($import.modifiers, $async$self.get$_async_evaluate$_interpolationToValue());
- $async$temp1 = A;
- $async$temp2 = t1;
- $async$goto = 3;
- return A._asyncAwait(type$.Future_nullable_CssValue_String._is(t2) ? t2 : A._Future$value(t2, type$.nullable_CssValue_String), $async$_visitStaticImport$1);
- case 3:
- // returning from await.
- node = new $async$temp1.ModifiableCssImport($async$temp2, $async$result, $import.span);
- if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") !== $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root"))
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(node);
- else if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source)) {
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(node);
- $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
- } else {
- t1 = $async$self._async_evaluate$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(node);
- }
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$_visitStaticImport$1, $async$completer);
- },
- _async_evaluate$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
- return this._applyMixin$body$_EvaluateVisitor(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent);
- },
- _applyMixin$body$_EvaluateVisitor(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, _0_0, _1_8, t2;
- var $async$_async_evaluate$_applyMixin$5 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (mixin == null)
- throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
- t1 = type$.AsyncBuiltInCallable._is(mixin);
- $async$goto = t1 && !mixin.get$acceptsContent() && contentCallable != null ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_applyMixin$5);
- case 5:
- // returning from await.
- t1 = $async$result._values;
- _0_0 = mixin.callbackFor$2(J.get$length$asx(t1[2]), new A.MapKeySet(t1[0], type$.MapKeySet_String));
- throw A.wrapException(A.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- case 4:
- // join
- $async$goto = t1 ? 6 : 7;
- break;
- case 6:
- // then
- $async$goto = 8;
- return A._asyncAwait($async$self._async_evaluate$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure1($async$self, $arguments, mixin, nodeWithSpanWithoutContent)), $async$_async_evaluate$_applyMixin$5);
- case 8:
- // returning from await.
- // goto break $label0$0
- $async$goto = 2;
- break;
- case 7:
- // join
- t1 = type$.UserDefinedCallable_AsyncEnvironment._is(mixin);
- if (t1) {
- _1_8 = mixin.declaration;
- if (_1_8 instanceof A.MixinRule)
- t2 = !type$.MixinRule._as(_1_8).get$hasContent() && contentCallable != null;
- else
- t2 = false;
- } else
- t2 = false;
- if (t2)
- throw A.wrapException(A.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- $async$goto = t1 ? 9 : 10;
- break;
- case 9:
- // then
- $async$goto = 11;
- return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure2($async$self, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null), $async$_async_evaluate$_applyMixin$5);
- case 11:
- // returning from await.
- // goto break $label0$0
- $async$goto = 2;
- break;
- case 10:
- // join
- throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- case 2:
- // break $label0$0
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_applyMixin$5, $async$completer);
- },
- visitIncludeRule$1(node) {
- return this.visitIncludeRule$body$_EvaluateVisitor(node);
- },
- visitIncludeRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, mixin;
- var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- mixin = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure2($async$self, node));
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
- $async$self._async_evaluate$_warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_HJ0);
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_applyMixin$5(mixin, A.NullableExtension_andThen(node.content, new A._EvaluateVisitor_visitIncludeRule_closure3($async$self)), node.$arguments, node, new A._FakeAstNode(new A._EvaluateVisitor_visitIncludeRule_closure4(node))), $async$visitIncludeRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitIncludeRule$1, $async$completer);
- },
- visitMixinRule$1(node) {
- return this.visitMixinRule$body$_EvaluateVisitor(node);
- },
- visitMixinRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
- var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_environment;
- t2 = t1.closure$0();
- t3 = $async$self._async_evaluate$_inDependency;
- t4 = t1._async_environment$_mixins;
- index = t4.length - 1;
- t5 = node.name;
- t1._async_environment$_mixinIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitMixinRule$1, $async$completer);
- },
- visitLoudComment$1(node) {
- return this.visitLoudComment$body$_EvaluateVisitor(node);
- },
- visitLoudComment$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
- var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_inFunction) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root") && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source))
- $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
- t1 = node.text;
- $async$temp1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
- $async$temp2 = A;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1);
- case 3:
- // returning from await.
- $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment($async$result, t1.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitLoudComment$1, $async$completer);
- },
- visitMediaRule$1(node) {
- return this.visitMediaRule$body$_EvaluateVisitor(node);
- },
- visitMediaRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3;
- var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
- $async$goto = 3;
- return A._asyncAwait($async$self._visitMediaQueries$1(node.query), $async$visitMediaRule$1);
- case 3:
- // returning from await.
- queries = $async$result;
- mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure2($async$self, queries));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- if (t1)
- mergedSources = B.Set_empty1;
- else {
- t2 = $async$self._async_evaluate$_mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
- t3 = $async$self._async_evaluate$_mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, queries);
- mergedSources = t2;
- }
- t1 = t1 ? queries : mergedQueries;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure3($async$self, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure4(mergedSources), type$.ModifiableCssMediaRule, type$.Null), $async$visitMediaRule$1);
- case 4:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitMediaRule$1, $async$completer);
- },
- _visitMediaQueries$1(interpolation) {
- return this._visitMediaQueries$body$_EvaluateVisitor(interpolation);
- },
- _visitMediaQueries$body$_EvaluateVisitor(interpolation) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery),
- $async$returnValue, $async$self = this, _0_0;
- var $async$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(interpolation, true), $async$_visitMediaQueries$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- $async$returnValue = A.CssMediaQuery_parseList(_0_0._0, _0_0._1, $async$self._async_evaluate$_logger);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_visitMediaQueries$1, $async$completer);
- },
- _async_evaluate$_mergeMediaQueries$2(queries1, queries2) {
- var t1, t2, t3, t4, _0_0, t5, result,
- queries = A._setArrayType([], type$.JSArray_CssMediaQuery);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
- $label0$1: {
- _0_0 = t3.merge$1(t4.get$current(t4));
- if (B._SingletonCssMediaQueryMergeResult_0 === _0_0)
- continue;
- if (B._SingletonCssMediaQueryMergeResult_1 === _0_0)
- return null;
- t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult;
- result = t5 ? _0_0 : null;
- if (t5)
- queries.push(result.query);
- break $label0$1;
- }
- }
- return queries;
- },
- visitReturnRule$1(node) {
- return this.visitReturnRule$body$_EvaluateVisitor(node);
- },
- visitReturnRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2;
- var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.expression;
- t2 = t1.accept$1($async$self);
- $async$goto = 3;
- return A._asyncAwait(type$.Future_Value._is(t2) ? t2 : A._Future$value(t2, type$.Value), $async$visitReturnRule$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitReturnRule$1, $async$completer);
- },
- visitSilentComment$1(node) {
- return this.visitSilentComment$body$_EvaluateVisitor(node);
- },
- visitSilentComment$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue;
- var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSilentComment$1, $async$completer);
- },
- visitStyleRule$1(node) {
- return this.visitStyleRule$body$_EvaluateVisitor(node);
- },
- visitStyleRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule;
- var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_n, node.span));
- else if ($async$self._async_evaluate$_inKeyframes && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_k, node.span));
- t1 = node.selector;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(t1, true), $async$visitStyleRule$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- selectorText = _0_0._0;
- selectorMap = _0_0._1;
- $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5;
- break;
- case 4:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable(A.KeyframeSelectorParser$(selectorText, selectorMap, $async$self._async_evaluate$_logger).parse$0(), type$.String), t1.span, type$.CssValue_List_String), node.span), new A._EvaluateVisitor_visitStyleRule_closure3($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure4(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1);
- case 6:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- parsedSelector = A.SelectorList_SelectorList$parse(selectorText, true, selectorMap, $async$self._async_evaluate$_logger, $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss);
- t1 = $async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.fromPlainCss;
- nest = t1 !== true;
- if (nest) {
- if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss)
- for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- _1_0 = t1[_i].leadingCombinators;
- if (_1_0.length >= 1) {
- first = _1_0[0];
- t3 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet");
- t3 = t3.plainCss;
- } else {
- first = null;
- t3 = false;
- }
- if (t3)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Top_lel, first.span));
- }
- t1 = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.originalSelector;
- parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !$async$self._async_evaluate$_atRootExcludingStyleRule, $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss);
- }
- rule = A.ModifiableCssStyleRule$($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addSelector$2(parsedSelector, $async$self._async_evaluate$_mediaQueries), node.span, $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss, parsedSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
- t1 = $async$self._async_evaluate$_atRootExcludingStyleRule = false;
- t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure5() : null;
- $async$goto = 7;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure6($async$self, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1);
- case 7:
- // returning from await.
- $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- $async$self._async_evaluate$_warnForBogusCombinators$1(rule);
- if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null) {
- t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
- t1 = !t1.get$isEmpty(t1);
- }
- if (t1) {
- t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
- t1.get$last(t1).isGroupEnd = true;
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitStyleRule$1, $async$completer);
- },
- _async_evaluate$_warnForBogusCombinators$1(rule) {
- var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
- if (!rule.accept$1(B._IsInvisibleVisitor_false_false))
- for (t1 = rule._style_rule$_selector._box$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true))
- continue;
- if (complex.accept$1(B.C__IsUselessVisitor)) {
- visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._async_evaluate$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight(complex.span), B.Deprecation_ido);
- } else if (complex.leadingCombinators.length !== 0) {
- if (!_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__stylesheet, "_stylesheet").plainCss) {
- visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._async_evaluate$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight(complex.span), B.Deprecation_ido);
- }
- } else {
- visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
- t7 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : "";
- t8 = A.SpanExtensions_trimRight(complex.span);
- if (t5.get$length(0) === 0)
- A.throwExpression(A.IterableElementError_noElement());
- t9 = J.get$span$z(t5.$index(0, 0));
- _this._async_evaluate$_warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure0()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_ido);
- }
- }
- },
- visitSupportsRule$1(node) {
- return this.visitSupportsRule$body$_EvaluateVisitor(node);
- },
- visitSupportsRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
- var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
- t1 = node.condition;
- $async$temp1 = A;
- $async$temp2 = A;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
- case 4:
- // returning from await.
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$(new $async$temp2.CssValue($async$result, t1.get$span(t1), type$.CssValue_String), node.span), new A._EvaluateVisitor_visitSupportsRule_closure1($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitSupportsRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSupportsRule$1, $async$completer);
- },
- _async_evaluate$_visitSupportsCondition$1(condition) {
- return this._visitSupportsCondition$body$_EvaluateVisitor(condition);
- },
- _visitSupportsCondition$body$_EvaluateVisitor(condition) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, _box_0, $async$temp1, $async$temp2;
- var $async$_async_evaluate$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- $async$goto = condition instanceof A.SupportsOperation ? 4 : 5;
- break;
- case 4:
- // then
- t1 = condition.operator;
- $async$temp1 = A;
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.left, t1), $async$_async_evaluate$_visitSupportsCondition$1);
- case 6:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
- $async$temp2 = A;
- $async$goto = 7;
- return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.right, t1), $async$_async_evaluate$_visitSupportsCondition$1);
- case 7:
- // returning from await.
- t1 = $async$temp1 + $async$temp2.S($async$result);
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 5:
- // join
- $async$goto = condition instanceof A.SupportsNegation ? 8 : 9;
- break;
- case 8:
- // then
- $async$temp1 = A;
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate$_parenthesize$1(condition.condition), $async$_async_evaluate$_visitSupportsCondition$1);
- case 10:
- // returning from await.
- t1 = "not " + $async$temp1.S($async$result);
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 9:
- // join
- $async$goto = condition instanceof A.SupportsInterpolation ? 11 : 12;
- break;
- case 11:
- // then
- $async$goto = 13;
- return A._asyncAwait($async$self._evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate$_visitSupportsCondition$1);
- case 13:
- // returning from await.
- t1 = $async$result;
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 12:
- // join
- _box_0.declaration = null;
- $async$goto = condition instanceof A.SupportsDeclaration ? 14 : 15;
- break;
- case 14:
- // then
- _box_0.declaration = condition;
- $async$goto = 16;
- return A._asyncAwait($async$self._async_evaluate$_withSupportsDeclaration$1$1(new A._EvaluateVisitor__visitSupportsCondition_closure0(_box_0, $async$self), type$.String), $async$_async_evaluate$_visitSupportsCondition$1);
- case 16:
- // returning from await.
- t1 = $async$result;
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 15:
- // join
- $async$goto = condition instanceof A.SupportsFunction ? 17 : 18;
- break;
- case 17:
- // then
- $async$temp1 = A;
- $async$goto = 19;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
- case 19:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + "(";
- $async$temp2 = A;
- $async$goto = 20;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.$arguments), $async$_async_evaluate$_visitSupportsCondition$1);
- case 20:
- // returning from await.
- t1 = $async$temp1 + $async$temp2.S($async$result) + ")";
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 18:
- // join
- $async$goto = condition instanceof A.SupportsAnything ? 21 : 22;
- break;
- case 21:
- // then
- $async$temp1 = A;
- $async$goto = 23;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.contents), $async$_async_evaluate$_visitSupportsCondition$1);
- case 23:
- // returning from await.
- t1 = "(" + $async$temp1.S($async$result) + ")";
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 22:
- // join
- t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
- case 3:
- // break $label0$0
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer);
- },
- _async_evaluate$_withSupportsDeclaration$1$1(callback, $T) {
- return this._withSupportsDeclaration$body$_EvaluateVisitor(callback, $T, $T);
- },
- _withSupportsDeclaration$body$_EvaluateVisitor(callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, t1, oldInSupportsDeclaration;
- var $async$_async_evaluate$_withSupportsDeclaration$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
- $async$self._async_evaluate$_inSupportsDeclaration = true;
- $async$handler = 3;
- t1 = callback.call$0();
- $async$goto = 6;
- return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate$_withSupportsDeclaration$1$1);
- case 6:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 4:
- // finally
- $async$handler = 2;
- $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_withSupportsDeclaration$1$1, $async$completer);
- },
- _async_evaluate$_parenthesize$2(condition, operator) {
- return this._parenthesize$body$_EvaluateVisitor(condition, operator);
- },
- _async_evaluate$_parenthesize$1(condition) {
- return this._async_evaluate$_parenthesize$2(condition, null);
- },
- _parenthesize$body$_EvaluateVisitor(condition, operator) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, $async$temp1;
- var $async$_async_evaluate$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!(condition instanceof A.SupportsNegation))
- if (condition instanceof A.SupportsOperation)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- $async$goto = t1 ? 3 : 4;
- break;
- case 3:
- // then
- $async$temp1 = A;
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
- case 5:
- // returning from await.
- $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
- case 6:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer);
- },
- visitVariableDeclaration$1(node) {
- return this.visitVariableDeclaration$body$_EvaluateVisitor(node);
- },
- visitVariableDeclaration$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t2, value, t1, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- if (node.isGuarded) {
- if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) {
- t2 = $async$self._async_evaluate$_configuration._configuration$_values;
- t2 = t2.get$isEmpty(t2) ? null : t2.remove$1(0, node.name);
- t1.override = null;
- if (t2 != null) {
- t1.override = t2;
- t2 = !t2.value.$eq(0, B.C__SassNull);
- } else
- t2 = false;
- if (t2) {
- $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure2(t1, $async$self, node));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- value = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node));
- if (value != null && !value.$eq(0, B.C__SassNull)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) {
- t1 = $async$self._async_evaluate$_environment._async_environment$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName(node.span) + ": null` at the stylesheet root.";
- $async$self._async_evaluate$_warn$3(t1, node.span, B.Deprecation_2nU);
- }
- t1 = node.expression;
- t2 = t1.accept$1($async$self);
- $async$temp1 = node;
- $async$temp2 = A;
- $async$temp3 = node;
- $async$goto = 3;
- return A._asyncAwait(type$.Future_Value._is(t2) ? t2 : A._Future$value(t2, type$.Value), $async$visitVariableDeclaration$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure4($async$self, $async$temp3, $async$self._async_evaluate$_withoutSlash$2($async$result, t1)));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
- },
- visitUseRule$1(node) {
- return this.visitUseRule$body$_EvaluateVisitor(node);
- },
- visitUseRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, values, t3, t4, _i, variable, t5, variableNodeWithSpan, t6, t7, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.configuration;
- t2 = t1.length;
- $async$goto = t2 !== 0 ? 3 : 5;
- break;
- case 3:
- // then
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- t3 = type$._Future_Value, t4 = type$.Future_Value, _i = 0;
- case 6:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- variable = t1[_i];
- t5 = variable.expression;
- variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t5);
- t6 = variable.name;
- t5 = t5.accept$1($async$self);
- if (!t4._is(t5)) {
- t7 = new A._Future($.Zone__current, t3);
- t7._state = 8;
- t7._resultOrListeners = t5;
- t5 = t7;
- }
- $async$temp1 = values;
- $async$temp2 = t6;
- $async$temp3 = A;
- $async$goto = 9;
- return A._asyncAwait(t5, $async$visitUseRule$1);
- case 9:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- configuration = new A.ExplicitConfiguration(node, values, null);
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- configuration = B.Configuration_Map_empty_null;
- case 4:
- // join
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure0($async$self, node), configuration), $async$visitUseRule$1);
- case 10:
- // returning from await.
- $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitUseRule$1, $async$completer);
- },
- visitWarnRule$1(node) {
- return this.visitWarnRule$body$_EvaluateVisitor(node);
- },
- visitWarnRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.Value), $async$visitWarnRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof A.SassString ? value._string$_text : $async$self._async_evaluate$_serialize$2(value, node.expression);
- $async$self._async_evaluate$_logger.warn$2$trace(0, t1, $async$self._async_evaluate$_stackTrace$1(node.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitWarnRule$1, $async$completer);
- },
- visitWhileRule$1(node) {
- return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.nullable_Value);
- },
- visitBinaryOperationExpression$1(node) {
- var t1, _this = this;
- if (_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__stylesheet, "_stylesheet").plainCss) {
- t1 = node.operator;
- t1 = t1 !== B.BinaryOperator_wdM && t1 !== B.BinaryOperator_U77;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(_this._async_evaluate$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
- return _this._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure0(_this, node), type$.Value);
- },
- _async_evaluate$_slash$3(left, right, node) {
- var t1, right0, _1_2, _1_1, _null = null,
- result = left.dividedBy$1(right),
- _1_2_isSet = left instanceof A.SassNumber;
- if (_1_2_isSet) {
- t1 = type$.SassNumber;
- t1._as(left);
- if (right instanceof A.SassNumber) {
- t1._as(right);
- t1 = node.allowsSlash && this._async_evaluate$_operandAllowsSlash$1(node.left) && this._async_evaluate$_operandAllowsSlash$1(node.right);
- right0 = right;
- _1_2 = right0;
- } else {
- right0 = _null;
- _1_2 = right;
- t1 = false;
- }
- _1_1 = left;
- } else {
- right0 = _null;
- _1_2 = right0;
- _1_1 = left;
- left = _1_2;
- t1 = false;
- }
- if (t1)
- return type$.SassNumber._as(result).withSlash$2(left, right0);
- if (_1_1 instanceof A.SassNumber)
- t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber;
- else
- t1 = false;
- if (t1) {
- this._async_evaluate$_warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation0().call$1(node)) + " or " + A.expressionToCalc(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_oJv);
- return result;
- }
- return result;
- },
- _async_evaluate$_operandAllowsSlash$1(node) {
- var t1;
- if (node instanceof A.FunctionExpression)
- if (node.namespace == null) {
- t1 = node.name;
- t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._async_evaluate$_environment.getFunction$1(t1) == null;
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- },
- visitValueExpression$1(node) {
- return this.visitValueExpression$body$_EvaluateVisitor(node);
- },
- visitValueExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue;
- var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitValueExpression$1, $async$completer);
- },
- visitVariableExpression$1(node) {
- return this.visitVariableExpression$body$_EvaluateVisitor(node);
- },
- visitVariableExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, result;
- var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- result = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure0($async$self, node));
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitVariableExpression$1, $async$completer);
- },
- visitUnaryOperationExpression$1(node) {
- return this.visitUnaryOperationExpression$body$_EvaluateVisitor(node);
- },
- visitUnaryOperationExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = node;
- $async$temp2 = A;
- $async$temp3 = node;
- $async$goto = 3;
- return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure0($async$temp3, $async$result));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
- },
- visitBooleanExpression$1(node) {
- return this.visitBooleanExpression$body$_EvaluateVisitor(node);
- },
- visitBooleanExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean),
- $async$returnValue;
- var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value ? B.SassBoolean_true : B.SassBoolean_false;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
- },
- visitIfExpression$1(node) {
- return this.visitIfExpression$body$_EvaluateVisitor(node);
- },
- visitIfExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, condition, t1, ifTrue, ifFalse, result, _0_0, positional, named;
- var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- positional = _0_0._0;
- named = _0_0._1;
- $async$self._async_evaluate$_verifyArguments$4(J.get$length$asx(positional), named, $.$get$IfExpression_declaration(), node);
- condition = A.ListExtensions_elementAtOrNull(positional, 0);
- if (condition == null) {
- t1 = named.$index(0, "condition");
- t1.toString;
- condition = t1;
- }
- ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
- if (ifTrue == null) {
- t1 = named.$index(0, "if-true");
- t1.toString;
- ifTrue = t1;
- }
- ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
- if (ifFalse == null) {
- t1 = named.$index(0, "if-false");
- t1.toString;
- ifFalse = t1;
- }
- $async$goto = 4;
- return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
- case 4:
- // returning from await.
- result = $async$result.get$isTruthy() ? ifTrue : ifFalse;
- t1 = result.accept$1($async$self);
- $async$goto = 5;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$visitIfExpression$1);
- case 5:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, $async$self._async_evaluate$_expressionNode$1(result));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitIfExpression$1, $async$completer);
- },
- visitNullExpression$1(node) {
- return this.visitNullExpression$body$_EvaluateVisitor(node);
- },
- visitNullExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue;
- var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = B.C__SassNull;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitNullExpression$1, $async$completer);
- },
- visitNumberExpression$1(node) {
- return this.visitNumberExpression$body$_EvaluateVisitor(node);
- },
- visitNumberExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
- $async$returnValue;
- var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = A.SassNumber_SassNumber(node.value, node.unit);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitNumberExpression$1, $async$completer);
- },
- visitParenthesizedExpression$1(node) {
- var _this = this;
- return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._async_evaluate$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
- },
- visitColorExpression$1(node) {
- return this.visitColorExpression$body$_EvaluateVisitor(node);
- },
- visitColorExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor),
- $async$returnValue;
- var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitColorExpression$1, $async$completer);
- },
- visitListExpression$1(node) {
- return this.visitListExpression$body$_EvaluateVisitor(node);
- },
- visitListExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassList),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = A;
- $async$goto = 3;
- return A._asyncAwait(A.mapAsync(node.contents, new A._EvaluateVisitor_visitListExpression_closure0($async$self), type$.Expression, type$.Value), $async$visitListExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitListExpression$1, $async$completer);
- },
- visitMapExpression$1(node) {
- return this.visitMapExpression$body$_EvaluateVisitor(node);
- },
- visitMapExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap),
- $async$returnValue, $async$self = this, t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1, map, keyNodes;
- var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Value;
- map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
- t2 = node.pairs, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- $async$goto = 6;
- return A._asyncAwait(key.accept$1($async$self), $async$visitMapExpression$1);
- case 6:
- // returning from await.
- keyValue = $async$result;
- $async$goto = 7;
- return A._asyncAwait(value.accept$1($async$self), $async$visitMapExpression$1);
- case 7:
- // returning from await.
- valueValue = $async$result;
- if (map.containsKey$1(keyValue)) {
- t1 = keyNodes.$index(0, keyValue);
- oldValueSpan = t1 == null ? null : t1.get$span(t1);
- t1 = key.get$span(key);
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (oldValueSpan != null)
- t2.$indexSet(0, oldValueSpan, "first key");
- throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t1, "second key", t2, $async$self._async_evaluate$_stackTrace$1(key.get$span(key)), null));
- }
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, key);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitMapExpression$1, $async$completer);
- },
- visitFunctionExpression$1(node) {
- return this.visitFunctionExpression$body$_EvaluateVisitor(node);
- },
- visitFunctionExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t2, _0_0, t3, t4, oldInFunction, result, t1, $function;
- var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- $function = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure2($async$self, node));
- t1.$function = $function;
- $async$goto = $function == null ? 3 : 5;
- break;
- case 3:
- // then
- if (node.namespace != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span));
- t2 = node.name;
- _0_0 = t2.toLowerCase();
- if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
- t3 = node.$arguments;
- t4 = t3.named;
- t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure3());
- } else
- t3 = false;
- $async$goto = t3 ? 6 : 7;
- break;
- case 6:
- // then
- $async$goto = 8;
- return A._asyncAwait($async$self._async_evaluate$_visitCalculation$2$inLegacySassFunction(node, true), $async$visitFunctionExpression$1);
- case 8:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 7:
- // join
- $async$goto = "calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0 ? 9 : 10;
- break;
- case 9:
- // then
- $async$goto = 11;
- return A._asyncAwait($async$self._async_evaluate$_visitCalculation$1(node), $async$visitFunctionExpression$1);
- case 11:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 10:
- // join
- $function = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate$_builtInFunctions.$index(0, t2);
- t2 = t1.$function = $function == null ? new A.PlainCssCallable(node.originalName) : $function;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t2 = $function;
- case 4:
- // join
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
- $async$self._async_evaluate$_warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_HJ0);
- oldInFunction = $async$self._async_evaluate$_inFunction;
- $async$self._async_evaluate$_inFunction = true;
- $async$goto = 12;
- return A._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure4(t1, $async$self, node), type$.Value), $async$visitFunctionExpression$1);
- case 12:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_inFunction = oldInFunction;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
- },
- _async_evaluate$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
- return this._visitCalculation$body$_EvaluateVisitor(node, inLegacySassFunction);
- },
- _async_evaluate$_visitCalculation$1(node) {
- return this._async_evaluate$_visitCalculation$2$inLegacySassFunction(node, false);
- },
- _visitCalculation$body$_EvaluateVisitor(node, inLegacySassFunction) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$next = [], $async$self = this, $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, t2, t3, $async$temp1;
- var $async$_async_evaluate$_visitCalculation$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t2 = node.$arguments;
- t3 = t2.named;
- if (t3.get$isNotEmpty(t3))
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Keywor, node.span));
- else if (t2.rest != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Rest_a, node.span));
- $async$self._async_evaluate$_checkCalculationArguments$1(node);
- t3 = A._setArrayType([], type$.JSArray_Object);
- t2 = t2.positional, t4 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t4)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t3;
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate$_visitCalculation$2$inLegacySassFunction);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $arguments = t3;
- if ($async$self._async_evaluate$_inSupportsDeclaration) {
- $async$returnValue = new A.SassCalculation(node.name, A.List_List$unmodifiable($arguments, type$.Object));
- // goto return
- $async$goto = 1;
- break;
- }
- oldCallableNode = $async$self._async_evaluate$_callableNode;
- $async$self._async_evaluate$_callableNode = node;
- try {
- t1 = null;
- t3 = node.name;
- _0_0 = t3.toLowerCase();
- $label0$0: {
- if ("calc" === _0_0) {
- t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sqrt" === _0_0) {
- t1 = A.SassCalculation__singleArgument("sqrt", J.$index$asx($arguments, 0), A.number0__sqrt$closure(), true);
- break $label0$0;
- }
- if ("sin" === _0_0) {
- t1 = A.SassCalculation__singleArgument("sin", J.$index$asx($arguments, 0), A.number0__sin$closure(), false);
- break $label0$0;
- }
- if ("cos" === _0_0) {
- t1 = A.SassCalculation__singleArgument("cos", J.$index$asx($arguments, 0), A.number0__cos$closure(), false);
- break $label0$0;
- }
- if ("tan" === _0_0) {
- t1 = A.SassCalculation__singleArgument("tan", J.$index$asx($arguments, 0), A.number0__tan$closure(), false);
- break $label0$0;
- }
- if ("asin" === _0_0) {
- t1 = A.SassCalculation__singleArgument("asin", J.$index$asx($arguments, 0), A.number0__asin$closure(), true);
- break $label0$0;
- }
- if ("acos" === _0_0) {
- t1 = A.SassCalculation__singleArgument("acos", J.$index$asx($arguments, 0), A.number0__acos$closure(), true);
- break $label0$0;
- }
- if ("atan" === _0_0) {
- t1 = A.SassCalculation__singleArgument("atan", J.$index$asx($arguments, 0), A.number0__atan$closure(), true);
- break $label0$0;
- }
- if ("abs" === _0_0) {
- t1 = A.SassCalculation_abs(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("exp" === _0_0) {
- t1 = A.SassCalculation_exp(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sign" === _0_0) {
- t1 = A.SassCalculation_sign(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("min" === _0_0) {
- t1 = A.SassCalculation_min($arguments);
- break $label0$0;
- }
- if ("max" === _0_0) {
- t1 = A.SassCalculation_max($arguments);
- break $label0$0;
- }
- if ("hypot" === _0_0) {
- t1 = A.SassCalculation_hypot($arguments);
- break $label0$0;
- }
- if ("pow" === _0_0) {
- t1 = A.SassCalculation_pow(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("atan2" === _0_0) {
- t1 = A.SassCalculation_atan2(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("log" === _0_0) {
- t1 = A.SassCalculation_log(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("mod" === _0_0) {
- t1 = A.SassCalculation_mod(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("rem" === _0_0) {
- t1 = A.SassCalculation_rem(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("round" === _0_0) {
- t1 = A.SassCalculation_round(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- if ("clamp" === _0_0) {
- t1 = A.SassCalculation_clamp(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
- t1 = A.throwExpression(t3);
- }
- t1 = t1;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- if (B.JSString_methods.contains$1(error.message, "compatible"))
- $async$self._async_evaluate$_verifyCompatibleNumbers$2($arguments, t2);
- A.throwWithTrace($async$self._async_evaluate$_exception$2(error.message, node.span), error, stackTrace);
- } else
- throw exception;
- } finally {
- $async$self._async_evaluate$_callableNode = oldCallableNode;
- }
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_visitCalculation$2$inLegacySassFunction, $async$completer);
- },
- _async_evaluate$_checkCalculationArguments$1(node) {
- var t1, _0_0,
- check = new A._EvaluateVisitor__checkCalculationArguments_check0(this, node);
- $label0$0: {
- t1 = node.name;
- _0_0 = t1.toLowerCase();
- if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
- check.call$1(1);
- break $label0$0;
- }
- if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
- check.call$0();
- break $label0$0;
- }
- if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
- check.call$1(2);
- break $label0$0;
- }
- if ("round" === _0_0 || "clamp" === _0_0) {
- check.call$1(3);
- break $label0$0;
- }
- throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
- }
- },
- _async_evaluate$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
- var i, t1, _0_0, arg, number1, j, number2;
- for (i = 0; t1 = args.length, i < t1; ++i) {
- _0_0 = args[i];
- if (_0_0 instanceof A.SassNumber) {
- t1 = _0_0.get$hasComplexUnits();
- arg = _0_0;
- } else {
- arg = null;
- t1 = false;
- }
- if (t1)
- throw A.wrapException(this._async_evaluate$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
- }
- for (i = 0; i < t1 - 1; ++i) {
- number1 = args[i];
- if (!(number1 instanceof A.SassNumber))
- continue;
- for (j = i + 1; t1 = args.length, j < t1; ++j) {
- number2 = args[j];
- if (!(number2 instanceof A.SassNumber))
- continue;
- if (number1.hasPossiblyCompatibleUnits$1(number2))
- continue;
- throw A.wrapException(A.MultiSpanSassRuntimeException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._async_evaluate$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
- }
- }
- },
- _async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
- return this._visitCalculationExpression$body$_EvaluateVisitor(node, inLegacySassFunction);
- },
- _visitCalculationExpression$body$_EvaluateVisitor(node, inLegacySassFunction) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
- $async$returnValue, $async$self = this, result, t2, _0_0, _1_0, t3, _i, i, _box_0, t1, inner, $async$temp1;
- var $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- t1 = node instanceof A.ParenthesizedExpression;
- inner = t1 ? node.expression : null;
- $async$goto = t1 ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
- case 5:
- // returning from await.
- result = $async$result;
- $async$returnValue = result instanceof A.SassString ? new A.SassString("(" + result._string$_text + ")", false) : result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$goto = node instanceof A.StringExpression && node.accept$1(new A._IsCalculationSafeVisitor()) ? 6 : 7;
- break;
- case 6:
- // then
- t1 = node.text;
- t2 = t1.get$asPlain();
- _0_0 = t2 == null ? null : t2.toLowerCase();
- if ("pi" === _0_0) {
- t1 = A.SassNumber_SassNumber(3.141592653589793, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("e" === _0_0) {
- t1 = A.SassNumber_SassNumber(2.718281828459045, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber(1 / 0, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("-infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber(-1 / 0, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("nan" === _0_0) {
- t1 = A.SassNumber_SassNumber(0 / 0, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- $async$temp1 = A;
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
- case 9:
- // returning from await.
- t1 = new $async$temp1.SassString($async$result, false);
- // goto break $label0$0
- $async$goto = 8;
- break;
- case 8:
- // break $label0$0
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 7:
- // join
- _box_0.right = _box_0.left = _box_0.operator = null;
- t1 = node instanceof A.BinaryOperationExpression;
- if (t1) {
- _box_0.operator = node.operator;
- _box_0.left = node.left;
- _box_0.right = node.right;
- }
- $async$goto = t1 ? 10 : 11;
- break;
- case 10:
- // then
- $async$self._async_evaluate$_checkWhitespaceAroundCalculationOperator$1(node);
- $async$goto = 12;
- return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure0(_box_0, $async$self, node, inLegacySassFunction), type$.Object), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
- case 12:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 11:
- // join
- $async$goto = node instanceof A.NumberExpression || node instanceof A.VariableExpression || node instanceof A.FunctionExpression || node instanceof A.IfExpression ? 13 : 14;
- break;
- case 13:
- // then
- $async$goto = 15;
- return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
- case 15:
- // returning from await.
- _1_0 = $async$result;
- $label1$1: {
- if (_1_0 instanceof A.SassNumber) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassCalculation) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassString) {
- t1 = !_1_0._hasQuotes;
- result = _1_0;
- } else {
- result = null;
- t1 = false;
- }
- if (t1) {
- t1 = result;
- break $label1$1;
- }
- t1 = A.throwExpression($async$self._async_evaluate$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
- }
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 14:
- // join
- $async$goto = node instanceof A.ListExpression && !node.hasBrackets && B.ListSeparator_nbm === node.separator && node.contents.length >= 2 ? 16 : 17;
- break;
- case 16:
- // then
- t1 = A._setArrayType([], type$.JSArray_Object);
- t2 = node.contents, t3 = t2.length, _i = 0;
- case 18:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 20;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 21;
- return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
- case 21:
- // returning from await.
- $async$temp1.push($async$result);
- case 19:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 18;
- break;
- case 20:
- // after for
- $async$self._async_evaluate$_checkAdjacentCalculationValues$2(t1, node);
- for (i = 0; i < t1.length; ++i) {
- t3 = t1[i];
- if (t3 instanceof A.CalculationOperation && t2[i] instanceof A.ParenthesizedExpression)
- t1[i] = new A.SassString("(" + A.S(t3) + ")", false);
- }
- $async$returnValue = new A.SassString(B.JSArray_methods.join$1(t1, " "), false);
- // goto return
- $async$goto = 1;
- break;
- case 17:
- // join
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.This_e, node.get$span(node)));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction, $async$completer);
- },
- _async_evaluate$_checkWhitespaceAroundCalculationOperator$1(node) {
- var t2, t3, t4, textBetweenOperands, first, last,
- t1 = node.operator;
- if (t1 !== B.BinaryOperator_u15 && t1 !== B.BinaryOperator_SjO)
- return;
- t1 = node.left;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t3 = node.right;
- t4 = t3.get$span(t3);
- if (t2 !== t4.get$file(t4))
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$end(t2);
- t4 = t3.get$span(t3);
- if (t2.offset >= t4.get$start(t4).offset)
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t1 = t1.get$span(t1);
- t1 = t1.get$end(t1);
- t3 = t3.get$span(t3);
- textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
- first = textBetweenOperands.charCodeAt(0);
- last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
- if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
- t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._async_evaluate$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
- },
- _async_evaluate$_binaryOperatorToCalculationOperator$2(operator, node) {
- var t1;
- $label0$0: {
- if (B.BinaryOperator_u15 === operator) {
- t1 = B.CalculationOperator_g2q;
- break $label0$0;
- }
- if (B.BinaryOperator_SjO === operator) {
- t1 = B.CalculationOperator_CxF;
- break $label0$0;
- }
- if (B.BinaryOperator_2No === operator) {
- t1 = B.CalculationOperator_171;
- break $label0$0;
- }
- if (B.BinaryOperator_U77 === operator) {
- t1 = B.CalculationOperator_Qf1;
- break $label0$0;
- }
- t1 = A.throwExpression(this._async_evaluate$_exception$2(string$.This_o, node.get$operatorSpan()));
- }
- return t1;
- },
- _async_evaluate$_checkAdjacentCalculationValues$2(elements, node) {
- var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
- for (t1 = elements.length, i = 1; i < t1; ++i) {
- t2 = i - 1;
- previous = elements[t2];
- current = elements[i];
- if (previous instanceof A.SassString || current instanceof A.SassString)
- continue;
- t1 = node.contents;
- previousNode = t1[t2];
- currentNode = t1[i];
- if (currentNode instanceof A.UnaryOperationExpression) {
- _0_2 = currentNode.operator;
- if (B.UnaryOperator_AiQ !== _0_2)
- t1 = B.UnaryOperator_cLp === _0_2;
- else
- t1 = true;
- } else
- t1 = false;
- if (!t1)
- t1 = currentNode instanceof A.NumberExpression && currentNode.value < 0;
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._async_evaluate$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
- else
- throw A.wrapException(this._async_evaluate$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
- }
- },
- visitInterpolatedFunctionExpression$1(node) {
- return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor(node);
- },
- visitInterpolatedFunctionExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, result, t1, oldInFunction;
- var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1);
- case 3:
- // returning from await.
- t1 = $async$result;
- oldInFunction = $async$self._async_evaluate$_inFunction;
- $async$self._async_evaluate$_inFunction = true;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0($async$self, node, new A.PlainCssCallable(t1)), type$.Value), $async$visitInterpolatedFunctionExpression$1);
- case 4:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_inFunction = oldInFunction;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer);
- },
- _async_evaluate$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
- return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $V);
- },
- _runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name;
- var $async$_async_evaluate$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$1$4);
- case 3:
- // returning from await.
- evaluated = $async$result;
- $name = callable.declaration.name;
- if ($name !== "@content")
- $name += "()";
- oldCallable = $async$self._async_evaluate$_currentCallable;
- $async$self._async_evaluate$_currentCallable = callable;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure0($async$self, callable, evaluated, nodeWithSpan, run, $V), $V), $async$_async_evaluate$_runUserDefinedCallable$1$4);
- case 4:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_currentCallable = oldCallable;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$1$4, $async$completer);
- },
- _async_evaluate$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
- return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
- },
- _runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, $async$exception, $async$temp1;
- var $async$_async_evaluate$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = type$.AsyncBuiltInCallable._is(callable) ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3);
- case 6:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, nodeWithSpan);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = type$.UserDefinedCallable_AsyncEnvironment._is(callable) ? 7 : 9;
- break;
- case 7:
- // then
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure0($async$self, callable), type$.Value), $async$_async_evaluate$_runFunctionCallable$3);
- case 10:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = callable instanceof A.PlainCssCallable ? 11 : 13;
- break;
- case 11:
- // then
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
- buffer = new A.StringBuffer(callable.name + "(");
- $async$handler = 15;
- first = true;
- t1 = $arguments.positional, t2 = t1.length, _i = 0;
- case 18:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 20;
- break;
- }
- argument = t1[_i];
- if (first)
- first = false;
- else
- buffer._contents += ", ";
- t3 = buffer;
- $async$temp1 = A;
- $async$goto = 21;
- return A._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3);
- case 21:
- // returning from await.
- t4 = $async$temp1.S($async$result);
- t3._contents += t4;
- case 19:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 18;
- break;
- case 20:
- // after for
- restArg = $arguments.rest;
- $async$goto = restArg != null ? 22 : 23;
- break;
- case 22:
- // then
- $async$goto = 24;
- return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3);
- case 24:
- // returning from await.
- rest = $async$result;
- if (!first)
- buffer._contents += ", ";
- t1 = buffer;
- t2 = $async$self._async_evaluate$_serialize$2(rest, restArg);
- t1._contents += t2;
- case 23:
- // join
- $async$handler = 2;
- // goto after finally
- $async$goto = 17;
- break;
- case 15:
- // catch
- $async$handler = 14;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (type$.SassRuntimeException._is(t1)) {
- error = t1;
- if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
- throw $async$exception;
- throw A.wrapException(A.MultiSpanSassRuntimeException$(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 17;
- break;
- case 14:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 17:
- // after finally
- t1 = buffer;
- t2 = A.Primitives_stringFromCharCode(41);
- t1._contents += t2;
- t2 = buffer._contents;
- $async$returnValue = new A.SassString(t2.charCodeAt(0) == 0 ? t2 : t2, false);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 12;
- break;
- case 13:
- // else
- throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
- case 12:
- // join
- case 8:
- // join
- case 4:
- // join
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer);
- },
- _async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
- return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
- },
- _runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, t2, t3, argument, t4, t5, t6, t7, rest, argumentList, exception, message0, _box_0, evaluated, oldCallableNode, $async$exception;
- var $async$_async_evaluate$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runBuiltInCallable$3);
- case 3:
- // returning from await.
- evaluated = $async$result;
- oldCallableNode = $async$self._async_evaluate$_callableNode;
- $async$self._async_evaluate$_callableNode = nodeWithSpan;
- namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
- _box_0.callback = _box_0.overload = null;
- _0_0 = callable.callbackFor$2(J.get$length$asx(evaluated._values[2]), namedSet);
- _box_0.overload = _0_0._0;
- _box_0.callback = _0_0._1;
- $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure2(_box_0, evaluated, namedSet));
- declaredArguments = _box_0.overload.$arguments;
- i = J.get$length$asx(evaluated._values[2]), t1 = declaredArguments.length, t2 = type$._Future_Value, t3 = type$.Future_Value;
- case 4:
- // for condition
- if (!(i < t1)) {
- // goto after for
- $async$goto = 6;
- break;
- }
- argument = declaredArguments[i];
- t4 = evaluated._values[2];
- t5 = evaluated._values[0].remove$1(0, argument.name);
- $async$goto = t5 == null ? 7 : 8;
- break;
- case 7:
- // then
- t5 = argument.defaultValue;
- t6 = t5.accept$1($async$self);
- if (!t3._is(t6)) {
- t7 = new A._Future($.Zone__current, t2);
- t7._state = 8;
- t7._resultOrListeners = t6;
- t6 = t7;
- }
- $async$goto = 9;
- return A._asyncAwait(t6, $async$_async_evaluate$_runBuiltInCallable$3);
- case 9:
- // returning from await.
- t5 = $async$self._async_evaluate$_withoutSlash$2($async$result, t5);
- case 8:
- // join
- J.add$1$ax(t4, t5);
- case 5:
- // for update
- ++i;
- // goto for condition
- $async$goto = 4;
- break;
- case 6:
- // after for
- if (_box_0.overload.restArgument != null) {
- if (J.get$length$asx(evaluated._values[2]) > t1) {
- rest = J.sublist$1$ax(evaluated._values[2], t1);
- J.removeRange$2$ax(evaluated._values[2], t1, J.get$length$asx(evaluated._values[2]));
- } else
- rest = B.List_empty8;
- t1 = evaluated._values[0];
- argumentList = A.SassArgumentList$(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : evaluated._values[4]);
- J.add$1$ax(evaluated._values[2], argumentList);
- } else
- argumentList = null;
- result = null;
- $async$handler = 11;
- $async$goto = 14;
- return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure3(_box_0, evaluated), type$.Value), $async$_async_evaluate$_runBuiltInCallable$3);
- case 14:
- // returning from await.
- result = $async$result;
- $async$handler = 2;
- // goto after finally
- $async$goto = 13;
- break;
- case 11:
- // catch
- $async$handler = 10;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException)
- throw $async$exception;
- else {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error));
- } catch (exception) {
- message0 = J.toString$0$(error);
- message = message0;
- }
- A.throwWithTrace($async$self._async_evaluate$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
- }
- // goto after finally
- $async$goto = 13;
- break;
- case 10:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 13:
- // after finally
- $async$self._async_evaluate$_callableNode = oldCallableNode;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = evaluated._values[0];
- if (t1.get$isEmpty(t1)) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = evaluated._values[0];
- t1 = A.pluralize("argument", J.get$length$asx(t1.get$keys(t1)), null);
- t2 = evaluated._values[0];
- throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + t1 + " named " + A.toSentence(J.map$1$1$ax(t2.get$keys(t2), new A._EvaluateVisitor__runBuiltInCallable_closure4(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer);
- },
- _async_evaluate$_evaluateArguments$1($arguments) {
- return this._evaluateArguments$body$_EvaluateVisitor($arguments);
- },
- _evaluateArguments$body$_EvaluateVisitor($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, expression, nodeForSpan, t5, t6, named, namedNodes, $name, value, t7, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2;
- var $async$_async_evaluate$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- positional = A._setArrayType([], type$.JSArray_Value);
- positionalNodes = A._setArrayType([], type$.JSArray_AstNode);
- t1 = $arguments.positional, t2 = t1.length, t3 = type$._Future_Value, t4 = type$.Future_Value, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- expression = t1[_i];
- nodeForSpan = $async$self._async_evaluate$_expressionNode$1(expression);
- t5 = expression.accept$1($async$self);
- if (!t4._is(t5)) {
- t6 = new A._Future($.Zone__current, t3);
- t6._state = 8;
- t6._resultOrListeners = t5;
- t5 = t6;
- }
- $async$temp1 = positional;
- $async$goto = 6;
- return A._asyncAwait(t5, $async$_async_evaluate$_evaluateArguments$1);
- case 6:
- // returning from await.
- $async$temp1.push($async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan));
- positionalNodes.push(nodeForSpan);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = type$.String;
- named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value);
- t2 = type$.AstNode;
- namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- t5 = A.MapExtensions_get_pairs($arguments.named, t1, type$.Expression), t5 = t5.get$iterator(t5);
- case 7:
- // for condition
- if (!t5.moveNext$0()) {
- // goto after for
- $async$goto = 8;
- break;
- }
- t6 = t5.get$current(t5);
- $name = t6._0;
- value = t6._1;
- nodeForSpan = $async$self._async_evaluate$_expressionNode$1(value);
- t6 = value.accept$1($async$self);
- if (!t4._is(t6)) {
- t7 = new A._Future($.Zone__current, t3);
- t7._state = 8;
- t7._resultOrListeners = t6;
- t6 = t7;
- }
- $async$temp1 = named;
- $async$temp2 = $name;
- $async$goto = 9;
- return A._asyncAwait(t6, $async$_async_evaluate$_evaluateArguments$1);
- case 9:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan));
- namedNodes.$indexSet(0, $name, nodeForSpan);
- // goto for condition
- $async$goto = 7;
- break;
- case 8:
- // after for
- restArgs = $arguments.rest;
- if (restArgs == null) {
- $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided]);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 10;
- return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
- case 10:
- // returning from await.
- rest = $async$result;
- restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs);
- if (rest instanceof A.SassMap) {
- $async$self._async_evaluate$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure3());
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();)
- t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan);
- namedNodes.addAll$1(0, t3);
- separator = B.ListSeparator_undecided_null_undecided;
- } else if (rest instanceof A.SassList) {
- t3 = rest._list$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure4($async$self, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value>")));
- B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
- separator = rest._separator;
- if (rest instanceof A.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure5($async$self, named, restNodeForSpan, namedNodes));
- }
- } else {
- positional.push($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan));
- positionalNodes.push(restNodeForSpan);
- separator = B.ListSeparator_undecided_null_undecided;
- }
- keywordRestArgs = $arguments.keywordRest;
- if (keywordRestArgs == null) {
- $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 11;
- return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
- case 11:
- // returning from await.
- keywordRest = $async$result;
- keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs);
- if (keywordRest instanceof A.SassMap) {
- $async$self._async_evaluate$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure6());
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();)
- t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t1);
- $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_evaluateArguments$1, $async$completer);
- },
- _async_evaluate$_evaluateMacroArguments$1(invocation) {
- return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation);
- },
- _evaluateMacroArguments$body$_EvaluateVisitor(invocation) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_List_Expression_and_Map_String_Expression),
- $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_;
- var $async$_async_evaluate$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = invocation.$arguments;
- restArgs_ = t1.rest;
- if (restArgs_ == null) {
- $async$returnValue = new A._Record_2(t1.positional, t1.named);
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = t1.positional;
- positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
- named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression);
- $async$goto = 3;
- return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
- case 3:
- // returning from await.
- rest = $async$result;
- restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs_);
- if (rest instanceof A.SassMap)
- $async$self._async_evaluate$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure3(restArgs_));
- else if (rest instanceof A.SassList) {
- t2 = rest._list$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure4($async$self, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
- if (rest instanceof A.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure5($async$self, named, restNodeForSpan, restArgs_));
- }
- } else
- positional.push(new A.ValueExpression($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
- keywordRestArgs_ = t1.keywordRest;
- if (keywordRestArgs_ == null) {
- $async$returnValue = new A._Record_2(positional, named);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 4;
- return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
- case 4:
- // returning from await.
- keywordRest = $async$result;
- keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs_);
- if (keywordRest instanceof A.SassMap) {
- $async$self._async_evaluate$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure6($async$self, keywordRestNodeForSpan, keywordRestArgs_));
- $async$returnValue = new A._Record_2(positional, named);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer);
- },
- _async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
- map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure0(this, values, convert, this._async_evaluate$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
- },
- _async_evaluate$_addRestMap$4(values, map, nodeWithSpan, convert) {
- return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
- },
- _async_evaluate$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
- return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named));
- },
- visitSelectorExpression$1(node) {
- return this.visitSelectorExpression$body$_EvaluateVisitor(node);
- },
- visitSelectorExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1;
- var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
- $async$returnValue = t1 == null ? B.C__SassNull : t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
- },
- visitStringExpression$1(node) {
- return this.visitStringExpression$body$_EvaluateVisitor(node);
- },
- visitStringExpression$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassString),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, value, t5, _0_0, text, oldInSupportsDeclaration;
- var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
- $async$self._async_evaluate$_inSupportsDeclaration = false;
- t1 = A._setArrayType([], type$.JSArray_String);
- t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- value = t2[_i];
- if (typeof value == "string") {
- t5 = value;
- // goto break $label0$0
- $async$goto = 6;
- break;
- }
- $async$goto = t4._is(value) ? 7 : 8;
- break;
- case 7:
- // then
- $async$goto = 9;
- return A._asyncAwait(value.accept$1($async$self), $async$visitStringExpression$1);
- case 9:
- // returning from await.
- _0_0 = $async$result;
- $label1$1: {
- if (_0_0 instanceof A.SassString) {
- text = _0_0._string$_text;
- t5 = text;
- break $label1$1;
- }
- t5 = $async$self._async_evaluate$_serialize$3$quote(_0_0, value, false);
- break $label1$1;
- }
- // goto break $label0$0
- $async$goto = 6;
- break;
- case 8:
- // join
- t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
- case 6:
- // break $label0$0
- t1.push(t5);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = B.JSArray_methods.join$0(t1);
- $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
- $async$returnValue = new A.SassString(t1, node.hasQuotes);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitStringExpression$1, $async$completer);
- },
- visitSupportsExpression$1(expression) {
- return this.visitSupportsExpression$body$_EvaluateVisitor(expression);
- },
- visitSupportsExpression$body$_EvaluateVisitor(expression) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassString),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = A;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = new $async$temp1.SassString($async$result, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer);
- },
- visitCssAtRule$1(node) {
- return this.visitCssAtRule$body$_EvaluateVisitor(node);
- },
- visitCssAtRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
- var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
- if (node.isChildless) {
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value));
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
- t1 = node.name;
- if (A.unvendor(t1.value) === "keyframes")
- $async$self._async_evaluate$_inKeyframes = true;
- else
- $async$self._async_evaluate$_inUnknownAtRule = true;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssAtRule_closure2(), type$.ModifiableCssAtRule, type$.Null), $async$visitCssAtRule$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssAtRule$1, $async$completer);
- },
- visitCssComment$1(node) {
- return this.visitCssComment$body$_EvaluateVisitor(node);
- },
- visitCssComment$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root") && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source))
- $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(new A.ModifiableCssComment(node.text, node.span));
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssComment$1, $async$completer);
- },
- visitCssDeclaration$1(node) {
- return this.visitCssDeclaration$body$_EvaluateVisitor(node);
- },
- visitCssDeclaration$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap));
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
- },
- visitCssImport$1(node) {
- return this.visitCssImport$body$_EvaluateVisitor(node);
- },
- visitCssImport$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, modifiableNode;
- var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span);
- if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") !== $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root"))
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(modifiableNode);
- else if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source)) {
- $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(modifiableNode);
- $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
- } else {
- t1 = $async$self._async_evaluate$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
- }
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssImport$1, $async$completer);
- },
- visitCssKeyframeBlock$1(node) {
- return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node);
- },
- visitCssKeyframeBlock$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure2(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitCssKeyframeBlock$1);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
- },
- visitCssMediaRule$1(node) {
- return this.visitCssMediaRule$body$_EvaluateVisitor(node);
- },
- visitCssMediaRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3;
- var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
- mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure2($async$self, node));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
- // goto return
- $async$goto = 1;
- break;
- }
- if (t1)
- mergedSources = B.Set_empty1;
- else {
- t2 = $async$self._async_evaluate$_mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
- t3 = $async$self._async_evaluate$_mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, node.queries);
- mergedSources = t2;
- }
- t1 = t1 ? node.queries : mergedQueries;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure3($async$self, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure4(mergedSources), type$.ModifiableCssMediaRule, type$.Null), $async$visitCssMediaRule$1);
- case 3:
- // returning from await.
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
- },
- visitCssStyleRule$1(node) {
- return this.visitCssStyleRule$body$_EvaluateVisitor(node);
- },
- visitCssStyleRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild;
- var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_n, node.span));
- else if ($async$self._async_evaluate$_inKeyframes && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_k, node.span));
- t1 = $async$self._async_evaluate$_atRootExcludingStyleRule;
- styleRule = t1 ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
- t2 = t1 ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
- t2 = t2 == null ? null : t2.fromPlainCss;
- nest = t2 !== true;
- t2 = node._style_rule$_selector._box$_inner;
- if (nest) {
- t2 = t2.value;
- t3 = styleRule == null ? null : styleRule.originalSelector;
- originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
- } else
- originalSelector = t2.value;
- rule = A.ModifiableCssStyleRule$($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addSelector$2(originalSelector, $async$self._async_evaluate$_mediaQueries), node.span, node.fromPlainCss, originalSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
- $async$self._async_evaluate$_atRootExcludingStyleRule = false;
- t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure1() : null;
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure2($async$self, rule, node), false, t1, type$.ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1);
- case 2:
- // returning from await.
- $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children._collection$_source;
- t2 = J.getInterceptor$asx(t1);
- _0_1 = t2.get$length(t1);
- if (_0_1 >= 1) {
- lastChild = t2.elementAt$1(t1, _0_1 - 1);
- t1 = styleRule == null;
- } else {
- lastChild = null;
- t1 = false;
- }
- if (t1)
- lastChild.isGroupEnd = true;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
- },
- visitCssStylesheet$1(node) {
- return this.visitCssStylesheet$body$_EvaluateVisitor(node);
- },
- visitCssStylesheet$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.get$iterator$ax(node.get$children(node));
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
- },
- visitCssSupportsRule$1(node) {
- return this.visitCssSupportsRule$body$_EvaluateVisitor(node);
- },
- visitCssSupportsRule$body$_EvaluateVisitor(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitCssSupportsRule$1);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
- },
- _async_evaluate$_handleReturn$1$2(list, callback) {
- return this._handleReturn$body$_EvaluateVisitor(list, callback);
- },
- _async_evaluate$_handleReturn$2(list, callback) {
- return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic);
- },
- _handleReturn$body$_EvaluateVisitor(list, callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, t1, _i, _0_0;
- var $async$_async_evaluate$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = list.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < list.length)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2);
- case 6:
- // returning from await.
- _0_0 = $async$result;
- if (_0_0 != null) {
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer);
- },
- _async_evaluate$_withEnvironment$1$2(environment, callback, $T) {
- return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T);
- },
- _withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldEnvironment;
- var $async$_async_evaluate$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldEnvironment = $async$self._async_evaluate$_environment;
- $async$self._async_evaluate$_environment = environment;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_environment = oldEnvironment;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer);
- },
- _async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
- return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor);
- },
- _async_evaluate$_interpolationToValue$1(interpolation) {
- return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _async_evaluate$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
- return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String),
- $async$returnValue, $async$self = this, result, t1;
- var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor);
- case 3:
- // returning from await.
- result = $async$result;
- t1 = trim ? A.trimAscii(result, true) : result;
- $async$returnValue = new A.CssValue(t1, interpolation.span, type$.CssValue_String);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer);
- },
- _async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
- return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor);
- },
- _async_evaluate$_performInterpolation$1(interpolation) {
- return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false);
- },
- _performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this;
- var $async$_async_evaluate$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor), $async$_async_evaluate$_performInterpolation$2$warnForColor);
- case 3:
- // returning from await.
- $async$returnValue = $async$result._0;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer);
- },
- _async_evaluate$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
- return this._performInterpolationWithMap$body$_EvaluateVisitor(interpolation, true);
- },
- _performInterpolationWithMap$body$_EvaluateVisitor(interpolation, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_InterpolationMap),
- $async$returnValue, $async$self = this, _0_0, result, map;
- var $async$_async_evaluate$_performInterpolationWithMap$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), $async$_async_evaluate$_performInterpolationWithMap$2$warnForColor);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- result = _0_0._0;
- map = _0_0._1;
- map.toString;
- $async$returnValue = new A._Record_2(result, map);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_performInterpolationWithMap$2$warnForColor, $async$completer);
- },
- _async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
- return this._performInterpolationHelper$body$_EvaluateVisitor(interpolation, sourceMap, warnForColor);
- },
- _performInterpolationHelper$body$_EvaluateVisitor(interpolation, sourceMap, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_nullable_InterpolationMap),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, targetLocations, oldInSupportsDeclaration;
- var $async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : null;
- oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
- $async$self._async_evaluate$_inSupportsDeclaration = false;
- t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = "";
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- value = t1[_i];
- if (!first)
- if (!t4)
- targetLocations.push(A.SourceLocation$(t8.length, null, null, null));
- if (typeof value == "string") {
- t8 += value;
- // goto for update
- $async$goto = 4;
- break;
- }
- t3._as(value);
- $async$goto = 6;
- return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor);
- case 6:
- // returning from await.
- result = $async$result;
- if (warnForColor && $.$get$namesByColor().containsKey$1(result)) {
- t9 = A._setArrayType([""], t5);
- result0 = A.List_List$from(t9, false, t7);
- result0.fixed$length = Array;
- result0.immutable$list = Array;
- result0 = new A.Interpolation(result0, t6);
- result0.Interpolation$2(t9, t6);
- t9 = $.$get$namesByColor();
- $async$self._async_evaluate$_warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_u15, new A.StringExpression(result0, true), value, false).toString$0(0) + "'.", value.get$span(value));
- }
- t8 += $async$self._async_evaluate$_serialize$3$quote(result, value, false);
- case 4:
- // for update
- ++_i, first = false;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
- $async$returnValue = new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure0(interpolation)));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor, $async$completer);
- },
- _evaluateToCss$2$quote(expression, quote) {
- return this._evaluateToCss$body$_EvaluateVisitor(expression, quote);
- },
- _evaluateToCss$1(expression) {
- return this._evaluateToCss$2$quote(expression, true);
- },
- _evaluateToCss$body$_EvaluateVisitor(expression, quote) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1;
- var $async$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = expression.accept$1($async$self);
- $async$goto = 3;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$_evaluateToCss$2$quote);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer);
- },
- _async_evaluate$_serialize$3$quote(value, nodeWithSpan, quote) {
- return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure0(value, quote));
- },
- _async_evaluate$_serialize$2(value, nodeWithSpan) {
- return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _async_evaluate$_expressionNode$1(expression) {
- var t1;
- if (expression instanceof A.VariableExpression) {
- t1 = this._async_evaluate$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure0(this, expression));
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
- return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T);
- },
- _async_evaluate$_withParent$2$2(node, callback, $S, $T) {
- return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _async_evaluate$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
- return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, t1, result;
- var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate$_addChild$2$through(node, through);
- t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
- $async$self._async_evaluate$__parent = node;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate$_withParent$2$4$scopeWhen$through);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$__parent = t1;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer);
- },
- _async_evaluate$_addChild$2$through(node, through) {
- var _0_0, grandparent, t1,
- $parent = this._async_evaluate$_assertInModule$2(this._async_evaluate$__parent, "__parent");
- if (through != null) {
- for (; through.call$1($parent); $parent = _0_0) {
- _0_0 = $parent._parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
- }
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._parent;
- t1 = grandparent.children;
- if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
- $parent = type$.ModifiableCssParentNode._as(t1.get$last(t1));
- else {
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- }
- $parent.addChild$1(node);
- },
- _async_evaluate$_addChild$1(node) {
- return this._async_evaluate$_addChild$2$through(node, null);
- },
- _async_evaluate$_withStyleRule$1$2(rule, callback, $T) {
- return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T);
- },
- _withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldRule;
- var $async$_async_evaluate$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldRule = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
- $async$self._async_evaluate$_styleRuleIgnoringAtRoot = rule;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_styleRuleIgnoringAtRoot = oldRule;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer);
- },
- _async_evaluate$_withMediaQueries$1$3(queries, sources, callback, $T) {
- return this._withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $T);
- },
- _withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources;
- var $async$_async_evaluate$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldMediaQueries = $async$self._async_evaluate$_mediaQueries;
- oldSources = $async$self._async_evaluate$_mediaQuerySources;
- $async$self._async_evaluate$_mediaQueries = queries;
- $async$self._async_evaluate$_mediaQuerySources = sources;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$3);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_mediaQueries = oldMediaQueries;
- $async$self._async_evaluate$_mediaQuerySources = oldSources;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$3, $async$completer);
- },
- _async_evaluate$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) {
- return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T);
- },
- _withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldMember, result, t1;
- var $async$_async_evaluate$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate$_stack;
- t1.push(new A._Record_2($async$self._async_evaluate$_member, nodeWithSpan));
- oldMember = $async$self._async_evaluate$_member;
- $async$self._async_evaluate$_member = member;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate$_member = oldMember;
- t1.pop();
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer);
- },
- _async_evaluate$_withoutSlash$2(value, nodeForSpan) {
- var t1;
- if (value instanceof A.SassNumber)
- t1 = value.asSlash != null;
- else
- t1 = false;
- if (t1)
- this._async_evaluate$_warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation0().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_oJv);
- return value.withoutSlash$0();
- },
- _async_evaluate$_stackFrame$2(member, span) {
- return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure0(this)));
- },
- _async_evaluate$_stackTrace$1(span) {
- var t2, t3, _i, t4, nodeWithSpan, _this = this,
- t1 = A._setArrayType([], type$.JSArray_Frame);
- for (t2 = _this._async_evaluate$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- t4 = t2[_i];
- nodeWithSpan = t4._1;
- t1.push(_this._async_evaluate$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
- }
- if (span != null)
- t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span));
- return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
- },
- _async_evaluate$_stackTrace$0() {
- return this._async_evaluate$_stackTrace$1(null);
- },
- _async_evaluate$_warn$3(message, span, deprecation) {
- var t1, trace, _this = this;
- if (_this._async_evaluate$_quietDeps)
- if (!_this._async_evaluate$_inDependency) {
- t1 = _this._async_evaluate$_currentCallable;
- t1 = t1 == null ? null : t1.inDependency;
- t1 = t1 === true;
- } else
- t1 = true;
- else
- t1 = false;
- if (t1)
- return;
- if (!_this._async_evaluate$_warningsEmitted.add$1(0, new A._Record_2(message, span)))
- return;
- trace = _this._async_evaluate$_stackTrace$1(span);
- t1 = _this._async_evaluate$_logger;
- if (deprecation == null)
- t1.warn$3$span$trace(0, message, span, trace);
- else
- A.WarnForDeprecation_warnForDeprecation(t1, deprecation, message, span, trace);
- },
- _async_evaluate$_warn$2(message, span) {
- return this._async_evaluate$_warn$3(message, span, null);
- },
- _async_evaluate$_exception$2(message, span) {
- var t1, t2;
- if (span == null) {
- t1 = B.JSArray_methods.get$last(this._async_evaluate$_stack)._1;
- t1 = t1.get$span(t1);
- } else
- t1 = span;
- t2 = this._async_evaluate$_stackTrace$1(span);
- return new A.SassRuntimeException(t2, B.Set_empty, message, t1);
- },
- _async_evaluate$_exception$1(message) {
- return this._async_evaluate$_exception$2(message, null);
- },
- _async_evaluate$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
- var t1 = B.JSArray_methods.get$last(this._async_evaluate$_stack)._1;
- return A.MultiSpanSassRuntimeException$(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._async_evaluate$_stackTrace$0(), null);
- },
- _async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback) {
- var error, stackTrace, t1, exception,
- addStackFrame = true;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
- A.throwWithTrace(t1.withTrace$1(this._async_evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
- } else
- throw exception;
- }
- },
- _async_evaluate$_addExceptionSpan$2(nodeWithSpan, callback) {
- return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, $T) {
- return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, addStackFrame, $T, $T);
- },
- _addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) {
- return this._addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, true, $T);
- },
- _addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, addStackFrame, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
- var $async$_addExceptionSpanAsync$1$3$addStackFrame = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- t1 = callback.call$0();
- $async$goto = 7;
- return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_addExceptionSpanAsync$1$3$addStackFrame);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassScriptException) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
- A.throwWithTrace(t1.withTrace$1($async$self._async_evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_addExceptionSpanAsync$1$3$addStackFrame, $async$completer);
- },
- _async_evaluate$_addExceptionTrace$1$1(callback, $T) {
- return this._addExceptionTrace$body$_EvaluateVisitor(callback, $T, $T);
- },
- _addExceptionTrace$body$_EvaluateVisitor(callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception;
- var $async$_async_evaluate$_addExceptionTrace$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- t1 = callback.call$0();
- $async$goto = 7;
- return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate$_addExceptionTrace$1$1);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (type$.SassRuntimeException._is(t1))
- throw $async$exception;
- else if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- A.throwWithTrace(error.withTrace$1($async$self._async_evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_addExceptionTrace$1$1, $async$completer);
- },
- _async_evaluate$_addErrorSpan$1$2(nodeWithSpan, callback, $T) {
- return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
- },
- _addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, t3, $async$exception;
- var $async$_async_evaluate$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (type$.SassRuntimeException._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
- throw $async$exception;
- t1 = error._span_exception$_message;
- t2 = nodeWithSpan.get$span(nodeWithSpan);
- t3 = $async$self._async_evaluate$_stackTrace$0();
- A.throwWithTrace(new A.SassRuntimeException(t3, B.Set_empty, t1, t2), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer);
- }
- };
- A._EvaluateVisitor_closure12.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate$_environment;
- t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure13.prototype = {
- call$1($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._async_evaluate$_environment;
- return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure14.prototype = {
- call$1($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._async_evaluate$_environment;
- t3 = variable._string$_text;
- t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
- return t2.getFunction$2$namespace(t4, module == null ? null : module._string$_text) != null || t1._async_evaluate$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure15.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate$_environment;
- t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure16.prototype = {
- call$1($arguments) {
- var t1 = this.$this._async_evaluate$_environment;
- if (!t1._async_environment$_inMixin)
- throw A.wrapException(A.SassScriptException$(string$.conten, null));
- return t1._async_environment$_content != null ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure17.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
- module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString(t4._0, true), t4._1);
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 33
- };
- A._EvaluateVisitor_closure18.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
- module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs(module.get$functions(module), type$.String, type$.AsyncCallable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassFunction(t4._1));
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 33
- };
- A._EvaluateVisitor_closure19.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
- module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs(module.get$mixins(), type$.String, type$.AsyncCallable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassMixin(t4._1));
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 33
- };
- A._EvaluateVisitor_closure20.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css) {
- if (module != null)
- throw A.wrapException(string$.x24css_a);
- return new A.SassFunction(new A.PlainCssCallable($name._string$_text));
- }
- t1 = this.$this;
- t2 = t1._async_evaluate$_callableNode;
- t2.toString;
- callable = t1._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure6(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Function not found: " + $name.toString$0(0));
- return new A.SassFunction(callable);
- },
- $signature: 163
- };
- A._EvaluateVisitor__closure6.prototype = {
- call$0() {
- var local,
- normalizedName = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
- t1 = this.module,
- namespace = t1 == null ? null : t1._string$_text;
- t1 = this.$this;
- local = t1._async_evaluate$_environment.getFunction$2$namespace(normalizedName, namespace);
- if (local != null || namespace != null)
- return local;
- return t1._async_evaluate$_builtInFunctions.$index(0, normalizedName);
- },
- $signature: 86
- };
- A._EvaluateVisitor_closure21.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._async_evaluate$_callableNode;
- t2.toString;
- callable = t1._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure5(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Mixin not found: " + $name.toString$0(0));
- return new A.SassMixin(callable);
- },
- $signature: 164
- };
- A._EvaluateVisitor__closure5.prototype = {
- call$0() {
- var t1 = this.$this._async_evaluate$_environment,
- t2 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
- t3 = this.module;
- return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string$_text);
- },
- $signature: 86
- };
- A._EvaluateVisitor_closure22.prototype = {
- call$1($arguments) {
- return this.$call$body$_EvaluateVisitor_closure1($arguments);
- },
- $call$body$_EvaluateVisitor_closure1($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, t1, $function, args;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- $function = t1.$index($arguments, 0);
- args = type$.SassArgumentList._as(t1.$index($arguments, 1));
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_callableNode;
- t2.toString;
- t3 = A._setArrayType([], type$.JSArray_Expression);
- t4 = type$.String;
- t5 = type$.Expression;
- t6 = t2.get$span(t2);
- t7 = t2.get$span(t2);
- args._wereKeywordsAccessed = true;
- t8 = args._keywords;
- if (t8.get$isEmpty(t8))
- t2 = null;
- else {
- t9 = type$.Value;
- t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
- for (args._wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
- t11 = t8.get$current(t8);
- t10.$indexSet(0, new A.SassString(t11._0, false), t11._1);
- }
- t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
- }
- invocation = new A.ArgumentInvocation(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression(args, t7), t2, t6);
- $async$goto = $function instanceof A.SassString ? 3 : 4;
- break;
- case 3:
- // then
- A.warnForDeprecation(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_gkc);
- callableNode = t1._async_evaluate$_callableNode;
- t2 = $function._string$_text;
- t3 = callableNode.get$span(callableNode);
- t1 = t1.visitFunctionExpression$1(new A.FunctionExpression(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
- $async$goto = 5;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$1);
- case 5:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- t2 = $function.assertFunction$1("function");
- t3 = t1._async_evaluate$_callableNode;
- t3.toString;
- $async$goto = 6;
- return A._asyncAwait(t1._async_evaluate$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1);
- case 6:
- // returning from await.
- t3 = $async$result;
- $async$returnValue = t3;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 257
- };
- A._EvaluateVisitor_closure23.prototype = {
- call$1($arguments) {
- return this.$call$body$_EvaluateVisitor_closure0($arguments);
- },
- $call$body$_EvaluateVisitor_closure0($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, withMap, t2, values, configuration, t3, t1, url;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text);
- t1 = t1.$index($arguments, 1).get$realNull();
- withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents;
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_callableNode;
- t2.toString;
- if (withMap != null) {
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- withMap.forEach$1(0, new A._EvaluateVisitor__closure3(values, t2.get$span(t2), t2));
- configuration = new A.ExplicitConfiguration(t2, values, null);
- } else
- configuration = B.Configuration_Map_empty_null;
- t3 = t2.get$span(t2);
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure4(t1), t3.get$sourceUrl(t3), configuration, true), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 165
- };
- A._EvaluateVisitor__closure3.prototype = {
- call$2(variable, value) {
- var t1 = variable.assertString$1("with key"),
- $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw A.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode));
- },
- $signature: 90
- };
- A._EvaluateVisitor__closure4.prototype = {
- call$2(module, _) {
- var t1 = this.$this;
- return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1);
- },
- $signature: 352
- };
- A._EvaluateVisitor_closure24.prototype = {
- call$1($arguments) {
- return this.$call$body$_EvaluateVisitor_closure($arguments);
- },
- $call$body$_EvaluateVisitor_closure($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, callableNode, t2, t3, t4, t5, t1, mixin, args;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- mixin = t1.$index($arguments, 0);
- args = type$.SassArgumentList._as(t1.$index($arguments, 1));
- t1 = $async$self.$this;
- callableNode = t1._async_evaluate$_callableNode;
- t2 = callableNode.get$span(callableNode);
- t3 = callableNode.get$span(callableNode);
- t4 = type$.Expression;
- t5 = A.List_List$unmodifiable(B.List_empty9, t4);
- t4 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t4);
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_applyMixin$5(mixin.assertMixin$1("mixin").callable, t1._async_evaluate$_environment._async_environment$_content, new A.ArgumentInvocation(t5, t4, new A.ValueExpression(args, t3), null, t2), callableNode, callableNode), $async$call$1);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 165
- };
- A._EvaluateVisitor_run_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet),
- $async$returnValue, $async$self = this, module, t1, t2, _0_0, url;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- t2 = t1.span;
- _0_0 = t2.get$sourceUrl(t2);
- url = null;
- if (_0_0 != null) {
- url = _0_0;
- t2 = $async$self.$this;
- t2._async_evaluate$_activeModules.$indexSet(0, url, null);
- t2._async_evaluate$_loadedUrls.add$1(0, url);
- }
- t2 = $async$self.$this;
- $async$goto = 3;
- return A._asyncAwait(t2._async_evaluate$_addExceptionTrace$1$1(new A._EvaluateVisitor_run__closure0(t2, $async$self.importer, t1), type$.Module_AsyncCallable), $async$call$0);
- case 3:
- // returning from await.
- module = $async$result;
- $async$returnValue = new A._Record_2_loadedUrls_stylesheet(t2._async_evaluate$_loadedUrls, t2._async_evaluate$_combineCss$1(module));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 383
- };
- A._EvaluateVisitor_run__closure0.prototype = {
- call$0() {
- return this.$this._async_evaluate$_execute$2(this.importer, this.node);
- },
- $signature: 351
- };
- A._EvaluateVisitor__loadModule_closure1.prototype = {
- call$0() {
- return this.callback.call$2(this._box_1.builtInModule, false);
- },
- $signature: 0
- };
- A._EvaluateVisitor__loadModule_closure2.prototype = {
- call$0() {
- return this.$call$body$_EvaluateVisitor__loadModule_closure();
- },
- $call$body$_EvaluateVisitor__loadModule_closure() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, canonicalUrl, oldInDependency, isDependency, t4, message, t1, stylesheet, importer, t2, t3, _1_0, $async$temp1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- stylesheet = null;
- importer = null;
- t2 = $async$self.$this;
- t3 = $async$self.nodeWithSpan;
- $async$goto = 2;
- return A._asyncAwait(t2._async_evaluate$_loadStylesheet$3$baseUrl($async$self.url.toString$0(0), t3.get$span(t3), $async$self.baseUrl), $async$call$0);
- case 2:
- // returning from await.
- _1_0 = $async$result;
- stylesheet = _1_0._0;
- importer = _1_0._1;
- isDependency = _1_0._2;
- t4 = stylesheet.span;
- canonicalUrl = t4.get$sourceUrl(t4);
- if (canonicalUrl != null) {
- t4 = t2._async_evaluate$_activeModules;
- if (t4.containsKey$1(canonicalUrl)) {
- if ($async$self.namesInErrors) {
- t1 = canonicalUrl;
- t3 = $.$get$context();
- t1.toString;
- message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
- } else
- message = string$.Modulel;
- t1 = A.NullableExtension_andThen(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure1(t2, message));
- throw A.wrapException(t1 == null ? t2._async_evaluate$_exception$1(message) : t1);
- } else
- t4.$indexSet(0, canonicalUrl, t3);
- }
- t4 = t2._async_evaluate$_modules.containsKey$1(canonicalUrl);
- oldInDependency = t2._async_evaluate$_inDependency;
- t2._async_evaluate$_inDependency = isDependency;
- t1.module = null;
- $async$handler = 3;
- $async$temp1 = t1;
- $async$goto = 6;
- return A._asyncAwait(t2._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t3), $async$call$0);
- case 6:
- // returning from await.
- $async$temp1.module = $async$result;
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [1];
- case 4:
- // finally
- $async$handler = 1;
- t2._async_evaluate$_activeModules.remove$1(0, canonicalUrl);
- t2._async_evaluate$_inDependency = oldInDependency;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- $async$goto = 7;
- return A._asyncAwait(t2._addExceptionSpanAsync$1$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure2(t1, $async$self.callback, !t4), false, type$.void), $async$call$0);
- case 7:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- case 1:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__loadModule__closure1.prototype = {
- call$1(previousLoad) {
- return this.$this._async_evaluate$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 91
- };
- A._EvaluateVisitor__loadModule__closure2.prototype = {
- call$0() {
- return this.callback.call$2(this._box_0.module, this.firstLoad);
- },
- $signature: 0
- };
- A._EvaluateVisitor__execute_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldPreModuleComments, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate$_importer;
- oldStylesheet = t1._async_evaluate$__stylesheet;
- oldRoot = t1._async_evaluate$__root;
- oldPreModuleComments = t1._async_evaluate$_preModuleComments;
- oldParent = t1._async_evaluate$__parent;
- oldEndOfImports = t1._async_evaluate$__endOfImports;
- oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
- oldExtensionStore = t1._async_evaluate$__extensionStore;
- t2 = t1._async_evaluate$_atRootExcludingStyleRule;
- oldStyleRule = t2 ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
- oldMediaQueries = t1._async_evaluate$_mediaQueries;
- oldDeclarationName = t1._async_evaluate$_declarationName;
- oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
- oldInKeyframes = t1._async_evaluate$_inKeyframes;
- oldConfiguration = t1._async_evaluate$_configuration;
- t1._async_evaluate$_importer = $async$self.importer;
- t3 = t1._async_evaluate$__stylesheet = $async$self.stylesheet;
- t4 = t3.span;
- t5 = t1._async_evaluate$__parent = t1._async_evaluate$__root = A.ModifiableCssStylesheet$(t4);
- t1._async_evaluate$__endOfImports = 0;
- t1._async_evaluate$_outOfOrderImports = null;
- t1._async_evaluate$__extensionStore = $async$self.extensionStore;
- t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRuleIgnoringAtRoot = null;
- t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false;
- t6 = $async$self.configuration;
- if (t6 != null)
- t1._async_evaluate$_configuration = t6;
- $async$goto = 2;
- return A._asyncAwait(t1.visitStylesheet$1(t3), $async$call$0);
- case 2:
- // returning from await.
- t3 = t1._async_evaluate$_outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4);
- $async$self.css.__late_helper$_value = t3;
- $async$self.preModuleComments.__late_helper$_value = t1._async_evaluate$_preModuleComments;
- t1._async_evaluate$_importer = oldImporter;
- t1._async_evaluate$__stylesheet = oldStylesheet;
- t1._async_evaluate$__root = oldRoot;
- t1._async_evaluate$_preModuleComments = oldPreModuleComments;
- t1._async_evaluate$__parent = oldParent;
- t1._async_evaluate$__endOfImports = oldEndOfImports;
- t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
- t1._async_evaluate$__extensionStore = oldExtensionStore;
- t1._async_evaluate$_styleRuleIgnoringAtRoot = oldStyleRule;
- t1._async_evaluate$_mediaQueries = oldMediaQueries;
- t1._async_evaluate$_declarationName = oldDeclarationName;
- t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule;
- t1._async_evaluate$_atRootExcludingStyleRule = t2;
- t1._async_evaluate$_inKeyframes = oldInKeyframes;
- t1._async_evaluate$_configuration = oldConfiguration;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__combineCss_closure1.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 123
- };
- A._EvaluateVisitor__combineCss_closure2.prototype = {
- call$1(target) {
- return !this.selectors.contains$1(0, target);
- },
- $signature: 13
- };
- A._EvaluateVisitor__combineCss_visitModule0.prototype = {
- call$1(module) {
- var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
- if (!_this.seen.add$1(0, module))
- return;
- if (_this.clone)
- module = module.cloneCss$0();
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss()) {
- _1_0 = module.get$preModuleComments().$index(0, upstream);
- if (_1_0 != null)
- B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
- _this.call$1(upstream);
- }
- }
- _this.sorted.addFirst$1(module);
- t1 = module.get$css(module);
- statements = t1.get$children(t1);
- index = _this.$this._async_evaluate$_indexAfterImports$1(statements);
- t1 = J.getInterceptor$ax(statements);
- B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
- B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
- },
- $signature: 344
- };
- A._EvaluateVisitor__extendModules_closure1.prototype = {
- call$1(target) {
- return !this.originalSelectors.contains$1(0, target);
- },
- $signature: 13
- };
- A._EvaluateVisitor__extendModules_closure2.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_ExtensionStore);
- },
- $signature: 167
- };
- A._EvaluateVisitor_visitAtRootRule_closure1.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitAtRootRule_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__scopeForAtRoot_closure5.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent");
- t1._async_evaluate$__parent = $async$self.newParent;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$__parent = t2;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot_closure6.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, oldAtRootExcludingStyleRule;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
- t1._async_evaluate$_atRootExcludingStyleRule = true;
- $async$goto = 2;
- return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot_closure7.prototype = {
- call$1(callback) {
- return this.$this._async_evaluate$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot__closure0.prototype = {
- call$0() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 2
- };
- A._EvaluateVisitor__scopeForAtRoot_closure8.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInKeyframes;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInKeyframes = t1._async_evaluate$_inKeyframes;
- t1._async_evaluate$_inKeyframes = false;
- $async$goto = 2;
- return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_inKeyframes = wasInKeyframes;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot_closure9.prototype = {
- call$1($parent) {
- return $parent instanceof A.ModifiableCssAtRule;
- },
- $signature: 169
- };
- A._EvaluateVisitor__scopeForAtRoot_closure10.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInUnknownAtRule;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
- t1._async_evaluate$_inUnknownAtRule = false;
- $async$goto = 2;
- return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor_visitContentRule_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitDeclaration_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._box_0.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitEachRule_closure2.prototype = {
- call$1(value) {
- var t1 = this.$this,
- t2 = this.nodeWithSpan;
- return t1._async_evaluate$_environment.setLocalVariable$3(this._box_0.variable, t1._async_evaluate$_withoutSlash$2(value, t2), t2);
- },
- $signature: 54
- };
- A._EvaluateVisitor_visitEachRule_closure3.prototype = {
- call$1(value) {
- return this.$this._async_evaluate$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
- },
- $signature: 54
- };
- A._EvaluateVisitor_visitEachRule_closure4.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node));
- },
- $signature: 66
- };
- A._EvaluateVisitor_visitEachRule__closure0.prototype = {
- call$1(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._async_evaluate$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure0(t1));
- },
- $signature: 338
- };
- A._EvaluateVisitor_visitEachRule___closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 84
- };
- A._EvaluateVisitor_visitAtRule_closure2.prototype = {
- call$1(value) {
- return this.$this._async_evaluate$_interpolationToValue$3$trim$warnForColor(value, true, true);
- },
- $signature: 335
- };
- A._EvaluateVisitor_visitAtRule_closure3.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, _i, t1, styleRule;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
- $async$goto = styleRule == null || t1._async_evaluate$_inKeyframes || J.$eq$($async$self.name.value, "font-face") ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure0(t1, $async$self.children), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitAtRule__closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitAtRule_closure4.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitForRule_closure4.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
- $async$returnValue, $async$self = this;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 172
- };
- A._EvaluateVisitor_visitForRule_closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
- $async$returnValue, $async$self = this;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 172
- };
- A._EvaluateVisitor_visitForRule_closure6.prototype = {
- call$0() {
- return this.fromNumber.assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure7.prototype = {
- call$0() {
- var t1 = this.fromNumber;
- return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure8.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, _0_0, t1, t2, nodeWithSpan;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.node;
- nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from);
- i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children;
- case 3:
- // for condition
- if (!(i !== t3.to)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t7 = t1._async_evaluate$_environment;
- t8 = t6.get$numeratorUnits(t6);
- t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
- $async$goto = 6;
- return A._asyncAwait(t1._async_evaluate$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0);
- case 6:
- // returning from await.
- _0_0 = $async$result;
- if (_0_0 != null) {
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- i += t4;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 66
- };
- A._EvaluateVisitor_visitForRule__closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 84
- };
- A._EvaluateVisitor_visitForwardRule_closure1.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._async_evaluate$_registerCommentsForModule$1(module);
- this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
- },
- $signature: 119
- };
- A._EvaluateVisitor_visitForwardRule_closure2.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._async_evaluate$_registerCommentsForModule$1(module);
- this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
- },
- $signature: 119
- };
- A._EvaluateVisitor__registerCommentsForModule_closure0.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_CssComment);
- },
- $signature: 173
- };
- A._EvaluateVisitor_visitIfRule_closure0.prototype = {
- call$1(clause) {
- var t1 = this.$this;
- return t1._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure0(t1, clause), true, clause.hasDeclarations, type$.nullable_Value);
- },
- $signature: 327
- };
- A._EvaluateVisitor_visitIfRule__closure0.prototype = {
- call$0() {
- var t1 = this.$this;
- return t1._async_evaluate$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure0(t1));
- },
- $signature: 66
- };
- A._EvaluateVisitor_visitIfRule___closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 84
- };
- A._EvaluateVisitor__visitDynamicImport_closure0.prototype = {
- call$0() {
- return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure();
- },
- $call$body$_EvaluateVisitor__visitDynamicImport_closure() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, t2, _0_0, stylesheet, importer, isDependency, t3, url, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
- t1 = $async$self.$this;
- t2 = $async$self.$import;
- $async$goto = 3;
- return A._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- stylesheet = _box_0.stylesheet = _0_0._0;
- importer = _0_0._1;
- _box_0.importer = importer;
- isDependency = _0_0._2;
- _box_0.isDependency = isDependency;
- t3 = stylesheet.span;
- url = t3.get$sourceUrl(t3);
- if (url != null) {
- t3 = t1._async_evaluate$_activeModules;
- if (t3.containsKey$1(url)) {
- t2 = A.NullableExtension_andThen(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure3(t1));
- throw A.wrapException(t2 == null ? t1._async_evaluate$_exception$1("This file is already being loaded.") : t2);
- }
- t3.$indexSet(0, url, t2);
- }
- t2 = stylesheet._uses;
- t3 = type$.UnmodifiableListView_UseRule;
- $async$goto = new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule).get$length(0) === 0 ? 4 : 5;
- break;
- case 4:
- // then
- oldImporter = t1._async_evaluate$_importer;
- t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet");
- oldInDependency = t1._async_evaluate$_inDependency;
- t1._async_evaluate$_importer = importer;
- t1._async_evaluate$__stylesheet = stylesheet;
- t1._async_evaluate$_inDependency = isDependency;
- $async$goto = 6;
- return A._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
- case 6:
- // returning from await.
- t1._async_evaluate$_importer = oldImporter;
- t1._async_evaluate$__stylesheet = t2;
- t1._async_evaluate$_inDependency = oldInDependency;
- t1._async_evaluate$_activeModules.remove$1(0, url);
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- t2 = new A.UnmodifiableListView(t2, t3);
- if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure4())) {
- t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
- loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure5());
- } else
- loadsUserDefinedModules = true;
- children = A._Cell$();
- t2 = t1._async_evaluate$_environment;
- t3 = type$.String;
- t4 = type$.Module_AsyncCallable;
- t5 = type$.AstNode;
- t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable);
- t7 = t2._async_environment$_variables;
- t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
- t8 = t2._async_environment$_variableNodes;
- t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
- t9 = t2._async_environment$_functions;
- t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
- t10 = t2._async_environment$_mixins;
- t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
- environment = A.AsyncEnvironment$_(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._async_environment$_importedModules, null, null, t6, t7, t8, t9, t10, t2._async_environment$_content);
- $async$goto = 7;
- return A._asyncAwait(t1._async_evaluate$_withEnvironment$1$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure6(_box_0, t1, loadsUserDefinedModules, environment, children), type$.Null), $async$call$0);
- case 7:
- // returning from await.
- module = environment.toDummyModule$0();
- t1._async_evaluate$_environment.importForwards$1(module);
- $async$goto = loadsUserDefinedModules ? 8 : 9;
- break;
- case 8:
- // then
- $async$goto = module.transitivelyContainsCss ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return A._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
- case 12:
- // returning from await.
- case 11:
- // join
- visitor = new A._ImportedCssVisitor0(t1);
- for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
- t2.get$current(t2).accept$1(visitor);
- case 9:
- // join
- t1._async_evaluate$_activeModules.remove$1(0, url);
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__visitDynamicImport__closure3.prototype = {
- call$1(previousLoad) {
- return this.$this._async_evaluate$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 91
- };
- A._EvaluateVisitor__visitDynamicImport__closure4.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 174
- };
- A._EvaluateVisitor__visitDynamicImport__closure5.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 175
- };
- A._EvaluateVisitor__visitDynamicImport__closure6.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t7, t8, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate$_importer;
- t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet");
- t3 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root");
- t4 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent");
- t5 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, "_endOfImports");
- oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
- oldConfiguration = t1._async_evaluate$_configuration;
- oldInDependency = t1._async_evaluate$_inDependency;
- t6 = $async$self._box_0;
- t1._async_evaluate$_importer = t6.importer;
- t7 = t6.stylesheet;
- t1._async_evaluate$__stylesheet = t7;
- t8 = $async$self.loadsUserDefinedModules;
- if (t8) {
- t7 = A.ModifiableCssStylesheet$(t7.span);
- t1._async_evaluate$__root = t7;
- t1._async_evaluate$__parent = t1._async_evaluate$_assertInModule$2(t7, "_root");
- t1._async_evaluate$__endOfImports = 0;
- t1._async_evaluate$_outOfOrderImports = null;
- }
- t1._async_evaluate$_inDependency = t6.isDependency;
- t7 = new A.UnmodifiableListView(t6.stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
- if (!t7.get$isEmpty(t7))
- t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0();
- $async$goto = 2;
- return A._asyncAwait(t1.visitStylesheet$1(t6.stylesheet), $async$call$0);
- case 2:
- // returning from await.
- t6 = t8 ? t1._async_evaluate$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode);
- $async$self.children.__late_helper$_value = t6;
- t1._async_evaluate$_importer = oldImporter;
- t1._async_evaluate$__stylesheet = t2;
- if (t8) {
- t1._async_evaluate$__root = t3;
- t1._async_evaluate$__parent = t4;
- t1._async_evaluate$__endOfImports = t5;
- t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
- }
- t1._async_evaluate$_configuration = oldConfiguration;
- t1._async_evaluate$_inDependency = oldInDependency;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__applyMixin_closure1.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure2(t1, $async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 2;
- return A._asyncAwait($async$self.$this._async_evaluate$_runBuiltInCallable$3($async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_environment.withContent$2($async$self.contentCallable, new A._EvaluateVisitor__applyMixin__closure1(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__applyMixin__closure1.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure0(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin___closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, t3, t4, t5, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpanWithoutContent, t5 = type$.nullable_Value, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new A._EvaluateVisitor__applyMixin____closure0(t3, t1[_i]), t5), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin____closure0.prototype = {
- call$0() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 66
- };
- A._EvaluateVisitor_visitIncludeRule_closure2.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 86
- };
- A._EvaluateVisitor_visitIncludeRule_closure3.prototype = {
- call$1($content) {
- var t1 = this.$this;
- return new A.UserDefinedCallable($content, t1._async_evaluate$_environment.closure$0(), t1._async_evaluate$_inDependency, type$.UserDefinedCallable_AsyncEnvironment);
- },
- $signature: 326
- };
- A._EvaluateVisitor_visitIncludeRule_closure4.prototype = {
- call$0() {
- return this.node.get$spanWithoutContent();
- },
- $signature: 27
- };
- A._EvaluateVisitor_visitMediaRule_closure2.prototype = {
- call$1(mediaQueries) {
- return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.queries);
- },
- $signature: 89
- };
- A._EvaluateVisitor_visitMediaRule_closure3.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.queries;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitMediaRule__closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, _i, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 6:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- $async$goto = 9;
- return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 9:
- // returning from await.
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitMediaRule___closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitMediaRule_closure4.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitStyleRule_closure3.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitStyleRule_closure4.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitStyleRule_closure6.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitStyleRule__closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitStyleRule_closure5.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor__warnForBogusCombinators_closure0.prototype = {
- call$1(child) {
- return child instanceof A.ModifiableCssComment;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitSupportsRule_closure1.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, _i, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 6:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- $async$goto = 9;
- return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 9:
- // returning from await.
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitSupportsRule__closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitSupportsRule_closure2.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor__visitSupportsCondition_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, $async$temp1, $async$temp2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self._box_0;
- $async$temp1 = A;
- $async$goto = 3;
- return A._asyncAwait(t1._evaluateToCss$1(t2.declaration.name), $async$call$0);
- case 3:
- // returning from await.
- t3 = $async$temp1.S($async$result);
- t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
- $async$temp1 = "(" + t3 + ":" + t4;
- $async$temp2 = A;
- $async$goto = 4;
- return A._asyncAwait(t1._evaluateToCss$1(t2.declaration.value), $async$call$0);
- case 4:
- // returning from await.
- $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 176
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = {
- call$0() {
- var t1 = this.$this._async_evaluate$_environment,
- t2 = this._box_0.override;
- t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.node;
- t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitUseRule_closure0.prototype = {
- call$2(module, firstLoad) {
- var t1, t2, t3, _0_0, t4, t5, span;
- if (firstLoad)
- this.$this._async_evaluate$_registerCommentsForModule$1(module);
- t1 = this.$this._async_evaluate$_environment;
- t2 = this.node;
- t3 = t2.namespace;
- if (t3 == null) {
- t1._async_environment$_globalModules.$indexSet(0, module, t2);
- t1._async_environment$_allModules.push(module);
- _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._async_environment$_variables)), module.get$variables().get$containsKey());
- if (_0_0 != null)
- A.throwExpression(A.SassScriptException$(string$.This_ma + _0_0 + '".', null));
- } else {
- t4 = t1._async_environment$_modules;
- if (t4.containsKey$1(t3)) {
- t5 = t1._async_environment$_namespaceNodes.$index(0, t3);
- span = t5 == null ? null : t5.span;
- t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (span != null)
- t5.$indexSet(0, span, "original @use");
- A.throwExpression(A.MultiSpanSassScriptException$(string$.There_ + t3 + '".', "new @use", t5));
- }
- t4.$indexSet(0, t3, module);
- t1._async_environment$_namespaceNodes.$indexSet(0, t3, t2);
- t1._async_environment$_allModules.push(module);
- }
- },
- $signature: 119
- };
- A._EvaluateVisitor_visitWarnRule_closure0.prototype = {
- call$0() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 68
- };
- A._EvaluateVisitor_visitWhileRule_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
- $async$returnValue, $async$self = this, t1, t2, t3, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
- case 3:
- // for condition
- $async$goto = 5;
- return A._asyncAwait(t2.accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- if (!$async$result.get$isTruthy()) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0);
- case 6:
- // returning from await.
- _0_0 = $async$result;
- if (_0_0 != null) {
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 66
- };
- A._EvaluateVisitor_visitWhileRule__closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 84
- };
- A._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t3, t1, t2, left, $async$temp1, $async$temp2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- t2 = $async$self.$this;
- $async$goto = 3;
- return A._asyncAwait(t1.left.accept$1(t2), $async$call$0);
- case 3:
- // returning from await.
- left = $async$result;
- case 4:
- // switch
- switch (t1.operator) {
- case B.BinaryOperator_wdM:
- // goto case
- $async$goto = 6;
- break;
- case B.BinaryOperator_qNM:
- // goto case
- $async$goto = 7;
- break;
- case B.BinaryOperator_eDt:
- // goto case
- $async$goto = 8;
- break;
- case B.BinaryOperator_g8k:
- // goto case
- $async$goto = 9;
- break;
- case B.BinaryOperator_icU:
- // goto case
- $async$goto = 10;
- break;
- case B.BinaryOperator_bEa:
- // goto case
- $async$goto = 11;
- break;
- case B.BinaryOperator_oEm:
- // goto case
- $async$goto = 12;
- break;
- case B.BinaryOperator_miq:
- // goto case
- $async$goto = 13;
- break;
- case B.BinaryOperator_SPQ:
- // goto case
- $async$goto = 14;
- break;
- case B.BinaryOperator_u15:
- // goto case
- $async$goto = 15;
- break;
- case B.BinaryOperator_SjO:
- // goto case
- $async$goto = 16;
- break;
- case B.BinaryOperator_2No:
- // goto case
- $async$goto = 17;
- break;
- case B.BinaryOperator_U77:
- // goto case
- $async$goto = 18;
- break;
- case B.BinaryOperator_KNx:
- // goto case
- $async$goto = 19;
- break;
- default:
- // goto default
- $async$goto = 20;
- break;
- }
- break;
- case 6:
- // case
- t1 = t1.right.accept$1(t2);
- $async$goto = 21;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 21:
- // returning from await.
- t1 = $async$result;
- t1 = new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(t1, false, true), false);
- // goto after switch
- $async$goto = 5;
- break;
- case 7:
- // case
- $async$goto = left.get$isTruthy() ? 22 : 24;
- break;
- case 22:
- // then
- t1 = left;
- // goto join
- $async$goto = 23;
- break;
- case 24:
- // else
- t1 = t1.right.accept$1(t2);
- $async$goto = 25;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 25:
- // returning from await.
- t1 = $async$result;
- case 23:
- // join
- // goto after switch
- $async$goto = 5;
- break;
- case 8:
- // case
- $async$goto = left.get$isTruthy() ? 26 : 28;
- break;
- case 26:
- // then
- t1 = t1.right.accept$1(t2);
- $async$goto = 29;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 29:
- // returning from await.
- t1 = $async$result;
- // goto join
- $async$goto = 27;
- break;
- case 28:
- // else
- t1 = left;
- case 27:
- // join
- // goto after switch
- $async$goto = 5;
- break;
- case 9:
- // case
- $async$temp1 = left;
- $async$goto = 30;
- return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 30:
- // returning from await.
- t1 = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false;
- // goto after switch
- $async$goto = 5;
- break;
- case 10:
- // case
- $async$temp1 = left;
- $async$goto = 31;
- return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 31:
- // returning from await.
- t1 = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false;
- // goto after switch
- $async$goto = 5;
- break;
- case 11:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 32;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 32:
- // returning from await.
- t1 = $async$temp1.greaterThan$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 12:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 33;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 33:
- // returning from await.
- t1 = $async$temp1.greaterThanOrEquals$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 13:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 34;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 34:
- // returning from await.
- t1 = $async$temp1.lessThan$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 14:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 35;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 35:
- // returning from await.
- t1 = $async$temp1.lessThanOrEquals$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 15:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 36;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 36:
- // returning from await.
- t1 = $async$temp1.plus$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 16:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 37;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 37:
- // returning from await.
- t1 = $async$temp1.minus$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 17:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 38;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 38:
- // returning from await.
- t1 = $async$temp1.times$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 18:
- // case
- t3 = t1.right.accept$1(t2);
- $async$temp1 = t2;
- $async$temp2 = left;
- $async$goto = 39;
- return A._asyncAwait(type$.Future_Value._is(t3) ? t3 : A._Future$value(t3, type$.Value), $async$call$0);
- case 39:
- // returning from await.
- t1 = $async$temp1._async_evaluate$_slash$3($async$temp2, $async$result, t1);
- // goto after switch
- $async$goto = 5;
- break;
- case 19:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 40;
- return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
- case 40:
- // returning from await.
- t1 = $async$temp1.modulo$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 20:
- // default
- t1 = null;
- case 5:
- // after switch
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 68
- };
- A._EvaluateVisitor__slash_recommendation0.prototype = {
- call$1(expression) {
- var t1;
- $label0$0: {
- if (expression instanceof A.BinaryOperationExpression && B.BinaryOperator_U77 === expression.operator) {
- t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
- break $label0$0;
- }
- if (expression instanceof A.ParenthesizedExpression) {
- t1 = expression.expression.toString$0(0);
- break $label0$0;
- }
- t1 = expression.toString$0(0);
- break $label0$0;
- }
- return t1;
- },
- $signature: 111
- };
- A._EvaluateVisitor_visitVariableExpression_closure0.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitUnaryOperationExpression_closure0.prototype = {
- call$0() {
- var t1, _this = this;
- switch (_this.node.operator) {
- case B.UnaryOperator_cLp:
- t1 = _this.operand.unaryPlus$0();
- break;
- case B.UnaryOperator_AiQ:
- t1 = _this.operand.unaryMinus$0();
- break;
- case B.UnaryOperator_SJr:
- t1 = new A.SassString("/" + A.serializeValue(_this.operand, false, true), false);
- break;
- case B.UnaryOperator_not_not_not:
- t1 = _this.operand.unaryNot$0();
- break;
- default:
- t1 = null;
- }
- return t1;
- },
- $signature: 34
- };
- A._EvaluateVisitor_visitListExpression_closure0.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 316
- };
- A._EvaluateVisitor_visitFunctionExpression_closure2.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate$_environment.getFunction$2$namespace(t1.name, t1.namespace);
- },
- $signature: 86
- };
- A._EvaluateVisitor_visitFunctionExpression_closure3.prototype = {
- call$1(argument) {
- return argument.accept$1(new A._IsCalculationSafeVisitor());
- },
- $signature: 113
- };
- A._EvaluateVisitor_visitFunctionExpression_closure4.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 68
- };
- A._EvaluateVisitor__checkCalculationArguments_check0.prototype = {
- call$1(maxArgs) {
- var t1 = this.node,
- t2 = t1.$arguments.positional.length;
- if (t2 === 0)
- throw A.wrapException(this.$this._async_evaluate$_exception$2("Missing argument.", t1.span));
- else if (maxArgs != null && t2 > maxArgs)
- throw A.wrapException(this.$this._async_evaluate$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize("was", t2, "were") + " passed.", t1.span));
- },
- call$0() {
- return this.call$1(null);
- },
- $signature: 96
- };
- A._EvaluateVisitor__visitCalculationExpression_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
- $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self._box_0;
- t3 = $async$self.inLegacySassFunction;
- $async$temp1 = A;
- $async$temp2 = t1._async_evaluate$_binaryOperatorToCalculationOperator$2(t2.operator, $async$self.node);
- $async$goto = 3;
- return A._asyncAwait(t1._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), $async$call$0);
- case 3:
- // returning from await.
- $async$temp3 = $async$result;
- $async$goto = 4;
- return A._asyncAwait(t1._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), $async$call$0);
- case 4:
- // returning from await.
- $async$returnValue = $async$temp1.SassCalculation_operateInternal($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate$_inSupportsDeclaration);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 179
- };
- A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
- },
- $signature: 68
- };
- A._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable,
- t3 = _this.V;
- return t1._async_evaluate$_withEnvironment$1$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure0(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, t3), t3);
- },
- $signature() {
- return this.V._eval$1("Future<0>()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.V;
- return t1._async_evaluate$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
- },
- $signature() {
- return this.V._eval$1("Future<0>()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = {
- call$0() {
- return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure(this.V);
- },
- $call$body$_EvaluateVisitor__runUserDefinedCallable___closure($async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, t1, t2, t3, t4, $async$temp1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.evaluated._values;
- t3 = $async$self.callable.declaration.$arguments;
- t4 = $async$self.nodeWithSpan;
- t1._async_evaluate$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4);
- declaredArguments = t3.$arguments;
- t5 = declaredArguments.length;
- minLength = Math.min(J.get$length$asx(t2[2]), t5);
- for (i = 0; i < minLength; ++i)
- t1._async_evaluate$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i));
- i = J.get$length$asx(t2[2]);
- case 3:
- // for condition
- if (!(i < t5)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- argument = declaredArguments[i];
- t6 = t2[0];
- t7 = argument.name;
- value = J.remove$1$z(t6, t7);
- $async$goto = value == null ? 6 : 7;
- break;
- case 6:
- // then
- t6 = argument.defaultValue;
- $async$temp1 = t1;
- $async$goto = 8;
- return A._asyncAwait(t6.accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- value = $async$temp1._async_evaluate$_withoutSlash$2($async$result, t1._async_evaluate$_expressionNode$1(t6));
- case 7:
- // join
- t6 = t1._async_evaluate$_environment;
- t8 = J.$index$asx(t2[1], t7);
- if (t8 == null) {
- t8 = argument.defaultValue;
- t8.toString;
- t8 = t1._async_evaluate$_expressionNode$1(t8);
- }
- t6.setLocalVariable$3(t7, value, t8);
- case 4:
- // for update
- ++i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- restArgument = t3.restArgument;
- if (restArgument != null) {
- rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty8;
- t5 = t2[0];
- t6 = t2[4];
- argumentList = A.SassArgumentList$(rest, t5, t6 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : t6);
- t1._async_evaluate$_environment.setLocalVariable$3(restArgument, argumentList, t4);
- } else
- argumentList = null;
- $async$goto = 9;
- return A._asyncAwait($async$self.run.call$0(), $async$call$0);
- case 9:
- // returning from await.
- result = $async$result;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (J.get$isEmpty$asx(t2[0])) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + A.pluralize("argument", J.get$length$asx(J.get$keys$z(t2[0])), null) + " named " + A.toSentence(J.map$1$1$ax(J.get$keys$z(t2[0]), new A._EvaluateVisitor__runUserDefinedCallable____closure0(), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate$_stackTrace$1(t4.get$span(t4)), null));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature() {
- return this.V._eval$1("Future<0>()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__runFunctionCallable_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
- case 6:
- // returning from await.
- $returnValue = $async$result;
- if ($returnValue instanceof A.Value) {
- $async$returnValue = $returnValue;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- throw A.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 68
- };
- A._EvaluateVisitor__runBuiltInCallable_closure2.prototype = {
- call$0() {
- return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet);
- },
- $signature: 0
- };
- A._EvaluateVisitor__runBuiltInCallable_closure3.prototype = {
- call$0() {
- return this._box_0.callback.call$1(this.evaluated._values[2]);
- },
- $signature: 314
- };
- A._EvaluateVisitor__runBuiltInCallable_closure4.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__evaluateArguments_closure3.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 39
- };
- A._EvaluateVisitor__evaluateArguments_closure4.prototype = {
- call$1(value) {
- return this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan);
- },
- $signature: 39
- };
- A._EvaluateVisitor__evaluateArguments_closure5.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restNodeForSpan;
- _this.named.$indexSet(0, key, _this.$this._async_evaluate$_withoutSlash$2(value, t1));
- _this.namedNodes.$indexSet(0, key, t1);
- },
- $signature: 98
- };
- A._EvaluateVisitor__evaluateArguments_closure6.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 39
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression(value, t1.get$span(t1));
- },
- $signature: 58
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
- },
- $signature: 58
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restArgs;
- _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._async_evaluate$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
- },
- $signature: 98
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = {
- call$1(value) {
- var t1 = this.keywordRestArgs;
- return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
- },
- $signature: 58
- };
- A._EvaluateVisitor__addRestMap_closure0.prototype = {
- call$2(key, value) {
- var t2, _this = this,
- t1 = _this.$this;
- if (key instanceof A.SassString)
- _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._async_evaluate$_withoutSlash$2(value, _this.expressionNode)));
- else {
- t2 = _this.nodeWithSpan;
- throw A.wrapException(t1._async_evaluate$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
- }
- },
- $signature: 90
- };
- A._EvaluateVisitor__verifyArguments_closure0.prototype = {
- call$0() {
- return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 0
- };
- A._EvaluateVisitor_visitCssAtRule_closure1.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssAtRule_closure2.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssMediaRule_closure2.prototype = {
- call$1(mediaQueries) {
- return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.node.queries);
- },
- $signature: 89
- };
- A._EvaluateVisitor_visitCssMediaRule_closure3.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.node.queries;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssMediaRule__closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t4, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
- case 6:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 7;
- break;
- }
- t4 = t2.__internal$_current;
- $async$goto = 8;
- return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- // goto for condition
- $async$goto = 6;
- break;
- case 7:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssMediaRule___closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssMediaRule_closure4.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssStyleRule_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitCssStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssStyleRule__closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssStyleRule_closure1.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t4, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
- case 6:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 7;
- break;
- }
- t4 = t2.__internal$_current;
- $async$goto = 8;
- return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- // goto for condition
- $async$goto = 6;
- break;
- case 7:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor__performInterpolationHelper_closure0.prototype = {
- call$1(targetLocations) {
- return A.InterpolationMap$(this.interpolation, targetLocations);
- },
- $signature: 181
- };
- A._EvaluateVisitor__serialize_closure0.prototype = {
- call$0() {
- return A.serializeValue(this.value, false, this.quote);
- },
- $signature: 26
- };
- A._EvaluateVisitor__expressionNode_closure0.prototype = {
- call$0() {
- var t1 = this.expression;
- return this.$this._async_evaluate$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
- },
- $signature: 182
- };
- A._EvaluateVisitor__withoutSlash_recommendation0.prototype = {
- call$1(number) {
- var t1, before, after,
- _1_0 = number.asSlash;
- $label0$0: {
- if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
- t1 = type$.SassNumber;
- before = t1._as(_1_0._0);
- after = t1._as(_1_0._1);
- t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
- break $label0$0;
- }
- t1 = A.serializeValue(number, true, true);
- break $label0$0;
- }
- return t1;
- },
- $signature: 183
- };
- A._EvaluateVisitor__stackFrame_closure0.prototype = {
- call$1(url) {
- var t1 = this.$this._async_evaluate$_importCache;
- t1 = t1 == null ? null : t1.humanize$1(url);
- return t1 == null ? url : t1;
- },
- $signature: 43
- };
- A._ImportedCssVisitor0.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure0();
- this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1);
- },
- visitCssComment$1(node) {
- return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node);
- },
- visitCssDeclaration$1(node) {
- },
- visitCssImport$1(node) {
- var t2,
- _s13_ = "_endOfImports",
- t1 = this._async_evaluate$_visitor;
- if (t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent") !== t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root"))
- t1._async_evaluate$_addChild$1(node);
- else if (t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, _s13_) === J.get$length$asx(t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root").children._collection$_source)) {
- t1._async_evaluate$_addChild$1(node);
- t1._async_evaluate$__endOfImports = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, _s13_) + 1;
- } else {
- t2 = t1._async_evaluate$_outOfOrderImports;
- (t2 == null ? t1._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1(node) {
- },
- visitCssMediaRule$1(node) {
- var t1 = this._async_evaluate$_visitor,
- mediaQueries = t1._async_evaluate$_mediaQueries;
- t1._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure0(mediaQueries == null || t1._async_evaluate$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
- },
- visitCssStyleRule$1(node) {
- return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure0());
- },
- visitCssStylesheet$1(node) {
- var t1, t2, t3;
- for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- (t3 == null ? t2._as(t3) : t3).accept$1(this);
- }
- },
- visitCssSupportsRule$1(node) {
- return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure0());
- }
- };
- A._ImportedCssVisitor_visitCssAtRule_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule))
- t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule;
- else
- t1 = true;
- return t1;
- },
- $signature: 7
- };
- A._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluationContext0.prototype = {
- get$currentCallableSpan() {
- var _0_0 = this._async_evaluate$_visitor._async_evaluate$_callableNode;
- if (_0_0 != null)
- return _0_0.get$span(_0_0);
- throw A.wrapException(A.StateError$(string$.No_Sasc));
- },
- warn$2(_, message, deprecation) {
- var t1 = this._async_evaluate$_visitor,
- t2 = t1._async_evaluate$_importSpan;
- if (t2 == null) {
- t2 = t1._async_evaluate$_callableNode;
- t2 = t2 == null ? null : t2.get$span(t2);
- }
- t1._async_evaluate$_warn$3(message, t2 == null ? this._async_evaluate$_defaultWarnNodeWithSpan.span : t2, deprecation);
- },
- $isEvaluationContext: 1
- };
- A._CloneCssVisitor.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.isChildless,
- rule = A.ModifiableCssAtRule$(node.name, node.span, t1, node.value);
- return t1 ? rule : this._visitChildren$2(rule, node);
- },
- visitCssComment$1(node) {
- return new A.ModifiableCssComment(node.text, node.span);
- },
- visitCssDeclaration$1(node) {
- return A.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap);
- },
- visitCssImport$1(node) {
- return new A.ModifiableCssImport(node.url, node.modifiers, node.span);
- },
- visitCssKeyframeBlock$1(node) {
- return this._visitChildren$2(A.ModifiableCssKeyframeBlock$(node.selector, node.span), node);
- },
- visitCssMediaRule$1(node) {
- return this._visitChildren$2(A.ModifiableCssMediaRule$(node.queries, node.span), node);
- },
- visitCssStyleRule$1(node) {
- var _0_0 = this._oldToNewSelectors.$index(0, node._style_rule$_selector._box$_inner.value);
- if (_0_0 != null)
- return this._visitChildren$2(A.ModifiableCssStyleRule$(_0_0, node.span, false, node.originalSelector), node);
- else
- throw A.wrapException(A.StateError$(string$.The_Ex));
- },
- visitCssStylesheet$1(node) {
- return this._visitChildren$2(A.ModifiableCssStylesheet$(node.get$span(node)), node);
- },
- visitCssSupportsRule$1(node) {
- return this._visitChildren$2(A.ModifiableCssSupportsRule$(node.condition, node.span), node);
- },
- _visitChildren$1$2(newParent, oldParent) {
- var t1, t2, newChild;
- for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- newChild = t2.accept$1(this);
- newChild.isGroupEnd = t2.get$isGroupEnd();
- newParent.addChild$1(newChild);
- }
- return newParent;
- },
- _visitChildren$2(newParent, oldParent) {
- return this._visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode);
- }
- };
- A.Evaluator.prototype = {};
- A._EvaluateVisitor.prototype = {
- _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t2, metaModule, t3, _i, module, $function, t4, _this = this,
- _s20_ = "$name, $module: null",
- _s9_ = "sass:meta",
- _s7_ = "$module",
- t1 = type$.JSArray_BuiltInCallable,
- metaFunctions = A._setArrayType([A.BuiltInCallable$function("global-variable-exists", _s20_, new A._EvaluateVisitor_closure(_this), _s9_), A.BuiltInCallable$function("variable-exists", "$name", new A._EvaluateVisitor_closure0(_this), _s9_), A.BuiltInCallable$function("function-exists", _s20_, new A._EvaluateVisitor_closure1(_this), _s9_), A.BuiltInCallable$function("mixin-exists", _s20_, new A._EvaluateVisitor_closure2(_this), _s9_), A.BuiltInCallable$function("content-exists", "", new A._EvaluateVisitor_closure3(_this), _s9_), A.BuiltInCallable$function("module-variables", _s7_, new A._EvaluateVisitor_closure4(_this), _s9_), A.BuiltInCallable$function("module-functions", _s7_, new A._EvaluateVisitor_closure5(_this), _s9_), A.BuiltInCallable$function("module-mixins", _s7_, new A._EvaluateVisitor_closure6(_this), _s9_), A.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure7(_this), _s9_), A.BuiltInCallable$function("get-mixin", _s20_, new A._EvaluateVisitor_closure8(_this), _s9_), A.BuiltInCallable$function("call", "$function, $args...", new A._EvaluateVisitor_closure9(_this), _s9_)], t1),
- metaMixins = A._setArrayType([A.BuiltInCallable$mixin("load-css", "$url, $with: null", new A._EvaluateVisitor_closure10(_this), false, _s9_), A.BuiltInCallable$mixin("apply", "$mixin, $args...", new A._EvaluateVisitor_closure11(_this), true, _s9_)], t1);
- t1 = type$.BuiltInCallable;
- t2 = A.List_List$of($.$get$global(), true, t1);
- B.JSArray_methods.addAll$1(t2, $.$get$local());
- B.JSArray_methods.addAll$1(t2, metaFunctions);
- metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1);
- for (t1 = A.List_List$of($.$get$coreModules(), true, type$.BuiltInModule_Callable), t1.push(metaModule), t2 = t1.length, t3 = _this._builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = A._setArrayType([], type$.JSArray_Callable);
- B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions());
- B.JSArray_methods.addAll$1(t1, metaFunctions);
- for (t2 = t1.length, t3 = _this._builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = J.get$name$x($function);
- t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2(_, importer, node) {
- var error, stackTrace, t1, exception;
- try {
- t1 = type$.nullable_Object;
- t1 = A.runZoned(new A._EvaluateVisitor_run_closure(this, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, node)], t1, t1), type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace(error.withLoadedUrls$1(this._loadedUrls), error, stackTrace);
- } else
- throw exception;
- }
- },
- runExpression$2(importer, expression) {
- var t1 = type$.nullable_Object;
- return A.runZoned(new A._EvaluateVisitor_runExpression_closure(this, importer, expression), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, expression)], t1, t1), type$.Value);
- },
- runStatement$2(importer, statement) {
- var t1 = type$.nullable_Object;
- return A.runZoned(new A._EvaluateVisitor_runStatement_closure(this, importer, statement), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, statement)], t1, t1), type$.void);
- },
- _assertInModule$1$2(value, $name) {
- if (value != null)
- return value;
- throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
- },
- _assertInModule$2(value, $name) {
- return this._assertInModule$1$2(value, $name, type$.dynamic);
- },
- _withFakeStylesheet$1$3(importer, nodeWithSpan, callback) {
- var t1, _this = this,
- oldImporter = _this._importer;
- _this._importer = importer;
- _this.__stylesheet = A.Stylesheet$(B.List_empty12, nodeWithSpan.get$span(nodeWithSpan));
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._importer = oldImporter;
- _this.__stylesheet = null;
- }
- },
- _withFakeStylesheet$3(importer, nodeWithSpan, callback) {
- return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic);
- },
- _loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var t2, _this = this, t1 = {},
- _0_0 = _this._builtInModules.$index(0, url);
- t1.builtInModule = null;
- if (_0_0 != null) {
- t1.builtInModule = _0_0;
- if (configuration instanceof A.ExplicitConfiguration) {
- t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
- t2 = configuration.nodeWithSpan;
- throw A.wrapException(_this._evaluate$_exception$2(t1, t2.get$span(t2)));
- }
- _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure(t1, callback));
- return;
- }
- _this._withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure0(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
- },
- _loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _loadModule$4(url, stackFrame, nodeWithSpan, callback) {
- return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var _0_0, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, _this = this,
- t1 = stylesheet.span,
- url = t1.get$sourceUrl(t1);
- t1 = _this._modules;
- _0_0 = t1.$index(0, url);
- if (_0_0 != null) {
- t1 = configuration == null;
- currentConfiguration = t1 ? _this._configuration : configuration;
- t2 = _this._moduleConfigurations.$index(0, url);
- t3 = t2.__originalConfiguration;
- t2 = t3 == null ? t2 : t3;
- t3 = currentConfiguration.__originalConfiguration;
- if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) {
- if (namesInErrors) {
- t2 = $.$get$context();
- url.toString;
- message = t2.prettyUri$1(url) + string$.x20was_a;
- } else
- message = string$.This_mw;
- t2 = _this._moduleNodes.$index(0, url);
- existingSpan = t2 == null ? null : t2.get$span(t2);
- if (t1) {
- t1 = currentConfiguration.nodeWithSpan;
- configurationSpan = t1.get$span(t1);
- } else
- configurationSpan = null;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingSpan != null)
- t1.$indexSet(0, existingSpan, "original load");
- if (configurationSpan != null)
- t1.$indexSet(0, configurationSpan, "configuration");
- throw A.wrapException(t1.get$isEmpty(0) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t1));
- }
- return _0_0;
- }
- environment = A.Environment$();
- css = A._Cell$();
- preModuleComments = A._Cell$();
- extensionStore = A.ExtensionStore$();
- _this._withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure(_this, importer, stylesheet, extensionStore, configuration, css, preModuleComments));
- t2 = css._readLocal$0();
- t3 = preModuleComments._readLocal$0();
- module = environment.toModule$3(t2, t3 == null ? B.Map_empty0 : t3, extensionStore);
- if (url != null) {
- t1.$indexSet(0, url, module);
- _this._moduleConfigurations.$indexSet(0, url, _this._configuration);
- if (nodeWithSpan != null)
- _this._moduleNodes.$indexSet(0, url, nodeWithSpan);
- }
- return module;
- },
- _execute$2(importer, stylesheet) {
- return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _addOutOfOrderImports$0() {
- var t1, t2, _this = this, _s5_ = "_root",
- _s13_ = "_endOfImports",
- _0_0 = _this._outOfOrderImports;
- $label0$0: {
- if (_0_0 == null) {
- t1 = _this._assertInModule$2(_this.__root, _s5_).children;
- break $label0$0;
- }
- t1 = _this._assertInModule$2(_this.__root, _s5_).children;
- t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._assertInModule$2(_this.__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode);
- B.JSArray_methods.addAll$1(t1, _0_0);
- t2 = _this._assertInModule$2(_this.__root, _s5_).children;
- B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._assertInModule$2(_this.__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
- break $label0$0;
- }
- return t1;
- },
- _combineCss$2$clone(root, clone) {
- var selectors, _0_0, t1, imports, css, sorted, t2;
- if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure())) {
- selectors = root.get$extensionStore().get$simpleSelectors();
- _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure0(selectors)));
- if (_0_0 != null)
- this._throwForUnsatisfiedExtension$1(_0_0);
- return root.get$css(root);
- }
- t1 = type$.JSArray_CssNode;
- imports = A._setArrayType([], t1);
- css = A._setArrayType([], t1);
- t1 = type$.Module_Callable;
- sorted = A.ListQueue$(t1);
- new A._EvaluateVisitor__combineCss_visitModule(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
- if (root.get$transitivelyContainsExtensions())
- this._extendModules$1(sorted);
- t1 = B.JSArray_methods.$add(imports, css);
- t2 = root.get$css(root);
- return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2));
- },
- _combineCss$1(root) {
- return this._combineCss$2$clone(root, false);
- },
- _extendModules$1(sortedModules) {
- var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
- downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore),
- unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
- for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure(originalSelectors)));
- $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
- t4 = t3.get$extensionStore().get$addExtensions();
- if ($self != null)
- t4.call$1($self);
- t4 = t3.get$extensionStore();
- if (t4.get$isEmpty(t4))
- continue;
- for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
- upstream = t4[_i];
- _0_0 = upstream.get$url(upstream);
- if (_0_0 != null)
- J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure0()), t3.get$extensionStore());
- }
- unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
- },
- _throwForUnsatisfiedExtension$1(extension) {
- throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
- },
- _indexAfterImports$1(statements) {
- var t1, lastImport, i, _0_0;
- for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- $label0$0: {
- _0_0 = t1.$index(statements, i);
- if (_0_0 instanceof A.ModifiableCssImport)
- break $label0$0;
- if (_0_0 instanceof A.ModifiableCssComment)
- continue;
- break;
- }
- lastImport = i;
- }
- return lastImport + 1;
- },
- visitStylesheet$1(node) {
- var t1, t2, _i;
- for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(this);
- return null;
- },
- visitAtRootRule$1(node) {
- var t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _this = this,
- _s8_ = "__parent",
- _0_0 = node.query,
- query = _0_0 != null ? A.AtRootQueryParser$(_this._performInterpolationWithMap$2$warnForColor(_0_0, true)._0, _this._evaluate$_logger, null).parse$0() : B.AtRootQuery_n2q,
- $parent = _this._assertInModule$2(_this.__parent, _s8_),
- included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode);
- for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = _2_0) {
- if (!query.excludes$1($parent))
- included.push($parent);
- _2_0 = $parent._parent;
- if (_2_0 == null)
- throw A.wrapException(A.StateError$(string$.CssNod));
- }
- root = _this._trimIncluded$1(included);
- if (root === _this._assertInModule$2(_this.__parent, _s8_)) {
- _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure(_this, node), node.hasDeclarations, type$.Null);
- return null;
- }
- if (included.length >= 1) {
- first = included[0];
- rest = B.JSArray_methods.sublist$1(included, 1);
- innerCopy = first.copyWithoutChildren$0();
- for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
- copy = rest[_i].copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- root.addChild$1(outerCopy);
- } else
- innerCopy = root;
- _this._scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure0(_this, node));
- return null;
- },
- _trimIncluded$1(nodes) {
- var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
- _s22_ = " to be an ancestor of ";
- if (nodes.length === 0)
- return _this._assertInModule$2(_this.__root, _s5_);
- $parent = _this._assertInModule$2(_this.__parent, "__parent");
- for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
- for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
- _0_0 = $parent._parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if (innermostContiguous == null)
- innermostContiguous = i;
- _1_0 = $parent._parent;
- if (_1_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if ($parent !== _this._assertInModule$2(_this.__root, _s5_))
- return _this._assertInModule$2(_this.__root, _s5_);
- innermostContiguous.toString;
- root = nodes[innermostContiguous];
- B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
- return root;
- },
- _scopeForAtRoot$4(node, newParent, query, included) {
- var _this = this,
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node),
- t1 = query._all || query._at_root_query$_rule;
- if (t1 !== query.include)
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope);
- if (_this._mediaQueries != null && query.excludesName$1("media"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope);
- if (_this._inKeyframes && query.excludesName$1("keyframes"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope);
- return _this._inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure3()) ? new A._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope;
- },
- visitContentBlock$1(node) {
- return A.throwExpression(A.UnsupportedError$(string$.Evalua));
- },
- visitContentRule$1(node) {
- var $content = this._environment._content;
- if ($content == null)
- return null;
- this._runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure(this, $content), type$.Null);
- return null;
- },
- visitDebugRule$1(node) {
- var value = node.expression.accept$1(this),
- t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true);
- this._evaluate$_logger.debug$2(0, t1, node.span);
- return null;
- },
- visitDeclaration$1(node) {
- var t2, _0_0, t3, $name, _1_0, _2_0, value, t4, t5, _3_0, oldDeclarationName, _this = this, _null = null,
- _s8_ = "__parent",
- t1 = {};
- if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null && !_this._inUnknownAtRule && !_this._inKeyframes)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Declarm, node.span));
- if (_this._declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
- throw A.wrapException(_this._evaluate$_exception$2(string$.Declarw, node.span));
- t2 = _this._assertInModule$2(_this.__parent, _s8_)._parent.children;
- _0_0 = t2.get$last(t2);
- t2 = _this._assertInModule$2(_this.__parent, _s8_);
- if (t2 !== _0_0) {
- t2 = type$.SourceSpan;
- t3 = type$.String;
- _this._warn$3(string$.Sassx27s, new A.MultiSpan(node.span, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([_0_0.get$span(_0_0), "nested rule"], t2, t3), t2, t3)), B.Deprecation_gf0);
- }
- t2 = node.name;
- $name = _this._interpolationToValue$2$warnForColor(t2, true);
- _1_0 = _this._declarationName;
- if (_1_0 != null)
- $name = new A.CssValue(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String);
- _2_0 = node.value;
- if (_2_0 != null) {
- value = _2_0.accept$1(_this);
- if (!value.get$isBlank() || value.get$asList().length === 0) {
- t3 = _this._assertInModule$2(_this.__parent, _s8_);
- t4 = _2_0.get$span(_2_0);
- t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--");
- if (_this._sourceMap) {
- t5 = A.NullableExtension_andThen(_2_0, _this.get$_expressionNode());
- t5 = t5 == null ? _null : J.get$span$z(t5);
- } else
- t5 = _null;
- t3.addChild$1(A.ModifiableCssDeclaration$($name, new A.CssValue(value, t4, type$.CssValue_Value), node.span, t2, t5));
- } else if (J.startsWith$1$s($name.value, "--"))
- throw A.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
- }
- _3_0 = node.children;
- t1.children = null;
- if (_3_0 != null) {
- t1.children = _3_0;
- oldDeclarationName = _this._declarationName;
- _this._declarationName = $name.value;
- _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure(t1, _this), node.hasDeclarations, type$.Null);
- _this._declarationName = oldDeclarationName;
- }
- return _null;
- },
- visitEachRule$1(node) {
- var _this = this, _box_0 = {},
- t1 = node.list,
- list = t1.accept$1(_this),
- nodeWithSpan = _this._expressionNode$1(t1),
- _0_0 = node.variables;
- $label0$0: {
- _box_0.variable = null;
- if (_0_0.length === 1) {
- _box_0.variable = _0_0[0];
- t1 = new A._EvaluateVisitor_visitEachRule_closure(_box_0, _this, nodeWithSpan);
- break $label0$0;
- }
- _box_0.variables = null;
- _box_0.variables = _0_0;
- t1 = new A._EvaluateVisitor_visitEachRule_closure0(_box_0, _this, nodeWithSpan);
- break $label0$0;
- }
- return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure1(_this, list, t1, node), true, type$.nullable_Value);
- },
- _setMultipleVariables$3(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._environment.setLocalVariable$3(variables[i], this._withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan);
- },
- visitErrorRule$1(node) {
- throw A.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
- },
- visitExtendRule$1(node) {
- var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, compound, _this = this, _null = null,
- styleRule = _this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot;
- if (styleRule == null || _this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.x40exten, node.span));
- for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true))
- continue;
- visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
- t7 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't";
- _this._warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan(A.SpanExtensions_trimRight(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_ido);
- }
- _0_0 = _this._performInterpolationWithMap$2$warnForColor(node.selector, true);
- for (t1 = A.SelectorList_SelectorList$parse(A.trimAscii(_0_0._0, true), false, _0_0._1, _this._evaluate$_logger, false).components, t2 = t1.length, t3 = styleRule._style_rule$_selector._box$_inner, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- compound = complex.get$singleCompound();
- if (compound == null)
- throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", complex.span, _null));
- t4 = compound.components;
- t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null;
- if (t5 == null)
- throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, _null));
- _this._assertInModule$2(_this.__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, _this._mediaQueries);
- }
- return _null;
- },
- visitAtRule$1(node) {
- var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this;
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
- $name = _this._interpolationToValue$1(node.name);
- value = A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure(_this));
- children = node.children;
- if (children == null) {
- _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value));
- return null;
- }
- wasInKeyframes = _this._inKeyframes;
- wasInUnknownAtRule = _this._inUnknownAtRule;
- if (A.unvendor($name.value) === "keyframes")
- _this._inKeyframes = true;
- else
- _this._inUnknownAtRule = true;
- _this._withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure0(_this, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure1(), type$.ModifiableCssAtRule, type$.Null);
- _this._inUnknownAtRule = wasInUnknownAtRule;
- _this._inKeyframes = wasInKeyframes;
- return null;
- },
- visitForRule$1(node) {
- var _this = this, t1 = {},
- t2 = node.from,
- fromNumber = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure(_this, node)),
- t3 = node.to,
- toNumber = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure0(_this, node)),
- from = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure1(fromNumber)),
- to = t1.to = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure2(toNumber, fromNumber)),
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to))
- return null;
- return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value);
- },
- visitForwardRule$1(node) {
- var newConfiguration, t4, _i, variable, $name, _this = this,
- _s8_ = "@forward",
- oldConfiguration = _this._configuration,
- adjustedConfiguration = oldConfiguration.throughForward$1(node),
- t1 = node.configuration,
- t2 = t1.length,
- t3 = node.url;
- if (t2 !== 0) {
- newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node);
- _this._loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration);
- t3 = type$.String;
- t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- for (t1 = newConfiguration._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (!t3.contains$1(0, $name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- _this._assertConfigurationIsEmpty$1(newConfiguration);
- } else {
- _this._configuration = adjustedConfiguration;
- _this._loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure0(_this, node));
- _this._configuration = oldConfiguration;
- }
- return null;
- },
- _addForwardConfiguration$2(configuration, node) {
- var t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, _null = null,
- t1 = configuration._configuration$_values,
- newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
- for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- variable = t2[_i];
- if (variable.isGuarded) {
- t4 = variable.name;
- oldValue = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, t4);
- if (oldValue != null)
- t5 = !oldValue.value.$eq(0, B.C__SassNull);
- else {
- oldValue = _null;
- t5 = false;
- }
- if (t5) {
- newValues.$indexSet(0, t4, oldValue);
- continue;
- }
- }
- t4 = variable.expression;
- variableNodeWithSpan = this._expressionNode$1(t4);
- newValues.$indexSet(0, variable.name, new A.ConfiguredValue(this._withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
- }
- if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1))
- return new A.ExplicitConfiguration(node, newValues, _null);
- else
- return new A.Configuration(newValues, _null);
- },
- _registerCommentsForModule$1(module) {
- var _this = this, _s5_ = "_root",
- t1 = _this.__root;
- if (t1 == null)
- return;
- if (_this._assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
- return;
- t1 = _this._preModuleComments;
- if (t1 == null)
- t1 = _this._preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.List_CssComment);
- J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source, type$.CssComment), type$.UnmodifiableListView_CssComment));
- _this._assertInModule$2(_this.__root, _s5_).clearChildren$0();
- _this.__endOfImports = 0;
- },
- _removeUsedConfiguration$3$except(upstream, downstream, except) {
- var t1, t2, t3, t4, _i, $name;
- for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!t4.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
- var t1, _0_0, $name, value;
- if (!(configuration instanceof A.ExplicitConfiguration))
- return;
- t1 = configuration._configuration$_values;
- if (t1.get$isEmpty(t1))
- return;
- t1 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
- _0_0 = t1.get$first(t1);
- $name = _0_0._0;
- value = _0_0._1;
- t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
- throw A.wrapException(this._evaluate$_exception$2(t1, value.configurationSpan));
- },
- _assertConfigurationIsEmpty$1(configuration) {
- return this._assertConfigurationIsEmpty$2$nameInError(configuration, false);
- },
- visitFunctionRule$1(node) {
- var t1 = this._environment,
- t2 = t1.closure$0(),
- t3 = this._inDependency,
- t4 = t1._functions,
- index = t4.length - 1,
- t5 = node.name;
- t1._functionIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment));
- return null;
- },
- visitIfRule$1(node) {
- var t1, t2, _i, clauseToCheck,
- clause = node.lastClause;
- for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- clauseToCheck = t1[_i];
- if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
- clause = clauseToCheck;
- break;
- }
- }
- return A.NullableExtension_andThen(clause, new A._EvaluateVisitor_visitIfRule_closure(this));
- },
- visitImportRule$1(node) {
- var t1, t2, t3, t4, t5, t6, _i, $import, t7, _0_0, $self, t8, _this = this,
- _s8_ = "__parent",
- _s5_ = "_root",
- _s13_ = "_endOfImports";
- for (t1 = node.imports, t2 = t1.length, t3 = type$.CssValue_String, t4 = _this.get$_interpolationToValue(), t5 = type$.StaticImport, t6 = type$.JSArray_ModifiableCssImport, _i = 0; _i < t2; ++_i) {
- $import = t1[_i];
- if ($import instanceof A.DynamicImport)
- _this._visitDynamicImport$1($import);
- else {
- t5._as($import);
- t7 = $import.url;
- _0_0 = _this._performInterpolationHelper$3$sourceMap$warnForColor(t7, false, false);
- $self = $import.modifiers;
- t8 = $self == null ? null : t4.call$1($self);
- node = new A.ModifiableCssImport(new A.CssValue(_0_0._0, t7.span, t3), t8, $import.span);
- if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_))
- _this._assertInModule$2(_this.__parent, _s8_).addChild$1(node);
- else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) {
- t7 = _this._assertInModule$2(_this.__root, _s5_);
- node._parent = t7;
- t7 = t7._children;
- node._indexInParent = t7.length;
- t7.push(node);
- _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
- } else {
- t7 = _this._outOfOrderImports;
- (t7 == null ? _this._outOfOrderImports = A._setArrayType([], t6) : t7).push(node);
- }
- }
- }
- return null;
- },
- _visitDynamicImport$1($import) {
- return this._withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure(this, $import));
- },
- _loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
- var _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, _this = this;
- baseUrl = baseUrl;
- try {
- _this._importSpan = span;
- _0_0 = _this._evaluate$_importCache;
- importCache = null;
- if (_0_0 != null) {
- importCache = _0_0;
- if (baseUrl == null) {
- t1 = _this._assertInModule$2(_this.__stylesheet, "_stylesheet").span;
- baseUrl = t1.get$sourceUrl(t1);
- }
- _1_0 = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._importer, baseUrl, forImport);
- importer = null;
- canonicalUrl = null;
- originalUrl = null;
- if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) {
- importer = _1_0._0;
- canonicalUrl = _1_0._1;
- originalUrl = _1_0._2;
- _this._loadedUrls.add$1(0, canonicalUrl);
- isDependency = _this._inDependency || !J.$eq$(importer, _this._importer);
- t1 = importCache;
- t2 = importer;
- t3 = canonicalUrl;
- t4 = originalUrl;
- _2_0 = t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, _this._quietDeps && isDependency);
- stylesheet = null;
- if (_2_0 != null) {
- stylesheet = _2_0;
- t1 = stylesheet;
- t2 = importer;
- return new A._Record_3_importer_isDependency(t1, t2, isDependency);
- }
- }
- }
- t1 = B.JSString_methods.startsWith$1(url, "package:");
- if (t1)
- throw A.wrapException(string$.x22packa);
- else
- throw A.wrapException("Can't find stylesheet to import.");
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException)
- throw exception;
- else if (t1 instanceof A.ArgumentError) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace(_this._evaluate$_exception$1(J.toString$0$(error)), error, stackTrace);
- } else {
- error0 = t1;
- stackTrace0 = A.getTraceFromException(exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error0));
- } catch (exception) {
- message0 = J.toString$0$(error0);
- message = message0;
- }
- A.throwWithTrace(_this._evaluate$_exception$1(message), error0, stackTrace0);
- }
- } finally {
- _this._importSpan = null;
- }
- },
- _loadStylesheet$3$baseUrl(url, span, baseUrl) {
- return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _loadStylesheet$3$forImport(url, span, forImport) {
- return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- _applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
- var t1, _0_0, _1_8, t2, _this = this,
- _s37_ = "Mixin doesn't accept a content block.",
- _s10_ = "invocation";
- $label0$0: {
- if (mixin == null)
- throw A.wrapException(_this._evaluate$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
- t1 = mixin instanceof A.BuiltInCallable;
- if (t1 && !mixin.acceptsContent && contentCallable != null) {
- t1 = _this._evaluateArguments$1($arguments)._values;
- _0_0 = mixin.callbackFor$2(t1[2].length, new A.MapKeySet(t1[0], type$.MapKeySet_String));
- throw A.wrapException(A.MultiSpanSassRuntimeException$(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- }
- if (t1) {
- _this._environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure(_this, $arguments, mixin, nodeWithSpanWithoutContent));
- break $label0$0;
- }
- t1 = type$.UserDefinedCallable_Environment._is(mixin);
- if (t1) {
- _1_8 = mixin.declaration;
- if (_1_8 instanceof A.MixinRule)
- t2 = !type$.MixinRule._as(_1_8).get$hasContent() && contentCallable != null;
- else
- t2 = false;
- } else
- t2 = false;
- if (t2)
- throw A.wrapException(A.MultiSpanSassRuntimeException$(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- if (t1) {
- _this._runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure0(_this, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null);
- break $label0$0;
- }
- throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- }
- },
- visitIncludeRule$1(node) {
- var _this = this,
- mixin = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure(_this, node));
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
- _this._warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_HJ0);
- _this._applyMixin$5(mixin, A.NullableExtension_andThen(node.content, new A._EvaluateVisitor_visitIncludeRule_closure0(_this)), node.$arguments, node, new A._FakeAstNode(new A._EvaluateVisitor_visitIncludeRule_closure1(node)));
- return null;
- },
- visitMixinRule$1(node) {
- var t1 = this._environment,
- t2 = t1.closure$0(),
- t3 = this._inDependency,
- t4 = t1._mixins,
- index = t4.length - 1,
- t5 = node.name;
- t1._mixinIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment));
- return null;
- },
- visitLoudComment$1(node) {
- var t1, _this = this,
- _s8_ = "__parent",
- _s13_ = "_endOfImports";
- if (_this._inFunction)
- return null;
- if (_this._assertInModule$2(_this.__parent, _s8_) === _this._assertInModule$2(_this.__root, "_root") && _this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, "_root").children._collection$_source))
- _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
- t1 = node.text;
- _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(_this._performInterpolation$1(t1), t1.span));
- return null;
- },
- visitMediaRule$1(node) {
- var _0_0, queries, mergedQueries, t1, mergedSources, t2, t3, _this = this;
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
- _0_0 = _this._performInterpolationWithMap$2$warnForColor(node.query, true);
- queries = A.CssMediaQuery_parseList(_0_0._0, _0_0._1, _this._evaluate$_logger);
- mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure(_this, queries));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries))
- return null;
- if (t1)
- mergedSources = B.Set_empty1;
- else {
- t2 = _this._mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
- t3 = _this._mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, queries);
- mergedSources = t2;
- }
- t1 = t1 ? queries : mergedQueries;
- _this._withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure0(_this, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure1(mergedSources), type$.ModifiableCssMediaRule, type$.Null);
- return null;
- },
- _mergeMediaQueries$2(queries1, queries2) {
- var t1, t2, t3, t4, _0_0, t5, result,
- queries = A._setArrayType([], type$.JSArray_CssMediaQuery);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
- $label0$1: {
- _0_0 = t3.merge$1(t4.get$current(t4));
- if (B._SingletonCssMediaQueryMergeResult_0 === _0_0)
- continue;
- if (B._SingletonCssMediaQueryMergeResult_1 === _0_0)
- return null;
- t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult;
- result = t5 ? _0_0 : null;
- if (t5)
- queries.push(result.query);
- break $label0$1;
- }
- }
- return queries;
- },
- visitReturnRule$1(node) {
- var t1 = node.expression;
- return this._withoutSlash$2(t1.accept$1(this), t1);
- },
- visitSilentComment$1(node) {
- return null;
- },
- visitStyleRule$1(node) {
- var t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule, _this = this, _null = null,
- _s8_ = "__parent",
- _s11_ = "_stylesheet";
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Style_n, node.span));
- else if (_this._inKeyframes && _this._assertInModule$2(_this.__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Style_k, node.span));
- t1 = node.selector;
- _0_0 = _this._performInterpolationWithMap$2$warnForColor(t1, true);
- selectorText = _0_0._0;
- selectorMap = _0_0._1;
- if (_this._inKeyframes) {
- _this._withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable(A.KeyframeSelectorParser$(selectorText, selectorMap, _this._evaluate$_logger).parse$0(), type$.String), t1.span, type$.CssValue_List_String), node.span), new A._EvaluateVisitor_visitStyleRule_closure(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure0(), type$.ModifiableCssKeyframeBlock, type$.Null);
- return _null;
- }
- parsedSelector = A.SelectorList_SelectorList$parse(selectorText, true, selectorMap, _this._evaluate$_logger, _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss);
- t1 = _this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot;
- t1 = t1 == null ? _null : t1.fromPlainCss;
- nest = t1 !== true;
- if (nest) {
- if (_this._assertInModule$2(_this.__stylesheet, _s11_).plainCss)
- for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- _1_0 = t1[_i].leadingCombinators;
- if (_1_0.length >= 1) {
- first = _1_0[0];
- t3 = _this._assertInModule$2(_this.__stylesheet, _s11_);
- t3 = t3.plainCss;
- } else {
- first = _null;
- t3 = false;
- }
- if (t3)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Top_lel, first.span));
- }
- t1 = _this._styleRuleIgnoringAtRoot;
- t1 = t1 == null ? _null : t1.originalSelector;
- parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !_this._atRootExcludingStyleRule, _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss);
- }
- rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$2(parsedSelector, _this._mediaQueries), node.span, _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss, parsedSelector);
- oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
- t1 = _this._atRootExcludingStyleRule = false;
- t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure1() : _null;
- _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure2(_this, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule, type$.Null);
- _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- _this._warnForBogusCombinators$1(rule);
- if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null) {
- t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
- t1 = !t1.get$isEmpty(t1);
- }
- if (t1) {
- t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
- t1.get$last(t1).isGroupEnd = true;
- }
- return _null;
- },
- _warnForBogusCombinators$1(rule) {
- var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
- if (!rule.accept$1(B._IsInvisibleVisitor_false_false))
- for (t1 = rule._style_rule$_selector._box$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true))
- continue;
- if (complex.accept$1(B.C__IsUselessVisitor)) {
- visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight(complex.span), B.Deprecation_ido);
- } else if (complex.leadingCombinators.length !== 0) {
- if (!_this._assertInModule$2(_this.__stylesheet, "_stylesheet").plainCss) {
- visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight(complex.span), B.Deprecation_ido);
- }
- } else {
- visitor = A._SerializeVisitor$(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
- t7 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : "";
- t8 = A.SpanExtensions_trimRight(complex.span);
- if (t5.get$length(0) === 0)
- A.throwExpression(A.IterableElementError_noElement());
- t9 = J.get$span$z(t5.$index(0, 0));
- _this._warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_ido);
- }
- }
- },
- visitSupportsRule$1(node) {
- var t1, _this = this;
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
- t1 = node.condition;
- _this._withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(new A.CssValue(_this._visitSupportsCondition$1(t1), t1.get$span(t1), type$.CssValue_String), node.span), new A._EvaluateVisitor_visitSupportsRule_closure(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
- return null;
- },
- _visitSupportsCondition$1(condition) {
- var t1, _this = this, _box_0 = {};
- $label0$0: {
- if (condition instanceof A.SupportsOperation) {
- t1 = condition.operator;
- t1 = _this._parenthesize$2(condition.left, t1) + " " + t1 + " " + _this._parenthesize$2(condition.right, t1);
- break $label0$0;
- }
- if (condition instanceof A.SupportsNegation) {
- t1 = "not " + _this._parenthesize$1(condition.condition);
- break $label0$0;
- }
- if (condition instanceof A.SupportsInterpolation) {
- t1 = condition.expression;
- t1 = _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false);
- break $label0$0;
- }
- _box_0.declaration = null;
- if (condition instanceof A.SupportsDeclaration) {
- _box_0.declaration = condition;
- t1 = _this._withSupportsDeclaration$1(new A._EvaluateVisitor__visitSupportsCondition_closure(_box_0, _this));
- break $label0$0;
- }
- if (condition instanceof A.SupportsFunction) {
- t1 = _this._performInterpolation$1(condition.name) + "(" + _this._performInterpolation$1(condition.$arguments) + ")";
- break $label0$0;
- }
- if (condition instanceof A.SupportsAnything) {
- t1 = "(" + _this._performInterpolation$1(condition.contents) + ")";
- break $label0$0;
- }
- t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
- }
- return t1;
- },
- _withSupportsDeclaration$1$1(callback) {
- var t1,
- oldInSupportsDeclaration = this._inSupportsDeclaration;
- this._inSupportsDeclaration = true;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- this._inSupportsDeclaration = oldInSupportsDeclaration;
- }
- },
- _withSupportsDeclaration$1(callback) {
- return this._withSupportsDeclaration$1$1(callback, type$.dynamic);
- },
- _parenthesize$2(condition, operator) {
- var t1;
- if (!(condition instanceof A.SupportsNegation))
- if (condition instanceof A.SupportsOperation)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return "(" + this._visitSupportsCondition$1(condition) + ")";
- return this._visitSupportsCondition$1(condition);
- },
- _parenthesize$1(condition) {
- return this._parenthesize$2(condition, null);
- },
- visitVariableDeclaration$1(node) {
- var t2, value, _this = this, _null = null, t1 = {};
- if (node.isGuarded) {
- if (node.namespace == null && _this._environment._variables.length === 1) {
- t2 = _this._configuration._configuration$_values;
- t2 = t2.get$isEmpty(t2) ? _null : t2.remove$1(0, node.name);
- t1.override = null;
- if (t2 != null) {
- t1.override = t2;
- t2 = !t2.value.$eq(0, B.C__SassNull);
- } else
- t2 = false;
- if (t2) {
- _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure(t1, _this, node));
- return _null;
- }
- }
- value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node));
- if (value != null && !value.$eq(0, B.C__SassNull))
- return _null;
- }
- if (node.isGlobal && !_this._environment.globalVariableExists$1(node.name)) {
- t1 = _this._environment._variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName(node.span) + ": null` at the stylesheet root.";
- _this._warn$3(t1, node.span, B.Deprecation_2nU);
- }
- t1 = node.expression;
- _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, _this._withoutSlash$2(t1.accept$1(_this), t1)));
- return _null;
- },
- visitUseRule$1(node) {
- var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this,
- t1 = node.configuration,
- t2 = t1.length;
- if (t2 !== 0) {
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- t3 = variable.expression;
- variableNodeWithSpan = _this._expressionNode$1(t3);
- values.$indexSet(0, variable.name, new A.ConfiguredValue(_this._withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
- }
- configuration = new A.ExplicitConfiguration(node, values, null);
- } else
- configuration = B.Configuration_Map_empty_null;
- _this._loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure(_this, node), configuration);
- _this._assertConfigurationIsEmpty$1(configuration);
- return null;
- },
- visitWarnRule$1(node) {
- var _this = this,
- value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure(_this, node)),
- t1 = value instanceof A.SassString ? value._string$_text : _this._evaluate$_serialize$2(value, node.expression);
- _this._evaluate$_logger.warn$2$trace(0, t1, _this._evaluate$_stackTrace$1(node.span));
- return null;
- },
- visitWhileRule$1(node) {
- return this._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.nullable_Value);
- },
- visitBinaryOperationExpression$1(node) {
- var t1, _this = this;
- if (_this._assertInModule$2(_this.__stylesheet, "_stylesheet").plainCss) {
- t1 = node.operator;
- t1 = t1 !== B.BinaryOperator_wdM && t1 !== B.BinaryOperator_U77;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(_this._evaluate$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
- return _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure(_this, node));
- },
- _slash$3(left, right, node) {
- var t1, right0, _1_2, _1_1, _null = null,
- result = left.dividedBy$1(right),
- _1_2_isSet = left instanceof A.SassNumber;
- if (_1_2_isSet) {
- t1 = type$.SassNumber;
- t1._as(left);
- if (right instanceof A.SassNumber) {
- t1._as(right);
- t1 = node.allowsSlash && this._operandAllowsSlash$1(node.left) && this._operandAllowsSlash$1(node.right);
- right0 = right;
- _1_2 = right0;
- } else {
- right0 = _null;
- _1_2 = right;
- t1 = false;
- }
- _1_1 = left;
- } else {
- right0 = _null;
- _1_2 = right0;
- _1_1 = left;
- left = _1_2;
- t1 = false;
- }
- if (t1)
- return type$.SassNumber._as(result).withSlash$2(left, right0);
- if (_1_1 instanceof A.SassNumber)
- t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber;
- else
- t1 = false;
- if (t1) {
- this._warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation().call$1(node)) + " or " + A.expressionToCalc(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_oJv);
- return result;
- }
- return result;
- },
- _operandAllowsSlash$1(node) {
- var t1;
- if (node instanceof A.FunctionExpression)
- if (node.namespace == null) {
- t1 = node.name;
- t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._environment.getFunction$1(t1) == null;
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- },
- visitValueExpression$1(node) {
- return node.value;
- },
- visitVariableExpression$1(node) {
- var result = this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure(this, node));
- if (result != null)
- return result;
- throw A.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span));
- },
- visitUnaryOperationExpression$1(node) {
- return this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure(node, node.operand.accept$1(this)));
- },
- visitBooleanExpression$1(node) {
- return node.value ? B.SassBoolean_true : B.SassBoolean_false;
- },
- visitIfExpression$1(node) {
- var condition, t1, ifTrue, ifFalse, result, _this = this,
- _0_0 = _this._evaluateMacroArguments$1(node),
- positional = _0_0._0,
- named = _0_0._1;
- _this._verifyArguments$4(positional.length, named, $.$get$IfExpression_declaration(), node);
- condition = A.ListExtensions_elementAtOrNull(positional, 0);
- if (condition == null) {
- t1 = named.$index(0, "condition");
- t1.toString;
- condition = t1;
- }
- ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
- if (ifTrue == null) {
- t1 = named.$index(0, "if-true");
- t1.toString;
- ifTrue = t1;
- }
- ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
- if (ifFalse == null) {
- t1 = named.$index(0, "if-false");
- t1.toString;
- ifFalse = t1;
- }
- result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse;
- return _this._withoutSlash$2(result.accept$1(_this), _this._expressionNode$1(result));
- },
- visitNullExpression$1(node) {
- return B.C__SassNull;
- },
- visitNumberExpression$1(node) {
- return A.SassNumber_SassNumber(node.value, node.unit);
- },
- visitParenthesizedExpression$1(node) {
- var _this = this;
- return _this._assertInModule$2(_this.__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._evaluate$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
- },
- visitColorExpression$1(node) {
- return node.value;
- },
- visitListExpression$1(node) {
- var t1 = node.contents;
- return A.SassList$(new A.MappedListIterable(t1, new A._EvaluateVisitor_visitListExpression_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), node.separator, node.hasBrackets);
- },
- visitMapExpression$1(node) {
- var t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan,
- t1 = type$.Value,
- map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
- keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
- for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- keyValue = key.accept$1(this);
- valueValue = value.accept$1(this);
- if (map.containsKey$1(keyValue)) {
- t1 = keyNodes.$index(0, keyValue);
- oldValueSpan = t1 == null ? null : t1.get$span(t1);
- t1 = key.get$span(key);
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (oldValueSpan != null)
- t2.$indexSet(0, oldValueSpan, "first key");
- throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t1, "second key", t2, this._evaluate$_stackTrace$1(key.get$span(key)), null));
- }
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, key);
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1));
- },
- visitFunctionExpression$1(node) {
- var t2, _0_0, t3, t4, oldInFunction, result, _this = this,
- _s11_ = "_stylesheet",
- t1 = {},
- $function = _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss ? null : _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure(_this, node));
- t1.$function = $function;
- if ($function == null) {
- if (node.namespace != null)
- throw A.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span));
- t2 = node.name;
- _0_0 = t2.toLowerCase();
- if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
- t3 = node.$arguments;
- t4 = t3.named;
- t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure0());
- } else
- t3 = false;
- if (t3)
- return _this._visitCalculation$2$inLegacySassFunction(node, true);
- if ("calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0)
- return _this._visitCalculation$1(node);
- $function = _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss ? null : _this._builtInFunctions.$index(0, t2);
- t2 = t1.$function = $function == null ? new A.PlainCssCallable(node.originalName) : $function;
- } else
- t2 = $function;
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
- _this._warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_HJ0);
- oldInFunction = _this._inFunction;
- _this._inFunction = true;
- result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure1(t1, _this, node));
- _this._inFunction = oldInFunction;
- return result;
- },
- _visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
- var $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, _this = this,
- t2 = node.$arguments,
- t3 = t2.named;
- if (t3.get$isNotEmpty(t3))
- throw A.wrapException(_this._evaluate$_exception$2(string$.Keywor, node.span));
- else if (t2.rest != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Rest_a, node.span));
- _this._checkCalculationArguments$1(node);
- t3 = A._setArrayType([], type$.JSArray_Object);
- for (t2 = t2.positional, t4 = t2.length, _i = 0; _i < t4; ++_i)
- t3.push(_this._visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
- $arguments = t3;
- if (_this._inSupportsDeclaration)
- return new A.SassCalculation(node.name, A.List_List$unmodifiable($arguments, type$.Object));
- oldCallableNode = _this._callableNode;
- _this._callableNode = node;
- try {
- t1 = null;
- t3 = node.name;
- _0_0 = t3.toLowerCase();
- $label0$0: {
- if ("calc" === _0_0) {
- t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sqrt" === _0_0) {
- t1 = A.SassCalculation__singleArgument("sqrt", J.$index$asx($arguments, 0), A.number0__sqrt$closure(), true);
- break $label0$0;
- }
- if ("sin" === _0_0) {
- t1 = A.SassCalculation__singleArgument("sin", J.$index$asx($arguments, 0), A.number0__sin$closure(), false);
- break $label0$0;
- }
- if ("cos" === _0_0) {
- t1 = A.SassCalculation__singleArgument("cos", J.$index$asx($arguments, 0), A.number0__cos$closure(), false);
- break $label0$0;
- }
- if ("tan" === _0_0) {
- t1 = A.SassCalculation__singleArgument("tan", J.$index$asx($arguments, 0), A.number0__tan$closure(), false);
- break $label0$0;
- }
- if ("asin" === _0_0) {
- t1 = A.SassCalculation__singleArgument("asin", J.$index$asx($arguments, 0), A.number0__asin$closure(), true);
- break $label0$0;
- }
- if ("acos" === _0_0) {
- t1 = A.SassCalculation__singleArgument("acos", J.$index$asx($arguments, 0), A.number0__acos$closure(), true);
- break $label0$0;
- }
- if ("atan" === _0_0) {
- t1 = A.SassCalculation__singleArgument("atan", J.$index$asx($arguments, 0), A.number0__atan$closure(), true);
- break $label0$0;
- }
- if ("abs" === _0_0) {
- t1 = A.SassCalculation_abs(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("exp" === _0_0) {
- t1 = A.SassCalculation_exp(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sign" === _0_0) {
- t1 = A.SassCalculation_sign(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("min" === _0_0) {
- t1 = A.SassCalculation_min($arguments);
- break $label0$0;
- }
- if ("max" === _0_0) {
- t1 = A.SassCalculation_max($arguments);
- break $label0$0;
- }
- if ("hypot" === _0_0) {
- t1 = A.SassCalculation_hypot($arguments);
- break $label0$0;
- }
- if ("pow" === _0_0) {
- t1 = A.SassCalculation_pow(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("atan2" === _0_0) {
- t1 = A.SassCalculation_atan2(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("log" === _0_0) {
- t1 = A.SassCalculation_log(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("mod" === _0_0) {
- t1 = A.SassCalculation_mod(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("rem" === _0_0) {
- t1 = A.SassCalculation_rem(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("round" === _0_0) {
- t1 = A.SassCalculation_round(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- if ("clamp" === _0_0) {
- t1 = A.SassCalculation_clamp(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
- t1 = A.throwExpression(t3);
- }
- t1 = t1;
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- if (B.JSString_methods.contains$1(error.message, "compatible"))
- _this._verifyCompatibleNumbers$2($arguments, t2);
- A.throwWithTrace(_this._evaluate$_exception$2(error.message, node.span), error, stackTrace);
- } else
- throw exception;
- } finally {
- _this._callableNode = oldCallableNode;
- }
- },
- _visitCalculation$1(node) {
- return this._visitCalculation$2$inLegacySassFunction(node, false);
- },
- _checkCalculationArguments$1(node) {
- var t1, _0_0,
- check = new A._EvaluateVisitor__checkCalculationArguments_check(this, node);
- $label0$0: {
- t1 = node.name;
- _0_0 = t1.toLowerCase();
- if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
- check.call$1(1);
- break $label0$0;
- }
- if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
- check.call$0();
- break $label0$0;
- }
- if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
- check.call$1(2);
- break $label0$0;
- }
- if ("round" === _0_0 || "clamp" === _0_0) {
- check.call$1(3);
- break $label0$0;
- }
- throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
- }
- },
- _verifyCompatibleNumbers$2(args, nodesWithSpans) {
- var i, t1, _0_0, arg, number1, j, number2;
- for (i = 0; t1 = args.length, i < t1; ++i) {
- _0_0 = args[i];
- if (_0_0 instanceof A.SassNumber) {
- t1 = _0_0.get$hasComplexUnits();
- arg = _0_0;
- } else {
- arg = null;
- t1 = false;
- }
- if (t1)
- throw A.wrapException(this._evaluate$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
- }
- for (i = 0; i < t1 - 1; ++i) {
- number1 = args[i];
- if (!(number1 instanceof A.SassNumber))
- continue;
- for (j = i + 1; t1 = args.length, j < t1; ++j) {
- number2 = args[j];
- if (!(number2 instanceof A.SassNumber))
- continue;
- if (number1.hasPossiblyCompatibleUnits$1(number2))
- continue;
- throw A.wrapException(A.MultiSpanSassRuntimeException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._evaluate$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
- }
- }
- },
- _visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
- var result, t2, _0_0, _1_0, t3, _i, i, _this = this, _null = null, _box_0 = {},
- t1 = node instanceof A.ParenthesizedExpression,
- inner = t1 ? node.expression : _null;
- if (t1) {
- result = _this._visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction);
- return result instanceof A.SassString ? new A.SassString("(" + result._string$_text + ")", false) : result;
- }
- if (node instanceof A.StringExpression && node.accept$1(new A._IsCalculationSafeVisitor())) {
- t1 = node.text;
- t2 = t1.get$asPlain();
- _0_0 = t2 == null ? _null : t2.toLowerCase();
- $label0$0: {
- if ("pi" === _0_0) {
- t1 = A.SassNumber_SassNumber(3.141592653589793, _null);
- break $label0$0;
- }
- if ("e" === _0_0) {
- t1 = A.SassNumber_SassNumber(2.718281828459045, _null);
- break $label0$0;
- }
- if ("infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber(1 / 0, _null);
- break $label0$0;
- }
- if ("-infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber(-1 / 0, _null);
- break $label0$0;
- }
- if ("nan" === _0_0) {
- t1 = A.SassNumber_SassNumber(0 / 0, _null);
- break $label0$0;
- }
- t1 = new A.SassString(_this._performInterpolation$1(t1), false);
- break $label0$0;
- }
- return t1;
- }
- _box_0.right = _box_0.left = _box_0.operator = null;
- t1 = node instanceof A.BinaryOperationExpression;
- if (t1) {
- _box_0.operator = node.operator;
- _box_0.left = node.left;
- _box_0.right = node.right;
- }
- if (t1) {
- _this._checkWhitespaceAroundCalculationOperator$1(node);
- return _this._addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure(_box_0, _this, node, inLegacySassFunction));
- }
- if (node instanceof A.NumberExpression || node instanceof A.VariableExpression || node instanceof A.FunctionExpression || node instanceof A.IfExpression) {
- _1_0 = node.accept$1(_this);
- $label1$1: {
- if (_1_0 instanceof A.SassNumber) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassCalculation) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassString) {
- t1 = !_1_0._hasQuotes;
- result = _1_0;
- } else {
- result = _null;
- t1 = false;
- }
- if (t1) {
- t1 = result;
- break $label1$1;
- }
- t1 = A.throwExpression(_this._evaluate$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
- }
- return t1;
- }
- if (node instanceof A.ListExpression && !node.hasBrackets && B.ListSeparator_nbm === node.separator && node.contents.length >= 2) {
- t1 = A._setArrayType([], type$.JSArray_Object);
- for (t2 = node.contents, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(_this._visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
- _this._checkAdjacentCalculationValues$2(t1, node);
- for (i = 0; i < t1.length; ++i) {
- t3 = t1[i];
- if (t3 instanceof A.CalculationOperation && t2[i] instanceof A.ParenthesizedExpression)
- t1[i] = new A.SassString("(" + A.S(t3) + ")", false);
- }
- return new A.SassString(B.JSArray_methods.join$1(t1, " "), false);
- }
- throw A.wrapException(_this._evaluate$_exception$2(string$.This_e, node.get$span(node)));
- },
- _checkWhitespaceAroundCalculationOperator$1(node) {
- var t2, t3, t4, textBetweenOperands, first, last,
- t1 = node.operator;
- if (t1 !== B.BinaryOperator_u15 && t1 !== B.BinaryOperator_SjO)
- return;
- t1 = node.left;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t3 = node.right;
- t4 = t3.get$span(t3);
- if (t2 !== t4.get$file(t4))
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$end(t2);
- t4 = t3.get$span(t3);
- if (t2.offset >= t4.get$start(t4).offset)
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t1 = t1.get$span(t1);
- t1 = t1.get$end(t1);
- t3 = t3.get$span(t3);
- textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
- first = textBetweenOperands.charCodeAt(0);
- last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
- if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
- t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._evaluate$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
- },
- _binaryOperatorToCalculationOperator$2(operator, node) {
- var t1;
- $label0$0: {
- if (B.BinaryOperator_u15 === operator) {
- t1 = B.CalculationOperator_g2q;
- break $label0$0;
- }
- if (B.BinaryOperator_SjO === operator) {
- t1 = B.CalculationOperator_CxF;
- break $label0$0;
- }
- if (B.BinaryOperator_2No === operator) {
- t1 = B.CalculationOperator_171;
- break $label0$0;
- }
- if (B.BinaryOperator_U77 === operator) {
- t1 = B.CalculationOperator_Qf1;
- break $label0$0;
- }
- t1 = A.throwExpression(this._evaluate$_exception$2(string$.This_o, node.get$operatorSpan()));
- }
- return t1;
- },
- _checkAdjacentCalculationValues$2(elements, node) {
- var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
- for (t1 = elements.length, i = 1; i < t1; ++i) {
- t2 = i - 1;
- previous = elements[t2];
- current = elements[i];
- if (previous instanceof A.SassString || current instanceof A.SassString)
- continue;
- t1 = node.contents;
- previousNode = t1[t2];
- currentNode = t1[i];
- if (currentNode instanceof A.UnaryOperationExpression) {
- _0_2 = currentNode.operator;
- if (B.UnaryOperator_AiQ !== _0_2)
- t1 = B.UnaryOperator_cLp === _0_2;
- else
- t1 = true;
- } else
- t1 = false;
- if (!t1)
- t1 = currentNode instanceof A.NumberExpression && currentNode.value < 0;
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._evaluate$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
- else
- throw A.wrapException(this._evaluate$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
- }
- },
- visitInterpolatedFunctionExpression$1(node) {
- var result, _this = this,
- t1 = _this._performInterpolation$1(node.name),
- oldInFunction = _this._inFunction;
- _this._inFunction = true;
- result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure(_this, node, new A.PlainCssCallable(t1)));
- _this._inFunction = oldInFunction;
- return result;
- },
- _runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
- var oldCallable, result, _this = this,
- evaluated = _this._evaluateArguments$1($arguments),
- $name = callable.declaration.name;
- if ($name !== "@content")
- $name += "()";
- oldCallable = _this._currentCallable;
- _this._currentCallable = callable;
- result = _this._withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure(_this, callable, evaluated, nodeWithSpan, run, $V));
- _this._currentCallable = oldCallable;
- return result;
- },
- _runFunctionCallable$3($arguments, callable, nodeWithSpan) {
- var buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, _this = this;
- if (callable instanceof A.BuiltInCallable)
- return _this._withoutSlash$2(_this._runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan);
- else if (type$.UserDefinedCallable_Environment._is(callable))
- return _this._runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure(_this, callable), type$.Value);
- else if (callable instanceof A.PlainCssCallable) {
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
- buffer = new A.StringBuffer(callable.name + "(");
- try {
- first = true;
- for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- argument = t1[_i];
- if (first)
- first = false;
- else
- buffer._contents += ", ";
- t3 = buffer;
- t4 = argument;
- t4 = _this._evaluate$_serialize$3$quote(t4.accept$1(_this), t4, true);
- t3._contents += t4;
- }
- restArg = $arguments.rest;
- if (restArg != null) {
- rest = restArg.accept$1(_this);
- if (!first)
- buffer._contents += ", ";
- t1 = buffer;
- t2 = _this._evaluate$_serialize$2(rest, restArg);
- t1._contents += t2;
- }
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassRuntimeException._is(t1)) {
- error = t1;
- if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
- throw exception;
- throw A.wrapException(A.MultiSpanSassRuntimeException$(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
- } else
- throw exception;
- }
- t1 = buffer;
- t2 = A.Primitives_stringFromCharCode(41);
- t1._contents += t2;
- t2 = buffer._contents;
- return new A.SassString(t2.charCodeAt(0) == 0 ? t2 : t2, false);
- } else
- throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
- },
- _runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
- var result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _this = this, _box_0 = {},
- evaluated = _this._evaluateArguments$1($arguments),
- oldCallableNode = _this._callableNode;
- _this._callableNode = nodeWithSpan;
- namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
- _box_0.callback = _box_0.overload = null;
- _0_0 = callable.callbackFor$2(evaluated._values[2].length, namedSet);
- _box_0.overload = _0_0._0;
- _box_0.callback = _0_0._1;
- _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure(_box_0, evaluated, namedSet));
- declaredArguments = _box_0.overload.$arguments;
- for (i = evaluated._values[2].length, t1 = declaredArguments.length; i < t1; ++i) {
- argument = declaredArguments[i];
- t2 = evaluated._values[2];
- t3 = evaluated._values[0].remove$1(0, argument.name);
- if (t3 == null) {
- t3 = argument.defaultValue;
- t3 = _this._withoutSlash$2(t3.accept$1(_this), t3);
- }
- t2.push(t3);
- }
- if (_box_0.overload.restArgument != null) {
- if (evaluated._values[2].length > t1) {
- rest = B.JSArray_methods.sublist$1(evaluated._values[2], t1);
- B.JSArray_methods.removeRange$2(evaluated._values[2], t1, evaluated._values[2].length);
- } else
- rest = B.List_empty8;
- t1 = evaluated._values[0];
- argumentList = A.SassArgumentList$(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : evaluated._values[4]);
- evaluated._values[2].push(argumentList);
- } else
- argumentList = null;
- result = null;
- try {
- result = _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure0(_box_0, evaluated));
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException)
- throw exception;
- else {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error));
- } catch (exception) {
- message0 = J.toString$0$(error);
- message = message0;
- }
- A.throwWithTrace(_this._evaluate$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
- }
- }
- _this._callableNode = oldCallableNode;
- if (argumentList == null)
- return result;
- if (evaluated._values[0].__js_helper$_length === 0)
- return result;
- if (argumentList._wereKeywordsAccessed)
- return result;
- throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + A.pluralize("argument", evaluated._values[0].get$keys(0).get$length(0), null) + " named " + A.toSentence(evaluated._values[0].get$keys(0).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure1(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
- },
- _evaluateArguments$1($arguments) {
- var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this,
- positional = A._setArrayType([], type$.JSArray_Value),
- positionalNodes = A._setArrayType([], type$.JSArray_AstNode);
- for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- expression = t1[_i];
- nodeForSpan = _this._expressionNode$1(expression);
- positional.push(_this._withoutSlash$2(expression.accept$1(_this), nodeForSpan));
- positionalNodes.push(nodeForSpan);
- }
- t1 = type$.String;
- named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value);
- t2 = type$.AstNode;
- namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t3 = A.MapExtensions_get_pairs($arguments.named, t1, type$.Expression), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- $name = t4._0;
- value = t4._1;
- nodeForSpan = _this._expressionNode$1(value);
- named.$indexSet(0, $name, _this._withoutSlash$2(value.accept$1(_this), nodeForSpan));
- namedNodes.$indexSet(0, $name, nodeForSpan);
- }
- restArgs = $arguments.rest;
- if (restArgs == null)
- return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided]);
- rest = restArgs.accept$1(_this);
- restNodeForSpan = _this._expressionNode$1(restArgs);
- if (rest instanceof A.SassMap) {
- _this._addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure());
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();)
- t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan);
- namedNodes.addAll$1(0, t3);
- separator = B.ListSeparator_undecided_null_undecided;
- } else if (rest instanceof A.SassList) {
- t3 = rest._list$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure0(_this, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value>")));
- B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
- separator = rest._separator;
- if (rest instanceof A.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure1(_this, named, restNodeForSpan, namedNodes));
- }
- } else {
- positional.push(_this._withoutSlash$2(rest, restNodeForSpan));
- positionalNodes.push(restNodeForSpan);
- separator = B.ListSeparator_undecided_null_undecided;
- }
- keywordRestArgs = $arguments.keywordRest;
- if (keywordRestArgs == null)
- return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- keywordRest = keywordRestArgs.accept$1(_this);
- keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs);
- if (keywordRest instanceof A.SassMap) {
- _this._addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure2());
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();)
- t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t1);
- return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- } else
- throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
- },
- _evaluateMacroArguments$1(invocation) {
- var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this,
- t1 = invocation.$arguments,
- restArgs_ = t1.rest;
- if (restArgs_ == null)
- return new A._Record_2(t1.positional, t1.named);
- t2 = t1.positional;
- positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
- named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression);
- rest = restArgs_.accept$1(_this);
- restNodeForSpan = _this._expressionNode$1(restArgs_);
- if (rest instanceof A.SassMap)
- _this._addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure(restArgs_));
- else if (rest instanceof A.SassList) {
- t2 = rest._list$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure0(_this, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
- if (rest instanceof A.SassArgumentList) {
- rest._wereKeywordsAccessed = true;
- rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure1(_this, named, restNodeForSpan, restArgs_));
- }
- } else
- positional.push(new A.ValueExpression(_this._withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
- keywordRestArgs_ = t1.keywordRest;
- if (keywordRestArgs_ == null)
- return new A._Record_2(positional, named);
- keywordRest = keywordRestArgs_.accept$1(_this);
- keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs_);
- if (keywordRest instanceof A.SassMap) {
- _this._addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure2(_this, keywordRestNodeForSpan, keywordRestArgs_));
- return new A._Record_2(positional, named);
- } else
- throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
- },
- _addRestMap$1$4(values, map, nodeWithSpan, convert) {
- map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure(this, values, convert, this._expressionNode$1(nodeWithSpan), map, nodeWithSpan));
- },
- _addRestMap$4(values, map, nodeWithSpan, convert) {
- return this._addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
- },
- _verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
- return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure($arguments, positional, named));
- },
- visitSelectorExpression$1(node) {
- var t1 = this._styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
- return t1 == null ? B.C__SassNull : t1;
- },
- visitStringExpression$1(node) {
- var t1, t2, t3, t4, _i, value, t5, _0_0, text, _this = this,
- oldInSupportsDeclaration = _this._inSupportsDeclaration;
- _this._inSupportsDeclaration = false;
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression, _i = 0; _i < t3; ++_i) {
- value = t2[_i];
- $label0$0: {
- if (typeof value == "string") {
- t5 = value;
- break $label0$0;
- }
- if (t4._is(value)) {
- _0_0 = value.accept$1(_this);
- $label1$1: {
- if (_0_0 instanceof A.SassString) {
- text = _0_0._string$_text;
- t5 = text;
- break $label1$1;
- }
- t5 = _this._evaluate$_serialize$3$quote(_0_0, value, false);
- break $label1$1;
- }
- break $label0$0;
- }
- t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
- }
- t1.push(t5);
- }
- t1 = B.JSArray_methods.join$0(t1);
- _this._inSupportsDeclaration = oldInSupportsDeclaration;
- return new A.SassString(t1, node.hasQuotes);
- },
- visitSupportsExpression$1(expression) {
- return new A.SassString(this._visitSupportsCondition$1(expression.condition), false);
- },
- visitCssAtRule$1(node) {
- var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
- if (node.isChildless) {
- _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value));
- return;
- }
- wasInKeyframes = _this._inKeyframes;
- wasInUnknownAtRule = _this._inUnknownAtRule;
- t1 = node.name;
- if (A.unvendor(t1.value) === "keyframes")
- _this._inKeyframes = true;
- else
- _this._inUnknownAtRule = true;
- _this._withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure(_this, node), false, new A._EvaluateVisitor_visitCssAtRule_closure0(), type$.ModifiableCssAtRule, type$.Null);
- _this._inUnknownAtRule = wasInUnknownAtRule;
- _this._inKeyframes = wasInKeyframes;
- },
- visitCssComment$1(node) {
- var _this = this,
- _s8_ = "__parent",
- _s13_ = "_endOfImports";
- if (_this._assertInModule$2(_this.__parent, _s8_) === _this._assertInModule$2(_this.__root, "_root") && _this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, "_root").children._collection$_source))
- _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
- _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(node.text, node.span));
- },
- visitCssDeclaration$1(node) {
- this._assertInModule$2(this.__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap));
- },
- visitCssImport$1(node) {
- var t1, _this = this,
- _s8_ = "__parent",
- _s5_ = "_root",
- _s13_ = "_endOfImports",
- modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span);
- if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_))
- _this._assertInModule$2(_this.__parent, _s8_).addChild$1(modifiableNode);
- else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) {
- _this._assertInModule$2(_this.__root, _s5_).addChild$1(modifiableNode);
- _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
- } else {
- t1 = _this._outOfOrderImports;
- (t1 == null ? _this._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
- }
- },
- visitCssKeyframeBlock$1(node) {
- this._withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure(this, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure0(), type$.ModifiableCssKeyframeBlock, type$.Null);
- },
- visitCssMediaRule$1(node) {
- var mergedQueries, t1, mergedSources, t2, t3, _this = this;
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
- mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure(_this, node));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries))
- return;
- if (t1)
- mergedSources = B.Set_empty1;
- else {
- t2 = _this._mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
- t3 = _this._mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, node.queries);
- mergedSources = t2;
- }
- t1 = t1 ? node.queries : mergedQueries;
- _this._withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure0(_this, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure1(mergedSources), type$.ModifiableCssMediaRule, type$.Null);
- },
- visitCssStyleRule$1(node) {
- var t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild, _this = this, _null = null,
- _s8_ = "__parent";
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Style_n, node.span));
- else if (_this._inKeyframes && _this._assertInModule$2(_this.__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Style_k, node.span));
- t1 = _this._atRootExcludingStyleRule;
- styleRule = t1 ? _null : _this._styleRuleIgnoringAtRoot;
- t2 = t1 ? _null : _this._styleRuleIgnoringAtRoot;
- t2 = t2 == null ? _null : t2.fromPlainCss;
- nest = t2 !== true;
- t2 = node._style_rule$_selector._box$_inner;
- if (nest) {
- t2 = t2.value;
- t3 = styleRule == null ? _null : styleRule.originalSelector;
- originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
- } else
- originalSelector = t2.value;
- rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$2(originalSelector, _this._mediaQueries), node.span, node.fromPlainCss, originalSelector);
- oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
- _this._atRootExcludingStyleRule = false;
- t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure() : _null;
- _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure0(_this, rule, node), false, t1, type$.ModifiableCssStyleRule, type$.Null);
- _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1 = _this._assertInModule$2(_this.__parent, _s8_).children._collection$_source;
- t2 = J.getInterceptor$asx(t1);
- _0_1 = t2.get$length(t1);
- if (_0_1 >= 1) {
- lastChild = t2.elementAt$1(t1, _0_1 - 1);
- t1 = styleRule == null;
- } else {
- lastChild = _null;
- t1 = false;
- }
- if (t1)
- lastChild.isGroupEnd = true;
- },
- visitCssStylesheet$1(node) {
- var t1;
- for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
- t1.get$current(t1).accept$1(this);
- },
- visitCssSupportsRule$1(node) {
- var _this = this;
- if (_this._declarationName != null)
- throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
- _this._withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure(_this, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
- },
- _handleReturn$1$2(list, callback) {
- var t1, _i, _0_0;
- for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) {
- _0_0 = callback.call$1(list[_i]);
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- _handleReturn$2(list, callback) {
- return this._handleReturn$1$2(list, callback, type$.dynamic);
- },
- _withEnvironment$1$2(environment, callback) {
- var result,
- oldEnvironment = this._environment;
- this._environment = environment;
- result = callback.call$0();
- this._environment = oldEnvironment;
- return result;
- },
- _withEnvironment$2(environment, callback) {
- return this._withEnvironment$1$2(environment, callback, type$.dynamic);
- },
- _interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
- var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor),
- t1 = trim ? A.trimAscii(result, true) : result;
- return new A.CssValue(t1, interpolation.span, type$.CssValue_String);
- },
- _interpolationToValue$1(interpolation) {
- return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _interpolationToValue$2$warnForColor(interpolation, warnForColor) {
- return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _performInterpolation$2$warnForColor(interpolation, warnForColor) {
- return this._performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor)._0;
- },
- _performInterpolation$1(interpolation) {
- return this._performInterpolation$2$warnForColor(interpolation, false);
- },
- _performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
- var _0_0 = this._performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true),
- map = _0_0._1;
- map.toString;
- return new A._Record_2(_0_0._0, map);
- },
- _performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
- var t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, _this = this, _null = null,
- targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : _null,
- oldInSupportsDeclaration = _this._inSupportsDeclaration;
- _this._inSupportsDeclaration = false;
- for (t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = ""; _i < t2; ++_i, first = false) {
- value = t1[_i];
- if (!first)
- if (!t4)
- targetLocations.push(A.SourceLocation$(t8.length, _null, _null, _null));
- if (typeof value == "string") {
- t8 += value;
- continue;
- }
- t3._as(value);
- result = value.accept$1(_this);
- if (warnForColor && $.$get$namesByColor().containsKey$1(result)) {
- t9 = A._setArrayType([""], t5);
- result0 = A.List_List$from(t9, false, t7);
- result0.fixed$length = Array;
- result0.immutable$list = Array;
- result0 = new A.Interpolation(result0, t6);
- result0.Interpolation$2(t9, t6);
- t9 = $.$get$namesByColor();
- _this._warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_u15, new A.StringExpression(result0, true), value, false).toString$0(0) + "'.", value.get$span(value));
- }
- t8 += _this._evaluate$_serialize$3$quote(result, value, false);
- }
- _this._inSupportsDeclaration = oldInSupportsDeclaration;
- return new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure(interpolation)));
- },
- _evaluate$_serialize$3$quote(value, nodeWithSpan, quote) {
- return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure(value, quote));
- },
- _evaluate$_serialize$2(value, nodeWithSpan) {
- return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _expressionNode$1(expression) {
- var t1;
- if (expression instanceof A.VariableExpression) {
- t1 = this._addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure(this, expression));
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
- var t1, result, _this = this;
- _this._addChild$2$through(node, through);
- t1 = _this._assertInModule$2(_this.__parent, "__parent");
- _this.__parent = node;
- result = _this._environment.scope$1$2$when(callback, scopeWhen, $T);
- _this.__parent = t1;
- return result;
- },
- _withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
- return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _withParent$2$2(node, callback, $S, $T) {
- return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _addChild$2$through(node, through) {
- var _0_0, grandparent, t1,
- $parent = this._assertInModule$2(this.__parent, "__parent");
- if (through != null) {
- for (; through.call$1($parent); $parent = _0_0) {
- _0_0 = $parent._parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
- }
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._parent;
- t1 = grandparent.children;
- if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
- $parent = type$.ModifiableCssParentNode._as(t1.get$last(t1));
- else {
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- }
- $parent.addChild$1(node);
- },
- _addChild$1(node) {
- return this._addChild$2$through(node, null);
- },
- _withStyleRule$1$2(rule, callback) {
- var result,
- oldRule = this._styleRuleIgnoringAtRoot;
- this._styleRuleIgnoringAtRoot = rule;
- result = callback.call$0();
- this._styleRuleIgnoringAtRoot = oldRule;
- return result;
- },
- _withStyleRule$2(rule, callback) {
- return this._withStyleRule$1$2(rule, callback, type$.dynamic);
- },
- _withMediaQueries$1$3(queries, sources, callback) {
- var result, _this = this,
- oldMediaQueries = _this._mediaQueries,
- oldSources = _this._mediaQuerySources;
- _this._mediaQueries = queries;
- _this._mediaQuerySources = sources;
- result = callback.call$0();
- _this._mediaQueries = oldMediaQueries;
- _this._mediaQuerySources = oldSources;
- return result;
- },
- _withMediaQueries$3(queries, sources, callback) {
- return this._withMediaQueries$1$3(queries, sources, callback, type$.dynamic);
- },
- _withStackFrame$1$3(member, nodeWithSpan, callback) {
- var oldMember, result, _this = this,
- t1 = _this._stack;
- t1.push(new A._Record_2(_this._member, nodeWithSpan));
- oldMember = _this._member;
- _this._member = member;
- result = callback.call$0();
- _this._member = oldMember;
- t1.pop();
- return result;
- },
- _withStackFrame$3(member, nodeWithSpan, callback) {
- return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
- },
- _withoutSlash$2(value, nodeForSpan) {
- var t1;
- if (value instanceof A.SassNumber)
- t1 = value.asSlash != null;
- else
- t1 = false;
- if (t1)
- this._warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_oJv);
- return value.withoutSlash$0();
- },
- _stackFrame$2(member, span) {
- return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure(this)));
- },
- _evaluate$_stackTrace$1(span) {
- var t2, t3, _i, t4, nodeWithSpan, _this = this,
- t1 = A._setArrayType([], type$.JSArray_Frame);
- for (t2 = _this._stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- t4 = t2[_i];
- nodeWithSpan = t4._1;
- t1.push(_this._stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
- }
- if (span != null)
- t1.push(_this._stackFrame$2(_this._member, span));
- return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
- },
- _evaluate$_stackTrace$0() {
- return this._evaluate$_stackTrace$1(null);
- },
- _warn$3(message, span, deprecation) {
- var t1, trace, _this = this;
- if (_this._quietDeps)
- if (!_this._inDependency) {
- t1 = _this._currentCallable;
- t1 = t1 == null ? null : t1.inDependency;
- t1 = t1 === true;
- } else
- t1 = true;
- else
- t1 = false;
- if (t1)
- return;
- if (!_this._warningsEmitted.add$1(0, new A._Record_2(message, span)))
- return;
- trace = _this._evaluate$_stackTrace$1(span);
- t1 = _this._evaluate$_logger;
- if (deprecation == null)
- t1.warn$3$span$trace(0, message, span, trace);
- else
- A.WarnForDeprecation_warnForDeprecation(t1, deprecation, message, span, trace);
- },
- _warn$2(message, span) {
- return this._warn$3(message, span, null);
- },
- _evaluate$_exception$2(message, span) {
- var t1, t2;
- if (span == null) {
- t1 = B.JSArray_methods.get$last(this._stack)._1;
- t1 = t1.get$span(t1);
- } else
- t1 = span;
- t2 = this._evaluate$_stackTrace$1(span);
- return new A.SassRuntimeException(t2, B.Set_empty, message, t1);
- },
- _evaluate$_exception$1(message) {
- return this._evaluate$_exception$2(message, null);
- },
- _multiSpanException$3(message, primaryLabel, secondaryLabels) {
- var t1 = B.JSArray_methods.get$last(this._stack)._1;
- return A.MultiSpanSassRuntimeException$(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._evaluate$_stackTrace$0(), null);
- },
- _addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
- var error, stackTrace, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
- A.throwWithTrace(t1.withTrace$1(this._evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
- } else
- throw exception;
- }
- },
- _addExceptionSpan$2(nodeWithSpan, callback) {
- return this._addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, true, type$.dynamic);
- },
- _addExceptionSpan$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
- return this._addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, type$.dynamic);
- },
- _addExceptionTrace$1$1(callback) {
- var error, stackTrace, t1, exception, t2;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassRuntimeException._is(t1))
- throw exception;
- else if (t1 instanceof A.SassException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- A.throwWithTrace(error.withTrace$1(this._evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
- } else
- throw exception;
- }
- },
- _addExceptionTrace$1(callback) {
- return this._addExceptionTrace$1$1(callback, type$.dynamic);
- },
- _addErrorSpan$1$2(nodeWithSpan, callback) {
- var error, stackTrace, t1, exception, t2, t3;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassRuntimeException._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
- throw exception;
- t1 = error._span_exception$_message;
- t2 = nodeWithSpan.get$span(nodeWithSpan);
- t3 = this._evaluate$_stackTrace$0();
- A.throwWithTrace(new A.SassRuntimeException(t3, B.Set_empty, t1, t2), error, stackTrace);
- } else
- throw exception;
- }
- },
- _addErrorSpan$2(nodeWithSpan, callback) {
- return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- }
- };
- A._EvaluateVisitor_closure.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._environment;
- t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure0.prototype = {
- call$1($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._environment;
- return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure1.prototype = {
- call$1($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._environment;
- t3 = variable._string$_text;
- t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
- return t2.getFunction$2$namespace(t4, module == null ? null : module._string$_text) != null || t1._builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure2.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._environment;
- t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure3.prototype = {
- call$1($arguments) {
- var t1 = this.$this._environment;
- if (!t1._inMixin)
- throw A.wrapException(A.SassScriptException$(string$.conten, null));
- return t1._content != null ? B.SassBoolean_true : B.SassBoolean_false;
- },
- $signature: 20
- };
- A._EvaluateVisitor_closure4.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
- module = this.$this._environment._environment$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString(t4._0, true), t4._1);
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 33
- };
- A._EvaluateVisitor_closure5.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
- module = this.$this._environment._environment$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs(module.get$functions(module), type$.String, type$.Callable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassFunction(t4._1));
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 33
- };
- A._EvaluateVisitor_closure6.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
- module = this.$this._environment._environment$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs(module.get$mixins(), type$.String, type$.Callable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassMixin(t4._1));
- }
- return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 33
- };
- A._EvaluateVisitor_closure7.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css) {
- if (module != null)
- throw A.wrapException(string$.x24css_a);
- return new A.SassFunction(new A.PlainCssCallable($name._string$_text));
- }
- t1 = this.$this;
- t2 = t1._callableNode;
- t2.toString;
- callable = t1._addExceptionSpan$2(t2, new A._EvaluateVisitor__closure2(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Function not found: " + $name.toString$0(0));
- return new A.SassFunction(callable);
- },
- $signature: 163
- };
- A._EvaluateVisitor__closure2.prototype = {
- call$0() {
- var local,
- normalizedName = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
- t1 = this.module,
- namespace = t1 == null ? null : t1._string$_text;
- t1 = this.$this;
- local = t1._environment.getFunction$2$namespace(normalizedName, namespace);
- if (local != null || namespace != null)
- return local;
- return t1._builtInFunctions.$index(0, normalizedName);
- },
- $signature: 102
- };
- A._EvaluateVisitor_closure8.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._callableNode;
- t2.toString;
- callable = t1._addExceptionSpan$2(t2, new A._EvaluateVisitor__closure1(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Mixin not found: " + $name.toString$0(0));
- return new A.SassMixin(callable);
- },
- $signature: 164
- };
- A._EvaluateVisitor__closure1.prototype = {
- call$0() {
- var t1 = this.$this._environment,
- t2 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
- t3 = this.module;
- return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string$_text);
- },
- $signature: 102
- };
- A._EvaluateVisitor_closure9.prototype = {
- call$1($arguments) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, callable,
- t1 = J.getInterceptor$asx($arguments),
- $function = t1.$index($arguments, 0),
- args = type$.SassArgumentList._as(t1.$index($arguments, 1));
- t1 = this.$this;
- t2 = t1._callableNode;
- t2.toString;
- t3 = A._setArrayType([], type$.JSArray_Expression);
- t4 = type$.String;
- t5 = type$.Expression;
- t6 = t2.get$span(t2);
- t7 = t2.get$span(t2);
- args._wereKeywordsAccessed = true;
- t8 = args._keywords;
- if (t8.get$isEmpty(t8))
- t2 = null;
- else {
- t9 = type$.Value;
- t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
- for (args._wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
- t11 = t8.get$current(t8);
- t10.$indexSet(0, new A.SassString(t11._0, false), t11._1);
- }
- t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
- }
- invocation = new A.ArgumentInvocation(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression(args, t7), t2, t6);
- if ($function instanceof A.SassString) {
- A.warnForDeprecation(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_gkc);
- callableNode = t1._callableNode;
- t2 = $function._string$_text;
- t3 = callableNode.get$span(callableNode);
- return t1.visitFunctionExpression$1(new A.FunctionExpression(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
- }
- callable = $function.assertFunction$1("function").callable;
- if (type$.Callable._is(callable)) {
- t2 = t1._callableNode;
- t2.toString;
- return t1._runFunctionCallable$3(invocation, callable, t2);
- } else
- throw A.wrapException(A.SassScriptException$("The function " + callable.get$name(callable) + string$.x20is_as, null));
- },
- $signature: 6
- };
- A._EvaluateVisitor_closure10.prototype = {
- call$1($arguments) {
- var withMap, t2, values, configuration, t3,
- t1 = J.getInterceptor$asx($arguments),
- url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text);
- t1 = t1.$index($arguments, 1).get$realNull();
- withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents;
- t1 = this.$this;
- t2 = t1._callableNode;
- t2.toString;
- if (withMap != null) {
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
- withMap.forEach$1(0, new A._EvaluateVisitor__closure(values, t2.get$span(t2), t2));
- configuration = new A.ExplicitConfiguration(t2, values, null);
- } else
- configuration = B.Configuration_Map_empty_null;
- t3 = t2.get$span(t2);
- t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure0(t1), t3.get$sourceUrl(t3), configuration, true);
- t1._assertConfigurationIsEmpty$2$nameInError(configuration, true);
- },
- $signature: 184
- };
- A._EvaluateVisitor__closure.prototype = {
- call$2(variable, value) {
- var t1 = variable.assertString$1("with key"),
- $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw A.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode));
- },
- $signature: 90
- };
- A._EvaluateVisitor__closure0.prototype = {
- call$2(module, _) {
- var t1 = this.$this;
- return t1._combineCss$2$clone(module, true).accept$1(t1);
- },
- $signature: 77
- };
- A._EvaluateVisitor_closure11.prototype = {
- call$1($arguments) {
- var callableNode, t2, t3, t4, t5, callable, $content,
- t1 = J.getInterceptor$asx($arguments),
- mixin = t1.$index($arguments, 0),
- args = type$.SassArgumentList._as(t1.$index($arguments, 1));
- t1 = this.$this;
- callableNode = t1._callableNode;
- t2 = callableNode.get$span(callableNode);
- t3 = callableNode.get$span(callableNode);
- t4 = type$.Expression;
- t5 = A.List_List$unmodifiable(B.List_empty9, t4);
- t4 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t4);
- callable = mixin.assertMixin$1("mixin").callable;
- $content = t1._environment._content;
- if (type$.Callable._is(callable))
- t1._applyMixin$5(callable, $content, new A.ArgumentInvocation(t5, t4, new A.ValueExpression(args, t3), null, t2), callableNode, callableNode);
- else
- throw A.wrapException(A.SassScriptException$("The mixin " + callable.get$name(callable) + string$.x20is_as, null));
- },
- $signature: 184
- };
- A._EvaluateVisitor_run_closure.prototype = {
- call$0() {
- var module, _this = this,
- t1 = _this.node,
- t2 = t1.span,
- _0_0 = t2.get$sourceUrl(t2),
- url = null;
- if (_0_0 != null) {
- url = _0_0;
- t2 = _this.$this;
- t2._activeModules.$indexSet(0, url, null);
- t2._loadedUrls.add$1(0, url);
- }
- t2 = _this.$this;
- module = t2._addExceptionTrace$1(new A._EvaluateVisitor_run__closure(t2, _this.importer, t1));
- return new A._Record_2_loadedUrls_stylesheet(t2._loadedUrls, t2._combineCss$1(module));
- },
- $signature: 305
- };
- A._EvaluateVisitor_run__closure.prototype = {
- call$0() {
- return this.$this._execute$2(this.importer, this.node);
- },
- $signature: 298
- };
- A._EvaluateVisitor_runExpression_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.expression;
- return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runExpression__closure(t1, t2));
- },
- $signature: 34
- };
- A._EvaluateVisitor_runExpression__closure.prototype = {
- call$0() {
- var t1 = this.$this;
- return t1._addExceptionTrace$1(new A._EvaluateVisitor_runExpression___closure(t1, this.expression));
- },
- $signature: 34
- };
- A._EvaluateVisitor_runExpression___closure.prototype = {
- call$0() {
- return this.expression.accept$1(this.$this);
- },
- $signature: 34
- };
- A._EvaluateVisitor_runStatement_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.statement;
- return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runStatement__closure(t1, t2));
- },
- $signature: 0
- };
- A._EvaluateVisitor_runStatement__closure.prototype = {
- call$0() {
- var t1 = this.$this;
- return t1._addExceptionTrace$1(new A._EvaluateVisitor_runStatement___closure(t1, this.statement));
- },
- $signature: 0
- };
- A._EvaluateVisitor_runStatement___closure.prototype = {
- call$0() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 0
- };
- A._EvaluateVisitor__loadModule_closure.prototype = {
- call$0() {
- return this.callback.call$2(this._box_1.builtInModule, false);
- },
- $signature: 0
- };
- A._EvaluateVisitor__loadModule_closure0.prototype = {
- call$0() {
- var canonicalUrl, oldInDependency, t4, message, _this = this, t1 = {}, stylesheet = null, importer = null,
- t2 = _this.$this,
- t3 = _this.nodeWithSpan,
- _1_0 = t2._loadStylesheet$3$baseUrl(_this.url.toString$0(0), t3.get$span(t3), _this.baseUrl);
- stylesheet = _1_0._0;
- importer = _1_0._1;
- t4 = stylesheet.span;
- canonicalUrl = t4.get$sourceUrl(t4);
- if (canonicalUrl != null) {
- t4 = t2._activeModules;
- if (t4.containsKey$1(canonicalUrl)) {
- if (_this.namesInErrors) {
- t1 = canonicalUrl;
- t3 = $.$get$context();
- t1.toString;
- message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
- } else
- message = string$.Modulel;
- t1 = A.NullableExtension_andThen(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure(t2, message));
- throw A.wrapException(t1 == null ? t2._evaluate$_exception$1(message) : t1);
- } else
- t4.$indexSet(0, canonicalUrl, t3);
- }
- t4 = t2._modules.containsKey$1(canonicalUrl);
- oldInDependency = t2._inDependency;
- t2._inDependency = _1_0._2;
- t1.module = null;
- try {
- t1.module = t2._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t3);
- } finally {
- t2._activeModules.remove$1(0, canonicalUrl);
- t2._inDependency = oldInDependency;
- }
- t2._addExceptionSpan$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure0(t1, _this.callback, !t4), false);
- },
- $signature: 1
- };
- A._EvaluateVisitor__loadModule__closure.prototype = {
- call$1(previousLoad) {
- return this.$this._multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 91
- };
- A._EvaluateVisitor__loadModule__closure0.prototype = {
- call$0() {
- return this.callback.call$2(this._box_0.module, this.firstLoad);
- },
- $signature: 0
- };
- A._EvaluateVisitor__execute_closure.prototype = {
- call$0() {
- var t3, t4, t5, t6, _this = this,
- t1 = _this.$this,
- oldImporter = t1._importer,
- oldStylesheet = t1.__stylesheet,
- oldRoot = t1.__root,
- oldPreModuleComments = t1._preModuleComments,
- oldParent = t1.__parent,
- oldEndOfImports = t1.__endOfImports,
- oldOutOfOrderImports = t1._outOfOrderImports,
- oldExtensionStore = t1.__extensionStore,
- t2 = t1._atRootExcludingStyleRule,
- oldStyleRule = t2 ? null : t1._styleRuleIgnoringAtRoot,
- oldMediaQueries = t1._mediaQueries,
- oldDeclarationName = t1._declarationName,
- oldInUnknownAtRule = t1._inUnknownAtRule,
- oldInKeyframes = t1._inKeyframes,
- oldConfiguration = t1._configuration;
- t1._importer = _this.importer;
- t3 = t1.__stylesheet = _this.stylesheet;
- t4 = t3.span;
- t5 = t1.__parent = t1.__root = A.ModifiableCssStylesheet$(t4);
- t1.__endOfImports = 0;
- t1._outOfOrderImports = null;
- t1.__extensionStore = _this.extensionStore;
- t1._declarationName = t1._mediaQueries = t1._styleRuleIgnoringAtRoot = null;
- t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false;
- t6 = _this.configuration;
- if (t6 != null)
- t1._configuration = t6;
- t1.visitStylesheet$1(t3);
- t3 = t1._outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4);
- _this.css.__late_helper$_value = t3;
- _this.preModuleComments.__late_helper$_value = t1._preModuleComments;
- t1._importer = oldImporter;
- t1.__stylesheet = oldStylesheet;
- t1.__root = oldRoot;
- t1._preModuleComments = oldPreModuleComments;
- t1.__parent = oldParent;
- t1.__endOfImports = oldEndOfImports;
- t1._outOfOrderImports = oldOutOfOrderImports;
- t1.__extensionStore = oldExtensionStore;
- t1._styleRuleIgnoringAtRoot = oldStyleRule;
- t1._mediaQueries = oldMediaQueries;
- t1._declarationName = oldDeclarationName;
- t1._inUnknownAtRule = oldInUnknownAtRule;
- t1._atRootExcludingStyleRule = t2;
- t1._inKeyframes = oldInKeyframes;
- t1._configuration = oldConfiguration;
- },
- $signature: 1
- };
- A._EvaluateVisitor__combineCss_closure.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 117
- };
- A._EvaluateVisitor__combineCss_closure0.prototype = {
- call$1(target) {
- return !this.selectors.contains$1(0, target);
- },
- $signature: 13
- };
- A._EvaluateVisitor__combineCss_visitModule.prototype = {
- call$1(module) {
- var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
- if (!_this.seen.add$1(0, module))
- return;
- if (_this.clone)
- module = module.cloneCss$0();
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss()) {
- _1_0 = module.get$preModuleComments().$index(0, upstream);
- if (_1_0 != null)
- B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
- _this.call$1(upstream);
- }
- }
- _this.sorted.addFirst$1(module);
- t1 = module.get$css(module);
- statements = t1.get$children(t1);
- index = _this.$this._indexAfterImports$1(statements);
- t1 = J.getInterceptor$ax(statements);
- B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
- B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
- },
- $signature: 292
- };
- A._EvaluateVisitor__extendModules_closure.prototype = {
- call$1(target) {
- return !this.originalSelectors.contains$1(0, target);
- },
- $signature: 13
- };
- A._EvaluateVisitor__extendModules_closure0.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_ExtensionStore);
- },
- $signature: 167
- };
- A._EvaluateVisitor_visitAtRootRule_closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitAtRootRule_closure0.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- A._EvaluateVisitor__scopeForAtRoot_closure.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- t2 = t1._assertInModule$2(t1.__parent, "__parent");
- t1.__parent = this.newParent;
- t1._environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
- t1.__parent = t2;
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot_closure0.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule;
- t1._atRootExcludingStyleRule = true;
- this.innerScope.call$1(callback);
- t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot_closure1.prototype = {
- call$1(callback) {
- return this.$this._withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback));
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot__closure.prototype = {
- call$0() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 1
- };
- A._EvaluateVisitor__scopeForAtRoot_closure2.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- wasInKeyframes = t1._inKeyframes;
- t1._inKeyframes = false;
- this.innerScope.call$1(callback);
- t1._inKeyframes = wasInKeyframes;
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot_closure3.prototype = {
- call$1($parent) {
- return $parent instanceof A.ModifiableCssAtRule;
- },
- $signature: 169
- };
- A._EvaluateVisitor__scopeForAtRoot_closure4.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- wasInUnknownAtRule = t1._inUnknownAtRule;
- t1._inUnknownAtRule = false;
- this.innerScope.call$1(callback);
- t1._inUnknownAtRule = wasInUnknownAtRule;
- },
- $signature: 32
- };
- A._EvaluateVisitor_visitContentRule_closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- return null;
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitDeclaration_closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this._box_0.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitEachRule_closure.prototype = {
- call$1(value) {
- var t1 = this.$this,
- t2 = this.nodeWithSpan;
- return t1._environment.setLocalVariable$3(this._box_0.variable, t1._withoutSlash$2(value, t2), t2);
- },
- $signature: 54
- };
- A._EvaluateVisitor_visitEachRule_closure0.prototype = {
- call$1(value) {
- return this.$this._setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
- },
- $signature: 54
- };
- A._EvaluateVisitor_visitEachRule_closure1.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- return t1._handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node));
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitEachRule__closure.prototype = {
- call$1(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure(t1));
- },
- $signature: 291
- };
- A._EvaluateVisitor_visitEachRule___closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 78
- };
- A._EvaluateVisitor_visitAtRule_closure.prototype = {
- call$1(value) {
- return this.$this._interpolationToValue$3$trim$warnForColor(value, true, true);
- },
- $signature: 286
- };
- A._EvaluateVisitor_visitAtRule_closure0.prototype = {
- call$0() {
- var t2, t3, _i, _this = this,
- t1 = _this.$this,
- styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
- if (styleRule == null || t1._inKeyframes || J.$eq$(_this.name.value, "font-face"))
- for (t2 = _this.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure(t1, _this.children), false, type$.ModifiableCssStyleRule, type$.Null);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitAtRule__closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitAtRule_closure1.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitForRule_closure.prototype = {
- call$0() {
- return this.node.from.accept$1(this.$this).assertNumber$0();
- },
- $signature: 186
- };
- A._EvaluateVisitor_visitForRule_closure0.prototype = {
- call$0() {
- return this.node.to.accept$1(this.$this).assertNumber$0();
- },
- $signature: 186
- };
- A._EvaluateVisitor_visitForRule_closure1.prototype = {
- call$0() {
- return this.fromNumber.assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure2.prototype = {
- call$0() {
- var t1 = this.fromNumber;
- return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure3.prototype = {
- call$0() {
- var i, t3, t4, t5, t6, t7, t8, _0_0, _this = this,
- t1 = _this.$this,
- t2 = _this.node,
- nodeWithSpan = t1._expressionNode$1(t2.from);
- for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t6 = _this.fromNumber, t2 = t2.children; i !== t3.to; i += t4) {
- t7 = t1._environment;
- t8 = t6.get$numeratorUnits(t6);
- t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
- _0_0 = t1._handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure(t1));
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitForRule__closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 78
- };
- A._EvaluateVisitor_visitForwardRule_closure.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._registerCommentsForModule$1(module);
- this.$this._environment.forwardModule$2(module, this.node);
- },
- $signature: 77
- };
- A._EvaluateVisitor_visitForwardRule_closure0.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._registerCommentsForModule$1(module);
- this.$this._environment.forwardModule$2(module, this.node);
- },
- $signature: 77
- };
- A._EvaluateVisitor__registerCommentsForModule_closure.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_CssComment);
- },
- $signature: 173
- };
- A._EvaluateVisitor_visitIfRule_closure.prototype = {
- call$1(clause) {
- var t1 = this.$this;
- return t1._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure(t1, clause), true, clause.hasDeclarations, type$.nullable_Value);
- },
- $signature: 270
- };
- A._EvaluateVisitor_visitIfRule__closure.prototype = {
- call$0() {
- var t1 = this.$this;
- return t1._handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure(t1));
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitIfRule___closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 78
- };
- A._EvaluateVisitor__visitDynamicImport_closure.prototype = {
- call$0() {
- var t1, t2, _0_0, stylesheet, importer, isDependency, t3, url, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0 = {};
- _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
- t1 = this.$this;
- t2 = this.$import;
- _0_0 = t1._loadStylesheet$3$forImport(t2.urlString, t2.span, true);
- stylesheet = _box_0.stylesheet = _0_0._0;
- importer = _0_0._1;
- _box_0.importer = importer;
- isDependency = _0_0._2;
- _box_0.isDependency = isDependency;
- t3 = stylesheet.span;
- url = t3.get$sourceUrl(t3);
- if (url != null) {
- t3 = t1._activeModules;
- if (t3.containsKey$1(url)) {
- t2 = A.NullableExtension_andThen(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure(t1));
- throw A.wrapException(t2 == null ? t1._evaluate$_exception$1("This file is already being loaded.") : t2);
- }
- t3.$indexSet(0, url, t2);
- }
- t2 = stylesheet._uses;
- t3 = type$.UnmodifiableListView_UseRule;
- if (new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule).get$length(0) === 0) {
- oldImporter = t1._importer;
- t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet");
- oldInDependency = t1._inDependency;
- t1._importer = importer;
- t1.__stylesheet = stylesheet;
- t1._inDependency = isDependency;
- t1.visitStylesheet$1(stylesheet);
- t1._importer = oldImporter;
- t1.__stylesheet = t2;
- t1._inDependency = oldInDependency;
- t1._activeModules.remove$1(0, url);
- return;
- }
- t2 = new A.UnmodifiableListView(t2, t3);
- if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure0())) {
- t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
- loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure1());
- } else
- loadsUserDefinedModules = true;
- children = A._Cell$();
- t2 = t1._environment;
- t3 = type$.String;
- t4 = type$.Module_Callable;
- t5 = type$.AstNode;
- t6 = A._setArrayType([], type$.JSArray_Module_Callable);
- t7 = t2._variables;
- t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
- t8 = t2._variableNodes;
- t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
- t9 = t2._functions;
- t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
- t10 = t2._mixins;
- t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
- environment = A.Environment$_(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._importedModules, null, null, t6, t7, t8, t9, t10, t2._content);
- t1._withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure2(_box_0, t1, loadsUserDefinedModules, environment, children));
- module = environment.toDummyModule$0();
- t1._environment.importForwards$1(module);
- if (loadsUserDefinedModules) {
- if (module.transitivelyContainsCss)
- t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
- visitor = new A._ImportedCssVisitor(t1);
- for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
- t2.get$current(t2).accept$1(visitor);
- }
- t1._activeModules.remove$1(0, url);
- },
- $signature: 0
- };
- A._EvaluateVisitor__visitDynamicImport__closure.prototype = {
- call$1(previousLoad) {
- return this.$this._multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 91
- };
- A._EvaluateVisitor__visitDynamicImport__closure0.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 174
- };
- A._EvaluateVisitor__visitDynamicImport__closure1.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 175
- };
- A._EvaluateVisitor__visitDynamicImport__closure2.prototype = {
- call$0() {
- var t7, t8, _this = this,
- t1 = _this.$this,
- oldImporter = t1._importer,
- t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet"),
- t3 = t1._assertInModule$2(t1.__root, "_root"),
- t4 = t1._assertInModule$2(t1.__parent, "__parent"),
- t5 = t1._assertInModule$2(t1.__endOfImports, "_endOfImports"),
- oldOutOfOrderImports = t1._outOfOrderImports,
- oldConfiguration = t1._configuration,
- oldInDependency = t1._inDependency,
- t6 = _this._box_0;
- t1._importer = t6.importer;
- t7 = t6.stylesheet;
- t1.__stylesheet = t7;
- t8 = _this.loadsUserDefinedModules;
- if (t8) {
- t7 = A.ModifiableCssStylesheet$(t7.span);
- t1.__root = t7;
- t1.__parent = t1._assertInModule$2(t7, "_root");
- t1.__endOfImports = 0;
- t1._outOfOrderImports = null;
- }
- t1._inDependency = t6.isDependency;
- t7 = new A.UnmodifiableListView(t6.stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
- if (!t7.get$isEmpty(t7))
- t1._configuration = _this.environment.toImplicitConfiguration$0();
- t1.visitStylesheet$1(t6.stylesheet);
- t6 = t8 ? t1._addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode);
- _this.children.__late_helper$_value = t6;
- t1._importer = oldImporter;
- t1.__stylesheet = t2;
- if (t8) {
- t1.__root = t3;
- t1.__parent = t4;
- t1.__endOfImports = t5;
- t1._outOfOrderImports = oldOutOfOrderImports;
- }
- t1._configuration = oldConfiguration;
- t1._inDependency = oldInDependency;
- },
- $signature: 1
- };
- A._EvaluateVisitor__applyMixin_closure.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- t1._environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure0(t1, _this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent));
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin__closure0.prototype = {
- call$0() {
- var _this = this;
- _this.$this._runBuiltInCallable$3(_this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent);
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin_closure0.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- t1._environment.withContent$2(_this.contentCallable, new A._EvaluateVisitor__applyMixin__closure(t1, _this.mixin, _this.nodeWithSpanWithoutContent));
- },
- $signature: 1
- };
- A._EvaluateVisitor__applyMixin__closure.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure(t1, this.mixin, this.nodeWithSpanWithoutContent));
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin___closure.prototype = {
- call$0() {
- var t1, t2, t3, t4, _i;
- for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpanWithoutContent, _i = 0; _i < t2; ++_i)
- t3._addErrorSpan$2(t4, new A._EvaluateVisitor__applyMixin____closure(t3, t1[_i]));
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin____closure.prototype = {
- call$0() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitIncludeRule_closure.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 102
- };
- A._EvaluateVisitor_visitIncludeRule_closure0.prototype = {
- call$1($content) {
- var t1 = this.$this;
- return new A.UserDefinedCallable($content, t1._environment.closure$0(), t1._inDependency, type$.UserDefinedCallable_Environment);
- },
- $signature: 269
- };
- A._EvaluateVisitor_visitIncludeRule_closure1.prototype = {
- call$0() {
- return this.node.get$spanWithoutContent();
- },
- $signature: 27
- };
- A._EvaluateVisitor_visitMediaRule_closure.prototype = {
- call$1(mediaQueries) {
- return this.$this._mergeMediaQueries$2(mediaQueries, this.queries);
- },
- $signature: 89
- };
- A._EvaluateVisitor_visitMediaRule_closure0.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.queries;
- t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure(t1, _this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitMediaRule__closure.prototype = {
- call$0() {
- var t2, t3, _i,
- t1 = this.$this,
- _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitMediaRule___closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitMediaRule_closure1.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitStyleRule_closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitStyleRule_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitStyleRule_closure2.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure(t1, this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitStyleRule__closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitStyleRule_closure1.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor__warnForBogusCombinators_closure.prototype = {
- call$1(child) {
- return child instanceof A.ModifiableCssComment;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitSupportsRule_closure.prototype = {
- call$0() {
- var t2, t3, _i,
- t1 = this.$this,
- _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitSupportsRule__closure.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitSupportsRule_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor__visitSupportsCondition_closure.prototype = {
- call$0() {
- var t4,
- t1 = this.$this,
- t2 = this._box_0,
- t3 = t2.declaration.name;
- t3 = t1._evaluate$_serialize$3$quote(t3.accept$1(t1), t3, true);
- t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
- t2 = t2.declaration.value;
- return "(" + t3 + ":" + t4 + t1._evaluate$_serialize$3$quote(t2.accept$1(t1), t2, true) + ")";
- },
- $signature: 26
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure.prototype = {
- call$0() {
- var t1 = this.$this._environment,
- t2 = this._box_0.override;
- t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.node;
- t1._environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitUseRule_closure.prototype = {
- call$2(module, firstLoad) {
- var t1, t2, t3, _0_0, t4, t5, span;
- if (firstLoad)
- this.$this._registerCommentsForModule$1(module);
- t1 = this.$this._environment;
- t2 = this.node;
- t3 = t2.namespace;
- if (t3 == null) {
- t1._globalModules.$indexSet(0, module, t2);
- t1._allModules.push(module);
- _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._variables)), module.get$variables().get$containsKey());
- if (_0_0 != null)
- A.throwExpression(A.SassScriptException$(string$.This_ma + _0_0 + '".', null));
- } else {
- t4 = t1._environment$_modules;
- if (t4.containsKey$1(t3)) {
- t5 = t1._namespaceNodes.$index(0, t3);
- span = t5 == null ? null : t5.span;
- t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (span != null)
- t5.$indexSet(0, span, "original @use");
- A.throwExpression(A.MultiSpanSassScriptException$(string$.There_ + t3 + '".', "new @use", t5));
- }
- t4.$indexSet(0, t3, module);
- t1._namespaceNodes.$indexSet(0, t3, t2);
- t1._allModules.push(module);
- }
- },
- $signature: 77
- };
- A._EvaluateVisitor_visitWarnRule_closure.prototype = {
- call$0() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 34
- };
- A._EvaluateVisitor_visitWhileRule_closure.prototype = {
- call$0() {
- var t1, t2, t3, _0_0;
- for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
- _0_0 = t3._handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure(t3));
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitWhileRule__closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 78
- };
- A._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = {
- call$0() {
- var t1 = this.node,
- t2 = this.$this,
- left = t1.left.accept$1(t2);
- switch (t1.operator) {
- case B.BinaryOperator_wdM:
- t1 = t1.right.accept$1(t2);
- t1 = new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(t1, false, true), false);
- break;
- case B.BinaryOperator_qNM:
- t1 = left.get$isTruthy() ? left : t1.right.accept$1(t2);
- break;
- case B.BinaryOperator_eDt:
- t1 = left.get$isTruthy() ? t1.right.accept$1(t2) : left;
- break;
- case B.BinaryOperator_g8k:
- t1 = left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
- break;
- case B.BinaryOperator_icU:
- t1 = !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
- break;
- case B.BinaryOperator_bEa:
- t1 = left.greaterThan$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_oEm:
- t1 = left.greaterThanOrEquals$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_miq:
- t1 = left.lessThan$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_SPQ:
- t1 = left.lessThanOrEquals$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_u15:
- t1 = left.plus$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_SjO:
- t1 = left.minus$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_2No:
- t1 = left.times$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_U77:
- t1 = t2._slash$3(left, t1.right.accept$1(t2), t1);
- break;
- case B.BinaryOperator_KNx:
- t1 = left.modulo$1(t1.right.accept$1(t2));
- break;
- default:
- t1 = null;
- }
- return t1;
- },
- $signature: 34
- };
- A._EvaluateVisitor__slash_recommendation.prototype = {
- call$1(expression) {
- var t1;
- $label0$0: {
- if (expression instanceof A.BinaryOperationExpression && B.BinaryOperator_U77 === expression.operator) {
- t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
- break $label0$0;
- }
- if (expression instanceof A.ParenthesizedExpression) {
- t1 = expression.expression.toString$0(0);
- break $label0$0;
- }
- t1 = expression.toString$0(0);
- break $label0$0;
- }
- return t1;
- },
- $signature: 111
- };
- A._EvaluateVisitor_visitVariableExpression_closure.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 40
- };
- A._EvaluateVisitor_visitUnaryOperationExpression_closure.prototype = {
- call$0() {
- var t1, _this = this;
- switch (_this.node.operator) {
- case B.UnaryOperator_cLp:
- t1 = _this.operand.unaryPlus$0();
- break;
- case B.UnaryOperator_AiQ:
- t1 = _this.operand.unaryMinus$0();
- break;
- case B.UnaryOperator_SJr:
- t1 = new A.SassString("/" + A.serializeValue(_this.operand, false, true), false);
- break;
- case B.UnaryOperator_not_not_not:
- t1 = _this.operand.unaryNot$0();
- break;
- default:
- t1 = null;
- }
- return t1;
- },
- $signature: 34
- };
- A._EvaluateVisitor_visitListExpression_closure.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 265
- };
- A._EvaluateVisitor_visitFunctionExpression_closure.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._environment.getFunction$2$namespace(t1.name, t1.namespace);
- },
- $signature: 102
- };
- A._EvaluateVisitor_visitFunctionExpression_closure0.prototype = {
- call$1(argument) {
- return argument.accept$1(new A._IsCalculationSafeVisitor());
- },
- $signature: 113
- };
- A._EvaluateVisitor_visitFunctionExpression_closure1.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 34
- };
- A._EvaluateVisitor__checkCalculationArguments_check.prototype = {
- call$1(maxArgs) {
- var t1 = this.node,
- t2 = t1.$arguments.positional.length;
- if (t2 === 0)
- throw A.wrapException(this.$this._evaluate$_exception$2("Missing argument.", t1.span));
- else if (maxArgs != null && t2 > maxArgs)
- throw A.wrapException(this.$this._evaluate$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize("was", t2, "were") + " passed.", t1.span));
- },
- call$0() {
- return this.call$1(null);
- },
- $signature: 96
- };
- A._EvaluateVisitor__visitCalculationExpression_closure.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this._box_0,
- t3 = _this.inLegacySassFunction;
- return A.SassCalculation_operateInternal(t1._binaryOperatorToCalculationOperator$2(t2.operator, _this.node), t1._visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), t1._visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), t3, !t1._inSupportsDeclaration);
- },
- $signature: 79
- };
- A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._runFunctionCallable$3(t1.$arguments, this.$function, t1);
- },
- $signature: 34
- };
- A._EvaluateVisitor__runUserDefinedCallable_closure.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable;
- return t1._withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V));
- },
- $signature() {
- return this.V._eval$1("0()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable__closure.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.V;
- return t1._environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
- },
- $signature() {
- return this.V._eval$1("0()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable___closure.prototype = {
- call$0() {
- var declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, _this = this,
- t1 = _this.$this,
- t2 = _this.evaluated._values,
- t3 = _this.callable.declaration.$arguments,
- t4 = _this.nodeWithSpan;
- t1._verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4);
- declaredArguments = t3.$arguments;
- t5 = declaredArguments.length;
- minLength = Math.min(J.get$length$asx(t2[2]), t5);
- for (i = 0; i < minLength; ++i)
- t1._environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i));
- for (i = J.get$length$asx(t2[2]); i < t5; ++i) {
- argument = declaredArguments[i];
- t6 = t2[0];
- t7 = argument.name;
- value = J.remove$1$z(t6, t7);
- if (value == null) {
- t6 = argument.defaultValue;
- value = t1._withoutSlash$2(t6.accept$1(t1), t1._expressionNode$1(t6));
- }
- t6 = t1._environment;
- t8 = J.$index$asx(t2[1], t7);
- if (t8 == null) {
- t8 = argument.defaultValue;
- t8.toString;
- t8 = t1._expressionNode$1(t8);
- }
- t6.setLocalVariable$3(t7, value, t8);
- }
- restArgument = t3.restArgument;
- if (restArgument != null) {
- rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty8;
- t5 = t2[0];
- t6 = t2[4];
- argumentList = A.SassArgumentList$(rest, t5, t6 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : t6);
- t1._environment.setLocalVariable$3(restArgument, argumentList, t4);
- } else
- argumentList = null;
- result = _this.run.call$0();
- if (argumentList == null)
- return result;
- t5 = t2[0].__js_helper$_length;
- if (t5 === 0)
- return result;
- if (argumentList._wereKeywordsAccessed)
- return result;
- argumentWord = A.pluralize("argument", t5, null);
- t2 = t2[0];
- t5 = A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>");
- throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + A.toSentence(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t2, t5), new A._EvaluateVisitor__runUserDefinedCallable____closure(), t5._eval$1("Iterable.E"), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate$_stackTrace$1(t4.get$span(t4)), null));
- },
- $signature() {
- return this.V._eval$1("0()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable____closure.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__runFunctionCallable_closure.prototype = {
- call$0() {
- var t1, t2, t3, t4, _i, $returnValue;
- for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
- $returnValue = t2[_i].accept$1(t4);
- if ($returnValue instanceof A.Value)
- return $returnValue;
- }
- throw A.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span));
- },
- $signature: 34
- };
- A._EvaluateVisitor__runBuiltInCallable_closure.prototype = {
- call$0() {
- return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet);
- },
- $signature: 0
- };
- A._EvaluateVisitor__runBuiltInCallable_closure0.prototype = {
- call$0() {
- return this._box_0.callback.call$1(this.evaluated._values[2]);
- },
- $signature: 34
- };
- A._EvaluateVisitor__runBuiltInCallable_closure1.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__evaluateArguments_closure.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 39
- };
- A._EvaluateVisitor__evaluateArguments_closure0.prototype = {
- call$1(value) {
- return this.$this._withoutSlash$2(value, this.restNodeForSpan);
- },
- $signature: 39
- };
- A._EvaluateVisitor__evaluateArguments_closure1.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restNodeForSpan;
- _this.named.$indexSet(0, key, _this.$this._withoutSlash$2(value, t1));
- _this.namedNodes.$indexSet(0, key, t1);
- },
- $signature: 98
- };
- A._EvaluateVisitor__evaluateArguments_closure2.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 39
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression(value, t1.get$span(t1));
- },
- $signature: 58
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression(this.$this._withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
- },
- $signature: 58
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restArgs;
- _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
- },
- $signature: 98
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = {
- call$1(value) {
- var t1 = this.keywordRestArgs;
- return new A.ValueExpression(this.$this._withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
- },
- $signature: 58
- };
- A._EvaluateVisitor__addRestMap_closure.prototype = {
- call$2(key, value) {
- var t2, _this = this,
- t1 = _this.$this;
- if (key instanceof A.SassString)
- _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._withoutSlash$2(value, _this.expressionNode)));
- else {
- t2 = _this.nodeWithSpan;
- throw A.wrapException(t1._evaluate$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
- }
- },
- $signature: 90
- };
- A._EvaluateVisitor__verifyArguments_closure.prototype = {
- call$0() {
- return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 0
- };
- A._EvaluateVisitor_visitCssAtRule_closure.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssAtRule_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssMediaRule_closure.prototype = {
- call$1(mediaQueries) {
- return this.$this._mergeMediaQueries$2(mediaQueries, this.node.queries);
- },
- $signature: 89
- };
- A._EvaluateVisitor_visitCssMediaRule_closure0.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.node.queries;
- t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssMediaRule__closure.prototype = {
- call$0() {
- var t2, t3, t4,
- t1 = this.$this,
- _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
- t4 = t2.__internal$_current;
- (t4 == null ? t3._as(t4) : t4).accept$1(t1);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssMediaRule___closure.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssMediaRule_closure1.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssStyleRule_closure0.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssStyleRule__closure.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssStyleRule_closure.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure.prototype = {
- call$0() {
- var t2, t3, t4,
- t1 = this.$this,
- _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
- t4 = t2.__internal$_current;
- (t4 == null ? t3._as(t4) : t4).accept$1(t1);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssSupportsRule__closure.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluateVisitor__performInterpolationHelper_closure.prototype = {
- call$1(targetLocations) {
- return A.InterpolationMap$(this.interpolation, targetLocations);
- },
- $signature: 181
- };
- A._EvaluateVisitor__serialize_closure.prototype = {
- call$0() {
- return A.serializeValue(this.value, false, this.quote);
- },
- $signature: 26
- };
- A._EvaluateVisitor__expressionNode_closure.prototype = {
- call$0() {
- var t1 = this.expression;
- return this.$this._environment.getVariableNode$2$namespace(t1.name, t1.namespace);
- },
- $signature: 182
- };
- A._EvaluateVisitor__withoutSlash_recommendation.prototype = {
- call$1(number) {
- var t1, before, after,
- _1_0 = number.asSlash;
- $label0$0: {
- if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
- t1 = type$.SassNumber;
- before = t1._as(_1_0._0);
- after = t1._as(_1_0._1);
- t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
- break $label0$0;
- }
- t1 = A.serializeValue(number, true, true);
- break $label0$0;
- }
- return t1;
- },
- $signature: 183
- };
- A._EvaluateVisitor__stackFrame_closure.prototype = {
- call$1(url) {
- var t1 = this.$this._evaluate$_importCache;
- t1 = t1 == null ? null : t1.humanize$1(url);
- return t1 == null ? url : t1;
- },
- $signature: 43
- };
- A._ImportedCssVisitor.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure();
- this._visitor._addChild$2$through(node, t1);
- },
- visitCssComment$1(node) {
- return this._visitor._addChild$1(node);
- },
- visitCssDeclaration$1(node) {
- },
- visitCssImport$1(node) {
- var t2,
- _s13_ = "_endOfImports",
- t1 = this._visitor;
- if (t1._assertInModule$2(t1.__parent, "__parent") !== t1._assertInModule$2(t1.__root, "_root"))
- t1._addChild$1(node);
- else if (t1._assertInModule$2(t1.__endOfImports, _s13_) === J.get$length$asx(t1._assertInModule$2(t1.__root, "_root").children._collection$_source)) {
- t1._addChild$1(node);
- t1.__endOfImports = t1._assertInModule$2(t1.__endOfImports, _s13_) + 1;
- } else {
- t2 = t1._outOfOrderImports;
- (t2 == null ? t1._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1(node) {
- },
- visitCssMediaRule$1(node) {
- var t1 = this._visitor,
- mediaQueries = t1._mediaQueries;
- t1._addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure(mediaQueries == null || t1._mergeMediaQueries$2(mediaQueries, node.queries) != null));
- },
- visitCssStyleRule$1(node) {
- return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure());
- },
- visitCssStylesheet$1(node) {
- var t1, t2, t3;
- for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- (t3 == null ? t2._as(t3) : t3).accept$1(this);
- }
- },
- visitCssSupportsRule$1(node) {
- return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure());
- }
- };
- A._ImportedCssVisitor_visitCssAtRule_closure.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._ImportedCssVisitor_visitCssMediaRule_closure.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule))
- t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule;
- else
- t1 = true;
- return t1;
- },
- $signature: 7
- };
- A._ImportedCssVisitor_visitCssStyleRule_closure.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule;
- },
- $signature: 7
- };
- A._EvaluationContext.prototype = {
- get$currentCallableSpan() {
- var _0_0 = this._visitor._callableNode;
- if (_0_0 != null)
- return _0_0.get$span(_0_0);
- throw A.wrapException(A.StateError$(string$.No_Sasc));
- },
- warn$2(_, message, deprecation) {
- var t1 = this._visitor,
- t2 = t1._importSpan;
- if (t2 == null) {
- t2 = t1._callableNode;
- t2 = t2 == null ? null : t2.get$span(t2);
- }
- if (t2 == null) {
- t2 = this._defaultWarnNodeWithSpan;
- t2 = t2.get$span(t2);
- }
- t1._warn$3(message, t2, deprecation);
- },
- $isEvaluationContext: 1
- };
- A.EveryCssVisitor.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure(this));
- },
- visitCssComment$1(node) {
- return false;
- },
- visitCssDeclaration$1(node) {
- return false;
- },
- visitCssImport$1(node) {
- return false;
- },
- visitCssKeyframeBlock$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure(this));
- },
- visitCssMediaRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure(this));
- },
- visitCssStyleRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure(this));
- },
- visitCssStylesheet$1(node) {
- return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure(this));
- },
- visitCssSupportsRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure(this));
- }
- };
- A.EveryCssVisitor_visitCssAtRule_closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 7
- };
- A.EveryCssVisitor_visitCssKeyframeBlock_closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 7
- };
- A.EveryCssVisitor_visitCssMediaRule_closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 7
- };
- A.EveryCssVisitor_visitCssStyleRule_closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 7
- };
- A.EveryCssVisitor_visitCssStylesheet_closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 7
- };
- A.EveryCssVisitor_visitCssSupportsRule_closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 7
- };
- A._MakeExpressionCalculationSafe.prototype = {
- visitBinaryOperationExpression$1(node) {
- var t1, t2, t3, t4;
- if (node.operator === B.BinaryOperator_KNx) {
- t1 = A._setArrayType([node], type$.JSArray_Expression);
- t2 = node.get$span(0);
- t3 = type$.Expression;
- t1 = A.List_List$unmodifiable(t1, t3);
- t3 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3);
- t4 = node.get$span(0);
- t1 = new A.FunctionExpression("math", A.stringReplaceAllUnchecked("max", "_", "-"), "max", new A.ArgumentInvocation(t1, t3, null, null, t2), t4);
- } else
- t1 = this.super$ReplaceExpressionVisitor$visitBinaryOperationExpression(node);
- return t1;
- },
- visitInterpolatedFunctionExpression$1(node) {
- return node;
- },
- visitUnaryOperationExpression$1(node) {
- var t1,
- _0_0 = node.operator;
- $label0$0: {
- if (B.UnaryOperator_cLp === _0_0) {
- t1 = node.operand;
- break $label0$0;
- }
- if (B.UnaryOperator_AiQ === _0_0) {
- t1 = new A.BinaryOperationExpression(B.BinaryOperator_2No, new A.NumberExpression(-1, null, node.span), node.operand, false);
- break $label0$0;
- }
- t1 = this.super$ReplaceExpressionVisitor$visitUnaryOperationExpression(node);
- break $label0$0;
- }
- return t1;
- }
- };
- A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor.prototype = {};
- A._FindDependenciesVisitor.prototype = {
- visitEachRule$1(node) {
- },
- visitForRule$1(node) {
- },
- visitIfRule$1(node) {
- },
- visitWhileRule$1(node) {
- },
- visitUseRule$1(node) {
- var t1 = node.url;
- if (t1.get$scheme() !== "sass")
- this._find_dependencies$_uses.add$1(0, t1);
- else if (t1.toString$0(0) === "sass:meta")
- this._metaNamespaces.add$1(0, node.namespace);
- },
- visitForwardRule$1(node) {
- var t1 = node.url;
- if (t1.get$scheme() !== "sass")
- this._find_dependencies$_forwards.add$1(0, t1);
- },
- visitImportRule$1(node) {
- var t1, t2, t3, _i, $import;
- for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) {
- $import = t1[_i];
- if ($import instanceof A.DynamicImport)
- t3.add$1(0, A.Uri_parse($import.urlString));
- }
- },
- visitIncludeRule$1(node) {
- var url, _0_0, _0_4_isSet, _0_4, t1, _0_7_isSet, _0_7, url0, exception, _null = null;
- if (node.name !== "load-css")
- return;
- if (!this._metaNamespaces.contains$1(0, node.namespace))
- return;
- _0_0 = node.$arguments.positional;
- url = null;
- _0_4_isSet = _0_0.length === 1;
- if (_0_4_isSet) {
- _0_4 = _0_0[0];
- t1 = _0_4;
- _0_7_isSet = t1 instanceof A.StringExpression;
- if (_0_7_isSet) {
- type$.StringExpression._as(_0_4);
- _0_7 = _0_4.text.get$asPlain();
- t1 = _0_7;
- t1 = t1 != null;
- } else {
- _0_7 = _null;
- t1 = false;
- }
- } else {
- _0_7 = _null;
- _0_4 = _0_7;
- _0_7_isSet = false;
- t1 = false;
- }
- if (t1) {
- if (_0_7_isSet)
- url0 = _0_7;
- else {
- t1 = _0_4_isSet ? _0_4 : _0_0[0];
- _0_7 = type$.StringExpression._as(t1).text.get$asPlain();
- url0 = _0_7;
- }
- url = url0 == null ? A._asString(url0) : url0;
- try {
- this._metaLoadCss.add$1(0, A.Uri_parse(url));
- } catch (exception) {
- if (!type$.FormatException._is(A.unwrapException(exception)))
- throw exception;
- }
- }
- }
- };
- A.DependencyReport.prototype = {};
- A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor.prototype = {};
- A.RecursiveStatementVisitor.prototype = {
- visitAtRootRule$1(node) {
- this.visitChildren$1(node.children);
- },
- visitAtRule$1(node) {
- return A.NullableExtension_andThen(node.children, this.get$visitChildren());
- },
- visitContentBlock$1(node) {
- return null;
- },
- visitContentRule$1(node) {
- },
- visitDebugRule$1(node) {
- },
- visitDeclaration$1(node) {
- return A.NullableExtension_andThen(node.children, this.get$visitChildren());
- },
- visitEachRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitErrorRule$1(node) {
- },
- visitExtendRule$1(node) {
- },
- visitForRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitForwardRule$1(node) {
- },
- visitFunctionRule$1(node) {
- return null;
- },
- visitIfRule$1(node) {
- var t1, t2, _i, t3, t4, _i0, _0_0;
- for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i)
- for (t3 = t1[_i].children, t4 = t3.length, _i0 = 0; _i0 < t4; ++_i0)
- t3[_i0].accept$1(this);
- _0_0 = node.lastClause;
- if (_0_0 != null)
- for (t1 = _0_0.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(this);
- },
- visitImportRule$1(node) {
- },
- visitIncludeRule$1(node) {
- return A.NullableExtension_andThen(node.content, this.get$visitContentBlock());
- },
- visitLoudComment$1(node) {
- },
- visitMediaRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitMixinRule$1(node) {
- return null;
- },
- visitReturnRule$1(node) {
- },
- visitSilentComment$1(node) {
- },
- visitStyleRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitStylesheet$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitSupportsRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitUseRule$1(node) {
- },
- visitVariableDeclaration$1(node) {
- },
- visitWarnRule$1(node) {
- },
- visitWhileRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitChildren$1(children) {
- var t1;
- for (t1 = J.get$iterator$ax(children); t1.moveNext$0();)
- t1.get$current(t1).accept$1(this);
- }
- };
- A.ReplaceExpressionVisitor.prototype = {
- visitBinaryOperationExpression$1(node) {
- return new A.BinaryOperationExpression(node.operator, node.left.accept$1(this), node.right.accept$1(this), false);
- },
- visitBooleanExpression$1(node) {
- return node;
- },
- visitColorExpression$1(node) {
- return node;
- },
- visitFunctionExpression$1(node) {
- var t1 = node.originalName,
- t2 = this.visitArgumentInvocation$1(node.$arguments);
- return new A.FunctionExpression(node.namespace, A.stringReplaceAllUnchecked(t1, "_", "-"), t1, t2, node.span);
- },
- visitInterpolatedFunctionExpression$1(node) {
- return new A.InterpolatedFunctionExpression(this.visitInterpolation$1(node.name), this.visitArgumentInvocation$1(node.$arguments), node.span);
- },
- visitIfExpression$1(node) {
- return new A.IfExpression(this.visitArgumentInvocation$1(node.$arguments), node.span);
- },
- visitListExpression$1(node) {
- var t1 = node.contents;
- return new A.ListExpression(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitListExpression_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression>")), type$.Expression), node.separator, node.hasBrackets, node.span);
- },
- visitMapExpression$1(node) {
- var t2, t3, _i, t4, key, value,
- t1 = A._setArrayType([], type$.JSArray_Record_2_Expression_and_Expression);
- for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- t1.push(new A._Record_2(key.accept$1(this), value.accept$1(this)));
- }
- return new A.MapExpression(A.List_List$unmodifiable(t1, type$.Record_2_Expression_and_Expression), node.span);
- },
- visitNullExpression$1(node) {
- return node;
- },
- visitNumberExpression$1(node) {
- return node;
- },
- visitParenthesizedExpression$1(node) {
- return new A.ParenthesizedExpression(node.expression.accept$1(this), node.span);
- },
- visitSelectorExpression$1(node) {
- return node;
- },
- visitStringExpression$1(node) {
- return new A.StringExpression(this.visitInterpolation$1(node.text), node.hasQuotes);
- },
- visitSupportsExpression$1(node) {
- return new A.SupportsExpression(this.visitSupportsCondition$1(node.condition));
- },
- visitUnaryOperationExpression$1(node) {
- return new A.UnaryOperationExpression(node.operator, node.operand.accept$1(this), node.span);
- },
- visitValueExpression$1(node) {
- return node;
- },
- visitVariableExpression$1(node) {
- return node;
- },
- visitArgumentInvocation$1(invocation) {
- var t5, t6, _this = this,
- t1 = invocation.positional,
- t2 = type$.String,
- t3 = type$.Expression,
- t4 = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
- for (t5 = A.MapExtensions_get_pairs(invocation.named, t2, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
- t6 = t5.get$current(t5);
- t4.$indexSet(0, t6._0, t6._1.accept$1(_this));
- }
- t5 = invocation.rest;
- t5 = t5 == null ? null : t5.accept$1(_this);
- t6 = invocation.keywordRest;
- t6 = t6 == null ? null : t6.accept$1(_this);
- return new A.ArgumentInvocation(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitArgumentInvocation_closure(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression>")), t3), A.ConstantMap_ConstantMap$from(t4, t2, t3), t5, t6, invocation.span);
- },
- visitSupportsCondition$1(condition) {
- var _this = this;
- if (condition instanceof A.SupportsOperation)
- return A.SupportsOperation$(_this.visitSupportsCondition$1(condition.left), _this.visitSupportsCondition$1(condition.right), condition.operator, condition.span);
- else if (condition instanceof A.SupportsNegation)
- return new A.SupportsNegation(_this.visitSupportsCondition$1(condition.condition), condition.span);
- else if (condition instanceof A.SupportsInterpolation)
- return new A.SupportsInterpolation(condition.expression.accept$1(_this), condition.span);
- else if (condition instanceof A.SupportsDeclaration)
- return new A.SupportsDeclaration(condition.name.accept$1(_this), condition.value.accept$1(_this), condition.span);
- else
- throw A.wrapException(A.SassException$("BUG: Unknown SupportsCondition " + condition.toString$0(0) + ".", condition.get$span(condition), null));
- },
- visitInterpolation$1(interpolation) {
- var t1 = interpolation.contents;
- return A.Interpolation$(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitInterpolation_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")), interpolation.span);
- }
- };
- A.ReplaceExpressionVisitor_visitListExpression_closure.prototype = {
- call$1(item) {
- return item.accept$1(this.$this);
- },
- $signature: 238
- };
- A.ReplaceExpressionVisitor_visitArgumentInvocation_closure.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 238
- };
- A.ReplaceExpressionVisitor_visitInterpolation_closure.prototype = {
- call$1(node) {
- return type$.Expression._is(node) ? node.accept$1(this.$this) : node;
- },
- $signature: 67
- };
- A.SelectorSearchVisitor.prototype = {
- visitAttributeSelector$1(attribute) {
- return null;
- },
- visitClassSelector$1(klass) {
- return null;
- },
- visitIDSelector$1(id) {
- return null;
- },
- visitParentSelector$1(placeholder) {
- return null;
- },
- visitPlaceholderSelector$1(placeholder) {
- return null;
- },
- visitTypeSelector$1(type) {
- return null;
- },
- visitUniversalSelector$1(universal) {
- return null;
- },
- visitComplexSelector$1(complex) {
- return A.IterableExtension_search(complex.components, new A.SelectorSearchVisitor_visitComplexSelector_closure(this));
- },
- visitCompoundSelector$1(compound) {
- return A.IterableExtension_search(compound.components, new A.SelectorSearchVisitor_visitCompoundSelector_closure(this));
- },
- visitPseudoSelector$1(pseudo) {
- return A.NullableExtension_andThen(pseudo.selector, this.get$visitSelectorList());
- },
- visitSelectorList$1(list) {
- return A.IterableExtension_search(list.components, this.get$visitComplexSelector());
- }
- };
- A.SelectorSearchVisitor_visitComplexSelector_closure.prototype = {
- call$1(component) {
- return this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor.T?(ComplexSelectorComponent)");
- }
- };
- A.SelectorSearchVisitor_visitCompoundSelector_closure.prototype = {
- call$1(simple) {
- return simple.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor.T?(SimpleSelector)");
- }
- };
- A.serialize_closure.prototype = {
- call$1(codeUnit) {
- return codeUnit > 127;
- },
- $signature: 45
- };
- A._SerializeVisitor.prototype = {
- visitCssStylesheet$1(node) {
- var t1, t2, t3, t4, t5, t6, previous, previous0, t7, _this = this;
- for (t1 = J.get$iterator$ax(node.get$children(node)), t2 = !_this._inspect, t3 = _this._style === B.OutputStyle_1, t4 = !t3, t5 = type$.CssParentNode, t6 = _this._serialize$_buffer, previous = null; t1.moveNext$0();) {
- previous0 = t1.get$current(t1);
- if (t2)
- t7 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false);
- else
- t7 = false;
- if (t7)
- continue;
- if (previous != null) {
- if (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment))
- t6.writeCharCode$1(59);
- if (_this._isTrailingComment$2(previous0, previous)) {
- if (t4)
- t6.writeCharCode$1(32);
- } else {
- if (t4)
- t6.write$1(0, "\n");
- if (previous.get$isGroupEnd())
- if (t4)
- t6.write$1(0, "\n");
- }
- }
- previous0.accept$1(_this);
- previous = previous0;
- }
- if (previous != null)
- t1 = (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment)) && t4;
- else
- t1 = false;
- if (t1)
- t6.writeCharCode$1(59);
- },
- visitCssComment$1(node) {
- this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure(this, node));
- },
- visitCssAtRule$1(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure(_this, node));
- if (!node.isChildless) {
- if (_this._style !== B.OutputStyle_1)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node);
- }
- },
- visitCssMediaRule$1(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure(_this, node));
- if (_this._style !== B.OutputStyle_1)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node);
- },
- visitCssImport$1(node) {
- this._writeIndentation$0();
- this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure(this, node));
- },
- _writeImportUrl$1(url) {
- var urlContents, maybeQuote, _this = this;
- if (_this._style !== B.OutputStyle_1 || url.charCodeAt(0) !== 117) {
- _this._serialize$_buffer.write$1(0, url);
- return;
- }
- urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1);
- maybeQuote = urlContents.charCodeAt(0);
- if (maybeQuote === 39 || maybeQuote === 34)
- _this._serialize$_buffer.write$1(0, urlContents);
- else
- _this._visitQuotedString$1(urlContents);
- },
- visitCssKeyframeBlock$1(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node));
- if (_this._style !== B.OutputStyle_1)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node);
- },
- _visitMediaQuery$1(query) {
- var t1, _1_0, _2_0, condition, operator, t2, _this = this,
- _0_0 = query.modifier;
- if (_0_0 != null) {
- t1 = _this._serialize$_buffer;
- t1.write$1(0, _0_0);
- t1.writeCharCode$1(32);
- }
- _1_0 = query.type;
- if (_1_0 != null) {
- t1 = _this._serialize$_buffer;
- t1.write$1(0, _1_0);
- if (query.conditions.length !== 0)
- t1.write$1(0, " and ");
- }
- _2_0 = query.conditions;
- if (_2_0.length === 1)
- t1 = B.JSString_methods.startsWith$1(_2_0[0], "(not ");
- else
- t1 = false;
- if (t1) {
- t1 = _this._serialize$_buffer;
- t1.write$1(0, "not ");
- condition = B.JSArray_methods.get$first(_2_0);
- t1.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1));
- } else {
- operator = query.conjunction ? "and" : "or";
- t1 = _this._style === B.OutputStyle_1 ? operator + " " : " " + operator + " ";
- t2 = _this._serialize$_buffer;
- _this._writeBetween$3(_2_0, t1, t2.get$write(t2));
- }
- },
- visitCssStyleRule$1(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node._style_rule$_selector._box$_inner.value.span, new A._SerializeVisitor_visitCssStyleRule_closure(_this, node));
- if (_this._style !== B.OutputStyle_1)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node);
- },
- visitCssSupportsRule$1(node) {
- var t1, _this = this;
- _this._writeIndentation$0();
- t1 = _this._serialize$_buffer;
- t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure(_this, node));
- if (_this._style !== B.OutputStyle_1)
- t1.writeCharCode$1(32);
- _this._serialize$_visitChildren$1(node);
- },
- visitCssDeclaration$1(node) {
- var error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this;
- _this._writeIndentation$0();
- t1 = node.name;
- _this._serialize$_write$1(t1);
- t2 = _this._serialize$_buffer;
- t2.writeCharCode$1(58);
- if (J.startsWith$1$s(t1.value, "--") && node.parsedAsCustomProperty)
- t2.forSpan$2(node.value.span, new A._SerializeVisitor_visitCssDeclaration_closure(_this, node));
- else {
- if (_this._style !== B.OutputStyle_1)
- t2.writeCharCode$1(32);
- try {
- t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure0(_this, node));
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.MultiSpanSassScriptException) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace(A.MultiSpanSassException$(error.message, node.value.span, error.primaryLabel, error.secondarySpans, null), error, stackTrace);
- } else if (t1 instanceof A.SassScriptException) {
- error0 = t1;
- stackTrace0 = A.getTraceFromException(exception);
- t1 = error0.message;
- A.throwWithTrace(new A.SassException(B.Set_empty, t1, node.value.span), error0, stackTrace0);
- } else
- throw exception;
- }
- }
- },
- _writeFoldedValue$1(node) {
- var t1, t2, next, t3,
- scanner = A.StringScanner$(type$.SassString._as(node.value.value)._string$_text, null, null);
- for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
- next = scanner.readChar$0();
- if (next !== 10) {
- t2.writeCharCode$1(next);
- continue;
- }
- t2.writeCharCode$1(32);
- while (true) {
- t3 = scanner.peekChar$0();
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- scanner.readChar$0();
- }
- }
- },
- _writeReindentedValue$1(node) {
- var _0_0, t1, _this = this,
- value = type$.SassString._as(node.value.value)._string$_text;
- $label0$0: {
- _0_0 = _this._minimumIndentation$1(value);
- if (_0_0 == null) {
- _this._serialize$_buffer.write$1(0, value);
- break $label0$0;
- }
- if (-1 === _0_0) {
- t1 = _this._serialize$_buffer;
- t1.write$1(0, A.trimAsciiRight(value, true));
- t1.writeCharCode$1(32);
- break $label0$0;
- }
- t1 = node.name.span;
- t1 = t1.get$start(t1);
- _this._writeWithIndent$2(value, Math.min(_0_0, t1.file.getColumn$1(t1.offset)));
- }
- },
- _minimumIndentation$1(text) {
- var character, t2, min, next, min0,
- scanner = A.LineScanner$(text),
- t1 = scanner.string.length;
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- if (scanner._string_scanner$_position === t1)
- return scanner.peekChar$1(-1) === 10 ? -1 : null;
- for (min = null; scanner._string_scanner$_position !== t1;) {
- for (; scanner._string_scanner$_position !== t1;) {
- next = scanner.peekChar$0();
- if (next !== 32 && next !== 9)
- break;
- scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
- }
- if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
- continue;
- min0 = scanner._line_scanner$_column;
- min = min == null ? min0 : Math.min(min, min0);
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- }
- return min == null ? -1 : min;
- },
- _writeWithIndent$2(text, minimumIndentation) {
- var t1, t2, t3, character, lineStart, newlines, end,
- scanner = A.LineScanner$(text);
- for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize$_buffer; scanner._string_scanner$_position !== t2;) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t3.writeCharCode$1(character);
- }
- for (; true;) {
- lineStart = scanner._string_scanner$_position;
- for (newlines = 1; true;) {
- if (scanner._string_scanner$_position === t2) {
- t3.writeCharCode$1(32);
- return;
- }
- $label0$2: {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (32 === character || 9 === character)
- continue;
- if (10 === character) {
- lineStart = scanner._string_scanner$_position;
- ++newlines;
- break $label0$2;
- }
- break;
- }
- }
- this._writeTimes$2(10, newlines);
- this._writeIndentation$0();
- end = scanner._string_scanner$_position;
- t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end));
- for (; true;) {
- if (scanner._string_scanner$_position === t2)
- return;
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t3.writeCharCode$1(character);
- }
- }
- },
- visitCalculation$1(value) {
- var t2, _this = this,
- t1 = _this._serialize$_buffer;
- t1.write$1(0, value.name);
- t1.writeCharCode$1(40);
- t2 = _this._style === B.OutputStyle_1 ? "," : ", ";
- _this._writeBetween$3(value.$arguments, t2, _this.get$_writeCalculationValue());
- t1.writeCharCode$1(41);
- },
- _writeCalculationValue$1(value) {
- var _2_4_isSet, _2_4, t1, _0_0, _1_0, first, rest, operator, left, right, parenthesizeLeft, operatorWhitespace, t2, parenthesizeRight, _this = this, _null = null;
- $label1$1: {
- _2_4_isSet = value instanceof A.SassNumber;
- if (_2_4_isSet) {
- _2_4 = value.get$hasComplexUnits();
- t1 = _2_4 && !_this._inspect;
- } else {
- _2_4 = _null;
- t1 = false;
- }
- if (t1)
- throw A.wrapException(A.SassScriptException$(A.S(value) + " isn't a valid CSS value.", _null));
- if (_2_4_isSet && !isFinite(value._number$_value)) {
- $label0$0: {
- _0_0 = value._number$_value;
- if (1 / 0 === _0_0) {
- _this._serialize$_buffer.write$1(0, "infinity");
- break $label0$0;
- }
- if (-1 / 0 === _0_0) {
- _this._serialize$_buffer.write$1(0, "-infinity");
- break $label0$0;
- }
- if (isNaN(_0_0))
- _this._serialize$_buffer.write$1(0, "NaN");
- }
- t1 = J.getInterceptor$x(value);
- _this._writeCalculationUnits$2(t1.get$numeratorUnits(value), t1.get$denominatorUnits(value));
- break $label1$1;
- }
- if (_2_4_isSet)
- t1 = _2_4;
- else
- t1 = false;
- if (t1) {
- _this._writeNumber$1(value._number$_value);
- t1 = J.getInterceptor$x(value);
- _1_0 = t1.get$numeratorUnits(value);
- if (_1_0.length >= 1) {
- first = _1_0[0];
- rest = B.JSArray_methods.sublist$1(_1_0, 1);
- _this._serialize$_buffer.write$1(0, first);
- _this._writeCalculationUnits$2(rest, t1.get$denominatorUnits(value));
- } else
- _this._writeCalculationUnits$2(A._setArrayType([], type$.JSArray_String), t1.get$denominatorUnits(value));
- break $label1$1;
- }
- if (value instanceof A.Value) {
- value.accept$1(_this);
- break $label1$1;
- }
- t1 = value instanceof A.CalculationOperation;
- if (t1) {
- operator = value._operator;
- left = value._left;
- right = value._right;
- right = right;
- } else {
- right = _null;
- left = right;
- operator = left;
- }
- if (t1) {
- parenthesizeLeft = left instanceof A.CalculationOperation && left._operator.precedence < operator.precedence;
- if (parenthesizeLeft)
- _this._serialize$_buffer.writeCharCode$1(40);
- _this._writeCalculationValue$1(left);
- if (parenthesizeLeft)
- _this._serialize$_buffer.writeCharCode$1(41);
- operatorWhitespace = _this._style !== B.OutputStyle_1 || operator.precedence === 1;
- if (operatorWhitespace)
- _this._serialize$_buffer.writeCharCode$1(32);
- t1 = _this._serialize$_buffer;
- t1.write$1(0, operator.operator);
- if (operatorWhitespace)
- t1.writeCharCode$1(32);
- if (!(right instanceof A.CalculationOperation && _this._parenthesizeCalculationRhs$2(operator, right._operator)))
- if (operator === B.CalculationOperator_Qf1) {
- if (right instanceof A.SassNumber)
- t2 = isFinite(right._number$_value) ? right.get$hasComplexUnits() : right.get$hasUnits();
- else
- t2 = false;
- parenthesizeRight = t2;
- } else
- parenthesizeRight = false;
- else
- parenthesizeRight = true;
- if (parenthesizeRight)
- t1.writeCharCode$1(40);
- _this._writeCalculationValue$1(right);
- if (parenthesizeRight)
- t1.writeCharCode$1(41);
- }
- }
- },
- _writeCalculationUnits$2(numeratorUnits, denominatorUnits) {
- var t1, t2, t3, t4;
- for (t1 = J.get$iterator$ax(numeratorUnits), t2 = this._serialize$_buffer, t3 = this._style !== B.OutputStyle_1; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(42);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(49);
- t2.write$1(0, t4);
- }
- for (t1 = J.get$iterator$ax(denominatorUnits); t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(47);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(49);
- t2.write$1(0, t4);
- }
- },
- _parenthesizeCalculationRhs$2(outer, right) {
- var t1;
- $label0$0: {
- if (B.CalculationOperator_Qf1 === outer) {
- t1 = true;
- break $label0$0;
- }
- if (B.CalculationOperator_g2q === outer) {
- t1 = false;
- break $label0$0;
- }
- t1 = right === B.CalculationOperator_g2q || right === B.CalculationOperator_CxF;
- break $label0$0;
- }
- return t1;
- },
- visitColor$1(value) {
- var hexLength, _0_0, t1, $name, _1_0, opaque, t2, _3_0, _this = this;
- if (_this._style === B.OutputStyle_1)
- if (!A.fuzzyEquals(value._alpha, 1))
- _this._writeRgb$1(value);
- else {
- hexLength = _this._canUseShortHex$1(value) ? 4 : 7;
- _0_0 = $.$get$namesByColor().$index(0, value);
- if (_0_0 != null) {
- t1 = _0_0.length <= hexLength;
- $name = _0_0;
- } else {
- $name = null;
- t1 = false;
- }
- if (t1)
- _this._serialize$_buffer.write$1(0, $name);
- else {
- t1 = _this._serialize$_buffer;
- if (_this._canUseShortHex$1(value)) {
- t1.writeCharCode$1(35);
- t1.writeCharCode$1(A.hexCharFor(value.get$red(0) & 15));
- t1.writeCharCode$1(A.hexCharFor(value.get$green(0) & 15));
- t1.writeCharCode$1(A.hexCharFor(value.get$blue(0) & 15));
- } else {
- t1.writeCharCode$1(35);
- _this._writeHexComponent$1(value.get$red(0));
- _this._writeHexComponent$1(value.get$green(0));
- _this._writeHexComponent$1(value.get$blue(0));
- }
- }
- }
- else {
- _1_0 = value.format;
- if (_1_0 != null)
- $label0$0: {
- if (B._ColorFormatEnum_rgbFunction === _1_0) {
- _this._writeRgb$1(value);
- break $label0$0;
- }
- if (B._ColorFormatEnum_hslFunction === _1_0) {
- t1 = value._alpha;
- opaque = A.fuzzyEquals(t1, 1);
- t2 = _this._serialize$_buffer;
- t2.write$1(0, opaque ? "hsl(" : "hsla(");
- _this._writeNumber$1(value.get$hue(0));
- t2.write$1(0, ", ");
- _this._writeNumber$1(value.get$saturation(0));
- t2.writeCharCode$1(37);
- t2.write$1(0, ", ");
- _this._writeNumber$1(value.get$lightness(0));
- t2.writeCharCode$1(37);
- if (!opaque) {
- t2.write$1(0, ", ");
- _this._writeNumber$1(t1);
- }
- t2.writeCharCode$1(41);
- break $label0$0;
- }
- if (_1_0 instanceof A.SpanColorFormat) {
- _this._serialize$_buffer.write$1(0, _1_0._color$_span.get$text());
- break $label0$0;
- }
- }
- else {
- _3_0 = $.$get$namesByColor().$index(0, value);
- if (_3_0 != null) {
- t1 = !A.fuzzyEquals(value._alpha, 0);
- $name = _3_0;
- } else {
- $name = null;
- t1 = false;
- }
- if (t1)
- _this._serialize$_buffer.write$1(0, $name);
- else if (A.fuzzyEquals(value._alpha, 1)) {
- _this._serialize$_buffer.writeCharCode$1(35);
- _this._writeHexComponent$1(value.get$red(0));
- _this._writeHexComponent$1(value.get$green(0));
- _this._writeHexComponent$1(value.get$blue(0));
- } else
- _this._writeRgb$1(value);
- }
- }
- },
- _writeRgb$1(value) {
- var t3,
- t1 = value._alpha,
- opaque = A.fuzzyEquals(t1, 1),
- t2 = this._serialize$_buffer;
- t2.write$1(0, opaque ? "rgb(" : "rgba(");
- t2.write$1(0, value.get$red(0));
- t3 = this._style === B.OutputStyle_1;
- t2.write$1(0, t3 ? "," : ", ");
- t2.write$1(0, value.get$green(0));
- t2.write$1(0, t3 ? "," : ", ");
- t2.write$1(0, value.get$blue(0));
- if (!opaque) {
- t2.write$1(0, t3 ? "," : ", ");
- this._writeNumber$1(t1);
- }
- t2.writeCharCode$1(41);
- },
- _canUseShortHex$1(color) {
- var t1 = color.get$red(0);
- if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$green(0);
- if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$blue(0);
- t1 = (t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4);
- } else
- t1 = false;
- } else
- t1 = false;
- return t1;
- },
- _writeHexComponent$1(color) {
- var t1 = this._serialize$_buffer;
- t1.writeCharCode$1(A.hexCharFor(B.JSInt_methods._shrOtherPositive$1(color, 4)));
- t1.writeCharCode$1(A.hexCharFor(color & 15));
- },
- visitList$1(value) {
- var t2, t3, singleton, t4, t5, _this = this,
- t1 = value._hasBrackets;
- if (t1)
- _this._serialize$_buffer.writeCharCode$1(91);
- else if (value._list$_contents.length === 0) {
- if (!_this._inspect)
- throw A.wrapException(A.SassScriptException$("() isn't a valid CSS value.", null));
- _this._serialize$_buffer.write$1(0, "()");
- return;
- }
- t2 = _this._inspect;
- if (t2)
- if (value._list$_contents.length === 1) {
- t3 = value._separator;
- t3 = t3 === B.ListSeparator_ECn || t3 === B.ListSeparator_cQA;
- singleton = t3;
- } else
- singleton = false;
- else
- singleton = false;
- if (singleton && !t1)
- _this._serialize$_buffer.writeCharCode$1(40);
- t3 = value._list$_contents;
- t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
- t4 = value._separator;
- t5 = _this._separatorString$1(t4);
- _this._writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure0(_this, value) : new A._SerializeVisitor_visitList_closure1(_this));
- if (singleton) {
- t2 = _this._serialize$_buffer;
- t2.write$1(0, t4.separator);
- if (!t1)
- t2.writeCharCode$1(41);
- }
- if (t1)
- _this._serialize$_buffer.writeCharCode$1(93);
- },
- _separatorString$1(separator) {
- var t1;
- $label0$0: {
- if (B.ListSeparator_ECn === separator) {
- t1 = this._style === B.OutputStyle_1 ? "," : ", ";
- break $label0$0;
- }
- if (B.ListSeparator_cQA === separator) {
- t1 = this._style === B.OutputStyle_1 ? "/" : " / ";
- break $label0$0;
- }
- if (B.ListSeparator_nbm === separator) {
- t1 = " ";
- break $label0$0;
- }
- t1 = "";
- break $label0$0;
- }
- return t1;
- },
- _elementNeedsParens$2(separator, value) {
- var t1;
- $label1$1: {
- if (value instanceof A.SassList && value._list$_contents.length > 1 && !value._hasBrackets) {
- $label0$0: {
- if (B.ListSeparator_ECn === separator) {
- t1 = value._separator === B.ListSeparator_ECn;
- break $label0$0;
- }
- if (B.ListSeparator_cQA === separator) {
- t1 = value._separator;
- t1 = t1 === B.ListSeparator_ECn || t1 === B.ListSeparator_cQA;
- break $label0$0;
- }
- t1 = value._separator !== B.ListSeparator_undecided_null_undecided;
- break $label0$0;
- }
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- return t1;
- },
- visitMap$1(map) {
- var t1, t2, _this = this;
- if (!_this._inspect)
- throw A.wrapException(A.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value.", null));
- t1 = _this._serialize$_buffer;
- t1.writeCharCode$1(40);
- t2 = map._map$_contents;
- _this._writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure(_this));
- t1.writeCharCode$1(41);
- },
- _writeMapElement$1(value) {
- var needsParens = value instanceof A.SassList && value._separator === B.ListSeparator_ECn && !value._hasBrackets;
- if (needsParens)
- this._serialize$_buffer.writeCharCode$1(40);
- value.accept$1(this);
- if (needsParens)
- this._serialize$_buffer.writeCharCode$1(41);
- },
- visitNumber$1(value) {
- var before, after, t1, _1_0, _this = this,
- _0_0 = value.asSlash;
- if (type$.Record_2_nullable_Object_and_nullable_Object._is(_0_0)) {
- before = _0_0._0;
- after = _0_0._1;
- _this.visitNumber$1(before);
- _this._serialize$_buffer.writeCharCode$1(47);
- _this.visitNumber$1(after);
- return;
- }
- t1 = value._number$_value;
- if (!isFinite(t1)) {
- _this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
- return;
- }
- if (value.get$hasComplexUnits()) {
- if (!_this._inspect)
- throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", null));
- _this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
- } else {
- _this._writeNumber$1(t1);
- _1_0 = value.get$numeratorUnits(value);
- if (_1_0.length === 1)
- _this._serialize$_buffer.write$1(0, _1_0[0]);
- }
- },
- _writeNumber$1(number) {
- var text, _this = this,
- _0_0 = A.fuzzyAsInt(number);
- if (_0_0 != null) {
- _this._serialize$_buffer.write$1(0, _this._removeExponent$1(B.JSInt_methods.toString$0(_0_0)));
- return;
- }
- text = _this._removeExponent$1(B.JSNumber_methods.toString$0(number));
- if (text.length < 12) {
- if (_this._style === B.OutputStyle_1 && text.charCodeAt(0) === 48)
- text = B.JSString_methods.substring$1(text, 1);
- _this._serialize$_buffer.write$1(0, text);
- return;
- }
- _this._writeRounded$1(text);
- },
- _removeExponent$1(text) {
- var buffer, t2, t3, additionalZeroes,
- negative = text.charCodeAt(0) === 45,
- exponent = A._Cell$(),
- t1 = text.length,
- i = 0;
- while (true) {
- if (!(i < t1)) {
- buffer = null;
- break;
- }
- c$0: {
- if (text.charCodeAt(i) !== 101)
- break c$0;
- buffer = new A.StringBuffer("");
- t2 = buffer._contents = "" + A.Primitives_stringFromCharCode(text.charCodeAt(0));
- if (negative) {
- t2 += A.Primitives_stringFromCharCode(text.charCodeAt(1));
- buffer._contents = t2;
- if (i > 3)
- buffer._contents = t2 + B.JSString_methods.substring$2(text, 3, i);
- } else if (i > 2)
- buffer._contents = t2 + B.JSString_methods.substring$2(text, 2, i);
- exponent.__late_helper$_value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t1), null);
- break;
- }
- ++i;
- }
- if (buffer == null)
- return text;
- if (exponent._readLocal$0() > 0) {
- t1 = exponent._readLocal$0();
- t2 = buffer._contents;
- t3 = negative ? 1 : 0;
- additionalZeroes = t1 - (t2.length - 1 - t3);
- for (t1 = t2, i = 0; i < additionalZeroes; ++i) {
- t1 = A.Primitives_stringFromCharCode(48);
- t1 = buffer._contents += t1;
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else {
- negative = text.charCodeAt(0) === 45;
- t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0.";
- i = -1;
- while (true) {
- t2 = exponent.__late_helper$_value;
- if (t2 === exponent)
- A.throwExpression(A.LateError$localNI(""));
- if (!(i > t2))
- break;
- t1 += A.Primitives_stringFromCharCode(48);
- --i;
- }
- if (negative) {
- t2 = buffer._contents;
- t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
- } else
- t2 = buffer;
- t2 = t1 + A.S(t2);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- },
- _writeRounded$1(text) {
- var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex, t2, _this = this;
- if (B.JSString_methods.endsWith$1(text, ".0")) {
- _this._serialize$_buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2));
- return;
- }
- t1 = text.length;
- digits = new Uint8Array(t1 + 1);
- negative = text.charCodeAt(0) === 45;
- textIndex = negative ? 1 : 0;
- for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) {
- if (textIndex === t1) {
- _this._serialize$_buffer.write$1(0, text);
- return;
- }
- textIndex0 = textIndex + 1;
- codeUnit = text.charCodeAt(textIndex);
- if (codeUnit === 46) {
- textIndex = textIndex0;
- break;
- }
- digitsIndex0 = digitsIndex + 1;
- digits[digitsIndex] = codeUnit - 48;
- }
- indexAfterPrecision = textIndex + 10;
- if (indexAfterPrecision >= t1) {
- _this._serialize$_buffer.write$1(0, text);
- return;
- }
- for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) {
- digitsIndex1 = digitsIndex0 + 1;
- textIndex0 = textIndex + 1;
- digits[digitsIndex0] = text.charCodeAt(textIndex) - 48;
- }
- if (text.charCodeAt(textIndex) - 48 >= 5)
- for (; true; digitsIndex0 = digitsIndex1) {
- digitsIndex1 = digitsIndex0 - 1;
- newDigit = digits[digitsIndex1] + 1;
- digits[digitsIndex1] = newDigit;
- if (newDigit !== 10)
- break;
- }
- for (; digitsIndex0 < digitsIndex; ++digitsIndex0)
- digits[digitsIndex0] = 0;
- while (true) {
- t1 = digitsIndex0 > digitsIndex;
- if (!(t1 && digits[digitsIndex0 - 1] === 0))
- break;
- --digitsIndex0;
- }
- if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) {
- _this._serialize$_buffer.writeCharCode$1(48);
- return;
- }
- if (negative)
- _this._serialize$_buffer.writeCharCode$1(45);
- if (digits[0] === 0)
- writtenIndex = _this._style === B.OutputStyle_1 && digits[1] === 0 ? 2 : 1;
- else
- writtenIndex = 0;
- for (t2 = _this._serialize$_buffer; writtenIndex < digitsIndex; ++writtenIndex)
- t2.writeCharCode$1(48 + digits[writtenIndex]);
- if (t1) {
- t2.writeCharCode$1(46);
- for (; writtenIndex < digitsIndex0; ++writtenIndex)
- t2.writeCharCode$1(48 + digits[writtenIndex]);
- }
- },
- _visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) {
- var t1, includesSingleQuote, includesDoubleQuote, i, char, _1_2, _1_4, _0_0, quote, _this = this,
- buffer = forceDoubleQuote ? _this._serialize$_buffer : new A.StringBuffer("");
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
- char = string.charCodeAt(i);
- _1_2 = 39 === char;
- if (_1_2 && forceDoubleQuote) {
- buffer.writeCharCode$1(39);
- continue;
- }
- if (_1_2 && includesDoubleQuote) {
- _this._visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- }
- if (_1_2) {
- buffer.writeCharCode$1(39);
- includesSingleQuote = true;
- continue;
- }
- _1_4 = 34 === char;
- if (_1_4 && forceDoubleQuote) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(34);
- continue;
- }
- if (_1_4 && includesSingleQuote) {
- _this._visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- }
- if (_1_4) {
- buffer.writeCharCode$1(34);
- includesDoubleQuote = true;
- continue;
- }
- if (0 === char || 1 === char || 2 === char || 3 === char || 4 === char || 5 === char || 6 === char || 7 === char || 8 === char || 10 === char || 11 === char || 12 === char || 13 === char || 14 === char || 15 === char || 16 === char || 17 === char || 18 === char || 19 === char || 20 === char || 21 === char || 22 === char || 23 === char || 24 === char || 25 === char || 26 === char || 27 === char || 28 === char || 29 === char || 30 === char || 31 === char || 127 === char) {
- _this._writeEscape$4(buffer, char, string, i);
- continue;
- }
- if (92 === char) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(92);
- continue;
- }
- _0_0 = _this._tryPrivateUseCharacter$4(buffer, char, string, i);
- if (_0_0 != null)
- i = _0_0;
- else
- buffer.writeCharCode$1(char);
- }
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- else {
- quote = includesDoubleQuote ? 39 : 34;
- t1 = _this._serialize$_buffer;
- t1.writeCharCode$1(quote);
- t1.write$1(0, buffer);
- t1.writeCharCode$1(quote);
- }
- },
- _visitQuotedString$1(string) {
- return this._visitQuotedString$2$forceDoubleQuote(string, false);
- },
- _visitUnquotedString$1(string) {
- var t1, t2, afterNewline, i, _1_0, _0_0;
- for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
- _1_0 = string.charCodeAt(i);
- if (10 === _1_0) {
- t2.writeCharCode$1(32);
- afterNewline = true;
- continue;
- }
- if (32 === _1_0) {
- if (!afterNewline)
- t2.writeCharCode$1(32);
- continue;
- }
- _0_0 = this._tryPrivateUseCharacter$4(t2, _1_0, string, i);
- if (_0_0 != null)
- i = _0_0;
- else
- t2.writeCharCode$1(_1_0);
- afterNewline = false;
- }
- },
- _tryPrivateUseCharacter$4(buffer, codeUnit, string, i) {
- var t1;
- if (this._style === B.OutputStyle_1)
- return null;
- if (codeUnit >= 57344 && codeUnit <= 63743) {
- this._writeEscape$4(buffer, codeUnit, string, i);
- return i;
- }
- if (codeUnit >>> 7 === 439 && string.length > i + 1) {
- t1 = i + 1;
- this._writeEscape$4(buffer, 65536 + ((codeUnit & 1023) << 10) + (string.charCodeAt(t1) & 1023), string, t1);
- return t1;
- }
- return null;
- },
- _writeEscape$4(buffer, character, string, i) {
- var t1, next;
- buffer.writeCharCode$1(92);
- buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16));
- t1 = i + 1;
- if (string.length === t1)
- return;
- next = string.charCodeAt(t1);
- if (A.CharacterExtension_get_isHex(next) || 32 === next || 9 === next)
- buffer.writeCharCode$1(32);
- },
- visitAttributeSelector$1(attribute) {
- var _0_0, t2,
- t1 = this._serialize$_buffer;
- t1.writeCharCode$1(91);
- t1.write$1(0, attribute.name);
- _0_0 = attribute.value;
- if (_0_0 != null) {
- t1.write$1(0, attribute.op);
- if (A.Parser_isIdentifier(_0_0) && !B.JSString_methods.startsWith$1(_0_0, "--")) {
- t1.write$1(0, _0_0);
- t2 = attribute.modifier;
- if (t2 != null)
- t1.writeCharCode$1(32);
- } else {
- this._visitQuotedString$1(_0_0);
- t2 = attribute.modifier;
- if (t2 != null)
- if (this._style !== B.OutputStyle_1)
- t1.writeCharCode$1(32);
- }
- A.NullableExtension_andThen(t2, t1.get$write(t1));
- }
- t1.writeCharCode$1(93);
- },
- visitClassSelector$1(klass) {
- var t1 = this._serialize$_buffer;
- t1.writeCharCode$1(46);
- t1.write$1(0, klass.name);
- },
- visitComplexSelector$1(complex) {
- var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this,
- t1 = complex.leadingCombinators;
- _this._writeCombinators$1(t1);
- if (t1.length >= 1 && complex.components.length >= 1)
- if (_this._style !== B.OutputStyle_1)
- _this._serialize$_buffer.writeCharCode$1(32);
- for (t1 = complex.components, t2 = t1.length, t3 = t2 - 1, t4 = _this._serialize$_buffer, t5 = _this._style === B.OutputStyle_1, t6 = !t5, i = 0; i < t2; ++i) {
- component = t1[i];
- _this.visitCompoundSelector$1(component.selector);
- t7 = component.combinators;
- t8 = t7.length === 0;
- if (!t8)
- if (t6)
- t4.writeCharCode$1(32);
- t9 = t5 ? "" : " ";
- _this._writeBetween$3(t7, t9, t4.get$write(t4));
- if (i !== t3)
- t7 = !t5 || t8;
- else
- t7 = false;
- if (t7)
- t4.writeCharCode$1(32);
- }
- },
- _writeCombinators$1(combinators) {
- var t1 = this._style === B.OutputStyle_1 ? "" : " ",
- t2 = this._serialize$_buffer;
- return this._writeBetween$3(combinators, t1, t2.get$write(t2));
- },
- visitCompoundSelector$1(compound) {
- var t2, t3, _i,
- t1 = this._serialize$_buffer,
- start = t1.get$length(t1);
- for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(this);
- if (t1.get$length(t1) === start)
- t1.writeCharCode$1(42);
- },
- visitIDSelector$1(id) {
- var t1 = this._serialize$_buffer;
- t1.writeCharCode$1(35);
- t1.write$1(0, id.name);
- },
- visitSelectorList$1(list) {
- var t1, t2, t3, first, t4, _this = this,
- complexes = list.components;
- for (t1 = J.get$iterator$ax(_this._inspect ? complexes : new A.WhereIterable(complexes, new A._SerializeVisitor_visitSelectorList_closure(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"))), t2 = _this._style !== B.OutputStyle_1, t3 = _this._serialize$_buffer, first = true; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (first)
- first = false;
- else {
- t3.writeCharCode$1(44);
- if (t4.lineBreak) {
- if (t2)
- t3.write$1(0, "\n");
- _this._writeIndentation$0();
- } else if (t2)
- t3.writeCharCode$1(32);
- }
- _this.visitComplexSelector$1(t4);
- }
- },
- visitParentSelector$1($parent) {
- var t1 = this._serialize$_buffer;
- t1.writeCharCode$1(38);
- A.NullableExtension_andThen($parent.suffix, t1.get$write(t1));
- },
- visitPlaceholderSelector$1(placeholder) {
- var t1 = this._serialize$_buffer;
- t1.writeCharCode$1(37);
- t1.write$1(0, placeholder.name);
- },
- visitPseudoSelector$1(pseudo) {
- var _0_4, t2, t3,
- t1 = pseudo.name;
- if ("not" === t1) {
- _0_4 = pseudo.selector;
- if (_0_4 instanceof A.SelectorList)
- t2 = (_0_4 == null ? type$.SelectorList._as(_0_4) : _0_4).accept$1(B._IsInvisibleVisitor_true);
- else
- t2 = false;
- } else
- t2 = false;
- if (t2)
- return;
- t2 = this._serialize$_buffer;
- t2.writeCharCode$1(58);
- if (!pseudo.isSyntacticClass)
- t2.writeCharCode$1(58);
- t2.write$1(0, t1);
- t1 = pseudo.argument;
- t3 = t1 == null;
- if (t3 && pseudo.selector == null)
- return;
- t2.writeCharCode$1(40);
- if (!t3) {
- t2.write$1(0, t1);
- if (pseudo.selector != null)
- t2.writeCharCode$1(32);
- }
- A.NullableExtension_andThen(pseudo.selector, this.get$visitSelectorList());
- t2.writeCharCode$1(41);
- },
- visitTypeSelector$1(type) {
- this._serialize$_buffer.write$1(0, type.name);
- },
- visitUniversalSelector$1(universal) {
- var t2,
- t1 = universal.namespace;
- if (t1 != null) {
- t2 = this._serialize$_buffer;
- t2.write$1(0, t1);
- t2.writeCharCode$1(124);
- }
- this._serialize$_buffer.writeCharCode$1(42);
- },
- _serialize$_write$1(value) {
- return this._serialize$_buffer.forSpan$2(value.span, new A._SerializeVisitor__write_closure(this, value));
- },
- _serialize$_visitChildren$1($parent) {
- var t2, t3, t4, t5, t6, t7, prePrevious, previous, t8, previous0, t9, savedIndentation, _this = this,
- t1 = _this._serialize$_buffer;
- t1.writeCharCode$1(123);
- for (t2 = $parent.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = _this._style === B.OutputStyle_1, t5 = !t4, t6 = _this.get$_requiresSemicolon(), t7 = !_this._inspect, t3 = t3._eval$1("ListBase.E"), prePrevious = null, previous = null; t2.moveNext$0();) {
- t8 = t2.__internal$_current;
- previous0 = t8 == null ? t3._as(t8) : t8;
- if (t7)
- t8 = t4 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false);
- else
- t8 = false;
- if (t8)
- continue;
- t8 = previous == null;
- t9 = t8 ? null : t6.call$1(previous);
- if (t9 == null ? false : t9)
- t1.writeCharCode$1(59);
- if (_this._isTrailingComment$2(previous0, t8 ? $parent : previous)) {
- if (t5)
- t1.writeCharCode$1(32);
- savedIndentation = _this._indentation;
- _this._indentation = 0;
- new A._SerializeVisitor__visitChildren_closure(_this, previous0).call$0();
- _this._indentation = savedIndentation;
- } else {
- if (t5)
- t1.write$1(0, "\n");
- ++_this._indentation;
- new A._SerializeVisitor__visitChildren_closure0(_this, previous0).call$0();
- --_this._indentation;
- }
- prePrevious = previous;
- previous = previous0;
- }
- if (previous != null) {
- if ((type$.CssParentNode._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment)) && t5)
- t1.writeCharCode$1(59);
- if (prePrevious == null && _this._isTrailingComment$2(previous, $parent)) {
- if (t5)
- t1.writeCharCode$1(32);
- } else {
- _this._writeLineFeed$0();
- _this._writeIndentation$0();
- }
- }
- t1.writeCharCode$1(125);
- },
- _requiresSemicolon$1(node) {
- return type$.CssParentNode._is(node) ? node.get$isChildless() : !(node instanceof A.ModifiableCssComment);
- },
- _isTrailingComment$2(node, previous) {
- var t1, t2, t3, searchFrom, endOffset, t4, span;
- if (this._style === B.OutputStyle_1)
- return false;
- if (!(node instanceof A.ModifiableCssComment))
- return false;
- t1 = node.span;
- t2 = t1.get$sourceUrl(t1);
- t3 = previous.get$span(previous);
- if (!J.$eq$(t2, t3.get$sourceUrl(t3)))
- return false;
- t2 = previous.get$span(previous);
- if (!(J.$eq$(t2.get$file(t2).url, t1.get$file(t1).url) && t2.get$start(t2).offset <= t1.get$start(t1).offset && t2.get$end(t2).offset >= t1.get$end(t1).offset)) {
- t1 = t1.get$start(t1);
- t1 = t1.file.getLine$1(t1.offset);
- t2 = previous.get$span(previous);
- t2 = t2.get$end(t2);
- return t1 === t2.file.getLine$1(t2.offset);
- }
- t2 = t1.get$start(t1);
- t3 = previous.get$span(previous);
- searchFrom = t2.offset - t3.get$start(t3).offset - 1;
- if (searchFrom < 0)
- return false;
- endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom));
- t2 = previous.get$span(previous);
- t2 = t2.get$file(t2);
- t3 = previous.get$span(previous);
- t3 = t3.get$start(t3);
- t4 = previous.get$span(previous);
- span = t2.span$2(0, t3.offset, t4.get$start(t4).offset + endOffset);
- t1 = t1.get$start(t1);
- t1 = t1.file.getLine$1(t1.offset);
- t4 = A.FileLocation$_(span.file, span._end);
- return t1 === t4.file.getLine$1(t4.offset);
- },
- _writeLineFeed$0() {
- if (this._style !== B.OutputStyle_1)
- this._serialize$_buffer.write$1(0, "\n");
- },
- _writeIndentation$0() {
- var _this = this;
- if (_this._style === B.OutputStyle_1)
- return;
- _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth);
- },
- _writeTimes$2(char, times) {
- var t1, i;
- for (t1 = this._serialize$_buffer, i = 0; i < times; ++i)
- t1.writeCharCode$1(char);
- },
- _writeBetween$1$3(iterable, text, callback) {
- var t1, t2, first, value;
- for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) {
- value = t1.get$current(t1);
- if (first)
- first = false;
- else
- t2.write$1(0, text);
- callback.call$1(value);
- }
- },
- _writeBetween$3(iterable, text, callback) {
- return this._writeBetween$1$3(iterable, text, callback, type$.dynamic);
- }
- };
- A._SerializeVisitor_visitCssComment_closure.prototype = {
- call$0() {
- var t2, t3, _0_0, minimumIndentation,
- t1 = this.$this;
- if (t1._style === B.OutputStyle_1 && this.node.text.charCodeAt(2) !== 33)
- return;
- t2 = this.node;
- t3 = t2.text;
- if (B.JSString_methods.startsWith$1(t3, A.RegExp_RegExp("/\\*# source(Mapping)?URL=", false)))
- return;
- _0_0 = t1._minimumIndentation$1(t3);
- if (_0_0 != null) {
- t2 = t2.span;
- t2 = t2.get$start(t2);
- minimumIndentation = Math.min(_0_0, t2.file.getColumn$1(t2.offset));
- t1._writeIndentation$0();
- t1._writeWithIndent$2(t3, minimumIndentation);
- } else {
- t1._writeIndentation$0();
- t1._serialize$_buffer.write$1(0, t3);
- }
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssAtRule_closure.prototype = {
- call$0() {
- var t3, _0_0,
- t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.writeCharCode$1(64);
- t3 = this.node;
- t1._serialize$_write$1(t3.name);
- _0_0 = t3.value;
- if (_0_0 != null) {
- t2.writeCharCode$1(32);
- t1._serialize$_write$1(_0_0);
- }
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssMediaRule_closure.prototype = {
- call$0() {
- var t3, firstQuery, t4, t5,
- t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.write$1(0, "@media");
- t3 = this.node.queries;
- firstQuery = B.JSArray_methods.get$first(t3);
- t4 = t1._style === B.OutputStyle_1;
- if (t4)
- if (firstQuery.modifier == null)
- if (firstQuery.type == null) {
- t5 = firstQuery.conditions;
- t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not ");
- } else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5)
- t2.writeCharCode$1(32);
- t2 = t4 ? "," : ", ";
- t1._writeBetween$3(t3, t2, t1.get$_visitMediaQuery());
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssImport_closure.prototype = {
- call$0() {
- var t3, t4, _0_0,
- t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.write$1(0, "@import");
- t3 = t1._style !== B.OutputStyle_1;
- if (t3)
- t2.writeCharCode$1(32);
- t4 = this.node;
- t2.forSpan$2(t4.url.span, new A._SerializeVisitor_visitCssImport__closure(t1, t4));
- _0_0 = t4.modifiers;
- if (_0_0 != null) {
- if (t3)
- t2.writeCharCode$1(32);
- t2.write$1(0, _0_0);
- }
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssImport__closure.prototype = {
- call$0() {
- return this.$this._writeImportUrl$1(this.node.url.value);
- },
- $signature: 0
- };
- A._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._style === B.OutputStyle_1 ? "," : ", ",
- t3 = t1._serialize$_buffer;
- return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
- },
- $signature: 0
- };
- A._SerializeVisitor_visitCssStyleRule_closure.prototype = {
- call$0() {
- return this.$this.visitSelectorList$1(this.node._style_rule$_selector._box$_inner.value);
- },
- $signature: 0
- };
- A._SerializeVisitor_visitCssSupportsRule_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._serialize$_buffer;
- t2.write$1(0, "@supports");
- if (!(t1._style === B.OutputStyle_1 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
- t2.writeCharCode$1(32);
- t1._serialize$_write$1(this.node.condition);
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssDeclaration_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.node;
- if (t1._style === B.OutputStyle_1)
- t1._writeFoldedValue$1(t2);
- else
- t1._writeReindentedValue$1(t2);
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssDeclaration_closure0.prototype = {
- call$0() {
- return this.node.value.value.accept$1(this.$this);
- },
- $signature: 0
- };
- A._SerializeVisitor_visitList_closure.prototype = {
- call$1(element) {
- return !element.get$isBlank();
- },
- $signature: 72
- };
- A._SerializeVisitor_visitList_closure0.prototype = {
- call$1(element) {
- var t1 = this.$this,
- needsParens = t1._elementNeedsParens$2(this.value._separator, element);
- if (needsParens)
- t1._serialize$_buffer.writeCharCode$1(40);
- element.accept$1(t1);
- if (needsParens)
- t1._serialize$_buffer.writeCharCode$1(41);
- },
- $signature: 54
- };
- A._SerializeVisitor_visitList_closure1.prototype = {
- call$1(element) {
- element.accept$1(this.$this);
- },
- $signature: 54
- };
- A._SerializeVisitor_visitMap_closure.prototype = {
- call$1(entry) {
- var t1 = this.$this;
- t1._writeMapElement$1(entry.key);
- t1._serialize$_buffer.write$1(0, ": ");
- t1._writeMapElement$1(entry.value);
- },
- $signature: 273
- };
- A._SerializeVisitor_visitSelectorList_closure.prototype = {
- call$1(complex) {
- return !complex.accept$1(B._IsInvisibleVisitor_true);
- },
- $signature: 16
- };
- A._SerializeVisitor__write_closure.prototype = {
- call$0() {
- return this.$this._serialize$_buffer.write$1(0, this.value.value);
- },
- $signature: 0
- };
- A._SerializeVisitor__visitChildren_closure.prototype = {
- call$0() {
- return this.child.accept$1(this.$this);
- },
- $signature: 0
- };
- A._SerializeVisitor__visitChildren_closure0.prototype = {
- call$0() {
- this.child.accept$1(this.$this);
- },
- $signature: 0
- };
- A.OutputStyle.prototype = {
- _enumToString$0() {
- return "OutputStyle." + this._name;
- }
- };
- A.LineFeed.prototype = {
- _enumToString$0() {
- return "LineFeed." + this._name;
- },
- toString$0(_) {
- return "lf";
- }
- };
- A.StatementSearchVisitor.prototype = {
- visitAtRootRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitAtRule$1(node) {
- return A.NullableExtension_andThen(node.children, this.get$visitChildren());
- },
- visitContentBlock$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitContentRule$1(node) {
- return null;
- },
- visitDebugRule$1(node) {
- return null;
- },
- visitDeclaration$1(node) {
- return A.NullableExtension_andThen(node.children, this.get$visitChildren());
- },
- visitEachRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitErrorRule$1(node) {
- return null;
- },
- visitExtendRule$1(node) {
- return null;
- },
- visitForRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitForwardRule$1(node) {
- return null;
- },
- visitFunctionRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitIfRule$1(node) {
- var t1 = A.IterableExtension_search(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure(this));
- return t1 == null ? A.NullableExtension_andThen(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure0(this)) : t1;
- },
- visitImportRule$1(node) {
- return null;
- },
- visitIncludeRule$1(node) {
- return A.NullableExtension_andThen(node.content, this.get$visitContentBlock());
- },
- visitLoudComment$1(node) {
- return null;
- },
- visitMediaRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitMixinRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitReturnRule$1(node) {
- return null;
- },
- visitSilentComment$1(node) {
- return null;
- },
- visitStyleRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitStylesheet$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitSupportsRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitUseRule$1(node) {
- return null;
- },
- visitVariableDeclaration$1(node) {
- return null;
- },
- visitWarnRule$1(node) {
- return null;
- },
- visitWhileRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitChildren$1(children) {
- return A.IterableExtension_search(children, new A.StatementSearchVisitor_visitChildren_closure(this));
- }
- };
- A.StatementSearchVisitor_visitIfRule_closure.prototype = {
- call$1(clause) {
- return A.IterableExtension_search(clause.children, new A.StatementSearchVisitor_visitIfRule__closure0(this.$this));
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(IfClause)");
- }
- };
- A.StatementSearchVisitor_visitIfRule__closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
- }
- };
- A.StatementSearchVisitor_visitIfRule_closure0.prototype = {
- call$1(lastClause) {
- return A.IterableExtension_search(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure(this.$this));
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(ElseClause)");
- }
- };
- A.StatementSearchVisitor_visitIfRule__closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
- }
- };
- A.StatementSearchVisitor_visitChildren_closure.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
- }
- };
- A.Entry.prototype = {
- compareTo$1(_, other) {
- var t1, t2,
- res = this.target.compareTo$1(0, other.target);
- if (res !== 0)
- return res;
- t1 = this.source;
- t2 = other.source;
- res = B.JSString_methods.compareTo$1(J.toString$0$(t1.file.url), J.toString$0$(t2.file.url));
- if (res !== 0)
- return res;
- return t1.compareTo$1(0, t2);
- },
- $isComparable: 1
- };
- A.Mapping.prototype = {};
- A.SingleMapping.prototype = {
- toJson$1$includeSourceContents(includeSourceContents) {
- var t1, t2, line, column, srcLine, srcColumn, srcUrlId, srcNameId, first, _i, entry, nextLine, i, t3, t4, column0, t5, newUrlId, srcLine0, srcColumn0, srcNameId0, result, _this = this,
- buff = new A.StringBuffer("");
- 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, A.throwConcurrentModificationError)(t1), ++_i) {
- entry = t1[_i];
- nextLine = entry.line;
- if (nextLine > line) {
- for (i = line; i < nextLine; ++i)
- buff._contents += ";";
- line = nextLine;
- column = 0;
- first = true;
- }
- for (t3 = J.get$iterator$ax(entry.entries); t3.moveNext$0(); column = column0, first = false) {
- t4 = t3.get$current(t3);
- if (!first)
- buff._contents += ",";
- column0 = t4.column;
- t5 = A.encodeVlq(column0 - column);
- t5 = A.StringBuffer__writeAll(buff._contents, t5, "");
- buff._contents = t5;
- newUrlId = t4.sourceUrlId;
- t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(newUrlId - srcUrlId), "");
- buff._contents = t5;
- srcLine0 = t4.sourceLine;
- t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcLine0 - srcLine), "");
- buff._contents = t5;
- srcColumn0 = t4.sourceColumn;
- t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcColumn0 - srcColumn), "");
- buff._contents = t5;
- srcNameId0 = t4.sourceNameId;
- if (srcNameId0 == null) {
- srcUrlId = newUrlId;
- srcColumn = srcColumn0;
- srcLine = srcLine0;
- continue;
- }
- buff._contents = A.StringBuffer__writeAll(t5, A.encodeVlq(srcNameId0 - srcNameId), "");
- srcNameId = srcNameId0;
- srcUrlId = newUrlId;
- srcColumn = srcColumn0;
- srcLine = srcLine0;
- }
- }
- t1 = _this.sourceRoot;
- if (t1 == null)
- t1 = "";
- t2 = buff._contents;
- result = A.LinkedHashMap_LinkedHashMap$_literal(["version", 3, "sourceRoot", t1, "sources", _this.urls, "names", _this.names, "mappings", t2.charCodeAt(0) == 0 ? t2 : t2], type$.String, type$.dynamic);
- t1 = _this.targetUrl;
- if (t1 != null)
- result.$indexSet(0, "file", t1);
- if (includeSourceContents) {
- t1 = _this.files;
- t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String?>");
- result.$indexSet(0, "sourcesContent", A.List_List$of(new A.MappedListIterable(t1, new A.SingleMapping_toJson_closure(), t2), true, t2._eval$1("ListIterable.E")));
- }
- _this.extensions.forEach$1(0, new A.SingleMapping_toJson_closure0(result));
- return result;
- },
- toJson$0() {
- return this.toJson$1$includeSourceContents(false);
- },
- toString$0(_) {
- var _this = this,
- t1 = A.getRuntimeTypeOfDartObject(_this).toString$0(0) + " : [" + "targetUrl: " + A.S(_this.targetUrl) + ", sourceRoot: " + A.S(_this.sourceRoot) + ", urls: " + A.S(_this.urls) + ", names: " + A.S(_this.names) + ", lines: " + A.S(_this.lines) + "]";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- A.SingleMapping_SingleMapping$fromEntries_closure.prototype = {
- call$0() {
- return this.urls.__js_helper$_length;
- },
- $signature: 10
- };
- A.SingleMapping_SingleMapping$fromEntries_closure0.prototype = {
- call$0() {
- return this.sourceEntry.source.file;
- },
- $signature: 274
- };
- A.SingleMapping_SingleMapping$fromEntries_closure1.prototype = {
- call$1(i) {
- return this.files.$index(0, i);
- },
- $signature: 275
- };
- A.SingleMapping_toJson_closure.prototype = {
- call$1(file) {
- return file == null ? null : A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null);
- },
- $signature: 276
- };
- A.SingleMapping_toJson_closure0.prototype = {
- call$2($name, value) {
- this.result.$indexSet(0, $name, value);
- return value;
- },
- $signature: 114
- };
- A.TargetLineEntry.prototype = {
- toString$0(_) {
- return A.getRuntimeTypeOfDartObject(this).toString$0(0) + ": " + this.line + " " + A.S(this.entries);
- }
- };
- A.TargetEntry.prototype = {
- toString$0(_) {
- var _this = this;
- return A.getRuntimeTypeOfDartObject(_this).toString$0(0) + ": (" + _this.column + ", " + _this.sourceUrlId + ", " + _this.sourceLine + ", " + _this.sourceColumn + ", " + A.S(_this.sourceNameId) + ")";
- }
- };
- A.SourceFile.prototype = {
- get$length(_) {
- return this._decodedChars.length;
- },
- get$lines() {
- return this._lineStarts.length;
- },
- SourceFile$decoded$2$url(decodedChars, url) {
- var t1, t2, t3, i, c, j;
- for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) {
- c = t1[i];
- if (c === 13) {
- j = i + 1;
- if (j >= t2 || t1[j] !== 10)
- c = 10;
- }
- if (c === 10)
- t3.push(i + 1);
- }
- },
- span$2(_, start, end) {
- return A._FileSpan$(this, start, end == null ? this._decodedChars.length : end);
- },
- span$1(_, start) {
- return this.span$2(0, start, null);
- },
- getLine$1(offset) {
- var t1, _this = this;
- if (offset < 0)
- throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (offset > _this._decodedChars.length)
- throw A.wrapException(A.RangeError$("Offset " + offset + string$.x20must_n + _this.get$length(0) + "."));
- t1 = _this._lineStarts;
- if (offset < B.JSArray_methods.get$first(t1))
- return -1;
- if (offset >= B.JSArray_methods.get$last(t1))
- return t1.length - 1;
- if (_this._isNearCachedLine$1(offset)) {
- t1 = _this._cachedLine;
- t1.toString;
- return t1;
- }
- return _this._cachedLine = _this._binarySearch$1(offset) - 1;
- },
- _isNearCachedLine$1(offset) {
- var t2, t3,
- t1 = this._cachedLine;
- if (t1 == null)
- return false;
- t2 = this._lineStarts;
- if (offset < t2[t1])
- return false;
- t3 = t2.length;
- if (t1 >= t3 - 1 || offset < t2[t1 + 1])
- return true;
- if (t1 >= t3 - 2 || offset < t2[t1 + 2]) {
- this._cachedLine = t1 + 1;
- return true;
- }
- return false;
- },
- _binarySearch$1(offset) {
- var min, half,
- t1 = this._lineStarts,
- max = t1.length - 1;
- for (min = 0; min < max;) {
- half = min + B.JSInt_methods._tdivFast$1(max - min, 2);
- if (t1[half] > offset)
- max = half;
- else
- min = half + 1;
- }
- return max;
- },
- getColumn$1(offset) {
- var line, lineStart, _this = this;
- if (offset < 0)
- throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + "."));
- else if (offset > _this._decodedChars.length)
- throw A.wrapException(A.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(0) + "."));
- line = _this.getLine$1(offset);
- lineStart = _this._lineStarts[line];
- if (lineStart > offset)
- throw A.wrapException(A.RangeError$("Line " + line + " comes after offset " + offset + "."));
- return offset - lineStart;
- },
- getOffset$1(line) {
- var t1, t2, result, t3;
- if (line < 0)
- throw A.wrapException(A.RangeError$("Line may not be negative, was " + line + "."));
- else {
- t1 = this._lineStarts;
- t2 = t1.length;
- if (line >= t2)
- throw A.wrapException(A.RangeError$("Line " + line + " must be less than the number of lines in the file, " + this.get$lines() + "."));
- }
- result = t1[line];
- if (result <= this._decodedChars.length) {
- t3 = line + 1;
- t1 = t3 < t2 && result >= t1[t3];
- } else
- t1 = true;
- if (t1)
- throw A.wrapException(A.RangeError$("Line " + line + " doesn't have 0 columns."));
- return result;
- }
- };
- A.FileLocation.prototype = {
- get$sourceUrl(_) {
- return this.file.url;
- },
- get$line() {
- return this.file.getLine$1(this.offset);
- },
- get$column() {
- return this.file.getColumn$1(this.offset);
- },
- FileLocation$_$2(file, offset) {
- var t2,
- t1 = this.offset;
- if (t1 < 0)
- throw A.wrapException(A.RangeError$("Offset may not be negative, was " + t1 + "."));
- else {
- t2 = this.file;
- if (t1 > t2._decodedChars.length)
- throw A.wrapException(A.RangeError$("Offset " + t1 + string$.x20must_n + t2.get$length(0) + "."));
- }
- },
- pointSpan$0() {
- var t1 = this.offset;
- return A._FileSpan$(this.file, t1, t1);
- },
- get$offset() {
- return this.offset;
- }
- };
- A._FileSpan.prototype = {
- get$sourceUrl(_) {
- return this.file.url;
- },
- get$length(_) {
- return this._end - this._file$_start;
- },
- get$start(_) {
- return A.FileLocation$_(this.file, this._file$_start);
- },
- get$end(_) {
- return A.FileLocation$_(this.file, this._end);
- },
- get$text() {
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null);
- },
- get$context(_) {
- var _this = this,
- t1 = _this.file,
- endOffset = _this._end,
- endLine = t1.getLine$1(endOffset);
- if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) {
- if (endOffset - _this._file$_start === 0)
- return endLine === t1._lineStarts.length - 1 ? "" : A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(endLine), t1.getOffset$1(endLine + 1)), 0, null);
- } else
- endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1);
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null);
- },
- _FileSpan$3(file, _start, _end) {
- var t3,
- t1 = this._end,
- t2 = this._file$_start;
- if (t1 < t2)
- throw A.wrapException(A.ArgumentError$("End " + t1 + " must come after start " + t2 + ".", null));
- else {
- t3 = this.file;
- if (t1 > t3._decodedChars.length)
- throw A.wrapException(A.RangeError$("End " + t1 + string$.x20must_n + t3.get$length(0) + "."));
- else if (t2 < 0)
- throw A.wrapException(A.RangeError$("Start may not be negative, was " + t2 + "."));
- }
- },
- compareTo$1(_, other) {
- var result;
- if (!(other instanceof A._FileSpan))
- return this.super$SourceSpanMixin$compareTo(0, other);
- result = B.JSInt_methods.compareTo$1(this._file$_start, other._file$_start);
- return result === 0 ? B.JSInt_methods.compareTo$1(this._end, other._end) : result;
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- if (!type$.FileSpan._is(other))
- return _this.super$SourceSpanMixin$$eq(0, other);
- if (!(other instanceof A._FileSpan))
- return _this.super$SourceSpanMixin$$eq(0, other) && J.$eq$(_this.file.url, other.get$sourceUrl(other));
- return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url);
- },
- get$hashCode(_) {
- return A.Object_hash(this._file$_start, this._end, this.file.url, B.C_SentinelValue);
- },
- expand$1(_, other) {
- var t2, t3, _this = this,
- t1 = _this.file;
- if (!J.$eq$(t1.url, other.get$sourceUrl(other)))
- throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(0)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
- t2 = _this._file$_start;
- t3 = _this._end;
- if (other instanceof A._FileSpan)
- return A._FileSpan$(t1, Math.min(t2, other._file$_start), Math.max(t3, other._end));
- else
- return A._FileSpan$(t1, Math.min(t2, other.get$start(other).offset), Math.max(t3, other.get$end(other).offset));
- },
- $isFileSpan: 1,
- $isSourceSpanWithContext: 1,
- get$file(receiver) {
- return this.file;
- }
- };
- A.Highlighter.prototype = {
- highlight$0() {
- var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, t10, t11, index, primaryIdx, primary, _i, highlight, _this = this, _null = null,
- t1 = _this._lines;
- _this._writeFileStart$1(B.JSArray_methods.get$first(t1).url);
- t2 = _this._maxMultilineSpans;
- highlightsByColumn = A.List_List$filled(t2, _null, false, type$.nullable__Highlight);
- for (t3 = _this._highlighter$_buffer, t2 = t2 !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) {
- line = t1[i];
- if (i > 0) {
- lastLine = t1[i - 1];
- t5 = lastLine.url;
- t6 = line.url;
- if (!J.$eq$(t5, t6)) {
- _this._writeSidebar$1$end($._glyphs.get$upEnd());
- t3._contents += "\n";
- _this._writeFileStart$1(t6);
- } else if (lastLine.number + 1 !== line.number) {
- _this._writeSidebar$1$text("...");
- t3._contents += "\n";
- }
- }
- for (t5 = line.highlights, t6 = A._arrayInstanceType(t5)._eval$1("ReversedListIterable<1>"), t7 = new A.ReversedListIterable(t5, t6), t7 = new A.ListIterator(t7, t7.get$length(0), t6._eval$1("ListIterator<ListIterable.E>")), t6 = t6._eval$1("ListIterable.E"), t8 = line.number, t9 = line.text; t7.moveNext$0();) {
- t10 = t7.__internal$_current;
- if (t10 == null)
- t10 = t6._as(t10);
- t11 = t10.span;
- if (t11.get$start(t11).get$line() !== t11.get$end(t11).get$line() && t11.get$start(t11).get$line() === t8 && _this._isOnlyWhitespace$1(B.JSString_methods.substring$2(t9, 0, t11.get$start(t11).get$column()))) {
- index = B.JSArray_methods.indexOf$1(highlightsByColumn, _null);
- if (index < 0)
- A.throwExpression(A.ArgumentError$(A.S(highlightsByColumn) + " contains no null elements.", _null));
- highlightsByColumn[index] = t10;
- }
- }
- _this._writeSidebar$1$line(t8);
- t3._contents += " ";
- _this._writeMultilineHighlights$2(line, highlightsByColumn);
- if (t2)
- t3._contents += " ";
- primaryIdx = B.JSArray_methods.indexWhere$1(t5, new A.Highlighter_highlight_closure());
- primary = primaryIdx === -1 ? _null : t5[primaryIdx];
- t6 = primary != null;
- if (t6) {
- t7 = primary.span;
- t10 = t7.get$start(t7).get$line() === t8 ? t7.get$start(t7).get$column() : 0;
- _this._writeHighlightedText$4$color(t9, t10, t7.get$end(t7).get$line() === t8 ? t7.get$end(t7).get$column() : t9.length, t4);
- } else
- _this._writeText$1(t9);
- t3._contents += "\n";
- if (t6)
- _this._writeIndicator$3(line, primary, highlightsByColumn);
- for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, A.throwConcurrentModificationError)(t5), ++_i) {
- highlight = t5[_i];
- if (highlight.isPrimary)
- continue;
- _this._writeIndicator$3(line, highlight, highlightsByColumn);
- }
- }
- _this._writeSidebar$1$end($._glyphs.get$upEnd());
- t1 = t3._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _writeFileStart$1(url) {
- var _this = this,
- t1 = !_this._multipleFiles || !type$.Uri._is(url),
- t2 = $._glyphs;
- if (t1)
- _this._writeSidebar$1$end(t2.get$downEnd());
- else {
- _this._writeSidebar$1$end(t2.get$topLeftCorner());
- _this._colorize$2$color(new A.Highlighter__writeFileStart_closure(_this), "\x1b[34m");
- t1 = _this._highlighter$_buffer;
- t2 = " " + $.$get$context().prettyUri$1(url);
- t1._contents += t2;
- }
- _this._highlighter$_buffer._contents += "\n";
- },
- _writeMultilineHighlights$3$current(line, highlightsByColumn, current) {
- var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, startLine, t7, endLine, _this = this, _box_0 = {};
- _box_0.openedOnThisLine = false;
- _box_0.openedOnThisLineColor = null;
- t1 = current == null;
- if (t1)
- currentColor = null;
- else
- currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor;
- for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) {
- highlight = highlightsByColumn[_i];
- t6 = highlight == null;
- if (t6)
- startLine = null;
- else {
- t7 = highlight.span;
- startLine = t7.get$start(t7).get$line();
- }
- if (t6)
- endLine = null;
- else {
- t7 = highlight.span;
- endLine = t7.get$end(t7).get$line();
- }
- if (t1 && highlight === current) {
- _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor);
- foundCurrent = true;
- } else if (foundCurrent)
- _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor);
- else if (t6)
- if (_box_0.openedOnThisLine)
- _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor);
- else
- t5._contents += " ";
- else {
- t6 = highlight.isPrimary ? t4 : t3;
- _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6);
- }
- }
- },
- _writeMultilineHighlights$2(line, highlightsByColumn) {
- return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null);
- },
- _writeHighlightedText$4$color(text, startColumn, endColumn, color) {
- var _this = this;
- _this._writeText$1(B.JSString_methods.substring$2(text, 0, startColumn));
- _this._colorize$2$color(new A.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color);
- _this._writeText$1(B.JSString_methods.substring$2(text, endColumn, text.length));
- },
- _writeIndicator$3(line, highlight, highlightsByColumn) {
- var t2, coversWholeLine, _this = this,
- color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor,
- t1 = highlight.span;
- if (t1.get$start(t1).get$line() === t1.get$end(t1).get$line()) {
- _this._writeSidebar$0();
- t1 = _this._highlighter$_buffer;
- t1._contents += " ";
- _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
- if (highlightsByColumn.length !== 0)
- t1._contents += " ";
- _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure(_this, line, highlight), color));
- } else {
- t2 = line.number;
- if (t1.get$start(t1).get$line() === t2) {
- if (B.JSArray_methods.contains$1(highlightsByColumn, highlight))
- return;
- A.replaceFirstNull(highlightsByColumn, highlight);
- _this._writeSidebar$0();
- t1 = _this._highlighter$_buffer;
- t1._contents += " ";
- _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
- _this._colorize$2$color(new A.Highlighter__writeIndicator_closure0(_this, line, highlight), color);
- t1._contents += "\n";
- } else if (t1.get$end(t1).get$line() === t2) {
- coversWholeLine = t1.get$end(t1).get$column() === line.text.length;
- if (coversWholeLine && highlight.label == null) {
- A.replaceWithNull(highlightsByColumn, highlight);
- return;
- }
- _this._writeSidebar$0();
- _this._highlighter$_buffer._contents += " ";
- _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
- _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color));
- A.replaceWithNull(highlightsByColumn, highlight);
- }
- }
- },
- _writeArrow$3$beginning(line, column, beginning) {
- var t2,
- t1 = beginning ? 0 : 1,
- tabs = this._countTabs$1(B.JSString_methods.substring$2(line.text, 0, column + t1));
- t1 = this._highlighter$_buffer;
- t2 = B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3);
- t2 = t1._contents += t2;
- t1._contents = t2 + "^";
- },
- _writeArrow$2(line, column) {
- return this._writeArrow$3$beginning(line, column, true);
- },
- _writeLabel$3(highlight, highlightsByColumn, underlineLength) {
- var lines, color, t1, t2, t3, t4, t5, t6, _i, columnHighlight, _this = this,
- label = highlight.label;
- if (label == null) {
- _this._highlighter$_buffer._contents += "\n";
- return;
- }
- lines = A._setArrayType(label.split("\n"), type$.JSArray_String);
- color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor;
- _this._colorize$2$color(new A.Highlighter__writeLabel_closure(_this, lines), color);
- t1 = _this._highlighter$_buffer;
- t1._contents += "\n";
- for (t2 = A.SubListIterable$(lines, 1, null, type$.String), t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListIterable.E>")), t4 = highlightsByColumn.length, t3 = t3._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t5 = t2.__internal$_current;
- if (t5 == null)
- t5 = t3._as(t5);
- _this._writeSidebar$0();
- t6 = t1._contents += " ";
- for (_i = 0; _i < t4; ++_i) {
- columnHighlight = highlightsByColumn[_i];
- if (columnHighlight == null || columnHighlight === highlight) {
- t6 += " ";
- t1._contents = t6;
- } else {
- t6 = $._glyphs.get$verticalLine();
- t6 = t1._contents += t6;
- }
- }
- t6 = B.JSString_methods.$mul(" ", underlineLength);
- t1._contents += t6;
- _this._colorize$2$color(new A.Highlighter__writeLabel_closure0(_this, t5), color);
- t1._contents += "\n";
- }
- },
- _writeText$1(text) {
- var t1, t2, t3, t4;
- for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this._highlighter$_buffer, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- if (t4 == null)
- t4 = t2._as(t4);
- if (t4 === 9) {
- t4 = B.JSString_methods.$mul(" ", 4);
- t3._contents += t4;
- } else {
- t4 = A.Primitives_stringFromCharCode(t4);
- t3._contents += t4;
- }
- }
- },
- _writeSidebar$3$end$line$text(end, line, text) {
- var t1 = {};
- t1.text = text;
- if (line != null)
- t1.text = B.JSInt_methods.toString$0(line + 1);
- this._colorize$2$color(new A.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m");
- },
- _writeSidebar$1$end(end) {
- return this._writeSidebar$3$end$line$text(end, null, null);
- },
- _writeSidebar$1$text(text) {
- return this._writeSidebar$3$end$line$text(null, null, text);
- },
- _writeSidebar$1$line(line) {
- return this._writeSidebar$3$end$line$text(null, line, null);
- },
- _writeSidebar$0() {
- return this._writeSidebar$3$end$line$text(null, null, null);
- },
- _countTabs$1(text) {
- var t1, t2, count, t3;
- for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"), count = 0; t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if ((t3 == null ? t2._as(t3) : t3) === 9)
- ++count;
- }
- return count;
- },
- _isOnlyWhitespace$1(text) {
- var t1, t2, t3;
- for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- if (t3 !== 32 && t3 !== 9)
- return false;
- }
- return true;
- },
- _colorize$1$2$color(callback, color) {
- var result,
- t1 = this._primaryColor != null;
- if (t1 && color != null)
- this._highlighter$_buffer._contents += color;
- result = callback.call$0();
- if (t1 && color != null)
- this._highlighter$_buffer._contents += "\x1b[0m";
- return result;
- },
- _colorize$2$color(callback, color) {
- return this._colorize$1$2$color(callback, color, type$.dynamic);
- }
- };
- A.Highlighter_closure.prototype = {
- call$0() {
- var t1 = this.color,
- t2 = J.getInterceptor$(t1);
- if (t2.$eq(t1, true))
- return "\x1b[31m";
- if (t2.$eq(t1, false))
- return null;
- return A._asStringQ(t1);
- },
- $signature: 44
- };
- A.Highlighter$__closure.prototype = {
- call$1(line) {
- var t1 = line.highlights;
- return new A.WhereIterable(t1, new A.Highlighter$___closure(), A._arrayInstanceType(t1)._eval$1("WhereIterable<1>")).get$length(0);
- },
- $signature: 277
- };
- A.Highlighter$___closure.prototype = {
- call$1(highlight) {
- var t1 = highlight.span;
- return t1.get$start(t1).get$line() !== t1.get$end(t1).get$line();
- },
- $signature: 133
- };
- A.Highlighter$__closure0.prototype = {
- call$1(line) {
- return line.url;
- },
- $signature: 279
- };
- A.Highlighter__collateLines_closure.prototype = {
- call$1(highlight) {
- var t1 = highlight.span;
- t1 = t1.get$sourceUrl(t1);
- return t1 == null ? new A.Object() : t1;
- },
- $signature: 280
- };
- A.Highlighter__collateLines_closure0.prototype = {
- call$2(highlight1, highlight2) {
- return highlight1.span.compareTo$1(0, highlight2.span);
- },
- $signature: 281
- };
- A.Highlighter__collateLines_closure1.prototype = {
- call$1(entry) {
- var t1, t2, t3, t4, context, t5, linesBeforeSpan, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength, t6,
- url = entry.key,
- highlightsForFile = entry.value,
- lines = A._setArrayType([], type$.JSArray__Line);
- for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray__Highlight; t2.moveNext$0();) {
- t4 = t2.get$current(t2).span;
- context = t4.get$context(t4);
- t5 = A.findLineStart(context, t4.get$text(), t4.get$start(t4).get$column());
- t5.toString;
- linesBeforeSpan = B.JSString_methods.allMatches$1("\n", B.JSString_methods.substring$2(context, 0, t5)).get$length(0);
- lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan;
- for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) {
- line = t4[_i];
- if (lines.length === 0 || lineNumber > B.JSArray_methods.get$last(lines).number)
- lines.push(new A._Line(line, lineNumber, url, A._setArrayType([], t3)));
- ++lineNumber;
- }
- }
- activeHighlights = A._setArrayType([], t3);
- for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, A.throwConcurrentModificationError)(lines), ++_i) {
- line = lines[_i];
- if (!!activeHighlights.fixed$length)
- A.throwExpression(A.UnsupportedError$("removeWhere"));
- B.JSArray_methods._removeWhere$2(activeHighlights, new A.Highlighter__collateLines__closure(line), true);
- oldHighlightLength = activeHighlights.length;
- for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- t6 = t5.span;
- if (t6.get$start(t6).get$line() > line.number)
- break;
- activeHighlights.push(t5);
- }
- highlightIndex += activeHighlights.length - oldHighlightLength;
- B.JSArray_methods.addAll$1(line.highlights, activeHighlights);
- }
- return lines;
- },
- $signature: 282
- };
- A.Highlighter__collateLines__closure.prototype = {
- call$1(highlight) {
- var t1 = highlight.span;
- return t1.get$end(t1).get$line() < this.line.number;
- },
- $signature: 133
- };
- A.Highlighter_highlight_closure.prototype = {
- call$1(highlight) {
- return highlight.isPrimary;
- },
- $signature: 133
- };
- A.Highlighter__writeFileStart_closure.prototype = {
- call$0() {
- var t1 = this.$this._highlighter$_buffer,
- t2 = B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">";
- t1._contents += t2;
- return null;
- },
- $signature: 0
- };
- A.Highlighter__writeMultilineHighlights_closure.prototype = {
- call$0() {
- var t1 = this.$this._highlighter$_buffer,
- t2 = $._glyphs;
- t2 = this.startLine === this.line.number ? t2.get$topLeftCorner() : t2.get$bottomLeftCorner();
- t1._contents += t2;
- },
- $signature: 1
- };
- A.Highlighter__writeMultilineHighlights_closure0.prototype = {
- call$0() {
- var t1 = this.$this._highlighter$_buffer,
- t2 = $._glyphs;
- t2 = this.highlight == null ? t2.get$horizontalLine() : t2.get$cross();
- t1._contents += t2;
- },
- $signature: 1
- };
- A.Highlighter__writeMultilineHighlights_closure1.prototype = {
- call$0() {
- var t1 = this.$this._highlighter$_buffer,
- t2 = $._glyphs.get$horizontalLine();
- t1._contents += t2;
- return null;
- },
- $signature: 0
- };
- A.Highlighter__writeMultilineHighlights_closure2.prototype = {
- call$0() {
- var _this = this,
- t1 = _this._box_0,
- t2 = t1.openedOnThisLine,
- t3 = $._glyphs,
- vertical = t2 ? t3.get$cross() : t3.get$verticalLine();
- if (_this.current != null)
- _this.$this._highlighter$_buffer._contents += vertical;
- else {
- t2 = _this.line;
- t3 = t2.number;
- if (_this.startLine === t3) {
- t2 = _this.$this;
- t2._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor);
- t1.openedOnThisLine = true;
- if (t1.openedOnThisLineColor == null)
- t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor;
- } else {
- if (_this.endLine === t3) {
- t3 = _this.highlight.span;
- t2 = t3.get$end(t3).get$column() === t2.text.length;
- } else
- t2 = false;
- t3 = _this.$this;
- if (t2) {
- t1 = t3._highlighter$_buffer;
- t2 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical;
- t1._contents += t2;
- } else
- t3._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor);
- }
- }
- },
- $signature: 1
- };
- A.Highlighter__writeMultilineHighlights__closure.prototype = {
- call$0() {
- var t1 = this.$this._highlighter$_buffer,
- t2 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c";
- t2 = $._glyphs.glyphOrAscii$2(t2, "/");
- t1._contents += t2;
- },
- $signature: 1
- };
- A.Highlighter__writeMultilineHighlights__closure0.prototype = {
- call$0() {
- this.$this._highlighter$_buffer._contents += this.vertical;
- },
- $signature: 1
- };
- A.Highlighter__writeHighlightedText_closure.prototype = {
- call$0() {
- var _this = this;
- return _this.$this._writeText$1(B.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn));
- },
- $signature: 0
- };
- A.Highlighter__writeIndicator_closure.prototype = {
- call$0() {
- var startColumn, endColumn, tabsBefore, tabsInside,
- t1 = this.$this,
- t2 = t1._highlighter$_buffer,
- t3 = t2._contents,
- t4 = this.highlight,
- t5 = t4.span;
- t4 = t4.isPrimary ? "^" : $._glyphs.get$horizontalLineBold();
- startColumn = t5.get$start(t5).get$column();
- endColumn = t5.get$end(t5).get$column();
- t5 = this.line.text;
- tabsBefore = t1._countTabs$1(B.JSString_methods.substring$2(t5, 0, startColumn));
- tabsInside = t1._countTabs$1(B.JSString_methods.substring$2(t5, startColumn, endColumn));
- startColumn += tabsBefore * 3;
- t5 = B.JSString_methods.$mul(" ", startColumn);
- t2._contents += t5;
- t4 = B.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1));
- t4 = t2._contents += t4;
- return t4.length - t3.length;
- },
- $signature: 10
- };
- A.Highlighter__writeIndicator_closure0.prototype = {
- call$0() {
- var t1 = this.highlight.span;
- return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column());
- },
- $signature: 0
- };
- A.Highlighter__writeIndicator_closure1.prototype = {
- call$0() {
- var t4, _this = this,
- t1 = _this.$this,
- t2 = t1._highlighter$_buffer,
- t3 = t2._contents;
- if (_this.coversWholeLine) {
- t1 = B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3);
- t2._contents += t1;
- } else {
- t4 = _this.highlight.span;
- t1._writeArrow$3$beginning(_this.line, Math.max(t4.get$end(t4).get$column() - 1, 0), false);
- }
- return t2._contents.length - t3.length;
- },
- $signature: 10
- };
- A.Highlighter__writeLabel_closure.prototype = {
- call$0() {
- var t1 = this.$this._highlighter$_buffer,
- t2 = " " + A.S(B.JSArray_methods.get$first(this.lines));
- t1._contents += t2;
- return null;
- },
- $signature: 0
- };
- A.Highlighter__writeLabel_closure0.prototype = {
- call$0() {
- this.$this._highlighter$_buffer._contents += " " + this.text;
- return null;
- },
- $signature: 0
- };
- A.Highlighter__writeSidebar_closure.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._highlighter$_buffer,
- t3 = this._box_0.text;
- if (t3 == null)
- t3 = "";
- t1 = B.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar);
- t2._contents += t1;
- t1 = this.end;
- if (t1 == null)
- t1 = $._glyphs.get$verticalLine();
- t2._contents += t1;
- },
- $signature: 1
- };
- A._Highlight.prototype = {
- toString$0(_) {
- var t1 = this.isPrimary ? "" + "primary " : "",
- t2 = this.span;
- t2 = t1 + ("" + t2.get$start(t2).get$line() + ":" + t2.get$start(t2).get$column() + "-" + t2.get$end(t2).get$line() + ":" + t2.get$end(t2).get$column());
- t1 = this.label;
- t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- A._Highlight_closure.prototype = {
- call$0() {
- var t2, t3, t4, t5,
- t1 = this.span;
- if (!(type$.SourceSpanWithContext._is(t1) && A.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) {
- t2 = A.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl(t1));
- t3 = t1.get$end(t1).get$offset();
- t4 = t1.get$sourceUrl(t1);
- t5 = A.countCodeUnits(t1.get$text(), 10);
- t1 = A.SourceSpanWithContext$(t2, A.SourceLocation$(t3, A._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text());
- }
- return A._Highlight__normalizeEndOfLine(A._Highlight__normalizeTrailingNewline(A._Highlight__normalizeNewlines(t1)));
- },
- $signature: 283
- };
- A._Line.prototype = {
- toString$0(_) {
- return "" + this.number + ': "' + this.text + '" (' + B.JSArray_methods.join$1(this.highlights, ", ") + ")";
- }
- };
- A.SourceLocation.prototype = {
- distance$1(other) {
- var t1 = this.sourceUrl;
- if (!J.$eq$(t1, other.get$sourceUrl(other)))
- throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
- return Math.abs(this.offset - other.get$offset());
- },
- compareTo$1(_, other) {
- var t1 = this.sourceUrl;
- if (!J.$eq$(t1, other.get$sourceUrl(other)))
- throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
- return this.offset - other.get$offset();
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return type$.SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl(other)) && this.offset === other.get$offset();
- },
- get$hashCode(_) {
- var t1 = this.sourceUrl;
- t1 = t1 == null ? null : t1.get$hashCode(t1);
- if (t1 == null)
- t1 = 0;
- return t1 + this.offset;
- },
- toString$0(_) {
- var _this = this,
- t1 = A.getRuntimeTypeOfDartObject(_this).toString$0(0),
- source = _this.sourceUrl;
- return "<" + t1 + ": " + _this.offset + " " + (A.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">";
- },
- $isComparable: 1,
- get$sourceUrl(receiver) {
- return this.sourceUrl;
- },
- get$offset() {
- return this.offset;
- },
- get$line() {
- return this.line;
- },
- get$column() {
- return this.column;
- }
- };
- A.SourceLocationMixin.prototype = {
- distance$1(other) {
- if (!J.$eq$(this.file.url, other.get$sourceUrl(other)))
- throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(this.get$sourceUrl(0)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
- return Math.abs(this.offset - other.get$offset());
- },
- compareTo$1(_, other) {
- if (!J.$eq$(this.file.url, other.get$sourceUrl(other)))
- throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(this.get$sourceUrl(0)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
- return this.offset - other.get$offset();
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return type$.SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl(other)) && this.offset === other.get$offset();
- },
- get$hashCode(_) {
- var t1 = this.file.url;
- t1 = t1 == null ? null : t1.get$hashCode(t1);
- if (t1 == null)
- t1 = 0;
- return t1 + this.offset;
- },
- toString$0(_) {
- var t1 = A.getRuntimeTypeOfDartObject(this).toString$0(0),
- t2 = this.offset,
- t3 = this.file,
- source = t3.url;
- return "<" + t1 + ": " + t2 + " " + (A.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t2) + 1) + ":" + (t3.getColumn$1(t2) + 1)) + ">";
- },
- $isComparable: 1,
- $isSourceLocation: 1
- };
- A.SourceSpanBase.prototype = {
- SourceSpanBase$3(start, end, text) {
- var t3,
- t1 = this.end,
- t2 = this.start;
- if (!J.$eq$(t1.get$sourceUrl(t1), t2.get$sourceUrl(t2)))
- throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t2.get$sourceUrl(t2)) + '" and "' + A.S(t1.get$sourceUrl(t1)) + "\" don't match.", null));
- else if (t1.get$offset() < t2.get$offset())
- throw A.wrapException(A.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + ".", null));
- else {
- t3 = this.text;
- if (t3.length !== t2.distance$1(t1))
- throw A.wrapException(A.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long.", null));
- }
- },
- get$start(receiver) {
- return this.start;
- },
- get$end(receiver) {
- return this.end;
- },
- get$text() {
- return this.text;
- }
- };
- A.SourceSpanException.prototype = {
- get$message(_) {
- return this._span_exception$_message;
- },
- get$span(_) {
- return this._span;
- },
- toString$1$color(_, color) {
- var _this = this;
- _this.get$span(_this);
- return "Error on " + _this.get$span(_this).message$2$color(0, _this._span_exception$_message, color);
- },
- toString$0(_) {
- return this.toString$1$color(0, null);
- },
- $isException: 1
- };
- A.SourceSpanFormatException.prototype = {$isFormatException: 1,
- get$source() {
- return this.source;
- }
- };
- A.MultiSourceSpanException.prototype = {
- toString$0(_) {
- var _this = this;
- return "Error on " + A.SourceSpanExtension_messageMultiple(_this._span, _this._span_exception$_message, _this.primaryLabel, _this.secondarySpans, false, null, null);
- },
- get$primaryLabel() {
- return this.primaryLabel;
- },
- get$secondarySpans() {
- return this.secondarySpans;
- }
- };
- A.MultiSourceSpanFormatException.prototype = {$isFormatException: 1};
- A.SourceSpanMixin.prototype = {
- get$sourceUrl(_) {
- var t1 = this.get$start(this);
- return t1.get$sourceUrl(t1);
- },
- get$length(_) {
- var _this = this;
- return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset();
- },
- compareTo$1(_, other) {
- var _this = this,
- result = _this.get$start(_this).compareTo$1(0, other.get$start(other));
- return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result;
- },
- message$2$color(_, message, color) {
- var t2, t3, highlight, _this = this,
- t1 = "" + ("line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1));
- if (_this.get$sourceUrl(_this) != null) {
- t2 = _this.get$sourceUrl(_this);
- t3 = $.$get$context();
- t2.toString;
- t2 = t1 + (" of " + t3.prettyUri$1(t2));
- t1 = t2;
- }
- t1 += ": " + message;
- highlight = _this.highlight$1$color(color);
- if (highlight.length !== 0)
- t1 = t1 + "\n" + highlight;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- message$1(_, message) {
- return this.message$2$color(0, message, null);
- },
- highlight$1$color(color) {
- var _this = this;
- if (!type$.SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0)
- return "";
- return A.Highlighter$(_this, color).highlight$0();
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- 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));
- },
- get$hashCode(_) {
- var _this = this;
- return A.Object_hash(_this.get$start(_this), _this.get$end(_this), B.C_SentinelValue, B.C_SentinelValue);
- },
- toString$0(_) {
- var _this = this;
- return "<" + A.getRuntimeTypeOfDartObject(_this).toString$0(0) + ": from " + _this.get$start(_this).toString$0(0) + " to " + _this.get$end(_this).toString$0(0) + ' "' + _this.get$text() + '">';
- },
- $isComparable: 1,
- $isSourceSpan: 1
- };
- A.SourceSpanWithContext.prototype = {
- get$context(_) {
- return this._context;
- }
- };
- A.Chain.prototype = {
- toTrace$0() {
- var t1 = this.traces;
- return A.Trace$(new A.ExpandIterable(t1, new A.Chain_toTrace_closure(), A._arrayInstanceType(t1)._eval$1("ExpandIterable<1,Frame>")), null);
- },
- toString$0(_) {
- var t1 = this.traces,
- t2 = A._arrayInstanceType(t1);
- return new A.MappedListIterable(t1, new A.Chain_toString_closure(new A.MappedListIterable(t1, new A.Chain_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT)), t2._eval$1("MappedListIterable<1,String>")).join$1(0, string$.x3d_____);
- },
- $isStackTrace: 1
- };
- A.Chain_Chain$parse_closure.prototype = {
- call$1(line) {
- return line.length !== 0;
- },
- $signature: 4
- };
- A.Chain_toTrace_closure.prototype = {
- call$1(trace) {
- return trace.get$frames();
- },
- $signature: 284
- };
- A.Chain_toString_closure0.prototype = {
- call$1(trace) {
- var t1 = trace.get$frames();
- return new A.MappedListIterable(t1, new A.Chain_toString__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT);
- },
- $signature: 285
- };
- A.Chain_toString__closure0.prototype = {
- call$1(frame) {
- return frame.get$location().length;
- },
- $signature: 261
- };
- A.Chain_toString_closure.prototype = {
- call$1(trace) {
- var t1 = trace.get$frames();
- return new A.MappedListIterable(t1, new A.Chain_toString__closure(this.longest), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- $signature: 287
- };
- A.Chain_toString__closure.prototype = {
- call$1(frame) {
- return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n";
- },
- $signature: 260
- };
- A.Frame.prototype = {
- get$isCore() {
- return this.uri.get$scheme() === "dart";
- },
- get$library() {
- var t1 = this.uri;
- if (t1.get$scheme() === "data")
- return "data:...";
- return $.$get$context().prettyUri$1(t1);
- },
- get$$package() {
- var t1 = this.uri;
- if (t1.get$scheme() !== "package")
- return null;
- return B.JSArray_methods.get$first(t1.get$path(t1).split("/"));
- },
- get$location() {
- var t2, _this = this,
- t1 = _this.line;
- if (t1 == null)
- return _this.get$library();
- t2 = _this.column;
- if (t2 == null)
- return _this.get$library() + " " + A.S(t1);
- return _this.get$library() + " " + A.S(t1) + ":" + A.S(t2);
- },
- toString$0(_) {
- return this.get$location() + " in " + A.S(this.member);
- },
- get$uri() {
- return this.uri;
- },
- get$line() {
- return this.line;
- },
- get$column() {
- return this.column;
- },
- get$member() {
- return this.member;
- }
- };
- A.Frame_Frame$parseVM_closure.prototype = {
- call$0() {
- var match, t2, t3, member, uri, lineAndColumn, line, _null = null,
- t1 = this.frame;
- if (t1 === "...")
- return new A.Frame(A._Uri__Uri(_null, _null, _null, _null), _null, _null, "...");
- match = $.$get$_vmFrame().firstMatch$1(t1);
- if (match == null)
- return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
- t1 = match._match;
- t2 = t1[1];
- t2.toString;
- t3 = $.$get$_asyncBody();
- t2 = A.stringReplaceAllUnchecked(t2, t3, "<async>");
- member = A.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>");
- t2 = t1[2];
- t3 = t2;
- t3.toString;
- if (B.JSString_methods.startsWith$1(t3, "<data:"))
- uri = A.Uri_Uri$dataFromString("", _null, _null);
- else {
- t2 = t2;
- t2.toString;
- uri = A.Uri_parse(t2);
- }
- lineAndColumn = t1[3].split(":");
- t1 = lineAndColumn.length;
- line = t1 > 1 ? A.int_parse(lineAndColumn[1], _null) : _null;
- return new A.Frame(uri, line, t1 > 2 ? A.int_parse(lineAndColumn[2], _null) : _null, member);
- },
- $signature: 69
- };
- A.Frame_Frame$parseV8_closure.prototype = {
- call$0() {
- var t2, t3, _s4_ = "<fn>",
- t1 = this.frame,
- match = $.$get$_v8Frame().firstMatch$1(t1);
- if (match == null)
- return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), t1);
- t1 = new A.Frame_Frame$parseV8_closure_parseLocation(t1);
- t2 = match._match;
- t3 = t2[2];
- if (t3 != null) {
- t3 = t3;
- t3.toString;
- t2 = t2[1];
- t2.toString;
- t2 = A.stringReplaceAllUnchecked(t2, "<anonymous>", _s4_);
- t2 = A.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_);
- return t1.call$2(t3, A.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_));
- } else {
- t2 = t2[3];
- t2.toString;
- return t1.call$2(t2, _s4_);
- }
- },
- $signature: 69
- };
- A.Frame_Frame$parseV8_closure_parseLocation.prototype = {
- call$2($location, member) {
- var t2, urlMatch, uri, line, columnMatch, _null = null,
- t1 = $.$get$_v8EvalLocation(),
- evalMatch = t1.firstMatch$1($location);
- for (; evalMatch != null; $location = t2) {
- t2 = evalMatch._match[1];
- t2.toString;
- evalMatch = t1.firstMatch$1(t2);
- }
- if ($location === "native")
- return new A.Frame(A.Uri_parse("native"), _null, _null, member);
- urlMatch = $.$get$_v8UrlLocation().firstMatch$1($location);
- if (urlMatch == null)
- return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), this.frame);
- t1 = urlMatch._match;
- t2 = t1[1];
- t2.toString;
- uri = A.Frame__uriOrPathToUri(t2);
- t2 = t1[2];
- t2.toString;
- line = A.int_parse(t2, _null);
- columnMatch = t1[3];
- return new A.Frame(uri, line, columnMatch != null ? A.int_parse(columnMatch, _null) : _null, member);
- },
- $signature: 290
- };
- A.Frame_Frame$_parseFirefoxEval_closure.prototype = {
- call$0() {
- var t2, member, uri, line, _null = null,
- t1 = this.frame,
- match = $.$get$_firefoxEvalLocation().firstMatch$1(t1);
- if (match == null)
- return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
- t1 = match._match;
- t2 = t1[1];
- t2.toString;
- member = A.stringReplaceAllUnchecked(t2, "/<", "");
- t2 = t1[2];
- t2.toString;
- uri = A.Frame__uriOrPathToUri(t2);
- t1 = t1[3];
- t1.toString;
- line = A.int_parse(t1, _null);
- return new A.Frame(uri, line, _null, member.length === 0 || member === "anonymous" ? "<fn>" : member);
- },
- $signature: 69
- };
- A.Frame_Frame$parseFirefox_closure.prototype = {
- call$0() {
- var t2, t3, t4, uri, member, line, column, _null = null,
- t1 = this.frame,
- match = $.$get$_firefoxSafariFrame().firstMatch$1(t1);
- if (match == null)
- return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
- t2 = match._match;
- t3 = t2[3];
- t4 = t3;
- t4.toString;
- if (B.JSString_methods.contains$1(t4, " line "))
- return A.Frame_Frame$_parseFirefoxEval(t1);
- t1 = t3;
- t1.toString;
- uri = A.Frame__uriOrPathToUri(t1);
- member = t2[1];
- if (member != null) {
- t1 = t2[2];
- t1.toString;
- member += B.JSArray_methods.join$0(A.List_List$filled(B.JSString_methods.allMatches$1("/", t1).get$length(0), ".<fn>", false, type$.String));
- if (member === "")
- member = "<fn>";
- member = B.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), "");
- } else
- member = "<fn>";
- t1 = t2[4];
- if (t1 === "")
- line = _null;
- else {
- t1 = t1;
- t1.toString;
- line = A.int_parse(t1, _null);
- }
- t1 = t2[5];
- if (t1 == null || t1 === "")
- column = _null;
- else {
- t1 = t1;
- t1.toString;
- column = A.int_parse(t1, _null);
- }
- return new A.Frame(uri, line, column, member);
- },
- $signature: 69
- };
- A.Frame_Frame$parseFriendly_closure.prototype = {
- call$0() {
- var t2, uri, line, column, _null = null,
- t1 = this.frame,
- match = $.$get$_friendlyFrame().firstMatch$1(t1);
- if (match == null)
- throw A.wrapException(A.FormatException$("Couldn't parse package:stack_trace stack trace line '" + t1 + "'.", _null, _null));
- t1 = match._match;
- t2 = t1[1];
- if (t2 === "data:...")
- uri = A.Uri_Uri$dataFromString("", _null, _null);
- else {
- t2 = t2;
- t2.toString;
- uri = A.Uri_parse(t2);
- }
- if (uri.get$scheme() === "") {
- t2 = $.$get$context();
- uri = t2.toUri$1(A.absolute(t2.style.pathFromUri$1(A._parseUri(uri)), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
- }
- t2 = t1[2];
- if (t2 == null)
- line = _null;
- else {
- t2 = t2;
- t2.toString;
- line = A.int_parse(t2, _null);
- }
- t2 = t1[3];
- if (t2 == null)
- column = _null;
- else {
- t2 = t2;
- t2.toString;
- column = A.int_parse(t2, _null);
- }
- return new A.Frame(uri, line, column, t1[4]);
- },
- $signature: 69
- };
- A.LazyTrace.prototype = {
- get$_lazy_trace$_trace() {
- var result, _this = this,
- value = _this.__LazyTrace__trace_FI;
- if (value === $) {
- result = _this._thunk.call$0();
- _this.__LazyTrace__trace_FI !== $ && A.throwUnnamedLateFieldADI();
- _this.__LazyTrace__trace_FI = result;
- value = result;
- }
- return value;
- },
- get$frames() {
- return this.get$_lazy_trace$_trace().get$frames();
- },
- get$terse() {
- return new A.LazyTrace(new A.LazyTrace_terse_closure(this));
- },
- toString$0(_) {
- return this.get$_lazy_trace$_trace().toString$0(0);
- },
- $isStackTrace: 1,
- $isTrace: 1
- };
- A.LazyTrace_terse_closure.prototype = {
- call$0() {
- return this.$this.get$_lazy_trace$_trace().get$terse();
- },
- $signature: 259
- };
- A.Trace.prototype = {
- get$terse() {
- return this.foldFrames$2$terse(new A.Trace_terse_closure(), true);
- },
- foldFrames$2$terse(predicate, terse) {
- var newFrames, t1, t2, t3, _box_0 = {};
- _box_0.predicate = predicate;
- _box_0.predicate = new A.Trace_foldFrames_closure(predicate);
- newFrames = A._setArrayType([], type$.JSArray_Frame);
- for (t1 = this.frames, t2 = A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"), t1 = new A.ReversedListIterable(t1, t2), t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- if (t3 instanceof A.UnparsedFrame || !_box_0.predicate.call$1(t3))
- newFrames.push(t3);
- else if (newFrames.length === 0 || !_box_0.predicate.call$1(B.JSArray_methods.get$last(newFrames)))
- newFrames.push(new A.Frame(t3.get$uri(), t3.get$line(), t3.get$column(), t3.get$member()));
- }
- t1 = type$.MappedListIterable_Frame_Frame;
- newFrames = A.List_List$of(new A.MappedListIterable(newFrames, new A.Trace_foldFrames_closure0(_box_0), t1), true, t1._eval$1("ListIterable.E"));
- if (newFrames.length > 1 && _box_0.predicate.call$1(B.JSArray_methods.get$first(newFrames)))
- B.JSArray_methods.removeAt$1(newFrames, 0);
- return A.Trace$(new A.ReversedListIterable(newFrames, A._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), this.original._stackTrace);
- },
- toString$0(_) {
- var t1 = this.frames,
- t2 = A._arrayInstanceType(t1);
- return new A.MappedListIterable(t1, new A.Trace_toString_closure(new A.MappedListIterable(t1, new A.Trace_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT)), t2._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- $isStackTrace: 1,
- get$frames() {
- return this.frames;
- }
- };
- A.Trace_Trace$from_closure.prototype = {
- call$0() {
- return A.Trace_Trace$parse(this.trace.toString$0(0));
- },
- $signature: 259
- };
- A.Trace__parseVM_closure.prototype = {
- call$1(line) {
- return line.length !== 0;
- },
- $signature: 4
- };
- A.Trace$parseV8_closure.prototype = {
- call$1(line) {
- return !B.JSString_methods.startsWith$1(line, $.$get$_v8TraceLine());
- },
- $signature: 4
- };
- A.Trace$parseJSCore_closure.prototype = {
- call$1(line) {
- return line !== "\tat ";
- },
- $signature: 4
- };
- A.Trace$parseFirefox_closure.prototype = {
- call$1(line) {
- return line.length !== 0 && line !== "[native code]";
- },
- $signature: 4
- };
- A.Trace$parseFriendly_closure.prototype = {
- call$1(line) {
- return !B.JSString_methods.startsWith$1(line, "=====");
- },
- $signature: 4
- };
- A.Trace_terse_closure.prototype = {
- call$1(_) {
- return false;
- },
- $signature: 258
- };
- A.Trace_foldFrames_closure.prototype = {
- call$1(frame) {
- var t1;
- if (this.oldPredicate.call$1(frame))
- return true;
- if (frame.get$isCore())
- return true;
- if (frame.get$$package() === "stack_trace")
- return true;
- t1 = frame.get$member();
- t1.toString;
- if (!B.JSString_methods.contains$1(t1, "<async>"))
- return false;
- return frame.get$line() == null;
- },
- $signature: 258
- };
- A.Trace_foldFrames_closure0.prototype = {
- call$1(frame) {
- var t1, t2;
- if (frame instanceof A.UnparsedFrame || !this._box_0.predicate.call$1(frame))
- return frame;
- t1 = frame.get$library();
- t2 = $.$get$_terseRegExp();
- return new A.Frame(A.Uri_parse(A.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member());
- },
- $signature: 293
- };
- A.Trace_toString_closure0.prototype = {
- call$1(frame) {
- return frame.get$location().length;
- },
- $signature: 261
- };
- A.Trace_toString_closure.prototype = {
- call$1(frame) {
- if (frame instanceof A.UnparsedFrame)
- return frame.toString$0(0) + "\n";
- return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n";
- },
- $signature: 260
- };
- A.UnparsedFrame.prototype = {
- toString$0(_) {
- return this.member;
- },
- $isFrame: 1,
- get$uri() {
- return this.uri;
- },
- get$line() {
- return null;
- },
- get$column() {
- return null;
- },
- get$isCore() {
- return false;
- },
- get$library() {
- return "unparsed";
- },
- get$$package() {
- return null;
- },
- get$location() {
- return "unparsed";
- },
- get$member() {
- return this.member;
- }
- };
- A.TransformByHandlers_transformByHandlers_closure.prototype = {
- call$0() {
- var t2, subscription, t3, t4, _this = this, t1 = {};
- t1.valuesDone = false;
- t2 = _this.controller;
- subscription = _this._this.listen$3$onDone$onError(0, new A.TransformByHandlers_transformByHandlers__closure(_this.handleData, t2, _this.S), new A.TransformByHandlers_transformByHandlers__closure0(t1, _this.handleDone, t2), new A.TransformByHandlers_transformByHandlers__closure1(_this.handleError, t2));
- t3 = _this._box_1;
- t3.subscription = subscription;
- t2.set$onPause(subscription.get$pause(subscription));
- t4 = t3.subscription;
- t2.set$onResume(t4.get$resume(t4));
- t2.set$onCancel(new A.TransformByHandlers_transformByHandlers__closure2(t3, t1));
- },
- $signature: 0
- };
- A.TransformByHandlers_transformByHandlers__closure.prototype = {
- call$1(value) {
- return this.handleData.call$2(value, this.controller);
- },
- $signature() {
- return this.S._eval$1("~(0)");
- }
- };
- A.TransformByHandlers_transformByHandlers__closure1.prototype = {
- call$2(error, stackTrace) {
- this.handleError.call$3(error, stackTrace, this.controller);
- },
- $signature: 52
- };
- A.TransformByHandlers_transformByHandlers__closure0.prototype = {
- call$0() {
- this._box_0.valuesDone = true;
- this.handleDone.call$1(this.controller);
- },
- $signature: 0
- };
- A.TransformByHandlers_transformByHandlers__closure2.prototype = {
- call$0() {
- var t1 = this._box_1,
- toCancel = t1.subscription;
- t1.subscription = null;
- if (!this._box_0.valuesDone)
- return toCancel.cancel$0();
- return null;
- },
- $signature: 214
- };
- A.RateLimit__debounceAggregate_closure.prototype = {
- call$2(value, sink) {
- var _this = this,
- t1 = _this._box_0,
- t2 = new A.RateLimit__debounceAggregate_closure_emit(t1, sink, _this.S),
- t3 = t1.timer;
- if (t3 != null)
- t3.cancel$0();
- t1.soFar = _this.collect.call$2(value, t1.soFar);
- t1.hasPending = true;
- if (t1.timer == null && _this.leading) {
- t1.emittedLatestAsLeading = true;
- t2.call$0();
- } else
- t1.emittedLatestAsLeading = false;
- t1.timer = A.Timer_Timer(_this.duration, new A.RateLimit__debounceAggregate__closure(t1, _this.trailing, t2, sink));
- },
- $signature() {
- return this.T._eval$1("@<0>")._bind$1(this.S)._eval$1("~(1,EventSink<2>)");
- }
- };
- A.RateLimit__debounceAggregate_closure_emit.prototype = {
- call$0() {
- var t1 = this._box_0,
- t2 = t1.soFar;
- if (t2 == null)
- t2 = this.S._as(t2);
- this.sink.add$1(0, t2);
- t1.soFar = null;
- t1.hasPending = false;
- },
- $signature: 0
- };
- A.RateLimit__debounceAggregate__closure.prototype = {
- call$0() {
- var t1 = this._box_0,
- t2 = t1.emittedLatestAsLeading;
- if (!t2)
- this.emit.call$0();
- if (t1.shouldClose)
- this.sink.close$0(0);
- t1.timer = null;
- },
- $signature: 0
- };
- A.RateLimit__debounceAggregate_closure0.prototype = {
- call$1(sink) {
- var t1 = this._box_0;
- if (t1.hasPending && this.trailing)
- t1.shouldClose = true;
- else {
- t1 = t1.timer;
- if (t1 != null)
- t1.cancel$0();
- sink.close$0(0);
- }
- },
- $signature() {
- return this.S._eval$1("~(EventSink<0>)");
- }
- };
- A.StringScannerException.prototype = {
- get$source() {
- return A._asString(this.source);
- }
- };
- A.LineScanner.prototype = {
- scanChar$1(character) {
- if (!this.super$StringScanner$scanChar(character))
- return false;
- this._adjustLineAndColumn$1(character);
- return true;
- },
- readChar$0() {
- var character = this.super$StringScanner$readChar();
- this._adjustLineAndColumn$1(character);
- return character;
- },
- _adjustLineAndColumn$1(character) {
- var t1, _this = this;
- if (character !== 10)
- t1 = character === 13 && _this.peekChar$0() !== 10;
- else
- t1 = true;
- if (t1) {
- ++_this._line_scanner$_line;
- _this._line_scanner$_column = 0;
- } else {
- t1 = _this._line_scanner$_column;
- _this._line_scanner$_column = t1 + (character >= 65536 && character <= 1114111 ? 2 : 1);
- }
- },
- scan$1(pattern) {
- var t1, newlines, t2, _this = this;
- if (!_this.super$StringScanner$scan(pattern))
- return false;
- t1 = _this.get$lastMatch();
- newlines = _this._newlinesIn$1(t1.pattern);
- t1 = _this._line_scanner$_line;
- t2 = newlines.length;
- _this._line_scanner$_line = t1 + t2;
- if (t2 === 0) {
- t1 = _this._line_scanner$_column;
- t2 = _this.get$lastMatch();
- _this._line_scanner$_column = t1 + t2.pattern.length;
- } else {
- t1 = _this.get$lastMatch();
- _this._line_scanner$_column = t1.pattern.length - J.get$end$z(B.JSArray_methods.get$last(newlines));
- }
- return true;
- },
- _newlinesIn$1(text) {
- var t1 = $.$get$_newlineRegExp().allMatches$1(0, text),
- newlines = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
- if (this.peekChar$1(-1) === 13 && this.peekChar$0() === 10)
- B.JSArray_methods.removeLast$0(newlines);
- return newlines;
- }
- };
- A.SpanScanner.prototype = {
- set$state(state) {
- if (state._scanner !== this)
- throw A.wrapException(A.ArgumentError$(string$.The_gi, null));
- this.set$position(state.position);
- },
- spanFrom$2(startState, endState) {
- var endPosition = endState == null ? this._string_scanner$_position : endState.position;
- return this._sourceFile.span$2(0, startState.position, endPosition);
- },
- spanFrom$1(startState) {
- return this.spanFrom$2(startState, null);
- },
- matches$1(pattern) {
- var t1, t2, _this = this;
- if (!_this.super$StringScanner$matches(pattern))
- return false;
- t1 = _this._string_scanner$_position;
- t2 = _this.get$lastMatch();
- _this._sourceFile.span$2(0, t1, t2.start + t2.pattern.length);
- return true;
- },
- error$3$length$position(_, message, $length, position) {
- var match, t2, _this = this,
- t1 = _this.string;
- A.validateErrorArgs(t1, null, position, $length);
- match = position == null && $length == null ? _this.get$lastMatch() : null;
- if (position == null)
- position = match == null ? _this._string_scanner$_position : match.start;
- if ($length == null)
- if (match == null)
- $length = 0;
- else {
- t2 = match.start;
- $length = t2 + match.pattern.length - t2;
- }
- throw A.wrapException(A.StringScannerException$(message, _this._sourceFile.span$2(0, position, position + $length), t1));
- },
- error$1(_, message) {
- return this.error$3$length$position(0, message, null, null);
- },
- error$2$position(_, message, position) {
- return this.error$3$length$position(0, message, null, position);
- },
- error$2$length(_, message, $length) {
- return this.error$3$length$position(0, message, $length, null);
- }
- };
- A._SpanScannerState.prototype = {};
- A.StringScanner.prototype = {
- set$position(position) {
- if (B.JSInt_methods.get$isNegative(position) || position > this.string.length)
- throw A.wrapException(A.ArgumentError$("Invalid position " + position, null));
- this._string_scanner$_position = position;
- this._lastMatch = null;
- },
- get$lastMatch() {
- var _this = this;
- if (_this._string_scanner$_position !== _this._lastMatchPosition)
- _this._lastMatch = null;
- return _this._lastMatch;
- },
- readChar$0() {
- var _this = this,
- t1 = _this.string;
- if (_this._string_scanner$_position === t1.length)
- _this._fail$1("more input");
- return t1.charCodeAt(_this._string_scanner$_position++);
- },
- peekChar$1(offset) {
- var index;
- if (offset == null)
- offset = 0;
- index = this._string_scanner$_position + offset;
- if (index < 0 || index >= this.string.length)
- return null;
- return this.string.charCodeAt(index);
- },
- peekChar$0() {
- return this.peekChar$1(null);
- },
- scanChar$1(character) {
- var t1, t2, t3, t4, _this = this;
- if (character >= 65536 && character <= 1114111) {
- t1 = _this._string_scanner$_position;
- t2 = t1 + 1;
- t3 = _this.string;
- if (t2 < t3.length) {
- t4 = character - 65536;
- t2 = t3.charCodeAt(t1) !== B.JSInt_methods._shrOtherPositive$1(t4, 10) + 55296 || t3.charCodeAt(t2) !== (t4 & 1023) + 56320;
- } else
- t2 = true;
- if (t2)
- return false;
- else {
- _this._string_scanner$_position = t1 + 2;
- return true;
- }
- } else {
- t1 = _this._string_scanner$_position;
- t2 = _this.string;
- if (t1 === t2.length)
- return false;
- if (t2.charCodeAt(t1) !== character)
- return false;
- _this._string_scanner$_position = t1 + 1;
- return true;
- }
- },
- expectChar$2$name(character, $name) {
- if (this.scanChar$1(character))
- return;
- if ($name == null)
- if (character === 92)
- $name = '"\\"';
- else
- $name = character === 34 ? '"\\""' : '"' + A.Primitives_stringFromCharCode(character) + '"';
- this._fail$1($name);
- },
- expectChar$1(character) {
- return this.expectChar$2$name(character, null);
- },
- scan$1(pattern) {
- var t1, _this = this,
- success = _this.matches$1(pattern);
- if (success) {
- t1 = _this._lastMatch;
- _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length;
- }
- return success;
- },
- expect$1(pattern) {
- var t1, $name;
- if (this.scan$1(pattern))
- return;
- t1 = A.stringReplaceAllUnchecked(pattern, "\\", "\\\\");
- $name = '"' + A.stringReplaceAllUnchecked(t1, '"', '\\"') + '"';
- this._fail$1($name);
- },
- expectDone$0() {
- if (this._string_scanner$_position === this.string.length)
- return;
- this._fail$1("no more input");
- },
- matches$1(pattern) {
- var _this = this,
- t1 = B.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position);
- _this._lastMatch = t1;
- _this._lastMatchPosition = _this._string_scanner$_position;
- return t1 != null;
- },
- substring$1(_, start) {
- var end = this._string_scanner$_position;
- return B.JSString_methods.substring$2(this.string, start, end);
- },
- error$3$length$position(_, message, $length, position) {
- var match, t2, _this = this,
- t1 = _this.string;
- A.validateErrorArgs(t1, null, position, $length);
- match = position == null && $length == null ? _this.get$lastMatch() : null;
- if (position == null)
- position = match == null ? _this._string_scanner$_position : match.start;
- if ($length == null)
- if (match == null)
- $length = 0;
- else {
- t2 = match.start;
- $length = t2 + match.pattern.length - t2;
- }
- throw A.wrapException(A.StringScannerException$(message, A.SourceFile$fromString(t1, _this.sourceUrl).span$2(0, position, position + $length), t1));
- },
- error$1(_, message) {
- return this.error$3$length$position(0, message, null, null);
- },
- _fail$1($name) {
- this.error$3$length$position(0, "expected " + $name + ".", 0, this._string_scanner$_position);
- }
- };
- A.AsciiGlyphSet.prototype = {
- glyphOrAscii$2(glyph, alternative) {
- return alternative;
- },
- get$horizontalLine() {
- return "-";
- },
- get$verticalLine() {
- return "|";
- },
- get$topLeftCorner() {
- return ",";
- },
- get$bottomLeftCorner() {
- return "'";
- },
- get$cross() {
- return "+";
- },
- get$upEnd() {
- return "'";
- },
- get$downEnd() {
- return ",";
- },
- get$horizontalLineBold() {
- return "=";
- }
- };
- A.UnicodeGlyphSet.prototype = {
- glyphOrAscii$2(glyph, alternative) {
- return glyph;
- },
- get$horizontalLine() {
- return "\u2500";
- },
- get$verticalLine() {
- return "\u2502";
- },
- get$topLeftCorner() {
- return "\u250c";
- },
- get$bottomLeftCorner() {
- return "\u2514";
- },
- get$cross() {
- return "\u253c";
- },
- get$upEnd() {
- return "\u2575";
- },
- get$downEnd() {
- return "\u2577";
- },
- get$horizontalLineBold() {
- return "\u2501";
- }
- };
- A.WatchEvent.prototype = {
- toString$0(_) {
- return this.type.toString$0(0) + " " + this.path;
- }
- };
- A.ChangeType.prototype = {
- toString$0(_) {
- return this._watch_event$_name;
- }
- };
- A.AnySelectorVisitor0.prototype = {
- visitComplexSelector$1(complex) {
- return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure0(this));
- },
- visitCompoundSelector$1(compound) {
- return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure0(this));
- },
- visitPseudoSelector$1(pseudo) {
- var selector = pseudo.selector;
- return selector == null ? false : this.visitSelectorList$1(selector);
- },
- visitSelectorList$1(list) {
- return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector());
- },
- visitAttributeSelector$1(attribute) {
- return false;
- },
- visitClassSelector$1(klass) {
- return false;
- },
- visitIDSelector$1(id) {
- return false;
- },
- visitParentSelector$1($parent) {
- return false;
- },
- visitPlaceholderSelector$1(placeholder) {
- return false;
- },
- visitTypeSelector$1(type) {
- return false;
- },
- visitUniversalSelector$1(universal) {
- return false;
- }
- };
- A.AnySelectorVisitor_visitComplexSelector_closure0.prototype = {
- call$1(component) {
- return this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature: 50
- };
- A.AnySelectorVisitor_visitCompoundSelector_closure0.prototype = {
- call$1(simple) {
- return simple.accept$1(this.$this);
- },
- $signature: 14
- };
- A.SupportsAnything0.prototype = {
- toString$0(_) {
- return "(" + this.contents.toString$0(0) + ")";
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Argument0.prototype = {
- toString$0(_) {
- var t1 = this.defaultValue,
- t2 = this.name;
- return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ArgumentDeclaration0.prototype = {
- get$spanWithName() {
- var t3, t4,
- t1 = this.span,
- t2 = t1.file,
- text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
- i = A.FileLocation$_(t2, t1._file$_start).offset - 1;
- while (true) {
- if (i > 0) {
- t3 = text.charCodeAt(i);
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = text.charCodeAt(i);
- if (!(t3 === 95 || A.CharacterExtension_get_isAlphabetic0(t3) || t3 >= 128))
- t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
- else
- t3 = true;
- if (!t3)
- return t1;
- --i;
- while (true) {
- if (i >= 0) {
- t3 = text.charCodeAt(i);
- if (t3 !== 95) {
- if (!(t3 >= 97 && t3 <= 122))
- t4 = t3 >= 65 && t3 <= 90;
- else
- t4 = true;
- t4 = t4 || t3 >= 128;
- } else
- t4 = true;
- if (!t4)
- t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
- else
- t3 = true;
- } else
- t3 = false;
- if (!t3)
- break;
- --i;
- }
- t3 = i + 1;
- t4 = text.charCodeAt(t3);
- if (!(t4 === 95 || A.CharacterExtension_get_isAlphabetic0(t4) || t4 >= 128))
- return t1;
- return A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset)));
- },
- verify$2(positional, names) {
- var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
- _s10_ = "invocation",
- _s8_ = "argument";
- for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- throw A.wrapException(A.SassScriptException$0("Argument " + _this._argument_declaration$_originalArgumentName$1(t4) + string$.x20was_p, null));
- } else {
- t4 = argument.name;
- if (t3.containsKey$1(t4))
- ++namedUsed;
- else if (argument.defaultValue == null)
- throw A.wrapException(A.MultiSpanSassScriptException$0("Missing argument " + _this._argument_declaration$_originalArgumentName$1(t4) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
- }
- }
- if (_this.restArgument != null)
- return;
- if (positional > t2) {
- t1 = names.get$isEmpty(0) ? "" : "positional ";
- throw A.wrapException(A.MultiSpanSassScriptException$0("Only " + t2 + " " + t1 + A.pluralize0(_s8_, t2, null) + " allowed, but " + positional + " " + A.pluralize0("was", positional, "were") + " passed.", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
- }
- if (namedUsed < t3.get$length(t3)) {
- t2 = type$.String;
- unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2);
- unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>")));
- throw A.wrapException(A.MultiSpanSassScriptException$0("No " + A.pluralize0(_s8_, unknownNames._collection$_length, null) + " named " + A.toSentence0(unknownNames.map$1$1(0, new A.ArgumentDeclaration_verify_closure2(), type$.Object), "or") + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
- }
- },
- _argument_declaration$_originalArgumentName$1($name) {
- var t1, text, t2, _i, argument, t3, t4, end, _null = null;
- if ($name === this.restArgument) {
- t1 = this.span;
- text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null);
- return B.JSString_methods.substring$2(B.JSString_methods.substring$1(text, B.JSString_methods.lastIndexOf$1(text, "$")), 0, B.JSString_methods.indexOf$1(text, "."));
- }
- for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- argument = t1[_i];
- if (argument.name === $name) {
- t1 = argument.defaultValue;
- t2 = argument.span;
- t3 = t2.file;
- t4 = t2._file$_start;
- t2 = t2._end;
- if (t1 == null) {
- t1 = t3._decodedChars;
- t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
- } else {
- t1 = t3._decodedChars;
- text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
- t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":"));
- end = A._lastNonWhitespace0(t1, false);
- t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1);
- }
- return t1;
- }
- }
- throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null));
- },
- matches$2(positional, names) {
- var t1, t2, t3, namedUsed, i, argument;
- for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
- argument = t1[i];
- if (i < positional) {
- if (t3.containsKey$1(argument.name))
- return false;
- } else if (t3.containsKey$1(argument.name))
- ++namedUsed;
- else if (argument.defaultValue == null)
- return false;
- }
- if (this.restArgument != null)
- return true;
- if (positional > t2)
- return false;
- if (namedUsed < t3.get$length(t3))
- return false;
- return true;
- },
- toString$0(_) {
- var t2, t3, _i,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push("$" + A.S(t2[_i]));
- t2 = this.restArgument;
- if (t2 != null)
- t1.push("$" + t2 + "...");
- return B.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ArgumentDeclaration_verify_closure1.prototype = {
- call$1(argument) {
- return argument.name;
- },
- $signature: 297
- };
- A.ArgumentDeclaration_verify_closure2.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A.ArgumentInvocation0.prototype = {
- get$isEmpty(_) {
- var t1;
- if (this.positional.length === 0) {
- t1 = this.named;
- t1 = t1.get$isEmpty(t1) && this.rest == null;
- } else
- t1 = false;
- return t1;
- },
- toString$0(_) {
- var t2, t3, _i, _1_0, _2_0, _this = this,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(_this._argument_invocation$_parenthesizeArgument$1(t2[_i]));
- for (t2 = A.MapExtensions_get_pairs0(_this.named, type$.String, type$.Expression_2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push("$" + t3._0 + ": " + _this._argument_invocation$_parenthesizeArgument$1(t3._1));
- }
- _1_0 = _this.rest;
- if (_1_0 != null)
- t1.push(_this._argument_invocation$_parenthesizeArgument$1(_1_0) + "...");
- _2_0 = _this.keywordRest;
- if (_2_0 != null)
- t1.push(_this._argument_invocation$_parenthesizeArgument$1(_2_0) + "...");
- return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
- },
- _argument_invocation$_parenthesizeArgument$1(argument) {
- var t1;
- $label0$0: {
- if (argument instanceof A.ListExpression0 && B.ListSeparator_ECn0 === argument.separator && !argument.hasBrackets && argument.contents.length >= 2) {
- t1 = "(" + argument.toString$0(0) + ")";
- break $label0$0;
- }
- t1 = argument.toString$0(0);
- break $label0$0;
- }
- return t1;
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.argumentListClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassArgumentList", new A.argumentListClass__closure()));
- A.defineGetter(J.get$$prototype$x(jsClass), "keywords", new A.argumentListClass__closure0(), null);
- A.JSClassExtension_injectSuperclass(t1._as(A.SassArgumentList$0(A._setArrayType([], type$.JSArray_Value_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Value_2), B.ListSeparator_undecided_null_undecided0).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.argumentListClass__closure.prototype = {
- call$4($self, contents, keywords, separator) {
- var t3,
- t1 = self.immutable.isOrderedMap(contents) ? J.toArray$0$x(type$.ImmutableList._as(contents)) : type$.List_dynamic._as(contents),
- t2 = type$.Value_2;
- t1 = J.cast$1$0$ax(t1, t2);
- t3 = self.immutable.isOrderedMap(keywords) ? A.immutableMapToDartMap(type$.ImmutableMap._as(keywords)) : A.objectToMap(keywords);
- return A.SassArgumentList$0(t1, t3.cast$2$0(0, type$.String, t2), A.jsToDartSeparator(separator));
- },
- call$3($self, contents, keywords) {
- return this.call$4($self, contents, keywords, ",");
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [","];
- },
- $signature: 299
- };
- A.argumentListClass__closure0.prototype = {
- call$1($self) {
- $self._argument_list$_wereKeywordsAccessed = true;
- return A.dartMapToImmutableMap($self._argument_list$_keywords);
- },
- $signature: 300
- };
- A.SassArgumentList0.prototype = {};
- A.JSArray1.prototype = {};
- A.AsyncImporter0.prototype = {
- isNonCanonicalScheme$1(scheme) {
- return false;
- }
- };
- A.JSToDartAsyncImporter.prototype = {
- canonicalize$1(_, url) {
- return this.canonicalize$body$JSToDartAsyncImporter(0, url);
- },
- canonicalize$body$JSToDartAsyncImporter(_, url) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
- $async$returnValue, $async$self = this, t1, result;
- var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- result = A.wrapJSExceptions(new A.JSToDartAsyncImporter_canonicalize_closure($async$self, url));
- $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1);
- case 5:
- // returning from await.
- result = $async$result;
- case 4:
- // join
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = self.URL;
- if (result instanceof t1) {
- $async$returnValue = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
- // goto return
- $async$goto = 1;
- break;
- }
- A.jsThrow(new self.Error(string$.The_ca));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$canonicalize$1, $async$completer);
- },
- load$1(_, url) {
- return this.load$body$JSToDartAsyncImporter(0, url);
- },
- load$body$JSToDartAsyncImporter(_, url) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_ImporterResult_2),
- $async$returnValue, $async$self = this, t1, contents, syntax, t2, result;
- var $async$load$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- result = A.wrapJSExceptions(new A.JSToDartAsyncImporter_load_closure($async$self, url));
- $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$load$1);
- case 5:
- // returning from await.
- result = $async$result;
- case 4:
- // join
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- type$.JSImporterResult._as(result);
- t1 = J.getInterceptor$x(result);
- contents = t1.get$contents(result);
- if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
- A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
- syntax = t1.get$syntax(result);
- if (contents == null || syntax == null)
- A.jsThrow(new self.Error(string$.The_lo));
- t2 = A.parseSyntax(syntax);
- $async$returnValue = A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils1__jsToDartUrl$closure()), t2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$load$1, $async$completer);
- },
- isNonCanonicalScheme$1(scheme) {
- return this._nonCanonicalSchemes.contains$1(0, scheme);
- }
- };
- A.JSToDartAsyncImporter_canonicalize_closure.prototype = {
- call$0() {
- return this.$this._async0$_canonicalize.call$2(this.url.toString$0(0), A.canonicalizeContext0());
- },
- $signature: 35
- };
- A.JSToDartAsyncImporter_load_closure.prototype = {
- call$0() {
- return this.$this._load.call$1(new self.URL(this.url.toString$0(0)));
- },
- $signature: 35
- };
- A.AsyncBuiltInCallable0.prototype = {
- callbackFor$2(positional, names) {
- return new A._Record_2(this._async_built_in0$_arguments, this._async_built_in0$_callback);
- },
- $isAsyncCallable0: 1,
- get$name(receiver) {
- return this.name;
- },
- get$acceptsContent() {
- return this.acceptsContent;
- }
- };
- A.AsyncBuiltInCallable$mixin_closure0.prototype = {
- call$1($arguments) {
- return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments);
- },
- $call$body$AsyncBuiltInCallable$mixin_closure0($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.callback.call$1($arguments);
- $async$goto = 3;
- return A._asyncAwait(t1 instanceof A._Future ? t1 : A._Future$value(t1, type$.void), $async$call$1);
- case 3:
- // returning from await.
- $async$returnValue = B.C__SassNull0;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 88
- };
- A._compileStylesheet_closure2.prototype = {
- call$1(url) {
- return url === "" ? A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text() : this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
- },
- $signature: 5
- };
- A.AsyncEnvironment0.prototype = {
- closure$0() {
- var t4, t5, t6, _this = this,
- t1 = _this._async_environment0$_forwardedModules,
- t2 = _this._async_environment0$_nestedForwardedModules,
- t3 = _this._async_environment0$_variables;
- t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
- t4 = _this._async_environment0$_variableNodes;
- t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
- t5 = _this._async_environment0$_functions;
- t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
- t6 = _this._async_environment0$_mixins;
- t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
- return A.AsyncEnvironment$_0(_this._async_environment0$_modules, _this._async_environment0$_namespaceNodes, _this._async_environment0$_globalModules, _this._async_environment0$_importedModules, t1, t2, _this._async_environment0$_allModules, t3, t4, t5, t6, _this._async_environment0$_content);
- },
- forwardModule$2(module, rule) {
- var view, t1, t2, _this = this,
- forwardedModules = _this._async_environment0$_forwardedModules;
- if (forwardedModules == null)
- forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
- view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.AsyncCallable_2);
- for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
- t2 = t1.__js_helper$_current;
- _this._async_environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
- _this._async_environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
- _this._async_environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
- }
- _this._async_environment0$_allModules.push(module);
- forwardedModules.$indexSet(0, view, rule);
- },
- _async_environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
- var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = type$.String, t2 = A.MapExtensions_get_pairs0(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- $name = t4._0;
- small = t4._1;
- large = larger.$index(0, $name);
- if (large == null)
- continue;
- if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
- continue;
- if (t3)
- $name = "$" + $name;
- t2 = this._async_environment0$_forwardedModules;
- if (t2 == null)
- span = null;
- else {
- t2 = t2.$index(0, oldModule);
- span = t2 == null ? null : J.get$span$z(t2);
- }
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
- if (span != null)
- t2.$indexSet(0, span, "original @forward");
- throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
- }
- },
- importForwards$1(module) {
- var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this,
- forwarded = module._async_environment0$_environment._async_environment0$_forwardedModules;
- if (forwarded == null)
- return;
- forwardedModules = _this._async_environment0$_forwardedModules;
- if (forwardedModules != null) {
- t1 = type$.Module_AsyncCallable_2;
- t2 = type$.AstNode_2;
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t1 = A.MapExtensions_get_pairs0(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._async_environment0$_globalModules; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- module = t4._0;
- node = t4._1;
- if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
- t3.$indexSet(0, module, node);
- }
- forwarded = t3;
- } else
- forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
- for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
- t2.add$1(0, t4.get$current(t4));
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
- t5 = t4.__js_helper$_current;
- for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t3.add$1(0, t5.get$current(t5));
- }
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
- for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t1.add$1(0, t5.get$current(t5));
- t4 = _this._async_environment0$_variables;
- t5 = t4.length;
- if (t5 === 1) {
- for (t5 = _this._async_environment0$_importedModules, t6 = type$.Module_AsyncCallable_2, t7 = type$.AstNode_2, t8 = A.MapExtensions_get_pairs0(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.AsyncCallable_2, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
- t11 = t8[_i];
- module = t11._0;
- node = t11._1;
- shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
- if (shadowed != null) {
- t5.remove$1(0, module);
- t11 = shadowed.variables;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.functions;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.mixins;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed._shadowed_view0$_inner;
- t11 = t11.get$css(t11);
- t11 = J.get$isEmpty$asx(t11.get$children(t11));
- } else
- t11 = false;
- } else
- t11 = false;
- } else
- t11 = false;
- if (!t11)
- t5.$indexSet(0, shadowed, node);
- }
- }
- for (t6 = A.MapExtensions_get_pairs0(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
- t8 = t6[_i];
- module = t8._0;
- node = t8._1;
- shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
- if (shadowed != null) {
- forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view0$_inner;
- t8 = t8.get$css(t8);
- t8 = J.get$isEmpty$asx(t8.get$children(t8));
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8)
- forwardedModules.$indexSet(0, shadowed, node);
- }
- }
- t5.addAll$1(0, forwarded);
- forwardedModules.addAll$1(0, forwarded);
- } else {
- t6 = _this._async_environment0$_nestedForwardedModules;
- if (t6 == null) {
- _length = t5 - 1;
- _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable_2);
- for (t5 = type$.JSArray_Module_AsyncCallable_2, _i = 0; _i < _length; ++_i)
- _list[_i] = A._setArrayType([], t5);
- _this._async_environment0$_nestedForwardedModules = _list;
- t5 = _list;
- } else
- t5 = t6;
- B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
- }
- for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._async_environment0$_variableIndices, t6 = _this._async_environment0$_variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t8 = t2._collection$_current;
- if (t8 == null)
- t8 = t7._as(t8);
- t5.remove$1(0, t8);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
- J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
- }
- for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._async_environment0$_functionIndices, t4 = _this._async_environment0$_functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t6 = t2._collection$_current;
- if (t6 == null)
- t6 = t5._as(t6);
- t3.remove$1(0, t6);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
- }
- for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t5 = t1._collection$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- t2.remove$1(0, t5);
- J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
- }
- },
- getVariable$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._async_environment0$_lastVariableName === $name) {
- t1 = _this._async_environment0$_lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._async_environment0$_variables[t1], $name);
- return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment0$_variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._async_environment0$_variables[_0_0], $name);
- return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment0$_variableIndex$1($name);
- if (_1_0 != null) {
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment0$_variables[_1_0], $name);
- return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment0$_getVariableFromGlobalModule$1($name);
- }
- },
- getVariable$1($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _async_environment0$_getVariableFromGlobalModule$1($name) {
- return this._async_environment0$_fromOneModule$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure0($name));
- },
- getVariableNode$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._async_environment0$_lastVariableName === $name) {
- t1 = _this._async_environment0$_lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._async_environment0$_variableNodes[t1], $name);
- return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._async_environment0$_variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._async_environment0$_variableNodes[_0_0], $name);
- return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment0$_variableIndex$1($name);
- if (_1_0 != null) {
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment0$_variableNodes[_1_0], $name);
- return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name);
- }
- },
- _async_environment0$_getVariableNodeFromGlobalModule$1($name) {
- var t1, t2, _0_0;
- for (t1 = this._async_environment0$_importedModules, t2 = this._async_environment0$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
- t1 = t2._currentIterator;
- _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- globalVariableExists$2$namespace($name, namespace) {
- if (namespace != null)
- return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
- if (B.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name))
- return true;
- return this._async_environment0$_getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _async_environment0$_variableIndex$1($name) {
- var t1, i;
- for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
- if (namespace != null) {
- _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._async_environment0$_variables.length === 1) {
- _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure2(_this, $name));
- t1 = _this._async_environment0$_variables;
- if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._async_environment0$_fromOneModule$3($name, "variable", new A.AsyncEnvironment_setVariable_closure3($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment0$_variableNodes), $name, nodeWithSpan);
- return;
- }
- nestedForwardedModules = _this._async_environment0$_nestedForwardedModules;
- if (nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null)
- for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- if (t5.get$variables().containsKey$1($name)) {
- t5.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- if (_this._async_environment0$_lastVariableName === $name) {
- t1 = _this._async_environment0$_lastVariableIndex;
- t1.toString;
- index = t1;
- } else
- index = _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure4(_this, $name));
- if (!_this._async_environment0$_inSemiGlobalScope && index === 0) {
- index = _this._async_environment0$_variables.length - 1;
- _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
- }
- _this._async_environment0$_lastVariableName = $name;
- _this._async_environment0$_lastVariableIndex = index;
- J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value);
- J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan);
- },
- setVariable$4$global($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._async_environment0$_variables,
- t2 = t1.length;
- _this._async_environment0$_lastVariableName = $name;
- index = _this._async_environment0$_lastVariableIndex = t2 - 1;
- _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null) {
- t1 = _this._async_environment0$_getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._async_environment0$_functionIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._async_environment0$_functions[_0_0], $name);
- return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment0$_functionIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment0$_functions[_1_0], $name);
- return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment0$_getFunctionFromGlobalModule$1($name);
- }
- },
- getFunction$1($name) {
- return this.getFunction$2$namespace($name, null);
- },
- _async_environment0$_getFunctionFromGlobalModule$1($name) {
- return this._async_environment0$_fromOneModule$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name));
- },
- _async_environment0$_functionIndex$1($name) {
- var t1, i;
- for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._async_environment0$_mixinIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._async_environment0$_mixins[_0_0], $name);
- return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._async_environment0$_mixinIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._async_environment0$_mixins[_1_0], $name);
- return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
- } else
- return _this._async_environment0$_getMixinFromGlobalModule$1($name);
- }
- },
- _async_environment0$_getMixinFromGlobalModule$1($name) {
- return this._async_environment0$_fromOneModule$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure0($name));
- },
- _async_environment0$_mixinIndex$1($name) {
- var t1, i;
- for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- withContent$2($content, callback) {
- return this.withContent$body$AsyncEnvironment0($content, callback);
- },
- withContent$body$AsyncEnvironment0($content, callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldContent;
- var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldContent = $async$self._async_environment0$_content;
- $async$self._async_environment0$_content = $content;
- $async$goto = 2;
- return A._asyncAwait(callback.call$0(), $async$withContent$2);
- case 2:
- // returning from await.
- $async$self._async_environment0$_content = oldContent;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$withContent$2, $async$completer);
- },
- asMixin$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, oldInMixin;
- var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInMixin = $async$self._async_environment0$_inMixin;
- $async$self._async_environment0$_inMixin = true;
- $async$goto = 2;
- return A._asyncAwait(callback.call$0(), $async$asMixin$1);
- case 2:
- // returning from await.
- $async$self._async_environment0$_inMixin = oldInMixin;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$asMixin$1, $async$completer);
- },
- scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) {
- return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T);
- },
- scope$1$1(callback, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
- },
- scope$1$2$when(callback, when, $T) {
- return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
- },
- scope$1$2$semiGlobal(callback, semiGlobal, $T) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
- },
- scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6;
- var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope;
- wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope;
- $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
- $async$goto = !when ? 3 : 4;
- break;
- case 3:
- // then
- $async$handler = 5;
- $async$goto = 8;
- return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 8:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- $async$next = [1];
- // goto finally
- $async$goto = 6;
- break;
- $async$next.push(7);
- // goto finally
- $async$goto = 6;
- break;
- case 5:
- // uncaught
- $async$next = [2];
- case 6:
- // finally
- $async$handler = 2;
- $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 7:
- // after finally
- case 4:
- // join
- t1 = $async$self._async_environment0$_variables;
- t2 = type$.String;
- B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
- t3 = $async$self._async_environment0$_variableNodes;
- B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
- t4 = $async$self._async_environment0$_functions;
- t5 = type$.AsyncCallable_2;
- B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t6 = $async$self._async_environment0$_mixins;
- B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t5 = $async$self._async_environment0$_nestedForwardedModules;
- if (t5 != null)
- t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable_2));
- $async$handler = 9;
- $async$goto = 12;
- return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
- case 12:
- // returning from await.
- t2 = $async$result;
- $async$returnValue = t2;
- $async$next = [1];
- // goto finally
- $async$goto = 10;
- break;
- $async$next.push(11);
- // goto finally
- $async$goto = 10;
- break;
- case 9:
- // uncaught
- $async$next = [2];
- case 10:
- // finally
- $async$handler = 2;
- $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
- $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null;
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment0$_variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- B.JSArray_methods.removeLast$0(t3);
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = $async$self._async_environment0$_functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = $async$self._async_environment0$_mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = $async$self._async_environment0$_nestedForwardedModules;
- if (t1 != null)
- t1.pop();
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 11:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
- },
- toImplicitConfiguration$0() {
- var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
- t1 = type$.String,
- configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
- for (t2 = this._async_environment0$_variables, t3 = type$.Value_2, t4 = this._async_environment0$_variableNodes, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4[i];
- for (t5 = A.MapExtensions_get_pairs0(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
- t6 = t5.get$current(t5);
- $name = t6._0;
- value = t6._1;
- t6 = nodes.$index(0, $name);
- t6.toString;
- configuration.$indexSet(0, $name, new A.ConfiguredValue0(value, null, t6));
- }
- }
- return new A.Configuration0(configuration, null);
- },
- toModule$3(css, preModuleComments, extensionStore) {
- return A._EnvironmentModule__EnvironmentModule2(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toModule_closure0()));
- },
- toDummyModule$0() {
- return A._EnvironmentModule__EnvironmentModule2(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty16, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty15, B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure0()));
- },
- _async_environment0$_getModule$1(namespace) {
- var _0_0 = this._async_environment0$_modules.$index(0, namespace);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null));
- },
- _async_environment0$_fromOneModule$1$3($name, type, callback) {
- var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
- _0_0 = this._async_environment0$_nestedForwardedModules;
- if (_0_0 != null)
- for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
- if (_1_0 != null)
- return _1_0;
- }
- }
- for (t1 = this._async_environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
- _2_0 = callback.call$1(t1.__js_helper$_current);
- if (_2_0 != null)
- return _2_0;
- }
- for (t1 = this._async_environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.AsyncCallable_2, value = null, identity = null; t2.moveNext$0();) {
- t4 = t2.__js_helper$_current;
- valueInModule = callback.call$1(t4);
- if (valueInModule == null)
- continue;
- identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t3 = A.MapExtensions_get_pairs0(t1, type$.Module_AsyncCallable_2, type$.AstNode_2), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
- t1 = t3.get$current(t3);
- module = t1._0;
- node = t1._1;
- if (callback.call$1(module) != null)
- t2.$indexSet(0, node.get$span(node), t4);
- }
- throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _async_environment0$_fromOneModule$3($name, type, callback) {
- return this._async_environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- A.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = {
- call$1(module) {
- return module.get$variables().$index(0, this.name);
- },
- $signature: 303
- };
- A.AsyncEnvironment_setVariable_closure2.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._async_environment0$_lastVariableName = this.name;
- return t1._async_environment0$_lastVariableIndex = 0;
- },
- $signature: 10
- };
- A.AsyncEnvironment_setVariable_closure3.prototype = {
- call$1(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- },
- $signature: 304
- };
- A.AsyncEnvironment_setVariable_closure4.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._async_environment0$_variableIndex$1(this.name);
- return t2 == null ? t1._async_environment0$_variables.length - 1 : t2;
- },
- $signature: 10
- };
- A.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = {
- call$1(module) {
- return module.get$functions(module).$index(0, this.name);
- },
- $signature: 256
- };
- A.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = {
- call$1(module) {
- return module.get$mixins().$index(0, this.name);
- },
- $signature: 256
- };
- A.AsyncEnvironment_toModule_closure0.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2);
- },
- $signature: 253
- };
- A.AsyncEnvironment_toDummyModule_closure0.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2);
- },
- $signature: 253
- };
- A._EnvironmentModule2.prototype = {
- get$url(_) {
- var t1 = this.css;
- return t1.get$span(t1).file.url;
- },
- setVariable$3($name, value, nodeWithSpan) {
- var t1, t2,
- _0_0 = this._async_environment0$_modulesByVariable.$index(0, $name);
- if (_0_0 != null) {
- _0_0.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._async_environment0$_environment;
- t2 = t1._async_environment0$_variables;
- if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
- throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
- J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment0$_variableNodes), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1($name) {
- var module = this._async_environment0$_modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0() {
- var _0_0, _this = this;
- if (!_this.transitivelyContainsCss)
- return _this;
- _0_0 = A.cloneCssStylesheet0(_this.css, _this.extensionStore);
- return A._EnvironmentModule$_2(_this._async_environment0$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._async_environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
- },
- toString$0(_) {
- var t2,
- t1 = this.css;
- if (t1.get$span(t1).file.url == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span(t1).file.url;
- t2 = $.$get$context();
- t1.toString;
- t1 = t2.prettyUri$1(t1);
- }
- return t1;
- },
- $isModule1: 1,
- get$upstream() {
- return this.upstream;
- },
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- },
- get$extensionStore() {
- return this.extensionStore;
- },
- get$css(receiver) {
- return this.css;
- },
- get$preModuleComments() {
- return this.preModuleComments;
- },
- get$transitivelyContainsCss() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions() {
- return this.transitivelyContainsExtensions;
- }
- };
- A._EnvironmentModule__EnvironmentModule_closure17.prototype = {
- call$1(module) {
- return module.get$variables();
- },
- $signature: 307
- };
- A._EnvironmentModule__EnvironmentModule_closure18.prototype = {
- call$1(module) {
- return module.get$variableNodes();
- },
- $signature: 308
- };
- A._EnvironmentModule__EnvironmentModule_closure19.prototype = {
- call$1(module) {
- return module.get$functions(module);
- },
- $signature: 252
- };
- A._EnvironmentModule__EnvironmentModule_closure20.prototype = {
- call$1(module) {
- return module.get$mixins();
- },
- $signature: 252
- };
- A._EnvironmentModule__EnvironmentModule_closure21.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 112
- };
- A._EnvironmentModule__EnvironmentModule_closure22.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsExtensions();
- },
- $signature: 112
- };
- A._EvaluateVisitor2.prototype = {
- _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t2, metaModule, t3, _i, module, $function, t4, _this = this,
- _s20_ = "$name, $module: null",
- _s9_ = "sass:meta",
- _s7_ = "$module",
- t1 = type$.JSArray_AsyncBuiltInCallable_2,
- metaFunctions = A._setArrayType([A.BuiltInCallable$function0("global-variable-exists", _s20_, new A._EvaluateVisitor_closure38(_this), _s9_), A.BuiltInCallable$function0("variable-exists", "$name", new A._EvaluateVisitor_closure39(_this), _s9_), A.BuiltInCallable$function0("function-exists", _s20_, new A._EvaluateVisitor_closure40(_this), _s9_), A.BuiltInCallable$function0("mixin-exists", _s20_, new A._EvaluateVisitor_closure41(_this), _s9_), A.BuiltInCallable$function0("content-exists", "", new A._EvaluateVisitor_closure42(_this), _s9_), A.BuiltInCallable$function0("module-variables", _s7_, new A._EvaluateVisitor_closure43(_this), _s9_), A.BuiltInCallable$function0("module-functions", _s7_, new A._EvaluateVisitor_closure44(_this), _s9_), A.BuiltInCallable$function0("module-mixins", _s7_, new A._EvaluateVisitor_closure45(_this), _s9_), A.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure46(_this), _s9_), A.BuiltInCallable$function0("get-mixin", _s20_, new A._EvaluateVisitor_closure47(_this), _s9_), new A.AsyncBuiltInCallable0("call", A.ScssParser$0("@function call($function, $args...) {", null, _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure48(_this), false)], t1),
- metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin0("load-css", "$url, $with: null", new A._EvaluateVisitor_closure49(_this), false, _s9_), A.AsyncBuiltInCallable$mixin0("apply", "$mixin, $args...", new A._EvaluateVisitor_closure50(_this), true, _s9_)], t1);
- t1 = type$.AsyncBuiltInCallable_2;
- t2 = A.List_List$of($.$get$global6(), true, t1);
- B.JSArray_methods.addAll$1(t2, $.$get$local0());
- B.JSArray_methods.addAll$1(t2, metaFunctions);
- metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1);
- for (t1 = A.List_List$of($.$get$coreModules0(), true, type$.BuiltInModule_AsyncCallable_2), t1.push(metaModule), t2 = t1.length, t3 = _this._async_evaluate0$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = A._setArrayType([], type$.JSArray_AsyncCallable_2);
- B.JSArray_methods.addAll$1(t1, functions);
- B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions0());
- B.JSArray_methods.addAll$1(t1, metaFunctions);
- for (t2 = t1.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = J.get$name$x($function);
- t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2(_, importer, node) {
- return this.run$body$_EvaluateVisitor0(0, importer, node);
- },
- run$body$_EvaluateVisitor0(_, importer, node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
- var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- t1 = type$.nullable_Object;
- t1 = A.runZoned(new A._EvaluateVisitor_run_closure2($async$self, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext2($async$self, node)], t1, t1), type$.FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2);
- $async$goto = 7;
- return A._asyncAwait(type$.Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2._is(t1) ? t1 : A._Future$value(t1, type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2), $async$run$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- A.throwWithTrace0(error.withLoadedUrls$1($async$self._async_evaluate0$_loadedUrls), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$run$2, $async$completer);
- },
- _async_evaluate0$_assertInModule$1$2(value, $name) {
- if (value != null)
- return value;
- throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
- },
- _async_evaluate0$_assertInModule$2(value, $name) {
- return this._async_evaluate0$_assertInModule$1$2(value, $name, type$.dynamic);
- },
- _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
- },
- _async_evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _async_evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
- return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t2, t1, _0_0;
- var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- _0_0 = $async$self._async_evaluate0$_builtInModules.$index(0, url);
- t1.builtInModule = null;
- $async$goto = _0_0 != null ? 3 : 4;
- break;
- case 3:
- // then
- t1.builtInModule = _0_0;
- if (configuration instanceof A.ExplicitConfiguration0) {
- t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
- t2 = configuration.nodeWithSpan;
- throw A.wrapException($async$self._async_evaluate0$_exception$2(t1, t2.get$span(t2)));
- }
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure5(t1, callback), type$.void), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
- case 5:
- // returning from await.
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure6($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
- case 6:
- // returning from await.
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
- },
- _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
- },
- _async_evaluate0$_execute$2(importer, stylesheet) {
- return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable_2),
- $async$returnValue, $async$self = this, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, url, t1, _0_0;
- var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- url = stylesheet.span.file.url;
- t1 = $async$self._async_evaluate0$_modules;
- _0_0 = t1.$index(0, url);
- if (_0_0 != null) {
- t1 = configuration == null;
- currentConfiguration = t1 ? $async$self._async_evaluate0$_configuration : configuration;
- t2 = $async$self._async_evaluate0$_moduleConfigurations.$index(0, url);
- t3 = t2._configuration0$__originalConfiguration;
- t2 = t3 == null ? t2 : t3;
- t3 = currentConfiguration._configuration0$__originalConfiguration;
- if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) {
- if (namesInErrors) {
- t2 = $.$get$context();
- url.toString;
- message = t2.prettyUri$1(url) + string$.x20was_a;
- } else
- message = string$.This_mw;
- t2 = $async$self._async_evaluate0$_moduleNodes.$index(0, url);
- existingSpan = t2 == null ? null : t2.get$span(t2);
- if (t1) {
- t1 = currentConfiguration.nodeWithSpan;
- configurationSpan = t1.get$span(t1);
- } else
- configurationSpan = null;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingSpan != null)
- t1.$indexSet(0, existingSpan, "original load");
- if (configurationSpan != null)
- t1.$indexSet(0, configurationSpan, "configuration");
- throw A.wrapException(t1.get$isEmpty(0) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t1));
- }
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- environment = A.AsyncEnvironment$0();
- css = A._Cell$();
- preModuleComments = A._Cell$();
- extensionStore = A.ExtensionStore$0();
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_withEnvironment$1$2(environment, new A._EvaluateVisitor__execute_closure2($async$self, importer, stylesheet, extensionStore, configuration, css, preModuleComments), type$.Null), $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan);
- case 3:
- // returning from await.
- t2 = css._readLocal$0();
- t3 = preModuleComments._readLocal$0();
- module = environment.toModule$3(t2, t3 == null ? B.Map_empty15 : t3, extensionStore);
- if (url != null) {
- t1.$indexSet(0, url, module);
- $async$self._async_evaluate0$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate0$_configuration);
- if (nodeWithSpan != null)
- $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
- }
- $async$returnValue = module;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
- },
- _async_evaluate0$_addOutOfOrderImports$0() {
- var t1, t2, _this = this, _s5_ = "_root",
- _s13_ = "_endOfImports",
- _0_0 = _this._async_evaluate0$_outOfOrderImports;
- $label0$0: {
- if (_0_0 == null) {
- t1 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
- break $label0$0;
- }
- t1 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
- t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode_2);
- B.JSArray_methods.addAll$1(t1, _0_0);
- t2 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
- B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
- break $label0$0;
- }
- return t1;
- },
- _async_evaluate0$_combineCss$2$clone(root, clone) {
- var selectors, _0_0, t1, imports, css, sorted, t2;
- if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure5())) {
- selectors = root.get$extensionStore().get$simpleSelectors();
- _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure6(selectors)));
- if (_0_0 != null)
- this._async_evaluate0$_throwForUnsatisfiedExtension$1(_0_0);
- return root.get$css(root);
- }
- t1 = type$.JSArray_CssNode_2;
- imports = A._setArrayType([], t1);
- css = A._setArrayType([], t1);
- t1 = type$.Module_AsyncCallable_2;
- sorted = A.ListQueue$(t1);
- new A._EvaluateVisitor__combineCss_visitModule2(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
- if (root.get$transitivelyContainsExtensions())
- this._async_evaluate0$_extendModules$1(sorted);
- t1 = B.JSArray_methods.$add(imports, css);
- t2 = root.get$css(root);
- return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2));
- },
- _async_evaluate0$_combineCss$1(root) {
- return this._async_evaluate0$_combineCss$2$clone(root, false);
- },
- _async_evaluate0$_extendModules$1(sortedModules) {
- var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
- downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2),
- unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
- for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure5(originalSelectors)));
- $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
- t4 = t3.get$extensionStore().get$addExtensions();
- if ($self != null)
- t4.call$1($self);
- t4 = t3.get$extensionStore();
- if (t4.get$isEmpty(t4))
- continue;
- for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
- upstream = t4[_i];
- _0_0 = upstream.get$url(upstream);
- if (_0_0 != null)
- J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure6()), t3.get$extensionStore());
- }
- unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
- },
- _async_evaluate0$_throwForUnsatisfiedExtension$1(extension) {
- throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
- },
- _async_evaluate0$_indexAfterImports$1(statements) {
- var t1, lastImport, i, _0_0;
- for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- $label0$0: {
- _0_0 = t1.$index(statements, i);
- if (_0_0 instanceof A.ModifiableCssImport0)
- break $label0$0;
- if (_0_0 instanceof A.ModifiableCssComment0)
- continue;
- break;
- }
- lastImport = i;
- }
- return lastImport + 1;
- },
- visitStylesheet$1(node) {
- return this.visitStylesheet$body$_EvaluateVisitor0(node);
- },
- visitStylesheet$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, _i;
- var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.children, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitStylesheet$1, $async$completer);
- },
- visitAtRootRule$1(node) {
- return this.visitAtRootRule$body$_EvaluateVisitor0(node);
- },
- visitAtRootRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, _1_0, resolved, query, $parent, included, t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _0_0;
- var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _0_0 = node.query;
- $async$goto = _0_0 != null ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(_0_0, true), $async$visitAtRootRule$1);
- case 6:
- // returning from await.
- _1_0 = $async$result;
- resolved = _1_0._0;
- _1_0._1;
- query = A.AtRootQueryParser$0(resolved, $async$self._async_evaluate0$_logger, null).parse$0();
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- query = B.AtRootQuery_n2q0;
- case 4:
- // join
- $parent = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
- included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2);
- for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = _2_0) {
- if (!query.excludes$1($parent))
- included.push($parent);
- _2_0 = $parent._node$_parent;
- if (_2_0 == null)
- throw A.wrapException(A.StateError$(string$.CssNod));
- }
- root = $async$self._async_evaluate0$_trimIncluded$1(included);
- $async$goto = root === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") ? 7 : 8;
- break;
- case 7:
- // then
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure5($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
- case 9:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 8:
- // join
- if (included.length >= 1) {
- first = included[0];
- rest = B.JSArray_methods.sublist$1(included, 1);
- innerCopy = first.copyWithoutChildren$0();
- for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
- copy = rest[_i].copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- root.addChild$1(outerCopy);
- } else
- innerCopy = root;
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate0$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure6($async$self, node)), $async$visitAtRootRule$1);
- case 10:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitAtRootRule$1, $async$completer);
- },
- _async_evaluate0$_trimIncluded$1(nodes) {
- var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
- _s22_ = " to be an ancestor of ";
- if (nodes.length === 0)
- return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_);
- $parent = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__parent, "__parent");
- for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
- for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
- _0_0 = $parent._node$_parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if (innermostContiguous == null)
- innermostContiguous = i;
- _1_0 = $parent._node$_parent;
- if (_1_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if ($parent !== _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_))
- return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_);
- innermostContiguous.toString;
- root = nodes[innermostContiguous];
- B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
- return root;
- },
- _async_evaluate0$_scopeForAtRoot$4(node, newParent, query, included) {
- var _this = this,
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node),
- t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
- if (t1 !== query.include)
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope);
- if (_this._async_evaluate0$_mediaQueries != null && query.excludesName$1("media"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope);
- if (_this._async_evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope);
- return _this._async_evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure21()) ? new A._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope;
- },
- visitContentBlock$1(node) {
- return A.throwExpression(A.UnsupportedError$(string$.Evalua));
- },
- visitContentRule$1(node) {
- return this.visitContentRule$body$_EvaluateVisitor0(node);
- },
- visitContentRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, $content;
- var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $content = $async$self._async_evaluate0$_environment._async_environment0$_content;
- if ($content == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure2($async$self, $content), type$.Null), $async$visitContentRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitContentRule$1, $async$completer);
- },
- visitDebugRule$1(node) {
- return this.visitDebugRule$body$_EvaluateVisitor0(node);
- },
- visitDebugRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true);
- $async$self._async_evaluate0$_logger.debug$2(0, t1, node.span);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitDebugRule$1, $async$completer);
- },
- visitDeclaration$1(node) {
- return this.visitDeclaration$body$_EvaluateVisitor0(node);
- },
- visitDeclaration$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t2, _0_0, t3, $name, _1_0, _2_0, value, t4, t5, _3_0, oldDeclarationName, t1;
- var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarm, node.span));
- if ($async$self._async_evaluate0$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarw, node.span));
- t2 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent")._node$_parent.children;
- _0_0 = t2.get$last(t2);
- t2 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
- if (t2 !== _0_0) {
- t2 = type$.SourceSpan;
- t3 = type$.String;
- $async$self._async_evaluate0$_warn$3(string$.Sassx27s, new A.MultiSpan0(node.span, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([_0_0.get$span(_0_0), "nested rule"], t2, t3), t2, t3)), B.Deprecation_FGJ);
- }
- t2 = node.name;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(t2, true), $async$visitDeclaration$1);
- case 3:
- // returning from await.
- $name = $async$result;
- _1_0 = $async$self._async_evaluate0$_declarationName;
- if (_1_0 != null)
- $name = new A.CssValue0(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String_2);
- _2_0 = node.value;
- $async$goto = _2_0 != null ? 4 : 5;
- break;
- case 4:
- // then
- $async$goto = 6;
- return A._asyncAwait(_2_0.accept$1($async$self), $async$visitDeclaration$1);
- case 6:
- // returning from await.
- value = $async$result;
- if (!value.get$isBlank() || value.get$asList().length === 0) {
- t3 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
- t4 = _2_0.get$span(_2_0);
- t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--");
- if ($async$self._async_evaluate0$_sourceMap) {
- t5 = A.NullableExtension_andThen0(_2_0, $async$self.get$_async_evaluate0$_expressionNode());
- t5 = t5 == null ? null : J.get$span$z(t5);
- } else
- t5 = null;
- t3.addChild$1(A.ModifiableCssDeclaration$0($name, new A.CssValue0(value, t4, type$.CssValue_Value_2), node.span, t2, t5));
- } else if (J.startsWith$1$s($name.value, "--"))
- throw A.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
- case 5:
- // join
- _3_0 = node.children;
- t1.children = null;
- $async$goto = _3_0 != null ? 7 : 8;
- break;
- case 7:
- // then
- t1.children = _3_0;
- oldDeclarationName = $async$self._async_evaluate0$_declarationName;
- $async$self._async_evaluate0$_declarationName = $name.value;
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure2(t1, $async$self), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
- case 9:
- // returning from await.
- $async$self._async_evaluate0$_declarationName = oldDeclarationName;
- case 8:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitDeclaration$1, $async$completer);
- },
- visitEachRule$1(node) {
- return this.visitEachRule$body$_EvaluateVisitor0(node);
- },
- visitEachRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, _box_0, t1, list, nodeWithSpan, _0_0;
- var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- t1 = node.list;
- $async$goto = 3;
- return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
- case 3:
- // returning from await.
- list = $async$result;
- nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1);
- _0_0 = node.variables;
- $label0$0: {
- _box_0.variable = null;
- if (_0_0.length === 1) {
- _box_0.variable = _0_0[0];
- t1 = new A._EvaluateVisitor_visitEachRule_closure8(_box_0, $async$self, nodeWithSpan);
- break $label0$0;
- }
- _box_0.variables = null;
- _box_0.variables = _0_0;
- t1 = new A._EvaluateVisitor_visitEachRule_closure9(_box_0, $async$self, nodeWithSpan);
- break $label0$0;
- }
- $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure10($async$self, list, t1, node), true, type$.nullable_Value_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitEachRule$1, $async$completer);
- },
- _async_evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._async_evaluate0$_environment.setLocalVariable$3(variables[i], this._async_evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._async_evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan);
- },
- visitErrorRule$1(node) {
- return this.visitErrorRule$body$_EvaluateVisitor0(node);
- },
- visitErrorRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$self = this, $async$temp1, $async$temp2;
- var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = A;
- $async$temp2 = J;
- $async$goto = 2;
- return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
- case 2:
- // returning from await.
- throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span));
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitErrorRule$1, $async$completer);
- },
- visitExtendRule$1(node) {
- return this.visitExtendRule$body$_EvaluateVisitor0(node);
- },
- visitExtendRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, targetText, targetMap, compound, styleRule;
- var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- styleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
- if (styleRule == null || $async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.x40exten, node.span));
- for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true0))
- continue;
- visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
- t7 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't";
- $async$self._async_evaluate0$_warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan0(A.SpanExtensions_trimRight0(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_5pG);
- }
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- targetText = _0_0._0;
- targetMap = _0_0._1;
- for (t1 = A.SelectorList_SelectorList$parse0(A.trimAscii0(targetText, true), false, targetMap, $async$self._async_evaluate0$_logger, false).components, t2 = t1.length, t3 = styleRule._style_rule0$_selector._box0$_inner, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- compound = complex.get$singleCompound();
- if (compound == null)
- throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", complex.span, null));
- t4 = compound.components;
- t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null;
- if (t5 == null)
- throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, null));
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, $async$self._async_evaluate0$_mediaQueries);
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitExtendRule$1, $async$completer);
- },
- visitAtRule$1(node) {
- return this.visitAtRule$body$_EvaluateVisitor0(node);
- },
- visitAtRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, $name, t1, value, children, wasInKeyframes, wasInUnknownAtRule;
- var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1);
- case 3:
- // returning from await.
- $name = $async$result;
- t1 = A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure8($async$self));
- $async$goto = 4;
- return A._asyncAwait(type$.Future_nullable_CssValue_String_2._is(t1) ? t1 : A._Future$value(t1, type$.nullable_CssValue_String_2), $async$visitAtRule$1);
- case 4:
- // returning from await.
- value = $async$result;
- children = node.children;
- if (children == null) {
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
- if (A.unvendor0($name.value) === "keyframes")
- $async$self._async_evaluate0$_inKeyframes = true;
- else
- $async$self._async_evaluate0$_inUnknownAtRule = true;
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure9($async$self, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure10(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitAtRule$1);
- case 5:
- // returning from await.
- $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitAtRule$1, $async$completer);
- },
- visitForRule$1(node) {
- return this.visitForRule$body$_EvaluateVisitor0(node);
- },
- visitForRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
- var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- t2 = node.from;
- t3 = type$.SassNumber_2;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1);
- case 3:
- // returning from await.
- fromNumber = $async$result;
- t4 = node.to;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1);
- case 4:
- // returning from await.
- toNumber = $async$result;
- from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure16(fromNumber));
- to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure17(toNumber, fromNumber));
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure18(t1, $async$self, node, from, direction, fromNumber), true, type$.nullable_Value_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitForRule$1, $async$completer);
- },
- visitForwardRule$1(node) {
- return this.visitForwardRule$body$_EvaluateVisitor0(node);
- },
- visitForwardRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3;
- var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldConfiguration = $async$self._async_evaluate0$_configuration;
- adjustedConfiguration = oldConfiguration.throughForward$1(node);
- t1 = node.configuration;
- t2 = t1.length;
- t3 = node.url;
- $async$goto = t2 !== 0 ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
- case 6:
- // returning from await.
- newConfiguration = $async$result;
- $async$goto = 7;
- return A._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure5($async$self, node), newConfiguration), $async$visitForwardRule$1);
- case 7:
- // returning from await.
- t3 = type$.String;
- t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- for (t1 = newConfiguration._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (!t3.contains$1(0, $name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(newConfiguration);
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$self._async_evaluate0$_configuration = adjustedConfiguration;
- $async$goto = 8;
- return A._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1);
- case 8:
- // returning from await.
- $async$self._async_evaluate0$_configuration = oldConfiguration;
- case 4:
- // join
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitForwardRule$1, $async$completer);
- },
- _async_evaluate0$_addForwardConfiguration$2(configuration, node) {
- return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node);
- },
- _addForwardConfiguration$body$_EvaluateVisitor0(configuration, node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration_2),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, _i, variable, t6, oldValue, t7, variableNodeWithSpan, t8, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
- var $async$_async_evaluate0$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = configuration._configuration0$_values;
- newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
- t2 = node.configuration, t3 = t2.length, t4 = type$._Future_Value_2, t5 = type$.Future_Value_2, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- variable = t2[_i];
- if (variable.isGuarded) {
- t6 = variable.name;
- oldValue = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t6);
- if (oldValue != null)
- t7 = !oldValue.value.$eq(0, B.C__SassNull0);
- else {
- oldValue = null;
- t7 = false;
- }
- if (t7) {
- newValues.$indexSet(0, t6, oldValue);
- // goto for update
- $async$goto = 4;
- break;
- }
- }
- t6 = variable.expression;
- variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t6);
- t7 = variable.name;
- t6 = t6.accept$1($async$self);
- if (!t5._is(t6)) {
- t8 = new A._Future($.Zone__current, t4);
- t8._state = 8;
- t8._resultOrListeners = t6;
- t6 = t8;
- }
- $async$temp1 = newValues;
- $async$temp2 = t7;
- $async$temp3 = A;
- $async$goto = 6;
- return A._asyncAwait(t6, $async$_async_evaluate0$_addForwardConfiguration$2);
- case 6:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1)) {
- $async$returnValue = new A.ExplicitConfiguration0(node, newValues, null);
- // goto return
- $async$goto = 1;
- break;
- } else {
- $async$returnValue = new A.Configuration0(newValues, null);
- // goto return
- $async$goto = 1;
- break;
- }
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer);
- },
- _async_evaluate0$_registerCommentsForModule$1(module) {
- var _this = this, _s5_ = "_root",
- t1 = _this._async_evaluate0$__root;
- if (t1 == null)
- return;
- if (_this._async_evaluate0$_assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
- return;
- t1 = _this._async_evaluate0$_preModuleComments;
- if (t1 == null)
- t1 = _this._async_evaluate0$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.List_CssComment_2);
- J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure2()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children._collection$_source, type$.CssComment_2), type$.UnmodifiableListView_CssComment_2));
- _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).clearChildren$0();
- _this._async_evaluate0$__endOfImports = 0;
- },
- _async_evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) {
- var t1, t2, t3, t4, _i, $name;
- for (t1 = upstream._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration0$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!t4.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
- var t1, _0_0, $name, value;
- if (!(configuration instanceof A.ExplicitConfiguration0))
- return;
- t1 = configuration._configuration0$_values;
- if (t1.get$isEmpty(t1))
- return;
- t1 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
- _0_0 = t1.get$first(t1);
- $name = _0_0._0;
- value = _0_0._1;
- t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
- throw A.wrapException(this._async_evaluate0$_exception$2(t1, value.configurationSpan));
- },
- _async_evaluate0$_assertConfigurationIsEmpty$1(configuration) {
- return this._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
- },
- visitFunctionRule$1(node) {
- return this.visitFunctionRule$body$_EvaluateVisitor0(node);
- },
- visitFunctionRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
- var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_environment;
- t2 = t1.closure$0();
- t3 = $async$self._async_evaluate0$_inDependency;
- t4 = t1._async_environment0$_functions;
- index = t4.length - 1;
- t5 = node.name;
- t1._async_environment0$_functionIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitFunctionRule$1, $async$completer);
- },
- visitIfRule$1(node) {
- return this.visitIfRule$body$_EvaluateVisitor0(node);
- },
- visitIfRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, clause;
- var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- clause = node.lastClause;
- t1 = node.clauses, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- clauseToCheck = t1[_i];
- $async$goto = 6;
- return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
- case 6:
- // returning from await.
- if ($async$result.get$isTruthy()) {
- clause = clauseToCheck;
- // goto after for
- $async$goto = 5;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = A.NullableExtension_andThen0(clause, new A._EvaluateVisitor_visitIfRule_closure2($async$self));
- $async$goto = 7;
- return A._asyncAwait(type$.Future_nullable_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Value_2), $async$visitIfRule$1);
- case 7:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitIfRule$1, $async$completer);
- },
- visitImportRule$1(node) {
- return this.visitImportRule$body$_EvaluateVisitor0(node);
- },
- visitImportRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
- var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport_2, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $import = t1[_i];
- $async$goto = $import instanceof A.DynamicImport0 ? 6 : 8;
- break;
- case 6:
- // then
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1);
- case 9:
- // returning from await.
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
- case 10:
- // returning from await.
- case 7:
- // join
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitImportRule$1, $async$completer);
- },
- _async_evaluate0$_visitDynamicImport$1($import) {
- return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void);
- },
- _async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
- return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport);
- },
- _async_evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
- return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _async_evaluate0$_loadStylesheet$3$forImport(url, span, forImport) {
- return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- _loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, _3_0, result, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, $async$exception;
- var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- baseUrl = baseUrl;
- $async$handler = 4;
- $async$self._async_evaluate0$_importSpan = span;
- _0_0 = $async$self._async_evaluate0$_importCache;
- importCache = null;
- $async$goto = _0_0 != null ? 7 : 8;
- break;
- case 7:
- // then
- importCache = _0_0;
- if (baseUrl == null)
- baseUrl = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").span.file.url;
- $async$goto = 9;
- return A._asyncAwait(J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), $async$self._async_evaluate0$_importer, baseUrl, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
- case 9:
- // returning from await.
- _1_0 = $async$result;
- importer = null;
- canonicalUrl = null;
- originalUrl = null;
- $async$goto = type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0) ? 10 : 11;
- break;
- case 10:
- // then
- importer = _1_0._0;
- canonicalUrl = _1_0._1;
- originalUrl = _1_0._2;
- $async$self._async_evaluate0$_loadedUrls.add$1(0, canonicalUrl);
- isDependency = $async$self._async_evaluate0$_inDependency || !J.$eq$(importer, $async$self._async_evaluate0$_importer);
- t1 = importCache;
- t2 = importer;
- t3 = canonicalUrl;
- t4 = originalUrl;
- $async$goto = 12;
- return A._asyncAwait(t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, $async$self._async_evaluate0$_quietDeps && isDependency), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
- case 12:
- // returning from await.
- _2_0 = $async$result;
- stylesheet = null;
- if (_2_0 != null) {
- stylesheet = _2_0;
- t1 = stylesheet;
- t2 = importer;
- $async$returnValue = new A._Record_3_importer_isDependency(t1, t2, isDependency);
- $async$next = [1];
- // goto finally
- $async$goto = 5;
- break;
- }
- case 11:
- // join
- case 8:
- // join
- $async$goto = $async$self._async_evaluate0$_nodeImporter != null ? 13 : 14;
- break;
- case 13:
- // then
- t1 = baseUrl;
- $async$goto = 15;
- return A._asyncAwait($async$self._async_evaluate0$_importLikeNode$3(url, t1 == null ? $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").span.file.url : t1, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
- case 15:
- // returning from await.
- _3_0 = $async$result;
- result = null;
- if (_3_0 != null) {
- result = _3_0;
- t1 = $async$self._async_evaluate0$_loadedUrls;
- A.NullableExtension_andThen0(result._0.span.file.url, t1.get$add(t1));
- t1 = result;
- $async$returnValue = t1;
- $async$next = [1];
- // goto finally
- $async$goto = 5;
- break;
- }
- case 14:
- // join
- t1 = B.JSString_methods.startsWith$1(url, "package:");
- if (t1)
- throw A.wrapException(string$.x22packa);
- else
- throw A.wrapException("Can't find stylesheet to import.");
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException0)
- throw $async$exception;
- else if (t1 instanceof A.ArgumentError) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- A.throwWithTrace0($async$self._async_evaluate0$_exception$1(J.toString$0$(error)), error, stackTrace);
- } else {
- error0 = t1;
- stackTrace0 = A.getTraceFromException($async$exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error0));
- } catch (exception) {
- message0 = J.toString$0$(error0);
- message = message0;
- }
- A.throwWithTrace0($async$self._async_evaluate0$_exception$1(message), error0, stackTrace0);
- }
- $async$next.push(6);
- // goto finally
- $async$goto = 5;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 5:
- // finally
- $async$handler = 2;
- $async$self._async_evaluate0$_importSpan = null;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer);
- },
- _async_evaluate0$_importLikeNode$3(originalUrl, previous, forImport) {
- return this._importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport);
- },
- _importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency),
- $async$returnValue, $async$self = this, isDependency, url, t2, t1, result;
- var $async$_async_evaluate0$_importLikeNode$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_nodeImporter;
- result = t1.loadRelative$3(originalUrl, previous, forImport);
- $async$goto = result != null ? 3 : 5;
- break;
- case 3:
- // then
- isDependency = $async$self._async_evaluate0$_inDependency;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = 6;
- return A._asyncAwait(t1.loadAsync$3(originalUrl, previous, forImport), $async$_async_evaluate0$_importLikeNode$3);
- case 6:
- // returning from await.
- result = $async$result;
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- isDependency = true;
- case 4:
- // join
- url = result._1;
- t1 = B.JSString_methods.startsWith$1(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0;
- t2 = $async$self._async_evaluate0$_quietDeps && isDependency ? $.$get$Logger_quiet0() : $async$self._async_evaluate0$_logger;
- $async$returnValue = new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse0(result._0, t1, t2, url), null, isDependency);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_importLikeNode$3, $async$completer);
- },
- _async_evaluate0$_visitStaticImport$1($import) {
- return this._visitStaticImport$body$_EvaluateVisitor0($import);
- },
- _visitStaticImport$body$_EvaluateVisitor0($import) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, node, $async$temp1, $async$temp2;
- var $async$_async_evaluate0$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1);
- case 2:
- // returning from await.
- t1 = $async$result;
- t2 = A.NullableExtension_andThen0($import.modifiers, $async$self.get$_async_evaluate0$_interpolationToValue());
- $async$temp1 = A;
- $async$temp2 = t1;
- $async$goto = 3;
- return A._asyncAwait(type$.Future_nullable_CssValue_String_2._is(t2) ? t2 : A._Future$value(t2, type$.nullable_CssValue_String_2), $async$_async_evaluate0$_visitStaticImport$1);
- case 3:
- // returning from await.
- node = new $async$temp1.ModifiableCssImport0($async$temp2, $async$result, $import.span);
- if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") !== $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root"))
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(node);
- else if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source)) {
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(node);
- $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
- } else {
- t1 = $async$self._async_evaluate0$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(node);
- }
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer);
- },
- _async_evaluate0$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
- return this._applyMixin$body$_EvaluateVisitor0(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent);
- },
- _applyMixin$body$_EvaluateVisitor0(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, _0_0, _1_8, t2;
- var $async$_async_evaluate0$_applyMixin$5 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (mixin == null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
- t1 = type$.AsyncBuiltInCallable_2._is(mixin);
- $async$goto = t1 && !mixin.get$acceptsContent() && contentCallable != null ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_applyMixin$5);
- case 5:
- // returning from await.
- t1 = $async$result._values;
- _0_0 = mixin.callbackFor$2(J.get$length$asx(t1[2]), new A.MapKeySet(t1[0], type$.MapKeySet_String));
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- case 4:
- // join
- $async$goto = t1 ? 6 : 7;
- break;
- case 6:
- // then
- $async$goto = 8;
- return A._asyncAwait($async$self._async_evaluate0$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure5($async$self, $arguments, mixin, nodeWithSpanWithoutContent)), $async$_async_evaluate0$_applyMixin$5);
- case 8:
- // returning from await.
- // goto break $label0$0
- $async$goto = 2;
- break;
- case 7:
- // join
- t1 = type$.UserDefinedCallable_AsyncEnvironment_2._is(mixin);
- if (t1) {
- _1_8 = mixin.declaration;
- if (_1_8 instanceof A.MixinRule0)
- t2 = !type$.MixinRule_2._as(_1_8).get$hasContent() && contentCallable != null;
- else
- t2 = false;
- } else
- t2 = false;
- if (t2)
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- $async$goto = t1 ? 9 : 10;
- break;
- case 9:
- // then
- $async$goto = 11;
- return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure6($async$self, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null), $async$_async_evaluate0$_applyMixin$5);
- case 11:
- // returning from await.
- // goto break $label0$0
- $async$goto = 2;
- break;
- case 10:
- // join
- throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- case 2:
- // break $label0$0
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_applyMixin$5, $async$completer);
- },
- visitIncludeRule$1(node) {
- return this.visitIncludeRule$body$_EvaluateVisitor0(node);
- },
- visitIncludeRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, mixin;
- var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- mixin = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure8($async$self, node));
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
- $async$self._async_evaluate0$_warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_qBS);
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_applyMixin$5(mixin, A.NullableExtension_andThen0(node.content, new A._EvaluateVisitor_visitIncludeRule_closure9($async$self)), node.$arguments, node, new A._FakeAstNode0(new A._EvaluateVisitor_visitIncludeRule_closure10(node))), $async$visitIncludeRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitIncludeRule$1, $async$completer);
- },
- visitMixinRule$1(node) {
- return this.visitMixinRule$body$_EvaluateVisitor0(node);
- },
- visitMixinRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
- var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_environment;
- t2 = t1.closure$0();
- t3 = $async$self._async_evaluate0$_inDependency;
- t4 = t1._async_environment0$_mixins;
- index = t4.length - 1;
- t5 = node.name;
- t1._async_environment0$_mixinIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitMixinRule$1, $async$completer);
- },
- visitLoudComment$1(node) {
- return this.visitLoudComment$body$_EvaluateVisitor0(node);
- },
- visitLoudComment$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
- var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_inFunction) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root") && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source))
- $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
- t1 = node.text;
- $async$temp1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
- $async$temp2 = A;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1);
- case 3:
- // returning from await.
- $async$temp1.addChild$1(new $async$temp2.ModifiableCssComment0($async$result, t1.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitLoudComment$1, $async$completer);
- },
- visitMediaRule$1(node) {
- return this.visitMediaRule$body$_EvaluateVisitor0(node);
- },
- visitMediaRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3;
- var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
- case 3:
- // returning from await.
- queries = $async$result;
- mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure8($async$self, queries));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- if (t1)
- mergedSources = B.Set_empty5;
- else {
- t2 = $async$self._async_evaluate0$_mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
- t3 = $async$self._async_evaluate0$_mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, queries);
- mergedSources = t2;
- }
- t1 = t1 ? queries : mergedQueries;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure9($async$self, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure10(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitMediaRule$1);
- case 4:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitMediaRule$1, $async$completer);
- },
- _async_evaluate0$_visitMediaQueries$1(interpolation) {
- return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation);
- },
- _visitMediaQueries$body$_EvaluateVisitor0(interpolation) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery_2),
- $async$returnValue, $async$self = this, _0_0;
- var $async$_async_evaluate0$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- $async$returnValue = A.CssMediaQuery_parseList0(_0_0._0, _0_0._1, $async$self._async_evaluate0$_logger);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer);
- },
- _async_evaluate0$_mergeMediaQueries$2(queries1, queries2) {
- var t1, t2, t3, t4, _0_0, t5, result,
- queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
- $label0$1: {
- _0_0 = t3.merge$1(t4.get$current(t4));
- if (B._SingletonCssMediaQueryMergeResult_00 === _0_0)
- continue;
- if (B._SingletonCssMediaQueryMergeResult_10 === _0_0)
- return null;
- t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult0;
- result = t5 ? _0_0 : null;
- if (t5)
- queries.push(result.query);
- break $label0$1;
- }
- }
- return queries;
- },
- visitReturnRule$1(node) {
- return this.visitReturnRule$body$_EvaluateVisitor0(node);
- },
- visitReturnRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2;
- var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.expression;
- t2 = t1.accept$1($async$self);
- $async$goto = 3;
- return A._asyncAwait(type$.Future_Value_2._is(t2) ? t2 : A._Future$value(t2, type$.Value_2), $async$visitReturnRule$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitReturnRule$1, $async$completer);
- },
- visitSilentComment$1(node) {
- return this.visitSilentComment$body$_EvaluateVisitor0(node);
- },
- visitSilentComment$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue;
- var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSilentComment$1, $async$completer);
- },
- visitStyleRule$1(node) {
- return this.visitStyleRule$body$_EvaluateVisitor0(node);
- },
- visitStyleRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule;
- var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_n, node.span));
- else if ($async$self._async_evaluate0$_inKeyframes && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock0)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_k, node.span));
- t1 = node.selector;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(t1, true), $async$visitStyleRule$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- selectorText = _0_0._0;
- selectorMap = _0_0._1;
- $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5;
- break;
- case 4:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable(A.KeyframeSelectorParser$0(selectorText, selectorMap, $async$self._async_evaluate0$_logger).parse$0(), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure11($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure12(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1);
- case 6:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- parsedSelector = A.SelectorList_SelectorList$parse0(selectorText, true, selectorMap, $async$self._async_evaluate0$_logger, $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss);
- t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.fromPlainCss;
- nest = t1 !== true;
- if (nest) {
- if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss)
- for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- _1_0 = t1[_i].leadingCombinators;
- if (_1_0.length >= 1) {
- first = _1_0[0];
- t3 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet");
- t3 = t3.plainCss;
- } else {
- first = null;
- t3 = false;
- }
- if (t3)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Top_lel, first.span));
- }
- t1 = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.originalSelector;
- parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !$async$self._async_evaluate0$_atRootExcludingStyleRule, $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss);
- }
- rule = A.ModifiableCssStyleRule$0($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addSelector$2(parsedSelector, $async$self._async_evaluate0$_mediaQueries), node.span, $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss, parsedSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
- t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
- t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure13() : null;
- $async$goto = 7;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure14($async$self, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1);
- case 7:
- // returning from await.
- $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- $async$self._async_evaluate0$_warnForBogusCombinators$1(rule);
- if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null) {
- t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
- t1 = !t1.get$isEmpty(t1);
- }
- if (t1) {
- t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
- t1.get$last(t1).isGroupEnd = true;
- }
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitStyleRule$1, $async$completer);
- },
- _async_evaluate0$_warnForBogusCombinators$1(rule) {
- var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
- if (!rule.accept$1(B._IsInvisibleVisitor_false_false0))
- for (t1 = rule._style_rule0$_selector._box0$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true0))
- continue;
- if (complex.accept$1(B.C__IsUselessVisitor0)) {
- visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._async_evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_5pG);
- } else if (complex.leadingCombinators.length !== 0) {
- if (!_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__stylesheet, "_stylesheet").plainCss) {
- visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._async_evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_5pG);
- }
- } else {
- visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
- t7 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : "";
- t8 = A.SpanExtensions_trimRight0(complex.span);
- if (t5.get$length(0) === 0)
- A.throwExpression(A.IterableElementError_noElement());
- t9 = J.get$span$z(t5.$index(0, 0));
- _this._async_evaluate0$_warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan0(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure2()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_5pG);
- }
- }
- },
- visitSupportsRule$1(node) {
- return this.visitSupportsRule$body$_EvaluateVisitor0(node);
- },
- visitSupportsRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
- var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
- t1 = node.condition;
- $async$temp1 = A;
- $async$temp2 = A;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
- case 4:
- // returning from await.
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$0(new $async$temp2.CssValue0($async$result, t1.get$span(t1), type$.CssValue_String_2), node.span), new A._EvaluateVisitor_visitSupportsRule_closure5($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitSupportsRule$1);
- case 3:
- // returning from await.
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSupportsRule$1, $async$completer);
- },
- _async_evaluate0$_visitSupportsCondition$1(condition) {
- return this._visitSupportsCondition$body$_EvaluateVisitor0(condition);
- },
- _visitSupportsCondition$body$_EvaluateVisitor0(condition) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, _box_0, $async$temp1, $async$temp2;
- var $async$_async_evaluate0$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- $async$goto = condition instanceof A.SupportsOperation0 ? 4 : 5;
- break;
- case 4:
- // then
- t1 = condition.operator;
- $async$temp1 = A;
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.left, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 6:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
- $async$temp2 = A;
- $async$goto = 7;
- return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.right, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 7:
- // returning from await.
- t1 = $async$temp1 + $async$temp2.S($async$result);
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 5:
- // join
- $async$goto = condition instanceof A.SupportsNegation0 ? 8 : 9;
- break;
- case 8:
- // then
- $async$temp1 = A;
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate0$_parenthesize$1(condition.condition), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 10:
- // returning from await.
- t1 = "not " + $async$temp1.S($async$result);
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 9:
- // join
- $async$goto = condition instanceof A.SupportsInterpolation0 ? 11 : 12;
- break;
- case 11:
- // then
- $async$goto = 13;
- return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 13:
- // returning from await.
- t1 = $async$result;
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 12:
- // join
- _box_0.declaration = null;
- $async$goto = condition instanceof A.SupportsDeclaration0 ? 14 : 15;
- break;
- case 14:
- // then
- _box_0.declaration = condition;
- $async$goto = 16;
- return A._asyncAwait($async$self._async_evaluate0$_withSupportsDeclaration$1$1(new A._EvaluateVisitor__visitSupportsCondition_closure2(_box_0, $async$self), type$.String), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 16:
- // returning from await.
- t1 = $async$result;
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 15:
- // join
- $async$goto = condition instanceof A.SupportsFunction0 ? 17 : 18;
- break;
- case 17:
- // then
- $async$temp1 = A;
- $async$goto = 19;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 19:
- // returning from await.
- $async$temp1 = $async$temp1.S($async$result) + "(";
- $async$temp2 = A;
- $async$goto = 20;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.$arguments), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 20:
- // returning from await.
- t1 = $async$temp1 + $async$temp2.S($async$result) + ")";
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 18:
- // join
- $async$goto = condition instanceof A.SupportsAnything0 ? 21 : 22;
- break;
- case 21:
- // then
- $async$temp1 = A;
- $async$goto = 23;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.contents), $async$_async_evaluate0$_visitSupportsCondition$1);
- case 23:
- // returning from await.
- t1 = "(" + $async$temp1.S($async$result) + ")";
- // goto break $label0$0
- $async$goto = 3;
- break;
- case 22:
- // join
- t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
- case 3:
- // break $label0$0
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer);
- },
- _async_evaluate0$_withSupportsDeclaration$1$1(callback, $T) {
- return this._withSupportsDeclaration$body$_EvaluateVisitor0(callback, $T, $T);
- },
- _withSupportsDeclaration$body$_EvaluateVisitor0(callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, t1, oldInSupportsDeclaration;
- var $async$_async_evaluate0$_withSupportsDeclaration$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
- $async$self._async_evaluate0$_inSupportsDeclaration = true;
- $async$handler = 3;
- t1 = callback.call$0();
- $async$goto = 6;
- return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate0$_withSupportsDeclaration$1$1);
- case 6:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- $async$next = [1];
- // goto finally
- $async$goto = 4;
- break;
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [2];
- case 4:
- // finally
- $async$handler = 2;
- $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_withSupportsDeclaration$1$1, $async$completer);
- },
- _async_evaluate0$_parenthesize$2(condition, operator) {
- return this._parenthesize$body$_EvaluateVisitor0(condition, operator);
- },
- _async_evaluate0$_parenthesize$1(condition) {
- return this._async_evaluate0$_parenthesize$2(condition, null);
- },
- _parenthesize$body$_EvaluateVisitor0(condition, operator) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, $async$temp1;
- var $async$_async_evaluate0$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (!(condition instanceof A.SupportsNegation0))
- if (condition instanceof A.SupportsOperation0)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- $async$goto = t1 ? 3 : 4;
- break;
- case 3:
- // then
- $async$temp1 = A;
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
- case 5:
- // returning from await.
- $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
- case 6:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer);
- },
- visitVariableDeclaration$1(node) {
- return this.visitVariableDeclaration$body$_EvaluateVisitor0(node);
- },
- visitVariableDeclaration$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t2, value, t1, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- if (node.isGuarded) {
- if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) {
- t2 = $async$self._async_evaluate0$_configuration._configuration0$_values;
- t2 = t2.get$isEmpty(t2) ? null : t2.remove$1(0, node.name);
- t1.override = null;
- if (t2 != null) {
- t1.override = t2;
- t2 = !t2.value.$eq(0, B.C__SassNull0);
- } else
- t2 = false;
- if (t2) {
- $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure8(t1, $async$self, node));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node));
- if (value != null && !value.$eq(0, B.C__SassNull0)) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) {
- t1 = $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName0(node.span) + ": null` at the stylesheet root.";
- $async$self._async_evaluate0$_warn$3(t1, node.span, B.Deprecation_W6Z);
- }
- t1 = node.expression;
- t2 = t1.accept$1($async$self);
- $async$temp1 = node;
- $async$temp2 = A;
- $async$temp3 = node;
- $async$goto = 3;
- return A._asyncAwait(type$.Future_Value_2._is(t2) ? t2 : A._Future$value(t2, type$.Value_2), $async$visitVariableDeclaration$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure10($async$self, $async$temp3, $async$self._async_evaluate0$_withoutSlash$2($async$result, t1)));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
- },
- visitUseRule$1(node) {
- return this.visitUseRule$body$_EvaluateVisitor0(node);
- },
- visitUseRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, values, t3, t4, _i, variable, t5, variableNodeWithSpan, t6, t7, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = node.configuration;
- t2 = t1.length;
- $async$goto = t2 !== 0 ? 3 : 5;
- break;
- case 3:
- // then
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- t3 = type$._Future_Value_2, t4 = type$.Future_Value_2, _i = 0;
- case 6:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- variable = t1[_i];
- t5 = variable.expression;
- variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t5);
- t6 = variable.name;
- t5 = t5.accept$1($async$self);
- if (!t4._is(t5)) {
- t7 = new A._Future($.Zone__current, t3);
- t7._state = 8;
- t7._resultOrListeners = t5;
- t5 = t7;
- }
- $async$temp1 = values;
- $async$temp2 = t6;
- $async$temp3 = A;
- $async$goto = 9;
- return A._asyncAwait(t5, $async$visitUseRule$1);
- case 9:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- configuration = new A.ExplicitConfiguration0(node, values, null);
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- configuration = B.Configuration_Map_empty_null0;
- case 4:
- // join
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure2($async$self, node), configuration), $async$visitUseRule$1);
- case 10:
- // returning from await.
- $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitUseRule$1, $async$completer);
- },
- visitWarnRule$1(node) {
- return this.visitWarnRule$body$_EvaluateVisitor0(node);
- },
- visitWarnRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, value, t1;
- var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitWarnRule_closure2($async$self, node), type$.Value_2), $async$visitWarnRule$1);
- case 3:
- // returning from await.
- value = $async$result;
- t1 = value instanceof A.SassString0 ? value._string0$_text : $async$self._async_evaluate0$_serialize$2(value, node.expression);
- $async$self._async_evaluate0$_logger.warn$2$trace(0, t1, $async$self._async_evaluate0$_stackTrace$1(node.span));
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitWarnRule$1, $async$completer);
- },
- visitWhileRule$1(node) {
- return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.nullable_Value_2);
- },
- visitBinaryOperationExpression$1(node) {
- var t1, _this = this;
- if (_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__stylesheet, "_stylesheet").plainCss) {
- t1 = node.operator;
- t1 = t1 !== B.BinaryOperator_wdM0 && t1 !== B.BinaryOperator_U770;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(_this._async_evaluate0$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
- return _this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure2(_this, node), type$.Value_2);
- },
- _async_evaluate0$_slash$3(left, right, node) {
- var t1, right0, _1_2, _1_1, _null = null,
- result = left.dividedBy$1(right),
- _1_2_isSet = left instanceof A.SassNumber0;
- if (_1_2_isSet) {
- t1 = type$.SassNumber_2;
- t1._as(left);
- if (right instanceof A.SassNumber0) {
- t1._as(right);
- t1 = node.allowsSlash && this._async_evaluate0$_operandAllowsSlash$1(node.left) && this._async_evaluate0$_operandAllowsSlash$1(node.right);
- right0 = right;
- _1_2 = right0;
- } else {
- right0 = _null;
- _1_2 = right;
- t1 = false;
- }
- _1_1 = left;
- } else {
- right0 = _null;
- _1_2 = right0;
- _1_1 = left;
- left = _1_2;
- t1 = false;
- }
- if (t1)
- return type$.SassNumber_2._as(result).withSlash$2(left, right0);
- if (_1_1 instanceof A.SassNumber0)
- t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber0;
- else
- t1 = false;
- if (t1) {
- this._async_evaluate0$_warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation2().call$1(node)) + " or " + A.expressionToCalc0(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_E8a);
- return result;
- }
- return result;
- },
- _async_evaluate0$_operandAllowsSlash$1(node) {
- var t1;
- if (node instanceof A.FunctionExpression0)
- if (node.namespace == null) {
- t1 = node.name;
- t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._async_evaluate0$_environment.getFunction$1(t1) == null;
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- },
- visitValueExpression$1(node) {
- return this.visitValueExpression$body$_EvaluateVisitor0(node);
- },
- visitValueExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue;
- var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitValueExpression$1, $async$completer);
- },
- visitVariableExpression$1(node) {
- return this.visitVariableExpression$body$_EvaluateVisitor0(node);
- },
- visitVariableExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, result;
- var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure2($async$self, node));
- if (result != null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitVariableExpression$1, $async$completer);
- },
- visitUnaryOperationExpression$1(node) {
- return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(node);
- },
- visitUnaryOperationExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3;
- var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = node;
- $async$temp2 = A;
- $async$temp3 = node;
- $async$goto = 3;
- return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure2($async$temp3, $async$result));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
- },
- visitBooleanExpression$1(node) {
- return this.visitBooleanExpression$body$_EvaluateVisitor0(node);
- },
- visitBooleanExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean_2),
- $async$returnValue;
- var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value ? B.SassBoolean_true0 : B.SassBoolean_false0;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
- },
- visitIfExpression$1(node) {
- return this.visitIfExpression$body$_EvaluateVisitor0(node);
- },
- visitIfExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, condition, t1, ifTrue, ifFalse, result, _0_0, positional, named;
- var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- positional = _0_0._0;
- named = _0_0._1;
- $async$self._async_evaluate0$_verifyArguments$4(J.get$length$asx(positional), named, $.$get$IfExpression_declaration0(), node);
- condition = A.ListExtensions_elementAtOrNull(positional, 0);
- if (condition == null) {
- t1 = named.$index(0, "condition");
- t1.toString;
- condition = t1;
- }
- ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
- if (ifTrue == null) {
- t1 = named.$index(0, "if-true");
- t1.toString;
- ifTrue = t1;
- }
- ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
- if (ifFalse == null) {
- t1 = named.$index(0, "if-false");
- t1.toString;
- ifFalse = t1;
- }
- $async$goto = 4;
- return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
- case 4:
- // returning from await.
- result = $async$result.get$isTruthy() ? ifTrue : ifFalse;
- t1 = result.accept$1($async$self);
- $async$goto = 5;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$visitIfExpression$1);
- case 5:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, $async$self._async_evaluate0$_expressionNode$1(result));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitIfExpression$1, $async$completer);
- },
- visitNullExpression$1(node) {
- return this.visitNullExpression$body$_EvaluateVisitor0(node);
- },
- visitNullExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue;
- var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = B.C__SassNull0;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitNullExpression$1, $async$completer);
- },
- visitNumberExpression$1(node) {
- return this.visitNumberExpression$body$_EvaluateVisitor0(node);
- },
- visitNumberExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
- $async$returnValue;
- var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = A.SassNumber_SassNumber0(node.value, node.unit);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitNumberExpression$1, $async$completer);
- },
- visitParenthesizedExpression$1(node) {
- var _this = this;
- return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._async_evaluate0$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
- },
- visitColorExpression$1(node) {
- return this.visitColorExpression$body$_EvaluateVisitor0(node);
- },
- visitColorExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor_2),
- $async$returnValue;
- var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = node.value;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitColorExpression$1, $async$completer);
- },
- visitListExpression$1(node) {
- return this.visitListExpression$body$_EvaluateVisitor0(node);
- },
- visitListExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassList_2),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = A;
- $async$goto = 3;
- return A._asyncAwait(A.mapAsync0(node.contents, new A._EvaluateVisitor_visitListExpression_closure2($async$self), type$.Expression_2, type$.Value_2), $async$visitListExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitListExpression$1, $async$completer);
- },
- visitMapExpression$1(node) {
- return this.visitMapExpression$body$_EvaluateVisitor0(node);
- },
- visitMapExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap_2),
- $async$returnValue, $async$self = this, t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1, map, keyNodes;
- var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = type$.Value_2;
- map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
- t2 = node.pairs, t3 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- $async$goto = 6;
- return A._asyncAwait(key.accept$1($async$self), $async$visitMapExpression$1);
- case 6:
- // returning from await.
- keyValue = $async$result;
- $async$goto = 7;
- return A._asyncAwait(value.accept$1($async$self), $async$visitMapExpression$1);
- case 7:
- // returning from await.
- valueValue = $async$result;
- if (map.containsKey$1(keyValue)) {
- t1 = keyNodes.$index(0, keyValue);
- oldValueSpan = t1 == null ? null : t1.get$span(t1);
- t1 = key.get$span(key);
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (oldValueSpan != null)
- t2.$indexSet(0, oldValueSpan, "first key");
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t1, "second key", t2, $async$self._async_evaluate0$_stackTrace$1(key.get$span(key)), null));
- }
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, key);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitMapExpression$1, $async$completer);
- },
- visitFunctionExpression$1(node) {
- return this.visitFunctionExpression$body$_EvaluateVisitor0(node);
- },
- visitFunctionExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t2, _0_0, t3, t4, oldInFunction, result, t1, $function;
- var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- $function = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure8($async$self, node));
- t1.$function = $function;
- $async$goto = $function == null ? 3 : 5;
- break;
- case 3:
- // then
- if (node.namespace != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span));
- t2 = node.name;
- _0_0 = t2.toLowerCase();
- if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
- t3 = node.$arguments;
- t4 = t3.named;
- t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure9());
- } else
- t3 = false;
- $async$goto = t3 ? 6 : 7;
- break;
- case 6:
- // then
- $async$goto = 8;
- return A._asyncAwait($async$self._async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, true), $async$visitFunctionExpression$1);
- case 8:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 7:
- // join
- $async$goto = "calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0 ? 9 : 10;
- break;
- case 9:
- // then
- $async$goto = 11;
- return A._asyncAwait($async$self._async_evaluate0$_visitCalculation$1(node), $async$visitFunctionExpression$1);
- case 11:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 10:
- // join
- $function = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate0$_builtInFunctions.$index(0, t2);
- t2 = t1.$function = $function == null ? new A.PlainCssCallable0(node.originalName) : $function;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- t2 = $function;
- case 4:
- // join
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
- $async$self._async_evaluate0$_warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_qBS);
- oldInFunction = $async$self._async_evaluate0$_inFunction;
- $async$self._async_evaluate0$_inFunction = true;
- $async$goto = 12;
- return A._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure10(t1, $async$self, node), type$.Value_2), $async$visitFunctionExpression$1);
- case 12:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_inFunction = oldInFunction;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
- },
- _async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
- return this._visitCalculation$body$_EvaluateVisitor0(node, inLegacySassFunction);
- },
- _async_evaluate0$_visitCalculation$1(node) {
- return this._async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, false);
- },
- _visitCalculation$body$_EvaluateVisitor0(node, inLegacySassFunction) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$next = [], $async$self = this, $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, t2, t3, $async$temp1;
- var $async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t2 = node.$arguments;
- t3 = t2.named;
- if (t3.get$isNotEmpty(t3))
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Keywor, node.span));
- else if (t2.rest != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Rest_a, node.span));
- $async$self._async_evaluate0$_checkCalculationArguments$1(node);
- t3 = A._setArrayType([], type$.JSArray_Object);
- t2 = t2.positional, t4 = t2.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t4)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$temp1 = t3;
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction);
- case 6:
- // returning from await.
- $async$temp1.push($async$result);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $arguments = t3;
- if ($async$self._async_evaluate0$_inSupportsDeclaration) {
- $async$returnValue = new A.SassCalculation0(node.name, A.List_List$unmodifiable($arguments, type$.Object));
- // goto return
- $async$goto = 1;
- break;
- }
- oldCallableNode = $async$self._async_evaluate0$_callableNode;
- $async$self._async_evaluate0$_callableNode = node;
- try {
- t1 = null;
- t3 = node.name;
- _0_0 = t3.toLowerCase();
- $label0$0: {
- if ("calc" === _0_0) {
- t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sqrt" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("sqrt", J.$index$asx($arguments, 0), A.number2__sqrt$closure(), true);
- break $label0$0;
- }
- if ("sin" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("sin", J.$index$asx($arguments, 0), A.number2__sin$closure(), false);
- break $label0$0;
- }
- if ("cos" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("cos", J.$index$asx($arguments, 0), A.number2__cos$closure(), false);
- break $label0$0;
- }
- if ("tan" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("tan", J.$index$asx($arguments, 0), A.number2__tan$closure(), false);
- break $label0$0;
- }
- if ("asin" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("asin", J.$index$asx($arguments, 0), A.number2__asin$closure(), true);
- break $label0$0;
- }
- if ("acos" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("acos", J.$index$asx($arguments, 0), A.number2__acos$closure(), true);
- break $label0$0;
- }
- if ("atan" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("atan", J.$index$asx($arguments, 0), A.number2__atan$closure(), true);
- break $label0$0;
- }
- if ("abs" === _0_0) {
- t1 = A.SassCalculation_abs0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("exp" === _0_0) {
- t1 = A.SassCalculation_exp0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sign" === _0_0) {
- t1 = A.SassCalculation_sign0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("min" === _0_0) {
- t1 = A.SassCalculation_min0($arguments);
- break $label0$0;
- }
- if ("max" === _0_0) {
- t1 = A.SassCalculation_max0($arguments);
- break $label0$0;
- }
- if ("hypot" === _0_0) {
- t1 = A.SassCalculation_hypot0($arguments);
- break $label0$0;
- }
- if ("pow" === _0_0) {
- t1 = A.SassCalculation_pow0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("atan2" === _0_0) {
- t1 = A.SassCalculation_atan20(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("log" === _0_0) {
- t1 = A.SassCalculation_log0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("mod" === _0_0) {
- t1 = A.SassCalculation_mod0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("rem" === _0_0) {
- t1 = A.SassCalculation_rem0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("round" === _0_0) {
- t1 = A.SassCalculation_round0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- if ("clamp" === _0_0) {
- t1 = A.SassCalculation_clamp0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
- t1 = A.throwExpression(t3);
- }
- t1 = t1;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- if (B.JSString_methods.contains$1(error.message, "compatible"))
- $async$self._async_evaluate0$_verifyCompatibleNumbers$2($arguments, t2);
- A.throwWithTrace0($async$self._async_evaluate0$_exception$2(error.message, node.span), error, stackTrace);
- } else
- throw exception;
- } finally {
- $async$self._async_evaluate0$_callableNode = oldCallableNode;
- }
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction, $async$completer);
- },
- _async_evaluate0$_checkCalculationArguments$1(node) {
- var t1, _0_0,
- check = new A._EvaluateVisitor__checkCalculationArguments_check2(this, node);
- $label0$0: {
- t1 = node.name;
- _0_0 = t1.toLowerCase();
- if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
- check.call$1(1);
- break $label0$0;
- }
- if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
- check.call$0();
- break $label0$0;
- }
- if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
- check.call$1(2);
- break $label0$0;
- }
- if ("round" === _0_0 || "clamp" === _0_0) {
- check.call$1(3);
- break $label0$0;
- }
- throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
- }
- },
- _async_evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
- var i, t1, _0_0, arg, number1, j, number2;
- for (i = 0; t1 = args.length, i < t1; ++i) {
- _0_0 = args[i];
- if (_0_0 instanceof A.SassNumber0) {
- t1 = _0_0.get$hasComplexUnits();
- arg = _0_0;
- } else {
- arg = null;
- t1 = false;
- }
- if (t1)
- throw A.wrapException(this._async_evaluate0$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
- }
- for (i = 0; i < t1 - 1; ++i) {
- number1 = args[i];
- if (!(number1 instanceof A.SassNumber0))
- continue;
- for (j = i + 1; t1 = args.length, j < t1; ++j) {
- number2 = args[j];
- if (!(number2 instanceof A.SassNumber0))
- continue;
- if (number1.hasPossiblyCompatibleUnits$1(number2))
- continue;
- throw A.wrapException(A.MultiSpanSassRuntimeException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._async_evaluate0$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
- }
- }
- },
- _async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
- return this._visitCalculationExpression$body$_EvaluateVisitor0(node, inLegacySassFunction);
- },
- _visitCalculationExpression$body$_EvaluateVisitor0(node, inLegacySassFunction) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
- $async$returnValue, $async$self = this, result, t2, _0_0, _1_0, t3, _i, i, _box_0, t1, inner, $async$temp1;
- var $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- t1 = node instanceof A.ParenthesizedExpression0;
- inner = t1 ? node.expression : null;
- $async$goto = t1 ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
- case 5:
- // returning from await.
- result = $async$result;
- $async$returnValue = result instanceof A.SassString0 ? new A.SassString0("(" + result._string0$_text + ")", false) : result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$goto = node instanceof A.StringExpression0 && node.accept$1(new A._IsCalculationSafeVisitor0()) ? 6 : 7;
- break;
- case 6:
- // then
- t1 = node.text;
- t2 = t1.get$asPlain();
- _0_0 = t2 == null ? null : t2.toLowerCase();
- if ("pi" === _0_0) {
- t1 = A.SassNumber_SassNumber0(3.141592653589793, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("e" === _0_0) {
- t1 = A.SassNumber_SassNumber0(2.718281828459045, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber0(1 / 0, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("-infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber0(-1 / 0, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- if ("nan" === _0_0) {
- t1 = A.SassNumber_SassNumber0(0 / 0, null);
- // goto break $label0$0
- $async$goto = 8;
- break;
- }
- $async$temp1 = A;
- $async$goto = 9;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
- case 9:
- // returning from await.
- t1 = new $async$temp1.SassString0($async$result, false);
- // goto break $label0$0
- $async$goto = 8;
- break;
- case 8:
- // break $label0$0
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 7:
- // join
- _box_0.right = _box_0.left = _box_0.operator = null;
- t1 = node instanceof A.BinaryOperationExpression0;
- if (t1) {
- _box_0.operator = node.operator;
- _box_0.left = node.left;
- _box_0.right = node.right;
- }
- $async$goto = t1 ? 10 : 11;
- break;
- case 10:
- // then
- $async$self._async_evaluate0$_checkWhitespaceAroundCalculationOperator$1(node);
- $async$goto = 12;
- return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure2(_box_0, $async$self, node, inLegacySassFunction), type$.Object), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
- case 12:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 11:
- // join
- $async$goto = node instanceof A.NumberExpression0 || node instanceof A.VariableExpression0 || node instanceof A.FunctionExpression0 || node instanceof A.IfExpression0 ? 13 : 14;
- break;
- case 13:
- // then
- $async$goto = 15;
- return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
- case 15:
- // returning from await.
- _1_0 = $async$result;
- $label1$1: {
- if (_1_0 instanceof A.SassNumber0) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassCalculation0) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassString0) {
- t1 = !_1_0._string0$_hasQuotes;
- result = _1_0;
- } else {
- result = null;
- t1 = false;
- }
- if (t1) {
- t1 = result;
- break $label1$1;
- }
- t1 = A.throwExpression($async$self._async_evaluate0$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
- }
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 14:
- // join
- $async$goto = node instanceof A.ListExpression0 && !node.hasBrackets && B.ListSeparator_nbm0 === node.separator && node.contents.length >= 2 ? 16 : 17;
- break;
- case 16:
- // then
- t1 = A._setArrayType([], type$.JSArray_Object);
- t2 = node.contents, t3 = t2.length, _i = 0;
- case 18:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 20;
- break;
- }
- $async$temp1 = t1;
- $async$goto = 21;
- return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
- case 21:
- // returning from await.
- $async$temp1.push($async$result);
- case 19:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 18;
- break;
- case 20:
- // after for
- $async$self._async_evaluate0$_checkAdjacentCalculationValues$2(t1, node);
- for (i = 0; i < t1.length; ++i) {
- t3 = t1[i];
- if (t3 instanceof A.CalculationOperation0 && t2[i] instanceof A.ParenthesizedExpression0)
- t1[i] = new A.SassString0("(" + A.S(t3) + ")", false);
- }
- $async$returnValue = new A.SassString0(B.JSArray_methods.join$1(t1, " "), false);
- // goto return
- $async$goto = 1;
- break;
- case 17:
- // join
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.This_e, node.get$span(node)));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction, $async$completer);
- },
- _async_evaluate0$_checkWhitespaceAroundCalculationOperator$1(node) {
- var t2, t3, t4, textBetweenOperands, first, last,
- t1 = node.operator;
- if (t1 !== B.BinaryOperator_u150 && t1 !== B.BinaryOperator_SjO0)
- return;
- t1 = node.left;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t3 = node.right;
- t4 = t3.get$span(t3);
- if (t2 !== t4.get$file(t4))
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$end(t2);
- t4 = t3.get$span(t3);
- if (t2.offset >= t4.get$start(t4).offset)
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t1 = t1.get$span(t1);
- t1 = t1.get$end(t1);
- t3 = t3.get$span(t3);
- textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
- first = textBetweenOperands.charCodeAt(0);
- last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
- if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
- t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._async_evaluate0$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
- },
- _async_evaluate0$_binaryOperatorToCalculationOperator$2(operator, node) {
- var t1;
- $label0$0: {
- if (B.BinaryOperator_u150 === operator) {
- t1 = B.CalculationOperator_g2q0;
- break $label0$0;
- }
- if (B.BinaryOperator_SjO0 === operator) {
- t1 = B.CalculationOperator_CxF0;
- break $label0$0;
- }
- if (B.BinaryOperator_2No0 === operator) {
- t1 = B.CalculationOperator_1710;
- break $label0$0;
- }
- if (B.BinaryOperator_U770 === operator) {
- t1 = B.CalculationOperator_Qf10;
- break $label0$0;
- }
- t1 = A.throwExpression(this._async_evaluate0$_exception$2(string$.This_o, node.get$operatorSpan()));
- }
- return t1;
- },
- _async_evaluate0$_checkAdjacentCalculationValues$2(elements, node) {
- var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
- for (t1 = elements.length, i = 1; i < t1; ++i) {
- t2 = i - 1;
- previous = elements[t2];
- current = elements[i];
- if (previous instanceof A.SassString0 || current instanceof A.SassString0)
- continue;
- t1 = node.contents;
- previousNode = t1[t2];
- currentNode = t1[i];
- if (currentNode instanceof A.UnaryOperationExpression0) {
- _0_2 = currentNode.operator;
- if (B.UnaryOperator_AiQ0 !== _0_2)
- t1 = B.UnaryOperator_cLp0 === _0_2;
- else
- t1 = true;
- } else
- t1 = false;
- if (!t1)
- t1 = currentNode instanceof A.NumberExpression0 && currentNode.value < 0;
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._async_evaluate0$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
- else
- throw A.wrapException(this._async_evaluate0$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
- }
- },
- visitInterpolatedFunctionExpression$1(node) {
- return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(node);
- },
- visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, result, t1, oldInFunction;
- var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1);
- case 3:
- // returning from await.
- t1 = $async$result;
- oldInFunction = $async$self._async_evaluate0$_inFunction;
- $async$self._async_evaluate0$_inFunction = true;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2($async$self, node, new A.PlainCssCallable0(t1)), type$.Value_2), $async$visitInterpolatedFunctionExpression$1);
- case 4:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_inFunction = oldInFunction;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer);
- },
- _async_evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
- return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $V);
- },
- _runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name;
- var $async$_async_evaluate0$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$1$4);
- case 3:
- // returning from await.
- evaluated = $async$result;
- $name = callable.declaration.name;
- if ($name !== "@content")
- $name += "()";
- oldCallable = $async$self._async_evaluate0$_currentCallable;
- $async$self._async_evaluate0$_currentCallable = callable;
- $async$goto = 4;
- return A._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure2($async$self, callable, evaluated, nodeWithSpan, run, $V), $V), $async$_async_evaluate0$_runUserDefinedCallable$1$4);
- case 4:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_currentCallable = oldCallable;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$1$4, $async$completer);
- },
- _async_evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
- return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
- },
- _runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, $async$exception, $async$temp1;
- var $async$_async_evaluate0$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = type$.AsyncBuiltInCallable_2._is(callable) ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return A._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3);
- case 6:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeWithSpan);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$goto = type$.UserDefinedCallable_AsyncEnvironment_2._is(callable) ? 7 : 9;
- break;
- case 7:
- // then
- $async$goto = 10;
- return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure2($async$self, callable), type$.Value_2), $async$_async_evaluate0$_runFunctionCallable$3);
- case 10:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = callable instanceof A.PlainCssCallable0 ? 11 : 13;
- break;
- case 11:
- // then
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
- buffer = new A.StringBuffer(callable.name + "(");
- $async$handler = 15;
- first = true;
- t1 = $arguments.positional, t2 = t1.length, _i = 0;
- case 18:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 20;
- break;
- }
- argument = t1[_i];
- if (first)
- first = false;
- else
- buffer._contents += ", ";
- t3 = buffer;
- $async$temp1 = A;
- $async$goto = 21;
- return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3);
- case 21:
- // returning from await.
- t4 = $async$temp1.S($async$result);
- t3._contents += t4;
- case 19:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 18;
- break;
- case 20:
- // after for
- restArg = $arguments.rest;
- $async$goto = restArg != null ? 22 : 23;
- break;
- case 22:
- // then
- $async$goto = 24;
- return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3);
- case 24:
- // returning from await.
- rest = $async$result;
- if (!first)
- buffer._contents += ", ";
- t1 = buffer;
- t2 = $async$self._async_evaluate0$_serialize$2(rest, restArg);
- t1._contents += t2;
- case 23:
- // join
- $async$handler = 2;
- // goto after finally
- $async$goto = 17;
- break;
- case 15:
- // catch
- $async$handler = 14;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (type$.SassRuntimeException_2._is(t1)) {
- error = t1;
- if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
- throw $async$exception;
- throw A.wrapException(A.MultiSpanSassRuntimeException$0(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 17;
- break;
- case 14:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 17:
- // after finally
- t1 = buffer;
- t2 = A.Primitives_stringFromCharCode(41);
- t1._contents += t2;
- t2 = buffer._contents;
- $async$returnValue = new A.SassString0(t2.charCodeAt(0) == 0 ? t2 : t2, false);
- // goto return
- $async$goto = 1;
- break;
- // goto join
- $async$goto = 12;
- break;
- case 13:
- // else
- throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
- case 12:
- // join
- case 8:
- // join
- case 4:
- // join
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer);
- },
- _async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
- return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
- },
- _runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, t2, t3, argument, t4, t5, t6, t7, rest, argumentList, exception, message0, _box_0, evaluated, oldCallableNode, $async$exception;
- var $async$_async_evaluate0$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runBuiltInCallable$3);
- case 3:
- // returning from await.
- evaluated = $async$result;
- oldCallableNode = $async$self._async_evaluate0$_callableNode;
- $async$self._async_evaluate0$_callableNode = nodeWithSpan;
- namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
- _box_0.callback = _box_0.overload = null;
- _0_0 = callable.callbackFor$2(J.get$length$asx(evaluated._values[2]), namedSet);
- _box_0.overload = _0_0._0;
- _box_0.callback = _0_0._1;
- $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure8(_box_0, evaluated, namedSet));
- declaredArguments = _box_0.overload.$arguments;
- i = J.get$length$asx(evaluated._values[2]), t1 = declaredArguments.length, t2 = type$._Future_Value_2, t3 = type$.Future_Value_2;
- case 4:
- // for condition
- if (!(i < t1)) {
- // goto after for
- $async$goto = 6;
- break;
- }
- argument = declaredArguments[i];
- t4 = evaluated._values[2];
- t5 = evaluated._values[0].remove$1(0, argument.name);
- $async$goto = t5 == null ? 7 : 8;
- break;
- case 7:
- // then
- t5 = argument.defaultValue;
- t6 = t5.accept$1($async$self);
- if (!t3._is(t6)) {
- t7 = new A._Future($.Zone__current, t2);
- t7._state = 8;
- t7._resultOrListeners = t6;
- t6 = t7;
- }
- $async$goto = 9;
- return A._asyncAwait(t6, $async$_async_evaluate0$_runBuiltInCallable$3);
- case 9:
- // returning from await.
- t5 = $async$self._async_evaluate0$_withoutSlash$2($async$result, t5);
- case 8:
- // join
- J.add$1$ax(t4, t5);
- case 5:
- // for update
- ++i;
- // goto for condition
- $async$goto = 4;
- break;
- case 6:
- // after for
- if (_box_0.overload.restArgument != null) {
- if (J.get$length$asx(evaluated._values[2]) > t1) {
- rest = J.sublist$1$ax(evaluated._values[2], t1);
- J.removeRange$2$ax(evaluated._values[2], t1, J.get$length$asx(evaluated._values[2]));
- } else
- rest = B.List_empty19;
- t1 = evaluated._values[0];
- argumentList = A.SassArgumentList$0(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : evaluated._values[4]);
- J.add$1$ax(evaluated._values[2], argumentList);
- } else
- argumentList = null;
- result = null;
- $async$handler = 11;
- $async$goto = 14;
- return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure9(_box_0, evaluated), type$.Value_2), $async$_async_evaluate0$_runBuiltInCallable$3);
- case 14:
- // returning from await.
- result = $async$result;
- $async$handler = 2;
- // goto after finally
- $async$goto = 13;
- break;
- case 11:
- // catch
- $async$handler = 10;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassException0)
- throw $async$exception;
- else {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error));
- } catch (exception) {
- message0 = J.toString$0$(error);
- message = message0;
- }
- A.throwWithTrace0($async$self._async_evaluate0$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
- }
- // goto after finally
- $async$goto = 13;
- break;
- case 10:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 13:
- // after finally
- $async$self._async_evaluate0$_callableNode = oldCallableNode;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = evaluated._values[0];
- if (t1.get$isEmpty(t1)) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._argument_list$_wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = evaluated._values[0];
- t1 = A.pluralize0("argument", J.get$length$asx(t1.get$keys(t1)), null);
- t2 = evaluated._values[0];
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + t1 + " named " + A.toSentence0(J.map$1$1$ax(t2.get$keys(t2), new A._EvaluateVisitor__runBuiltInCallable_closure10(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer);
- },
- _async_evaluate0$_evaluateArguments$1($arguments) {
- return this._evaluateArguments$body$_EvaluateVisitor0($arguments);
- },
- _evaluateArguments$body$_EvaluateVisitor0($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, expression, nodeForSpan, t5, t6, named, namedNodes, $name, value, t7, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2;
- var $async$_async_evaluate0$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- positional = A._setArrayType([], type$.JSArray_Value_2);
- positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2);
- t1 = $arguments.positional, t2 = t1.length, t3 = type$._Future_Value_2, t4 = type$.Future_Value_2, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- expression = t1[_i];
- nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(expression);
- t5 = expression.accept$1($async$self);
- if (!t4._is(t5)) {
- t6 = new A._Future($.Zone__current, t3);
- t6._state = 8;
- t6._resultOrListeners = t5;
- t5 = t6;
- }
- $async$temp1 = positional;
- $async$goto = 6;
- return A._asyncAwait(t5, $async$_async_evaluate0$_evaluateArguments$1);
- case 6:
- // returning from await.
- $async$temp1.push($async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan));
- positionalNodes.push(nodeForSpan);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = type$.String;
- named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2);
- t2 = type$.AstNode_2;
- namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- t5 = A.MapExtensions_get_pairs0($arguments.named, t1, type$.Expression_2), t5 = t5.get$iterator(t5);
- case 7:
- // for condition
- if (!t5.moveNext$0()) {
- // goto after for
- $async$goto = 8;
- break;
- }
- t6 = t5.get$current(t5);
- $name = t6._0;
- value = t6._1;
- nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(value);
- t6 = value.accept$1($async$self);
- if (!t4._is(t6)) {
- t7 = new A._Future($.Zone__current, t3);
- t7._state = 8;
- t7._resultOrListeners = t6;
- t6 = t7;
- }
- $async$temp1 = named;
- $async$temp2 = $name;
- $async$goto = 9;
- return A._asyncAwait(t6, $async$_async_evaluate0$_evaluateArguments$1);
- case 9:
- // returning from await.
- $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan));
- namedNodes.$indexSet(0, $name, nodeForSpan);
- // goto for condition
- $async$goto = 7;
- break;
- case 8:
- // after for
- restArgs = $arguments.rest;
- if (restArgs == null) {
- $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided0]);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 10;
- return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
- case 10:
- // returning from await.
- rest = $async$result;
- restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs);
- if (rest instanceof A.SassMap0) {
- $async$self._async_evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure11());
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();)
- t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan);
- namedNodes.addAll$1(0, t3);
- separator = B.ListSeparator_undecided_null_undecided0;
- } else if (rest instanceof A.SassList0) {
- t3 = rest._list1$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure12($async$self, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value0>")));
- B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
- separator = rest._list1$_separator;
- if (rest instanceof A.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure13($async$self, named, restNodeForSpan, namedNodes));
- }
- } else {
- positional.push($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan));
- positionalNodes.push(restNodeForSpan);
- separator = B.ListSeparator_undecided_null_undecided0;
- }
- keywordRestArgs = $arguments.keywordRest;
- if (keywordRestArgs == null) {
- $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 11;
- return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
- case 11:
- // returning from await.
- keywordRest = $async$result;
- keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs);
- if (keywordRest instanceof A.SassMap0) {
- $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure14());
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();)
- t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t1);
- $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_evaluateArguments$1, $async$completer);
- },
- _async_evaluate0$_evaluateMacroArguments$1(invocation) {
- return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation);
- },
- _evaluateMacroArguments$body$_EvaluateVisitor0(invocation) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_List_Expression_and_Map_String_Expression_2),
- $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_;
- var $async$_async_evaluate0$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = invocation.$arguments;
- restArgs_ = t1.rest;
- if (restArgs_ == null) {
- $async$returnValue = new A._Record_2(t1.positional, t1.named);
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = t1.positional;
- positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
- named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2);
- $async$goto = 3;
- return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
- case 3:
- // returning from await.
- rest = $async$result;
- restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs_);
- if (rest instanceof A.SassMap0)
- $async$self._async_evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure11(restArgs_));
- else if (rest instanceof A.SassList0) {
- t2 = rest._list1$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure12($async$self, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
- if (rest instanceof A.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure13($async$self, named, restNodeForSpan, restArgs_));
- }
- } else
- positional.push(new A.ValueExpression0($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
- keywordRestArgs_ = t1.keywordRest;
- if (keywordRestArgs_ == null) {
- $async$returnValue = new A._Record_2(positional, named);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = 4;
- return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
- case 4:
- // returning from await.
- keywordRest = $async$result;
- keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs_);
- if (keywordRest instanceof A.SassMap0) {
- $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure14($async$self, keywordRestNodeForSpan, keywordRestArgs_));
- $async$returnValue = new A._Record_2(positional, named);
- // goto return
- $async$goto = 1;
- break;
- } else
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer);
- },
- _async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
- map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure2(this, values, convert, this._async_evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
- },
- _async_evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) {
- return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
- },
- _async_evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
- return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named));
- },
- visitSelectorExpression$1(node) {
- return this.visitSelectorExpression$body$_EvaluateVisitor0(node);
- },
- visitSelectorExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1;
- var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
- $async$returnValue = t1 == null ? B.C__SassNull0 : t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
- },
- visitStringExpression$1(node) {
- return this.visitStringExpression$body$_EvaluateVisitor0(node);
- },
- visitStringExpression$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, value, t5, _0_0, text, oldInSupportsDeclaration;
- var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
- $async$self._async_evaluate0$_inSupportsDeclaration = false;
- t1 = A._setArrayType([], type$.JSArray_String);
- t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression_2, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- value = t2[_i];
- if (typeof value == "string") {
- t5 = value;
- // goto break $label0$0
- $async$goto = 6;
- break;
- }
- $async$goto = t4._is(value) ? 7 : 8;
- break;
- case 7:
- // then
- $async$goto = 9;
- return A._asyncAwait(value.accept$1($async$self), $async$visitStringExpression$1);
- case 9:
- // returning from await.
- _0_0 = $async$result;
- $label1$1: {
- if (_0_0 instanceof A.SassString0) {
- text = _0_0._string0$_text;
- t5 = text;
- break $label1$1;
- }
- t5 = $async$self._async_evaluate0$_serialize$3$quote(_0_0, value, false);
- break $label1$1;
- }
- // goto break $label0$0
- $async$goto = 6;
- break;
- case 8:
- // join
- t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
- case 6:
- // break $label0$0
- t1.push(t5);
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- t1 = B.JSArray_methods.join$0(t1);
- $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
- $async$returnValue = new A.SassString0(t1, node.hasQuotes);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitStringExpression$1, $async$completer);
- },
- visitSupportsExpression$1(expression) {
- return this.visitSupportsExpression$body$_EvaluateVisitor0(expression);
- },
- visitSupportsExpression$body$_EvaluateVisitor0(expression) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2),
- $async$returnValue, $async$self = this, $async$temp1;
- var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$temp1 = A;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1);
- case 3:
- // returning from await.
- $async$returnValue = new $async$temp1.SassString0($async$result, false);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer);
- },
- visitCssAtRule$1(node) {
- return this.visitCssAtRule$body$_EvaluateVisitor0(node);
- },
- visitCssAtRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
- var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
- if (node.isChildless) {
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
- // goto return
- $async$goto = 1;
- break;
- }
- wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
- wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
- t1 = node.name;
- if (A.unvendor0(t1.value) === "keyframes")
- $async$self._async_evaluate0$_inKeyframes = true;
- else
- $async$self._async_evaluate0$_inUnknownAtRule = true;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssAtRule_closure6(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitCssAtRule$1);
- case 3:
- // returning from await.
- $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssAtRule$1, $async$completer);
- },
- visitCssComment$1(node) {
- return this.visitCssComment$body$_EvaluateVisitor0(node);
- },
- visitCssComment$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root") && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source))
- $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(new A.ModifiableCssComment0(node.text, node.span));
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssComment$1, $async$completer);
- },
- visitCssDeclaration$1(node) {
- return this.visitCssDeclaration$body$_EvaluateVisitor0(node);
- },
- visitCssDeclaration$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap));
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
- },
- visitCssImport$1(node) {
- return this.visitCssImport$body$_EvaluateVisitor0(node);
- },
- visitCssImport$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, modifiableNode;
- var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
- if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") !== $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root"))
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(modifiableNode);
- else if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source)) {
- $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(modifiableNode);
- $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
- } else {
- t1 = $async$self._async_evaluate0$_outOfOrderImports;
- (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
- }
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssImport$1, $async$completer);
- },
- visitCssKeyframeBlock$1(node) {
- return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node);
- },
- visitCssKeyframeBlock$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure6(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitCssKeyframeBlock$1);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
- },
- visitCssMediaRule$1(node) {
- return this.visitCssMediaRule$body$_EvaluateVisitor0(node);
- },
- visitCssMediaRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3;
- var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
- mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure8($async$self, node));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
- // goto return
- $async$goto = 1;
- break;
- }
- if (t1)
- mergedSources = B.Set_empty5;
- else {
- t2 = $async$self._async_evaluate0$_mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
- t3 = $async$self._async_evaluate0$_mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, node.queries);
- mergedSources = t2;
- }
- t1 = t1 ? node.queries : mergedQueries;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure9($async$self, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure10(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitCssMediaRule$1);
- case 3:
- // returning from await.
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
- },
- visitCssStyleRule$1(node) {
- return this.visitCssStyleRule$body$_EvaluateVisitor0(node);
- },
- visitCssStyleRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild;
- var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_n, node.span));
- else if ($async$self._async_evaluate0$_inKeyframes && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock0)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_k, node.span));
- t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule;
- styleRule = t1 ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
- t2 = t1 ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
- t2 = t2 == null ? null : t2.fromPlainCss;
- nest = t2 !== true;
- t2 = node._style_rule0$_selector._box0$_inner;
- if (nest) {
- t2 = t2.value;
- t3 = styleRule == null ? null : styleRule.originalSelector;
- originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
- } else
- originalSelector = t2.value;
- rule = A.ModifiableCssStyleRule$0($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addSelector$2(originalSelector, $async$self._async_evaluate0$_mediaQueries), node.span, node.fromPlainCss, originalSelector);
- oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
- $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
- t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure5() : null;
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure6($async$self, rule, node), false, t1, type$.ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1);
- case 2:
- // returning from await.
- $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children._collection$_source;
- t2 = J.getInterceptor$asx(t1);
- _0_1 = t2.get$length(t1);
- if (_0_1 >= 1) {
- lastChild = t2.elementAt$1(t1, _0_1 - 1);
- t1 = styleRule == null;
- } else {
- lastChild = null;
- t1 = false;
- }
- if (t1)
- lastChild.isGroupEnd = true;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
- },
- visitCssStylesheet$1(node) {
- return this.visitCssStylesheet$body$_EvaluateVisitor0(node);
- },
- visitCssStylesheet$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.get$iterator$ax(node.get$children(node));
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- $async$goto = 4;
- return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
- },
- visitCssSupportsRule$1(node) {
- return this.visitCssSupportsRule$body$_EvaluateVisitor0(node);
- },
- visitCssSupportsRule$body$_EvaluateVisitor0(node) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if ($async$self._async_evaluate0$_declarationName != null)
- throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
- $async$goto = 2;
- return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitCssSupportsRule$1);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
- },
- _async_evaluate0$_handleReturn$1$2(list, callback) {
- return this._handleReturn$body$_EvaluateVisitor0(list, callback);
- },
- _async_evaluate0$_handleReturn$2(list, callback) {
- return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
- },
- _handleReturn$body$_EvaluateVisitor0(list, callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, t1, _i, _0_0;
- var $async$_async_evaluate0$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = list.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < list.length)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2);
- case 6:
- // returning from await.
- _0_0 = $async$result;
- if (_0_0 != null) {
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer);
- },
- _async_evaluate0$_withEnvironment$1$2(environment, callback, $T) {
- return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T);
- },
- _withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldEnvironment;
- var $async$_async_evaluate0$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldEnvironment = $async$self._async_evaluate0$_environment;
- $async$self._async_evaluate0$_environment = environment;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_environment = oldEnvironment;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer);
- },
- _async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
- return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor);
- },
- _async_evaluate0$_interpolationToValue$1(interpolation) {
- return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _async_evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
- return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String_2),
- $async$returnValue, $async$self = this, result, t1;
- var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor);
- case 3:
- // returning from await.
- result = $async$result;
- t1 = trim ? A.trimAscii0(result, true) : result;
- $async$returnValue = new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer);
- },
- _async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
- return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor);
- },
- _async_evaluate0$_performInterpolation$1(interpolation) {
- return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
- },
- _performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this;
- var $async$_async_evaluate0$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor), $async$_async_evaluate0$_performInterpolation$2$warnForColor);
- case 3:
- // returning from await.
- $async$returnValue = $async$result._0;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer);
- },
- _async_evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
- return this._performInterpolationWithMap$body$_EvaluateVisitor0(interpolation, true);
- },
- _performInterpolationWithMap$body$_EvaluateVisitor0(interpolation, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_InterpolationMap_2),
- $async$returnValue, $async$self = this, _0_0, result, map;
- var $async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), $async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- result = _0_0._0;
- map = _0_0._1;
- map.toString;
- $async$returnValue = new A._Record_2(result, map);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor, $async$completer);
- },
- _async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
- return this._performInterpolationHelper$body$_EvaluateVisitor0(interpolation, sourceMap, warnForColor);
- },
- _performInterpolationHelper$body$_EvaluateVisitor0(interpolation, sourceMap, warnForColor) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_nullable_InterpolationMap_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, targetLocations, oldInSupportsDeclaration;
- var $async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : null;
- oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
- $async$self._async_evaluate0$_inSupportsDeclaration = false;
- t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression_2, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = "";
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- value = t1[_i];
- if (!first)
- if (!t4)
- targetLocations.push(A.SourceLocation$(t8.length, null, null, null));
- if (typeof value == "string") {
- t8 += value;
- // goto for update
- $async$goto = 4;
- break;
- }
- t3._as(value);
- $async$goto = 6;
- return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor);
- case 6:
- // returning from await.
- result = $async$result;
- if (warnForColor && $.$get$namesByColor0().containsKey$1(result)) {
- t9 = A._setArrayType([""], t5);
- result0 = A.List_List$from(t9, false, t7);
- result0.fixed$length = Array;
- result0.immutable$list = Array;
- result0 = new A.Interpolation0(result0, t6);
- result0.Interpolation$20(t9, t6);
- t9 = $.$get$namesByColor0();
- $async$self._async_evaluate0$_warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_u150, new A.StringExpression0(result0, true), value, false).toString$0(0) + "'.", value.get$span(value));
- }
- t8 += $async$self._async_evaluate0$_serialize$3$quote(result, value, false);
- case 4:
- // for update
- ++_i, first = false;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
- $async$returnValue = new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen0(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure2(interpolation)));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor, $async$completer);
- },
- _async_evaluate0$_evaluateToCss$2$quote(expression, quote) {
- return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote);
- },
- _async_evaluate0$_evaluateToCss$1(expression) {
- return this._async_evaluate0$_evaluateToCss$2$quote(expression, true);
- },
- _evaluateToCss$body$_EvaluateVisitor0(expression, quote) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1;
- var $async$_async_evaluate0$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = expression.accept$1($async$self);
- $async$goto = 3;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$_async_evaluate0$_evaluateToCss$2$quote);
- case 3:
- // returning from await.
- $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer);
- },
- _async_evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) {
- return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure2(value, quote));
- },
- _async_evaluate0$_serialize$2(value, nodeWithSpan) {
- return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _async_evaluate0$_expressionNode$1(expression) {
- var t1;
- if (expression instanceof A.VariableExpression0) {
- t1 = this._async_evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure2(this, expression));
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
- return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T);
- },
- _async_evaluate0$_withParent$2$2(node, callback, $S, $T) {
- return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _async_evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
- return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, t1, result;
- var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$self._async_evaluate0$_addChild$2$through(node, through);
- t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
- $async$self._async_evaluate0$__parent = node;
- $async$goto = 3;
- return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$__parent = t1;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer);
- },
- _async_evaluate0$_addChild$2$through(node, through) {
- var _0_0, grandparent, t1,
- $parent = this._async_evaluate0$_assertInModule$2(this._async_evaluate0$__parent, "__parent");
- if (through != null) {
- for (; through.call$1($parent); $parent = _0_0) {
- _0_0 = $parent._node$_parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
- }
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._node$_parent;
- t1 = grandparent.children;
- if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
- $parent = type$.ModifiableCssParentNode_2._as(t1.get$last(t1));
- else {
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- }
- $parent.addChild$1(node);
- },
- _async_evaluate0$_addChild$1(node) {
- return this._async_evaluate0$_addChild$2$through(node, null);
- },
- _async_evaluate0$_withStyleRule$1$2(rule, callback, $T) {
- return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T);
- },
- _withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldRule;
- var $async$_async_evaluate0$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldRule = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
- $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = rule;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = oldRule;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer);
- },
- _async_evaluate0$_withMediaQueries$1$3(queries, sources, callback, $T) {
- return this._withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $T);
- },
- _withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources;
- var $async$_async_evaluate0$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- oldMediaQueries = $async$self._async_evaluate0$_mediaQueries;
- oldSources = $async$self._async_evaluate0$_mediaQuerySources;
- $async$self._async_evaluate0$_mediaQueries = queries;
- $async$self._async_evaluate0$_mediaQuerySources = sources;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$3);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_mediaQueries = oldMediaQueries;
- $async$self._async_evaluate0$_mediaQuerySources = oldSources;
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$3, $async$completer);
- },
- _async_evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) {
- return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T);
- },
- _withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, oldMember, result, t1;
- var $async$_async_evaluate0$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._async_evaluate0$_stack;
- t1.push(new A._Record_2($async$self._async_evaluate0$_member, nodeWithSpan));
- oldMember = $async$self._async_evaluate0$_member;
- $async$self._async_evaluate0$_member = member;
- $async$goto = 3;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3);
- case 3:
- // returning from await.
- result = $async$result;
- $async$self._async_evaluate0$_member = oldMember;
- t1.pop();
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer);
- },
- _async_evaluate0$_withoutSlash$2(value, nodeForSpan) {
- var t1;
- if (value instanceof A.SassNumber0)
- t1 = value.asSlash != null;
- else
- t1 = false;
- if (t1)
- this._async_evaluate0$_warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation2().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_E8a);
- return value.withoutSlash$0();
- },
- _async_evaluate0$_stackFrame$2(member, span) {
- return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure2(this)));
- },
- _async_evaluate0$_stackTrace$1(span) {
- var t2, t3, _i, t4, nodeWithSpan, _this = this,
- t1 = A._setArrayType([], type$.JSArray_Frame);
- for (t2 = _this._async_evaluate0$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- t4 = t2[_i];
- nodeWithSpan = t4._1;
- t1.push(_this._async_evaluate0$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
- }
- if (span != null)
- t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span));
- return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
- },
- _async_evaluate0$_stackTrace$0() {
- return this._async_evaluate0$_stackTrace$1(null);
- },
- _async_evaluate0$_warn$3(message, span, deprecation) {
- var t1, trace, _this = this;
- if (_this._async_evaluate0$_quietDeps)
- if (!_this._async_evaluate0$_inDependency) {
- t1 = _this._async_evaluate0$_currentCallable;
- t1 = t1 == null ? null : t1.inDependency;
- t1 = t1 === true;
- } else
- t1 = true;
- else
- t1 = false;
- if (t1)
- return;
- if (!_this._async_evaluate0$_warningsEmitted.add$1(0, new A._Record_2(message, span)))
- return;
- trace = _this._async_evaluate0$_stackTrace$1(span);
- t1 = _this._async_evaluate0$_logger;
- if (deprecation == null)
- t1.warn$3$span$trace(0, message, span, trace);
- else
- A.WarnForDeprecation_warnForDeprecation0(t1, deprecation, message, span, trace);
- },
- _async_evaluate0$_warn$2(message, span) {
- return this._async_evaluate0$_warn$3(message, span, null);
- },
- _async_evaluate0$_exception$2(message, span) {
- var t1, t2;
- if (span == null) {
- t1 = B.JSArray_methods.get$last(this._async_evaluate0$_stack)._1;
- t1 = t1.get$span(t1);
- } else
- t1 = span;
- t2 = this._async_evaluate0$_stackTrace$1(span);
- return new A.SassRuntimeException0(t2, B.Set_empty, message, t1);
- },
- _async_evaluate0$_exception$1(message) {
- return this._async_evaluate0$_exception$2(message, null);
- },
- _async_evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
- var t1 = B.JSArray_methods.get$last(this._async_evaluate0$_stack)._1;
- return A.MultiSpanSassRuntimeException$0(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._async_evaluate0$_stackTrace$0(), null);
- },
- _async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback) {
- var error, stackTrace, t1, exception,
- addStackFrame = true;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
- A.throwWithTrace0(t1.withTrace$1(this._async_evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
- } else
- throw exception;
- }
- },
- _async_evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) {
- return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- },
- _async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, $T) {
- return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, addStackFrame, $T, $T);
- },
- _async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) {
- return this._async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, true, $T);
- },
- _addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, addStackFrame, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
- var $async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- t1 = callback.call$0();
- $async$goto = 7;
- return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (t1 instanceof A.SassScriptException0) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
- A.throwWithTrace0(t1.withTrace$1($async$self._async_evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame, $async$completer);
- },
- _async_evaluate0$_addExceptionTrace$1$1(callback, $T) {
- return this._addExceptionTrace$body$_EvaluateVisitor0(callback, $T, $T);
- },
- _addExceptionTrace$body$_EvaluateVisitor0(callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception;
- var $async$_async_evaluate0$_addExceptionTrace$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- t1 = callback.call$0();
- $async$goto = 7;
- return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate0$_addExceptionTrace$1$1);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (type$.SassRuntimeException_2._is(t1))
- throw $async$exception;
- else if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- A.throwWithTrace0(error.withTrace$1($async$self._async_evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_addExceptionTrace$1$1, $async$completer);
- },
- _async_evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, $T) {
- return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
- },
- _addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, t3, $async$exception;
- var $async$_async_evaluate0$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$handler = 4;
- $async$goto = 7;
- return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2);
- case 7:
- // returning from await.
- t1 = $async$result;
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- $async$handler = 2;
- // goto after finally
- $async$goto = 6;
- break;
- case 4:
- // catch
- $async$handler = 3;
- $async$exception = $async$currentError;
- t1 = A.unwrapException($async$exception);
- if (type$.SassRuntimeException_2._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException($async$exception);
- if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
- throw $async$exception;
- t1 = error._span_exception$_message;
- t2 = nodeWithSpan.get$span(nodeWithSpan);
- t3 = $async$self._async_evaluate0$_stackTrace$0();
- A.throwWithTrace0(new A.SassRuntimeException0(t3, B.Set_empty, t1, t2), error, stackTrace);
- } else
- throw $async$exception;
- // goto after finally
- $async$goto = 6;
- break;
- case 3:
- // uncaught
- // goto rethrow
- $async$goto = 2;
- break;
- case 6:
- // after finally
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- case 2:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer);
- }
- };
- A._EvaluateVisitor_closure38.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate0$_environment;
- t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure39.prototype = {
- call$1($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._async_evaluate0$_environment;
- return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure40.prototype = {
- call$1($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._async_evaluate0$_environment;
- t3 = variable._string0$_text;
- t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
- return t2.getFunction$2$namespace(t4, module == null ? null : module._string0$_text) != null || t1._async_evaluate0$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure41.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._async_evaluate0$_environment;
- t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure42.prototype = {
- call$1($arguments) {
- var t1 = this.$this._async_evaluate0$_environment;
- if (!t1._async_environment0$_inMixin)
- throw A.wrapException(A.SassScriptException$0(string$.conten, null));
- return t1._async_environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure43.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
- module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs0(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString0(t4._0, true), t4._1);
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 36
- };
- A._EvaluateVisitor_closure44.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
- module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs0(module.get$functions(module), type$.String, type$.AsyncCallable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassFunction0(t4._1));
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 36
- };
- A._EvaluateVisitor_closure45.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
- module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs0(module.get$mixins(), type$.String, type$.AsyncCallable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassMixin0(t4._1));
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 36
- };
- A._EvaluateVisitor_closure46.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css) {
- if (module != null)
- throw A.wrapException(string$.x24css_a);
- return new A.SassFunction0(new A.PlainCssCallable0($name._string0$_text));
- }
- t1 = this.$this;
- t2 = t1._async_evaluate0$_callableNode;
- t2.toString;
- callable = t1._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure14(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Function not found: " + $name.toString$0(0));
- return new A.SassFunction0(callable);
- },
- $signature: 135
- };
- A._EvaluateVisitor__closure14.prototype = {
- call$0() {
- var local,
- normalizedName = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
- t1 = this.module,
- namespace = t1 == null ? null : t1._string0$_text;
- t1 = this.$this;
- local = t1._async_evaluate0$_environment.getFunction$2$namespace(normalizedName, namespace);
- if (local != null || namespace != null)
- return local;
- return t1._async_evaluate0$_builtInFunctions.$index(0, normalizedName);
- },
- $signature: 92
- };
- A._EvaluateVisitor_closure47.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._async_evaluate0$_callableNode;
- t2.toString;
- callable = t1._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure13(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Mixin not found: " + $name.toString$0(0));
- return new A.SassMixin0(callable);
- },
- $signature: 242
- };
- A._EvaluateVisitor__closure13.prototype = {
- call$0() {
- var t1 = this.$this._async_evaluate0$_environment,
- t2 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
- t3 = this.module;
- return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string0$_text);
- },
- $signature: 92
- };
- A._EvaluateVisitor_closure48.prototype = {
- call$1($arguments) {
- return this.$call$body$_EvaluateVisitor_closure4($arguments);
- },
- $call$body$_EvaluateVisitor_closure4($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, t1, $function, args;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- $function = t1.$index($arguments, 0);
- args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_callableNode;
- t2.toString;
- t3 = A._setArrayType([], type$.JSArray_Expression_2);
- t4 = type$.String;
- t5 = type$.Expression_2;
- t6 = t2.get$span(t2);
- t7 = t2.get$span(t2);
- args._argument_list$_wereKeywordsAccessed = true;
- t8 = args._argument_list$_keywords;
- if (t8.get$isEmpty(t8))
- t2 = null;
- else {
- t9 = type$.Value_2;
- t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
- for (args._argument_list$_wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs0(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
- t11 = t8.get$current(t8);
- t10.$indexSet(0, new A.SassString0(t11._0, false), t11._1);
- }
- t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
- }
- invocation = new A.ArgumentInvocation0(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression0(args, t7), t2, t6);
- $async$goto = $function instanceof A.SassString0 ? 3 : 4;
- break;
- case 3:
- // then
- A.warnForDeprecation0(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_MMc);
- callableNode = t1._async_evaluate0$_callableNode;
- t2 = $function._string0$_text;
- t3 = callableNode.get$span(callableNode);
- t1 = t1.visitFunctionExpression$1(new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
- $async$goto = 5;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$1);
- case 5:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- t2 = $function.assertFunction$1("function");
- t3 = t1._async_evaluate0$_callableNode;
- t3.toString;
- $async$goto = 6;
- return A._asyncAwait(t1._async_evaluate0$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1);
- case 6:
- // returning from await.
- t3 = $async$result;
- $async$returnValue = t3;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 88
- };
- A._EvaluateVisitor_closure49.prototype = {
- call$1($arguments) {
- return this.$call$body$_EvaluateVisitor_closure3($arguments);
- },
- $call$body$_EvaluateVisitor_closure3($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, withMap, t2, values, configuration, t3, t1, url;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text);
- t1 = t1.$index($arguments, 1).get$realNull();
- withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents;
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_callableNode;
- t2.toString;
- if (withMap != null) {
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- withMap.forEach$1(0, new A._EvaluateVisitor__closure11(values, t2.get$span(t2), t2));
- configuration = new A.ExplicitConfiguration0(t2, values, null);
- } else
- configuration = B.Configuration_Map_empty_null0;
- t3 = t2.get$span(t2);
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure12(t1), t3.get$sourceUrl(t3), configuration, true), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 241
- };
- A._EvaluateVisitor__closure11.prototype = {
- call$2(variable, value) {
- var t1 = variable.assertString$1("with key"),
- $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw A.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode));
- },
- $signature: 76
- };
- A._EvaluateVisitor__closure12.prototype = {
- call$2(module, _) {
- var t1 = this.$this;
- return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
- },
- $signature: 320
- };
- A._EvaluateVisitor_closure50.prototype = {
- call$1($arguments) {
- return this.$call$body$_EvaluateVisitor_closure2($arguments);
- },
- $call$body$_EvaluateVisitor_closure2($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, callableNode, t2, t3, t4, t5, t1, mixin, args;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.getInterceptor$asx($arguments);
- mixin = t1.$index($arguments, 0);
- args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- t1 = $async$self.$this;
- callableNode = t1._async_evaluate0$_callableNode;
- t2 = callableNode.get$span(callableNode);
- t3 = callableNode.get$span(callableNode);
- t4 = type$.Expression_2;
- t5 = A.List_List$unmodifiable(B.List_empty20, t4);
- t4 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t4);
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_applyMixin$5(mixin.assertMixin$1("mixin").callable, t1._async_evaluate0$_environment._async_environment0$_content, new A.ArgumentInvocation0(t5, t4, new A.ValueExpression0(args, t3), null, t2), callableNode, callableNode), $async$call$1);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 241
- };
- A._EvaluateVisitor_run_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2),
- $async$returnValue, $async$self = this, module, t2, t1, _0_0, url;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- _0_0 = t1.span.file.url;
- url = null;
- if (_0_0 != null) {
- url = _0_0;
- t2 = $async$self.$this;
- t2._async_evaluate0$_activeModules.$indexSet(0, url, null);
- if (!(t2._async_evaluate0$_nodeImporter != null && J.toString$0$(url) === "stdin"))
- t2._async_evaluate0$_loadedUrls.add$1(0, url);
- }
- t2 = $async$self.$this;
- $async$goto = 3;
- return A._asyncAwait(t2._async_evaluate0$_addExceptionTrace$1$1(new A._EvaluateVisitor_run__closure2(t2, $async$self.importer, t1), type$.Module_AsyncCallable_2), $async$call$0);
- case 3:
- // returning from await.
- module = $async$result;
- $async$returnValue = new A._Record_2_loadedUrls_stylesheet(t2._async_evaluate0$_loadedUrls, t2._async_evaluate0$_combineCss$1(module));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 321
- };
- A._EvaluateVisitor_run__closure2.prototype = {
- call$0() {
- return this.$this._async_evaluate0$_execute$2(this.importer, this.node);
- },
- $signature: 322
- };
- A._EvaluateVisitor__loadModule_closure5.prototype = {
- call$0() {
- return this.callback.call$2(this._box_1.builtInModule, false);
- },
- $signature: 0
- };
- A._EvaluateVisitor__loadModule_closure6.prototype = {
- call$0() {
- return this.$call$body$_EvaluateVisitor__loadModule_closure0();
- },
- $call$body$_EvaluateVisitor__loadModule_closure0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, canonicalUrl, oldInDependency, isDependency, t4, message, t1, stylesheet, importer, t2, t3, _1_0, $async$temp1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = {};
- stylesheet = null;
- importer = null;
- t2 = $async$self.$this;
- t3 = $async$self.nodeWithSpan;
- $async$goto = 2;
- return A._asyncAwait(t2._async_evaluate0$_loadStylesheet$3$baseUrl($async$self.url.toString$0(0), t3.get$span(t3), $async$self.baseUrl), $async$call$0);
- case 2:
- // returning from await.
- _1_0 = $async$result;
- stylesheet = _1_0._0;
- importer = _1_0._1;
- isDependency = _1_0._2;
- canonicalUrl = stylesheet.span.file.url;
- if (canonicalUrl != null) {
- t4 = t2._async_evaluate0$_activeModules;
- if (t4.containsKey$1(canonicalUrl)) {
- if ($async$self.namesInErrors) {
- t1 = canonicalUrl;
- t3 = $.$get$context();
- t1.toString;
- message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
- } else
- message = string$.Modulel;
- t1 = A.NullableExtension_andThen0(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure5(t2, message));
- throw A.wrapException(t1 == null ? t2._async_evaluate0$_exception$1(message) : t1);
- } else
- t4.$indexSet(0, canonicalUrl, t3);
- }
- t4 = t2._async_evaluate0$_modules.containsKey$1(canonicalUrl);
- oldInDependency = t2._async_evaluate0$_inDependency;
- t2._async_evaluate0$_inDependency = isDependency;
- t1.module = null;
- $async$handler = 3;
- $async$temp1 = t1;
- $async$goto = 6;
- return A._asyncAwait(t2._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t3), $async$call$0);
- case 6:
- // returning from await.
- $async$temp1.module = $async$result;
- $async$next.push(5);
- // goto finally
- $async$goto = 4;
- break;
- case 3:
- // uncaught
- $async$next = [1];
- case 4:
- // finally
- $async$handler = 1;
- t2._async_evaluate0$_activeModules.remove$1(0, canonicalUrl);
- t2._async_evaluate0$_inDependency = oldInDependency;
- // goto the next finally handler
- $async$goto = $async$next.pop();
- break;
- case 5:
- // after finally
- $async$goto = 7;
- return A._asyncAwait(t2._async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure6(t1, $async$self.callback, !t4), false, type$.void), $async$call$0);
- case 7:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- case 1:
- // rethrow
- return A._asyncRethrow($async$currentError, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__loadModule__closure5.prototype = {
- call$1(previousLoad) {
- return this.$this._async_evaluate0$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 94
- };
- A._EvaluateVisitor__loadModule__closure6.prototype = {
- call$0() {
- return this.callback.call$2(this._box_0.module, this.firstLoad);
- },
- $signature: 0
- };
- A._EvaluateVisitor__execute_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldPreModuleComments, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate0$_importer;
- oldStylesheet = t1._async_evaluate0$__stylesheet;
- oldRoot = t1._async_evaluate0$__root;
- oldPreModuleComments = t1._async_evaluate0$_preModuleComments;
- oldParent = t1._async_evaluate0$__parent;
- oldEndOfImports = t1._async_evaluate0$__endOfImports;
- oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
- oldExtensionStore = t1._async_evaluate0$__extensionStore;
- t2 = t1._async_evaluate0$_atRootExcludingStyleRule;
- oldStyleRule = t2 ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
- oldMediaQueries = t1._async_evaluate0$_mediaQueries;
- oldDeclarationName = t1._async_evaluate0$_declarationName;
- oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
- oldInKeyframes = t1._async_evaluate0$_inKeyframes;
- oldConfiguration = t1._async_evaluate0$_configuration;
- t1._async_evaluate0$_importer = $async$self.importer;
- t3 = t1._async_evaluate0$__stylesheet = $async$self.stylesheet;
- t4 = t3.span;
- t5 = t1._async_evaluate0$__parent = t1._async_evaluate0$__root = A.ModifiableCssStylesheet$0(t4);
- t1._async_evaluate0$__endOfImports = 0;
- t1._async_evaluate0$_outOfOrderImports = null;
- t1._async_evaluate0$__extensionStore = $async$self.extensionStore;
- t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRuleIgnoringAtRoot = null;
- t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false;
- t6 = $async$self.configuration;
- if (t6 != null)
- t1._async_evaluate0$_configuration = t6;
- $async$goto = 2;
- return A._asyncAwait(t1.visitStylesheet$1(t3), $async$call$0);
- case 2:
- // returning from await.
- t3 = t1._async_evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4);
- $async$self.css.__late_helper$_value = t3;
- $async$self.preModuleComments.__late_helper$_value = t1._async_evaluate0$_preModuleComments;
- t1._async_evaluate0$_importer = oldImporter;
- t1._async_evaluate0$__stylesheet = oldStylesheet;
- t1._async_evaluate0$__root = oldRoot;
- t1._async_evaluate0$_preModuleComments = oldPreModuleComments;
- t1._async_evaluate0$__parent = oldParent;
- t1._async_evaluate0$__endOfImports = oldEndOfImports;
- t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- t1._async_evaluate0$__extensionStore = oldExtensionStore;
- t1._async_evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule;
- t1._async_evaluate0$_mediaQueries = oldMediaQueries;
- t1._async_evaluate0$_declarationName = oldDeclarationName;
- t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
- t1._async_evaluate0$_atRootExcludingStyleRule = t2;
- t1._async_evaluate0$_inKeyframes = oldInKeyframes;
- t1._async_evaluate0$_configuration = oldConfiguration;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__combineCss_closure5.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 112
- };
- A._EvaluateVisitor__combineCss_closure6.prototype = {
- call$1(target) {
- return !this.selectors.contains$1(0, target);
- },
- $signature: 14
- };
- A._EvaluateVisitor__combineCss_visitModule2.prototype = {
- call$1(module) {
- var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
- if (!_this.seen.add$1(0, module))
- return;
- if (_this.clone)
- module = module.cloneCss$0();
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss()) {
- _1_0 = module.get$preModuleComments().$index(0, upstream);
- if (_1_0 != null)
- B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
- _this.call$1(upstream);
- }
- }
- _this.sorted.addFirst$1(module);
- t1 = module.get$css(module);
- statements = t1.get$children(t1);
- index = _this.$this._async_evaluate0$_indexAfterImports$1(statements);
- t1 = J.getInterceptor$ax(statements);
- B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
- B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
- },
- $signature: 324
- };
- A._EvaluateVisitor__extendModules_closure5.prototype = {
- call$1(target) {
- return !this.originalSelectors.contains$1(0, target);
- },
- $signature: 14
- };
- A._EvaluateVisitor__extendModules_closure6.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_ExtensionStore_2);
- },
- $signature: 264
- };
- A._EvaluateVisitor_visitAtRootRule_closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitAtRootRule_closure6.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__scopeForAtRoot_closure17.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent");
- t1._async_evaluate0$__parent = $async$self.newParent;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$__parent = t2;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot_closure18.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, oldAtRootExcludingStyleRule;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
- t1._async_evaluate0$_atRootExcludingStyleRule = true;
- $async$goto = 2;
- return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot_closure19.prototype = {
- call$1(callback) {
- return this.$this._async_evaluate0$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot__closure2.prototype = {
- call$0() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 2
- };
- A._EvaluateVisitor__scopeForAtRoot_closure20.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInKeyframes;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInKeyframes = t1._async_evaluate0$_inKeyframes;
- t1._async_evaluate0$_inKeyframes = false;
- $async$goto = 2;
- return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_inKeyframes = wasInKeyframes;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor__scopeForAtRoot_closure21.prototype = {
- call$1($parent) {
- return $parent instanceof A.ModifiableCssAtRule0;
- },
- $signature: 237
- };
- A._EvaluateVisitor__scopeForAtRoot_closure22.prototype = {
- call$1(callback) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, wasInUnknownAtRule;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
- t1._async_evaluate0$_inUnknownAtRule = false;
- $async$goto = 2;
- return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
- case 2:
- // returning from await.
- t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 38
- };
- A._EvaluateVisitor_visitContentRule_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$returnValue, $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 6:
- // returning from await.
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitDeclaration_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self._box_0.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitEachRule_closure8.prototype = {
- call$1(value) {
- var t1 = this.$this,
- t2 = this.nodeWithSpan;
- return t1._async_evaluate0$_environment.setLocalVariable$3(this._box_0.variable, t1._async_evaluate0$_withoutSlash$2(value, t2), t2);
- },
- $signature: 62
- };
- A._EvaluateVisitor_visitEachRule_closure9.prototype = {
- call$1(value) {
- return this.$this._async_evaluate0$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
- },
- $signature: 62
- };
- A._EvaluateVisitor_visitEachRule_closure10.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node));
- },
- $signature: 74
- };
- A._EvaluateVisitor_visitEachRule__closure2.prototype = {
- call$1(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._async_evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure2(t1));
- },
- $signature: 329
- };
- A._EvaluateVisitor_visitEachRule___closure2.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 97
- };
- A._EvaluateVisitor_visitAtRule_closure8.prototype = {
- call$1(value) {
- return this.$this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true);
- },
- $signature: 331
- };
- A._EvaluateVisitor_visitAtRule_closure9.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, _i, t1, styleRule;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
- $async$goto = styleRule == null || t1._async_evaluate0$_inKeyframes || J.$eq$($async$self.name.value, "font-face") ? 2 : 4;
- break;
- case 2:
- // then
- t2 = $async$self.children, t3 = t2.length, _i = 0;
- case 5:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- $async$goto = 8;
- return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- case 6:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 9;
- return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure2(t1, $async$self.children), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 9:
- // returning from await.
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitAtRule__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitAtRule_closure10.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitForRule_closure14.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
- $async$returnValue, $async$self = this;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 232
- };
- A._EvaluateVisitor_visitForRule_closure15.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
- $async$returnValue, $async$self = this;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
- case 3:
- // returning from await.
- $async$returnValue = $async$result.assertNumber$0();
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 232
- };
- A._EvaluateVisitor_visitForRule_closure16.prototype = {
- call$0() {
- return this.fromNumber.assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure17.prototype = {
- call$0() {
- var t1 = this.fromNumber;
- return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure18.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, _0_0, t1, t2, nodeWithSpan;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.node;
- nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from);
- i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children;
- case 3:
- // for condition
- if (!(i !== t3.to)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t7 = t1._async_evaluate0$_environment;
- t8 = t6.get$numeratorUnits(t6);
- t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
- $async$goto = 6;
- return A._asyncAwait(t1._async_evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0);
- case 6:
- // returning from await.
- _0_0 = $async$result;
- if (_0_0 != null) {
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- i += t4;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 74
- };
- A._EvaluateVisitor_visitForRule__closure2.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 97
- };
- A._EvaluateVisitor_visitForwardRule_closure5.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._async_evaluate0$_registerCommentsForModule$1(module);
- this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
- },
- $signature: 109
- };
- A._EvaluateVisitor_visitForwardRule_closure6.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._async_evaluate0$_registerCommentsForModule$1(module);
- this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
- },
- $signature: 109
- };
- A._EvaluateVisitor__registerCommentsForModule_closure2.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_CssComment_2);
- },
- $signature: 229
- };
- A._EvaluateVisitor_visitIfRule_closure2.prototype = {
- call$1(clause) {
- var t1 = this.$this;
- return t1._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure2(t1, clause), true, clause.hasDeclarations, type$.nullable_Value_2);
- },
- $signature: 336
- };
- A._EvaluateVisitor_visitIfRule__closure2.prototype = {
- call$0() {
- var t1 = this.$this;
- return t1._async_evaluate0$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure2(t1));
- },
- $signature: 74
- };
- A._EvaluateVisitor_visitIfRule___closure2.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 97
- };
- A._EvaluateVisitor__visitDynamicImport_closure2.prototype = {
- call$0() {
- return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure0();
- },
- $call$body$_EvaluateVisitor__visitDynamicImport_closure0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$returnValue, $async$self = this, t1, t2, _0_0, stylesheet, importer, isDependency, url, t3, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- _box_0 = {};
- _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
- t1 = $async$self.$this;
- t2 = $async$self.$import;
- $async$goto = 3;
- return A._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- stylesheet = _box_0.stylesheet = _0_0._0;
- importer = _0_0._1;
- _box_0.importer = importer;
- isDependency = _0_0._2;
- _box_0.isDependency = isDependency;
- url = stylesheet.span.file.url;
- if (url != null) {
- t3 = t1._async_evaluate0$_activeModules;
- if (t3.containsKey$1(url)) {
- t2 = A.NullableExtension_andThen0(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure11(t1));
- throw A.wrapException(t2 == null ? t1._async_evaluate0$_exception$1("This file is already being loaded.") : t2);
- }
- t3.$indexSet(0, url, t2);
- }
- t2 = stylesheet._stylesheet1$_uses;
- t3 = type$.UnmodifiableListView_UseRule_2;
- $async$goto = new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2).get$length(0) === 0 ? 4 : 5;
- break;
- case 4:
- // then
- oldImporter = t1._async_evaluate0$_importer;
- t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet");
- oldInDependency = t1._async_evaluate0$_inDependency;
- t1._async_evaluate0$_importer = importer;
- t1._async_evaluate0$__stylesheet = stylesheet;
- t1._async_evaluate0$_inDependency = isDependency;
- $async$goto = 6;
- return A._asyncAwait(t1.visitStylesheet$1(stylesheet), $async$call$0);
- case 6:
- // returning from await.
- t1._async_evaluate0$_importer = oldImporter;
- t1._async_evaluate0$__stylesheet = t2;
- t1._async_evaluate0$_inDependency = oldInDependency;
- t1._async_evaluate0$_activeModules.remove$1(0, url);
- // goto return
- $async$goto = 1;
- break;
- case 5:
- // join
- t2 = new A.UnmodifiableListView(t2, t3);
- if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure12())) {
- t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure13());
- } else
- loadsUserDefinedModules = true;
- children = A._Cell$();
- t2 = t1._async_evaluate0$_environment;
- t3 = type$.String;
- t4 = type$.Module_AsyncCallable_2;
- t5 = type$.AstNode_2;
- t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable_2);
- t7 = t2._async_environment0$_variables;
- t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
- t8 = t2._async_environment0$_variableNodes;
- t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
- t9 = t2._async_environment0$_functions;
- t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
- t10 = t2._async_environment0$_mixins;
- t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
- environment = A.AsyncEnvironment$_0(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._async_environment0$_importedModules, null, null, t6, t7, t8, t9, t10, t2._async_environment0$_content);
- $async$goto = 7;
- return A._asyncAwait(t1._async_evaluate0$_withEnvironment$1$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure14(_box_0, t1, loadsUserDefinedModules, environment, children), type$.Null), $async$call$0);
- case 7:
- // returning from await.
- module = environment.toDummyModule$0();
- t1._async_evaluate0$_environment.importForwards$1(module);
- $async$goto = loadsUserDefinedModules ? 8 : 9;
- break;
- case 8:
- // then
- $async$goto = module.transitivelyContainsCss ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return A._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
- case 12:
- // returning from await.
- case 11:
- // join
- visitor = new A._ImportedCssVisitor2(t1);
- for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
- t2.get$current(t2).accept$1(visitor);
- case 9:
- // join
- t1._async_evaluate0$_activeModules.remove$1(0, url);
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__visitDynamicImport__closure11.prototype = {
- call$1(previousLoad) {
- return this.$this._async_evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 94
- };
- A._EvaluateVisitor__visitDynamicImport__closure12.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 228
- };
- A._EvaluateVisitor__visitDynamicImport__closure13.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 227
- };
- A._EvaluateVisitor__visitDynamicImport__closure14.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t7, t8, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- oldImporter = t1._async_evaluate0$_importer;
- t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet");
- t3 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root");
- t4 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent");
- t5 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, "_endOfImports");
- oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
- oldConfiguration = t1._async_evaluate0$_configuration;
- oldInDependency = t1._async_evaluate0$_inDependency;
- t6 = $async$self._box_0;
- t1._async_evaluate0$_importer = t6.importer;
- t7 = t6.stylesheet;
- t1._async_evaluate0$__stylesheet = t7;
- t8 = $async$self.loadsUserDefinedModules;
- if (t8) {
- t7 = A.ModifiableCssStylesheet$0(t7.span);
- t1._async_evaluate0$__root = t7;
- t1._async_evaluate0$__parent = t1._async_evaluate0$_assertInModule$2(t7, "_root");
- t1._async_evaluate0$__endOfImports = 0;
- t1._async_evaluate0$_outOfOrderImports = null;
- }
- t1._async_evaluate0$_inDependency = t6.isDependency;
- t7 = new A.UnmodifiableListView(t6.stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- if (!t7.get$isEmpty(t7))
- t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0();
- $async$goto = 2;
- return A._asyncAwait(t1.visitStylesheet$1(t6.stylesheet), $async$call$0);
- case 2:
- // returning from await.
- t6 = t8 ? t1._async_evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- $async$self.children.__late_helper$_value = t6;
- t1._async_evaluate0$_importer = oldImporter;
- t1._async_evaluate0$__stylesheet = t2;
- if (t8) {
- t1._async_evaluate0$__root = t3;
- t1._async_evaluate0$__parent = t4;
- t1._async_evaluate0$__endOfImports = t5;
- t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- }
- t1._async_evaluate0$_configuration = oldConfiguration;
- t1._async_evaluate0$_inDependency = oldInDependency;
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__applyMixin_closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure6(t1, $async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin__closure6.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 2;
- return A._asyncAwait($async$self.$this._async_evaluate0$_runBuiltInCallable$3($async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin_closure6.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_environment.withContent$2($async$self.contentCallable, new A._EvaluateVisitor__applyMixin__closure5(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor__applyMixin__closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure2(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin___closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.void),
- $async$self = this, t1, t2, t3, t4, t5, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpanWithoutContent, t5 = type$.nullable_Value_2, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new A._EvaluateVisitor__applyMixin____closure2(t3, t1[_i]), t5), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 25
- };
- A._EvaluateVisitor__applyMixin____closure2.prototype = {
- call$0() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 74
- };
- A._EvaluateVisitor_visitIncludeRule_closure8.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 92
- };
- A._EvaluateVisitor_visitIncludeRule_closure9.prototype = {
- call$1($content) {
- var t1 = this.$this;
- return new A.UserDefinedCallable0($content, t1._async_evaluate0$_environment.closure$0(), t1._async_evaluate0$_inDependency, type$.UserDefinedCallable_AsyncEnvironment_2);
- },
- $signature: 339
- };
- A._EvaluateVisitor_visitIncludeRule_closure10.prototype = {
- call$0() {
- return this.node.get$spanWithoutContent();
- },
- $signature: 27
- };
- A._EvaluateVisitor_visitMediaRule_closure8.prototype = {
- call$1(mediaQueries) {
- return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries);
- },
- $signature: 100
- };
- A._EvaluateVisitor_visitMediaRule_closure9.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.queries;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitMediaRule__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, _i, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 6:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- $async$goto = 9;
- return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 9:
- // returning from await.
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitMediaRule___closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitMediaRule_closure10.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule0)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitStyleRule_closure11.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitStyleRule_closure12.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitStyleRule_closure14.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitStyleRule__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitStyleRule_closure13.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor__warnForBogusCombinators_closure2.prototype = {
- call$1(child) {
- return child instanceof A.ModifiableCssComment0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitSupportsRule_closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, _i, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.length, _i = 0;
- case 6:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- $async$goto = 9;
- return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
- case 9:
- // returning from await.
- case 7:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitSupportsRule__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, _i;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 5;
- return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitSupportsRule_closure6.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor__visitSupportsCondition_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.String),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, $async$temp1, $async$temp2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self._box_0;
- $async$temp1 = A;
- $async$goto = 3;
- return A._asyncAwait(t1._async_evaluate0$_evaluateToCss$1(t2.declaration.name), $async$call$0);
- case 3:
- // returning from await.
- t3 = $async$temp1.S($async$result);
- t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
- $async$temp1 = "(" + t3 + ":" + t4;
- $async$temp2 = A;
- $async$goto = 4;
- return A._asyncAwait(t1._async_evaluate0$_evaluateToCss$1(t2.declaration.value), $async$call$0);
- case 4:
- // returning from await.
- $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 176
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = {
- call$0() {
- var t1 = this.$this._async_evaluate0$_environment,
- t2 = this._box_0.override;
- t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.node;
- t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitUseRule_closure2.prototype = {
- call$2(module, firstLoad) {
- var t1, t2, t3, _0_0, t4, t5, span;
- if (firstLoad)
- this.$this._async_evaluate0$_registerCommentsForModule$1(module);
- t1 = this.$this._async_evaluate0$_environment;
- t2 = this.node;
- t3 = t2.namespace;
- if (t3 == null) {
- t1._async_environment0$_globalModules.$indexSet(0, module, t2);
- t1._async_environment0$_allModules.push(module);
- _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._async_environment0$_variables)), module.get$variables().get$containsKey());
- if (_0_0 != null)
- A.throwExpression(A.SassScriptException$0(string$.This_ma + _0_0 + '".', null));
- } else {
- t4 = t1._async_environment0$_modules;
- if (t4.containsKey$1(t3)) {
- t5 = t1._async_environment0$_namespaceNodes.$index(0, t3);
- span = t5 == null ? null : t5.span;
- t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (span != null)
- t5.$indexSet(0, span, "original @use");
- A.throwExpression(A.MultiSpanSassScriptException$0(string$.There_ + t3 + '".', "new @use", t5));
- }
- t4.$indexSet(0, t3, module);
- t1._async_environment0$_namespaceNodes.$indexSet(0, t3, t2);
- t1._async_environment0$_allModules.push(module);
- }
- },
- $signature: 109
- };
- A._EvaluateVisitor_visitWarnRule_closure2.prototype = {
- call$0() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 64
- };
- A._EvaluateVisitor_visitWhileRule_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
- case 3:
- // for condition
- $async$goto = 5;
- return A._asyncAwait(t2.accept$1(t3), $async$call$0);
- case 5:
- // returning from await.
- if (!$async$result.get$isTruthy()) {
- // goto after for
- $async$goto = 4;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0);
- case 6:
- // returning from await.
- _0_0 = $async$result;
- if (_0_0 != null) {
- $async$returnValue = _0_0;
- // goto return
- $async$goto = 1;
- break;
- }
- // goto for condition
- $async$goto = 3;
- break;
- case 4:
- // after for
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 74
- };
- A._EvaluateVisitor_visitWhileRule__closure2.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 97
- };
- A._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t3, t1, t2, left, $async$temp1, $async$temp2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node;
- t2 = $async$self.$this;
- $async$goto = 3;
- return A._asyncAwait(t1.left.accept$1(t2), $async$call$0);
- case 3:
- // returning from await.
- left = $async$result;
- case 4:
- // switch
- switch (t1.operator) {
- case B.BinaryOperator_wdM0:
- // goto case
- $async$goto = 6;
- break;
- case B.BinaryOperator_qNM0:
- // goto case
- $async$goto = 7;
- break;
- case B.BinaryOperator_eDt0:
- // goto case
- $async$goto = 8;
- break;
- case B.BinaryOperator_g8k0:
- // goto case
- $async$goto = 9;
- break;
- case B.BinaryOperator_icU0:
- // goto case
- $async$goto = 10;
- break;
- case B.BinaryOperator_bEa0:
- // goto case
- $async$goto = 11;
- break;
- case B.BinaryOperator_oEm0:
- // goto case
- $async$goto = 12;
- break;
- case B.BinaryOperator_miq0:
- // goto case
- $async$goto = 13;
- break;
- case B.BinaryOperator_SPQ0:
- // goto case
- $async$goto = 14;
- break;
- case B.BinaryOperator_u150:
- // goto case
- $async$goto = 15;
- break;
- case B.BinaryOperator_SjO0:
- // goto case
- $async$goto = 16;
- break;
- case B.BinaryOperator_2No0:
- // goto case
- $async$goto = 17;
- break;
- case B.BinaryOperator_U770:
- // goto case
- $async$goto = 18;
- break;
- case B.BinaryOperator_KNx0:
- // goto case
- $async$goto = 19;
- break;
- default:
- // goto default
- $async$goto = 20;
- break;
- }
- break;
- case 6:
- // case
- t1 = t1.right.accept$1(t2);
- $async$goto = 21;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 21:
- // returning from await.
- t1 = $async$result;
- t1 = new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(t1, false, true), false);
- // goto after switch
- $async$goto = 5;
- break;
- case 7:
- // case
- $async$goto = left.get$isTruthy() ? 22 : 24;
- break;
- case 22:
- // then
- t1 = left;
- // goto join
- $async$goto = 23;
- break;
- case 24:
- // else
- t1 = t1.right.accept$1(t2);
- $async$goto = 25;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 25:
- // returning from await.
- t1 = $async$result;
- case 23:
- // join
- // goto after switch
- $async$goto = 5;
- break;
- case 8:
- // case
- $async$goto = left.get$isTruthy() ? 26 : 28;
- break;
- case 26:
- // then
- t1 = t1.right.accept$1(t2);
- $async$goto = 29;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 29:
- // returning from await.
- t1 = $async$result;
- // goto join
- $async$goto = 27;
- break;
- case 28:
- // else
- t1 = left;
- case 27:
- // join
- // goto after switch
- $async$goto = 5;
- break;
- case 9:
- // case
- $async$temp1 = left;
- $async$goto = 30;
- return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 30:
- // returning from await.
- t1 = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- // goto after switch
- $async$goto = 5;
- break;
- case 10:
- // case
- $async$temp1 = left;
- $async$goto = 31;
- return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
- case 31:
- // returning from await.
- t1 = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- // goto after switch
- $async$goto = 5;
- break;
- case 11:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 32;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 32:
- // returning from await.
- t1 = $async$temp1.greaterThan$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 12:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 33;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 33:
- // returning from await.
- t1 = $async$temp1.greaterThanOrEquals$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 13:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 34;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 34:
- // returning from await.
- t1 = $async$temp1.lessThan$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 14:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 35;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 35:
- // returning from await.
- t1 = $async$temp1.lessThanOrEquals$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 15:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 36;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 36:
- // returning from await.
- t1 = $async$temp1.plus$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 16:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 37;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 37:
- // returning from await.
- t1 = $async$temp1.minus$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 17:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 38;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 38:
- // returning from await.
- t1 = $async$temp1.times$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 18:
- // case
- t3 = t1.right.accept$1(t2);
- $async$temp1 = t2;
- $async$temp2 = left;
- $async$goto = 39;
- return A._asyncAwait(type$.Future_Value_2._is(t3) ? t3 : A._Future$value(t3, type$.Value_2), $async$call$0);
- case 39:
- // returning from await.
- t1 = $async$temp1._async_evaluate0$_slash$3($async$temp2, $async$result, t1);
- // goto after switch
- $async$goto = 5;
- break;
- case 19:
- // case
- t1 = t1.right.accept$1(t2);
- $async$temp1 = left;
- $async$goto = 40;
- return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
- case 40:
- // returning from await.
- t1 = $async$temp1.modulo$1($async$result);
- // goto after switch
- $async$goto = 5;
- break;
- case 20:
- // default
- t1 = null;
- case 5:
- // after switch
- $async$returnValue = t1;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 64
- };
- A._EvaluateVisitor__slash_recommendation2.prototype = {
- call$1(expression) {
- var t1;
- $label0$0: {
- if (expression instanceof A.BinaryOperationExpression0 && B.BinaryOperator_U770 === expression.operator) {
- t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
- break $label0$0;
- }
- if (expression instanceof A.ParenthesizedExpression0) {
- t1 = expression.expression.toString$0(0);
- break $label0$0;
- }
- t1 = expression.toString$0(0);
- break $label0$0;
- }
- return t1;
- },
- $signature: 107
- };
- A._EvaluateVisitor_visitVariableExpression_closure2.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitUnaryOperationExpression_closure2.prototype = {
- call$0() {
- var t1, _this = this;
- switch (_this.node.operator) {
- case B.UnaryOperator_cLp0:
- t1 = _this.operand.unaryPlus$0();
- break;
- case B.UnaryOperator_AiQ0:
- t1 = _this.operand.unaryMinus$0();
- break;
- case B.UnaryOperator_SJr0:
- t1 = new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false);
- break;
- case B.UnaryOperator_not_not_not0:
- t1 = _this.operand.unaryNot$0();
- break;
- default:
- t1 = null;
- }
- return t1;
- },
- $signature: 47
- };
- A._EvaluateVisitor_visitListExpression_closure2.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 345
- };
- A._EvaluateVisitor_visitFunctionExpression_closure8.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_environment.getFunction$2$namespace(t1.name, t1.namespace);
- },
- $signature: 92
- };
- A._EvaluateVisitor_visitFunctionExpression_closure9.prototype = {
- call$1(argument) {
- return argument.accept$1(new A._IsCalculationSafeVisitor0());
- },
- $signature: 132
- };
- A._EvaluateVisitor_visitFunctionExpression_closure10.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 64
- };
- A._EvaluateVisitor__checkCalculationArguments_check2.prototype = {
- call$1(maxArgs) {
- var t1 = this.node,
- t2 = t1.$arguments.positional.length;
- if (t2 === 0)
- throw A.wrapException(this.$this._async_evaluate0$_exception$2("Missing argument.", t1.span));
- else if (maxArgs != null && t2 > maxArgs)
- throw A.wrapException(this.$this._async_evaluate0$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize0("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize0("was", t2, "were") + " passed.", t1.span));
- },
- call$0() {
- return this.call$1(null);
- },
- $signature: 96
- };
- A._EvaluateVisitor__visitCalculationExpression_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
- $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self._box_0;
- t3 = $async$self.inLegacySassFunction;
- $async$temp1 = A;
- $async$temp2 = t1._async_evaluate0$_binaryOperatorToCalculationOperator$2(t2.operator, $async$self.node);
- $async$goto = 3;
- return A._asyncAwait(t1._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), $async$call$0);
- case 3:
- // returning from await.
- $async$temp3 = $async$result;
- $async$goto = 4;
- return A._asyncAwait(t1._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), $async$call$0);
- case 4:
- // returning from await.
- $async$returnValue = $async$temp1.SassCalculation_operateInternal0($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate0$_inSupportsDeclaration);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 179
- };
- A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
- },
- $signature: 64
- };
- A._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable,
- t3 = _this.V;
- return t1._async_evaluate0$_withEnvironment$1$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure2(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, t3), t3);
- },
- $signature() {
- return this.V._eval$1("Future<0>()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.V;
- return t1._async_evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
- },
- $signature() {
- return this.V._eval$1("Future<0>()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = {
- call$0() {
- return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure0(this.V);
- },
- $call$body$_EvaluateVisitor__runUserDefinedCallable___closure0($async$type) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter($async$type),
- $async$returnValue, $async$self = this, declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, t1, t2, t3, t4, $async$temp1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.evaluated._values;
- t3 = $async$self.callable.declaration.$arguments;
- t4 = $async$self.nodeWithSpan;
- t1._async_evaluate0$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4);
- declaredArguments = t3.$arguments;
- t5 = declaredArguments.length;
- minLength = Math.min(J.get$length$asx(t2[2]), t5);
- for (i = 0; i < minLength; ++i)
- t1._async_evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i));
- i = J.get$length$asx(t2[2]);
- case 3:
- // for condition
- if (!(i < t5)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- argument = declaredArguments[i];
- t6 = t2[0];
- t7 = argument.name;
- value = J.remove$1$z(t6, t7);
- $async$goto = value == null ? 6 : 7;
- break;
- case 6:
- // then
- t6 = argument.defaultValue;
- $async$temp1 = t1;
- $async$goto = 8;
- return A._asyncAwait(t6.accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- value = $async$temp1._async_evaluate0$_withoutSlash$2($async$result, t1._async_evaluate0$_expressionNode$1(t6));
- case 7:
- // join
- t6 = t1._async_evaluate0$_environment;
- t8 = J.$index$asx(t2[1], t7);
- if (t8 == null) {
- t8 = argument.defaultValue;
- t8.toString;
- t8 = t1._async_evaluate0$_expressionNode$1(t8);
- }
- t6.setLocalVariable$3(t7, value, t8);
- case 4:
- // for update
- ++i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- restArgument = t3.restArgument;
- if (restArgument != null) {
- rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty19;
- t5 = t2[0];
- t6 = t2[4];
- argumentList = A.SassArgumentList$0(rest, t5, t6 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : t6);
- t1._async_evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t4);
- } else
- argumentList = null;
- $async$goto = 9;
- return A._asyncAwait($async$self.run.call$0(), $async$call$0);
- case 9:
- // returning from await.
- result = $async$result;
- if (argumentList == null) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (J.get$isEmpty$asx(t2[0])) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (argumentList._argument_list$_wereKeywordsAccessed) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + A.pluralize0("argument", J.get$length$asx(J.get$keys$z(t2[0])), null) + " named " + A.toSentence0(J.map$1$1$ax(J.get$keys$z(t2[0]), new A._EvaluateVisitor__runUserDefinedCallable____closure2(), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate0$_stackTrace$1(t4.get$span(t4)), null));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature() {
- return this.V._eval$1("Future<0>()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__runFunctionCallable_closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
- case 3:
- // for condition
- if (!(_i < t3)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
- case 6:
- // returning from await.
- $returnValue = $async$result;
- if ($returnValue instanceof A.Value0) {
- $async$returnValue = $returnValue;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- throw A.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span));
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 64
- };
- A._EvaluateVisitor__runBuiltInCallable_closure8.prototype = {
- call$0() {
- return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet);
- },
- $signature: 0
- };
- A._EvaluateVisitor__runBuiltInCallable_closure9.prototype = {
- call$0() {
- return this._box_0.callback.call$1(this.evaluated._values[2]);
- },
- $signature: 347
- };
- A._EvaluateVisitor__runBuiltInCallable_closure10.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__evaluateArguments_closure11.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 42
- };
- A._EvaluateVisitor__evaluateArguments_closure12.prototype = {
- call$1(value) {
- return this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan);
- },
- $signature: 42
- };
- A._EvaluateVisitor__evaluateArguments_closure13.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restNodeForSpan;
- _this.named.$indexSet(0, key, _this.$this._async_evaluate0$_withoutSlash$2(value, t1));
- _this.namedNodes.$indexSet(0, key, t1);
- },
- $signature: 103
- };
- A._EvaluateVisitor__evaluateArguments_closure14.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 42
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression0(value, t1.get$span(t1));
- },
- $signature: 63
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
- },
- $signature: 63
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restArgs;
- _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._async_evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
- },
- $signature: 103
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = {
- call$1(value) {
- var t1 = this.keywordRestArgs;
- return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
- },
- $signature: 63
- };
- A._EvaluateVisitor__addRestMap_closure2.prototype = {
- call$2(key, value) {
- var t2, _this = this,
- t1 = _this.$this;
- if (key instanceof A.SassString0)
- _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._async_evaluate0$_withoutSlash$2(value, _this.expressionNode)));
- else {
- t2 = _this.nodeWithSpan;
- throw A.wrapException(t1._async_evaluate0$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
- }
- },
- $signature: 76
- };
- A._EvaluateVisitor__verifyArguments_closure2.prototype = {
- call$0() {
- return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 0
- };
- A._EvaluateVisitor_visitCssAtRule_closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssAtRule_closure6.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssMediaRule_closure8.prototype = {
- call$1(mediaQueries) {
- return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries);
- },
- $signature: 100
- };
- A._EvaluateVisitor_visitCssMediaRule_closure9.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.mergedQueries;
- if (t2 == null)
- t2 = $async$self.node.queries;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssMediaRule__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t4, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
- case 6:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 7;
- break;
- }
- t4 = t2.__internal$_current;
- $async$goto = 8;
- return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- // goto for condition
- $async$goto = 6;
- break;
- case 7:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssMediaRule___closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssMediaRule_closure10.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule0)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssStyleRule_closure6.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- $async$goto = 2;
- return A._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitCssStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssStyleRule__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssStyleRule_closure5.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t2, t3, t4, t1, _0_0;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
- $async$goto = _0_0 != null ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
- case 5:
- // returning from await.
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
- case 6:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 7;
- break;
- }
- t4 = t2.__internal$_current;
- $async$goto = 8;
- return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
- case 8:
- // returning from await.
- // goto for condition
- $async$goto = 6;
- break;
- case 7:
- // after for
- case 3:
- // join
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t4 = t1.__internal$_current;
- $async$goto = 4;
- return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
- case 4:
- // returning from await.
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor__performInterpolationHelper_closure2.prototype = {
- call$1(targetLocations) {
- return A.InterpolationMap$0(this.interpolation, targetLocations);
- },
- $signature: 219
- };
- A._EvaluateVisitor__serialize_closure2.prototype = {
- call$0() {
- return A.serializeValue0(this.value, false, this.quote);
- },
- $signature: 26
- };
- A._EvaluateVisitor__expressionNode_closure2.prototype = {
- call$0() {
- var t1 = this.expression;
- return this.$this._async_evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
- },
- $signature: 217
- };
- A._EvaluateVisitor__withoutSlash_recommendation2.prototype = {
- call$1(number) {
- var t1, before, after,
- _1_0 = number.asSlash;
- $label0$0: {
- if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
- t1 = type$.SassNumber_2;
- before = t1._as(_1_0._0);
- after = t1._as(_1_0._1);
- t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
- break $label0$0;
- }
- t1 = A.serializeValue0(number, true, true);
- break $label0$0;
- }
- return t1;
- },
- $signature: 216
- };
- A._EvaluateVisitor__stackFrame_closure2.prototype = {
- call$1(url) {
- var t1 = this.$this._async_evaluate0$_importCache;
- t1 = t1 == null ? null : t1.humanize$1(url);
- return t1 == null ? url : t1;
- },
- $signature: 43
- };
- A._ImportedCssVisitor2.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure2();
- this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1);
- },
- visitCssComment$1(node) {
- return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node);
- },
- visitCssDeclaration$1(node) {
- },
- visitCssImport$1(node) {
- var t2,
- _s13_ = "_endOfImports",
- t1 = this._async_evaluate0$_visitor;
- if (t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent") !== t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root"))
- t1._async_evaluate0$_addChild$1(node);
- else if (t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, _s13_) === J.get$length$asx(t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root").children._collection$_source)) {
- t1._async_evaluate0$_addChild$1(node);
- t1._async_evaluate0$__endOfImports = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, _s13_) + 1;
- } else {
- t2 = t1._async_evaluate0$_outOfOrderImports;
- (t2 == null ? t1._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1(node) {
- },
- visitCssMediaRule$1(node) {
- var t1 = this._async_evaluate0$_visitor,
- mediaQueries = t1._async_evaluate0$_mediaQueries;
- t1._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure2(mediaQueries == null || t1._async_evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
- },
- visitCssStyleRule$1(node) {
- return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure2());
- },
- visitCssStylesheet$1(node) {
- var t1, t2, t3;
- for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- (t3 == null ? t2._as(t3) : t3).accept$1(this);
- }
- },
- visitCssSupportsRule$1(node) {
- return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure2());
- }
- };
- A._ImportedCssVisitor_visitCssAtRule_closure2.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule0))
- t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule0;
- else
- t1 = true;
- return t1;
- },
- $signature: 8
- };
- A._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluationContext2.prototype = {
- get$currentCallableSpan() {
- var _0_0 = this._async_evaluate0$_visitor._async_evaluate0$_callableNode;
- if (_0_0 != null)
- return _0_0.get$span(_0_0);
- throw A.wrapException(A.StateError$(string$.No_Sasc));
- },
- warn$2(_, message, deprecation) {
- var t1 = this._async_evaluate0$_visitor,
- t2 = t1._async_evaluate0$_importSpan;
- if (t2 == null) {
- t2 = t1._async_evaluate0$_callableNode;
- t2 = t2 == null ? null : t2.get$span(t2);
- }
- t1._async_evaluate0$_warn$3(message, t2 == null ? this._async_evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation);
- },
- $isEvaluationContext0: 1
- };
- A.JSToDartAsyncFileImporter.prototype = {
- canonicalize$1(_, url) {
- return this.canonicalize$body$JSToDartAsyncFileImporter(0, url);
- },
- canonicalize$body$JSToDartAsyncFileImporter(_, url) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
- $async$returnValue, $async$self = this, result, t1, resultUrl;
- var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (url.get$scheme() === "file") {
- $async$returnValue = $.$get$FilesystemImporter_cwd0().canonicalize$1(0, url);
- // goto return
- $async$goto = 1;
- break;
- }
- result = A.wrapJSExceptions(new A.JSToDartAsyncFileImporter_canonicalize_closure($async$self, url));
- $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1);
- case 5:
- // returning from await.
- result = $async$result;
- case 4:
- // join
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t1 = self.URL;
- if (!(result instanceof t1))
- A.jsThrow(new self.Error(string$.The_fie));
- resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
- if (resultUrl.get$scheme() !== "file")
- A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".'));
- $async$returnValue = $.$get$FilesystemImporter_cwd0().canonicalize$1(0, resultUrl);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$canonicalize$1, $async$completer);
- },
- load$1(_, url) {
- return $.$get$FilesystemImporter_cwd0().load$1(0, url);
- },
- isNonCanonicalScheme$1(scheme) {
- return scheme !== "file";
- }
- };
- A.JSToDartAsyncFileImporter_canonicalize_closure.prototype = {
- call$0() {
- return this.$this._findFileUrl.call$2(this.url.toString$0(0), A.canonicalizeContext0());
- },
- $signature: 35
- };
- A.AsyncImportCache0.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
- return this.canonicalize$body$AsyncImportCache0(0, url, baseImporter, baseUrl, forImport);
- },
- canonicalize$body$AsyncImportCache0(_, url, baseImporter, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2),
- $async$returnValue, $async$self = this, t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, _1_2, result, _2_0, _2_1, _2_5_isSet, _2_3, _2_5, _2_3_isSet, j;
- var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- if (A.isBrowser())
- t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter0) && $async$self._async_import_cache0$_importers.length === 0;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(string$.Custom);
- $async$goto = baseImporter != null && url.get$scheme() === "" ? 3 : 4;
- break;
- case 3:
- // then
- resolvedUrl = baseUrl == null ? null : baseUrl.resolveUri$1(url);
- if (resolvedUrl == null)
- resolvedUrl = url;
- key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
- $async$goto = 5;
- return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_perImporterCanonicalizeCache, key, new A.AsyncImportCache_canonicalize_closure0($async$self, baseImporter, resolvedUrl, baseUrl, forImport, key, url), type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 5:
- // returning from await.
- relativeResult = $async$result;
- if (relativeResult != null) {
- $async$returnValue = relativeResult;
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // join
- key = new A._Record_2_forImport(url, forImport);
- t1 = $async$self._async_import_cache0$_canonicalizeCache;
- if (t1.containsKey$1(key)) {
- $async$returnValue = t1.$index(0, key);
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = $async$self._async_import_cache0$_importers, t3 = type$.Record_1_nullable_Object, t4 = $async$self._async_import_cache0$_perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2, t6 = type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2, cacheable = true, i = 0;
- case 6:
- // for condition
- if (!(i < t2.length)) {
- // goto after for
- $async$goto = 8;
- break;
- }
- importer = t2[i];
- perImporterKey = new A._Record_3_forImport(importer, url, forImport);
- if (t4.containsKey$1(perImporterKey)) {
- t7 = t4.$index(0, perImporterKey);
- _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
- } else
- _1_0 = null;
- _1_2_isSet = t3._is(_1_0);
- if (_1_2_isSet) {
- _1_2 = _1_0._0;
- t7 = _1_2 != null;
- if (t7) {
- t6._as(_1_2);
- result = _1_2;
- } else
- result = null;
- } else {
- _1_2 = null;
- result = null;
- t7 = false;
- }
- if (t7) {
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (_1_2_isSet)
- t7 = _1_2 == null;
- else
- t7 = false;
- if (t7) {
- // goto for update
- $async$goto = 7;
- break;
- }
- $async$goto = 10;
- return A._asyncAwait($async$self._async_import_cache0$_canonicalize$4(importer, url, baseUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
- case 10:
- // returning from await.
- _2_0 = $async$result;
- _2_1 = _2_0._0;
- _2_5_isSet = _2_1 != null;
- if (_2_5_isSet) {
- result = _2_1 == null ? t6._as(_2_1) : _2_1;
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_5 = t7;
- t7 = t7 && cacheable;
- } else {
- _2_5 = null;
- _2_3 = null;
- result = null;
- t7 = false;
- }
- if (t7) {
- t1.$indexSet(0, key, result);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- }
- if (_2_5_isSet) {
- t7 = _2_5;
- _2_3_isSet = _2_5_isSet;
- } else {
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_3_isSet = true;
- }
- t7 = t7 && !cacheable;
- if (t7) {
- t4.$indexSet(0, perImporterKey, _2_1);
- if (_2_1 != null) {
- $async$returnValue = _2_1;
- // goto return
- $async$goto = 1;
- break;
- }
- // goto break $label0$1
- $async$goto = 9;
- break;
- }
- t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
- if (t7) {
- if (cacheable) {
- for (j = 0; j < i; ++j)
- t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), null);
- cacheable = false;
- }
- if (_2_1 != null) {
- $async$returnValue = _2_1;
- // goto return
- $async$goto = 1;
- break;
- }
- }
- case 9:
- // break $label0$1
- case 7:
- // for update
- ++i;
- // goto for condition
- $async$goto = 6;
- break;
- case 8:
- // after for
- if (cacheable)
- t1.$indexSet(0, key, null);
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
- },
- _async_import_cache0$_canonicalize$4(importer, url, baseUrl, forImport) {
- return this._canonicalize$body$AsyncImportCache0(importer, url, baseUrl, forImport);
- },
- _canonicalize$body$AsyncImportCache0(importer, url, baseUrl, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool_2),
- $async$returnValue, $async$self = this, t1, passContainingUrl, canonicalizeContext, result, cacheable;
- var $async$_async_import_cache0$_canonicalize$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = baseUrl != null ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = url.get$scheme() !== "" ? 6 : 8;
- break;
- case 6:
- // then
- t1 = A._Future$value(importer.isNonCanonicalScheme$1(url.get$scheme()), type$.bool);
- $async$goto = 9;
- return A._asyncAwait(t1, $async$_async_import_cache0$_canonicalize$4);
- case 9:
- // returning from await.
- t1 = $async$result;
- passContainingUrl = t1;
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- passContainingUrl = true;
- case 7:
- // join
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- passContainingUrl = false;
- case 4:
- // join
- canonicalizeContext = new A.CanonicalizeContext0(forImport, passContainingUrl ? baseUrl : null);
- t1 = type$.nullable_Object;
- t1 = A.runZoned(new A.AsyncImportCache__canonicalize_closure0(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.FutureOr_nullable_Uri);
- $async$goto = 10;
- return A._asyncAwait(type$.Future_nullable_Uri._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Uri), $async$_async_import_cache0$_canonicalize$4);
- case 10:
- // returning from await.
- result = $async$result;
- cacheable = !passContainingUrl || !canonicalizeContext._canonicalize_context$_wasContainingUrlAccessed;
- if (result == null) {
- $async$returnValue = new A._Record_2(null, cacheable);
- // goto return
- $async$goto = 1;
- break;
- }
- $async$goto = result.get$scheme() === "" ? 11 : 13;
- break;
- case 11:
- // then
- A.WarnForDeprecation_warnForDeprecation0($async$self._async_import_cache0$_logger, B.Deprecation_Ssf, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, null, null);
- // goto join
- $async$goto = 12;
- break;
- case 13:
- // else
- t1 = A._Future$value(importer.isNonCanonicalScheme$1(result.get$scheme()), type$.bool);
- $async$goto = 14;
- return A._asyncAwait(t1, $async$_async_import_cache0$_canonicalize$4);
- case 14:
- // returning from await.
- if ($async$result)
- throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
- case 12:
- // join
- $async$returnValue = new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_async_import_cache0$_canonicalize$4, $async$completer);
- },
- importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
- return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl, quiet);
- },
- importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
- return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
- },
- importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl, quiet) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2),
- $async$returnValue, $async$self = this;
- var $async$importCanonical$4$originalUrl$quiet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$goto = 3;
- return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl, quiet), type$.Uri, type$.nullable_Stylesheet_2), $async$importCanonical$4$originalUrl$quiet);
- case 3:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$importCanonical$4$originalUrl$quiet, $async$completer);
- },
- humanize$1(canonicalUrl) {
- var t1 = A.IterableNullableExtension_whereNotNull(this._async_import_cache0$_canonicalizeCache.get$values(0), type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2),
- t2 = t1.$ti;
- t2 = A.NullableExtension_andThen0(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.AsyncImportCache_humanize_closure3(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.AsyncImportCache_humanize_closure4(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.AsyncImportCache_humanize_closure5()), new A.AsyncImportCache_humanize_closure6(canonicalUrl));
- return t2 == null ? canonicalUrl : t2;
- },
- sourceMapUrl$1(_, canonicalUrl) {
- var t1 = this._async_import_cache0$_resultsCache.$index(0, canonicalUrl);
- t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
- return t1 == null ? canonicalUrl : t1;
- }
- };
- A.AsyncImportCache_canonicalize_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2),
- $async$returnValue, $async$self = this, t1, t2, _0_0, result;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.$this;
- t2 = $async$self.baseUrl;
- $async$goto = 3;
- return A._asyncAwait(t1._async_import_cache0$_canonicalize$4($async$self.baseImporter, $async$self.resolvedUrl, t2, $async$self.forImport), $async$call$0);
- case 3:
- // returning from await.
- _0_0 = $async$result;
- result = _0_0._0;
- _0_0._1;
- if (t2 != null)
- t1._async_import_cache0$_nonCanonicalRelativeUrls.$indexSet(0, $async$self.key, $async$self.url);
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 354
- };
- A.AsyncImportCache__canonicalize_closure0.prototype = {
- call$0() {
- return this.importer.canonicalize$1(0, this.url);
- },
- $signature: 263
- };
- A.AsyncImportCache_importCanonical_closure0.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2),
- $async$returnValue, $async$self = this, t3, t4, t1, t2, result;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.canonicalUrl;
- t2 = $async$self.importer.load$1(0, t1);
- $async$goto = 3;
- return A._asyncAwait(type$.Future_nullable_ImporterResult._is(t2) ? t2 : A._Future$value(t2, type$.nullable_ImporterResult_2), $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- if (result == null) {
- $async$returnValue = null;
- // goto return
- $async$goto = 1;
- break;
- }
- t2 = $async$self.$this;
- t2._async_import_cache0$_resultsCache.$indexSet(0, t1, result);
- t3 = result.contents;
- t4 = result.syntax;
- t1 = $async$self.originalUrl.resolveUri$1(t1);
- $async$returnValue = A.Stylesheet_Stylesheet$parse0(t3, t4, $async$self.quiet ? $.$get$Logger_quiet0() : t2._async_import_cache0$_logger, t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 355
- };
- A.AsyncImportCache_humanize_closure3.prototype = {
- call$1(result) {
- return J.$eq$(result._1, this.canonicalUrl);
- },
- $signature: 356
- };
- A.AsyncImportCache_humanize_closure4.prototype = {
- call$1(result) {
- return result._2;
- },
- $signature: 357
- };
- A.AsyncImportCache_humanize_closure5.prototype = {
- call$1(url) {
- return url.get$path(url).length;
- },
- $signature: 87
- };
- A.AsyncImportCache_humanize_closure6.prototype = {
- call$1(url) {
- var t1 = $.$get$url(),
- t2 = this.canonicalUrl;
- return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
- },
- $signature: 43
- };
- A.AtRootQueryParser0.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure0(this));
- }
- };
- A.AtRootQueryParser_parse_closure0.prototype = {
- call$0() {
- var include, atRules,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$1(40);
- t1.whitespace$0();
- include = t1.scanIdentifier$1("with");
- if (!include)
- t1.expectIdentifier$2$name("without", '"with" or "without"');
- t1.whitespace$0();
- t2.expectChar$1(58);
- t1.whitespace$0();
- atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- do {
- atRules.add$1(0, t1.identifier$0().toLowerCase());
- t1.whitespace$0();
- } while (t1.lookingAtIdentifier$0());
- t2.expectChar$1(41);
- t2.expectDone$0();
- return new A.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
- },
- $signature: 358
- };
- A.AtRootQuery0.prototype = {
- excludes$1(node) {
- var t1, _this = this;
- if (_this._at_root_query0$_all)
- return !_this.include;
- $label0$0: {
- if (node instanceof A.ModifiableCssStyleRule0) {
- t1 = _this._at_root_query0$_rule !== _this.include;
- break $label0$0;
- }
- if (node instanceof A.ModifiableCssMediaRule0) {
- t1 = _this.excludesName$1("media");
- break $label0$0;
- }
- if (node instanceof A.ModifiableCssSupportsRule0) {
- t1 = _this.excludesName$1("supports");
- break $label0$0;
- }
- if (node instanceof A.ModifiableCssAtRule0) {
- t1 = _this.excludesName$1(node.name.value.toLowerCase());
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- excludesName$1($name) {
- var t1 = this._at_root_query0$_all || this.names.contains$1(0, $name);
- return t1 !== this.include;
- }
- };
- A.AtRootRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitAtRootRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var buffer = new A.StringBuffer("@at-root "),
- t1 = this.query;
- if (t1 != null)
- buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
- t1 = this.children;
- return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssAtRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssAtRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- var t1, t2;
- if (other instanceof A.ModifiableCssAtRule0) {
- t1 = this.name;
- t2 = other.name;
- t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value) && J.$eq$(this.value, other.value) && this.isChildless === other.isChildless;
- } else
- t1 = false;
- return t1;
- },
- copyWithoutChildren$0() {
- var _this = this;
- return A.ModifiableCssAtRule$0(_this.name, _this.span, _this.isChildless, _this.value);
- },
- addChild$1(child) {
- this.super$ModifiableCssParentNode$addChild0(child);
- },
- get$isChildless() {
- return this.isChildless;
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.AtRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitAtRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var children,
- t1 = "@" + this.name.toString$0(0),
- buffer = new A.StringBuffer(t1),
- t2 = this.value;
- if (t2 != null)
- buffer._contents = t1 + (" " + t2.toString$0(0));
- children = this.children;
- return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.AttributeSelector0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitAttributeSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
- },
- get$hashCode(_) {
- var _this = this,
- t1 = _this.name;
- return (B.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;
- }
- };
- A.AttributeOperator0.prototype = {
- _enumToString$0() {
- return "AttributeOperator." + this._name;
- },
- toString$0(_) {
- return this._attribute0$_text;
- }
- };
- A.BinaryOperationExpression0.prototype = {
- get$span(_) {
- var right,
- left = this.left;
- for (; left instanceof A.BinaryOperationExpression0;)
- left = left.left;
- right = this.right;
- for (; right instanceof A.BinaryOperationExpression0;)
- right = right.right;
- return left.get$span(left).expand$1(0, right.get$span(right));
- },
- get$operatorSpan() {
- var t3, t4,
- t1 = this.left,
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t3 = this.right;
- t4 = t3.get$span(t3);
- if (t2 === t4.get$file(t4)) {
- t2 = t1.get$span(t1);
- t2 = t2.get$end(t2);
- t4 = t3.get$span(t3);
- t4 = t2.offset < t4.get$start(t4).offset;
- t2 = t4;
- } else
- t2 = false;
- if (t2) {
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t1 = t1.get$span(t1);
- t1 = t1.get$end(t1);
- t3 = t3.get$span(t3);
- t3 = A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, t1.offset, t3.get$start(t3).offset)));
- t1 = t3;
- } else
- t1 = this.get$span(0);
- return t1;
- },
- accept$1$1(visitor) {
- return visitor.visitBinaryOperationExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1, t2, right, operator, t3, _this = this,
- _0_0 = _this.left;
- $label0$0: {
- if (_0_0 instanceof A.BinaryOperationExpression0) {
- t1 = _0_0.operator.precedence < _this.operator.precedence;
- break $label0$0;
- }
- if (_0_0 instanceof A.ListExpression0 && !_0_0.hasBrackets && _0_0.contents.length >= 2) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- t2 = t1 ? "" + A.Primitives_stringFromCharCode(40) : "";
- t2 += _0_0.toString$0(0);
- t1 = t1 ? t2 + A.Primitives_stringFromCharCode(41) : t2;
- t2 = _this.operator;
- t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32);
- right = _this.right;
- $label1$1: {
- if (right instanceof A.BinaryOperationExpression0) {
- operator = right.operator;
- if (operator.precedence <= t2.precedence) {
- t3 = !(operator === t2 && operator.isAssociative);
- t2 = t3;
- } else
- t2 = false;
- break $label1$1;
- }
- if (right instanceof A.ListExpression0 && !right.hasBrackets && right.contents.length >= 2) {
- t2 = true;
- break $label1$1;
- }
- t2 = false;
- break $label1$1;
- }
- if (t2)
- t1 += A.Primitives_stringFromCharCode(40);
- t1 += right.toString$0(0);
- if (t2)
- t1 += A.Primitives_stringFromCharCode(41);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1
- };
- A.BinaryOperator0.prototype = {
- _enumToString$0() {
- return "BinaryOperator." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.BooleanExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitBooleanExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return String(this.value);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.booleanClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassBoolean", new A.booleanClass__closure()));
- A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.booleanClass__closure.prototype = {
- call$2($self, _) {
- A.jsThrow(new self.Error("new sass.SassBoolean() isn't allowed.\nUse sass.sassTrue or sass.sassFalse instead."));
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 213
- };
- A.legacyBooleanClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Boolean", new A.legacyBooleanClass__closure()));
- J.get$$prototype$x(jsClass).getValue = A.allowInteropCaptureThisNamed("getValue", new A.legacyBooleanClass__closure0());
- jsClass.TRUE = B.SassBoolean_true0;
- jsClass.FALSE = B.SassBoolean_false0;
- A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.legacyBooleanClass__closure.prototype = {
- call$2(_, __) {
- throw A.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.");
- },
- call$1(_) {
- return this.call$2(_, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 209
- };
- A.legacyBooleanClass__closure0.prototype = {
- call$1($self) {
- return $self === B.SassBoolean_true0;
- },
- $signature: 75
- };
- A.SassBoolean0.prototype = {
- get$isTruthy() {
- return this.value;
- },
- accept$1$1(visitor) {
- return visitor._serialize0$_buffer.write$1(0, String(this.value));
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertBoolean$1($name) {
- return this;
- },
- unaryNot$0() {
- return this.value ? B.SassBoolean_false0 : B.SassBoolean_true0;
- }
- };
- A.Box0.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return this.$ti._is(other) && other._box0$_inner === this._box0$_inner;
- },
- get$hashCode(_) {
- return A.Primitives_objectHashCode(this._box0$_inner);
- }
- };
- A.ModifiableBox0.prototype = {};
- A.BuiltInCallable0.prototype = {
- callbackFor$2(positional, names) {
- var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
- for (t1 = this._built_in$_overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- overload = t1[_i];
- t3 = overload._0;
- if (t3.matches$2(positional, names))
- return overload;
- mismatchDistance = t3.$arguments.length - positional;
- if (minMismatchDistance != null) {
- t3 = Math.abs(mismatchDistance);
- t4 = Math.abs(minMismatchDistance);
- if (t3 > t4)
- continue;
- if (t3 === t4 && mismatchDistance < 0)
- continue;
- }
- minMismatchDistance = mismatchDistance;
- fuzzyMatch = overload;
- }
- if (fuzzyMatch != null)
- return fuzzyMatch;
- throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads."));
- },
- withName$1($name) {
- return new A.BuiltInCallable0($name, this._built_in$_overloads, this.acceptsContent);
- },
- $isAsyncCallable0: 1,
- $isAsyncBuiltInCallable0: 1,
- $isCallable: 1,
- get$name(receiver) {
- return this.name;
- },
- get$acceptsContent() {
- return this.acceptsContent;
- }
- };
- A.BuiltInCallable$mixin_closure0.prototype = {
- call$1($arguments) {
- this.callback.call$1($arguments);
- return B.C__SassNull0;
- },
- $signature: 3
- };
- A.BuiltInModule0.prototype = {
- get$upstream() {
- return B.List_empty18;
- },
- get$variableNodes() {
- return B.Map_empty12;
- },
- get$extensionStore() {
- return B.C_EmptyExtensionStore0;
- },
- get$css(_) {
- return new A.CssStylesheet0(B.List_empty16, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0));
- },
- get$preModuleComments() {
- return B.Map_empty11;
- },
- get$transitivelyContainsCss() {
- return false;
- },
- get$transitivelyContainsExtensions() {
- return false;
- },
- setVariable$3($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
- throw A.wrapException(A.SassScriptException$0("Cannot modify built-in variable.", null));
- },
- variableIdentity$1($name) {
- return this;
- },
- cloneCss$0() {
- return this;
- },
- $isModule1: 1,
- get$url(receiver) {
- return this.url;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- },
- get$variables() {
- return this.variables;
- }
- };
- A.calculationClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassCalculation", new A.calculationClass__closure())),
- t2 = type$.String,
- t3 = type$.Function;
- A.LinkedHashMap_LinkedHashMap$_literal(["calc", new A.calculationClass__closure0(), "min", new A.calculationClass__closure1(), "max", new A.calculationClass__closure2(), "clamp", new A.calculationClass__closure3()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineStaticMethod(jsClass));
- A.LinkedHashMap_LinkedHashMap$_literal(["assertCalculation", new A.calculationClass__closure4()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
- A.LinkedHashMap_LinkedHashMap$_literal(["arguments", new A.calculationClass__closure5()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- A.JSClassExtension_injectSuperclass(t1._as(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([A.SassNumber_SassNumber0(1, null)], type$.JSArray_Object), type$.Object)).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.calculationClass__closure.prototype = {
- call$2($self, _) {
- A.jsThrow0(new self.Error("new sass.SassCalculation() isn't allowed"));
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 213
- };
- A.calculationClass__closure0.prototype = {
- call$1(argument) {
- A._assertCalculationValue(argument);
- return new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([argument], type$.JSArray_Object), type$.Object));
- },
- $signature: 110
- };
- A.calculationClass__closure1.prototype = {
- call$1($arguments) {
- var t1 = self.immutable.isOrderedMap($arguments) ? J.toArray$0$x(type$.ImmutableList_2._as($arguments)) : type$.List_dynamic._as($arguments),
- t2 = type$.Object,
- argList = J.cast$1$0$ax(t1, t2);
- argList.forEach$1(argList, A.calculation1___assertCalculationValue$closure());
- return new A.SassCalculation0("min", A.List_List$unmodifiable(argList, t2));
- },
- $signature: 110
- };
- A.calculationClass__closure2.prototype = {
- call$1($arguments) {
- var t1 = self.immutable.isOrderedMap($arguments) ? J.toArray$0$x(type$.ImmutableList_2._as($arguments)) : type$.List_dynamic._as($arguments),
- t2 = type$.Object,
- argList = J.cast$1$0$ax(t1, t2);
- argList.forEach$1(argList, A.calculation1___assertCalculationValue$closure());
- return new A.SassCalculation0("max", A.List_List$unmodifiable(argList, t2));
- },
- $signature: 110
- };
- A.calculationClass__closure3.prototype = {
- call$3(min, value, max) {
- var t1;
- if (!(value == null && !A._isValidClampArg(min)))
- t1 = max == null && !B.JSArray_methods.any$1([min, value], A.calculation1___isValidClampArg$closure());
- else
- t1 = true;
- if (t1)
- A.jsThrow0(new self.Error("Expected at least one SassString or CalculationInterpolation in `" + A.IterableNullableExtension_whereNotNull([min, value, max], type$.Object).toString$0(0) + "`"));
- t1 = type$.Object;
- A.IterableNullableExtension_whereNotNull([min, value, max], t1).forEach$1(0, A.calculation1___assertCalculationValue$closure());
- return new A.SassCalculation0("clamp", A.List_List$unmodifiable(A.IterableNullableExtension_whereNotNull([min, value, max], t1), t1));
- },
- call$1(min) {
- return this.call$3(min, null, null);
- },
- call$2(min, value) {
- return this.call$3(min, value, null);
- },
- "call*": "call$3",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null, null];
- },
- $signature: 363
- };
- A.calculationClass__closure4.prototype = {
- call$2($self, $name) {
- return $self;
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 364
- };
- A.calculationClass__closure5.prototype = {
- call$1($self) {
- return new self.immutable.List($self.$arguments);
- },
- $signature: 365
- };
- A.calculationOperationClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.CalculationOperation", new A.calculationOperationClass__closure())),
- t2 = type$.String,
- t3 = type$.Function;
- A.LinkedHashMap_LinkedHashMap$_literal(["equals", new A.calculationOperationClass__closure0(), "hashCode", new A.calculationOperationClass__closure1()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
- A.LinkedHashMap_LinkedHashMap$_literal(["operator", new A.calculationOperationClass__closure2(), "left", new A.calculationOperationClass__closure3(), "right", new A.calculationOperationClass__closure4()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- A.JSClassExtension_injectSuperclass(t1._as(A.SassCalculation_operateInternal0(B.CalculationOperator_g2q0, A.SassNumber_SassNumber0(1, null), A.SassNumber_SassNumber0(1, null), false, false).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.calculationOperationClass__closure.prototype = {
- call$4($self, strOperator, left, right) {
- var operator = A.IterableExtension_firstWhereOrNull(B.List_kUZ, new A.calculationOperationClass___closure(strOperator));
- if (operator == null)
- A.jsThrow0(new self.Error("Invalid operator: " + strOperator));
- A._assertCalculationValue(left);
- A._assertCalculationValue(right);
- return A.SassCalculation_operateInternal0(operator, left, right, false, false);
- },
- "call*": "call$4",
- $requiredArgCount: 4,
- $signature: 366
- };
- A.calculationOperationClass___closure.prototype = {
- call$1(value) {
- return value.operator === this.strOperator;
- },
- $signature: 367
- };
- A.calculationOperationClass__closure0.prototype = {
- call$2($self, other) {
- return $self.$eq(0, other);
- },
- $signature: 368
- };
- A.calculationOperationClass__closure1.prototype = {
- call$1($self) {
- return $self.get$hashCode(0);
- },
- $signature: 369
- };
- A.calculationOperationClass__closure2.prototype = {
- call$1($self) {
- return $self._calculation0$_operator.operator;
- },
- $signature: 370
- };
- A.calculationOperationClass__closure3.prototype = {
- call$1($self) {
- return $self._calculation0$_left;
- },
- $signature: 207
- };
- A.calculationOperationClass__closure4.prototype = {
- call$1($self) {
- return $self._calculation0$_right;
- },
- $signature: 207
- };
- A.calculationInterpolationClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.CalculationInterpolation", new A.calculationInterpolationClass__closure())),
- t2 = type$.String,
- t3 = type$.Function;
- A.LinkedHashMap_LinkedHashMap$_literal(["equals", new A.calculationInterpolationClass__closure0(), "hashCode", new A.calculationInterpolationClass__closure1()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
- A.LinkedHashMap_LinkedHashMap$_literal(["value", new A.calculationInterpolationClass__closure2()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- A.JSClassExtension_injectSuperclass(t1._as(new A.CalculationInterpolation("").constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.calculationInterpolationClass__closure.prototype = {
- call$2($self, value) {
- return new A.CalculationInterpolation(value);
- },
- $signature: 372
- };
- A.calculationInterpolationClass__closure0.prototype = {
- call$2($self, other) {
- return other instanceof A.CalculationInterpolation && $self._calculation0$_value === other._calculation0$_value;
- },
- $signature: 373
- };
- A.calculationInterpolationClass__closure1.prototype = {
- call$1($self) {
- return B.JSString_methods.get$hashCode($self._calculation0$_value);
- },
- $signature: 374
- };
- A.calculationInterpolationClass__closure2.prototype = {
- call$1($self) {
- return $self._calculation0$_value;
- },
- $signature: 375
- };
- A.SassCalculation0.prototype = {
- get$isSpecialNumber() {
- return true;
- },
- accept$1$1(visitor) {
- return visitor.visitCalculation$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertCalculation$1($name) {
- return this;
- },
- plus$1(other) {
- if (other instanceof A.SassString0)
- return this.super$Value$plus0(other);
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- },
- minus$1(other) {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
- },
- unaryPlus$0() {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "+' + this.toString$0(0) + '".', null));
- },
- unaryMinus$0() {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "-' + this.toString$0(0) + '".', null));
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassCalculation0 && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments);
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments);
- }
- };
- A.SassCalculation__verifyLength_closure0.prototype = {
- call$1(arg) {
- return arg instanceof A.SassString0;
- },
- $signature: 75
- };
- A.CalculationOperation0.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.CalculationOperation0 && this._calculation0$_operator === other._calculation0$_operator && J.$eq$(this._calculation0$_left, other._calculation0$_left) && J.$eq$(this._calculation0$_right, other._calculation0$_right);
- },
- get$hashCode(_) {
- return (A.Primitives_objectHashCode(this._calculation0$_operator) ^ J.get$hashCode$(this._calculation0$_left) ^ J.get$hashCode$(this._calculation0$_right)) >>> 0;
- },
- toString$0(_) {
- var parenthesized = A.serializeValue0(new A.SassCalculation0("", A._setArrayType([this], type$.JSArray_Object)), true, true);
- return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1);
- }
- };
- A.CalculationOperator0.prototype = {
- _enumToString$0() {
- return "CalculationOperator." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.CalculationInterpolation.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.CalculationInterpolation && this._calculation0$_value === other._calculation0$_value;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this._calculation0$_value);
- },
- toString$0(_) {
- return this._calculation0$_value;
- }
- };
- A.CallableDeclaration0.prototype = {
- get$span(receiver) {
- return this.span;
- }
- };
- A.updateCanonicalizeContextPrototype_closure.prototype = {
- call$1($self) {
- return $self._canonicalize_context$_fromImport;
- },
- $signature: 376
- };
- A.updateCanonicalizeContextPrototype_closure0.prototype = {
- call$1($self) {
- $self._canonicalize_context$_wasContainingUrlAccessed = true;
- return A.NullableExtension_andThen0($self._canonicalize_context$_containingUrl, A.utils1__dartToJSUrl$closure());
- },
- $signature: 377
- };
- A.CanonicalizeContext0.prototype = {
- withFromImport$1$2(fromImport, callback) {
- var t1,
- oldFromImport = this._canonicalize_context$_fromImport;
- this._canonicalize_context$_fromImport = true;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- this._canonicalize_context$_fromImport = oldFromImport;
- }
- },
- withFromImport$2(fromImport, callback) {
- return this.withFromImport$1$2(fromImport, callback, type$.dynamic);
- }
- };
- A.Chokidar0.prototype = {};
- A.ChokidarOptions0.prototype = {};
- A.ChokidarWatcher0.prototype = {};
- A.ClassSelector0.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ClassSelector0 && other.name === this.name;
- },
- accept$1$1(visitor) {
- return visitor.visitClassSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- return new A.ClassSelector0(this.name + suffix, this.span);
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- }
- };
- A._CloneCssVisitor0.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.isChildless,
- rule = A.ModifiableCssAtRule$0(node.name, node.span, t1, node.value);
- return t1 ? rule : this._clone_css$_visitChildren$2(rule, node);
- },
- visitCssComment$1(node) {
- return new A.ModifiableCssComment0(node.text, node.span);
- },
- visitCssDeclaration$1(node) {
- return A.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap);
- },
- visitCssImport$1(node) {
- return new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
- },
- visitCssKeyframeBlock$1(node) {
- return this._clone_css$_visitChildren$2(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), node);
- },
- visitCssMediaRule$1(node) {
- return this._clone_css$_visitChildren$2(A.ModifiableCssMediaRule$0(node.queries, node.span), node);
- },
- visitCssStyleRule$1(node) {
- var _0_0 = this._clone_css$_oldToNewSelectors.$index(0, node._style_rule0$_selector._box0$_inner.value);
- if (_0_0 != null)
- return this._clone_css$_visitChildren$2(A.ModifiableCssStyleRule$0(_0_0, node.span, false, node.originalSelector), node);
- else
- throw A.wrapException(A.StateError$(string$.The_Ex));
- },
- visitCssStylesheet$1(node) {
- return this._clone_css$_visitChildren$2(A.ModifiableCssStylesheet$0(node.get$span(node)), node);
- },
- visitCssSupportsRule$1(node) {
- return this._clone_css$_visitChildren$2(A.ModifiableCssSupportsRule$0(node.condition, node.span), node);
- },
- _clone_css$_visitChildren$1$2(newParent, oldParent) {
- var t1, t2, newChild;
- for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- newChild = t2.accept$1(this);
- newChild.isGroupEnd = t2.get$isGroupEnd();
- newParent.addChild$1(newChild);
- }
- return newParent;
- },
- _clone_css$_visitChildren$2(newParent, oldParent) {
- return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode_2);
- }
- };
- A.ColorExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitColorExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return A.serializeValue0(this.value, true, true);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.global_closure32.prototype = {
- call$1($arguments) {
- return A._rgb0("rgb", $arguments);
- },
- $signature: 3
- };
- A.global_closure33.prototype = {
- call$1($arguments) {
- return A._rgb0("rgb", $arguments);
- },
- $signature: 3
- };
- A.global_closure34.prototype = {
- call$1($arguments) {
- return A._rgbTwoArg0("rgb", $arguments);
- },
- $signature: 3
- };
- A.global_closure35.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels0("rgb", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString0 ? parsed : A._rgb0("rgb", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- A.global_closure36.prototype = {
- call$1($arguments) {
- return A._rgb0("rgba", $arguments);
- },
- $signature: 3
- };
- A.global_closure37.prototype = {
- call$1($arguments) {
- return A._rgb0("rgba", $arguments);
- },
- $signature: 3
- };
- A.global_closure38.prototype = {
- call$1($arguments) {
- return A._rgbTwoArg0("rgba", $arguments);
- },
- $signature: 3
- };
- A.global_closure39.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels0("rgba", A._setArrayType(["$red", "$green", "$blue"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString0 ? parsed : A._rgb0("rgba", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- A.global_closure40.prototype = {
- call$1($arguments) {
- var color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber()) {
- if (weight._number1$_value !== 100 || !weight.hasUnit$1("%"))
- throw A.wrapException(string$.Only_oa);
- return A._functionString0("invert", t1.take$1($arguments, 1));
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red(0);
- t2 = color.get$green(0);
- return A._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(0), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 3
- };
- A.global_closure41.prototype = {
- call$1($arguments) {
- return A._hsl0("hsl", $arguments);
- },
- $signature: 3
- };
- A.global_closure42.prototype = {
- call$1($arguments) {
- return A._hsl0("hsl", $arguments);
- },
- $signature: 3
- };
- A.global_closure43.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return A._functionString0("hsl", $arguments);
- else
- throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null));
- },
- $signature: 19
- };
- A.global_closure44.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels0("hsl", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString0 ? parsed : A._hsl0("hsl", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- A.global_closure45.prototype = {
- call$1($arguments) {
- return A._hsl0("hsla", $arguments);
- },
- $signature: 3
- };
- A.global_closure46.prototype = {
- call$1($arguments) {
- return A._hsl0("hsla", $arguments);
- },
- $signature: 3
- };
- A.global_closure47.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
- return A._functionString0("hsla", $arguments);
- else
- throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null));
- },
- $signature: 19
- };
- A.global_closure48.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels0("hsla", A._setArrayType(["$hue", "$saturation", "$lightness"], type$.JSArray_String), J.get$first$ax($arguments));
- return parsed instanceof A.SassString0 ? parsed : A._hsl0("hsla", type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- A.global_closure49.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber())
- return A._functionString0("grayscale", $arguments);
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 3
- };
- A.global_closure50.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- degrees = A._angleValue0(t1.$index($arguments, 1), "degrees");
- return color.changeHsl$1$hue(color.get$hue(0) + degrees);
- },
- $signature: 28
- };
- A.global_closure51.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(0) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 28
- };
- A.global_closure52.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$lightness(B.JSNumber_methods.clamp$2(color.get$lightness(0) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 28
- };
- A.global_closure53.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber())
- return A._functionString0("saturate", $arguments);
- return new A.SassString0("saturate(" + A.serializeValue0(t1.$index($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
- },
- $signature: 19
- };
- A.global_closure54.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(0) + amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 28
- };
- A.global_closure55.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- color = t1.$index($arguments, 0).assertColor$1("color"),
- amount = t1.$index($arguments, 1).assertNumber$1("amount");
- return color.changeHsl$1$saturation(B.JSNumber_methods.clamp$2(color.get$saturation(0) - amount.valueInRange$3(0, 100, "amount"), 0, 100));
- },
- $signature: 28
- };
- A.global_closure56.prototype = {
- call$1($arguments) {
- var argument = J.$index$asx($arguments, 0);
- if (argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0()))
- return A._functionString0("alpha", $arguments);
- return A.SassNumber_SassNumber0(argument.assertColor$1("color")._color1$_alpha, null);
- },
- $signature: 3
- };
- A.global_closure57.prototype = {
- call$1($arguments) {
- var t1,
- argList = J.$index$asx($arguments, 0).get$asList();
- if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure0()))
- return A._functionString0("alpha", $arguments);
- t1 = argList.length;
- if (t1 === 0)
- throw A.wrapException(A.SassScriptException$0("Missing argument $color.", null));
- else
- throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed.", null));
- },
- $signature: 19
- };
- A.global__closure0.prototype = {
- call$1(argument) {
- return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0());
- },
- $signature: 53
- };
- A.global_closure58.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber())
- return A._functionString0("opacity", $arguments);
- return A.SassNumber_SassNumber0(t1.$index($arguments, 0).assertColor$1("color")._color1$_alpha, null);
- },
- $signature: 3
- };
- A.module_closure12.prototype = {
- call$1($arguments) {
- var result, color, t2,
- t1 = J.getInterceptor$asx($arguments),
- weight = t1.$index($arguments, 1).assertNumber$1("weight");
- if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
- if (weight._number1$_value !== 100 || !weight.hasUnit$1("%"))
- throw A.wrapException(string$.Only_oa);
- result = A._functionString0("invert", t1.take$1($arguments, 1));
- A.warnForDeprecation0("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x29x20to_ci + result.toString$0(0), B.Deprecation_EfO);
- return result;
- }
- color = t1.$index($arguments, 0).assertColor$1("color");
- t1 = color.get$red(0);
- t2 = color.get$green(0);
- return A._mixColors0(color.changeRgb$3$blue$green$red(255 - color.get$blue(0), 255 - t2, 255 - t1), color, weight);
- },
- $signature: 3
- };
- A.module_closure13.prototype = {
- call$1($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
- result = A._functionString0("grayscale", t1.take$1($arguments, 1));
- A.warnForDeprecation0("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x29x20to_cg + result.toString$0(0), B.Deprecation_EfO);
- return result;
- }
- return t1.$index($arguments, 0).assertColor$1("color").changeHsl$1$saturation(0);
- },
- $signature: 3
- };
- A.module_closure14.prototype = {
- call$1($arguments) {
- return A._hwb0($arguments);
- },
- $signature: 3
- };
- A.module_closure15.prototype = {
- call$1($arguments) {
- var parsed = A._parseChannels0("hwb", A._setArrayType(["$hue", "$whiteness", "$blackness"], type$.JSArray_String), J.get$first$ax($arguments));
- if (parsed instanceof A.SassString0)
- throw A.wrapException(A.SassScriptException$0('Expected numeric channels, got "' + parsed.toString$0(0) + '".', null));
- else
- return A._hwb0(type$.List_Value_2._as(parsed));
- },
- $signature: 3
- };
- A.module_closure16.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$whiteness(0), "%");
- },
- $signature: 12
- };
- A.module_closure17.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$blackness(0), "%");
- },
- $signature: 12
- };
- A.module_closure18.prototype = {
- call$1($arguments) {
- var result,
- argument = J.$index$asx($arguments, 0);
- if (argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0())) {
- result = A._functionString0("alpha", $arguments);
- A.warnForDeprecation0(string$.Using_c + result.toString$0(0), B.Deprecation_EfO);
- return result;
- }
- return A.SassNumber_SassNumber0(argument.assertColor$1("color")._color1$_alpha, null);
- },
- $signature: 3
- };
- A.module_closure19.prototype = {
- call$1($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure4())) {
- result = A._functionString0("alpha", $arguments);
- A.warnForDeprecation0(string$.Using_c + result.toString$0(0), B.Deprecation_EfO);
- return result;
- }
- throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null));
- },
- $signature: 19
- };
- A.module__closure4.prototype = {
- call$1(argument) {
- return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0());
- },
- $signature: 53
- };
- A.module_closure20.prototype = {
- call$1($arguments) {
- var result,
- t1 = J.getInterceptor$asx($arguments);
- if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
- result = A._functionString0("opacity", $arguments);
- A.warnForDeprecation0("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x20to_co + result.toString$0(0), B.Deprecation_EfO);
- return result;
- }
- return A.SassNumber_SassNumber0(t1.$index($arguments, 0).assertColor$1("color")._color1$_alpha, null);
- },
- $signature: 3
- };
- A._red_closure0.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$red(0), null);
- },
- $signature: 12
- };
- A._green_closure0.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$green(0), null);
- },
- $signature: 12
- };
- A._blue_closure0.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$blue(0), null);
- },
- $signature: 12
- };
- A._mix_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A._mixColors0(t1.$index($arguments, 0).assertColor$1("color1"), t1.$index($arguments, 1).assertColor$1("color2"), t1.$index($arguments, 2).assertNumber$1("weight"));
- },
- $signature: 28
- };
- A._hue_closure0.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$hue(0), "deg");
- },
- $signature: 12
- };
- A._saturation_closure0.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$saturation(0), "%");
- },
- $signature: 12
- };
- A._lightness_closure0.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.get$first$ax($arguments).assertColor$1("color").get$lightness(0), "%");
- },
- $signature: 12
- };
- A._complement_closure0.prototype = {
- call$1($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color");
- return color.changeHsl$1$hue(color.get$hue(0) + 180);
- },
- $signature: 28
- };
- A._adjust_closure0.prototype = {
- call$1($arguments) {
- return A._updateComponents0($arguments, true, false, false);
- },
- $signature: 28
- };
- A._scale_closure0.prototype = {
- call$1($arguments) {
- return A._updateComponents0($arguments, false, false, true);
- },
- $signature: 28
- };
- A._change_closure0.prototype = {
- call$1($arguments) {
- return A._updateComponents0($arguments, false, true, false);
- },
- $signature: 28
- };
- A._ieHexStr_closure0.prototype = {
- call$1($arguments) {
- var color = J.$index$asx($arguments, 0).assertColor$1("color"),
- t1 = new A._ieHexStr_closure_hexString0();
- return new A.SassString0("#" + A.S(t1.call$1(A.fuzzyRound0(color._color1$_alpha * 255))) + A.S(t1.call$1(color.get$red(0))) + A.S(t1.call$1(color.get$green(0))) + A.S(t1.call$1(color.get$blue(0))), false);
- },
- $signature: 19
- };
- A._ieHexStr_closure_hexString0.prototype = {
- call$1(component) {
- return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(component, 16), 2, "0").toUpperCase();
- },
- $signature: 191
- };
- A._updateComponents_getParam0.prototype = {
- call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, checkPercent, checkUnitless) {
- var t2, _this = this,
- t1 = _this.keywords.remove$1(0, $name),
- number = t1 == null ? null : t1.assertNumber$1($name);
- if (number == null)
- return null;
- t1 = _this.scale;
- t2 = !t1;
- if (t2 && checkUnitless)
- if (number.get$hasUnits())
- A.warnForDeprecation0("$" + $name + ": Passing a number with unit " + number.get$unitString() + string$.x20is_de + number.unitSuggestion$1($name) + string$.x0a_Morex3a, B.Deprecation_oCX);
- if (t2 && checkPercent)
- A._checkPercent0(number, $name);
- if (!t2 || assertPercent)
- number.assertUnit$2("%", $name);
- if (t1)
- max = 100;
- if (!t2 || assertPercent)
- t1 = number.valueInRange$3(_this.change ? 0 : -max, max, $name);
- else {
- t1 = _this.change ? 0 : -max;
- t1 = number.valueInRangeWithUnit$4(t1, max, $name, checkPercent ? "%" : "");
- }
- return t1;
- },
- call$2($name, max) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, false);
- },
- call$3$checkUnitless($name, max, checkUnitless) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, false, checkUnitless);
- },
- call$3$checkPercent($name, max, checkPercent) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, false, checkPercent, false);
- },
- call$3$assertPercent($name, max, assertPercent) {
- return this.call$5$assertPercent$checkPercent$checkUnitless($name, max, assertPercent, false, false);
- },
- $signature: 189
- };
- A._updateComponents_closure1.prototype = {
- call$1(hue) {
- return A._angleValue0(hue, "hue");
- },
- $signature: 95
- };
- A._updateComponents_closure2.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._updateComponents_updateValue0.prototype = {
- call$3(current, param, max) {
- var t1;
- if (param == null)
- return current;
- if (this.change)
- return param;
- if (this.adjust)
- return B.JSNumber_methods.clamp$2(current + param, 0, max);
- t1 = param > 0 ? max - current : current;
- return current + t1 * (param / 100);
- },
- $signature: 251
- };
- A._updateComponents_updateRgb0.prototype = {
- call$2(current, param) {
- return A.fuzzyRound0(this.updateValue.call$3(current, param, 255));
- },
- $signature: 249
- };
- A._functionString_closure0.prototype = {
- call$1(argument) {
- return A.serializeValue0(argument, false, true);
- },
- $signature: 136
- };
- A._removedColorFunction_closure0.prototype = {
- call$1($arguments) {
- var t1 = this.name,
- t2 = J.getInterceptor$asx($arguments),
- t3 = A.S(t2.$index($arguments, 0)),
- t4 = this.negative ? "-" : "";
- throw A.wrapException(A.SassScriptException$0("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Mor + t1, null));
- },
- $signature: 384
- };
- A._rgb_closure0.prototype = {
- call$1(alpha) {
- return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
- },
- $signature: 95
- };
- A._hsl_closure0.prototype = {
- call$1(alpha) {
- return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
- },
- $signature: 95
- };
- A._hwb_closure0.prototype = {
- call$1(alpha) {
- return A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
- },
- $signature: 95
- };
- A._parseChannels_closure0.prototype = {
- call$1(value) {
- return value.get$isVar();
- },
- $signature: 53
- };
- A.colorClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassColor", new A.colorClass__closure()));
- J.get$$prototype$x(jsClass).change = A.allowInteropCaptureThisNamed("change", new A.colorClass__closure0());
- A.LinkedHashMap_LinkedHashMap$_literal(["red", new A.colorClass__closure1(), "green", new A.colorClass__closure2(), "blue", new A.colorClass__closure3(), "hue", new A.colorClass__closure4(), "saturation", new A.colorClass__closure5(), "lightness", new A.colorClass__closure6(), "whiteness", new A.colorClass__closure7(), "blackness", new A.colorClass__closure8(), "alpha", new A.colorClass__closure9()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- A.JSClassExtension_injectSuperclass(t1._as(A.SassColor$rgb0(0, 0, 0, 1).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.colorClass__closure.prototype = {
- call$2($self, color) {
- var t2, t3, t4,
- t1 = J.getInterceptor$x(color);
- if (t1.get$red(color) != null) {
- t2 = t1.get$red(color);
- t2.toString;
- t2 = A.fuzzyRound0(t2);
- t3 = t1.get$green(color);
- t3.toString;
- t3 = A.fuzzyRound0(t3);
- t4 = t1.get$blue(color);
- t4.toString;
- t4 = A.fuzzyRound0(t4);
- t1 = t1.get$alpha(color);
- return A.SassColor$rgb0(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1);
- } else if (t1.get$saturation(color) != null) {
- t2 = t1.get$hue(color);
- t2.toString;
- t3 = t1.get$saturation(color);
- t3.toString;
- t4 = t1.get$lightness(color);
- t4.toString;
- t1 = t1.get$alpha(color);
- return A.SassColor$hsl(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1);
- } else {
- t2 = t1.get$hue(color);
- t2.toString;
- t3 = t1.get$whiteness(color);
- t3.toString;
- t4 = t1.get$blackness(color);
- t4.toString;
- t1 = t1.get$alpha(color);
- return A.SassColor_SassColor$hwb0(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1);
- }
- },
- $signature: 385
- };
- A.colorClass__closure0.prototype = {
- call$2($self, options) {
- var t2, t3, t4,
- t1 = J.getInterceptor$x(options);
- if (t1.get$whiteness(options) != null || t1.get$blackness(options) != null) {
- t2 = t1.get$hue(options);
- if (t2 == null)
- t2 = $self.get$hue(0);
- t3 = t1.get$whiteness(options);
- if (t3 == null)
- t3 = $self.get$whiteness(0);
- t4 = t1.get$blackness(options);
- if (t4 == null)
- t4 = $self.get$blackness(0);
- t1 = t1.get$alpha(options);
- return $self.changeHwb$4$alpha$blackness$hue$whiteness(t1 == null ? $self._color1$_alpha : t1, t4, t2, t3);
- } else if (t1.get$hue(options) != null || t1.get$saturation(options) != null || t1.get$lightness(options) != null) {
- t2 = t1.get$hue(options);
- if (t2 == null)
- t2 = $self.get$hue(0);
- t3 = t1.get$saturation(options);
- if (t3 == null)
- t3 = $self.get$saturation(0);
- t4 = t1.get$lightness(options);
- if (t4 == null)
- t4 = $self.get$lightness(0);
- t1 = t1.get$alpha(options);
- return $self.changeHsl$4$alpha$hue$lightness$saturation(t1 == null ? $self._color1$_alpha : t1, t2, t4, t3);
- } else if (t1.get$red(options) != null || t1.get$green(options) != null || t1.get$blue(options) != null) {
- t2 = A.NullableExtension_andThen0(t1.get$red(options), A.number2__fuzzyRound$closure());
- if (t2 == null)
- t2 = $self.get$red(0);
- t3 = A.NullableExtension_andThen0(t1.get$green(options), A.number2__fuzzyRound$closure());
- if (t3 == null)
- t3 = $self.get$green(0);
- t4 = A.NullableExtension_andThen0(t1.get$blue(options), A.number2__fuzzyRound$closure());
- if (t4 == null)
- t4 = $self.get$blue(0);
- t1 = t1.get$alpha(options);
- return $self.changeRgb$4$alpha$blue$green$red(t1 == null ? $self._color1$_alpha : t1, t4, t3, t2);
- } else {
- t1 = t1.get$alpha(options);
- return $self.changeAlpha$1(t1 == null ? $self._color1$_alpha : t1);
- }
- },
- $signature: 386
- };
- A.colorClass__closure1.prototype = {
- call$1($self) {
- return $self.get$red(0);
- },
- $signature: 116
- };
- A.colorClass__closure2.prototype = {
- call$1($self) {
- return $self.get$green(0);
- },
- $signature: 116
- };
- A.colorClass__closure3.prototype = {
- call$1($self) {
- return $self.get$blue(0);
- },
- $signature: 116
- };
- A.colorClass__closure4.prototype = {
- call$1($self) {
- return $self.get$hue(0);
- },
- $signature: 57
- };
- A.colorClass__closure5.prototype = {
- call$1($self) {
- return $self.get$saturation(0);
- },
- $signature: 57
- };
- A.colorClass__closure6.prototype = {
- call$1($self) {
- return $self.get$lightness(0);
- },
- $signature: 57
- };
- A.colorClass__closure7.prototype = {
- call$1($self) {
- return $self.get$whiteness(0);
- },
- $signature: 57
- };
- A.colorClass__closure8.prototype = {
- call$1($self) {
- return $self.get$blackness(0);
- },
- $signature: 57
- };
- A.colorClass__closure9.prototype = {
- call$1($self) {
- return $self._color1$_alpha;
- },
- $signature: 57
- };
- A._Channels.prototype = {};
- A._NodeSassColor.prototype = {};
- A.legacyColorClass_closure.prototype = {
- call$6(thisArg, redOrArgb, green, blue, alpha, dartValue) {
- var red, t1, t2, t3, t4;
- if (dartValue != null) {
- J.set$dartValue$x(thisArg, dartValue);
- return;
- }
- if (green == null || blue == null) {
- A._asInt(redOrArgb);
- alpha = B.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255;
- red = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256);
- green = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256);
- blue = B.JSInt_methods.$mod(redOrArgb, 256);
- } else {
- redOrArgb.toString;
- red = redOrArgb;
- }
- t1 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(red, 0, 255));
- t2 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(green, 0, 255));
- t3 = A.fuzzyRound0(B.JSNumber_methods.clamp$2(blue, 0, 255));
- t4 = alpha == null ? null : B.JSNumber_methods.clamp$2(alpha, 0, 1);
- J.set$dartValue$x(thisArg, A.SassColor$rgb0(t1, t2, t3, t4 == null ? 1 : t4));
- },
- call$2(thisArg, redOrArgb) {
- var _null = null;
- return this.call$6(thisArg, redOrArgb, _null, _null, _null, _null);
- },
- call$3(thisArg, redOrArgb, green) {
- return this.call$6(thisArg, redOrArgb, green, null, null, null);
- },
- call$4(thisArg, redOrArgb, green, blue) {
- return this.call$6(thisArg, redOrArgb, green, blue, null, null);
- },
- call$5(thisArg, redOrArgb, green, blue, alpha) {
- return this.call$6(thisArg, redOrArgb, green, blue, alpha, null);
- },
- "call*": "call$6",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null, null, null, null];
- },
- $signature: 389
- };
- A.legacyColorClass_closure0.prototype = {
- call$1(thisArg) {
- return J.get$red$x(J.get$dartValue$x(thisArg));
- },
- $signature: 118
- };
- A.legacyColorClass_closure1.prototype = {
- call$1(thisArg) {
- return J.get$green$x(J.get$dartValue$x(thisArg));
- },
- $signature: 118
- };
- A.legacyColorClass_closure2.prototype = {
- call$1(thisArg) {
- return J.get$blue$x(J.get$dartValue$x(thisArg));
- },
- $signature: 118
- };
- A.legacyColorClass_closure3.prototype = {
- call$1(thisArg) {
- return J.get$dartValue$x(thisArg)._color1$_alpha;
- },
- $signature: 391
- };
- A.legacyColorClass_closure4.prototype = {
- call$2(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$red(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255))));
- },
- $signature: 106
- };
- A.legacyColorClass_closure5.prototype = {
- call$2(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$green(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255))));
- },
- $signature: 106
- };
- A.legacyColorClass_closure6.prototype = {
- call$2(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$blue(A.fuzzyRound0(B.JSNumber_methods.clamp$2(value, 0, 255))));
- },
- $signature: 106
- };
- A.legacyColorClass_closure7.prototype = {
- call$2(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).changeRgb$1$alpha(B.JSNumber_methods.clamp$2(value, 0, 1)));
- },
- $signature: 106
- };
- A.SassColor0.prototype = {
- get$red(_) {
- var t1;
- if (this._color1$_red == null)
- this._color1$_hslToRgb$0();
- t1 = this._color1$_red;
- t1.toString;
- return t1;
- },
- get$green(_) {
- var t1;
- if (this._color1$_green == null)
- this._color1$_hslToRgb$0();
- t1 = this._color1$_green;
- t1.toString;
- return t1;
- },
- get$blue(_) {
- var t1;
- if (this._color1$_blue == null)
- this._color1$_hslToRgb$0();
- t1 = this._color1$_blue;
- t1.toString;
- return t1;
- },
- get$hue(_) {
- var t1;
- if (this._color1$_hue == null)
- this._color1$_rgbToHsl$0();
- t1 = this._color1$_hue;
- t1.toString;
- return t1;
- },
- get$saturation(_) {
- var t1;
- if (this._color1$_saturation == null)
- this._color1$_rgbToHsl$0();
- t1 = this._color1$_saturation;
- t1.toString;
- return t1;
- },
- get$lightness(_) {
- var t1;
- if (this._color1$_lightness == null)
- this._color1$_rgbToHsl$0();
- t1 = this._color1$_lightness;
- t1.toString;
- return t1;
- },
- get$whiteness(_) {
- return Math.min(Math.min(this.get$red(0), this.get$green(0)), this.get$blue(0)) / 255 * 100;
- },
- get$blackness(_) {
- return 100 - Math.max(Math.max(this.get$red(0), this.get$green(0)), this.get$blue(0)) / 255 * 100;
- },
- accept$1$1(visitor) {
- return visitor.visitColor$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertColor$1($name) {
- return this;
- },
- changeRgb$4$alpha$blue$green$red(alpha, blue, green, red) {
- var _this = this,
- t1 = red == null ? _this.get$red(0) : red,
- t2 = green == null ? _this.get$green(0) : green,
- t3 = blue == null ? _this.get$blue(0) : blue;
- return A.SassColor$rgb0(t1, t2, t3, alpha == null ? _this._color1$_alpha : alpha);
- },
- changeRgb$3$blue$green$red(blue, green, red) {
- return this.changeRgb$4$alpha$blue$green$red(null, blue, green, red);
- },
- changeRgb$1$alpha(alpha) {
- return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null);
- },
- changeRgb$1$blue(blue) {
- return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null);
- },
- changeRgb$1$green(green) {
- return this.changeRgb$4$alpha$blue$green$red(null, null, green, null);
- },
- changeRgb$1$red(red) {
- return this.changeRgb$4$alpha$blue$green$red(null, null, null, red);
- },
- changeHsl$4$alpha$hue$lightness$saturation(alpha, hue, lightness, saturation) {
- var _this = this,
- t1 = hue == null ? _this.get$hue(0) : hue,
- t2 = saturation == null ? _this.get$saturation(0) : saturation,
- t3 = lightness == null ? _this.get$lightness(0) : lightness;
- return A.SassColor$hsl(t1, t2, t3, alpha == null ? _this._color1$_alpha : alpha);
- },
- changeHsl$1$saturation(saturation) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, null, saturation);
- },
- changeHsl$1$lightness(lightness) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, null, lightness, null);
- },
- changeHsl$1$hue(hue) {
- return this.changeHsl$4$alpha$hue$lightness$saturation(null, hue, null, null);
- },
- changeHwb$4$alpha$blackness$hue$whiteness(alpha, blackness, hue, whiteness) {
- var t1 = hue == null ? this.get$hue(0) : hue;
- return A.SassColor_SassColor$hwb0(t1, whiteness, blackness, alpha);
- },
- changeAlpha$1(alpha) {
- var _this = this;
- return new A.SassColor0(_this._color1$_red, _this._color1$_green, _this._color1$_blue, _this._color1$_hue, _this._color1$_saturation, _this._color1$_lightness, A.fuzzyAssertRange0(alpha, 0, 1, "alpha"), null);
- },
- plus$1(other) {
- if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
- return this.super$Value$plus0(other);
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- },
- minus$1(other) {
- if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
- return this.super$Value$minus0(other);
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
- },
- dividedBy$1(other) {
- if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
- return this.super$Value$dividedBy0(other);
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null));
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A.SassColor0 && other.get$red(0) === _this.get$red(0) && other.get$green(0) === _this.get$green(0) && other.get$blue(0) === _this.get$blue(0) && other._color1$_alpha === _this._color1$_alpha;
- },
- get$hashCode(_) {
- var _this = this;
- return B.JSInt_methods.get$hashCode(_this.get$red(0)) ^ B.JSInt_methods.get$hashCode(_this.get$green(0)) ^ B.JSInt_methods.get$hashCode(_this.get$blue(0)) ^ B.JSNumber_methods.get$hashCode(_this._color1$_alpha);
- },
- _color1$_rgbToHsl$0() {
- var t2, lightness, _this = this,
- scaledRed = _this.get$red(0) / 255,
- scaledGreen = _this.get$green(0) / 255,
- scaledBlue = _this.get$blue(0) / 255,
- max = Math.max(Math.max(scaledRed, scaledGreen), scaledBlue),
- min = Math.min(Math.min(scaledRed, scaledGreen), scaledBlue),
- delta = max - min,
- t1 = max === min;
- if (t1)
- _this._color1$_hue = 0;
- else if (max === scaledRed)
- _this._color1$_hue = B.JSNumber_methods.$mod(60 * (scaledGreen - scaledBlue) / delta, 360);
- else if (max === scaledGreen)
- _this._color1$_hue = B.JSNumber_methods.$mod(120 + 60 * (scaledBlue - scaledRed) / delta, 360);
- else if (max === scaledBlue)
- _this._color1$_hue = B.JSNumber_methods.$mod(240 + 60 * (scaledRed - scaledGreen) / delta, 360);
- t2 = max + min;
- lightness = 50 * t2;
- _this._color1$_lightness = lightness;
- if (t1)
- _this._color1$_saturation = 0;
- else {
- t1 = 100 * delta;
- if (lightness < 50)
- _this._color1$_saturation = t1 / t2;
- else
- _this._color1$_saturation = t1 / (2 - max - min);
- }
- },
- _color1$_hslToRgb$0() {
- var _this = this,
- scaledHue = _this.get$hue(0) / 360,
- scaledSaturation = _this.get$saturation(0) / 100,
- scaledLightness = _this.get$lightness(0) / 100,
- m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
- m1 = scaledLightness * 2 - m2;
- _this._color1$_red = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue + 0.3333333333333333) * 255);
- _this._color1$_green = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue) * 255);
- _this._color1$_blue = A.fuzzyRound0(A.SassColor__hueToRgb0(m1, m2, scaledHue - 0.3333333333333333) * 255);
- }
- };
- A.SassColor_SassColor$hwb_toRgb0.prototype = {
- call$1(hue) {
- return A.fuzzyRound0((A.SassColor__hueToRgb0(0, 1, hue) * this.factor + this._box_0.scaledWhiteness) * 255);
- },
- $signature: 159
- };
- A._ColorFormatEnum0.prototype = {
- toString$0(_) {
- return this._color1$_name;
- }
- };
- A.SpanColorFormat0.prototype = {};
- A.Combinator0.prototype = {
- _enumToString$0() {
- return "Combinator." + this._name;
- },
- toString$0(_) {
- return this._combinator0$_text;
- }
- };
- A.ModifiableCssComment0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssComment$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $isCssComment0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.compileAsync_closure.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult),
- $async$returnValue, $async$self = this, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, result, t1, t2, t3, t4;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.options;
- t2 = t1 == null;
- t3 = t2 ? null : J.get$loadPaths$x(t1);
- t4 = t2 ? null : J.get$quietDeps$x(t1);
- if (t4 == null)
- t4 = false;
- t5 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1));
- t6 = t2 ? null : J.get$verbose$x(t1);
- if (t6 == null)
- t6 = false;
- t7 = t2 ? null : J.get$charset$x(t1);
- if (t7 == null)
- t7 = true;
- t8 = t2 ? null : J.get$sourceMap$x(t1);
- if (t8 == null)
- t8 = false;
- t9 = $async$self.logger;
- if (t2)
- t10 = null;
- else {
- t10 = J.get$importers$x(t1);
- t10 = t10 == null ? null : J.map$1$1$ax(t10, new A.compileAsync__closure(), type$.AsyncImporter);
- }
- t11 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true);
- t12 = A._parseDeprecations(t9, t2 ? null : J.get$fatalDeprecations$x(t1), true);
- t13 = A._parseDeprecations(t9, t2 ? null : J.get$silenceDeprecations$x(t1), false);
- t14 = A._parseDeprecations(t9, t2 ? null : J.get$futureDeprecations$x(t1), false);
- $async$goto = 3;
- return A._asyncAwait(A.compileAsync0($async$self.path, t7, t12, t11, t14, A.AsyncImportCache$(t10, t3, t9, null), null, null, t9, null, t4, t13, t8, t5, null, true, t6), $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1);
- $async$returnValue = A._convertResult(result, t1 == null ? false : t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 201
- };
- A.compileAsync__closure.prototype = {
- call$1(importer) {
- return A._parseAsyncImporter(importer);
- },
- $signature: 200
- };
- A.compileStringAsync_closure.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult),
- $async$returnValue, $async$self = this, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, t17, result, t1, t2, t3, t4, t5, t6;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.options;
- t2 = t1 == null;
- t3 = A.parseSyntax(t2 ? null : J.get$syntax$x(t1));
- t4 = t2 ? null : A.NullableExtension_andThen0(J.get$url$x(t1), A.utils1__jsToDartUrl$closure());
- t5 = t2 ? null : J.get$loadPaths$x(t1);
- t6 = t2 ? null : J.get$quietDeps$x(t1);
- if (t6 == null)
- t6 = false;
- t7 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1));
- t8 = t2 ? null : J.get$verbose$x(t1);
- if (t8 == null)
- t8 = false;
- t9 = t2 ? null : J.get$charset$x(t1);
- if (t9 == null)
- t9 = true;
- t10 = t2 ? null : J.get$sourceMap$x(t1);
- if (t10 == null)
- t10 = false;
- t11 = $async$self.logger;
- if (t2)
- t12 = null;
- else {
- t12 = J.get$importers$x(t1);
- t12 = t12 == null ? null : J.map$1$1$ax(t12, new A.compileStringAsync__closure(), type$.AsyncImporter);
- }
- t13 = t2 ? null : A.NullableExtension_andThen0(J.get$importer$x(t1), new A.compileStringAsync__closure0());
- if (t13 == null)
- t13 = (t2 ? null : J.get$url$x(t1)) == null ? new A.NoOpImporter0() : null;
- t14 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true);
- t15 = A._parseDeprecations(t11, t2 ? null : J.get$fatalDeprecations$x(t1), true);
- t16 = A._parseDeprecations(t11, t2 ? null : J.get$silenceDeprecations$x(t1), false);
- t17 = A._parseDeprecations(t11, t2 ? null : J.get$futureDeprecations$x(t1), false);
- $async$goto = 3;
- return A._asyncAwait(A.compileStringAsync0($async$self.text, t9, t15, t14, t17, A.AsyncImportCache$(t12, t5, t11, null), t13, null, null, t11, null, t6, t16, t10, t7, t3, t4, true, t8), $async$call$0);
- case 3:
- // returning from await.
- result = $async$result;
- t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1);
- $async$returnValue = A._convertResult(result, t1 == null ? false : t1);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 201
- };
- A.compileStringAsync__closure.prototype = {
- call$1(importer) {
- return A._parseAsyncImporter(importer);
- },
- $signature: 200
- };
- A.compileStringAsync__closure0.prototype = {
- call$1(importer) {
- return A._parseAsyncImporter(importer);
- },
- $signature: 395
- };
- A._wrapAsyncSassExceptions_closure.prototype = {
- call$1(error) {
- var t1;
- if (error instanceof A.SassException0)
- t1 = A.throwNodeException(error, this.ascii, this.color, null);
- else
- t1 = A.jsThrow(error == null ? type$.Object._as(error) : error);
- return t1;
- },
- $signature: 396
- };
- A._parseFunctions_closure0.prototype = {
- call$2(signature, callback) {
- var callable,
- t1 = this.result;
- if (!this.asynch) {
- callable = A._Cell$();
- callable.__late_helper$_value = A.Callable_Callable$fromSignature(signature, new A._parseFunctions__closure2(callback, callable), true);
- t1.push(callable._readLocal$0());
- } else {
- callable = A._Cell$();
- callable.__late_helper$_value = A.AsyncCallable_AsyncCallable$fromSignature(signature, new A._parseFunctions__closure3(callback, callable), true);
- t1.push(callable._readLocal$0());
- }
- },
- $signature: 120
- };
- A._parseFunctions__closure2.prototype = {
- call$1($arguments) {
- var t1, t2,
- _s42_ = string$.Invali,
- result = A.wrapJSExceptions(new A._parseFunctions___closure6(this.callback, $arguments));
- if (result instanceof A.Value0)
- return A._simplifyValue(result);
- t1 = result != null && result instanceof self.Promise;
- t2 = this.callable;
- if (t1)
- throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '":\nPromises may only be returned for sass.compileAsync() and sass.compileStringAsync().');
- else
- throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value.");
- },
- $signature: 3
- };
- A._parseFunctions___closure6.prototype = {
- call$0() {
- return type$.Function._as(this.callback).call$1(A.toJSArray(this.$arguments));
- },
- $signature: 60
- };
- A._parseFunctions__closure3.prototype = {
- call$1($arguments) {
- return this.$call$body$_parseFunctions__closure0($arguments);
- },
- $call$body$_parseFunctions__closure0($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, result;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- result = A.wrapJSExceptions(new A._parseFunctions___closure5($async$self.callback, $arguments));
- $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.Object), $async$call$1);
- case 5:
- // returning from await.
- result = $async$result;
- case 4:
- // join
- if (result instanceof A.Value0) {
- $async$returnValue = A._simplifyValue(result);
- // goto return
- $async$goto = 1;
- break;
- }
- throw A.wrapException(string$.Invali + J.get$name$x($async$self.callable.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value.");
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 88
- };
- A._parseFunctions___closure5.prototype = {
- call$0() {
- return type$.Function._as(this.callback).call$1(A.toJSArray(this.$arguments));
- },
- $signature: 60
- };
- A._parseDeprecations_closure.prototype = {
- call$0() {
- return new A._SyncStarIterable(this.$call$body$_parseDeprecations_closure(), type$._SyncStarIterable_Deprecation);
- },
- $call$body$_parseDeprecations_closure() {
- var $async$self = this;
- return function() {
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4, item, t5, id, deprecation, version;
- return function $async$call$0($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = J.get$iterator$ax($async$self.deprecations), t2 = type$.Deprecation_2, t3 = $async$self.supportVersions, t4 = $async$self.logger;
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- item = t1.get$current(t1);
- t5 = typeof item == "string";
- id = t5 ? item : null;
- $async$goto = t5 ? 4 : 5;
- break;
- case 4:
- // then
- deprecation = A.Deprecation_fromId0(id);
- $async$goto = deprecation == null ? 6 : 8;
- break;
- case 6:
- // then
- t4.internalWarn$4$deprecation$span$trace('Invalid deprecation "' + A.S(id) + '".', null, null, null);
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = 9;
- return $async$iterator._async$_current = deprecation, 1;
- case 9:
- // after yield
- case 7:
- // join
- // goto for condition
- $async$goto = 2;
- break;
- case 5:
- // join
- t5 = t2._is(item);
- id = t5 ? J.get$id$x(item) : null;
- $async$goto = t5 ? 10 : 11;
- break;
- case 10:
- // then
- deprecation = A.Deprecation_fromId0(id);
- $async$goto = deprecation == null ? 12 : 14;
- break;
- case 12:
- // then
- t4.internalWarn$4$deprecation$span$trace('Invalid deprecation "' + A.S(id) + '".', null, null, null);
- // goto join
- $async$goto = 13;
- break;
- case 14:
- // else
- $async$goto = 15;
- return $async$iterator._async$_current = deprecation, 1;
- case 15:
- // after yield
- case 13:
- // join
- // goto for condition
- $async$goto = 2;
- break;
- case 11:
- // join
- if (item instanceof A.Version) {
- t5 = t3;
- version = item;
- } else {
- version = null;
- t5 = false;
- }
- $async$goto = t5 ? 16 : 17;
- break;
- case 16:
- // then
- $async$goto = 18;
- return $async$iterator._yieldStar$1(A.Deprecation_forVersion0(version));
- case 18:
- // after yield
- case 17:
- // join
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- $signature: 398
- };
- A.nodePackageImporterClass_closure.prototype = {
- call$0() {
- return type$.JSClass._as(A.allowInteropCaptureThisNamed("sass.NodePackageImporter", new A.nodePackageImporterClass__closure()));
- },
- $signature: 15
- };
- A.nodePackageImporterClass__closure.prototype = {
- call$2($self, entrypointDirectory) {
- var directory, t1, filename, t2, _null = null,
- _0_3 = A.entrypointFilename();
- $label0$0: {
- if (entrypointDirectory != null) {
- directory = entrypointDirectory == null ? A._asString(entrypointDirectory) : entrypointDirectory;
- t1 = directory;
- break $label0$0;
- }
- if (_0_3 != null) {
- filename = _0_3 == null ? A._asString(_0_3) : _0_3;
- t1 = $.$get$context().dirname$1(filename);
- break $label0$0;
- }
- t1 = A.throwExpression("The Node package importer cannot determine an entry point because `require.main.filename` is not defined. Please provide an `entryPointDirectory` to the `NodePackageImporter`.");
- }
- t2 = new A.NodePackageImporter0();
- if (A.isBrowser())
- A.throwExpression(string$.The_No);
- t2._node_package$__NodePackageImporter__entryPointDirectory_F = A.absolute(t1, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- return t2;
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 399
- };
- A._compileStylesheet_closure1.prototype = {
- call$1(url) {
- return url === "" ? A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text() : this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
- },
- $signature: 5
- };
- A.CompileOptions.prototype = {};
- A.CompileStringOptions.prototype = {};
- A.NodeCompileResult.prototype = {};
- A.CompileResult0.prototype = {};
- A.Compiler.prototype = {};
- A.AsyncCompiler.prototype = {
- addCompilation$1(compilation) {
- this.compilations.add$1(0, A.promiseToFuture0(compilation, type$.dynamic).catchError$1(new A.AsyncCompiler_addCompilation_closure()));
- }
- };
- A.AsyncCompiler_addCompilation_closure.prototype = {
- call$1(err) {
- },
- $signature: 61
- };
- A.compilerClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.Compiler", new A.compilerClass__closure()));
- A.LinkedHashMap_LinkedHashMap$_literal(["compile", new A.compilerClass__closure0(), "compileString", new A.compilerClass__closure1(), "dispose", new A.compilerClass__closure2()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
- A.JSClassExtension_injectSuperclass(t1._as(new A.Compiler().constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.compilerClass__closure.prototype = {
- call$1($self) {
- return A.LinkedHashSet_LinkedHashSet$_literal([A.jsThrow(new self.Error("Compiler can not be directly constructed. Please use `sass.initCompiler()` instead."))], type$.Never);
- },
- $signature: 199
- };
- A.compilerClass__closure0.prototype = {
- call$3($self, path, options) {
- if ($self._disposed)
- A.jsThrow(new self.Error("Compiler has already been disposed."));
- return A.compile0(path, options);
- },
- call$2($self, path) {
- return this.call$3($self, path, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 401
- };
- A.compilerClass__closure1.prototype = {
- call$3($self, source, options) {
- if ($self._disposed)
- A.jsThrow(new self.Error("Compiler has already been disposed."));
- return A.compileString0(source, options);
- },
- call$2($self, source) {
- return this.call$3($self, source, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 402
- };
- A.compilerClass__closure2.prototype = {
- call$1($self) {
- $self._disposed = true;
- },
- $signature: 403
- };
- A.asyncCompilerClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.AsyncCompiler", new A.asyncCompilerClass__closure()));
- A.LinkedHashMap_LinkedHashMap$_literal(["compileAsync", new A.asyncCompilerClass__closure0(), "compileStringAsync", new A.asyncCompilerClass__closure1(), "dispose", new A.asyncCompilerClass__closure2()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
- A.JSClassExtension_injectSuperclass(t1._as(new A.AsyncCompiler(new A.FutureGroup(new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_List_void), type$._AsyncCompleter_List_void), [], type$.FutureGroup_void)).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.asyncCompilerClass__closure.prototype = {
- call$1($self) {
- return A.LinkedHashSet_LinkedHashSet$_literal([A.jsThrow(new self.Error("AsyncCompiler can not be directly constructed. Please use `sass.initAsyncCompiler()` instead."))], type$.Never);
- },
- $signature: 199
- };
- A.asyncCompilerClass__closure0.prototype = {
- call$3($self, path, options) {
- var compilation;
- if ($self._disposed)
- A.jsThrow(new self.Error("Compiler has already been disposed."));
- compilation = A.compileAsync1(path, options);
- $self.addCompilation$1(compilation);
- return compilation;
- },
- call$2($self, path) {
- return this.call$3($self, path, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 404
- };
- A.asyncCompilerClass__closure1.prototype = {
- call$3($self, source, options) {
- var compilation;
- if ($self._disposed)
- A.jsThrow(new self.Error("Compiler has already been disposed."));
- compilation = A.compileStringAsync1(source, options);
- $self.addCompilation$1(compilation);
- return compilation;
- },
- call$2($self, source) {
- return this.call$3($self, source, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 405
- };
- A.asyncCompilerClass__closure2.prototype = {
- call$1($self) {
- $self._disposed = true;
- return A.futureToPromise0(new A.asyncCompilerClass___closure($self).call$0());
- },
- $signature: 406
- };
- A.asyncCompilerClass___closure.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
- $async$self = this, t1;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = $async$self.self.compilations;
- t1.close$0(0);
- $async$goto = 2;
- return A._asyncAwait(t1._future_group$_completer.future, $async$call$0);
- case 2:
- // returning from await.
- // implicit return
- return A._asyncReturn(null, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 2
- };
- A.initAsyncCompiler_closure.prototype = {
- call$0() {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.AsyncCompiler),
- $async$returnValue;
- var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- $async$returnValue = new A.AsyncCompiler(new A.FutureGroup(new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_List_void), type$._AsyncCompleter_List_void), [], type$.FutureGroup_void));
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$0, $async$completer);
- },
- $signature: 407
- };
- A.ComplexSassNumber0.prototype = {
- get$numeratorUnits(_) {
- return this._complex0$_numeratorUnits;
- },
- get$denominatorUnits(_) {
- return this._complex0$_denominatorUnits;
- },
- get$hasUnits() {
- return true;
- },
- get$hasComplexUnits() {
- return true;
- },
- hasUnit$1(unit) {
- return false;
- },
- compatibleWithUnit$1(unit) {
- return false;
- },
- hasPossiblyCompatibleUnits$1(other) {
- throw A.wrapException(A.UnimplementedError$(string$.Comple));
- },
- withValue$1(value) {
- return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, value, null);
- },
- withSlash$2(numerator, denominator) {
- return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, this._number1$_value, new A._Record_2(numerator, denominator));
- }
- };
- A.ComplexSelector0.prototype = {
- get$specificity() {
- var result, _this = this,
- value = _this._complex$__ComplexSelector_specificity_FI;
- if (value === $) {
- result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure0());
- _this._complex$__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
- _this._complex$__ComplexSelector_specificity_FI = result;
- value = result;
- }
- return value;
- },
- get$singleCompound() {
- var _0_0, _0_4, t1, selector, _null = null;
- if (this.leadingCombinators.length !== 0)
- return _null;
- _0_0 = this.components;
- $label0$0: {
- if (_0_0.length === 1) {
- _0_4 = _0_0[0];
- t1 = _0_4;
- selector = t1.selector;
- t1 = _0_4.combinators.length <= 0;
- } else {
- selector = _null;
- t1 = false;
- }
- if (t1) {
- t1 = selector;
- break $label0$0;
- }
- t1 = _null;
- break $label0$0;
- }
- return t1;
- },
- accept$1$1(visitor) {
- return visitor.visitComplexSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- isSuperselector$1(other) {
- return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector0(this.components, other.components);
- },
- withAdditionalCombinators$1(combinators) {
- var _0_0, _0_1, t1, initial, last, _this = this;
- if (combinators.length === 0)
- return _this;
- _0_0 = _this.components;
- $label0$0: {
- _0_1 = _0_0.length;
- if (_0_1 >= 1) {
- t1 = _0_1 - 1;
- initial = B.JSArray_methods.sublist$2(_0_0, 0, t1);
- last = _0_0[t1];
- t1 = A.List_List$of(initial, true, type$.ComplexSelectorComponent_2);
- t1.push(last.withAdditionalCombinators$1(combinators));
- t1 = A.ComplexSelector$0(_this.leadingCombinators, t1, _this.span, _this.lineBreak);
- break $label0$0;
- }
- if (_0_1 <= 0) {
- t1 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator_2);
- B.JSArray_methods.addAll$1(t1, combinators);
- t1 = A.ComplexSelector$0(t1, B.List_empty15, _this.span, _this.lineBreak);
- break $label0$0;
- }
- throw A.wrapException(A.ReachabilityError$(string$.None_o));
- }
- return t1;
- },
- concatenate$3$forceLineBreak(child, span, forceLineBreak) {
- var t2, _0_1, initial, last, _this = this,
- t1 = child.leadingCombinators,
- _0_0 = _this.components;
- if (t1.length === 0) {
- t1 = A.List_List$of(_0_0, true, type$.ComplexSelectorComponent_2);
- B.JSArray_methods.addAll$1(t1, child.components);
- t2 = _this.lineBreak || child.lineBreak || forceLineBreak;
- return A.ComplexSelector$0(_this.leadingCombinators, t1, span, t2);
- } else {
- _0_1 = _0_0.length;
- if (_0_1 >= 1) {
- t2 = _0_1 - 1;
- initial = B.JSArray_methods.sublist$2(_0_0, 0, t2);
- last = _0_0[t2];
- t2 = A.List_List$of(initial, true, type$.ComplexSelectorComponent_2);
- t2.push(last.withAdditionalCombinators$1(t1));
- B.JSArray_methods.addAll$1(t2, child.components);
- t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
- return A.ComplexSelector$0(_this.leadingCombinators, t2, span, t1);
- } else {
- t2 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator_2);
- B.JSArray_methods.addAll$1(t2, t1);
- t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
- return A.ComplexSelector$0(t2, child.components, span, t1);
- }
- }
- },
- concatenate$2(child, span) {
- return this.concatenate$3$forceLineBreak(child, span, false);
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ComplexSelector0 && B.C_ListEquality.equals$2(0, this.leadingCombinators, other.leadingCombinators) && B.C_ListEquality.equals$2(0, this.components, other.components);
- }
- };
- A.ComplexSelector_specificity_closure0.prototype = {
- call$2(sum, component) {
- return sum + component.selector.get$specificity();
- },
- $signature: 408
- };
- A.ComplexSelectorComponent0.prototype = {
- withAdditionalCombinators$1(combinators) {
- var t1, t2, _this = this;
- if (combinators.length === 0)
- t1 = _this;
- else {
- t1 = type$.CssValue_Combinator_2;
- t2 = A.List_List$of(_this.combinators, true, t1);
- B.JSArray_methods.addAll$1(t2, combinators);
- t1 = new A.ComplexSelectorComponent0(_this.selector, A.List_List$unmodifiable(t2, t1), _this.span);
- }
- return t1;
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators);
- },
- $eq(_, other) {
- var t1;
- if (other == null)
- return false;
- if (other instanceof A.ComplexSelectorComponent0) {
- t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components);
- t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators);
- } else
- t1 = false;
- return t1;
- },
- toString$0(_) {
- var t1 = this.combinators;
- return A.serializeSelector0(this.selector, true) + new A.MappedListIterable(t1, new A.ComplexSelectorComponent_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, "");
- }
- };
- A.ComplexSelectorComponent_toString_closure0.prototype = {
- call$1(combinator) {
- return " " + combinator.toString$0(0);
- },
- $signature: 409
- };
- A.CompoundSelector0.prototype = {
- get$specificity() {
- var result, _this = this,
- value = _this._compound$__CompoundSelector_specificity_FI;
- if (value === $) {
- result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure0());
- _this._compound$__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
- _this._compound$__CompoundSelector_specificity_FI = result;
- value = result;
- }
- return value;
- },
- get$hasComplicatedSuperselectorSemantics() {
- var result, _this = this,
- value = _this._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI;
- if (value === $) {
- result = B.JSArray_methods.any$1(_this.components, new A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure0());
- _this._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI !== $ && A.throwUnnamedLateFieldADI();
- _this._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = result;
- value = result;
- }
- return value;
- },
- accept$1$1(visitor) {
- return visitor.visitCompoundSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.components);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.CompoundSelector0 && B.C_ListEquality.equals$2(0, this.components, other.components);
- }
- };
- A.CompoundSelector_specificity_closure0.prototype = {
- call$2(sum, component) {
- return sum + component.get$specificity();
- },
- $signature: 410
- };
- A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure0.prototype = {
- call$1(component) {
- return component.get$hasComplicatedSuperselectorSemantics();
- },
- $signature: 14
- };
- A.Configuration0.prototype = {
- throughForward$1($forward) {
- var _0_0, _1_0, _2_0, t1, hiddenVariables,
- newValues = this._configuration0$_values;
- if (newValues.get$isEmpty(newValues))
- return B.Configuration_Map_empty_null0;
- _0_0 = $forward.prefix;
- if (_0_0 != null)
- newValues = new A.UnprefixedMapView0(newValues, _0_0, type$.UnprefixedMapView_ConfiguredValue_2);
- _1_0 = $forward.shownVariables;
- if (_1_0 != null)
- newValues = new A.LimitedMapView0(newValues, _1_0._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue_2);
- else {
- _2_0 = $forward.hiddenVariables;
- if (_2_0 != null) {
- t1 = _2_0._base.get$isNotEmpty(0);
- hiddenVariables = _2_0;
- } else {
- hiddenVariables = null;
- t1 = false;
- }
- if (t1)
- newValues = A.LimitedMapView$blocklist0(newValues, hiddenVariables, type$.String, type$.ConfiguredValue_2);
- }
- return this._configuration0$_withValues$1(newValues);
- },
- _configuration0$_withValues$1(values) {
- var t1 = this._configuration0$__originalConfiguration;
- return new A.Configuration0(values, t1 == null ? this : t1);
- },
- toString$0(_) {
- var t2, t3,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(this._configuration0$_values, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
- t3 = t2.get$current(t2);
- t1.push("$" + t3._0 + ": " + t3._1.toString$0(0));
- }
- return "(" + B.JSArray_methods.join$1(t1, ",") + ")";
- }
- };
- A.ExplicitConfiguration0.prototype = {
- _configuration0$_withValues$1(values) {
- var t1 = this._configuration0$__originalConfiguration;
- if (t1 == null)
- t1 = this;
- return new A.ExplicitConfiguration0(this.nodeWithSpan, values, t1);
- }
- };
- A.ConfiguredValue0.prototype = {
- toString$0(_) {
- return A.serializeValue0(this.value, true, true);
- }
- };
- A.ConfiguredVariable0.prototype = {
- toString$0(_) {
- var t1 = this.expression.toString$0(0),
- t2 = this.isGuarded ? " !default" : "";
- return "$" + this.name + ": " + t1 + t2;
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ContentBlock0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitContentBlock$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2,
- t1 = this.$arguments;
- t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
- t2 = this.children;
- return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
- }
- };
- A.ContentRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitContentRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.$arguments;
- return t1.get$isEmpty(0) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._disallowedFunctionNames_closure0.prototype = {
- call$1($function) {
- return $function.name;
- },
- $signature: 411
- };
- A.CssParser0.prototype = {
- get$plainCss() {
- return true;
- },
- silentComment$0() {
- var t1, t2, _this = this;
- if (_this._stylesheet0$_inExpression)
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- _this.super$Parser$silentComment0();
- _this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- atRule$2$root(child, root) {
- var $name, _0_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(64);
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- _0_0 = $name.get$asPlain();
- $label0$0: {
- if ("at-root" === _0_0 || "content" === _0_0 || "debug" === _0_0 || "each" === _0_0 || "error" === _0_0 || "extend" === _0_0 || "for" === _0_0 || "function" === _0_0 || "if" === _0_0 || "include" === _0_0 || "mixin" === _0_0 || "return" === _0_0 || "warn" === _0_0 || "while" === _0_0)
- _this._css$_forbiddenAtRule$1(start);
- if ("import" === _0_0) {
- t1 = _this._css$_cssImportRule$1(start);
- break $label0$0;
- }
- if ("media" === _0_0) {
- t1 = _this.mediaRule$1(start);
- break $label0$0;
- }
- if ("-moz-document" === _0_0) {
- t1 = _this.mozDocumentRule$2(start, $name);
- break $label0$0;
- }
- if ("supports" === _0_0) {
- t1 = _this.supportsRule$1(start);
- break $label0$0;
- }
- t1 = _this.unknownAtRule$2(start, $name);
- break $label0$0;
- }
- return t1;
- },
- _css$_forbiddenAtRule$1(start) {
- this.almostAnyValue$0();
- this.error$2(0, "This at-rule isn't allowed in plain CSS.", this.scanner.spanFrom$1(start));
- },
- _css$_cssImportRule$1(start) {
- var t2, urlSpan, modifiers, _this = this,
- t1 = _this.scanner,
- urlStart = new A._SpanScannerState(t1, t1._string_scanner$_position),
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (117 === _0_0 || 85 === _0_0) {
- t2 = _this.dynamicUrl$0();
- break $label0$0;
- }
- t2 = new A.StringExpression0(_this.interpolatedString$0().asInterpolation$1$static(true), false);
- break $label0$0;
- }
- urlSpan = t1.spanFrom$1(urlStart);
- _this.whitespace$0();
- modifiers = _this.tryImportModifiers$0();
- _this.expectStatementSeparator$1("@import rule");
- t2 = A._setArrayType([new A.StaticImport0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(urlStart))], type$.JSArray_Import_2);
- t1 = t1.spanFrom$1(start);
- return new A.ImportRule0(A.List_List$unmodifiable(t2, type$.Import_2), t1);
- },
- parentheses$0() {
- var expression,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- this.whitespace$0();
- expression = this.expressionUntilComma$0();
- t1.expectChar$1(41);
- return new A.ParenthesizedExpression0(expression, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- identifierLike$0() {
- var t2, allowEmptySecondArg, $arguments, t3, t4, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- lower = plain.toLowerCase(),
- _0_0 = _this.trySpecialFunction$2(lower, start);
- if (_0_0 != null)
- return _0_0;
- t2 = t1._string_scanner$_position;
- if (t1.scanChar$1(46))
- return _this.namespacedExpression$2(plain, start);
- if (!t1.scanChar$1(40))
- return new A.StringExpression0(identifier, false);
- allowEmptySecondArg = lower === "var";
- $arguments = A._setArrayType([], type$.JSArray_Expression_2);
- if (!t1.scanChar$1(41)) {
- do {
- _this.whitespace$0();
- if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) {
- t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t4 = t3.offset;
- t4 = A._FileSpan$(t3.file, t4, t4);
- $arguments.push(new A.StringExpression0(A.Interpolation$0(A._setArrayType([""], type$.JSArray_Object), t4), false));
- break;
- }
- $arguments.push(_this.expressionUntilComma$1$singleEquals(true));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- t1.expectChar$1(41);
- }
- if ($.$get$_disallowedFunctionNames0().contains$1(0, plain))
- _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
- t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- t3 = type$.Expression_2;
- t4 = A.List_List$unmodifiable($arguments, t3);
- t3 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3);
- t1 = t1.spanFrom$1(start);
- return new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, new A.ArgumentInvocation0(t4, t3, null, null, t2), t1);
- },
- namespacedExpression$2(namespace, start) {
- var expression = this.super$StylesheetParser$namespacedExpression0(namespace, start);
- this.error$2(0, string$.Modulen, expression.get$span(expression));
- }
- };
- A.DebugRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitDebugRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@debug " + this.expression.toString$0(0) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssDeclaration0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssDeclaration$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.Declaration0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitDeclaration$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t3, _0_0,
- buffer = new A.StringBuffer(""),
- t1 = this.name,
- t2 = "" + t1.toString$0(0);
- buffer._contents = t2;
- t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58);
- t3 = this.value;
- if (t3 != null) {
- t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2;
- buffer._contents = t1 + t3.toString$0(0);
- }
- _0_0 = this.children;
- if (_0_0 != null)
- return buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(_0_0, " ") + "}";
- else
- return buffer.toString$0(0) + ";";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsDeclaration0.prototype = {
- get$isCustomProperty() {
- var t1,
- _0_0 = this.name;
- $label0$0: {
- if (_0_0 instanceof A.StringExpression0 && !_0_0.hasQuotes) {
- t1 = B.JSString_methods.startsWith$1(_0_0.text.get$initialPlain(), "--");
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- toString$0(_) {
- return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")";
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Deprecation0.prototype = {
- _enumToString$0() {
- return "Deprecation." + this._name;
- },
- get$deprecatedIn(_) {
- return A.NullableExtension_andThen0(this._deprecation$_deprecatedIn, A.version_Version___parse_tearOff$closure());
- },
- get$obsoleteIn(_) {
- return null;
- },
- toString$0(_) {
- return this.id;
- }
- };
- A.Deprecation_fromId_closure0.prototype = {
- call$1(deprecation) {
- return deprecation.id === this.id;
- },
- $signature: 412
- };
- A.DeprecationProcessingLogger0.prototype = {
- DeprecationProcessingLogger$5$fatalDeprecations$futureDeprecations$limitRepetition$silenceDeprecations0(_inner, fatalDeprecations, futureDeprecations, limitRepetition, silenceDeprecations) {
- var t1, t2, t3, t4, t5, t6, _1_7, _this = this, _null = null;
- for (t1 = _this.fatalDeprecations, t1 = A._LinkedHashSetIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1), t2 = _this.silenceDeprecations, t3 = t1.$ti._precomputed1, t4 = _this.futureDeprecations; t1.moveNext$0();) {
- t5 = t1._collection$_current;
- if (t5 == null)
- t5 = t3._as(t5);
- if (t5.isFuture && !t4.contains$1(0, t5)) {
- t5 = t5.toString$0(0);
- _this.internalWarn$4$deprecation$span$trace("Future " + t5 + string$.x20deprex20m, _null, _null, _null);
- continue;
- }
- t6 = t2.contains$1(0, t5);
- if (t6) {
- t5 = t5.toString$0(0);
- _this.internalWarn$4$deprecation$span$trace("Ignoring setting to silence " + t5 + string$.x20deprex2c, _null, _null, _null);
- continue;
- }
- }
- for (t1 = A._LinkedHashSetIterator$(t2, t2._modifications, A._instanceType(t2)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- if (B.Deprecation_oty === t3) {
- _this.internalWarn$4$deprecation$span$trace(string$.User_a, _null, _null, _null);
- continue;
- }
- _1_7 = t3.isFuture;
- if (_1_7 && t4.contains$1(0, t3)) {
- t3 = t3.toString$0(0);
- _this.internalWarn$4$deprecation$span$trace("Conflicting options for future " + t3 + " deprecation cancel each other out.", _null, _null, _null);
- continue;
- }
- if (_1_7) {
- t3 = t3.toString$0(0);
- _this.internalWarn$4$deprecation$span$trace("Future " + t3 + string$.x20deprex20i, _null, _null, _null);
- continue;
- }
- }
- for (t1 = A._LinkedHashSetIterator$(t4, t4._modifications, A._instanceType(t4)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- if (!t3.isFuture) {
- t3 = t3.toString$0(0);
- _this.internalWarn$4$deprecation$span$trace(t3 + string$.x20is_noaf, _null, _null, _null);
- }
- }
- },
- internalWarn$4$deprecation$span$trace(message, deprecation, span, trace) {
- if (deprecation != null)
- this._deprecation_processing$_handleDeprecation$4$span$trace(deprecation, message, span, trace);
- else
- this._deprecation_processing$_inner.warn$3$span$trace(0, message, span, trace);
- },
- _deprecation_processing$_handleDeprecation$4$span$trace(deprecation, message, span, trace) {
- var _0_3_isSet, span0, t1, _0_3, t2, count, _1_0, _this = this, _null = null;
- if (deprecation.isFuture && !_this.futureDeprecations.contains$1(0, deprecation))
- return;
- if (_this.fatalDeprecations.contains$1(0, deprecation)) {
- message += string$.x0a_This + deprecation.toString$0(0) + string$.x20deprex20t;
- $label0$0: {
- _0_3_isSet = span != null;
- if (_0_3_isSet) {
- span0 = span == null ? type$.FileSpan._as(span) : span;
- t1 = trace != null;
- _0_3 = trace;
- } else {
- span0 = _null;
- _0_3 = span0;
- t1 = false;
- }
- if (t1) {
- if (_0_3_isSet)
- trace = _0_3;
- t1 = A.SassRuntimeException$0(message, span0, trace == null ? type$.Trace._as(trace) : trace, _null);
- break $label0$0;
- }
- if (span != null)
- t1 = (_0_3_isSet ? _0_3 : trace) == null;
- else {
- span = _null;
- t1 = false;
- }
- if (t1) {
- t1 = A.SassException$0(message, span, _null);
- break $label0$0;
- }
- t1 = A.SassScriptException$0(message, _null);
- break $label0$0;
- }
- throw A.wrapException(t1);
- }
- if (_this.silenceDeprecations.contains$1(0, deprecation))
- return;
- if (_this.limitRepetition) {
- t1 = _this._deprecation_processing$_warningCounts;
- t2 = t1.$index(0, deprecation);
- count = (t2 == null ? 0 : t2) + 1;
- t1.$indexSet(0, deprecation, count);
- if (count > 5)
- return;
- }
- _1_0 = _this._deprecation_processing$_inner;
- if (_1_0 instanceof A.LoggerWithDeprecationType)
- _1_0.internalWarn$4$deprecation$span$trace(message, deprecation, span, trace);
- else
- _1_0.warn$4$deprecation$span$trace(0, message, true, span, trace);
- },
- debug$2(_, message, span) {
- return this._deprecation_processing$_inner.debug$2(0, message, span);
- },
- summarize$1$js(js) {
- var t1 = this._deprecation_processing$_warningCounts.get$values(0),
- t2 = A._instanceType(t1),
- total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.DeprecationProcessingLogger_summarize_closure1(), t2._eval$1("WhereIterable<Iterable.E>")), new A.DeprecationProcessingLogger_summarize_closure2(), t2._eval$1("MappedIterable<Iterable.E,int>")));
- if (total > 0) {
- t1 = js ? "" : string$.x0aRun_i;
- this._deprecation_processing$_inner.warn$1(0, "" + total + string$.x20repet + t1);
- }
- }
- };
- A.DeprecationProcessingLogger_summarize_closure1.prototype = {
- call$1(count) {
- return count > 5;
- },
- $signature: 45
- };
- A.DeprecationProcessingLogger_summarize_closure2.prototype = {
- call$1(count) {
- return count - 5;
- },
- $signature: 150
- };
- A.Deprecation1.prototype = {};
- A.deprecations_closure.prototype = {
- call$0() {
- var t1, _0_8_isSet, _0_8,
- _0_0 = this.deprecation;
- $label0$0: {
- if (_0_0.isFuture) {
- t1 = "future";
- break $label0$0;
- }
- _0_8_isSet = A.NullableExtension_andThen0(_0_0._deprecation$_deprecatedIn, A.version_Version___parse_tearOff$closure()) == null;
- if (_0_8_isSet) {
- _0_8 = _0_0.get$obsoleteIn(0) == null;
- t1 = _0_8;
- } else {
- _0_8 = null;
- t1 = false;
- }
- if (t1) {
- t1 = "user";
- break $label0$0;
- }
- if (_0_8_isSet ? _0_8 : _0_0.get$obsoleteIn(0) == null) {
- t1 = "active";
- break $label0$0;
- }
- t1 = "obsolete";
- break $label0$0;
- }
- return t1;
- },
- $signature: 26
- };
- A.versionClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.Version", new A.versionClass__closure()));
- jsClass.parse = A.allowInteropNamed("parse", new A.versionClass__closure0());
- A.JSClassExtension_injectSuperclass(t1._as(A.Version_Version(0, 0, 0, null).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.versionClass__closure.prototype = {
- call$4($self, major, minor, patch) {
- return A.Version_Version(major, minor, patch, null);
- },
- "call*": "call$4",
- $requiredArgCount: 4,
- $signature: 413
- };
- A.versionClass__closure0.prototype = {
- call$1(version) {
- var v = A.Version_Version$parse(version);
- if (v.preRelease.length !== 0 || v.build.length !== 0)
- throw A.wrapException(A.FormatException$("Build identifiers and prerelease versions not supported.", null, null));
- return v;
- },
- $signature: 198
- };
- A.DynamicImport0.prototype = {
- toString$0(_) {
- return A.StringExpression_quoteText0(this.urlString);
- },
- $isImport0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.EachRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitEachRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.variables,
- t2 = this.children;
- return "@each " + new A.MappedListIterable(t1, new A.EachRule_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + this.list.toString$0(0) + " {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.EachRule_toString_closure0.prototype = {
- call$1(variable) {
- return "$" + variable;
- },
- $signature: 5
- };
- A.EmptyExtensionStore0.prototype = {
- get$_extension_store$_extensions() {
- return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__extensions, "get$_empty_extension_store0$_extensions", 1, [], [], 0)));
- },
- get$_extension_store$_sourceSpecificity() {
- return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__sourceSpecificity, "get$_empty_extension_store0$_sourceSpecificity", 1, [], [], 0)));
- },
- get$isEmpty(_) {
- return true;
- },
- get$simpleSelectors() {
- return B.C_EmptyUnmodifiableSet0;
- },
- extensionsWhereTarget$1(callback) {
- return B.List_empty17;
- },
- addSelector$2(selector, mediaContext) {
- throw A.wrapException(A.UnsupportedError$("addSelector() can't be called for a const ExtensionStore."));
- },
- addExtension$4(extender, target, extend, mediaContext) {
- throw A.wrapException(A.UnsupportedError$("addExtension() can't be called for a const ExtensionStore."));
- },
- addExtensions$1(extenders) {
- throw A.wrapException(A.UnsupportedError$(string$.addExt));
- },
- clone$0() {
- return B.Record2_EmptyExtensionStore_Map_empty0;
- },
- $isExtensionStore0: 1
- };
- A.Environment0.prototype = {
- closure$0() {
- var t4, t5, t6, _this = this,
- t1 = _this._environment0$_forwardedModules,
- t2 = _this._environment0$_nestedForwardedModules,
- t3 = _this._environment0$_variables;
- t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
- t4 = _this._environment0$_variableNodes;
- t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
- t5 = _this._environment0$_functions;
- t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
- t6 = _this._environment0$_mixins;
- t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
- return A.Environment$_0(_this._environment0$_modules, _this._environment0$_namespaceNodes, _this._environment0$_globalModules, _this._environment0$_importedModules, t1, t2, _this._environment0$_allModules, t3, t4, t5, t6, _this._environment0$_content);
- },
- forwardModule$2(module, rule) {
- var view, t1, t2, _this = this,
- forwardedModules = _this._environment0$_forwardedModules;
- if (forwardedModules == null)
- forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
- view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.Callable_2);
- for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
- t2 = t1.__js_helper$_current;
- _this._environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
- _this._environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
- _this._environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
- }
- _this._environment0$_allModules.push(module);
- forwardedModules.$indexSet(0, view, rule);
- },
- _environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
- var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
- if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
- larger = oldMembers;
- smaller = newMembers;
- } else {
- larger = newMembers;
- smaller = oldMembers;
- }
- for (t1 = type$.String, t2 = A.MapExtensions_get_pairs0(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- $name = t4._0;
- small = t4._1;
- large = larger.$index(0, $name);
- if (large == null)
- continue;
- if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
- continue;
- if (t3)
- $name = "$" + $name;
- t2 = this._environment0$_forwardedModules;
- if (t2 == null)
- span = null;
- else {
- t2 = t2.$index(0, oldModule);
- span = t2 == null ? null : J.get$span$z(t2);
- }
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
- if (span != null)
- t2.$indexSet(0, span, "original @forward");
- throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
- }
- },
- importForwards$1(module) {
- var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, _length, _list, _this = this,
- forwarded = module._environment0$_environment._environment0$_forwardedModules;
- if (forwarded == null)
- return;
- forwardedModules = _this._environment0$_forwardedModules;
- if (forwardedModules != null) {
- t1 = type$.Module_Callable_2;
- t2 = type$.AstNode_2;
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t1 = A.MapExtensions_get_pairs0(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._environment0$_globalModules; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- module = t4._0;
- node = t4._1;
- if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
- t3.$indexSet(0, module, node);
- }
- forwarded = t3;
- } else
- forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
- for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
- t2.add$1(0, t4.get$current(t4));
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
- t5 = t4.__js_helper$_current;
- for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t3.add$1(0, t5.get$current(t5));
- }
- t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
- for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
- t1.add$1(0, t5.get$current(t5));
- t4 = _this._environment0$_variables;
- t5 = t4.length;
- if (t5 === 1) {
- for (t5 = _this._environment0$_importedModules, t6 = type$.Module_Callable_2, t7 = type$.AstNode_2, t8 = A.MapExtensions_get_pairs0(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.Callable_2, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
- t11 = t8[_i];
- module = t11._0;
- node = t11._1;
- shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
- if (shadowed != null) {
- t5.remove$1(0, module);
- t11 = shadowed.variables;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.functions;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed.mixins;
- if (t11.get$isEmpty(t11)) {
- t11 = shadowed._shadowed_view0$_inner;
- t11 = t11.get$css(t11);
- t11 = J.get$isEmpty$asx(t11.get$children(t11));
- } else
- t11 = false;
- } else
- t11 = false;
- } else
- t11 = false;
- if (!t11)
- t5.$indexSet(0, shadowed, node);
- }
- }
- for (t6 = A.MapExtensions_get_pairs0(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
- t8 = t6[_i];
- module = t8._0;
- node = t8._1;
- shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
- if (shadowed != null) {
- forwardedModules.remove$1(0, module);
- t8 = shadowed.variables;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.functions;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed.mixins;
- if (t8.get$isEmpty(t8)) {
- t8 = shadowed._shadowed_view0$_inner;
- t8 = t8.get$css(t8);
- t8 = J.get$isEmpty$asx(t8.get$children(t8));
- } else
- t8 = false;
- } else
- t8 = false;
- } else
- t8 = false;
- if (!t8)
- forwardedModules.$indexSet(0, shadowed, node);
- }
- }
- t5.addAll$1(0, forwarded);
- forwardedModules.addAll$1(0, forwarded);
- } else {
- t6 = _this._environment0$_nestedForwardedModules;
- if (t6 == null) {
- _length = t5 - 1;
- _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable_2);
- for (t5 = type$.JSArray_Module_Callable_2, _i = 0; _i < _length; ++_i)
- _list[_i] = A._setArrayType([], t5);
- _this._environment0$_nestedForwardedModules = _list;
- t5 = _list;
- } else
- t5 = t6;
- B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
- }
- for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._environment0$_variableIndices, t6 = _this._environment0$_variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t8 = t2._collection$_current;
- if (t8 == null)
- t8 = t7._as(t8);
- t5.remove$1(0, t8);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
- J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
- }
- for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._environment0$_functionIndices, t4 = _this._environment0$_functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
- t6 = t2._collection$_current;
- if (t6 == null)
- t6 = t5._as(t6);
- t3.remove$1(0, t6);
- J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
- }
- for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t5 = t1._collection$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- t2.remove$1(0, t5);
- J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
- }
- },
- getVariable$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name);
- if (_this._environment0$_lastVariableName === $name) {
- t1 = _this._environment0$_lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._environment0$_variables[t1], $name);
- return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
- }
- t1 = _this._environment0$_variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._environment0$_variables[_0_0], $name);
- return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._environment0$_variableIndex$1($name);
- if (_1_0 != null) {
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._environment0$_variables[_1_0], $name);
- return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
- } else
- return _this._environment0$_getVariableFromGlobalModule$1($name);
- }
- },
- getVariable$1($name) {
- return this.getVariable$2$namespace($name, null);
- },
- _environment0$_getVariableFromGlobalModule$1($name) {
- return this._environment0$_fromOneModule$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure0($name));
- },
- getVariableNode$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
- if (_this._environment0$_lastVariableName === $name) {
- t1 = _this._environment0$_lastVariableIndex;
- t1.toString;
- t1 = J.$index$asx(_this._environment0$_variableNodes[t1], $name);
- return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- }
- t1 = _this._environment0$_variableIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = _0_0;
- t1 = J.$index$asx(_this._environment0$_variableNodes[_0_0], $name);
- return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._environment0$_variableIndex$1($name);
- if (_1_0 != null) {
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = _1_0;
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._environment0$_variableNodes[_1_0], $name);
- return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
- } else
- return _this._environment0$_getVariableNodeFromGlobalModule$1($name);
- }
- },
- _environment0$_getVariableNodeFromGlobalModule$1($name) {
- var t1, t2, _0_0;
- for (t1 = this._environment0$_importedModules, t2 = this._environment0$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
- t1 = t2._currentIterator;
- _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- globalVariableExists$2$namespace($name, namespace) {
- if (namespace != null)
- return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
- if (B.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name))
- return true;
- return this._environment0$_getVariableFromGlobalModule$1($name) != null;
- },
- globalVariableExists$1($name) {
- return this.globalVariableExists$2$namespace($name, null);
- },
- _environment0$_variableIndex$1($name) {
- var t1, i;
- for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
- var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
- if (namespace != null) {
- _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
- return;
- }
- if (global || _this._environment0$_variables.length === 1) {
- _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure2(_this, $name));
- t1 = _this._environment0$_variables;
- if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
- moduleWithName = _this._environment0$_fromOneModule$3($name, "variable", new A.Environment_setVariable_closure3($name));
- if (moduleWithName != null) {
- moduleWithName.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(_this._environment0$_variableNodes), $name, nodeWithSpan);
- return;
- }
- nestedForwardedModules = _this._environment0$_nestedForwardedModules;
- if (nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null)
- for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- if (t5 == null)
- t5 = t4._as(t5);
- if (t5.get$variables().containsKey$1($name)) {
- t5.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- }
- }
- if (_this._environment0$_lastVariableName === $name) {
- t1 = _this._environment0$_lastVariableIndex;
- t1.toString;
- index = t1;
- } else
- index = _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure4(_this, $name));
- if (!_this._environment0$_inSemiGlobalScope && index === 0) {
- index = _this._environment0$_variables.length - 1;
- _this._environment0$_variableIndices.$indexSet(0, $name, index);
- }
- _this._environment0$_lastVariableName = $name;
- _this._environment0$_lastVariableIndex = index;
- J.$indexSet$ax(_this._environment0$_variables[index], $name, value);
- J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan);
- },
- setVariable$4$global($name, value, nodeWithSpan, global) {
- return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
- },
- setLocalVariable$3($name, value, nodeWithSpan) {
- var index, _this = this,
- t1 = _this._environment0$_variables,
- t2 = t1.length;
- _this._environment0$_lastVariableName = $name;
- index = _this._environment0$_lastVariableIndex = t2 - 1;
- _this._environment0$_variableIndices.$indexSet(0, $name, index);
- J.$indexSet$ax(t1[index], $name, value);
- J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan);
- },
- getFunction$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null) {
- t1 = _this._environment0$_getModule$1(namespace);
- return t1.get$functions(t1).$index(0, $name);
- }
- t1 = _this._environment0$_functionIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._environment0$_functions[_0_0], $name);
- return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._environment0$_functionIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._environment0$_functions[_1_0], $name);
- return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
- } else
- return _this._environment0$_getFunctionFromGlobalModule$1($name);
- }
- },
- getFunction$1($name) {
- return this.getFunction$2$namespace($name, null);
- },
- _environment0$_getFunctionFromGlobalModule$1($name) {
- return this._environment0$_fromOneModule$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure0($name));
- },
- _environment0$_functionIndex$1($name) {
- var t1, i;
- for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- getMixin$2$namespace($name, namespace) {
- var t1, _0_0, _1_0, _this = this;
- if (namespace != null)
- return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
- t1 = _this._environment0$_mixinIndices;
- _0_0 = t1.$index(0, $name);
- if (_0_0 != null) {
- t1 = J.$index$asx(_this._environment0$_mixins[_0_0], $name);
- return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
- } else {
- _1_0 = _this._environment0$_mixinIndex$1($name);
- if (_1_0 != null) {
- t1.$indexSet(0, $name, _1_0);
- t1 = J.$index$asx(_this._environment0$_mixins[_1_0], $name);
- return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
- } else
- return _this._environment0$_getMixinFromGlobalModule$1($name);
- }
- },
- _environment0$_getMixinFromGlobalModule$1($name) {
- return this._environment0$_fromOneModule$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure0($name));
- },
- _environment0$_mixinIndex$1($name) {
- var t1, i;
- for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i)
- if (t1[i].containsKey$1($name))
- return i;
- return null;
- },
- withContent$2($content, callback) {
- var oldContent = this._environment0$_content;
- this._environment0$_content = $content;
- callback.call$0();
- this._environment0$_content = oldContent;
- },
- asMixin$1(callback) {
- var oldInMixin = this._environment0$_inMixin;
- this._environment0$_inMixin = true;
- callback.call$0();
- this._environment0$_inMixin = oldInMixin;
- },
- scope$1$3$semiGlobal$when(callback, semiGlobal, when) {
- var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this;
- semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope;
- wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope;
- _this._environment0$_inSemiGlobalScope = semiGlobal;
- if (!when)
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
- }
- t1 = _this._environment0$_variables;
- t2 = type$.String;
- B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
- t3 = _this._environment0$_variableNodes;
- B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
- t4 = _this._environment0$_functions;
- t5 = type$.Callable_2;
- B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t6 = _this._environment0$_mixins;
- B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
- t5 = _this._environment0$_nestedForwardedModules;
- if (t5 != null)
- t5.push(A._setArrayType([], type$.JSArray_Module_Callable_2));
- try {
- t2 = callback.call$0();
- return t2;
- } finally {
- _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
- _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null;
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) {
- $name = t1.get$current(t1);
- t2.remove$1(0, $name);
- }
- B.JSArray_methods.removeLast$0(t3);
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) {
- name0 = t1.get$current(t1);
- t2.remove$1(0, name0);
- }
- for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) {
- name1 = t1.get$current(t1);
- t2.remove$1(0, name1);
- }
- t1 = _this._environment0$_nestedForwardedModules;
- if (t1 != null)
- t1.pop();
- }
- },
- scope$1$1(callback) {
- return this.scope$1$3$semiGlobal$when(callback, false, true);
- },
- scope$1$2$when(callback, when) {
- return this.scope$1$3$semiGlobal$when(callback, false, when);
- },
- scope$1$2$semiGlobal(callback, semiGlobal) {
- return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true);
- },
- toImplicitConfiguration$0() {
- var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
- t1 = type$.String,
- configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
- for (t2 = this._environment0$_variables, t3 = type$.Value_2, t4 = this._environment0$_variableNodes, i = 0; i < t2.length; ++i) {
- values = t2[i];
- nodes = t4[i];
- for (t5 = A.MapExtensions_get_pairs0(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
- t6 = t5.get$current(t5);
- $name = t6._0;
- value = t6._1;
- t6 = nodes.$index(0, $name);
- t6.toString;
- configuration.$indexSet(0, $name, new A.ConfiguredValue0(value, null, t6));
- }
- }
- return new A.Configuration0(configuration, null);
- },
- toModule$3(css, preModuleComments, extensionStore) {
- return A._EnvironmentModule__EnvironmentModule1(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toModule_closure0()));
- },
- toDummyModule$0() {
- return A._EnvironmentModule__EnvironmentModule1(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty16, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty9, B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toDummyModule_closure0()));
- },
- _environment0$_getModule$1(namespace) {
- var _0_0 = this._environment0$_modules.$index(0, namespace);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null));
- },
- _environment0$_fromOneModule$1$3($name, type, callback) {
- var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
- _0_0 = this._environment0$_nestedForwardedModules;
- if (_0_0 != null)
- for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
- t3 = t2.__internal$_current;
- for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
- t5 = t3.__internal$_current;
- _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
- if (_1_0 != null)
- return _1_0;
- }
- }
- for (t1 = this._environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
- _2_0 = callback.call$1(t1.__js_helper$_current);
- if (_2_0 != null)
- return _2_0;
- }
- for (t1 = this._environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.Callable_2, value = null, identity = null; t2.moveNext$0();) {
- t4 = t2.__js_helper$_current;
- valueInModule = callback.call$1(t4);
- if (valueInModule == null)
- continue;
- identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
- if (identityFromModule.$eq(0, identity))
- continue;
- if (value != null) {
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- for (t3 = A.MapExtensions_get_pairs0(t1, type$.Module_Callable_2, type$.AstNode_2), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
- t1 = t3.get$current(t3);
- module = t1._0;
- node = t1._1;
- if (callback.call$1(module) != null)
- t2.$indexSet(0, node.get$span(node), t4);
- }
- throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2));
- }
- identity = identityFromModule;
- value = valueInModule;
- }
- return value;
- },
- _environment0$_fromOneModule$3($name, type, callback) {
- return this._environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
- }
- };
- A.Environment__getVariableFromGlobalModule_closure0.prototype = {
- call$1(module) {
- return module.get$variables().$index(0, this.name);
- },
- $signature: 416
- };
- A.Environment_setVariable_closure2.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._environment0$_lastVariableName = this.name;
- return t1._environment0$_lastVariableIndex = 0;
- },
- $signature: 10
- };
- A.Environment_setVariable_closure3.prototype = {
- call$1(module) {
- return module.get$variables().containsKey$1(this.name) ? module : null;
- },
- $signature: 417
- };
- A.Environment_setVariable_closure4.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._environment0$_variableIndex$1(this.name);
- return t2 == null ? t1._environment0$_variables.length - 1 : t2;
- },
- $signature: 10
- };
- A.Environment__getFunctionFromGlobalModule_closure0.prototype = {
- call$1(module) {
- return module.get$functions(module).$index(0, this.name);
- },
- $signature: 196
- };
- A.Environment__getMixinFromGlobalModule_closure0.prototype = {
- call$1(module) {
- return module.get$mixins().$index(0, this.name);
- },
- $signature: 196
- };
- A.Environment_toModule_closure0.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2);
- },
- $signature: 194
- };
- A.Environment_toDummyModule_closure0.prototype = {
- call$1(modules) {
- return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2);
- },
- $signature: 194
- };
- A._EnvironmentModule1.prototype = {
- get$url(_) {
- var t1 = this.css;
- return t1.get$span(t1).file.url;
- },
- setVariable$3($name, value, nodeWithSpan) {
- var t1, t2,
- _0_0 = this._environment0$_modulesByVariable.$index(0, $name);
- if (_0_0 != null) {
- _0_0.setVariable$3($name, value, nodeWithSpan);
- return;
- }
- t1 = this._environment0$_environment;
- t2 = t1._environment0$_variables;
- if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
- throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
- J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
- J.$indexSet$ax(B.JSArray_methods.get$first(t1._environment0$_variableNodes), $name, nodeWithSpan);
- return;
- },
- variableIdentity$1($name) {
- var module = this._environment0$_modulesByVariable.$index(0, $name);
- return module == null ? this : module.variableIdentity$1($name);
- },
- cloneCss$0() {
- var _0_0, _this = this;
- if (!_this.transitivelyContainsCss)
- return _this;
- _0_0 = A.cloneCssStylesheet0(_this.css, _this.extensionStore);
- return A._EnvironmentModule$_1(_this._environment0$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
- },
- toString$0(_) {
- var t2,
- t1 = this.css;
- if (t1.get$span(t1).file.url == null)
- t1 = "<unknown url>";
- else {
- t1 = t1.get$span(t1).file.url;
- t2 = $.$get$context();
- t1.toString;
- t1 = t2.prettyUri$1(t1);
- }
- return t1;
- },
- $isModule1: 1,
- get$upstream() {
- return this.upstream;
- },
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- },
- get$extensionStore() {
- return this.extensionStore;
- },
- get$css(receiver) {
- return this.css;
- },
- get$preModuleComments() {
- return this.preModuleComments;
- },
- get$transitivelyContainsCss() {
- return this.transitivelyContainsCss;
- },
- get$transitivelyContainsExtensions() {
- return this.transitivelyContainsExtensions;
- }
- };
- A._EnvironmentModule__EnvironmentModule_closure11.prototype = {
- call$1(module) {
- return module.get$variables();
- },
- $signature: 631
- };
- A._EnvironmentModule__EnvironmentModule_closure12.prototype = {
- call$1(module) {
- return module.get$variableNodes();
- },
- $signature: 421
- };
- A._EnvironmentModule__EnvironmentModule_closure13.prototype = {
- call$1(module) {
- return module.get$functions(module);
- },
- $signature: 193
- };
- A._EnvironmentModule__EnvironmentModule_closure14.prototype = {
- call$1(module) {
- return module.get$mixins();
- },
- $signature: 193
- };
- A._EnvironmentModule__EnvironmentModule_closure15.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 121
- };
- A._EnvironmentModule__EnvironmentModule_closure16.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsExtensions();
- },
- $signature: 121
- };
- A.ErrorRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitErrorRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@error " + this.expression.toString$0(0) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._EvaluateVisitor1.prototype = {
- _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
- var t2, metaModule, t3, _i, module, $function, t4, _this = this,
- _s20_ = "$name, $module: null",
- _s9_ = "sass:meta",
- _s7_ = "$module",
- t1 = type$.JSArray_BuiltInCallable_2,
- metaFunctions = A._setArrayType([A.BuiltInCallable$function0("global-variable-exists", _s20_, new A._EvaluateVisitor_closure25(_this), _s9_), A.BuiltInCallable$function0("variable-exists", "$name", new A._EvaluateVisitor_closure26(_this), _s9_), A.BuiltInCallable$function0("function-exists", _s20_, new A._EvaluateVisitor_closure27(_this), _s9_), A.BuiltInCallable$function0("mixin-exists", _s20_, new A._EvaluateVisitor_closure28(_this), _s9_), A.BuiltInCallable$function0("content-exists", "", new A._EvaluateVisitor_closure29(_this), _s9_), A.BuiltInCallable$function0("module-variables", _s7_, new A._EvaluateVisitor_closure30(_this), _s9_), A.BuiltInCallable$function0("module-functions", _s7_, new A._EvaluateVisitor_closure31(_this), _s9_), A.BuiltInCallable$function0("module-mixins", _s7_, new A._EvaluateVisitor_closure32(_this), _s9_), A.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure33(_this), _s9_), A.BuiltInCallable$function0("get-mixin", _s20_, new A._EvaluateVisitor_closure34(_this), _s9_), A.BuiltInCallable$function0("call", "$function, $args...", new A._EvaluateVisitor_closure35(_this), _s9_)], t1),
- metaMixins = A._setArrayType([A.BuiltInCallable$mixin0("load-css", "$url, $with: null", new A._EvaluateVisitor_closure36(_this), false, _s9_), A.BuiltInCallable$mixin0("apply", "$mixin, $args...", new A._EvaluateVisitor_closure37(_this), true, _s9_)], t1);
- t1 = type$.BuiltInCallable_2;
- t2 = A.List_List$of($.$get$global6(), true, t1);
- B.JSArray_methods.addAll$1(t2, $.$get$local0());
- B.JSArray_methods.addAll$1(t2, metaFunctions);
- metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1);
- for (t1 = A.List_List$of($.$get$coreModules0(), true, type$.BuiltInModule_Callable_2), t1.push(metaModule), t2 = t1.length, t3 = _this._evaluate0$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- module = t1[_i];
- t3.$indexSet(0, module.url, module);
- }
- t1 = A._setArrayType([], type$.JSArray_Callable_2);
- B.JSArray_methods.addAll$1(t1, functions);
- B.JSArray_methods.addAll$1(t1, $.$get$globalFunctions0());
- B.JSArray_methods.addAll$1(t1, metaFunctions);
- for (t2 = t1.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- $function = t1[_i];
- t4 = J.get$name$x($function);
- t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
- }
- },
- run$2(_, importer, node) {
- var error, stackTrace, t1, exception;
- try {
- t1 = type$.nullable_Object;
- t1 = A.runZoned(new A._EvaluateVisitor_run_closure1(this, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext1(this, node)], t1, t1), type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2);
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace0(error.withLoadedUrls$1(this._evaluate0$_loadedUrls), error, stackTrace);
- } else
- throw exception;
- }
- },
- _evaluate0$_assertInModule$1$2(value, $name) {
- if (value != null)
- return value;
- throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
- },
- _evaluate0$_assertInModule$2(value, $name) {
- return this._evaluate0$_assertInModule$1$2(value, $name, type$.dynamic);
- },
- _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
- var t2, _this = this, t1 = {},
- _0_0 = _this._evaluate0$_builtInModules.$index(0, url);
- t1.builtInModule = null;
- if (_0_0 != null) {
- t1.builtInModule = _0_0;
- if (configuration instanceof A.ExplicitConfiguration0) {
- t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
- t2 = configuration.nodeWithSpan;
- throw A.wrapException(_this._evaluate0$_exception$2(t1, t2.get$span(t2)));
- }
- _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure3(t1, callback));
- return;
- }
- _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure4(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
- },
- _evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
- return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
- },
- _evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
- return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
- },
- _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
- var currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, _this = this,
- url = stylesheet.span.file.url,
- t1 = _this._evaluate0$_modules,
- _0_0 = t1.$index(0, url);
- if (_0_0 != null) {
- t1 = configuration == null;
- currentConfiguration = t1 ? _this._evaluate0$_configuration : configuration;
- t2 = _this._evaluate0$_moduleConfigurations.$index(0, url);
- t3 = t2._configuration0$__originalConfiguration;
- t2 = t3 == null ? t2 : t3;
- t3 = currentConfiguration._configuration0$__originalConfiguration;
- if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) {
- if (namesInErrors) {
- t2 = $.$get$context();
- url.toString;
- message = t2.prettyUri$1(url) + string$.x20was_a;
- } else
- message = string$.This_mw;
- t2 = _this._evaluate0$_moduleNodes.$index(0, url);
- existingSpan = t2 == null ? null : t2.get$span(t2);
- if (t1) {
- t1 = currentConfiguration.nodeWithSpan;
- configurationSpan = t1.get$span(t1);
- } else
- configurationSpan = null;
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (existingSpan != null)
- t1.$indexSet(0, existingSpan, "original load");
- if (configurationSpan != null)
- t1.$indexSet(0, configurationSpan, "configuration");
- throw A.wrapException(t1.get$isEmpty(0) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t1));
- }
- return _0_0;
- }
- environment = A.Environment$0();
- css = A._Cell$();
- preModuleComments = A._Cell$();
- extensionStore = A.ExtensionStore$0();
- _this._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure1(_this, importer, stylesheet, extensionStore, configuration, css, preModuleComments));
- t2 = css._readLocal$0();
- t3 = preModuleComments._readLocal$0();
- module = environment.toModule$3(t2, t3 == null ? B.Map_empty9 : t3, extensionStore);
- if (url != null) {
- t1.$indexSet(0, url, module);
- _this._evaluate0$_moduleConfigurations.$indexSet(0, url, _this._evaluate0$_configuration);
- if (nodeWithSpan != null)
- _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
- }
- return module;
- },
- _evaluate0$_execute$2(importer, stylesheet) {
- return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
- },
- _evaluate0$_addOutOfOrderImports$0() {
- var t1, t2, _this = this, _s5_ = "_root",
- _s13_ = "_endOfImports",
- _0_0 = _this._evaluate0$_outOfOrderImports;
- $label0$0: {
- if (_0_0 == null) {
- t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
- break $label0$0;
- }
- t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
- t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode_2);
- B.JSArray_methods.addAll$1(t1, _0_0);
- t2 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
- B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
- break $label0$0;
- }
- return t1;
- },
- _evaluate0$_combineCss$2$clone(root, clone) {
- var selectors, _0_0, t1, imports, css, sorted, t2;
- if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure3())) {
- selectors = root.get$extensionStore().get$simpleSelectors();
- _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure4(selectors)));
- if (_0_0 != null)
- this._evaluate0$_throwForUnsatisfiedExtension$1(_0_0);
- return root.get$css(root);
- }
- t1 = type$.JSArray_CssNode_2;
- imports = A._setArrayType([], t1);
- css = A._setArrayType([], t1);
- t1 = type$.Module_Callable_2;
- sorted = A.ListQueue$(t1);
- new A._EvaluateVisitor__combineCss_visitModule1(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
- if (root.get$transitivelyContainsExtensions())
- this._evaluate0$_extendModules$1(sorted);
- t1 = B.JSArray_methods.$add(imports, css);
- t2 = root.get$css(root);
- return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2));
- },
- _evaluate0$_combineCss$1(root) {
- return this._evaluate0$_combineCss$2$clone(root, false);
- },
- _evaluate0$_extendModules$1(sortedModules) {
- var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
- downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2),
- unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
- for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
- t3 = t1._collection$_current;
- if (t3 == null)
- t3 = t2._as(t3);
- originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
- unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure3(originalSelectors)));
- $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
- t4 = t3.get$extensionStore().get$addExtensions();
- if ($self != null)
- t4.call$1($self);
- t4 = t3.get$extensionStore();
- if (t4.get$isEmpty(t4))
- continue;
- for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
- upstream = t4[_i];
- _0_0 = upstream.get$url(upstream);
- if (_0_0 != null)
- J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure4()), t3.get$extensionStore());
- }
- unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
- }
- if (unsatisfiedExtensions._collection$_length !== 0)
- this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
- },
- _evaluate0$_throwForUnsatisfiedExtension$1(extension) {
- throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
- },
- _evaluate0$_indexAfterImports$1(statements) {
- var t1, lastImport, i, _0_0;
- for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
- $label0$0: {
- _0_0 = t1.$index(statements, i);
- if (_0_0 instanceof A.ModifiableCssImport0)
- break $label0$0;
- if (_0_0 instanceof A.ModifiableCssComment0)
- continue;
- break;
- }
- lastImport = i;
- }
- return lastImport + 1;
- },
- visitStylesheet$1(node) {
- var t1, t2, _i;
- for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(this);
- return null;
- },
- visitAtRootRule$1(node) {
- var t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _this = this,
- _s8_ = "__parent",
- _0_0 = node.query,
- query = _0_0 != null ? A.AtRootQueryParser$0(_this._evaluate0$_performInterpolationWithMap$2$warnForColor(_0_0, true)._0, _this._evaluate0$_logger, null).parse$0() : B.AtRootQuery_n2q0,
- $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_),
- included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2);
- for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = _2_0) {
- if (!query.excludes$1($parent))
- included.push($parent);
- _2_0 = $parent._node$_parent;
- if (_2_0 == null)
- throw A.wrapException(A.StateError$(string$.CssNod));
- }
- root = _this._evaluate0$_trimIncluded$1(included);
- if (root === _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)) {
- _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure3(_this, node), node.hasDeclarations, type$.Null);
- return null;
- }
- if (included.length >= 1) {
- first = included[0];
- rest = B.JSArray_methods.sublist$1(included, 1);
- innerCopy = first.copyWithoutChildren$0();
- for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
- copy = rest[_i].copyWithoutChildren$0();
- copy.addChild$1(outerCopy);
- }
- root.addChild$1(outerCopy);
- } else
- innerCopy = root;
- _this._evaluate0$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure4(_this, node));
- return null;
- },
- _evaluate0$_trimIncluded$1(nodes) {
- var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
- _s22_ = " to be an ancestor of ";
- if (nodes.length === 0)
- return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
- $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent");
- for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
- for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
- _0_0 = $parent._node$_parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if (innermostContiguous == null)
- innermostContiguous = i;
- _1_0 = $parent._node$_parent;
- if (_1_0 == null)
- throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
- }
- if ($parent !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
- return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
- innermostContiguous.toString;
- root = nodes[innermostContiguous];
- B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
- return root;
- },
- _evaluate0$_scopeForAtRoot$4(node, newParent, query, included) {
- var _this = this,
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node),
- t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
- if (t1 !== query.include)
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope);
- if (_this._evaluate0$_mediaQueries != null && query.excludesName$1("media"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope);
- if (_this._evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
- scope = new A._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope);
- return _this._evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure15()) ? new A._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope;
- },
- visitContentBlock$1(node) {
- return A.throwExpression(A.UnsupportedError$(string$.Evalua));
- },
- visitContentRule$1(node) {
- var $content = this._evaluate0$_environment._environment0$_content;
- if ($content == null)
- return null;
- this._evaluate0$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure1(this, $content), type$.Null);
- return null;
- },
- visitDebugRule$1(node) {
- var value = node.expression.accept$1(this),
- t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true);
- this._evaluate0$_logger.debug$2(0, t1, node.span);
- return null;
- },
- visitDeclaration$1(node) {
- var t2, _0_0, t3, $name, _1_0, _2_0, value, t4, t5, _3_0, oldDeclarationName, _this = this, _null = null,
- _s8_ = "__parent",
- t1 = {};
- if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Declarm, node.span));
- if (_this._evaluate0$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Declarw, node.span));
- t2 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)._node$_parent.children;
- _0_0 = t2.get$last(t2);
- t2 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_);
- if (t2 !== _0_0) {
- t2 = type$.SourceSpan;
- t3 = type$.String;
- _this._evaluate0$_warn$3(string$.Sassx27s, new A.MultiSpan0(node.span, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([_0_0.get$span(_0_0), "nested rule"], t2, t3), t2, t3)), B.Deprecation_FGJ);
- }
- t2 = node.name;
- $name = _this._evaluate0$_interpolationToValue$2$warnForColor(t2, true);
- _1_0 = _this._evaluate0$_declarationName;
- if (_1_0 != null)
- $name = new A.CssValue0(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String_2);
- _2_0 = node.value;
- if (_2_0 != null) {
- value = _2_0.accept$1(_this);
- if (!value.get$isBlank() || value.get$asList().length === 0) {
- t3 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_);
- t4 = _2_0.get$span(_2_0);
- t2 = B.JSString_methods.startsWith$1(t2.get$initialPlain(), "--");
- if (_this._evaluate0$_sourceMap) {
- t5 = A.NullableExtension_andThen0(_2_0, _this.get$_evaluate0$_expressionNode());
- t5 = t5 == null ? _null : J.get$span$z(t5);
- } else
- t5 = _null;
- t3.addChild$1(A.ModifiableCssDeclaration$0($name, new A.CssValue0(value, t4, type$.CssValue_Value_2), node.span, t2, t5));
- } else if (J.startsWith$1$s($name.value, "--"))
- throw A.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
- }
- _3_0 = node.children;
- t1.children = null;
- if (_3_0 != null) {
- t1.children = _3_0;
- oldDeclarationName = _this._evaluate0$_declarationName;
- _this._evaluate0$_declarationName = $name.value;
- _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure1(t1, _this), node.hasDeclarations, type$.Null);
- _this._evaluate0$_declarationName = oldDeclarationName;
- }
- return _null;
- },
- visitEachRule$1(node) {
- var _this = this, _box_0 = {},
- t1 = node.list,
- list = t1.accept$1(_this),
- nodeWithSpan = _this._evaluate0$_expressionNode$1(t1),
- _0_0 = node.variables;
- $label0$0: {
- _box_0.variable = null;
- if (_0_0.length === 1) {
- _box_0.variable = _0_0[0];
- t1 = new A._EvaluateVisitor_visitEachRule_closure5(_box_0, _this, nodeWithSpan);
- break $label0$0;
- }
- _box_0.variables = null;
- _box_0.variables = _0_0;
- t1 = new A._EvaluateVisitor_visitEachRule_closure6(_box_0, _this, nodeWithSpan);
- break $label0$0;
- }
- return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure7(_this, list, t1, node), true, type$.nullable_Value_2);
- },
- _evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) {
- var i,
- list = value.get$asList(),
- t1 = variables.length,
- minLength = Math.min(t1, list.length);
- for (i = 0; i < minLength; ++i)
- this._evaluate0$_environment.setLocalVariable$3(variables[i], this._evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
- for (i = minLength; i < t1; ++i)
- this._evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan);
- },
- visitErrorRule$1(node) {
- throw A.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
- },
- visitExtendRule$1(node) {
- var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, compound, _this = this, _null = null,
- styleRule = _this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
- if (styleRule == null || _this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.x40exten, node.span));
- for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true0))
- continue;
- visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
- t7 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't";
- _this._evaluate0$_warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan0(A.SpanExtensions_trimRight0(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_5pG);
- }
- _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(node.selector, true);
- for (t1 = A.SelectorList_SelectorList$parse0(A.trimAscii0(_0_0._0, true), false, _0_0._1, _this._evaluate0$_logger, false).components, t2 = t1.length, t3 = styleRule._style_rule0$_selector._box0$_inner, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- compound = complex.get$singleCompound();
- if (compound == null)
- throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", complex.span, _null));
- t4 = compound.components;
- t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null;
- if (t5 == null)
- throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, _null));
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, _this._evaluate0$_mediaQueries);
- }
- return _null;
- },
- visitAtRule$1(node) {
- var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
- $name = _this._evaluate0$_interpolationToValue$1(node.name);
- value = A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure5(_this));
- children = node.children;
- if (children == null) {
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value));
- return null;
- }
- wasInKeyframes = _this._evaluate0$_inKeyframes;
- wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
- if (A.unvendor0($name.value) === "keyframes")
- _this._evaluate0$_inKeyframes = true;
- else
- _this._evaluate0$_inUnknownAtRule = true;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure6(_this, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure7(), type$.ModifiableCssAtRule_2, type$.Null);
- _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- _this._evaluate0$_inKeyframes = wasInKeyframes;
- return null;
- },
- visitForRule$1(node) {
- var _this = this, t1 = {},
- t2 = node.from,
- fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure9(_this, node)),
- t3 = node.to,
- toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure10(_this, node)),
- from = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure11(fromNumber)),
- to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure12(toNumber, fromNumber)),
- direction = from > to ? -1 : 1;
- if (from === (!node.isExclusive ? t1.to = to + direction : to))
- return null;
- return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value_2);
- },
- visitForwardRule$1(node) {
- var newConfiguration, t4, _i, variable, $name, _this = this,
- _s8_ = "@forward",
- oldConfiguration = _this._evaluate0$_configuration,
- adjustedConfiguration = oldConfiguration.throughForward$1(node),
- t1 = node.configuration,
- t2 = t1.length,
- t3 = node.url;
- if (t2 !== 0) {
- newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node);
- _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration);
- t3 = type$.String;
- t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (!variable.isGuarded)
- t4.add$1(0, variable.name);
- }
- _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
- t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
- for (_i = 0; _i < t2; ++_i)
- t3.add$1(0, t1[_i].name);
- for (t1 = newConfiguration._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (!t3.contains$1(0, $name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- _this._evaluate0$_assertConfigurationIsEmpty$1(newConfiguration);
- } else {
- _this._evaluate0$_configuration = adjustedConfiguration;
- _this._evaluate0$_loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure4(_this, node));
- _this._evaluate0$_configuration = oldConfiguration;
- }
- return null;
- },
- _evaluate0$_addForwardConfiguration$2(configuration, node) {
- var t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, _null = null,
- t1 = configuration._configuration0$_values,
- newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
- for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- variable = t2[_i];
- if (variable.isGuarded) {
- t4 = variable.name;
- oldValue = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, t4);
- if (oldValue != null)
- t5 = !oldValue.value.$eq(0, B.C__SassNull0);
- else {
- oldValue = _null;
- t5 = false;
- }
- if (t5) {
- newValues.$indexSet(0, t4, oldValue);
- continue;
- }
- }
- t4 = variable.expression;
- variableNodeWithSpan = this._evaluate0$_expressionNode$1(t4);
- newValues.$indexSet(0, variable.name, new A.ConfiguredValue0(this._evaluate0$_withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
- }
- if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1))
- return new A.ExplicitConfiguration0(node, newValues, _null);
- else
- return new A.Configuration0(newValues, _null);
- },
- _evaluate0$_registerCommentsForModule$1(module) {
- var _this = this, _s5_ = "_root",
- t1 = _this._evaluate0$__root;
- if (t1 == null)
- return;
- if (_this._evaluate0$_assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
- return;
- t1 = _this._evaluate0$_preModuleComments;
- if (t1 == null)
- t1 = _this._evaluate0$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.List_CssComment_2);
- J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure1()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source, type$.CssComment_2), type$.UnmodifiableListView_CssComment_2));
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).clearChildren$0();
- _this._evaluate0$__endOfImports = 0;
- },
- _evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) {
- var t1, t2, t3, t4, _i, $name;
- for (t1 = upstream._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration0$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- $name = t2[_i];
- if (except.contains$1(0, $name))
- continue;
- if (!t4.containsKey$1($name))
- if (!t1.get$isEmpty(t1))
- t1.remove$1(0, $name);
- }
- },
- _evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
- var t1, _0_0, $name, value;
- if (!(configuration instanceof A.ExplicitConfiguration0))
- return;
- t1 = configuration._configuration0$_values;
- if (t1.get$isEmpty(t1))
- return;
- t1 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
- _0_0 = t1.get$first(t1);
- $name = _0_0._0;
- value = _0_0._1;
- t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
- throw A.wrapException(this._evaluate0$_exception$2(t1, value.configurationSpan));
- },
- _evaluate0$_assertConfigurationIsEmpty$1(configuration) {
- return this._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
- },
- visitFunctionRule$1(node) {
- var t1 = this._evaluate0$_environment,
- t2 = t1.closure$0(),
- t3 = this._evaluate0$_inDependency,
- t4 = t1._environment0$_functions,
- index = t4.length - 1,
- t5 = node.name;
- t1._environment0$_functionIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2));
- return null;
- },
- visitIfRule$1(node) {
- var t1, t2, _i, clauseToCheck,
- clause = node.lastClause;
- for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- clauseToCheck = t1[_i];
- if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
- clause = clauseToCheck;
- break;
- }
- }
- return A.NullableExtension_andThen0(clause, new A._EvaluateVisitor_visitIfRule_closure1(this));
- },
- visitImportRule$1(node) {
- var t1, t2, t3, t4, t5, t6, _i, $import, t7, _0_0, $self, t8, _this = this,
- _s8_ = "__parent",
- _s5_ = "_root",
- _s13_ = "_endOfImports";
- for (t1 = node.imports, t2 = t1.length, t3 = type$.CssValue_String_2, t4 = _this.get$_evaluate0$_interpolationToValue(), t5 = type$.StaticImport_2, t6 = type$.JSArray_ModifiableCssImport_2, _i = 0; _i < t2; ++_i) {
- $import = t1[_i];
- if ($import instanceof A.DynamicImport0)
- _this._evaluate0$_visitDynamicImport$1($import);
- else {
- t5._as($import);
- t7 = $import.url;
- _0_0 = _this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(t7, false, false);
- $self = $import.modifiers;
- t8 = $self == null ? null : t4.call$1($self);
- node = new A.ModifiableCssImport0(new A.CssValue0(_0_0._0, t7.span, t3), t8, $import.span);
- if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(node);
- else if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source)) {
- t7 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
- node._node$_parent = t7;
- t7 = t7._node$_children;
- node._node$_indexInParent = t7.length;
- t7.push(node);
- _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
- } else {
- t7 = _this._evaluate0$_outOfOrderImports;
- (t7 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], t6) : t7).push(node);
- }
- }
- }
- return null;
- },
- _evaluate0$_visitDynamicImport$1($import) {
- return this._evaluate0$_withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure1(this, $import));
- },
- _evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
- var _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, _3_0, result, error, stackTrace, error0, stackTrace0, message, t1, t2, t3, t4, exception, message0, _this = this,
- _s11_ = "_stylesheet";
- baseUrl = baseUrl;
- try {
- _this._evaluate0$_importSpan = span;
- _0_0 = _this._evaluate0$_importCache;
- importCache = null;
- if (_0_0 != null) {
- importCache = _0_0;
- if (baseUrl == null)
- baseUrl = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url;
- _1_0 = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._evaluate0$_importer, baseUrl, forImport);
- importer = null;
- canonicalUrl = null;
- originalUrl = null;
- if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) {
- importer = _1_0._0;
- canonicalUrl = _1_0._1;
- originalUrl = _1_0._2;
- _this._evaluate0$_loadedUrls.add$1(0, canonicalUrl);
- isDependency = _this._evaluate0$_inDependency || !J.$eq$(importer, _this._evaluate0$_importer);
- t1 = importCache;
- t2 = importer;
- t3 = canonicalUrl;
- t4 = originalUrl;
- _2_0 = t1.importCanonical$4$originalUrl$quiet(t2, t3, t4, _this._evaluate0$_quietDeps && isDependency);
- stylesheet = null;
- if (_2_0 != null) {
- stylesheet = _2_0;
- t1 = stylesheet;
- t2 = importer;
- return new A._Record_3_importer_isDependency(t1, t2, isDependency);
- }
- }
- }
- if (_this._nodeImporter != null) {
- t1 = baseUrl;
- _3_0 = _this._importLikeNode$3(url, t1 == null ? _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url : t1, forImport);
- result = null;
- if (_3_0 != null) {
- result = _3_0;
- t1 = _this._evaluate0$_loadedUrls;
- A.NullableExtension_andThen0(result._0.span.file.url, t1.get$add(t1));
- t1 = result;
- return t1;
- }
- }
- t1 = B.JSString_methods.startsWith$1(url, "package:");
- if (t1)
- throw A.wrapException(string$.x22packa);
- else
- throw A.wrapException("Can't find stylesheet to import.");
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0)
- throw exception;
- else if (t1 instanceof A.ArgumentError) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace0(_this._evaluate0$_exception$1(J.toString$0$(error)), error, stackTrace);
- } else {
- error0 = t1;
- stackTrace0 = A.getTraceFromException(exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error0));
- } catch (exception) {
- message0 = J.toString$0$(error0);
- message = message0;
- }
- A.throwWithTrace0(_this._evaluate0$_exception$1(message), error0, stackTrace0);
- }
- } finally {
- _this._evaluate0$_importSpan = null;
- }
- },
- _evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
- return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
- },
- _evaluate0$_loadStylesheet$3$forImport(url, span, forImport) {
- return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
- },
- _importLikeNode$3(originalUrl, previous, forImport) {
- var isDependency, url, t2, _this = this,
- t1 = _this._nodeImporter,
- result = t1.loadRelative$3(originalUrl, previous, forImport);
- if (result != null)
- isDependency = _this._evaluate0$_inDependency;
- else {
- result = t1.load$3(0, originalUrl, previous, forImport);
- if (result == null)
- return null;
- isDependency = true;
- }
- url = result._1;
- t1 = B.JSString_methods.startsWith$1(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0;
- t2 = _this._evaluate0$_quietDeps && isDependency ? $.$get$Logger_quiet0() : _this._evaluate0$_logger;
- return new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse0(result._0, t1, t2, url), null, isDependency);
- },
- _evaluate0$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
- var t1, _0_0, _1_8, t2, _this = this,
- _s37_ = "Mixin doesn't accept a content block.",
- _s10_ = "invocation";
- $label0$0: {
- if (mixin == null)
- throw A.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
- t1 = mixin instanceof A.BuiltInCallable0;
- if (t1 && !mixin.acceptsContent && contentCallable != null) {
- t1 = _this._evaluate0$_evaluateArguments$1($arguments)._values;
- _0_0 = mixin.callbackFor$2(t1[2].length, new A.MapKeySet(t1[0], type$.MapKeySet_String));
- throw A.wrapException(A.MultiSpanSassRuntimeException$0(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- }
- if (t1) {
- _this._evaluate0$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure3(_this, $arguments, mixin, nodeWithSpanWithoutContent));
- break $label0$0;
- }
- t1 = type$.UserDefinedCallable_Environment_2._is(mixin);
- if (t1) {
- _1_8 = mixin.declaration;
- if (_1_8 instanceof A.MixinRule0)
- t2 = !type$.MixinRule_2._as(_1_8).get$hasContent() && contentCallable != null;
- else
- t2 = false;
- } else
- t2 = false;
- if (t2)
- throw A.wrapException(A.MultiSpanSassRuntimeException$0(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
- if (t1) {
- _this._evaluate0$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure4(_this, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null);
- break $label0$0;
- }
- throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- }
- },
- visitIncludeRule$1(node) {
- var _this = this,
- mixin = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure5(_this, node));
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
- _this._evaluate0$_warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_qBS);
- _this._evaluate0$_applyMixin$5(mixin, A.NullableExtension_andThen0(node.content, new A._EvaluateVisitor_visitIncludeRule_closure6(_this)), node.$arguments, node, new A._FakeAstNode0(new A._EvaluateVisitor_visitIncludeRule_closure7(node)));
- return null;
- },
- visitMixinRule$1(node) {
- var t1 = this._evaluate0$_environment,
- t2 = t1.closure$0(),
- t3 = this._evaluate0$_inDependency,
- t4 = t1._environment0$_mixins,
- index = t4.length - 1,
- t5 = node.name;
- t1._environment0$_mixinIndices.$indexSet(0, t5, index);
- J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2));
- return null;
- },
- visitLoudComment$1(node) {
- var t1, _this = this,
- _s8_ = "__parent",
- _s13_ = "_endOfImports";
- if (_this._evaluate0$_inFunction)
- return null;
- if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) === _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root") && _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root").children._collection$_source))
- _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
- t1 = node.text;
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(_this._evaluate0$_performInterpolation$1(t1), t1.span));
- return null;
- },
- visitMediaRule$1(node) {
- var _0_0, queries, mergedQueries, t1, mergedSources, t2, t3, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
- _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(node.query, true);
- queries = A.CssMediaQuery_parseList0(_0_0._0, _0_0._1, _this._evaluate0$_logger);
- mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure5(_this, queries));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries))
- return null;
- if (t1)
- mergedSources = B.Set_empty5;
- else {
- t2 = _this._evaluate0$_mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
- t3 = _this._evaluate0$_mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, queries);
- mergedSources = t2;
- }
- t1 = t1 ? queries : mergedQueries;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure6(_this, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure7(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null);
- return null;
- },
- _evaluate0$_mergeMediaQueries$2(queries1, queries2) {
- var t1, t2, t3, t4, _0_0, t5, result,
- queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2);
- for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
- $label0$1: {
- _0_0 = t3.merge$1(t4.get$current(t4));
- if (B._SingletonCssMediaQueryMergeResult_00 === _0_0)
- continue;
- if (B._SingletonCssMediaQueryMergeResult_10 === _0_0)
- return null;
- t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult0;
- result = t5 ? _0_0 : null;
- if (t5)
- queries.push(result.query);
- break $label0$1;
- }
- }
- return queries;
- },
- visitReturnRule$1(node) {
- var t1 = node.expression;
- return this._evaluate0$_withoutSlash$2(t1.accept$1(this), t1);
- },
- visitSilentComment$1(node) {
- return null;
- },
- visitStyleRule$1(node) {
- var t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule, _this = this, _null = null,
- _s8_ = "__parent",
- _s11_ = "_stylesheet";
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_n, node.span));
- else if (_this._evaluate0$_inKeyframes && _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock0)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_k, node.span));
- t1 = node.selector;
- _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(t1, true);
- selectorText = _0_0._0;
- selectorMap = _0_0._1;
- if (_this._evaluate0$_inKeyframes) {
- _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable(A.KeyframeSelectorParser$0(selectorText, selectorMap, _this._evaluate0$_logger).parse$0(), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure7(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure8(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
- return _null;
- }
- parsedSelector = A.SelectorList_SelectorList$parse0(selectorText, true, selectorMap, _this._evaluate0$_logger, _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss);
- t1 = _this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? _null : t1.fromPlainCss;
- nest = t1 !== true;
- if (nest) {
- if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss)
- for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- _1_0 = t1[_i].leadingCombinators;
- if (_1_0.length >= 1) {
- first = _1_0[0];
- t3 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_);
- t3 = t3.plainCss;
- } else {
- first = _null;
- t3 = false;
- }
- if (t3)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Top_lel, first.span));
- }
- t1 = _this._evaluate0$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? _null : t1.originalSelector;
- parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !_this._evaluate0$_atRootExcludingStyleRule, _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss);
- }
- rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$2(parsedSelector, _this._evaluate0$_mediaQueries), node.span, _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss, parsedSelector);
- oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
- t1 = _this._evaluate0$_atRootExcludingStyleRule = false;
- t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure9() : _null;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure10(_this, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule_2, type$.Null);
- _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- _this._evaluate0$_warnForBogusCombinators$1(rule);
- if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null) {
- t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
- t1 = !t1.get$isEmpty(t1);
- }
- if (t1) {
- t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
- t1.get$last(t1).isGroupEnd = true;
- }
- return _null;
- },
- _evaluate0$_warnForBogusCombinators$1(rule) {
- var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
- if (!rule.accept$1(B._IsInvisibleVisitor_false_false0))
- for (t1 = rule._style_rule0$_selector._box0$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (!complex.accept$1(B._IsBogusVisitor_true0))
- continue;
- if (complex.accept$1(B.C__IsUselessVisitor0)) {
- visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_5pG);
- } else if (complex.leadingCombinators.length !== 0) {
- if (!_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, "_stylesheet").plainCss) {
- visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- _this._evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_5pG);
- }
- } else {
- visitor = A._SerializeVisitor$0(_null, true, _null, true, false, _null, true);
- complex.accept$1(visitor);
- t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
- t7 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : "";
- t8 = A.SpanExtensions_trimRight0(complex.span);
- if (t5.get$length(0) === 0)
- A.throwExpression(A.IterableElementError_noElement());
- t9 = J.get$span$z(t5.$index(0, 0));
- _this._evaluate0$_warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan0(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure1()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_5pG);
- }
- }
- },
- visitSupportsRule$1(node) {
- var t1, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
- t1 = node.condition;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(new A.CssValue0(_this._evaluate0$_visitSupportsCondition$1(t1), t1.get$span(t1), type$.CssValue_String_2), node.span), new A._EvaluateVisitor_visitSupportsRule_closure3(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
- return null;
- },
- _evaluate0$_visitSupportsCondition$1(condition) {
- var t1, _this = this, _box_0 = {};
- $label0$0: {
- if (condition instanceof A.SupportsOperation0) {
- t1 = condition.operator;
- t1 = _this._evaluate0$_parenthesize$2(condition.left, t1) + " " + t1 + " " + _this._evaluate0$_parenthesize$2(condition.right, t1);
- break $label0$0;
- }
- if (condition instanceof A.SupportsNegation0) {
- t1 = "not " + _this._evaluate0$_parenthesize$1(condition.condition);
- break $label0$0;
- }
- if (condition instanceof A.SupportsInterpolation0) {
- t1 = condition.expression;
- t1 = _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false);
- break $label0$0;
- }
- _box_0.declaration = null;
- if (condition instanceof A.SupportsDeclaration0) {
- _box_0.declaration = condition;
- t1 = _this._evaluate0$_withSupportsDeclaration$1(new A._EvaluateVisitor__visitSupportsCondition_closure1(_box_0, _this));
- break $label0$0;
- }
- if (condition instanceof A.SupportsFunction0) {
- t1 = _this._evaluate0$_performInterpolation$1(condition.name) + "(" + _this._evaluate0$_performInterpolation$1(condition.$arguments) + ")";
- break $label0$0;
- }
- if (condition instanceof A.SupportsAnything0) {
- t1 = "(" + _this._evaluate0$_performInterpolation$1(condition.contents) + ")";
- break $label0$0;
- }
- t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
- }
- return t1;
- },
- _evaluate0$_withSupportsDeclaration$1$1(callback) {
- var t1,
- oldInSupportsDeclaration = this._evaluate0$_inSupportsDeclaration;
- this._evaluate0$_inSupportsDeclaration = true;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
- }
- },
- _evaluate0$_withSupportsDeclaration$1(callback) {
- return this._evaluate0$_withSupportsDeclaration$1$1(callback, type$.dynamic);
- },
- _evaluate0$_parenthesize$2(condition, operator) {
- var t1;
- if (!(condition instanceof A.SupportsNegation0))
- if (condition instanceof A.SupportsOperation0)
- t1 = operator == null || operator !== condition.operator;
- else
- t1 = false;
- else
- t1 = true;
- if (t1)
- return "(" + this._evaluate0$_visitSupportsCondition$1(condition) + ")";
- return this._evaluate0$_visitSupportsCondition$1(condition);
- },
- _evaluate0$_parenthesize$1(condition) {
- return this._evaluate0$_parenthesize$2(condition, null);
- },
- visitVariableDeclaration$1(node) {
- var t2, value, _this = this, _null = null, t1 = {};
- if (node.isGuarded) {
- if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) {
- t2 = _this._evaluate0$_configuration._configuration0$_values;
- t2 = t2.get$isEmpty(t2) ? _null : t2.remove$1(0, node.name);
- t1.override = null;
- if (t2 != null) {
- t1.override = t2;
- t2 = !t2.value.$eq(0, B.C__SassNull0);
- } else
- t2 = false;
- if (t2) {
- _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure5(t1, _this, node));
- return _null;
- }
- }
- value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node));
- if (value != null && !value.$eq(0, B.C__SassNull0))
- return _null;
- }
- if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) {
- t1 = _this._evaluate0$_environment._environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName0(node.span) + ": null` at the stylesheet root.";
- _this._evaluate0$_warn$3(t1, node.span, B.Deprecation_W6Z);
- }
- t1 = node.expression;
- _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, _this._evaluate0$_withoutSlash$2(t1.accept$1(_this), t1)));
- return _null;
- },
- visitUseRule$1(node) {
- var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this,
- t1 = node.configuration,
- t2 = t1.length;
- if (t2 !== 0) {
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- for (_i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- t3 = variable.expression;
- variableNodeWithSpan = _this._evaluate0$_expressionNode$1(t3);
- values.$indexSet(0, variable.name, new A.ConfiguredValue0(_this._evaluate0$_withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
- }
- configuration = new A.ExplicitConfiguration0(node, values, null);
- } else
- configuration = B.Configuration_Map_empty_null0;
- _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration);
- _this._evaluate0$_assertConfigurationIsEmpty$1(configuration);
- return null;
- },
- visitWarnRule$1(node) {
- var _this = this,
- value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure1(_this, node)),
- t1 = value instanceof A.SassString0 ? value._string0$_text : _this._evaluate0$_serialize$2(value, node.expression);
- _this._evaluate0$_logger.warn$2$trace(0, t1, _this._evaluate0$_stackTrace$1(node.span));
- return null;
- },
- visitWhileRule$1(node) {
- return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.nullable_Value_2);
- },
- visitBinaryOperationExpression$1(node) {
- var t1, _this = this;
- if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, "_stylesheet").plainCss) {
- t1 = node.operator;
- t1 = t1 !== B.BinaryOperator_wdM0 && t1 !== B.BinaryOperator_U770;
- } else
- t1 = false;
- if (t1)
- throw A.wrapException(_this._evaluate0$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
- return _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure1(_this, node));
- },
- _evaluate0$_slash$3(left, right, node) {
- var t1, right0, _1_2, _1_1, _null = null,
- result = left.dividedBy$1(right),
- _1_2_isSet = left instanceof A.SassNumber0;
- if (_1_2_isSet) {
- t1 = type$.SassNumber_2;
- t1._as(left);
- if (right instanceof A.SassNumber0) {
- t1._as(right);
- t1 = node.allowsSlash && this._evaluate0$_operandAllowsSlash$1(node.left) && this._evaluate0$_operandAllowsSlash$1(node.right);
- right0 = right;
- _1_2 = right0;
- } else {
- right0 = _null;
- _1_2 = right;
- t1 = false;
- }
- _1_1 = left;
- } else {
- right0 = _null;
- _1_2 = right0;
- _1_1 = left;
- left = _1_2;
- t1 = false;
- }
- if (t1)
- return type$.SassNumber_2._as(result).withSlash$2(left, right0);
- if (_1_1 instanceof A.SassNumber0)
- t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber0;
- else
- t1 = false;
- if (t1) {
- this._evaluate0$_warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation1().call$1(node)) + " or " + A.expressionToCalc0(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_E8a);
- return result;
- }
- return result;
- },
- _evaluate0$_operandAllowsSlash$1(node) {
- var t1;
- if (node instanceof A.FunctionExpression0)
- if (node.namespace == null) {
- t1 = node.name;
- t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._evaluate0$_environment.getFunction$1(t1) == null;
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- },
- visitValueExpression$1(node) {
- return node.value;
- },
- visitVariableExpression$1(node) {
- var result = this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure1(this, node));
- if (result != null)
- return result;
- throw A.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span));
- },
- visitUnaryOperationExpression$1(node) {
- return this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure1(node, node.operand.accept$1(this)));
- },
- visitBooleanExpression$1(node) {
- return node.value ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- visitIfExpression$1(node) {
- var condition, t1, ifTrue, ifFalse, result, _this = this,
- _0_0 = _this._evaluate0$_evaluateMacroArguments$1(node),
- positional = _0_0._0,
- named = _0_0._1;
- _this._evaluate0$_verifyArguments$4(positional.length, named, $.$get$IfExpression_declaration0(), node);
- condition = A.ListExtensions_elementAtOrNull(positional, 0);
- if (condition == null) {
- t1 = named.$index(0, "condition");
- t1.toString;
- condition = t1;
- }
- ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
- if (ifTrue == null) {
- t1 = named.$index(0, "if-true");
- t1.toString;
- ifTrue = t1;
- }
- ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
- if (ifFalse == null) {
- t1 = named.$index(0, "if-false");
- t1.toString;
- ifFalse = t1;
- }
- result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse;
- return _this._evaluate0$_withoutSlash$2(result.accept$1(_this), _this._evaluate0$_expressionNode$1(result));
- },
- visitNullExpression$1(node) {
- return B.C__SassNull0;
- },
- visitNumberExpression$1(node) {
- return A.SassNumber_SassNumber0(node.value, node.unit);
- },
- visitParenthesizedExpression$1(node) {
- var _this = this;
- return _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._evaluate0$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
- },
- visitColorExpression$1(node) {
- return node.value;
- },
- visitListExpression$1(node) {
- var t1 = node.contents;
- return A.SassList$0(new A.MappedListIterable(t1, new A._EvaluateVisitor_visitListExpression_closure1(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), node.separator, node.hasBrackets);
- },
- visitMapExpression$1(node) {
- var t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan,
- t1 = type$.Value_2,
- map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
- keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
- for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- keyValue = key.accept$1(this);
- valueValue = value.accept$1(this);
- if (map.containsKey$1(keyValue)) {
- t1 = keyNodes.$index(0, keyValue);
- oldValueSpan = t1 == null ? null : t1.get$span(t1);
- t1 = key.get$span(key);
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (oldValueSpan != null)
- t2.$indexSet(0, oldValueSpan, "first key");
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t1, "second key", t2, this._evaluate0$_stackTrace$1(key.get$span(key)), null));
- }
- map.$indexSet(0, keyValue, valueValue);
- keyNodes.$indexSet(0, keyValue, key);
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
- },
- visitFunctionExpression$1(node) {
- var t2, _0_0, t3, t4, oldInFunction, result, _this = this,
- _s11_ = "_stylesheet",
- t1 = {},
- $function = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss ? null : _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure5(_this, node));
- t1.$function = $function;
- if ($function == null) {
- if (node.namespace != null)
- throw A.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span));
- t2 = node.name;
- _0_0 = t2.toLowerCase();
- if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
- t3 = node.$arguments;
- t4 = t3.named;
- t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure6());
- } else
- t3 = false;
- if (t3)
- return _this._evaluate0$_visitCalculation$2$inLegacySassFunction(node, true);
- if ("calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0)
- return _this._evaluate0$_visitCalculation$1(node);
- $function = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss ? null : _this._evaluate0$_builtInFunctions.$index(0, t2);
- t2 = t1.$function = $function == null ? new A.PlainCssCallable0(node.originalName) : $function;
- } else
- t2 = $function;
- if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
- _this._evaluate0$_warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_qBS);
- oldInFunction = _this._evaluate0$_inFunction;
- _this._evaluate0$_inFunction = true;
- result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure7(t1, _this, node));
- _this._evaluate0$_inFunction = oldInFunction;
- return result;
- },
- _evaluate0$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
- var $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, _this = this,
- t2 = node.$arguments,
- t3 = t2.named;
- if (t3.get$isNotEmpty(t3))
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Keywor, node.span));
- else if (t2.rest != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Rest_a, node.span));
- _this._evaluate0$_checkCalculationArguments$1(node);
- t3 = A._setArrayType([], type$.JSArray_Object);
- for (t2 = t2.positional, t4 = t2.length, _i = 0; _i < t4; ++_i)
- t3.push(_this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
- $arguments = t3;
- if (_this._evaluate0$_inSupportsDeclaration)
- return new A.SassCalculation0(node.name, A.List_List$unmodifiable($arguments, type$.Object));
- oldCallableNode = _this._evaluate0$_callableNode;
- _this._evaluate0$_callableNode = node;
- try {
- t1 = null;
- t3 = node.name;
- _0_0 = t3.toLowerCase();
- $label0$0: {
- if ("calc" === _0_0) {
- t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sqrt" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("sqrt", J.$index$asx($arguments, 0), A.number2__sqrt$closure(), true);
- break $label0$0;
- }
- if ("sin" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("sin", J.$index$asx($arguments, 0), A.number2__sin$closure(), false);
- break $label0$0;
- }
- if ("cos" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("cos", J.$index$asx($arguments, 0), A.number2__cos$closure(), false);
- break $label0$0;
- }
- if ("tan" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("tan", J.$index$asx($arguments, 0), A.number2__tan$closure(), false);
- break $label0$0;
- }
- if ("asin" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("asin", J.$index$asx($arguments, 0), A.number2__asin$closure(), true);
- break $label0$0;
- }
- if ("acos" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("acos", J.$index$asx($arguments, 0), A.number2__acos$closure(), true);
- break $label0$0;
- }
- if ("atan" === _0_0) {
- t1 = A.SassCalculation__singleArgument0("atan", J.$index$asx($arguments, 0), A.number2__atan$closure(), true);
- break $label0$0;
- }
- if ("abs" === _0_0) {
- t1 = A.SassCalculation_abs0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("exp" === _0_0) {
- t1 = A.SassCalculation_exp0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("sign" === _0_0) {
- t1 = A.SassCalculation_sign0(J.$index$asx($arguments, 0));
- break $label0$0;
- }
- if ("min" === _0_0) {
- t1 = A.SassCalculation_min0($arguments);
- break $label0$0;
- }
- if ("max" === _0_0) {
- t1 = A.SassCalculation_max0($arguments);
- break $label0$0;
- }
- if ("hypot" === _0_0) {
- t1 = A.SassCalculation_hypot0($arguments);
- break $label0$0;
- }
- if ("pow" === _0_0) {
- t1 = A.SassCalculation_pow0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("atan2" === _0_0) {
- t1 = A.SassCalculation_atan20(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("log" === _0_0) {
- t1 = A.SassCalculation_log0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("mod" === _0_0) {
- t1 = A.SassCalculation_mod0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("rem" === _0_0) {
- t1 = A.SassCalculation_rem0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
- break $label0$0;
- }
- if ("round" === _0_0) {
- t1 = A.SassCalculation_round0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- if ("clamp" === _0_0) {
- t1 = A.SassCalculation_clamp0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
- break $label0$0;
- }
- t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
- t1 = A.throwExpression(t3);
- }
- t1 = t1;
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- if (B.JSString_methods.contains$1(error.message, "compatible"))
- _this._evaluate0$_verifyCompatibleNumbers$2($arguments, t2);
- A.throwWithTrace0(_this._evaluate0$_exception$2(error.message, node.span), error, stackTrace);
- } else
- throw exception;
- } finally {
- _this._evaluate0$_callableNode = oldCallableNode;
- }
- },
- _evaluate0$_visitCalculation$1(node) {
- return this._evaluate0$_visitCalculation$2$inLegacySassFunction(node, false);
- },
- _evaluate0$_checkCalculationArguments$1(node) {
- var t1, _0_0,
- check = new A._EvaluateVisitor__checkCalculationArguments_check1(this, node);
- $label0$0: {
- t1 = node.name;
- _0_0 = t1.toLowerCase();
- if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
- check.call$1(1);
- break $label0$0;
- }
- if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
- check.call$0();
- break $label0$0;
- }
- if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
- check.call$1(2);
- break $label0$0;
- }
- if ("round" === _0_0 || "clamp" === _0_0) {
- check.call$1(3);
- break $label0$0;
- }
- throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
- }
- },
- _evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
- var i, t1, _0_0, arg, number1, j, number2;
- for (i = 0; t1 = args.length, i < t1; ++i) {
- _0_0 = args[i];
- if (_0_0 instanceof A.SassNumber0) {
- t1 = _0_0.get$hasComplexUnits();
- arg = _0_0;
- } else {
- arg = null;
- t1 = false;
- }
- if (t1)
- throw A.wrapException(this._evaluate0$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
- }
- for (i = 0; i < t1 - 1; ++i) {
- number1 = args[i];
- if (!(number1 instanceof A.SassNumber0))
- continue;
- for (j = i + 1; t1 = args.length, j < t1; ++j) {
- number2 = args[j];
- if (!(number2 instanceof A.SassNumber0))
- continue;
- if (number1.hasPossiblyCompatibleUnits$1(number2))
- continue;
- throw A.wrapException(A.MultiSpanSassRuntimeException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._evaluate0$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
- }
- }
- },
- _evaluate0$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
- var result, t2, _0_0, _1_0, t3, _i, i, _this = this, _null = null, _box_0 = {},
- t1 = node instanceof A.ParenthesizedExpression0,
- inner = t1 ? node.expression : _null;
- if (t1) {
- result = _this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction);
- return result instanceof A.SassString0 ? new A.SassString0("(" + result._string0$_text + ")", false) : result;
- }
- if (node instanceof A.StringExpression0 && node.accept$1(new A._IsCalculationSafeVisitor0())) {
- t1 = node.text;
- t2 = t1.get$asPlain();
- _0_0 = t2 == null ? _null : t2.toLowerCase();
- $label0$0: {
- if ("pi" === _0_0) {
- t1 = A.SassNumber_SassNumber0(3.141592653589793, _null);
- break $label0$0;
- }
- if ("e" === _0_0) {
- t1 = A.SassNumber_SassNumber0(2.718281828459045, _null);
- break $label0$0;
- }
- if ("infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber0(1 / 0, _null);
- break $label0$0;
- }
- if ("-infinity" === _0_0) {
- t1 = A.SassNumber_SassNumber0(-1 / 0, _null);
- break $label0$0;
- }
- if ("nan" === _0_0) {
- t1 = A.SassNumber_SassNumber0(0 / 0, _null);
- break $label0$0;
- }
- t1 = new A.SassString0(_this._evaluate0$_performInterpolation$1(t1), false);
- break $label0$0;
- }
- return t1;
- }
- _box_0.right = _box_0.left = _box_0.operator = null;
- t1 = node instanceof A.BinaryOperationExpression0;
- if (t1) {
- _box_0.operator = node.operator;
- _box_0.left = node.left;
- _box_0.right = node.right;
- }
- if (t1) {
- _this._evaluate0$_checkWhitespaceAroundCalculationOperator$1(node);
- return _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure1(_box_0, _this, node, inLegacySassFunction));
- }
- if (node instanceof A.NumberExpression0 || node instanceof A.VariableExpression0 || node instanceof A.FunctionExpression0 || node instanceof A.IfExpression0) {
- _1_0 = node.accept$1(_this);
- $label1$1: {
- if (_1_0 instanceof A.SassNumber0) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassCalculation0) {
- t1 = _1_0;
- break $label1$1;
- }
- if (_1_0 instanceof A.SassString0) {
- t1 = !_1_0._string0$_hasQuotes;
- result = _1_0;
- } else {
- result = _null;
- t1 = false;
- }
- if (t1) {
- t1 = result;
- break $label1$1;
- }
- t1 = A.throwExpression(_this._evaluate0$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
- }
- return t1;
- }
- if (node instanceof A.ListExpression0 && !node.hasBrackets && B.ListSeparator_nbm0 === node.separator && node.contents.length >= 2) {
- t1 = A._setArrayType([], type$.JSArray_Object);
- for (t2 = node.contents, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t1.push(_this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
- _this._evaluate0$_checkAdjacentCalculationValues$2(t1, node);
- for (i = 0; i < t1.length; ++i) {
- t3 = t1[i];
- if (t3 instanceof A.CalculationOperation0 && t2[i] instanceof A.ParenthesizedExpression0)
- t1[i] = new A.SassString0("(" + A.S(t3) + ")", false);
- }
- return new A.SassString0(B.JSArray_methods.join$1(t1, " "), false);
- }
- throw A.wrapException(_this._evaluate0$_exception$2(string$.This_e, node.get$span(node)));
- },
- _evaluate0$_checkWhitespaceAroundCalculationOperator$1(node) {
- var t2, t3, t4, textBetweenOperands, first, last,
- t1 = node.operator;
- if (t1 !== B.BinaryOperator_u150 && t1 !== B.BinaryOperator_SjO0)
- return;
- t1 = node.left;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t3 = node.right;
- t4 = t3.get$span(t3);
- if (t2 !== t4.get$file(t4))
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$end(t2);
- t4 = t3.get$span(t3);
- if (t2.offset >= t4.get$start(t4).offset)
- return;
- t2 = t1.get$span(t1);
- t2 = t2.get$file(t2);
- t1 = t1.get$span(t1);
- t1 = t1.get$end(t1);
- t3 = t3.get$span(t3);
- textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
- first = textBetweenOperands.charCodeAt(0);
- last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
- if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
- t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._evaluate0$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
- },
- _evaluate0$_binaryOperatorToCalculationOperator$2(operator, node) {
- var t1;
- $label0$0: {
- if (B.BinaryOperator_u150 === operator) {
- t1 = B.CalculationOperator_g2q0;
- break $label0$0;
- }
- if (B.BinaryOperator_SjO0 === operator) {
- t1 = B.CalculationOperator_CxF0;
- break $label0$0;
- }
- if (B.BinaryOperator_2No0 === operator) {
- t1 = B.CalculationOperator_1710;
- break $label0$0;
- }
- if (B.BinaryOperator_U770 === operator) {
- t1 = B.CalculationOperator_Qf10;
- break $label0$0;
- }
- t1 = A.throwExpression(this._evaluate0$_exception$2(string$.This_o, node.get$operatorSpan()));
- }
- return t1;
- },
- _evaluate0$_checkAdjacentCalculationValues$2(elements, node) {
- var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
- for (t1 = elements.length, i = 1; i < t1; ++i) {
- t2 = i - 1;
- previous = elements[t2];
- current = elements[i];
- if (previous instanceof A.SassString0 || current instanceof A.SassString0)
- continue;
- t1 = node.contents;
- previousNode = t1[t2];
- currentNode = t1[i];
- if (currentNode instanceof A.UnaryOperationExpression0) {
- _0_2 = currentNode.operator;
- if (B.UnaryOperator_AiQ0 !== _0_2)
- t1 = B.UnaryOperator_cLp0 === _0_2;
- else
- t1 = true;
- } else
- t1 = false;
- if (!t1)
- t1 = currentNode instanceof A.NumberExpression0 && currentNode.value < 0;
- else
- t1 = true;
- if (t1)
- throw A.wrapException(this._evaluate0$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
- else
- throw A.wrapException(this._evaluate0$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
- }
- },
- visitInterpolatedFunctionExpression$1(node) {
- var result, _this = this,
- t1 = _this._evaluate0$_performInterpolation$1(node.name),
- oldInFunction = _this._evaluate0$_inFunction;
- _this._evaluate0$_inFunction = true;
- result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(_this, node, new A.PlainCssCallable0(t1)));
- _this._evaluate0$_inFunction = oldInFunction;
- return result;
- },
- _evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
- var oldCallable, result, _this = this,
- evaluated = _this._evaluate0$_evaluateArguments$1($arguments),
- $name = callable.declaration.name;
- if ($name !== "@content")
- $name += "()";
- oldCallable = _this._evaluate0$_currentCallable;
- _this._evaluate0$_currentCallable = callable;
- result = _this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure1(_this, callable, evaluated, nodeWithSpan, run, $V));
- _this._evaluate0$_currentCallable = oldCallable;
- return result;
- },
- _evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
- var buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, _this = this;
- if (callable instanceof A.BuiltInCallable0)
- return _this._evaluate0$_withoutSlash$2(_this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan);
- else if (type$.UserDefinedCallable_Environment_2._is(callable))
- return _this._evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure1(_this, callable), type$.Value_2);
- else if (callable instanceof A.PlainCssCallable0) {
- t1 = $arguments.named;
- if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
- buffer = new A.StringBuffer(callable.name + "(");
- try {
- first = true;
- for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- argument = t1[_i];
- if (first)
- first = false;
- else
- buffer._contents += ", ";
- t3 = buffer;
- t4 = argument;
- t4 = _this._evaluate0$_serialize$3$quote(t4.accept$1(_this), t4, true);
- t3._contents += t4;
- }
- restArg = $arguments.rest;
- if (restArg != null) {
- rest = restArg.accept$1(_this);
- if (!first)
- buffer._contents += ", ";
- t1 = buffer;
- t2 = _this._evaluate0$_serialize$2(rest, restArg);
- t1._contents += t2;
- }
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassRuntimeException_2._is(t1)) {
- error = t1;
- if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
- throw exception;
- throw A.wrapException(A.MultiSpanSassRuntimeException$0(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
- } else
- throw exception;
- }
- t1 = buffer;
- t2 = A.Primitives_stringFromCharCode(41);
- t1._contents += t2;
- t2 = buffer._contents;
- return new A.SassString0(t2.charCodeAt(0) == 0 ? t2 : t2, false);
- } else
- throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
- },
- _evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
- var result, error, stackTrace, message, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, message0, _this = this, _box_0 = {},
- evaluated = _this._evaluate0$_evaluateArguments$1($arguments),
- oldCallableNode = _this._evaluate0$_callableNode;
- _this._evaluate0$_callableNode = nodeWithSpan;
- namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
- _box_0.callback = _box_0.overload = null;
- _0_0 = callable.callbackFor$2(evaluated._values[2].length, namedSet);
- _box_0.overload = _0_0._0;
- _box_0.callback = _0_0._1;
- _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure5(_box_0, evaluated, namedSet));
- declaredArguments = _box_0.overload.$arguments;
- for (i = evaluated._values[2].length, t1 = declaredArguments.length; i < t1; ++i) {
- argument = declaredArguments[i];
- t2 = evaluated._values[2];
- t3 = evaluated._values[0].remove$1(0, argument.name);
- if (t3 == null) {
- t3 = argument.defaultValue;
- t3 = _this._evaluate0$_withoutSlash$2(t3.accept$1(_this), t3);
- }
- t2.push(t3);
- }
- if (_box_0.overload.restArgument != null) {
- if (evaluated._values[2].length > t1) {
- rest = B.JSArray_methods.sublist$1(evaluated._values[2], t1);
- B.JSArray_methods.removeRange$2(evaluated._values[2], t1, evaluated._values[2].length);
- } else
- rest = B.List_empty19;
- t1 = evaluated._values[0];
- argumentList = A.SassArgumentList$0(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : evaluated._values[4]);
- evaluated._values[2].push(argumentList);
- } else
- argumentList = null;
- result = null;
- try {
- result = _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure6(_box_0, evaluated));
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0)
- throw exception;
- else {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- message = null;
- try {
- message = A._asString(J.get$message$x(error));
- } catch (exception) {
- message0 = J.toString$0$(error);
- message = message0;
- }
- A.throwWithTrace0(_this._evaluate0$_exception$2(message, nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
- }
- }
- _this._evaluate0$_callableNode = oldCallableNode;
- if (argumentList == null)
- return result;
- if (evaluated._values[0].__js_helper$_length === 0)
- return result;
- if (argumentList._argument_list$_wereKeywordsAccessed)
- return result;
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + A.pluralize0("argument", evaluated._values[0].get$keys(0).get$length(0), null) + " named " + A.toSentence0(evaluated._values[0].get$keys(0).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure7(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
- },
- _evaluate0$_evaluateArguments$1($arguments) {
- var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this,
- positional = A._setArrayType([], type$.JSArray_Value_2),
- positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2);
- for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- expression = t1[_i];
- nodeForSpan = _this._evaluate0$_expressionNode$1(expression);
- positional.push(_this._evaluate0$_withoutSlash$2(expression.accept$1(_this), nodeForSpan));
- positionalNodes.push(nodeForSpan);
- }
- t1 = type$.String;
- named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2);
- t2 = type$.AstNode_2;
- namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t3 = A.MapExtensions_get_pairs0($arguments.named, t1, type$.Expression_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- $name = t4._0;
- value = t4._1;
- nodeForSpan = _this._evaluate0$_expressionNode$1(value);
- named.$indexSet(0, $name, _this._evaluate0$_withoutSlash$2(value.accept$1(_this), nodeForSpan));
- namedNodes.$indexSet(0, $name, nodeForSpan);
- }
- restArgs = $arguments.rest;
- if (restArgs == null)
- return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided0]);
- rest = restArgs.accept$1(_this);
- restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs);
- if (rest instanceof A.SassMap0) {
- _this._evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure7());
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();)
- t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan);
- namedNodes.addAll$1(0, t3);
- separator = B.ListSeparator_undecided_null_undecided0;
- } else if (rest instanceof A.SassList0) {
- t3 = rest._list1$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure8(_this, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value0>")));
- B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
- separator = rest._list1$_separator;
- if (rest instanceof A.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure9(_this, named, restNodeForSpan, namedNodes));
- }
- } else {
- positional.push(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan));
- positionalNodes.push(restNodeForSpan);
- separator = B.ListSeparator_undecided_null_undecided0;
- }
- keywordRestArgs = $arguments.keywordRest;
- if (keywordRestArgs == null)
- return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- keywordRest = keywordRestArgs.accept$1(_this);
- keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs);
- if (keywordRest instanceof A.SassMap0) {
- _this._evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure10());
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();)
- t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan);
- namedNodes.addAll$1(0, t1);
- return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
- } else
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
- },
- _evaluate0$_evaluateMacroArguments$1(invocation) {
- var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this,
- t1 = invocation.$arguments,
- restArgs_ = t1.rest;
- if (restArgs_ == null)
- return new A._Record_2(t1.positional, t1.named);
- t2 = t1.positional;
- positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
- named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2);
- rest = restArgs_.accept$1(_this);
- restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs_);
- if (rest instanceof A.SassMap0)
- _this._evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure7(restArgs_));
- else if (rest instanceof A.SassList0) {
- t2 = rest._list1$_contents;
- B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure8(_this, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
- if (rest instanceof A.SassArgumentList0) {
- rest._argument_list$_wereKeywordsAccessed = true;
- rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure9(_this, named, restNodeForSpan, restArgs_));
- }
- } else
- positional.push(new A.ValueExpression0(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
- keywordRestArgs_ = t1.keywordRest;
- if (keywordRestArgs_ == null)
- return new A._Record_2(positional, named);
- keywordRest = keywordRestArgs_.accept$1(_this);
- keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs_);
- if (keywordRest instanceof A.SassMap0) {
- _this._evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure10(_this, keywordRestNodeForSpan, keywordRestArgs_));
- return new A._Record_2(positional, named);
- } else
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
- },
- _evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
- map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure1(this, values, convert, this._evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
- },
- _evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) {
- return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
- },
- _evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
- return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named));
- },
- visitSelectorExpression$1(node) {
- var t1 = this._evaluate0$_styleRuleIgnoringAtRoot;
- t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
- return t1 == null ? B.C__SassNull0 : t1;
- },
- visitStringExpression$1(node) {
- var t1, t2, t3, t4, _i, value, t5, _0_0, text, _this = this,
- oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration;
- _this._evaluate0$_inSupportsDeclaration = false;
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = node.text.contents, t3 = t2.length, t4 = type$.Expression_2, _i = 0; _i < t3; ++_i) {
- value = t2[_i];
- $label0$0: {
- if (typeof value == "string") {
- t5 = value;
- break $label0$0;
- }
- if (t4._is(value)) {
- _0_0 = value.accept$1(_this);
- $label1$1: {
- if (_0_0 instanceof A.SassString0) {
- text = _0_0._string0$_text;
- t5 = text;
- break $label1$1;
- }
- t5 = _this._evaluate0$_serialize$3$quote(_0_0, value, false);
- break $label1$1;
- }
- break $label0$0;
- }
- t5 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
- }
- t1.push(t5);
- }
- t1 = B.JSArray_methods.join$0(t1);
- _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
- return new A.SassString0(t1, node.hasQuotes);
- },
- visitSupportsExpression$1(expression) {
- return new A.SassString0(this._evaluate0$_visitSupportsCondition$1(expression.condition), false);
- },
- visitCssAtRule$1(node) {
- var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
- if (node.isChildless) {
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
- return;
- }
- wasInKeyframes = _this._evaluate0$_inKeyframes;
- wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
- t1 = node.name;
- if (A.unvendor0(t1.value) === "keyframes")
- _this._evaluate0$_inKeyframes = true;
- else
- _this._evaluate0$_inUnknownAtRule = true;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure3(_this, node), false, new A._EvaluateVisitor_visitCssAtRule_closure4(), type$.ModifiableCssAtRule_2, type$.Null);
- _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- _this._evaluate0$_inKeyframes = wasInKeyframes;
- },
- visitCssComment$1(node) {
- var _this = this,
- _s8_ = "__parent",
- _s13_ = "_endOfImports";
- if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) === _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root") && _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root").children._collection$_source))
- _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(node.text, node.span));
- },
- visitCssDeclaration$1(node) {
- this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(node.name, node.value, node.span, node.parsedAsCustomProperty, node.valueSpanForMap));
- },
- visitCssImport$1(node) {
- var t1, _this = this,
- _s8_ = "__parent",
- _s5_ = "_root",
- _s13_ = "_endOfImports",
- modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
- if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(modifiableNode);
- else if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source)) {
- _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).addChild$1(modifiableNode);
- _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
- } else {
- t1 = _this._evaluate0$_outOfOrderImports;
- (t1 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
- }
- },
- visitCssKeyframeBlock$1(node) {
- this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure3(this, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure4(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
- },
- visitCssMediaRule$1(node) {
- var mergedQueries, t1, mergedSources, t2, t3, _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
- mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure5(_this, node));
- t1 = mergedQueries == null;
- if (!t1 && J.get$isEmpty$asx(mergedQueries))
- return;
- if (t1)
- mergedSources = B.Set_empty5;
- else {
- t2 = _this._evaluate0$_mediaQuerySources;
- t2.toString;
- t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
- t3 = _this._evaluate0$_mediaQueries;
- t3.toString;
- t2.addAll$1(0, t3);
- t2.addAll$1(0, node.queries);
- mergedSources = t2;
- }
- t1 = t1 ? node.queries : mergedQueries;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure6(_this, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure7(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null);
- },
- visitCssStyleRule$1(node) {
- var t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild, _this = this, _null = null,
- _s8_ = "__parent";
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_n, node.span));
- else if (_this._evaluate0$_inKeyframes && _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock0)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_k, node.span));
- t1 = _this._evaluate0$_atRootExcludingStyleRule;
- styleRule = t1 ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
- t2 = t1 ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
- t2 = t2 == null ? _null : t2.fromPlainCss;
- nest = t2 !== true;
- t2 = node._style_rule0$_selector._box0$_inner;
- if (nest) {
- t2 = t2.value;
- t3 = styleRule == null ? _null : styleRule.originalSelector;
- originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
- } else
- originalSelector = t2.value;
- rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$2(originalSelector, _this._evaluate0$_mediaQueries), node.span, node.fromPlainCss, originalSelector);
- oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
- _this._evaluate0$_atRootExcludingStyleRule = false;
- t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure3() : _null;
- _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure4(_this, rule, node), false, t1, type$.ModifiableCssStyleRule_2, type$.Null);
- _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children._collection$_source;
- t2 = J.getInterceptor$asx(t1);
- _0_1 = t2.get$length(t1);
- if (_0_1 >= 1) {
- lastChild = t2.elementAt$1(t1, _0_1 - 1);
- t1 = styleRule == null;
- } else {
- lastChild = _null;
- t1 = false;
- }
- if (t1)
- lastChild.isGroupEnd = true;
- },
- visitCssStylesheet$1(node) {
- var t1;
- for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
- t1.get$current(t1).accept$1(this);
- },
- visitCssSupportsRule$1(node) {
- var _this = this;
- if (_this._evaluate0$_declarationName != null)
- throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
- _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure3(_this, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
- },
- _evaluate0$_handleReturn$1$2(list, callback) {
- var t1, _i, _0_0;
- for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) {
- _0_0 = callback.call$1(list[_i]);
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- _evaluate0$_handleReturn$2(list, callback) {
- return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
- },
- _evaluate0$_withEnvironment$1$2(environment, callback) {
- var result,
- oldEnvironment = this._evaluate0$_environment;
- this._evaluate0$_environment = environment;
- result = callback.call$0();
- this._evaluate0$_environment = oldEnvironment;
- return result;
- },
- _evaluate0$_withEnvironment$2(environment, callback) {
- return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic);
- },
- _evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
- var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor),
- t1 = trim ? A.trimAscii0(result, true) : result;
- return new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
- },
- _evaluate0$_interpolationToValue$1(interpolation) {
- return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
- },
- _evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
- return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
- },
- _evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
- return this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor)._0;
- },
- _evaluate0$_performInterpolation$1(interpolation) {
- return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
- },
- _evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
- var _0_0 = this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true),
- map = _0_0._1;
- map.toString;
- return new A._Record_2(_0_0._0, map);
- },
- _evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
- var t1, t2, t3, t4, t5, t6, t7, first, _i, t8, value, result, t9, result0, _this = this, _null = null,
- targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : _null,
- oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration;
- _this._evaluate0$_inSupportsDeclaration = false;
- for (t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression_2, t4 = targetLocations == null, t5 = type$.JSArray_Object, t6 = interpolation.span, t7 = type$.Object, first = true, _i = 0, t8 = ""; _i < t2; ++_i, first = false) {
- value = t1[_i];
- if (!first)
- if (!t4)
- targetLocations.push(A.SourceLocation$(t8.length, _null, _null, _null));
- if (typeof value == "string") {
- t8 += value;
- continue;
- }
- t3._as(value);
- result = value.accept$1(_this);
- if (warnForColor && $.$get$namesByColor0().containsKey$1(result)) {
- t9 = A._setArrayType([""], t5);
- result0 = A.List_List$from(t9, false, t7);
- result0.fixed$length = Array;
- result0.immutable$list = Array;
- result0 = new A.Interpolation0(result0, t6);
- result0.Interpolation$20(t9, t6);
- t9 = $.$get$namesByColor0();
- _this._evaluate0$_warn$2(string$.You_pr + A.S(t9.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t9.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_u150, new A.StringExpression0(result0, true), value, false).toString$0(0) + "'.", value.get$span(value));
- }
- t8 += _this._evaluate0$_serialize$3$quote(result, value, false);
- }
- _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
- return new A._Record_2(t8.charCodeAt(0) == 0 ? t8 : t8, A.NullableExtension_andThen0(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure1(interpolation)));
- },
- _evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) {
- return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure1(value, quote));
- },
- _evaluate0$_serialize$2(value, nodeWithSpan) {
- return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
- },
- _evaluate0$_expressionNode$1(expression) {
- var t1;
- if (expression instanceof A.VariableExpression0) {
- t1 = this._evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure1(this, expression));
- return t1 == null ? expression : t1;
- } else
- return expression;
- },
- _evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
- var t1, result, _this = this;
- _this._evaluate0$_addChild$2$through(node, through);
- t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent");
- _this._evaluate0$__parent = node;
- result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T);
- _this._evaluate0$__parent = t1;
- return result;
- },
- _evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
- return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
- },
- _evaluate0$_withParent$2$2(node, callback, $S, $T) {
- return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
- },
- _evaluate0$_addChild$2$through(node, through) {
- var _0_0, grandparent, t1,
- $parent = this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent");
- if (through != null) {
- for (; through.call$1($parent); $parent = _0_0) {
- _0_0 = $parent._node$_parent;
- if (_0_0 == null)
- throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
- }
- if ($parent.get$hasFollowingSibling()) {
- grandparent = $parent._node$_parent;
- t1 = grandparent.children;
- if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
- $parent = type$.ModifiableCssParentNode_2._as(t1.get$last(t1));
- else {
- $parent = $parent.copyWithoutChildren$0();
- grandparent.addChild$1($parent);
- }
- }
- }
- $parent.addChild$1(node);
- },
- _evaluate0$_addChild$1(node) {
- return this._evaluate0$_addChild$2$through(node, null);
- },
- _evaluate0$_withStyleRule$1$2(rule, callback) {
- var result,
- oldRule = this._evaluate0$_styleRuleIgnoringAtRoot;
- this._evaluate0$_styleRuleIgnoringAtRoot = rule;
- result = callback.call$0();
- this._evaluate0$_styleRuleIgnoringAtRoot = oldRule;
- return result;
- },
- _evaluate0$_withStyleRule$2(rule, callback) {
- return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic);
- },
- _evaluate0$_withMediaQueries$1$3(queries, sources, callback) {
- var result, _this = this,
- oldMediaQueries = _this._evaluate0$_mediaQueries,
- oldSources = _this._evaluate0$_mediaQuerySources;
- _this._evaluate0$_mediaQueries = queries;
- _this._evaluate0$_mediaQuerySources = sources;
- result = callback.call$0();
- _this._evaluate0$_mediaQueries = oldMediaQueries;
- _this._evaluate0$_mediaQuerySources = oldSources;
- return result;
- },
- _evaluate0$_withMediaQueries$3(queries, sources, callback) {
- return this._evaluate0$_withMediaQueries$1$3(queries, sources, callback, type$.dynamic);
- },
- _evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback) {
- var oldMember, result, _this = this,
- t1 = _this._evaluate0$_stack;
- t1.push(new A._Record_2(_this._evaluate0$_member, nodeWithSpan));
- oldMember = _this._evaluate0$_member;
- _this._evaluate0$_member = member;
- result = callback.call$0();
- _this._evaluate0$_member = oldMember;
- t1.pop();
- return result;
- },
- _evaluate0$_withStackFrame$3(member, nodeWithSpan, callback) {
- return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
- },
- _evaluate0$_withoutSlash$2(value, nodeForSpan) {
- var t1;
- if (value instanceof A.SassNumber0)
- t1 = value.asSlash != null;
- else
- t1 = false;
- if (t1)
- this._evaluate0$_warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation1().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_E8a);
- return value.withoutSlash$0();
- },
- _evaluate0$_stackFrame$2(member, span) {
- return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure1(this)));
- },
- _evaluate0$_stackTrace$1(span) {
- var t2, t3, _i, t4, nodeWithSpan, _this = this,
- t1 = A._setArrayType([], type$.JSArray_Frame);
- for (t2 = _this._evaluate0$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- t4 = t2[_i];
- nodeWithSpan = t4._1;
- t1.push(_this._evaluate0$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
- }
- if (span != null)
- t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span));
- return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
- },
- _evaluate0$_stackTrace$0() {
- return this._evaluate0$_stackTrace$1(null);
- },
- _evaluate0$_warn$3(message, span, deprecation) {
- var t1, trace, _this = this;
- if (_this._evaluate0$_quietDeps)
- if (!_this._evaluate0$_inDependency) {
- t1 = _this._evaluate0$_currentCallable;
- t1 = t1 == null ? null : t1.inDependency;
- t1 = t1 === true;
- } else
- t1 = true;
- else
- t1 = false;
- if (t1)
- return;
- if (!_this._evaluate0$_warningsEmitted.add$1(0, new A._Record_2(message, span)))
- return;
- trace = _this._evaluate0$_stackTrace$1(span);
- t1 = _this._evaluate0$_logger;
- if (deprecation == null)
- t1.warn$3$span$trace(0, message, span, trace);
- else
- A.WarnForDeprecation_warnForDeprecation0(t1, deprecation, message, span, trace);
- },
- _evaluate0$_warn$2(message, span) {
- return this._evaluate0$_warn$3(message, span, null);
- },
- _evaluate0$_exception$2(message, span) {
- var t1, t2;
- if (span == null) {
- t1 = B.JSArray_methods.get$last(this._evaluate0$_stack)._1;
- t1 = t1.get$span(t1);
- } else
- t1 = span;
- t2 = this._evaluate0$_stackTrace$1(span);
- return new A.SassRuntimeException0(t2, B.Set_empty, message, t1);
- },
- _evaluate0$_exception$1(message) {
- return this._evaluate0$_exception$2(message, null);
- },
- _evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
- var t1 = B.JSArray_methods.get$last(this._evaluate0$_stack)._1;
- return A.MultiSpanSassRuntimeException$0(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._evaluate0$_stackTrace$0(), null);
- },
- _evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
- var error, stackTrace, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassScriptException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
- A.throwWithTrace0(t1.withTrace$1(this._evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
- } else
- throw exception;
- }
- },
- _evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) {
- return this._evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, true, type$.dynamic);
- },
- _evaluate0$_addExceptionSpan$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
- return this._evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, type$.dynamic);
- },
- _evaluate0$_addExceptionTrace$1$1(callback) {
- var error, stackTrace, t1, exception, t2;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassRuntimeException_2._is(t1))
- throw exception;
- else if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- A.throwWithTrace0(error.withTrace$1(this._evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
- } else
- throw exception;
- }
- },
- _evaluate0$_addExceptionTrace$1(callback) {
- return this._evaluate0$_addExceptionTrace$1$1(callback, type$.dynamic);
- },
- _evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback) {
- var error, stackTrace, t1, exception, t2, t3;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SassRuntimeException_2._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
- throw exception;
- t1 = error._span_exception$_message;
- t2 = nodeWithSpan.get$span(nodeWithSpan);
- t3 = this._evaluate0$_stackTrace$0();
- A.throwWithTrace0(new A.SassRuntimeException0(t3, B.Set_empty, t1, t2), error, stackTrace);
- } else
- throw exception;
- }
- },
- _evaluate0$_addErrorSpan$2(nodeWithSpan, callback) {
- return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
- }
- };
- A._EvaluateVisitor_closure25.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._evaluate0$_environment;
- t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
- return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure26.prototype = {
- call$1($arguments) {
- var variable = J.$index$asx($arguments, 0).assertString$1("name"),
- t1 = this.$this._evaluate0$_environment;
- return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure27.prototype = {
- call$1($arguments) {
- var module, t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._evaluate0$_environment;
- t3 = variable._string0$_text;
- t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
- return t2.getFunction$2$namespace(t4, module == null ? null : module._string0$_text) != null || t1._evaluate0$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure28.prototype = {
- call$1($arguments) {
- var module, t2,
- t1 = J.getInterceptor$asx($arguments),
- variable = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this._evaluate0$_environment;
- t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
- return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure29.prototype = {
- call$1($arguments) {
- var t1 = this.$this._evaluate0$_environment;
- if (!t1._environment0$_inMixin)
- throw A.wrapException(A.SassScriptException$0(string$.conten, null));
- return t1._environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._EvaluateVisitor_closure30.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
- module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs0(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString0(t4._0, true), t4._1);
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 36
- };
- A._EvaluateVisitor_closure31.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
- module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs0(module.get$functions(module), type$.String, type$.Callable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassFunction0(t4._1));
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 36
- };
- A._EvaluateVisitor_closure32.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
- module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
- if (module == null)
- throw A.wrapException('There is no module with namespace "' + t1 + '".');
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs0(module.get$mixins(), type$.String, type$.Callable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassMixin0(t4._1));
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 36
- };
- A._EvaluateVisitor_closure33.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name"),
- css = t1.$index($arguments, 1).get$isTruthy();
- t1 = t1.$index($arguments, 2).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- if (css) {
- if (module != null)
- throw A.wrapException(string$.x24css_a);
- return new A.SassFunction0(new A.PlainCssCallable0($name._string0$_text));
- }
- t1 = this.$this;
- t2 = t1._evaluate0$_callableNode;
- t2.toString;
- callable = t1._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure10(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Function not found: " + $name.toString$0(0));
- return new A.SassFunction0(callable);
- },
- $signature: 135
- };
- A._EvaluateVisitor__closure10.prototype = {
- call$0() {
- var local,
- normalizedName = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
- t1 = this.module,
- namespace = t1 == null ? null : t1._string0$_text;
- t1 = this.$this;
- local = t1._evaluate0$_environment.getFunction$2$namespace(normalizedName, namespace);
- if (local != null || namespace != null)
- return local;
- return t1._evaluate0$_builtInFunctions.$index(0, normalizedName);
- },
- $signature: 85
- };
- A._EvaluateVisitor_closure34.prototype = {
- call$1($arguments) {
- var module, t2, callable,
- t1 = J.getInterceptor$asx($arguments),
- $name = t1.$index($arguments, 0).assertString$1("name");
- t1 = t1.$index($arguments, 1).get$realNull();
- module = t1 == null ? null : t1.assertString$1("module");
- t1 = this.$this;
- t2 = t1._evaluate0$_callableNode;
- t2.toString;
- callable = t1._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure9(t1, $name, module));
- if (callable == null)
- throw A.wrapException("Mixin not found: " + $name.toString$0(0));
- return new A.SassMixin0(callable);
- },
- $signature: 242
- };
- A._EvaluateVisitor__closure9.prototype = {
- call$0() {
- var t1 = this.$this._evaluate0$_environment,
- t2 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
- t3 = this.module;
- return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string0$_text);
- },
- $signature: 85
- };
- A._EvaluateVisitor_closure35.prototype = {
- call$1($arguments) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, callable,
- t1 = J.getInterceptor$asx($arguments),
- $function = t1.$index($arguments, 0),
- args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- t1 = this.$this;
- t2 = t1._evaluate0$_callableNode;
- t2.toString;
- t3 = A._setArrayType([], type$.JSArray_Expression_2);
- t4 = type$.String;
- t5 = type$.Expression_2;
- t6 = t2.get$span(t2);
- t7 = t2.get$span(t2);
- args._argument_list$_wereKeywordsAccessed = true;
- t8 = args._argument_list$_keywords;
- if (t8.get$isEmpty(t8))
- t2 = null;
- else {
- t9 = type$.Value_2;
- t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
- for (args._argument_list$_wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs0(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
- t11 = t8.get$current(t8);
- t10.$indexSet(0, new A.SassString0(t11._0, false), t11._1);
- }
- t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
- }
- invocation = new A.ArgumentInvocation0(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression0(args, t7), t2, t6);
- if ($function instanceof A.SassString0) {
- A.warnForDeprecation0(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_MMc);
- callableNode = t1._evaluate0$_callableNode;
- t2 = $function._string0$_text;
- t3 = callableNode.get$span(callableNode);
- return t1.visitFunctionExpression$1(new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
- }
- callable = $function.assertFunction$1("function").callable;
- if (type$.Callable_2._is(callable)) {
- t2 = t1._evaluate0$_callableNode;
- t2.toString;
- return t1._evaluate0$_runFunctionCallable$3(invocation, callable, t2);
- } else
- throw A.wrapException(A.SassScriptException$0("The function " + callable.get$name(callable) + string$.x20is_as, null));
- },
- $signature: 3
- };
- A._EvaluateVisitor_closure36.prototype = {
- call$1($arguments) {
- var withMap, t2, values, configuration, t3,
- t1 = J.getInterceptor$asx($arguments),
- url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text);
- t1 = t1.$index($arguments, 1).get$realNull();
- withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents;
- t1 = this.$this;
- t2 = t1._evaluate0$_callableNode;
- t2.toString;
- if (withMap != null) {
- values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
- withMap.forEach$1(0, new A._EvaluateVisitor__closure7(values, t2.get$span(t2), t2));
- configuration = new A.ExplicitConfiguration0(t2, values, null);
- } else
- configuration = B.Configuration_Map_empty_null0;
- t3 = t2.get$span(t2);
- t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure8(t1), t3.get$sourceUrl(t3), configuration, true);
- t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
- },
- $signature: 192
- };
- A._EvaluateVisitor__closure7.prototype = {
- call$2(variable, value) {
- var t1 = variable.assertString$1("with key"),
- $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-");
- t1 = this.values;
- if (t1.containsKey$1($name))
- throw A.wrapException("The variable $" + $name + " was configured twice.");
- t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode));
- },
- $signature: 76
- };
- A._EvaluateVisitor__closure8.prototype = {
- call$2(module, _) {
- var t1 = this.$this;
- return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
- },
- $signature: 80
- };
- A._EvaluateVisitor_closure37.prototype = {
- call$1($arguments) {
- var callableNode, t2, t3, t4, t5, callable, $content,
- t1 = J.getInterceptor$asx($arguments),
- mixin = t1.$index($arguments, 0),
- args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
- t1 = this.$this;
- callableNode = t1._evaluate0$_callableNode;
- t2 = callableNode.get$span(callableNode);
- t3 = callableNode.get$span(callableNode);
- t4 = type$.Expression_2;
- t5 = A.List_List$unmodifiable(B.List_empty20, t4);
- t4 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t4);
- callable = mixin.assertMixin$1("mixin").callable;
- $content = t1._evaluate0$_environment._environment0$_content;
- if (type$.Callable_2._is(callable))
- t1._evaluate0$_applyMixin$5(callable, $content, new A.ArgumentInvocation0(t5, t4, new A.ValueExpression0(args, t3), null, t2), callableNode, callableNode);
- else
- throw A.wrapException(A.SassScriptException$0("The mixin " + callable.get$name(callable) + string$.x20is_as, null));
- },
- $signature: 192
- };
- A._EvaluateVisitor_run_closure1.prototype = {
- call$0() {
- var module, t2, _this = this,
- t1 = _this.node,
- _0_0 = t1.span.file.url,
- url = null;
- if (_0_0 != null) {
- url = _0_0;
- t2 = _this.$this;
- t2._evaluate0$_activeModules.$indexSet(0, url, null);
- if (!(t2._nodeImporter != null && J.toString$0$(url) === "stdin"))
- t2._evaluate0$_loadedUrls.add$1(0, url);
- }
- t2 = _this.$this;
- module = t2._evaluate0$_addExceptionTrace$1(new A._EvaluateVisitor_run__closure1(t2, _this.importer, t1));
- return new A._Record_2_loadedUrls_stylesheet(t2._evaluate0$_loadedUrls, t2._evaluate0$_combineCss$1(module));
- },
- $signature: 428
- };
- A._EvaluateVisitor_run__closure1.prototype = {
- call$0() {
- return this.$this._evaluate0$_execute$2(this.importer, this.node);
- },
- $signature: 429
- };
- A._EvaluateVisitor__loadModule_closure3.prototype = {
- call$0() {
- return this.callback.call$2(this._box_1.builtInModule, false);
- },
- $signature: 0
- };
- A._EvaluateVisitor__loadModule_closure4.prototype = {
- call$0() {
- var canonicalUrl, oldInDependency, t4, message, _this = this, t1 = {}, stylesheet = null, importer = null,
- t2 = _this.$this,
- t3 = _this.nodeWithSpan,
- _1_0 = t2._evaluate0$_loadStylesheet$3$baseUrl(_this.url.toString$0(0), t3.get$span(t3), _this.baseUrl);
- stylesheet = _1_0._0;
- importer = _1_0._1;
- canonicalUrl = stylesheet.span.file.url;
- if (canonicalUrl != null) {
- t4 = t2._evaluate0$_activeModules;
- if (t4.containsKey$1(canonicalUrl)) {
- if (_this.namesInErrors) {
- t1 = canonicalUrl;
- t3 = $.$get$context();
- t1.toString;
- message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
- } else
- message = string$.Modulel;
- t1 = A.NullableExtension_andThen0(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure3(t2, message));
- throw A.wrapException(t1 == null ? t2._evaluate0$_exception$1(message) : t1);
- } else
- t4.$indexSet(0, canonicalUrl, t3);
- }
- t4 = t2._evaluate0$_modules.containsKey$1(canonicalUrl);
- oldInDependency = t2._evaluate0$_inDependency;
- t2._evaluate0$_inDependency = _1_0._2;
- t1.module = null;
- try {
- t1.module = t2._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t3);
- } finally {
- t2._evaluate0$_activeModules.remove$1(0, canonicalUrl);
- t2._evaluate0$_inDependency = oldInDependency;
- }
- t2._evaluate0$_addExceptionSpan$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure4(t1, _this.callback, !t4), false);
- },
- $signature: 1
- };
- A._EvaluateVisitor__loadModule__closure3.prototype = {
- call$1(previousLoad) {
- return this.$this._evaluate0$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 94
- };
- A._EvaluateVisitor__loadModule__closure4.prototype = {
- call$0() {
- return this.callback.call$2(this._box_0.module, this.firstLoad);
- },
- $signature: 0
- };
- A._EvaluateVisitor__execute_closure1.prototype = {
- call$0() {
- var t3, t4, t5, t6, _this = this,
- t1 = _this.$this,
- oldImporter = t1._evaluate0$_importer,
- oldStylesheet = t1._evaluate0$__stylesheet,
- oldRoot = t1._evaluate0$__root,
- oldPreModuleComments = t1._evaluate0$_preModuleComments,
- oldParent = t1._evaluate0$__parent,
- oldEndOfImports = t1._evaluate0$__endOfImports,
- oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
- oldExtensionStore = t1._evaluate0$__extensionStore,
- t2 = t1._evaluate0$_atRootExcludingStyleRule,
- oldStyleRule = t2 ? null : t1._evaluate0$_styleRuleIgnoringAtRoot,
- oldMediaQueries = t1._evaluate0$_mediaQueries,
- oldDeclarationName = t1._evaluate0$_declarationName,
- oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule,
- oldInKeyframes = t1._evaluate0$_inKeyframes,
- oldConfiguration = t1._evaluate0$_configuration;
- t1._evaluate0$_importer = _this.importer;
- t3 = t1._evaluate0$__stylesheet = _this.stylesheet;
- t4 = t3.span;
- t5 = t1._evaluate0$__parent = t1._evaluate0$__root = A.ModifiableCssStylesheet$0(t4);
- t1._evaluate0$__endOfImports = 0;
- t1._evaluate0$_outOfOrderImports = null;
- t1._evaluate0$__extensionStore = _this.extensionStore;
- t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRuleIgnoringAtRoot = null;
- t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false;
- t6 = _this.configuration;
- if (t6 != null)
- t1._evaluate0$_configuration = t6;
- t1.visitStylesheet$1(t3);
- t3 = t1._evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4);
- _this.css.__late_helper$_value = t3;
- _this.preModuleComments.__late_helper$_value = t1._evaluate0$_preModuleComments;
- t1._evaluate0$_importer = oldImporter;
- t1._evaluate0$__stylesheet = oldStylesheet;
- t1._evaluate0$__root = oldRoot;
- t1._evaluate0$_preModuleComments = oldPreModuleComments;
- t1._evaluate0$__parent = oldParent;
- t1._evaluate0$__endOfImports = oldEndOfImports;
- t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- t1._evaluate0$__extensionStore = oldExtensionStore;
- t1._evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule;
- t1._evaluate0$_mediaQueries = oldMediaQueries;
- t1._evaluate0$_declarationName = oldDeclarationName;
- t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
- t1._evaluate0$_atRootExcludingStyleRule = t2;
- t1._evaluate0$_inKeyframes = oldInKeyframes;
- t1._evaluate0$_configuration = oldConfiguration;
- },
- $signature: 1
- };
- A._EvaluateVisitor__combineCss_closure3.prototype = {
- call$1(module) {
- return module.get$transitivelyContainsCss();
- },
- $signature: 121
- };
- A._EvaluateVisitor__combineCss_closure4.prototype = {
- call$1(target) {
- return !this.selectors.contains$1(0, target);
- },
- $signature: 14
- };
- A._EvaluateVisitor__combineCss_visitModule1.prototype = {
- call$1(module) {
- var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
- if (!_this.seen.add$1(0, module))
- return;
- if (_this.clone)
- module = module.cloneCss$0();
- for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- upstream = t1[_i];
- if (upstream.get$transitivelyContainsCss()) {
- _1_0 = module.get$preModuleComments().$index(0, upstream);
- if (_1_0 != null)
- B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
- _this.call$1(upstream);
- }
- }
- _this.sorted.addFirst$1(module);
- t1 = module.get$css(module);
- statements = t1.get$children(t1);
- index = _this.$this._evaluate0$_indexAfterImports$1(statements);
- t1 = J.getInterceptor$ax(statements);
- B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
- B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
- },
- $signature: 430
- };
- A._EvaluateVisitor__extendModules_closure3.prototype = {
- call$1(target) {
- return !this.originalSelectors.contains$1(0, target);
- },
- $signature: 14
- };
- A._EvaluateVisitor__extendModules_closure4.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_ExtensionStore_2);
- },
- $signature: 264
- };
- A._EvaluateVisitor_visitAtRootRule_closure3.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitAtRootRule_closure4.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 0
- };
- A._EvaluateVisitor__scopeForAtRoot_closure11.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent");
- t1._evaluate0$__parent = this.newParent;
- t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
- t1._evaluate0$__parent = t2;
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot_closure12.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule;
- t1._evaluate0$_atRootExcludingStyleRule = true;
- this.innerScope.call$1(callback);
- t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot_closure13.prototype = {
- call$1(callback) {
- return this.$this._evaluate0$_withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback));
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot__closure1.prototype = {
- call$0() {
- return this.innerScope.call$1(this.callback);
- },
- $signature: 1
- };
- A._EvaluateVisitor__scopeForAtRoot_closure14.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- wasInKeyframes = t1._evaluate0$_inKeyframes;
- t1._evaluate0$_inKeyframes = false;
- this.innerScope.call$1(callback);
- t1._evaluate0$_inKeyframes = wasInKeyframes;
- },
- $signature: 32
- };
- A._EvaluateVisitor__scopeForAtRoot_closure15.prototype = {
- call$1($parent) {
- return $parent instanceof A.ModifiableCssAtRule0;
- },
- $signature: 237
- };
- A._EvaluateVisitor__scopeForAtRoot_closure16.prototype = {
- call$1(callback) {
- var t1 = this.$this,
- wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule;
- t1._evaluate0$_inUnknownAtRule = false;
- this.innerScope.call$1(callback);
- t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
- },
- $signature: 32
- };
- A._EvaluateVisitor_visitContentRule_closure1.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- return null;
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitDeclaration_closure1.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this._box_0.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitEachRule_closure5.prototype = {
- call$1(value) {
- var t1 = this.$this,
- t2 = this.nodeWithSpan;
- return t1._evaluate0$_environment.setLocalVariable$3(this._box_0.variable, t1._evaluate0$_withoutSlash$2(value, t2), t2);
- },
- $signature: 62
- };
- A._EvaluateVisitor_visitEachRule_closure6.prototype = {
- call$1(value) {
- return this.$this._evaluate0$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
- },
- $signature: 62
- };
- A._EvaluateVisitor_visitEachRule_closure7.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node));
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitEachRule__closure1.prototype = {
- call$1(element) {
- var t1;
- this.setVariables.call$1(element);
- t1 = this.$this;
- return t1._evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure1(t1));
- },
- $signature: 190
- };
- A._EvaluateVisitor_visitEachRule___closure1.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 101
- };
- A._EvaluateVisitor_visitAtRule_closure5.prototype = {
- call$1(value) {
- return this.$this._evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true);
- },
- $signature: 433
- };
- A._EvaluateVisitor_visitAtRule_closure6.prototype = {
- call$0() {
- var t2, t3, _i, _this = this,
- t1 = _this.$this,
- styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
- if (styleRule == null || t1._evaluate0$_inKeyframes || J.$eq$(_this.name.value, "font-face"))
- for (t2 = _this.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- else
- t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure1(t1, _this.children), false, type$.ModifiableCssStyleRule_2, type$.Null);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitAtRule__closure1.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitAtRule_closure7.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitForRule_closure9.prototype = {
- call$0() {
- return this.node.from.accept$1(this.$this).assertNumber$0();
- },
- $signature: 212
- };
- A._EvaluateVisitor_visitForRule_closure10.prototype = {
- call$0() {
- return this.node.to.accept$1(this.$this).assertNumber$0();
- },
- $signature: 212
- };
- A._EvaluateVisitor_visitForRule_closure11.prototype = {
- call$0() {
- return this.fromNumber.assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure12.prototype = {
- call$0() {
- var t1 = this.fromNumber;
- return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
- },
- $signature: 10
- };
- A._EvaluateVisitor_visitForRule_closure13.prototype = {
- call$0() {
- var i, t3, t4, t5, t6, t7, t8, _0_0, _this = this,
- t1 = _this.$this,
- t2 = _this.node,
- nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from);
- for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t6 = _this.fromNumber, t2 = t2.children; i !== t3.to; i += t4) {
- t7 = t1._evaluate0$_environment;
- t8 = t6.get$numeratorUnits(t6);
- t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
- _0_0 = t1._evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure1(t1));
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitForRule__closure1.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 101
- };
- A._EvaluateVisitor_visitForwardRule_closure3.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._evaluate0$_registerCommentsForModule$1(module);
- this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
- },
- $signature: 80
- };
- A._EvaluateVisitor_visitForwardRule_closure4.prototype = {
- call$2(module, firstLoad) {
- if (firstLoad)
- this.$this._evaluate0$_registerCommentsForModule$1(module);
- this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
- },
- $signature: 80
- };
- A._EvaluateVisitor__registerCommentsForModule_closure1.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_CssComment_2);
- },
- $signature: 229
- };
- A._EvaluateVisitor_visitIfRule_closure1.prototype = {
- call$1(clause) {
- var t1 = this.$this;
- return t1._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure1(t1, clause), true, clause.hasDeclarations, type$.nullable_Value_2);
- },
- $signature: 435
- };
- A._EvaluateVisitor_visitIfRule__closure1.prototype = {
- call$0() {
- var t1 = this.$this;
- return t1._evaluate0$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure1(t1));
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitIfRule___closure1.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 101
- };
- A._EvaluateVisitor__visitDynamicImport_closure1.prototype = {
- call$0() {
- var t1, t2, _0_0, stylesheet, importer, isDependency, url, t3, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0 = {};
- _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
- t1 = this.$this;
- t2 = this.$import;
- _0_0 = t1._evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true);
- stylesheet = _box_0.stylesheet = _0_0._0;
- importer = _0_0._1;
- _box_0.importer = importer;
- isDependency = _0_0._2;
- _box_0.isDependency = isDependency;
- url = stylesheet.span.file.url;
- if (url != null) {
- t3 = t1._evaluate0$_activeModules;
- if (t3.containsKey$1(url)) {
- t2 = A.NullableExtension_andThen0(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure7(t1));
- throw A.wrapException(t2 == null ? t1._evaluate0$_exception$1("This file is already being loaded.") : t2);
- }
- t3.$indexSet(0, url, t2);
- }
- t2 = stylesheet._stylesheet1$_uses;
- t3 = type$.UnmodifiableListView_UseRule_2;
- if (new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2).get$length(0) === 0) {
- oldImporter = t1._evaluate0$_importer;
- t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet");
- oldInDependency = t1._evaluate0$_inDependency;
- t1._evaluate0$_importer = importer;
- t1._evaluate0$__stylesheet = stylesheet;
- t1._evaluate0$_inDependency = isDependency;
- t1.visitStylesheet$1(stylesheet);
- t1._evaluate0$_importer = oldImporter;
- t1._evaluate0$__stylesheet = t2;
- t1._evaluate0$_inDependency = oldInDependency;
- t1._evaluate0$_activeModules.remove$1(0, url);
- return;
- }
- t2 = new A.UnmodifiableListView(t2, t3);
- if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure8())) {
- t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure9());
- } else
- loadsUserDefinedModules = true;
- children = A._Cell$();
- t2 = t1._evaluate0$_environment;
- t3 = type$.String;
- t4 = type$.Module_Callable_2;
- t5 = type$.AstNode_2;
- t6 = A._setArrayType([], type$.JSArray_Module_Callable_2);
- t7 = t2._environment0$_variables;
- t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
- t8 = t2._environment0$_variableNodes;
- t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
- t9 = t2._environment0$_functions;
- t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
- t10 = t2._environment0$_mixins;
- t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
- environment = A.Environment$_0(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._environment0$_importedModules, null, null, t6, t7, t8, t9, t10, t2._environment0$_content);
- t1._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure10(_box_0, t1, loadsUserDefinedModules, environment, children));
- module = environment.toDummyModule$0();
- t1._evaluate0$_environment.importForwards$1(module);
- if (loadsUserDefinedModules) {
- if (module.transitivelyContainsCss)
- t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
- visitor = new A._ImportedCssVisitor1(t1);
- for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
- t2.get$current(t2).accept$1(visitor);
- }
- t1._evaluate0$_activeModules.remove$1(0, url);
- },
- $signature: 0
- };
- A._EvaluateVisitor__visitDynamicImport__closure7.prototype = {
- call$1(previousLoad) {
- return this.$this._evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
- },
- $signature: 94
- };
- A._EvaluateVisitor__visitDynamicImport__closure8.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 228
- };
- A._EvaluateVisitor__visitDynamicImport__closure9.prototype = {
- call$1(rule) {
- return rule.url.get$scheme() !== "sass";
- },
- $signature: 227
- };
- A._EvaluateVisitor__visitDynamicImport__closure10.prototype = {
- call$0() {
- var t7, t8, _this = this,
- t1 = _this.$this,
- oldImporter = t1._evaluate0$_importer,
- t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet"),
- t3 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root"),
- t4 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent"),
- t5 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, "_endOfImports"),
- oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
- oldConfiguration = t1._evaluate0$_configuration,
- oldInDependency = t1._evaluate0$_inDependency,
- t6 = _this._box_0;
- t1._evaluate0$_importer = t6.importer;
- t7 = t6.stylesheet;
- t1._evaluate0$__stylesheet = t7;
- t8 = _this.loadsUserDefinedModules;
- if (t8) {
- t7 = A.ModifiableCssStylesheet$0(t7.span);
- t1._evaluate0$__root = t7;
- t1._evaluate0$__parent = t1._evaluate0$_assertInModule$2(t7, "_root");
- t1._evaluate0$__endOfImports = 0;
- t1._evaluate0$_outOfOrderImports = null;
- }
- t1._evaluate0$_inDependency = t6.isDependency;
- t7 = new A.UnmodifiableListView(t6.stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
- if (!t7.get$isEmpty(t7))
- t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0();
- t1.visitStylesheet$1(t6.stylesheet);
- t6 = t8 ? t1._evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
- _this.children.__late_helper$_value = t6;
- t1._evaluate0$_importer = oldImporter;
- t1._evaluate0$__stylesheet = t2;
- if (t8) {
- t1._evaluate0$__root = t3;
- t1._evaluate0$__parent = t4;
- t1._evaluate0$__endOfImports = t5;
- t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
- }
- t1._evaluate0$_configuration = oldConfiguration;
- t1._evaluate0$_inDependency = oldInDependency;
- },
- $signature: 1
- };
- A._EvaluateVisitor__applyMixin_closure3.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- t1._evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure4(t1, _this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent));
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin__closure4.prototype = {
- call$0() {
- var _this = this;
- _this.$this._evaluate0$_runBuiltInCallable$3(_this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent);
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin_closure4.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this;
- t1._evaluate0$_environment.withContent$2(_this.contentCallable, new A._EvaluateVisitor__applyMixin__closure3(t1, _this.mixin, _this.nodeWithSpanWithoutContent));
- },
- $signature: 1
- };
- A._EvaluateVisitor__applyMixin__closure3.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure1(t1, this.mixin, this.nodeWithSpanWithoutContent));
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin___closure1.prototype = {
- call$0() {
- var t1, t2, t3, t4, _i;
- for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpanWithoutContent, _i = 0; _i < t2; ++_i)
- t3._evaluate0$_addErrorSpan$2(t4, new A._EvaluateVisitor__applyMixin____closure1(t3, t1[_i]));
- },
- $signature: 0
- };
- A._EvaluateVisitor__applyMixin____closure1.prototype = {
- call$0() {
- return this.statement.accept$1(this.$this);
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitIncludeRule_closure5.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
- },
- $signature: 85
- };
- A._EvaluateVisitor_visitIncludeRule_closure6.prototype = {
- call$1($content) {
- var t1 = this.$this;
- return new A.UserDefinedCallable0($content, t1._evaluate0$_environment.closure$0(), t1._evaluate0$_inDependency, type$.UserDefinedCallable_Environment_2);
- },
- $signature: 436
- };
- A._EvaluateVisitor_visitIncludeRule_closure7.prototype = {
- call$0() {
- return this.node.get$spanWithoutContent();
- },
- $signature: 27
- };
- A._EvaluateVisitor_visitMediaRule_closure5.prototype = {
- call$1(mediaQueries) {
- return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries);
- },
- $signature: 100
- };
- A._EvaluateVisitor_visitMediaRule_closure6.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.queries;
- t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitMediaRule__closure1.prototype = {
- call$0() {
- var t2, t3, _i,
- t1 = this.$this,
- _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitMediaRule___closure1.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitMediaRule_closure7.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule0)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitStyleRule_closure7.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitStyleRule_closure8.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitStyleRule_closure10.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure1(t1, this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitStyleRule__closure1.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitStyleRule_closure9.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor__warnForBogusCombinators_closure1.prototype = {
- call$1(child) {
- return child instanceof A.ModifiableCssComment0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitSupportsRule_closure3.prototype = {
- call$0() {
- var t2, t3, _i,
- t1 = this.$this,
- _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(t1);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitSupportsRule__closure1.prototype = {
- call$0() {
- var t1, t2, t3, _i;
- for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
- t1[_i].accept$1(t3);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitSupportsRule_closure4.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor__visitSupportsCondition_closure1.prototype = {
- call$0() {
- var t4,
- t1 = this.$this,
- t2 = this._box_0,
- t3 = t2.declaration.name;
- t3 = t1._evaluate0$_serialize$3$quote(t3.accept$1(t1), t3, true);
- t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
- t2 = t2.declaration.value;
- return "(" + t3 + ":" + t4 + t1._evaluate0$_serialize$3$quote(t2.accept$1(t1), t2, true) + ")";
- },
- $signature: 26
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = {
- call$0() {
- var t1 = this.$this._evaluate0$_environment,
- t2 = this._box_0.override;
- t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.node;
- t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitUseRule_closure1.prototype = {
- call$2(module, firstLoad) {
- var t1, t2, t3, _0_0, t4, t5, span;
- if (firstLoad)
- this.$this._evaluate0$_registerCommentsForModule$1(module);
- t1 = this.$this._evaluate0$_environment;
- t2 = this.node;
- t3 = t2.namespace;
- if (t3 == null) {
- t1._environment0$_globalModules.$indexSet(0, module, t2);
- t1._environment0$_allModules.push(module);
- _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._environment0$_variables)), module.get$variables().get$containsKey());
- if (_0_0 != null)
- A.throwExpression(A.SassScriptException$0(string$.This_ma + _0_0 + '".', null));
- } else {
- t4 = t1._environment0$_modules;
- if (t4.containsKey$1(t3)) {
- t5 = t1._environment0$_namespaceNodes.$index(0, t3);
- span = t5 == null ? null : t5.span;
- t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
- if (span != null)
- t5.$indexSet(0, span, "original @use");
- A.throwExpression(A.MultiSpanSassScriptException$0(string$.There_ + t3 + '".', "new @use", t5));
- }
- t4.$indexSet(0, t3, module);
- t1._environment0$_namespaceNodes.$indexSet(0, t3, t2);
- t1._environment0$_allModules.push(module);
- }
- },
- $signature: 80
- };
- A._EvaluateVisitor_visitWarnRule_closure1.prototype = {
- call$0() {
- return this.node.expression.accept$1(this.$this);
- },
- $signature: 47
- };
- A._EvaluateVisitor_visitWhileRule_closure1.prototype = {
- call$0() {
- var t1, t2, t3, _0_0;
- for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
- _0_0 = t3._evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure1(t3));
- if (_0_0 != null)
- return _0_0;
- }
- return null;
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitWhileRule__closure1.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 101
- };
- A._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = {
- call$0() {
- var t1 = this.node,
- t2 = this.$this,
- left = t1.left.accept$1(t2);
- switch (t1.operator) {
- case B.BinaryOperator_wdM0:
- t1 = t1.right.accept$1(t2);
- t1 = new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(t1, false, true), false);
- break;
- case B.BinaryOperator_qNM0:
- t1 = left.get$isTruthy() ? left : t1.right.accept$1(t2);
- break;
- case B.BinaryOperator_eDt0:
- t1 = left.get$isTruthy() ? t1.right.accept$1(t2) : left;
- break;
- case B.BinaryOperator_g8k0:
- t1 = left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- break;
- case B.BinaryOperator_icU0:
- t1 = !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- break;
- case B.BinaryOperator_bEa0:
- t1 = left.greaterThan$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_oEm0:
- t1 = left.greaterThanOrEquals$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_miq0:
- t1 = left.lessThan$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_SPQ0:
- t1 = left.lessThanOrEquals$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_u150:
- t1 = left.plus$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_SjO0:
- t1 = left.minus$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_2No0:
- t1 = left.times$1(t1.right.accept$1(t2));
- break;
- case B.BinaryOperator_U770:
- t1 = t2._evaluate0$_slash$3(left, t1.right.accept$1(t2), t1);
- break;
- case B.BinaryOperator_KNx0:
- t1 = left.modulo$1(t1.right.accept$1(t2));
- break;
- default:
- t1 = null;
- }
- return t1;
- },
- $signature: 47
- };
- A._EvaluateVisitor__slash_recommendation1.prototype = {
- call$1(expression) {
- var t1;
- $label0$0: {
- if (expression instanceof A.BinaryOperationExpression0 && B.BinaryOperator_U770 === expression.operator) {
- t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
- break $label0$0;
- }
- if (expression instanceof A.ParenthesizedExpression0) {
- t1 = expression.expression.toString$0(0);
- break $label0$0;
- }
- t1 = expression.toString$0(0);
- break $label0$0;
- }
- return t1;
- },
- $signature: 107
- };
- A._EvaluateVisitor_visitVariableExpression_closure1.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
- },
- $signature: 41
- };
- A._EvaluateVisitor_visitUnaryOperationExpression_closure1.prototype = {
- call$0() {
- var t1, _this = this;
- switch (_this.node.operator) {
- case B.UnaryOperator_cLp0:
- t1 = _this.operand.unaryPlus$0();
- break;
- case B.UnaryOperator_AiQ0:
- t1 = _this.operand.unaryMinus$0();
- break;
- case B.UnaryOperator_SJr0:
- t1 = new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false);
- break;
- case B.UnaryOperator_not_not_not0:
- t1 = _this.operand.unaryNot$0();
- break;
- default:
- t1 = null;
- }
- return t1;
- },
- $signature: 47
- };
- A._EvaluateVisitor_visitListExpression_closure1.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 437
- };
- A._EvaluateVisitor_visitFunctionExpression_closure5.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._evaluate0$_environment.getFunction$2$namespace(t1.name, t1.namespace);
- },
- $signature: 85
- };
- A._EvaluateVisitor_visitFunctionExpression_closure6.prototype = {
- call$1(argument) {
- return argument.accept$1(new A._IsCalculationSafeVisitor0());
- },
- $signature: 132
- };
- A._EvaluateVisitor_visitFunctionExpression_closure7.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
- },
- $signature: 47
- };
- A._EvaluateVisitor__checkCalculationArguments_check1.prototype = {
- call$1(maxArgs) {
- var t1 = this.node,
- t2 = t1.$arguments.positional.length;
- if (t2 === 0)
- throw A.wrapException(this.$this._evaluate0$_exception$2("Missing argument.", t1.span));
- else if (maxArgs != null && t2 > maxArgs)
- throw A.wrapException(this.$this._evaluate0$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize0("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize0("was", t2, "were") + " passed.", t1.span));
- },
- call$0() {
- return this.call$1(null);
- },
- $signature: 96
- };
- A._EvaluateVisitor__visitCalculationExpression_closure1.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this._box_0,
- t3 = _this.inLegacySassFunction;
- return A.SassCalculation_operateInternal0(t1._evaluate0$_binaryOperatorToCalculationOperator$2(t2.operator, _this.node), t1._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), t1._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), t3, !t1._evaluate0$_inSupportsDeclaration);
- },
- $signature: 79
- };
- A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1.prototype = {
- call$0() {
- var t1 = this.node;
- return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
- },
- $signature: 47
- };
- A._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.callable;
- return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V));
- },
- $signature() {
- return this.V._eval$1("0()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.V;
- return t1._evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
- },
- $signature() {
- return this.V._eval$1("0()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = {
- call$0() {
- var declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, _this = this,
- t1 = _this.$this,
- t2 = _this.evaluated._values,
- t3 = _this.callable.declaration.$arguments,
- t4 = _this.nodeWithSpan;
- t1._evaluate0$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4);
- declaredArguments = t3.$arguments;
- t5 = declaredArguments.length;
- minLength = Math.min(J.get$length$asx(t2[2]), t5);
- for (i = 0; i < minLength; ++i)
- t1._evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i));
- for (i = J.get$length$asx(t2[2]); i < t5; ++i) {
- argument = declaredArguments[i];
- t6 = t2[0];
- t7 = argument.name;
- value = J.remove$1$z(t6, t7);
- if (value == null) {
- t6 = argument.defaultValue;
- value = t1._evaluate0$_withoutSlash$2(t6.accept$1(t1), t1._evaluate0$_expressionNode$1(t6));
- }
- t6 = t1._evaluate0$_environment;
- t8 = J.$index$asx(t2[1], t7);
- if (t8 == null) {
- t8 = argument.defaultValue;
- t8.toString;
- t8 = t1._evaluate0$_expressionNode$1(t8);
- }
- t6.setLocalVariable$3(t7, value, t8);
- }
- restArgument = t3.restArgument;
- if (restArgument != null) {
- rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty19;
- t5 = t2[0];
- t6 = t2[4];
- argumentList = A.SassArgumentList$0(rest, t5, t6 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : t6);
- t1._evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t4);
- } else
- argumentList = null;
- result = _this.run.call$0();
- if (argumentList == null)
- return result;
- t5 = t2[0].__js_helper$_length;
- if (t5 === 0)
- return result;
- if (argumentList._argument_list$_wereKeywordsAccessed)
- return result;
- argumentWord = A.pluralize0("argument", t5, null);
- t2 = t2[0];
- t5 = A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>");
- throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + A.toSentence0(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t2, t5), new A._EvaluateVisitor__runUserDefinedCallable____closure1(), t5._eval$1("Iterable.E"), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate0$_stackTrace$1(t4.get$span(t4)), null));
- },
- $signature() {
- return this.V._eval$1("0()");
- }
- };
- A._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__runFunctionCallable_closure1.prototype = {
- call$0() {
- var t1, t2, t3, t4, _i, $returnValue;
- for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
- $returnValue = t2[_i].accept$1(t4);
- if ($returnValue instanceof A.Value0)
- return $returnValue;
- }
- throw A.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span));
- },
- $signature: 47
- };
- A._EvaluateVisitor__runBuiltInCallable_closure5.prototype = {
- call$0() {
- return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet);
- },
- $signature: 0
- };
- A._EvaluateVisitor__runBuiltInCallable_closure6.prototype = {
- call$0() {
- return this._box_0.callback.call$1(this.evaluated._values[2]);
- },
- $signature: 47
- };
- A._EvaluateVisitor__runBuiltInCallable_closure7.prototype = {
- call$1($name) {
- return "$" + $name;
- },
- $signature: 5
- };
- A._EvaluateVisitor__evaluateArguments_closure7.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 42
- };
- A._EvaluateVisitor__evaluateArguments_closure8.prototype = {
- call$1(value) {
- return this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan);
- },
- $signature: 42
- };
- A._EvaluateVisitor__evaluateArguments_closure9.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restNodeForSpan;
- _this.named.$indexSet(0, key, _this.$this._evaluate0$_withoutSlash$2(value, t1));
- _this.namedNodes.$indexSet(0, key, t1);
- },
- $signature: 103
- };
- A._EvaluateVisitor__evaluateArguments_closure10.prototype = {
- call$1(value) {
- return value;
- },
- $signature: 42
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression0(value, t1.get$span(t1));
- },
- $signature: 63
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = {
- call$1(value) {
- var t1 = this.restArgs;
- return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
- },
- $signature: 63
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = {
- call$2(key, value) {
- var _this = this,
- t1 = _this.restArgs;
- _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
- },
- $signature: 103
- };
- A._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = {
- call$1(value) {
- var t1 = this.keywordRestArgs;
- return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
- },
- $signature: 63
- };
- A._EvaluateVisitor__addRestMap_closure1.prototype = {
- call$2(key, value) {
- var t2, _this = this,
- t1 = _this.$this;
- if (key instanceof A.SassString0)
- _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._evaluate0$_withoutSlash$2(value, _this.expressionNode)));
- else {
- t2 = _this.nodeWithSpan;
- throw A.wrapException(t1._evaluate0$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
- }
- },
- $signature: 76
- };
- A._EvaluateVisitor__verifyArguments_closure1.prototype = {
- call$0() {
- return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
- },
- $signature: 0
- };
- A._EvaluateVisitor_visitCssAtRule_closure3.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssAtRule_closure4.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssMediaRule_closure5.prototype = {
- call$1(mediaQueries) {
- return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries);
- },
- $signature: 100
- };
- A._EvaluateVisitor_visitCssMediaRule_closure6.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.mergedQueries;
- if (t2 == null)
- t2 = _this.node.queries;
- t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssMediaRule__closure1.prototype = {
- call$0() {
- var t2, t3, t4,
- t1 = this.$this,
- _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
- t4 = t2.__internal$_current;
- (t4 == null ? t3._as(t4) : t4).accept$1(t1);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssMediaRule___closure1.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssMediaRule_closure7.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule0)) {
- t1 = this.mergedSources;
- t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
- } else
- t1 = true;
- return t1;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssStyleRule_closure4.prototype = {
- call$0() {
- var t1 = this.$this;
- t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node));
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssStyleRule__closure1.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssStyleRule_closure3.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = {
- call$0() {
- var t2, t3, t4,
- t1 = this.$this,
- _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
- if (_0_0 != null)
- t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
- else
- for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
- t4 = t2.__internal$_current;
- (t4 == null ? t3._as(t4) : t4).accept$1(t1);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = {
- call$0() {
- var t1, t2, t3, t4;
- for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t4 = t1.__internal$_current;
- (t4 == null ? t2._as(t4) : t4).accept$1(t3);
- }
- },
- $signature: 1
- };
- A._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluateVisitor__performInterpolationHelper_closure1.prototype = {
- call$1(targetLocations) {
- return A.InterpolationMap$0(this.interpolation, targetLocations);
- },
- $signature: 219
- };
- A._EvaluateVisitor__serialize_closure1.prototype = {
- call$0() {
- return A.serializeValue0(this.value, false, this.quote);
- },
- $signature: 26
- };
- A._EvaluateVisitor__expressionNode_closure1.prototype = {
- call$0() {
- var t1 = this.expression;
- return this.$this._evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
- },
- $signature: 217
- };
- A._EvaluateVisitor__withoutSlash_recommendation1.prototype = {
- call$1(number) {
- var t1, before, after,
- _1_0 = number.asSlash;
- $label0$0: {
- if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
- t1 = type$.SassNumber_2;
- before = t1._as(_1_0._0);
- after = t1._as(_1_0._1);
- t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
- break $label0$0;
- }
- t1 = A.serializeValue0(number, true, true);
- break $label0$0;
- }
- return t1;
- },
- $signature: 216
- };
- A._EvaluateVisitor__stackFrame_closure1.prototype = {
- call$1(url) {
- var t1 = this.$this._evaluate0$_importCache;
- t1 = t1 == null ? null : t1.humanize$1(url);
- return t1 == null ? url : t1;
- },
- $signature: 43
- };
- A._ImportedCssVisitor1.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure1();
- this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1);
- },
- visitCssComment$1(node) {
- return this._evaluate0$_visitor._evaluate0$_addChild$1(node);
- },
- visitCssDeclaration$1(node) {
- },
- visitCssImport$1(node) {
- var t2,
- _s13_ = "_endOfImports",
- t1 = this._evaluate0$_visitor;
- if (t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent") !== t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root"))
- t1._evaluate0$_addChild$1(node);
- else if (t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, _s13_) === J.get$length$asx(t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root").children._collection$_source)) {
- t1._evaluate0$_addChild$1(node);
- t1._evaluate0$__endOfImports = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, _s13_) + 1;
- } else {
- t2 = t1._evaluate0$_outOfOrderImports;
- (t2 == null ? t1._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
- }
- },
- visitCssKeyframeBlock$1(node) {
- },
- visitCssMediaRule$1(node) {
- var t1 = this._evaluate0$_visitor,
- mediaQueries = t1._evaluate0$_mediaQueries;
- t1._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure1(mediaQueries == null || t1._evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
- },
- visitCssStyleRule$1(node) {
- return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure1());
- },
- visitCssStylesheet$1(node) {
- var t1, t2, t3;
- for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- (t3 == null ? t2._as(t3) : t3).accept$1(this);
- }
- },
- visitCssSupportsRule$1(node) {
- return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure1());
- }
- };
- A._ImportedCssVisitor_visitCssAtRule_closure1.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = {
- call$1(node) {
- var t1;
- if (!(node instanceof A.ModifiableCssStyleRule0))
- t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule0;
- else
- t1 = true;
- return t1;
- },
- $signature: 8
- };
- A._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = {
- call$1(node) {
- return node instanceof A.ModifiableCssStyleRule0;
- },
- $signature: 8
- };
- A._EvaluationContext1.prototype = {
- get$currentCallableSpan() {
- var _0_0 = this._evaluate0$_visitor._evaluate0$_callableNode;
- if (_0_0 != null)
- return _0_0.get$span(_0_0);
- throw A.wrapException(A.StateError$(string$.No_Sasc));
- },
- warn$2(_, message, deprecation) {
- var t1 = this._evaluate0$_visitor,
- t2 = t1._evaluate0$_importSpan;
- if (t2 == null) {
- t2 = t1._evaluate0$_callableNode;
- t2 = t2 == null ? null : t2.get$span(t2);
- }
- t1._evaluate0$_warn$3(message, t2 == null ? this._evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation);
- },
- $isEvaluationContext0: 1
- };
- A.EveryCssVisitor0.prototype = {
- visitCssAtRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure0(this));
- },
- visitCssComment$1(node) {
- return false;
- },
- visitCssDeclaration$1(node) {
- return false;
- },
- visitCssImport$1(node) {
- return false;
- },
- visitCssKeyframeBlock$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure0(this));
- },
- visitCssMediaRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure0(this));
- },
- visitCssStyleRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure0(this));
- },
- visitCssStylesheet$1(node) {
- return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure0(this));
- },
- visitCssSupportsRule$1(node) {
- var t1 = node.children;
- return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure0(this));
- }
- };
- A.EveryCssVisitor_visitCssAtRule_closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 8
- };
- A.EveryCssVisitor_visitCssKeyframeBlock_closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 8
- };
- A.EveryCssVisitor_visitCssMediaRule_closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 8
- };
- A.EveryCssVisitor_visitCssStyleRule_closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 8
- };
- A.EveryCssVisitor_visitCssStylesheet_closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 8
- };
- A.EveryCssVisitor_visitCssSupportsRule_closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature: 8
- };
- A._NodeException.prototype = {};
- A.exceptionClass_closure.prototype = {
- call$0() {
- var jsClass = type$.JSClass._as(new self.Function("", " return class Exception extends Error {\n constructor(dartException, message) {\n super(message);\n\n // Define this as non-enumerable so that it doesn't show up when the\n // exception hits the top level.\n Object.defineProperty(this, '_dartException', {\n value: dartException,\n enumerable: false\n });\n }\n\n toString() {\n return this.message;\n }\n }\n ").call$0());
- A.defineGetter(jsClass, "name", null, "sass.Exception");
- A.LinkedHashMap_LinkedHashMap$_literal(["sassMessage", new A.exceptionClass__closure(), "sassStack", new A.exceptionClass__closure0(), "span", new A.exceptionClass__closure1()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- return jsClass;
- },
- $signature: 15
- };
- A.exceptionClass__closure.prototype = {
- call$1(exception) {
- return J.get$_dartException$x(exception)._span_exception$_message;
- },
- $signature: 262
- };
- A.exceptionClass__closure0.prototype = {
- call$1(exception) {
- return J.get$trace$z(J.get$_dartException$x(exception)).toString$0(0);
- },
- $signature: 262
- };
- A.exceptionClass__closure1.prototype = {
- call$1(exception) {
- var t1 = J.get$_dartException$x(exception),
- t2 = J.getInterceptor$z(t1);
- return A.SourceSpanException.prototype.get$span.call(t2, t1);
- },
- $signature: 439
- };
- A.SassException0.prototype = {
- get$trace(_) {
- return A.Trace$(A._setArrayType([A.frameForSpan0(A.SourceSpanException.prototype.get$span.call(this, 0), "root stylesheet", null)], type$.JSArray_Frame), null);
- },
- get$span(_) {
- return A.SourceSpanException.prototype.get$span.call(this, 0);
- },
- withAdditionalSpan$2(span, label) {
- return A.MultiSpanSassException$0(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
- },
- withTrace$1(trace) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(this.loadedUrls, type$.Uri);
- return new A.SassRuntimeException0(trace, t2, this._span_exception$_message, t1);
- },
- withLoadedUrls$1(loadedUrls) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
- return new A.SassException0(t2, this._span_exception$_message, t1);
- },
- toString$1$color(_, color) {
- var t2, _i, frame, t3, _this = this,
- buffer = new A.StringBuffer(""),
- t1 = "" + ("Error: " + _this._span_exception$_message + "\n");
- buffer._contents = t1;
- buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, 0).highlight$1$color(color);
- for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- if (J.get$length$asx(frame) === 0)
- continue;
- t3 = buffer._contents += "\n";
- buffer._contents = t3 + (" " + A.S(frame));
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- toString$0(_) {
- return this.toString$1$color(0, null);
- }
- };
- A.MultiSpanSassException0.prototype = {
- withAdditionalSpan$2(span, label) {
- var _this = this,
- t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
- t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
- t2.$indexSet(0, span, label);
- return A.MultiSpanSassException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
- },
- withTrace$1(trace) {
- var _this = this;
- return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, trace, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var _this = this;
- return A.MultiSpanSassException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
- },
- toString$1$color(_, color) {
- var t1, t2, _i, frame, t3, _this = this,
- useColor = color === true,
- buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n");
- A.NullableExtension_andThen0(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer));
- for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- frame = t1[_i];
- if (J.get$length$asx(frame) === 0)
- continue;
- buffer._contents += "\n";
- t3 = " " + A.S(frame);
- buffer._contents += t3;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- toString$0(_) {
- return this.toString$1$color(0, null);
- },
- get$primaryLabel() {
- return this.primaryLabel;
- },
- get$secondarySpans() {
- return this.secondarySpans;
- }
- };
- A.SassRuntimeException0.prototype = {
- withAdditionalSpan$2(span, label) {
- var _this = this;
- return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.trace, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
- return new A.SassRuntimeException0(this.trace, t2, this._span_exception$_message, t1);
- },
- get$trace(receiver) {
- return this.trace;
- }
- };
- A.MultiSpanSassRuntimeException0.prototype = {
- withAdditionalSpan$2(span, label) {
- var _this = this,
- t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
- t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
- t2.$indexSet(0, span, label);
- return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.trace, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var _this = this;
- return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, _this.trace, loadedUrls);
- },
- $isSassRuntimeException0: 1,
- get$trace(receiver) {
- return this.trace;
- }
- };
- A.SassFormatException0.prototype = {
- get$source() {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
- },
- withAdditionalSpan$2(span, label) {
- return A.MultiSpanSassFormatException$0(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
- t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
- return new A.SassFormatException0(t2, this._span_exception$_message, t1);
- },
- $isFormatException: 1,
- $isSourceSpanFormatException: 1
- };
- A.MultiSpanSassFormatException0.prototype = {
- get$source() {
- var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
- },
- withAdditionalSpan$2(span, label) {
- var _this = this,
- t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
- t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
- t2.$indexSet(0, span, label);
- return A.MultiSpanSassFormatException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
- },
- withLoadedUrls$1(loadedUrls) {
- var _this = this;
- return A.MultiSpanSassFormatException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
- },
- $isFormatException: 1,
- $isSourceSpanFormatException: 1,
- $isMultiSourceSpanFormatException: 1,
- $isSassFormatException0: 1
- };
- A.SassScriptException0.prototype = {
- withSpan$1(span) {
- return new A.SassException0(B.Set_empty, this.message, span);
- },
- toString$0(_) {
- return this.message + string$.x0a_BUG_;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A.MultiSpanSassScriptException0.prototype = {
- withSpan$1(span) {
- return A.MultiSpanSassException$0(this.message, span, this.primaryLabel, this.secondarySpans, null);
- }
- };
- A.Exports.prototype = {};
- A.LoggerNamespace.prototype = {};
- A._IsCalculationSafeVisitor0.prototype = {
- visitBinaryOperationExpression$1(node) {
- var t1;
- if (B.Set_mqKz0.contains$1(0, node.operator))
- t1 = node.left.accept$1(this) || node.right.accept$1(this);
- else
- t1 = false;
- return t1;
- },
- visitBooleanExpression$1(node) {
- return false;
- },
- visitColorExpression$1(node) {
- return false;
- },
- visitFunctionExpression$1(node) {
- return true;
- },
- visitInterpolatedFunctionExpression$1(node) {
- return true;
- },
- visitIfExpression$1(node) {
- return true;
- },
- visitListExpression$1(node) {
- var t1;
- if (node.separator === B.ListSeparator_nbm0)
- if (!node.hasBrackets) {
- t1 = node.contents;
- t1 = t1.length > 1 && B.JSArray_methods.every$1(t1, new A._IsCalculationSafeVisitor_visitListExpression_closure0(this));
- } else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- visitMapExpression$1(node) {
- return false;
- },
- visitNullExpression$1(node) {
- return false;
- },
- visitNumberExpression$1(node) {
- return true;
- },
- visitParenthesizedExpression$1(node) {
- return node.expression.accept$1(this);
- },
- visitSelectorExpression$1(node) {
- return false;
- },
- visitStringExpression$1(node) {
- var text, t1, t2;
- if (node.hasQuotes)
- return false;
- text = node.text.get$initialPlain();
- if (!B.JSString_methods.startsWith$1(text, "!"))
- if (!B.JSString_methods.startsWith$1(text, "#")) {
- t1 = text.length;
- if ((1 >= t1 ? null : text.charCodeAt(1)) !== 43) {
- t2 = (3 >= t1 ? null : text.charCodeAt(3)) !== 40;
- t1 = t2;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- visitSupportsExpression$1(node) {
- return false;
- },
- visitUnaryOperationExpression$1(node) {
- return false;
- },
- visitValueExpression$1(node) {
- return false;
- },
- visitVariableExpression$1(node) {
- return true;
- }
- };
- A._IsCalculationSafeVisitor_visitListExpression_closure0.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 132
- };
- A._MakeExpressionCalculationSafe0.prototype = {
- visitBinaryOperationExpression$1(node) {
- var t1, t2, t3, t4;
- if (node.operator === B.BinaryOperator_KNx0) {
- t1 = A._setArrayType([node], type$.JSArray_Expression_2);
- t2 = node.get$span(0);
- t3 = type$.Expression_2;
- t1 = A.List_List$unmodifiable(t1, t3);
- t3 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3);
- t4 = node.get$span(0);
- t1 = new A.FunctionExpression0("math", A.stringReplaceAllUnchecked("max", "_", "-"), "max", new A.ArgumentInvocation0(t1, t3, null, null, t2), t4);
- } else
- t1 = this.super$ReplaceExpressionVisitor$visitBinaryOperationExpression0(node);
- return t1;
- },
- visitInterpolatedFunctionExpression$1(node) {
- return node;
- },
- visitUnaryOperationExpression$1(node) {
- var t1,
- _0_0 = node.operator;
- $label0$0: {
- if (B.UnaryOperator_cLp0 === _0_0) {
- t1 = node.operand;
- break $label0$0;
- }
- if (B.UnaryOperator_AiQ0 === _0_0) {
- t1 = new A.BinaryOperationExpression0(B.BinaryOperator_2No0, new A.NumberExpression0(-1, null, node.span), node.operand, false);
- break $label0$0;
- }
- t1 = this.super$ReplaceExpressionVisitor$visitUnaryOperationExpression0(node);
- break $label0$0;
- }
- return t1;
- }
- };
- A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0.prototype = {};
- A.ExtendRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitExtendRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.selector.toString$0(0),
- t2 = this.isOptional ? " !optional" : "";
- return "@extend " + t1 + t2 + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Extension0.prototype = {
- toString$0(_) {
- var t1 = this.extender.toString$0(0),
- t2 = this.target.toString$0(0),
- t3 = this.isOptional ? " !optional" : "";
- return t1 + " {@extend " + t2 + t3 + "}";
- }
- };
- A.Extender0.prototype = {
- assertCompatibleMediaContext$1(mediaContext) {
- var expectedMediaContext,
- extension = this._extension$_extension;
- if (extension == null)
- return;
- expectedMediaContext = extension.mediaContext;
- if (expectedMediaContext == null)
- return;
- if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext))
- return;
- throw A.wrapException(A.SassException$0(string$.You_ma, extension.span, null));
- },
- toString$0(_) {
- return A.serializeSelector0(this.selector, true);
- }
- };
- A.ExtensionStore0.prototype = {
- get$isEmpty(_) {
- return this._extension_store$_extensions.__js_helper$_length === 0;
- },
- get$simpleSelectors() {
- return new A.MapKeySet(this._extension_store$_selectors, type$.MapKeySet_SimpleSelector_2);
- },
- extensionsWhereTarget$1(callback) {
- return new A._SyncStarIterable(this.extensionsWhereTarget$body$ExtensionStore0(callback), type$._SyncStarIterable_Extension_2);
- },
- extensionsWhereTarget$body$ExtensionStore0($async$callback) {
- var $async$self = this;
- return function() {
- var callback = $async$callback;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, simple, sources, t3;
- return function $async$extensionsWhereTarget$1($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = A.MapExtensions_get_pairs0($async$self._extension_store$_extensions, type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2), t1 = t1.get$iterator(t1);
- case 2:
- // for condition
- if (!t1.moveNext$0()) {
- // goto after for
- $async$goto = 3;
- break;
- }
- t2 = t1.get$current(t1);
- simple = t2._0;
- sources = t2._1;
- if (!callback.call$1(simple)) {
- // goto for condition
- $async$goto = 2;
- break;
- }
- t2 = sources.get$values(sources), t2 = t2.get$iterator(t2);
- case 4:
- // for condition
- if (!t2.moveNext$0()) {
- // goto after for
- $async$goto = 5;
- break;
- }
- t3 = t2.get$current(t2);
- $async$goto = t3 instanceof A.MergedExtension0 ? 6 : 8;
- break;
- case 6:
- // then
- t3 = t3.unmerge$0();
- $async$goto = 9;
- return $async$iterator._yieldStar$1(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure0(), t3.$ti._eval$1("WhereIterable<Iterable.E>")));
- case 9:
- // after yield
- // goto join
- $async$goto = 7;
- break;
- case 8:
- // else
- $async$goto = !t3.isOptional ? 10 : 11;
- break;
- case 10:
- // then
- $async$goto = 12;
- return $async$iterator._async$_current = t3, 1;
- case 12:
- // after yield
- case 11:
- // join
- case 7:
- // join
- // goto for condition
- $async$goto = 4;
- break;
- case 5:
- // after for
- // goto for condition
- $async$goto = 2;
- break;
- case 3:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- addSelector$2(selector, mediaContext) {
- var originalSelector, error, stackTrace, t1, exception, t2, t3, t4, modifiableSelector, _this = this;
- selector = selector;
- originalSelector = selector;
- if (!originalSelector.accept$1(B._IsInvisibleVisitor_true0))
- _this._extension_store$_originals.addAll$1(0, originalSelector.components);
- t1 = _this._extension_store$_extensions;
- if (t1.__js_helper$_length !== 0)
- try {
- selector = _this._extension_store$_extendList$3(originalSelector, t1, mediaContext);
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = error;
- t2 = J.getInterceptor$z(t1);
- t1 = A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, "");
- t2 = error._span_exception$_message;
- t3 = error;
- t4 = J.getInterceptor$z(t3);
- t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
- A.throwWithTrace0(new A.SassException0(B.Set_empty, "From " + t1 + "\n" + t2, t3), error, stackTrace);
- } else
- throw exception;
- }
- modifiableSelector = new A.ModifiableBox0(selector, type$.ModifiableBox_SelectorList_2);
- if (mediaContext != null)
- _this._extension_store$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
- _this._extension_store$_registerSelector$2(selector, modifiableSelector);
- return new A.Box0(modifiableSelector, type$.Box_SelectorList_2);
- },
- _extension_store$_registerSelector$2(list, selector) {
- var t1, t2, t3, t4, _i, t5, t6, _i0, t7, t8, _i1, simple, _0_2_isSet, _0_2, t9, selectorInPseudo;
- for (t1 = list.components, t2 = t1.length, t3 = this._extension_store$_selectors, t4 = type$.SelectorList_2, _i = 0; _i < t2; ++_i)
- for (t5 = t1[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
- for (t7 = t5[_i0].selector.components, t8 = t7.length, _i1 = 0; _i1 < t8; ++_i1) {
- simple = t7[_i1];
- J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure0()), selector);
- _0_2_isSet = simple instanceof A.PseudoSelector0;
- if (_0_2_isSet) {
- _0_2 = simple.selector;
- t9 = _0_2 != null;
- } else {
- _0_2 = null;
- t9 = false;
- }
- if (t9) {
- selectorInPseudo = _0_2_isSet ? _0_2 : simple.selector;
- this._extension_store$_registerSelector$2(selectorInPseudo == null ? t4._as(selectorInPseudo) : selectorInPseudo, selector);
- }
- }
- },
- addExtension$4(extender, target, extend, mediaContext) {
- var t2, t3, t4, t5, t6, t7, t8, t9, t10, newExtensions, _i, complex, t11, extension, _0_0, t12, newExtensionsByTarget, additionalExtensions, _this = this,
- selectors = _this._extension_store$_selectors.$index(0, target),
- t1 = _this._extension_store$_extensionsByExtender,
- existingExtensions = t1.$index(0, target),
- sources = _this._extension_store$_extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure2());
- for (t2 = extender.components, t3 = t2.length, t4 = selectors == null, t5 = _this._extension_store$_sourceSpecificity, t6 = extend.span, t7 = extend.isOptional, t8 = existingExtensions != null, t9 = type$.ComplexSelector_2, t10 = type$.Extension_2, newExtensions = null, _i = 0; _i < t3; ++_i) {
- complex = t2[_i];
- if (complex.accept$1(B.C__IsUselessVisitor0))
- continue;
- complex.get$specificity();
- t11 = new A.Extender0(complex, false);
- extension = t11._extension$_extension = new A.Extension0(t11, target, mediaContext, t7, t6);
- _0_0 = sources.$index(0, complex);
- if (_0_0 != null) {
- sources.$indexSet(0, complex, A.MergedExtension_merge0(_0_0, extension));
- continue;
- }
- sources.$indexSet(0, complex, extension);
- for (t11 = new A._SyncStarIterator(_this._extension_store$_simpleSelectors$1(complex)._outerHelper()); t11.moveNext$0();) {
- t12 = t11._async$_current;
- J.add$1$ax(t1.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure3()), extension);
- t5.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure4(complex));
- }
- if (!t4 || t8) {
- if (newExtensions == null)
- newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t9, t10);
- newExtensions.$indexSet(0, complex, extension);
- }
- }
- if (newExtensions == null)
- return;
- t1 = type$.SimpleSelector_2;
- newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension_2);
- if (t8) {
- additionalExtensions = _this._extension_store$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
- if (additionalExtensions != null)
- A.mapAddAll20(newExtensionsByTarget, additionalExtensions, t1, t9, t10);
- }
- if (!t4)
- _this._extension_store$_extendExistingSelectors$2(selectors, newExtensionsByTarget);
- },
- _extension_store$_simpleSelectors$1(complex) {
- return new A._SyncStarIterable(this._simpleSelectors$body$ExtensionStore0(complex), type$._SyncStarIterable_SimpleSelector_2);
- },
- _simpleSelectors$body$ExtensionStore0($async$complex) {
- var $async$self = this;
- return function() {
- var complex = $async$complex;
- var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, _i, t4, t5, _i0, simple, _0_2_isSet, _0_2, t6, selector, t7, _i1;
- return function $async$_extension_store$_simpleSelectors$1($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = complex.components, t2 = t1.length, t3 = type$.SelectorList_2, _i = 0;
- case 2:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 4;
- break;
- }
- t4 = t1[_i].selector.components, t5 = t4.length, _i0 = 0;
- case 5:
- // for condition
- if (!(_i0 < t5)) {
- // goto after for
- $async$goto = 7;
- break;
- }
- simple = t4[_i0];
- $async$goto = 8;
- return $async$iterator._async$_current = simple, 1;
- case 8:
- // after yield
- _0_2_isSet = simple instanceof A.PseudoSelector0;
- if (_0_2_isSet) {
- _0_2 = simple.selector;
- t6 = _0_2 != null;
- } else {
- _0_2 = null;
- t6 = false;
- }
- $async$goto = t6 ? 9 : 10;
- break;
- case 9:
- // then
- selector = _0_2_isSet ? _0_2 : simple.selector;
- t6 = (selector == null ? t3._as(selector) : selector).components, t7 = t6.length, _i1 = 0;
- case 11:
- // for condition
- if (!(_i1 < t7)) {
- // goto after for
- $async$goto = 13;
- break;
- }
- $async$goto = 14;
- return $async$iterator._yieldStar$1($async$self._extension_store$_simpleSelectors$1(t6[_i1]));
- case 14:
- // after yield
- case 12:
- // for update
- ++_i1;
- // goto for condition
- $async$goto = 11;
- break;
- case 13:
- // after for
- case 10:
- // join
- case 6:
- // for update
- ++_i0;
- // goto for condition
- $async$goto = 5;
- break;
- case 7:
- // after for
- case 3:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 2;
- break;
- case 4:
- // after for
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- },
- _extension_store$_extendExistingExtensions$2(extensions, newExtensions) {
- var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, selectors0, t10, t11, t12, t13, t14, withExtender, _0_0, _i0, _i1;
- for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extension_store$_extensionsByExtender, t4 = type$.SimpleSelector_2, t5 = type$.Map_ComplexSelector_Extension_2, t6 = this._extension_store$_extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- extension = t1[_i];
- t7 = t6.$index(0, extension.target);
- t7.toString;
- selectors = null;
- try {
- selectors = this._extension_store$_extendComplex$3(extension.extender.selector, newExtensions, extension.mediaContext);
- if (selectors == null)
- continue;
- } catch (exception) {
- t8 = A.unwrapException(exception);
- if (t8 instanceof A.SassException0) {
- error = t8;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace0(error.withAdditionalSpan$2(extension.extender.selector.span, "target selector"), error, stackTrace);
- } else
- throw exception;
- }
- t8 = J.get$first$ax(selectors);
- t9 = extension.extender.selector;
- if (B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components)) {
- t8 = selectors;
- t9 = A._arrayInstanceType(t8);
- selectors0 = new A.SubListIterable(t8, 1, null, t9._eval$1("SubListIterable<1>"));
- selectors0.SubListIterable$3(t8, 1, null, t9._precomputed1);
- selectors = selectors0;
- }
- for (t8 = J.get$iterator$ax(selectors); t8.moveNext$0();) {
- t9 = t8.get$current(t8);
- t10 = extension;
- t11 = t10.target;
- t12 = t10.span;
- t13 = t10.mediaContext;
- t10 = t10.isOptional;
- t9.get$specificity();
- t14 = new A.Extender0(t9, false);
- withExtender = t14._extension$_extension = new A.Extension0(t14, t11, t13, t10, t12);
- _0_0 = t7.$index(0, t9);
- if (_0_0 != null)
- t7.$indexSet(0, t9, A.MergedExtension_merge0(_0_0, withExtender));
- else {
- t7.$indexSet(0, t9, withExtender);
- for (t10 = t9.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0)
- for (t12 = t10[_i0].selector.components, t13 = t12.length, _i1 = 0; _i1 < t13; ++_i1)
- J.add$1$ax(t3.putIfAbsent$2(t12[_i1], new A.ExtensionStore__extendExistingExtensions_closure1()), withExtender);
- if (newExtensions.containsKey$1(extension.target)) {
- if (additionalExtensions == null)
- additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
- additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure2()).$indexSet(0, t9, withExtender);
- }
- }
- }
- }
- return additionalExtensions;
- },
- _extension_store$_extendExistingSelectors$2(selectors, newExtensions) {
- var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4, t5, t6;
- for (t1 = selectors.get$iterator(selectors), t2 = this._extension_store$_mediaContexts; t1.moveNext$0();) {
- selector = t1.get$current(t1);
- oldValue = selector.value;
- try {
- selector.value = this._extension_store$_extendList$3(selector.value, newExtensions, t2.$index(0, selector));
- } catch (exception) {
- t3 = A.unwrapException(exception);
- if (t3 instanceof A.SassException0) {
- error = t3;
- stackTrace = A.getTraceFromException(exception);
- t3 = selector.value.span.message$1(0, "");
- t4 = error._span_exception$_message;
- t5 = error;
- t6 = J.getInterceptor$z(t5);
- t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
- A.throwWithTrace0(new A.SassException0(B.Set_empty, "From " + t3 + "\n" + t4, t5), error, stackTrace);
- } else
- throw exception;
- }
- if (oldValue === selector.value)
- continue;
- this._extension_store$_registerSelector$2(selector.value, selector);
- }
- },
- addExtensions$1(extensionStores) {
- var t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, selectorsToExtend, extensionsToExtend, t12, t13, target, newSources, first, extensionsForTarget, t14, selectorsForTarget, t15, _2_0, t16, extender, extension, _this = this, _null = null;
- for (t1 = J.get$iterator$ax(extensionStores), t2 = type$.SimpleSelector_2, t3 = type$.Map_ComplexSelector_Extension_2, t4 = _this._extension_store$_extensions, t5 = type$.ComplexSelector_2, t6 = type$.Extension_2, t7 = _this._extension_store$_selectors, t8 = _this._extension_store$_extensionsByExtender, t9 = type$.JSArray_Extension_2, t10 = type$.ModifiableBox_SelectorList_2, t11 = _this._extension_store$_sourceSpecificity, newExtensions = _null, selectorsToExtend = newExtensions, extensionsToExtend = selectorsToExtend; t1.moveNext$0();) {
- t12 = t1.get$current(t1);
- if (t12.get$isEmpty(t12))
- continue;
- t11.addAll$1(0, t12.get$_extension_store$_sourceSpecificity());
- for (t12 = A.MapExtensions_get_pairs0(t12.get$_extension_store$_extensions(), t2, t3), t12 = t12.get$iterator(t12); t12.moveNext$0();) {
- t13 = t12.get$current(t12);
- target = t13._0;
- newSources = t13._1;
- if (target instanceof A.PlaceholderSelector0) {
- first = target.name.charCodeAt(0);
- t13 = first === 45 || first === 95;
- } else
- t13 = false;
- if (t13)
- continue;
- extensionsForTarget = t8.$index(0, target);
- t13 = extensionsForTarget == null;
- if (!t13) {
- if (extensionsToExtend == null) {
- extensionsToExtend = A._setArrayType([], t9);
- t14 = extensionsToExtend;
- } else
- t14 = extensionsToExtend;
- B.JSArray_methods.addAll$1(t14, extensionsForTarget);
- }
- selectorsForTarget = t7.$index(0, target);
- t14 = selectorsForTarget != null;
- if (t14) {
- if (selectorsToExtend == null) {
- selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(t10);
- t15 = selectorsToExtend;
- } else
- t15 = selectorsToExtend;
- t15.addAll$1(0, selectorsForTarget);
- }
- _2_0 = t4.$index(0, target);
- if (_2_0 != null)
- for (t15 = A.MapExtensions_get_pairs0(newSources, t5, t6), t15 = t15.get$iterator(t15); t15.moveNext$0();) {
- t16 = t15.get$current(t15);
- extender = t16._0;
- extension = t16._1;
- if (_2_0.containsKey$1(extender)) {
- t16 = _2_0.$index(0, extender);
- extension = A.MergedExtension_merge0(t16 == null ? t6._as(t16) : t16, extension);
- _2_0.$indexSet(0, extender, extension);
- } else
- _2_0.$indexSet(0, extender, extension);
- if (!t13 || t14) {
- if (newExtensions == null) {
- newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
- t16 = newExtensions;
- } else
- t16 = newExtensions;
- J.$indexSet$ax(t16.putIfAbsent$2(target, new A.ExtensionStore_addExtensions_closure0()), extender, extension);
- }
- }
- else {
- t15 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
- t15.addAll$1(0, newSources);
- t4.$indexSet(0, target, t15);
- if (!t13 || t14) {
- if (newExtensions == null) {
- newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
- t13 = newExtensions;
- } else
- t13 = newExtensions;
- t14 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
- t14.addAll$1(0, newSources);
- t13.$indexSet(0, target, t14);
- }
- }
- }
- }
- if (newExtensions != null) {
- if (extensionsToExtend != null)
- _this._extension_store$_extendExistingExtensions$2(extensionsToExtend, newExtensions);
- if (selectorsToExtend != null)
- _this._extension_store$_extendExistingSelectors$2(selectorsToExtend, newExtensions);
- }
- },
- _extension_store$_extendList$3(list, extensions, mediaQueryContext) {
- var t1, t2, t3, extended, i, complex, result, t4;
- for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) {
- complex = t1[i];
- result = this._extension_store$_extendComplex$3(complex, extensions, mediaQueryContext);
- if (result == null) {
- if (extended != null)
- extended.push(complex);
- } else {
- if (extended == null)
- if (i === 0)
- extended = A._setArrayType([], t3);
- else {
- t4 = B.JSArray_methods.sublist$2(t1, 0, i);
- extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
- }
- B.JSArray_methods.addAll$1(extended, result);
- }
- }
- if (extended == null)
- return list;
- t1 = this._extension_store$_originals;
- return A.SelectorList$0(this._extension_store$_trim$2(extended, t1.get$contains(t1)), list.span);
- },
- _extension_store$_extendList$2(list, extensions) {
- return this._extension_store$_extendList$3(list, extensions, null);
- },
- _extension_store$_extendComplex$3(complex, extensions, mediaQueryContext) {
- var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, extendedNotExpanded, i, component, extended, t11, t12, t13, t14, _box_0 = {},
- t1 = complex.leadingCombinators,
- t2 = t1.length;
- if (t2 > 1)
- return null;
- isOriginal = this._extension_store$_originals.contains$1(0, complex);
- for (t3 = complex.components, t4 = t3.length, t5 = type$.JSArray_List_ComplexSelector_2, t6 = complex.lineBreak, t7 = !t6, t8 = complex.span, t9 = type$.JSArray_ComplexSelector_2, t2 = t2 === 0, t10 = type$.JSArray_ComplexSelectorComponent_2, extendedNotExpanded = null, i = 0; i < t4; ++i) {
- component = t3[i];
- extended = this._extension_store$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
- if (extended == null) {
- if (extendedNotExpanded != null)
- extendedNotExpanded.push(A._setArrayType([A.ComplexSelector$0(B.List_empty13, A._setArrayType([component], t10), t8, t6)], t9));
- } else if (extendedNotExpanded != null)
- extendedNotExpanded.push(extended);
- else if (i !== 0) {
- t11 = A._arrayInstanceType(t3);
- t12 = new A.SubListIterable(t3, 0, i, t11._eval$1("SubListIterable<1>"));
- t12.SubListIterable$3(t3, 0, i, t11._precomputed1);
- extendedNotExpanded = A._setArrayType([A._setArrayType([A.ComplexSelector$0(t1, t12, t8, t6)], t9), extended], t5);
- } else if (t2)
- extendedNotExpanded = A._setArrayType([extended], t5);
- else {
- t11 = A._setArrayType([], t9);
- for (t12 = J.get$iterator$ax(extended); t12.moveNext$0();) {
- t13 = t12.get$current(t12);
- t14 = t13.leadingCombinators;
- if (t14.length === 0 || B.C_ListEquality.equals$2(0, t1, t14)) {
- t14 = t13.components;
- t11.push(A.ComplexSelector$0(t1, t14, t8, !t7 || t13.lineBreak));
- }
- }
- extendedNotExpanded = A._setArrayType([t11], t5);
- }
- }
- if (extendedNotExpanded == null)
- return null;
- _box_0.first = true;
- t1 = type$.ComplexSelector_2;
- t1 = J.expand$1$1$ax(A.paths0(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure0(_box_0, this, complex), t1);
- return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
- },
- _extension_store$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, inOriginal) {
- var t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, t12, result, compound, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null,
- t1 = _this._extension_store$_mode,
- targetsUsed = t1 === B.ExtendMode_normal_normal0 || extensions.__js_helper$_length < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2),
- t2 = component.selector,
- simples = t2.components;
- for (t3 = simples.length, t4 = type$.JSArray_List_Extender_2, t5 = type$.JSArray_Extender_2, t6 = type$.CssValue_Combinator_2, t7 = type$.JSArray_ComplexSelectorComponent_2, t8 = A._arrayInstanceType(simples), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = component.span, t11 = type$.SimpleSelector_2, options = _null, i = 0; i < t3; ++i) {
- simple = simples[i];
- extended = _this._extension_store$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
- if (extended == null) {
- if (options != null)
- options.push(A._setArrayType([_this._extension_store$_extenderForSimple$1(simple)], t5));
- } else {
- if (options == null) {
- options = A._setArrayType([], t4);
- if (i !== 0) {
- t12 = new A.SubListIterable(simples, 0, i, t8);
- t12.SubListIterable$3(simples, 0, i, t9);
- result = A.List_List$from(t12, false, t11);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = result;
- compound = new A.CompoundSelector0(t12, t10);
- if (t12.length === 0)
- A.throwExpression(A.ArgumentError$("components may not be empty.", _null));
- result = A.List_List$from(B.List_empty13, false, t6);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t12 = A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(compound, result, t10)], t7), t10, false);
- _this._extension_store$_sourceSpecificityFor$1(compound);
- options.push(A._setArrayType([new A.Extender0(t12, true)], t5));
- }
- }
- B.JSArray_methods.addAll$1(options, extended);
- }
- }
- if (options == null)
- return _null;
- if (targetsUsed != null && targetsUsed._collection$_length !== extensions.__js_helper$_length)
- return _null;
- if (options.length === 1) {
- for (t1 = J.get$iterator$ax(options[0]), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector_2, result = _null; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- t4.assertCompatibleMediaContext$1(mediaQueryContext);
- complex = t4.selector.withAdditionalCombinators$1(t2);
- if (complex.accept$1(B.C__IsUselessVisitor0))
- continue;
- if (result == null)
- result = A._setArrayType([], t3);
- result.push(complex);
- }
- return result;
- }
- extenderPaths = A.paths0(options, type$.Extender_2);
- t3 = A._setArrayType([], type$.JSArray_ComplexSelector_2);
- t1 = t1 === B.ExtendMode_replace_replace0;
- t4 = !t1;
- if (t4)
- t3.push(A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(J.expand$1$1$ax(J.get$first$ax(extenderPaths), new A.ExtensionStore__extendCompound_closure2(), t11), t2.span), A.List_List$unmodifiable(component.combinators, t6), t10)], t7), t10, false));
- t2 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1);
- t5 = t2.$ti;
- t2 = new A.ListIterator(t2, t2.get$length(0), t5._eval$1("ListIterator<ListIterable.E>"));
- t6 = component.combinators;
- t5 = t5._eval$1("ListIterable.E");
- for (; t2.moveNext$0();) {
- t1 = t2.__internal$_current;
- extended = _this._extension_store$_unifyExtenders$3(t1 == null ? t5._as(t1) : t1, mediaQueryContext, t10);
- if (extended == null)
- continue;
- for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) {
- withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t6);
- if (!withCombinators.accept$1(B.C__IsUselessVisitor0))
- t3.push(withCombinators);
- }
- }
- isOriginal = new A.ExtensionStore__extendCompound_closure3();
- return _this._extension_store$_trim$2(t3, inOriginal && t4 ? new A.ExtensionStore__extendCompound_closure4(B.JSArray_methods.get$first(t3)) : isOriginal);
- },
- _extension_store$_unifyExtenders$3(extenders, mediaQueryContext, span) {
- var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null,
- toUnify = A.QueueList$(_null, type$.ComplexSelector_2);
- for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector_2, originals = _null, originalsLineBreak = false; t2.moveNext$0();) {
- t4 = t2.get$current(t2);
- if (t4.isOriginal) {
- if (originals == null)
- originals = A._setArrayType([], t3);
- t4 = t4.selector;
- B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components);
- originalsLineBreak = originalsLineBreak || t4.lineBreak;
- } else {
- t4 = t4.selector;
- if (t4.accept$1(B.C__IsUselessVisitor0))
- return _null;
- else
- toUnify._queue_list$_add$1(t4);
- }
- }
- if (originals != null)
- toUnify.addFirst$1(A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(originals, span), A.List_List$unmodifiable(B.List_empty13, type$.CssValue_Combinator_2), span)], type$.JSArray_ComplexSelectorComponent_2), span, originalsLineBreak));
- complexes = A.unifyComplex0(toUnify, span);
- if (complexes == null)
- return _null;
- for (t1 = t1.get$iterator(extenders); t1.moveNext$0();)
- t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext);
- return complexes;
- },
- _extension_store$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed) {
- var t2, _1_0,
- t1 = new A.ExtensionStore__extendSimple_withoutPseudo0(this, extensions, targetsUsed);
- if (simple instanceof A.PseudoSelector0)
- t2 = simple.selector != null;
- else
- t2 = false;
- if (t2) {
- _1_0 = this._extension_store$_extendPseudo$3(simple, extensions, mediaQueryContext);
- if (_1_0 != null)
- return new A.MappedListIterable(_1_0, new A.ExtensionStore__extendSimple_closure1(this, t1), A._arrayInstanceType(_1_0)._eval$1("MappedListIterable<1,List<Extender0>>"));
- }
- return A.NullableExtension_andThen0(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure2());
- },
- _extension_store$_extenderForSimple$1(simple) {
- var t1 = simple.span;
- t1 = A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(A._setArrayType([simple], type$.JSArray_SimpleSelector_2), t1), A.List_List$unmodifiable(B.List_empty13, type$.CssValue_Combinator_2), t1)], type$.JSArray_ComplexSelectorComponent_2), t1, false);
- this._extension_store$_sourceSpecificity.$index(0, simple);
- return new A.Extender0(t1, true);
- },
- _extension_store$_extendPseudo$3(pseudo, extensions, mediaQueryContext) {
- var extended, complexes, t1, result,
- selector = pseudo.selector;
- if (selector == null)
- throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null));
- extended = this._extension_store$_extendList$3(selector, extensions, mediaQueryContext);
- if (extended === selector)
- return null;
- complexes = extended.components;
- t1 = pseudo.normalizedName === "not";
- if (t1 && !B.JSArray_methods.any$1(selector.components, new A.ExtensionStore__extendPseudo_closure4()) && B.JSArray_methods.any$1(complexes, new A.ExtensionStore__extendPseudo_closure5()))
- complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure6(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
- complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure7(pseudo), type$.ComplexSelector_2);
- if (t1 && selector.components.length === 1) {
- t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure8(pseudo, selector), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector_2);
- result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
- return result.length === 0 ? null : result;
- } else
- return A._setArrayType([pseudo.withSelector$1(A.SelectorList$0(complexes, selector.span))], type$.JSArray_PseudoSelector_2);
- },
- _extension_store$_trim$2(selectors, isOriginal) {
- var i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity,
- result = A.QueueList$(null, type$.ComplexSelector_2);
- $label0$0:
- for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
- _box_0 = {};
- complex1 = selectors[i];
- if (isOriginal.call$1(complex1)) {
- for (j = 0; j < numOriginals; ++j)
- if (J.$eq$(result.$index(0, j), complex1)) {
- A.rotateSlice0(result, 0, j + 1);
- continue $label0$0;
- }
- ++numOriginals;
- result.addFirst$1(complex1);
- continue $label0$0;
- }
- _box_0.maxSpecificity = 0;
- for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) {
- maxSpecificity = Math.max(t5, this._extension_store$_sourceSpecificityFor$1(t3[_i].selector));
- _box_0.maxSpecificity = maxSpecificity;
- }
- if (result.any$1(result, new A.ExtensionStore__trim_closure1(_box_0, complex1)))
- continue $label0$0;
- t3 = new A.SubListIterable(selectors, 0, i, t1);
- t3.SubListIterable$3(selectors, 0, i, t2);
- if (t3.any$1(0, new A.ExtensionStore__trim_closure2(_box_0, complex1)))
- continue $label0$0;
- result.addFirst$1(complex1);
- }
- return result;
- },
- _extension_store$_sourceSpecificityFor$1(compound) {
- var t1, t2, t3, specificity, _i, t4;
- for (t1 = compound.components, t2 = t1.length, t3 = this._extension_store$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
- t4 = t3.$index(0, t1[_i]);
- specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4));
- }
- return specificity;
- },
- clone$0() {
- var t2, t3, t4, _this = this,
- t1 = type$.SimpleSelector_2,
- newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList_2),
- newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList_2, type$.List_CssMediaQuery_2),
- oldToNewSelectors = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList_2);
- _this._extension_store$_selectors.forEach$1(0, new A.ExtensionStore_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts));
- t2 = type$.Extension_2;
- t3 = A.copyMapOfMap0(_this._extension_store$_extensions, t1, type$.ComplexSelector_2, t2);
- t2 = A.copyMapOfList0(_this._extension_store$_extensionsByExtender, t1, t2);
- t1 = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int_2);
- t1.addAll$1(0, _this._extension_store$_sourceSpecificity);
- t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2);
- t4.addAll$1(0, _this._extension_store$_originals);
- return new A._Record_2(new A.ExtensionStore0(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal0), oldToNewSelectors);
- },
- get$_extension_store$_extensions() {
- return this._extension_store$_extensions;
- },
- get$_extension_store$_sourceSpecificity() {
- return this._extension_store$_sourceSpecificity;
- }
- };
- A.ExtensionStore_extensionsWhereTarget_closure0.prototype = {
- call$1(extension) {
- return !extension.isOptional;
- },
- $signature: 440
- };
- A.ExtensionStore__registerSelector_closure0.prototype = {
- call$0() {
- return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableBox_SelectorList_2);
- },
- $signature: 441
- };
- A.ExtensionStore_addExtension_closure2.prototype = {
- call$0() {
- return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
- },
- $signature: 125
- };
- A.ExtensionStore_addExtension_closure3.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_Extension_2);
- },
- $signature: 255
- };
- A.ExtensionStore_addExtension_closure4.prototype = {
- call$0() {
- return this.complex.get$specificity();
- },
- $signature: 10
- };
- A.ExtensionStore__extendExistingExtensions_closure1.prototype = {
- call$0() {
- return A._setArrayType([], type$.JSArray_Extension_2);
- },
- $signature: 255
- };
- A.ExtensionStore__extendExistingExtensions_closure2.prototype = {
- call$0() {
- return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
- },
- $signature: 125
- };
- A.ExtensionStore_addExtensions_closure0.prototype = {
- call$0() {
- return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
- },
- $signature: 125
- };
- A.ExtensionStore__extendComplex_closure0.prototype = {
- call$1(path) {
- var t1 = this.complex;
- return J.map$1$1$ax(A.weave0(path, t1.span, t1.lineBreak), new A.ExtensionStore__extendComplex__closure0(this._box_0, this.$this, t1), type$.ComplexSelector_2);
- },
- $signature: 444
- };
- A.ExtensionStore__extendComplex__closure0.prototype = {
- call$1(outputComplex) {
- var _this = this,
- t1 = _this._box_0;
- if (t1.first && _this.$this._extension_store$_originals.contains$1(0, _this.complex))
- _this.$this._extension_store$_originals.add$1(0, outputComplex);
- t1.first = false;
- return outputComplex;
- },
- $signature: 55
- };
- A.ExtensionStore__extendCompound_closure2.prototype = {
- call$1(extender) {
- return B.JSArray_methods.get$last(extender.selector.components).selector.components;
- },
- $signature: 446
- };
- A.ExtensionStore__extendCompound_closure3.prototype = {
- call$1(_) {
- return false;
- },
- $signature: 18
- };
- A.ExtensionStore__extendCompound_closure4.prototype = {
- call$1(complex) {
- return complex.$eq(0, this.original);
- },
- $signature: 18
- };
- A.ExtensionStore__extendSimple_withoutPseudo0.prototype = {
- call$1(simple) {
- var t1, t2,
- extensionsForSimple = this.extensions.$index(0, simple);
- if (extensionsForSimple == null)
- return null;
- t1 = this.targetsUsed;
- if (t1 != null)
- t1.add$1(0, simple);
- t1 = A._setArrayType([], type$.JSArray_Extender_2);
- t2 = this.$this;
- if (t2._extension_store$_mode !== B.ExtendMode_replace_replace0)
- t1.push(t2._extension_store$_extenderForSimple$1(simple));
- for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();)
- t1.push(t2.get$current(t2).extender);
- return t1;
- },
- $signature: 447
- };
- A.ExtensionStore__extendSimple_closure1.prototype = {
- call$1(pseudo) {
- var t1 = this.withoutPseudo.call$1(pseudo);
- return t1 == null ? A._setArrayType([this.$this._extension_store$_extenderForSimple$1(pseudo)], type$.JSArray_Extender_2) : t1;
- },
- $signature: 448
- };
- A.ExtensionStore__extendSimple_closure2.prototype = {
- call$1(result) {
- return A._setArrayType([result], type$.JSArray_List_Extender_2);
- },
- $signature: 449
- };
- A.ExtensionStore__extendPseudo_closure4.prototype = {
- call$1(complex) {
- return complex.components.length > 1;
- },
- $signature: 18
- };
- A.ExtensionStore__extendPseudo_closure5.prototype = {
- call$1(complex) {
- return complex.components.length === 1;
- },
- $signature: 18
- };
- A.ExtensionStore__extendPseudo_closure6.prototype = {
- call$1(complex) {
- return complex.components.length <= 1;
- },
- $signature: 18
- };
- A.ExtensionStore__extendPseudo_closure7.prototype = {
- call$1(complex) {
- var innerPseudo, innerSelector,
- t1 = complex.get$singleCompound();
- if (t1 == null)
- innerPseudo = null;
- else {
- t1 = t1.components;
- innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null;
- }
- if (!(innerPseudo instanceof A.PseudoSelector0))
- return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
- innerSelector = innerPseudo.selector;
- if (innerSelector == null)
- return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
- t1 = this.pseudo;
- switch (t1.normalizedName) {
- case "not":
- if (!B.Set_mlzm2.contains$1(0, innerPseudo.normalizedName))
- return A._setArrayType([], type$.JSArray_ComplexSelector_2);
- return innerSelector.components;
- case "is":
- case "matches":
- case "where":
- case "any":
- case "current":
- case "nth-child":
- case "nth-last-child":
- if (innerPseudo.name !== t1.name)
- return A._setArrayType([], type$.JSArray_ComplexSelector_2);
- if (innerPseudo.argument != t1.argument)
- return A._setArrayType([], type$.JSArray_ComplexSelector_2);
- return innerSelector.components;
- case "has":
- case "host":
- case "host-context":
- case "slotted":
- return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
- default:
- return A._setArrayType([], type$.JSArray_ComplexSelector_2);
- }
- },
- $signature: 450
- };
- A.ExtensionStore__extendPseudo_closure8.prototype = {
- call$1(complex) {
- return this.pseudo.withSelector$1(A.SelectorList$0(A._setArrayType([complex], type$.JSArray_ComplexSelector_2), this.selector.span));
- },
- $signature: 451
- };
- A.ExtensionStore__trim_closure1.prototype = {
- call$1(complex2) {
- return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
- },
- $signature: 18
- };
- A.ExtensionStore__trim_closure2.prototype = {
- call$1(complex2) {
- return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
- },
- $signature: 18
- };
- A.ExtensionStore_clone_closure0.prototype = {
- call$2(simple, selectors) {
- var t2, t3, t4, t5, t6, t7, newSelector, _0_0, _this = this,
- t1 = type$.ModifiableBox_SelectorList_2,
- newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- _this.newSelectors.$indexSet(0, simple, newSelectorSet);
- for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = type$.Box_SelectorList_2, t5 = _this.$this._extension_store$_mediaContexts, t6 = _this.newMediaContexts; t2.moveNext$0();) {
- t7 = t2.get$current(t2);
- newSelector = new A.ModifiableBox0(t7.value, t1);
- newSelectorSet.add$1(0, newSelector);
- t3.$indexSet(0, t7.value, new A.Box0(newSelector, t4));
- _0_0 = t5.$index(0, t7);
- if (_0_0 != null)
- t6.$indexSet(0, newSelector, _0_0);
- }
- },
- $signature: 452
- };
- A.FiberClass.prototype = {};
- A.Fiber.prototype = {};
- A.JSToDartFileImporter.prototype = {
- canonicalize$1(_, url) {
- var result, t1, resultUrl;
- if (url.get$scheme() === "file")
- return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, url);
- result = A.wrapJSExceptions(new A.JSToDartFileImporter_canonicalize_closure(this, url));
- if (result == null)
- return null;
- t1 = self.Promise;
- if (result instanceof t1)
- A.jsThrow(new self.Error("The findFileUrl() function can't return a Promise for synchron compile functions."));
- else {
- t1 = self.URL;
- if (!(result instanceof t1))
- A.jsThrow(new self.Error(string$.The_fie));
- }
- resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
- if (resultUrl.get$scheme() !== "file")
- A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".'));
- return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, resultUrl);
- },
- load$1(_, url) {
- return $.$get$FilesystemImporter_cwd0().load$1(0, url);
- },
- isNonCanonicalScheme$1(scheme) {
- return scheme !== "file";
- }
- };
- A.JSToDartFileImporter_canonicalize_closure.prototype = {
- call$0() {
- return this.$this._file0$_findFileUrl.call$2(this.url.toString$0(0), A.canonicalizeContext0());
- },
- $signature: 35
- };
- A.FilesystemImporter0.prototype = {
- canonicalize$1(_, url) {
- var resolved;
- if (url.get$scheme() === "file")
- resolved = A.resolveImportPath0($.$get$context().style.pathFromUri$1(A._parseUri(url)));
- else if (url.get$scheme() !== "")
- return null;
- else {
- resolved = A.resolveImportPath0(A.join(this._filesystem$_loadPath, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null));
- if (resolved != null && this._filesystem$_loadPathDeprecated)
- A.warnForDeprecation0(string$.Using_t, B.Deprecation_kmo);
- }
- return A.NullableExtension_andThen0(resolved, new A.FilesystemImporter_canonicalize_closure0());
- },
- load$1(_, url) {
- var path = $.$get$context().style.pathFromUri$1(A._parseUri(url));
- return A.ImporterResult$(A.readFile0(path), url, A.Syntax_forPath0(path));
- },
- toString$0(_) {
- return this._filesystem$_loadPath;
- }
- };
- A.FilesystemImporter_canonicalize_closure0.prototype = {
- call$1(resolved) {
- var t2, t0, _null = null,
- t1 = A.isNodeJs() ? self.process : _null;
- if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
- t1 = A.isNodeJs() ? self.process : _null;
- t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
- } else
- t1 = true;
- if (t1) {
- t1 = $.$get$context();
- t2 = A._realCasePath0(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
- t0 = t2;
- t2 = t1;
- t1 = t0;
- } else {
- t1 = $.$get$context();
- t2 = t1.canonicalize$1(0, resolved);
- t0 = t2;
- t2 = t1;
- t1 = t0;
- }
- return t2.toUri$1(t1);
- },
- $signature: 141
- };
- A.ForRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitForRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var _this = this,
- t1 = _this.from.toString$0(0),
- t2 = _this.isExclusive ? "to" : "through",
- t3 = _this.children;
- return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ForwardRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitForwardRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, prefix, _this = this,
- t1 = "@forward " + A.StringExpression_quoteText0(_this.url.toString$0(0)),
- shownMixinsAndFunctions = _this.shownMixinsAndFunctions,
- hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions;
- if (shownMixinsAndFunctions != null) {
- t2 = _this.shownVariables;
- t2.toString;
- t2 = t1 + " show " + _this._forward_rule0$_memberList$2(shownMixinsAndFunctions, t2);
- t1 = t2;
- } else if (hiddenMixinsAndFunctions != null && hiddenMixinsAndFunctions._base.get$isNotEmpty(0)) {
- t2 = _this.hiddenVariables;
- t2.toString;
- t2 = t1 + " hide " + _this._forward_rule0$_memberList$2(hiddenMixinsAndFunctions, t2);
- t1 = t2;
- }
- prefix = _this.prefix;
- if (prefix != null)
- t1 += " as " + prefix + "*";
- t2 = _this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _forward_rule0$_memberList$2(mixinsAndFunctions, variables) {
- var t2,
- t1 = A.List_List$of(mixinsAndFunctions, true, type$.String);
- for (t2 = variables._base.get$iterator(0); t2.moveNext$0();)
- t1.push("$" + t2.get$current(0));
- return B.JSArray_methods.join$1(t1, ", ");
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ForwardedModuleView0.prototype = {
- get$url(_) {
- var t1 = this._forwarded_view0$_inner;
- return t1.get$url(t1);
- },
- get$upstream() {
- return this._forwarded_view0$_inner.get$upstream();
- },
- get$extensionStore() {
- return this._forwarded_view0$_inner.get$extensionStore();
- },
- get$css(_) {
- var t1 = this._forwarded_view0$_inner;
- return t1.get$css(t1);
- },
- get$preModuleComments() {
- return this._forwarded_view0$_inner.get$preModuleComments();
- },
- get$transitivelyContainsCss() {
- return this._forwarded_view0$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions() {
- return this._forwarded_view0$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3($name, value, nodeWithSpan) {
- var t2, _1_0, _2_0,
- _s19_ = "Undefined variable.",
- t1 = this._forwarded_view0$_rule,
- _0_0 = t1.shownVariables;
- if (_0_0 != null)
- t2 = !_0_0._base.contains$1(0, $name);
- else
- t2 = false;
- if (t2)
- throw A.wrapException(A.SassScriptException$0(_s19_, null));
- else {
- _1_0 = t1.hiddenVariables;
- if (_1_0 != null)
- t2 = _1_0._base.contains$1(0, $name);
- else
- t2 = false;
- if (t2)
- throw A.wrapException(A.SassScriptException$0(_s19_, null));
- }
- _2_0 = t1.prefix;
- if (_2_0 != null) {
- if (!B.JSString_methods.startsWith$1($name, _2_0))
- throw A.wrapException(A.SassScriptException$0(_s19_, null));
- $name = B.JSString_methods.substring$1($name, _2_0.length);
- }
- return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1($name) {
- var _0_0 = this._forwarded_view0$_rule.prefix;
- if (_0_0 != null)
- $name = B.JSString_methods.substring$1($name, _0_0.length);
- return this._forwarded_view0$_inner.variableIdentity$1($name);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.ForwardedModuleView0 && this._forwarded_view0$_inner.$eq(0, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule;
- },
- get$hashCode(_) {
- var t1 = this._forwarded_view0$_inner;
- return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0;
- },
- cloneCss$0() {
- return A.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._precomputed1);
- },
- toString$0(_) {
- return "forwarded " + this._forwarded_view0$_inner.toString$0(0);
- },
- $isModule1: 1,
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- }
- };
- A.FunctionExpression0.prototype = {
- get$nameSpan() {
- if (this.namespace == null)
- return A.SpanExtensions_initialIdentifier0(this.span);
- return A.SpanExtensions_initialIdentifier0(A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier0(this.span), 1, null));
- },
- accept$1$1(visitor) {
- return visitor.visitFunctionExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "" + (t1 + ".") : "";
- t1 += this.originalName + this.$arguments.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.JSFunction0.prototype = {};
- A.SupportsFunction0.prototype = {
- toString$0(_) {
- return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.functionClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassFunction", new A.functionClass__closure()));
- A.JSClassExtension_injectSuperclass(t1._as(new A.SassFunction0(A.BuiltInCallable$function0("f", "", new A.functionClass__closure0(), null)).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.functionClass__closure.prototype = {
- call$3($self, signature, callback) {
- var paren = B.JSString_methods.indexOf$1(signature, "(");
- if (paren === -1 || !B.JSString_methods.endsWith$1(signature, ")"))
- A.jsThrow(new self.Error('Invalid signature for new sass.SassFunction(): "' + signature + '"'));
- return new A.SassFunction0(A.BuiltInCallable$function0(B.JSString_methods.substring$2(signature, 0, paren), B.JSString_methods.substring$2(signature, paren + 1, signature.length - 1), callback, null));
- },
- "call*": "call$3",
- $requiredArgCount: 3,
- $signature: 453
- };
- A.functionClass__closure0.prototype = {
- call$1(_) {
- return B.C__SassNull0;
- },
- $signature: 3
- };
- A.SassFunction0.prototype = {
- accept$1$1(visitor) {
- var t1, t2;
- if (!visitor._serialize0$_inspect)
- A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value.", null));
- t1 = visitor._serialize0$_buffer;
- t1.write$1(0, "get-function(");
- t2 = this.callable;
- visitor._serialize0$_visitQuotedString$1(t2.get$name(t2));
- t1.writeCharCode$1(41);
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertFunction$1($name) {
- return this;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassFunction0 && this.callable.$eq(0, other.callable);
- },
- get$hashCode(_) {
- var t1 = this.callable;
- return t1.get$hashCode(t1);
- }
- };
- A.FunctionRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitFunctionRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- }
- };
- A.unifyComplex_closure0.prototype = {
- call$1(complex) {
- return complex.lineBreak;
- },
- $signature: 18
- };
- A._weaveParents_closure3.prototype = {
- call$2(group1, group2) {
- var t1, unified;
- if (B.C_ListEquality.equals$2(0, group1, group2))
- return group1;
- if (A._complexIsParentSuperselector0(group1, group2))
- return group2;
- if (A._complexIsParentSuperselector0(group2, group1))
- return group1;
- if (!A._mustUnify0(group1, group2))
- return null;
- t1 = this.span;
- unified = A.unifyComplex0(A._setArrayType([A.ComplexSelector$0(B.List_empty13, group1, t1, false), A.ComplexSelector$0(B.List_empty13, group2, t1, false)], type$.JSArray_ComplexSelector_2), t1);
- if (unified == null)
- t1 = null;
- else {
- t1 = A.IterableExtension_get_singleOrNull(unified);
- t1 = t1 == null ? null : t1.components;
- }
- return t1;
- },
- $signature: 454
- };
- A._weaveParents_closure4.prototype = {
- call$1(sequence) {
- return A._complexIsParentSuperselector0(sequence.get$first(sequence), this.group);
- },
- $signature: 250
- };
- A._weaveParents_closure5.prototype = {
- call$1(sequence) {
- return sequence.get$length(0) === 0;
- },
- $signature: 250
- };
- A._weaveParents_closure6.prototype = {
- call$1(choice) {
- return J.get$isNotEmpty$asx(choice);
- },
- $signature: 456
- };
- A._mustUnify_closure0.prototype = {
- call$1(component) {
- return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure0(this.uniqueSelectors));
- },
- $signature: 50
- };
- A._mustUnify__closure0.prototype = {
- call$1(simple) {
- var t1;
- if (!(simple instanceof A.IDSelector0))
- t1 = simple instanceof A.PseudoSelector0 && !simple.isClass;
- else
- t1 = true;
- return t1 && this.uniqueSelectors.contains$1(0, simple);
- },
- $signature: 14
- };
- A.paths_closure0.prototype = {
- call$2(paths, choice) {
- var t1 = this.T;
- t1 = J.expand$1$1$ax(choice, new A.paths__closure0(paths, t1), t1._eval$1("List<0>"));
- return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
- },
- $signature() {
- return this.T._eval$1("List<List<0>>(List<List<0>>,List<0>)");
- }
- };
- A.paths__closure0.prototype = {
- call$1(option) {
- var t1 = this.T;
- return J.map$1$1$ax(this.paths, new A.paths___closure0(option, t1), t1._eval$1("List<0>"));
- },
- $signature() {
- return this.T._eval$1("Iterable<List<0>>(0)");
- }
- };
- A.paths___closure0.prototype = {
- call$1(path) {
- var t1 = A.List_List$of(path, true, this.T);
- t1.push(this.option);
- return t1;
- },
- $signature() {
- return this.T._eval$1("List<0>(List<0>)");
- }
- };
- A.listIsSuperselector_closure0.prototype = {
- call$1(complex1) {
- return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure0(complex1));
- },
- $signature: 18
- };
- A.listIsSuperselector__closure0.prototype = {
- call$1(complex2) {
- return complex2.isSuperselector$1(this.complex1);
- },
- $signature: 18
- };
- A.complexIsSuperselector_closure1.prototype = {
- call$1($parent) {
- return $parent.combinators.length > 1;
- },
- $signature: 50
- };
- A.complexIsSuperselector_closure2.prototype = {
- call$1(component) {
- return A._isSupercombinator0(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators));
- },
- $signature: 50
- };
- A._compatibleWithPreviousCombinator_closure0.prototype = {
- call$1(component) {
- var t1 = component.combinators,
- t2 = A.IterableExtension_get_firstOrNull(t1);
- if (!J.$eq$(t2 == null ? null : t2.value, B.Combinator_y180)) {
- t1 = A.IterableExtension_get_firstOrNull(t1);
- t1 = J.$eq$(t1 == null ? null : t1.value, B.Combinator_gRV0);
- } else
- t1 = true;
- return t1;
- },
- $signature: 50
- };
- A.compoundIsSuperselector_closure0.prototype = {
- call$1(simple1) {
- return B.JSArray_methods.any$1(this.compound2.components, simple1.get$isSuperselector());
- },
- $signature: 14
- };
- A._selectorPseudoIsSuperselector_closure6.prototype = {
- call$1(selector2) {
- return A.listIsSuperselector0(this.selector1.components, selector2.components);
- },
- $signature: 65
- };
- A._selectorPseudoIsSuperselector_closure7.prototype = {
- call$1(complex1) {
- var t1, t2;
- if (complex1.leadingCombinators.length === 0) {
- t1 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2);
- t2 = this.parents;
- if (t2 != null)
- B.JSArray_methods.addAll$1(t1, t2);
- t2 = this.compound2;
- t1.push(new A.ComplexSelectorComponent0(t2, A.List_List$unmodifiable(B.List_empty13, type$.CssValue_Combinator_2), t2.span));
- t1 = A.complexIsSuperselector0(complex1.components, t1);
- } else
- t1 = false;
- return t1;
- },
- $signature: 18
- };
- A._selectorPseudoIsSuperselector_closure8.prototype = {
- call$1(selector2) {
- return A.listIsSuperselector0(this.selector1.components, selector2.components);
- },
- $signature: 65
- };
- A._selectorPseudoIsSuperselector_closure9.prototype = {
- call$1(selector2) {
- return A.listIsSuperselector0(this.selector1.components, selector2.components);
- },
- $signature: 65
- };
- A._selectorPseudoIsSuperselector_closure10.prototype = {
- call$1(complex) {
- if (complex.accept$1(B._IsBogusVisitor_true0))
- return false;
- return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1));
- },
- $signature: 18
- };
- A._selectorPseudoIsSuperselector__closure0.prototype = {
- call$1(simple2) {
- var t1, _0_4, selector2, _this = this;
- $label0$1: {
- if (simple2 instanceof A.TypeSelector0) {
- t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure1(simple2));
- break $label0$1;
- }
- if (simple2 instanceof A.IDSelector0) {
- t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure2(simple2));
- break $label0$1;
- }
- if (simple2 instanceof A.PseudoSelector0) {
- _0_4 = simple2.selector;
- if (_0_4 != null) {
- selector2 = _0_4 == null ? type$.SelectorList_2._as(_0_4) : _0_4;
- t1 = simple2.name === _this.pseudo1.name;
- } else {
- selector2 = null;
- t1 = false;
- }
- } else {
- selector2 = null;
- t1 = false;
- }
- if (t1) {
- t1 = A.listIsSuperselector0(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector_2));
- break $label0$1;
- }
- t1 = false;
- break $label0$1;
- }
- return t1;
- },
- $signature: 14
- };
- A._selectorPseudoIsSuperselector___closure1.prototype = {
- call$1(simple1) {
- var t1;
- if (simple1 instanceof A.TypeSelector0) {
- t1 = this.simple2;
- t1 = !(t1 instanceof A.TypeSelector0 && t1.name.$eq(0, simple1.name));
- } else
- t1 = false;
- return t1;
- },
- $signature: 14
- };
- A._selectorPseudoIsSuperselector___closure2.prototype = {
- call$1(simple1) {
- var t1;
- if (simple1 instanceof A.IDSelector0) {
- t1 = this.simple2;
- t1 = !(t1 instanceof A.IDSelector0 && t1.name === simple1.name);
- } else
- t1 = false;
- return t1;
- },
- $signature: 14
- };
- A._selectorPseudoIsSuperselector_closure11.prototype = {
- call$1(selector2) {
- var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components);
- return t1;
- },
- $signature: 65
- };
- A._selectorPseudoIsSuperselector_closure12.prototype = {
- call$1(pseudo2) {
- var t1, selector2;
- if (!(pseudo2 instanceof A.PseudoSelector0))
- return false;
- t1 = this.pseudo1;
- if (pseudo2.name !== t1.name)
- return false;
- if (pseudo2.argument != t1.argument)
- return false;
- selector2 = pseudo2.selector;
- if (selector2 == null)
- return false;
- return A.listIsSuperselector0(this.selector1.components, selector2.components);
- },
- $signature: 14
- };
- A._selectorPseudoArgs_closure1.prototype = {
- call$1(pseudo) {
- return pseudo.isClass === this.isClass && pseudo.name === this.name;
- },
- $signature: 458
- };
- A._selectorPseudoArgs_closure2.prototype = {
- call$1(pseudo) {
- return pseudo.selector;
- },
- $signature: 459
- };
- A.globalFunctions_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
- },
- $signature: 3
- };
- A.IDSelector0.prototype = {
- get$specificity() {
- return A._asInt(Math.pow(A.SimpleSelector0.prototype.get$specificity.call(this), 2));
- },
- accept$1$1(visitor) {
- return visitor.visitIDSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- return new A.IDSelector0(this.name + suffix, this.span);
- },
- unify$1(compound) {
- if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure0(this)))
- return null;
- return this.super$SimpleSelector$unify0(compound);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.IDSelector0 && other.name === this.name;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- }
- };
- A.IDSelector_unify_closure0.prototype = {
- call$1(simple) {
- var t1;
- if (simple instanceof A.IDSelector0)
- t1 = this.$this.name !== simple.name;
- else
- t1 = false;
- return t1;
- },
- $signature: 14
- };
- A.IfExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitIfExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "if" + this.$arguments.toString$0(0);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.IfRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitIfRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure0(), type$.IfClause_2, type$.String).join$1(0, " "),
- lastClause = this.lastClause;
- return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.IfRule_toString_closure0.prototype = {
- call$2(index, clause) {
- var t1 = index === 0 ? "if" : "else if";
- return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}";
- },
- $signature: 460
- };
- A.IfRuleClause0.prototype = {};
- A.IfRuleClause$__closure0.prototype = {
- call$1(child) {
- var t1;
- $label0$0: {
- if (child instanceof A.VariableDeclaration0 || child instanceof A.FunctionRule0 || child instanceof A.MixinRule0) {
- t1 = true;
- break $label0$0;
- }
- if (child instanceof A.ImportRule0) {
- t1 = B.JSArray_methods.any$1(child.imports, new A.IfRuleClause$___closure0());
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $signature: 247
- };
- A.IfRuleClause$___closure0.prototype = {
- call$1($import) {
- return $import instanceof A.DynamicImport0;
- },
- $signature: 245
- };
- A.IfClause0.prototype = {
- toString$0(_) {
- return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}";
- }
- };
- A.ElseClause0.prototype = {
- toString$0(_) {
- return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}";
- }
- };
- A.ImmutableList0.prototype = {};
- A.ImmutableMap0.prototype = {};
- A.immutableMapToDartMap_closure.prototype = {
- call$3(value, key, _) {
- this.dartMap.$indexSet(0, key, value);
- },
- "call*": "call$3",
- $requiredArgCount: 3,
- $signature: 463
- };
- A.NodeImporter.prototype = {
- loadRelative$3(url, previous, forImport) {
- var t1, t2, _null = null;
- if ($.$get$url().style.rootLength$1(url) > 0) {
- if (!B.JSString_methods.startsWith$1(url, "/") && !B.JSString_methods.startsWith$1(url, "file:"))
- return _null;
- return this._tryPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport);
- }
- if ((previous == null ? _null : previous.get$scheme()) !== "file")
- return _null;
- t1 = $.$get$context();
- previous.toString;
- t2 = t1.style;
- return this._tryPath$2(A.join(t1.dirname$1(t2.pathFromUri$1(A._parseUri(previous))), t2.pathFromUri$1(A._parseUri(url)), _null), forImport);
- },
- load$3(_, url, previous, forImport) {
- var t1, t2, _i, _0_0, _this = this,
- previousString = _this._previousToString$1(previous);
- for (t1 = _this._implementation$_importers, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- _0_0 = A.wrapJSExceptions(new A.NodeImporter_load_closure(_this, t1[_i], forImport, url, previousString));
- if (_0_0 != null)
- return _this._handleImportResult$4(url, previous, _0_0, forImport);
- }
- return _this._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport);
- },
- loadAsync$3(url, previous, forImport) {
- return this.loadAsync$body$NodeImporter(url, previous, forImport);
- },
- loadAsync$body$NodeImporter(url, previous, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_2_String_and_String),
- $async$returnValue, $async$self = this, t1, t2, _i, _0_0, previousString;
- var $async$loadAsync$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- previousString = $async$self._previousToString$1(previous);
- t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0;
- case 3:
- // for condition
- if (!(_i < t2)) {
- // goto after for
- $async$goto = 5;
- break;
- }
- $async$goto = 6;
- return A._asyncAwait($async$self._callImporterAsync$4(t1[_i], url, previousString, forImport), $async$loadAsync$3);
- case 6:
- // returning from await.
- _0_0 = $async$result;
- if (_0_0 != null) {
- $async$returnValue = $async$self._handleImportResult$4(url, previous, _0_0, forImport);
- // goto return
- $async$goto = 1;
- break;
- }
- case 4:
- // for update
- ++_i;
- // goto for condition
- $async$goto = 3;
- break;
- case 5:
- // after for
- $async$returnValue = $async$self._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$loadAsync$3, $async$completer);
- },
- _previousToString$1(previous) {
- var t1;
- $label0$0: {
- if (previous == null) {
- t1 = "stdin";
- break $label0$0;
- }
- if ("file" === previous.get$scheme()) {
- t1 = $.$get$context().style.pathFromUri$1(A._parseUri(previous));
- break $label0$0;
- }
- t1 = previous.toString$0(0);
- break $label0$0;
- }
- return t1;
- },
- _resolveLoadPathFromUrl$2(url, forImport) {
- return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport) : null;
- },
- _resolveLoadPath$2(path, forImport) {
- var t1, t2, _i, t3, _1_0, _null = null,
- _0_0 = this._tryPath$2(A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), forImport);
- if (_0_0 != null)
- return _0_0;
- for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- t3 = A.join(t1[_i], path, _null);
- _1_0 = this._tryPath$2($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), forImport);
- if (_1_0 != null)
- return _1_0;
- }
- return _null;
- },
- _tryPath$2(path, forImport) {
- var t1 = forImport ? A.inImportRule(new A.NodeImporter__tryPath_closure(path), type$.nullable_String) : A.resolveImportPath0(path);
- return A.NullableExtension_andThen0(t1, new A.NodeImporter__tryPath_closure0());
- },
- _handleImportResult$4(url, previous, value, forImport) {
- var t1, file, contents, t2, resolved;
- if (value instanceof self.Error)
- throw A.wrapException(value);
- if (!type$.NodeImporterResult._is(value))
- return null;
- t1 = J.getInterceptor$x(value);
- file = t1.get$file(value);
- contents = t1.get$contents(value);
- t1 = contents == null;
- t2 = !t1;
- if (t2 && A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
- A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
- if (file == null)
- return new A._Record_2(t1 ? "" : contents, url);
- else if (t2)
- return new A._Record_2(contents, $.$get$context().toUri$1(file).toString$0(0));
- else {
- resolved = this.loadRelative$3($.$get$context().toUri$1(file).toString$0(0), previous, forImport);
- if (resolved == null)
- resolved = this._resolveLoadPath$2(file, forImport);
- if (resolved != null)
- return resolved;
- throw A.wrapException("Can't find stylesheet to import.");
- }
- },
- _callImporterAsync$4(importer, url, previousString, forImport) {
- return this._callImporterAsync$body$NodeImporter(importer, url, previousString, forImport);
- },
- _callImporterAsync$body$NodeImporter(importer, url, previousString, forImport) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Object),
- $async$returnValue, $async$self = this, t1, result;
- var $async$_callImporterAsync$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = new A._Future($.Zone__current, type$._Future_Object);
- result = A.wrapJSExceptions(new A.NodeImporter__callImporterAsync_closure($async$self, importer, forImport, url, previousString, new A._AsyncCompleter(t1, type$._AsyncCompleter_Object)));
- $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 4;
- break;
- case 3:
- // then
- $async$goto = 5;
- return A._asyncAwait(t1, $async$_callImporterAsync$4);
- case 5:
- // returning from await.
- $async$returnValue = $async$result;
- // goto return
- $async$goto = 1;
- break;
- case 4:
- // join
- $async$returnValue = result;
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$_callImporterAsync$4, $async$completer);
- },
- _renderContext$1(fromImport) {
- var context = {options: type$.RenderContextOptions._as(this._implementation$_options), fromImport: fromImport};
- J.set$context$x(J.get$options$x(context), context);
- return context;
- }
- };
- A.NodeImporter_load_closure.prototype = {
- call$0() {
- var _this = this;
- return J.apply$2$x(_this.importer, _this.$this._renderContext$1(_this.forImport), A._setArrayType([_this.url, _this.previousString], type$.JSArray_Object));
- },
- $signature: 35
- };
- A.NodeImporter__tryPath_closure.prototype = {
- call$0() {
- return A.resolveImportPath0(this.path);
- },
- $signature: 44
- };
- A.NodeImporter__tryPath_closure0.prototype = {
- call$1(resolved) {
- return new A._Record_2(A.readFile0(resolved), $.$get$context().toUri$1(resolved).toString$0(0));
- },
- $signature: 464
- };
- A.NodeImporter__callImporterAsync_closure.prototype = {
- call$0() {
- var _this = this;
- return J.apply$2$x(_this.importer, _this.$this._renderContext$1(_this.forImport), A._setArrayType([_this.url, _this.previousString, A.allowInterop(_this.completer.get$complete())], type$.JSArray_Object));
- },
- $signature: 35
- };
- A.ModifiableCssImport0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssImport$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ImportCache0.prototype = {
- canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
- var t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, _1_2, result, _2_0, _2_1, _2_5_isSet, _2_3, _2_5, _2_3_isSet, j, _this = this, _null = null;
- if (A.isBrowser())
- t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter0) && _this._import_cache$_importers.length === 0;
- else
- t1 = false;
- if (t1)
- throw A.wrapException(string$.Custom);
- if (baseImporter != null && url.get$scheme() === "") {
- resolvedUrl = baseUrl == null ? _null : baseUrl.resolveUri$1(url);
- if (resolvedUrl == null)
- resolvedUrl = url;
- key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
- relativeResult = _this._import_cache$_perImporterCanonicalizeCache.putIfAbsent$2(key, new A.ImportCache_canonicalize_closure0(_this, baseImporter, resolvedUrl, baseUrl, forImport, key, url));
- if (relativeResult != null)
- return relativeResult;
- }
- key = new A._Record_2_forImport(url, forImport);
- t1 = _this._import_cache$_canonicalizeCache;
- if (t1.containsKey$1(key))
- return t1.$index(0, key);
- for (t2 = _this._import_cache$_importers, t3 = type$.Record_1_nullable_Object, t4 = _this._import_cache$_perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2, t6 = type$.Record_3_Importer_and_Uri_and_Uri_originalUrl_2, cacheable = true, i = 0; i < t2.length; ++i) {
- importer = t2[i];
- perImporterKey = new A._Record_3_forImport(importer, url, forImport);
- if (t4.containsKey$1(perImporterKey)) {
- t7 = t4.$index(0, perImporterKey);
- _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
- } else
- _1_0 = _null;
- _1_2_isSet = t3._is(_1_0);
- if (_1_2_isSet) {
- _1_2 = _1_0._0;
- t7 = _1_2 != null;
- if (t7) {
- t6._as(_1_2);
- result = _1_2;
- } else
- result = _null;
- } else {
- result = _null;
- _1_2 = result;
- t7 = false;
- }
- if (t7)
- return result;
- if (_1_2_isSet)
- t7 = _1_2 == null;
- else
- t7 = false;
- if (t7)
- continue;
- $label0$1: {
- _2_0 = _this._import_cache$_canonicalize$4(importer, url, baseUrl, forImport);
- _2_1 = _2_0._0;
- _2_5_isSet = _2_1 != null;
- if (_2_5_isSet) {
- result = _2_1 == null ? t6._as(_2_1) : _2_1;
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_5 = t7;
- t7 = t7 && cacheable;
- } else {
- result = _null;
- _2_3 = result;
- _2_5 = _2_3;
- t7 = false;
- }
- if (t7) {
- t1.$indexSet(0, key, result);
- return result;
- }
- if (_2_5_isSet) {
- t7 = _2_5;
- _2_3_isSet = _2_5_isSet;
- } else {
- _2_3 = _2_0._1;
- t7 = _2_3;
- _2_3_isSet = true;
- }
- t7 = t7 && !cacheable;
- if (t7) {
- t4.$indexSet(0, perImporterKey, _2_1);
- if (_2_1 != null)
- return _2_1;
- break $label0$1;
- }
- t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
- if (t7) {
- if (cacheable) {
- for (j = 0; j < i; ++j)
- t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), _null);
- cacheable = false;
- }
- if (_2_1 != null)
- return _2_1;
- }
- }
- }
- if (cacheable)
- t1.$indexSet(0, key, _null);
- return _null;
- },
- _import_cache$_canonicalize$4(importer, url, baseUrl, forImport) {
- var passContainingUrl, canonicalizeContext, t1, result, cacheable, _null = null;
- if (baseUrl != null)
- passContainingUrl = url.get$scheme() === "" || importer.isNonCanonicalScheme$1(url.get$scheme());
- else
- passContainingUrl = false;
- canonicalizeContext = new A.CanonicalizeContext0(forImport, passContainingUrl ? baseUrl : _null);
- t1 = type$.nullable_Object;
- result = A.runZoned(new A.ImportCache__canonicalize_closure0(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.nullable_Uri);
- cacheable = !passContainingUrl || !canonicalizeContext._canonicalize_context$_wasContainingUrlAccessed;
- if (result == null)
- return new A._Record_2(_null, cacheable);
- if (result.get$scheme() === "")
- A.WarnForDeprecation_warnForDeprecation0(this._import_cache$_logger, B.Deprecation_Ssf, "Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2e_Rela, _null, _null);
- else if (importer.isNonCanonicalScheme$1(result.get$scheme()))
- throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
- return new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
- },
- importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, quiet) {
- return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl, quiet));
- },
- importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
- return this.importCanonical$4$originalUrl$quiet(importer, canonicalUrl, originalUrl, false);
- },
- humanize$1(canonicalUrl) {
- var t1 = A.IterableNullableExtension_whereNotNull(this._import_cache$_canonicalizeCache.get$values(0), type$.Record_3_Importer_and_Uri_and_Uri_originalUrl_2),
- t2 = t1.$ti;
- t2 = A.NullableExtension_andThen0(A.minBy(new A.MappedIterable(new A.WhereIterable(t1, new A.ImportCache_humanize_closure3(canonicalUrl), t2._eval$1("WhereIterable<Iterable.E>")), new A.ImportCache_humanize_closure4(), t2._eval$1("MappedIterable<Iterable.E,Uri>")), new A.ImportCache_humanize_closure5()), new A.ImportCache_humanize_closure6(canonicalUrl));
- return t2 == null ? canonicalUrl : t2;
- },
- sourceMapUrl$1(_, canonicalUrl) {
- var t1 = this._import_cache$_resultsCache.$index(0, canonicalUrl);
- t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
- return t1 == null ? canonicalUrl : t1;
- }
- };
- A.ImportCache_canonicalize_closure0.prototype = {
- call$0() {
- var _this = this,
- t1 = _this.$this,
- t2 = _this.baseUrl,
- _0_0 = t1._import_cache$_canonicalize$4(_this.baseImporter, _this.resolvedUrl, t2, _this.forImport);
- if (t2 != null)
- t1._import_cache$_nonCanonicalRelativeUrls.$indexSet(0, _this.key, _this.url);
- return _0_0._0;
- },
- $signature: 630
- };
- A.ImportCache__canonicalize_closure0.prototype = {
- call$0() {
- return this.importer.canonicalize$1(0, this.url);
- },
- $signature: 140
- };
- A.ImportCache_importCanonical_closure0.prototype = {
- call$0() {
- var t2, t3, t4, _this = this,
- t1 = _this.canonicalUrl,
- result = _this.importer.load$1(0, t1);
- if (result == null)
- return null;
- t2 = _this.$this;
- t2._import_cache$_resultsCache.$indexSet(0, t1, result);
- t3 = result.contents;
- t4 = result.syntax;
- t1 = _this.originalUrl.resolveUri$1(t1);
- return A.Stylesheet_Stylesheet$parse0(t3, t4, _this.quiet ? $.$get$Logger_quiet0() : t2._import_cache$_logger, t1);
- },
- $signature: 466
- };
- A.ImportCache_humanize_closure3.prototype = {
- call$1(result) {
- return J.$eq$(result._1, this.canonicalUrl);
- },
- $signature: 467
- };
- A.ImportCache_humanize_closure4.prototype = {
- call$1(result) {
- return result._2;
- },
- $signature: 468
- };
- A.ImportCache_humanize_closure5.prototype = {
- call$1(url) {
- return url.get$path(url).length;
- },
- $signature: 87
- };
- A.ImportCache_humanize_closure6.prototype = {
- call$1(url) {
- var t1 = $.$get$url(),
- t2 = this.canonicalUrl;
- return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
- },
- $signature: 43
- };
- A.ImportRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitImportRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.JSImporter.prototype = {};
- A.JSImporterResult.prototype = {};
- A.Importer0.prototype = {
- isNonCanonicalScheme$1(scheme) {
- return false;
- }
- };
- A.NodeImporterResult0.prototype = {};
- A.IncludeRule0.prototype = {
- get$spanWithoutContent() {
- var t2, t3,
- t1 = this.span;
- if (!(this.content == null)) {
- t2 = t1.file;
- t3 = this.$arguments.span;
- t3 = A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset)));
- t1 = t3;
- }
- return t1;
- },
- get$nameSpan() {
- var startSpan, scanner, _null = null,
- t1 = this.span,
- t2 = t1._file$_start,
- t3 = t1._end,
- t4 = t1.file._decodedChars;
- if (B.JSString_methods.startsWith$1(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), "+"))
- startSpan = A.SpanExtensions_trimLeft0(A.FileSpanExtension_subspan(t1, 1, _null));
- else {
- scanner = A.StringScanner$(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), _null, _null);
- scanner.expectChar$1(64);
- A._scanIdentifier0(scanner);
- startSpan = A.SpanExtensions_trimLeft0(A.FileSpanExtension_subspan(t1, scanner._string_scanner$_position, _null));
- }
- return A.SpanExtensions_initialIdentifier0(this.namespace != null ? A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier0(startSpan), 1, _null) : startSpan);
- },
- accept$1$1(visitor) {
- return visitor.visitIncludeRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, _this = this,
- t1 = _this.namespace;
- t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
- t1 += _this.name;
- t2 = _this.$arguments;
- if (!t2.get$isEmpty(0))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = _this.content;
- t1 += t2 == null ? ";" : " " + t2.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.InterpolatedFunctionExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitInterpolatedFunctionExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.name.toString$0(0) + this.$arguments.toString$0(0);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Interpolation0.prototype = {
- get$asPlain() {
- var _0_1, t1, _0_6_isSet, _0_6, first, _null = null,
- _0_0 = this.contents;
- $label0$0: {
- _0_1 = _0_0.length;
- if (_0_1 <= 0) {
- t1 = "";
- break $label0$0;
- }
- _0_6_isSet = _0_1 === 1;
- if (_0_6_isSet) {
- _0_6 = _0_0[0];
- t1 = _0_6;
- t1 = typeof t1 == "string";
- } else {
- _0_6 = _null;
- t1 = false;
- }
- if (t1) {
- first = A._asString(_0_6_isSet ? _0_6 : _0_0[0]);
- t1 = first;
- break $label0$0;
- }
- t1 = _null;
- break $label0$0;
- }
- return t1;
- },
- get$initialPlain() {
- var _0_4_isSet, _0_4, t1, first,
- _0_0 = this.contents;
- $label0$0: {
- _0_4_isSet = _0_0.length >= 1;
- if (_0_4_isSet) {
- _0_4 = _0_0[0];
- t1 = _0_4;
- t1 = typeof t1 == "string";
- } else {
- _0_4 = null;
- t1 = false;
- }
- if (t1) {
- first = A._asString(_0_4_isSet ? _0_4 : _0_0[0]);
- t1 = first;
- break $label0$0;
- }
- t1 = "";
- break $label0$0;
- }
- return t1;
- },
- Interpolation$20(contents, span) {
- var t1, t2, t3, i, t4, t5,
- _s8_ = "contents";
- for (t1 = this.contents, t2 = t1.length, t3 = type$.Expression_2, i = 0; i < t2; ++i) {
- t4 = t1[i];
- t5 = typeof t4 == "string";
- if (!t5 && !t3._is(t4))
- throw A.wrapException(A.ArgumentError$value(t1, _s8_, string$.May_on));
- if (i !== 0 && typeof t1[i - 1] == "string" && t5)
- throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
- }
- },
- toString$0(_) {
- var t1 = this.contents;
- return new A.MappedListIterable(t1, new A.Interpolation_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Interpolation_toString_closure0.prototype = {
- call$1(value) {
- return typeof value == "string" ? value : "#{" + A.S(value) + "}";
- },
- $signature: 134
- };
- A.SupportsInterpolation0.prototype = {
- toString$0(_) {
- return "#{" + this.expression.toString$0(0) + "}";
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.InterpolationBuffer0.prototype = {
- writeCharCode$1(character) {
- var t1 = this._interpolation_buffer0$_text,
- t2 = A.Primitives_stringFromCharCode(character);
- t1._contents += t2;
- return null;
- },
- addInterpolation$1(interpolation) {
- var _0_4_isSet, _0_4, first, rest, t2, _this = this,
- toAdd = interpolation.contents,
- t1 = toAdd.length;
- if (t1 === 0)
- return;
- _0_4_isSet = t1 >= 1;
- if (_0_4_isSet) {
- _0_4 = toAdd[0];
- t1 = _0_4;
- t1 = typeof t1 == "string";
- } else {
- _0_4 = null;
- t1 = false;
- }
- if (t1) {
- first = A._asString(_0_4_isSet ? _0_4 : toAdd[0]);
- rest = B.JSArray_methods.sublist$1(toAdd, 1);
- t1 = _this._interpolation_buffer0$_text;
- t1._contents += first;
- toAdd = rest;
- }
- _this._interpolation_buffer0$_flushText$0();
- t1 = _this._interpolation_buffer0$_contents;
- B.JSArray_methods.addAll$1(t1, toAdd);
- if (typeof B.JSArray_methods.get$last(t1) == "string") {
- t2 = _this._interpolation_buffer0$_text;
- t1 = A.S(t1.pop());
- t2._contents += t1;
- }
- },
- _interpolation_buffer0$_flushText$0() {
- var t1 = this._interpolation_buffer0$_text,
- t2 = t1._contents;
- if (t2.length === 0)
- return;
- this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- t1._contents = "";
- },
- interpolation$1(span) {
- var t1 = A.List_List$of(this._interpolation_buffer0$_contents, true, type$.Object),
- t2 = this._interpolation_buffer0$_text._contents;
- if (t2.length !== 0)
- t1.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- return A.Interpolation$0(t1, span);
- },
- toString$0(_) {
- var t1, t2, _i, t3, element;
- for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- element = t1[_i];
- t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125);
- }
- t1 = t3 + this._interpolation_buffer0$_text.toString$0(0);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- };
- A.InterpolationMap0.prototype = {
- mapException$1(error) {
- var t3, t4, _this = this,
- target = error.get$span(error),
- source = _this.mapSpan$1(target),
- startIndex = _this._interpolation_map$_indexInContents$1(target.get$start(target)),
- endIndex = _this._interpolation_map$_indexInContents$1(target.get$end(target)),
- t1 = _this._interpolation_map$_interpolation.contents,
- t2 = error._span_exception$_message;
- if (!A.SubListIterable$(t1, startIndex, null, A._arrayInstanceType(t1)._precomputed1).take$1(0, endIndex - startIndex + 1).any$1(0, new A.InterpolationMap_mapException_closure0()))
- return new A.SourceSpanFormatException(error.get$source(), t2, source);
- else {
- t1 = type$.SourceSpan;
- t3 = type$.String;
- t4 = A.LinkedHashMap_LinkedHashMap$_literal([target, "error in interpolated output"], t1, t3);
- return new A.MultiSourceSpanFormatException(error.get$source(), "", A.ConstantMap_ConstantMap$from(t4, t1, t3), t2, source);
- }
- },
- mapSpan$1(target) {
- var _0_10, t1, _0_2_isSet, _0_20, t2, start, end, _this = this, _null = null,
- _0_1 = _this._interpolation_map$_mapLocation$1(target.get$start(target)),
- _0_2 = _this._interpolation_map$_mapLocation$1(target.get$end(target));
- $label0$0: {
- _0_10 = _0_1;
- t1 = type$.FileSpan;
- _0_2_isSet = t1._is(_0_1);
- if (_0_2_isSet) {
- t1._as(_0_10);
- _0_20 = _0_2;
- t2 = t1._is(_0_2);
- start = _0_10;
- _0_1 = start;
- } else {
- start = _null;
- _0_20 = start;
- _0_1 = _0_10;
- t2 = false;
- }
- if (t2) {
- t1 = start.expand$1(0, t1._as(_0_2_isSet ? _0_20 : _0_2));
- break $label0$0;
- }
- if (t1._is(_0_1)) {
- if (_0_2_isSet)
- t2 = _0_20;
- else {
- t2 = _0_2;
- _0_20 = t2;
- _0_2_isSet = true;
- }
- t2 = t2 instanceof A.FileLocation;
- start = _0_1;
- } else {
- start = _null;
- t2 = false;
- }
- if (t2) {
- t1 = _0_2_isSet ? _0_20 : _0_2;
- type$.FileLocation._as(t1);
- t2 = _this._interpolation_map$_interpolation.span;
- t1 = t2.get$file(t2).span$2(0, _this._interpolation_map$_expandInterpolationSpanLeft$1(start.get$start(start)), t1.offset);
- break $label0$0;
- }
- if (_0_1 instanceof A.FileLocation) {
- if (_0_2_isSet)
- t2 = _0_20;
- else {
- t2 = _0_2;
- _0_20 = t2;
- _0_2_isSet = true;
- }
- t2 = t1._is(t2);
- start = _0_1;
- } else {
- start = _null;
- t2 = false;
- }
- if (t2) {
- end = t1._as(_0_2_isSet ? _0_20 : _0_2);
- t1 = _this._interpolation_map$_interpolation.span;
- t1 = t1.get$file(t1).span$2(0, start.offset, _this._interpolation_map$_expandInterpolationSpanRight$1(end.get$end(end)));
- break $label0$0;
- }
- if (_0_1 instanceof A.FileLocation) {
- if (_0_2_isSet)
- t1 = _0_20;
- else {
- t1 = _0_2;
- _0_20 = t1;
- _0_2_isSet = true;
- }
- t1 = t1 instanceof A.FileLocation;
- start = _0_1;
- } else {
- start = _null;
- t1 = false;
- }
- if (t1) {
- t1 = _0_2_isSet ? _0_20 : _0_2;
- type$.FileLocation._as(t1);
- t2 = _this._interpolation_map$_interpolation.span;
- t1 = t2.get$file(t2).span$2(0, start.offset, t1.offset);
- break $label0$0;
- }
- t1 = A.throwExpression("[BUG] Unreachable");
- }
- return t1;
- },
- _interpolation_map$_mapLocation$1(target) {
- var t4, previousLocation, _this = this,
- index = _this._interpolation_map$_indexInContents$1(target),
- t1 = _this._interpolation_map$_interpolation,
- t2 = t1.contents,
- _0_0 = t2[index],
- t3 = type$.Expression_2;
- if (t3._is(_0_0))
- return _0_0.get$span(_0_0);
- t4 = index === 0;
- t1 = t1.span;
- if (t4)
- previousLocation = t1.get$start(t1);
- else {
- t1 = t1.get$file(t1);
- t2 = t3._as(t2[index - 1]);
- t2 = t2.get$span(t2);
- previousLocation = A.FileLocation$_(t1, _this._interpolation_map$_expandInterpolationSpanRight$1(t2.get$end(t2)));
- }
- t1 = t4 ? 0 : _this._interpolation_map$_targetLocations[index - 1].get$offset();
- return A.FileLocation$_(previousLocation.file, previousLocation.offset + (target.offset - t1));
- },
- _interpolation_map$_indexInContents$1(target) {
- var t1, t2, t3, i;
- for (t1 = this._interpolation_map$_targetLocations, t2 = t1.length, t3 = target.offset, i = 0; i < t2; ++i)
- if (t3 < t1[i].get$offset())
- return i;
- return this._interpolation_map$_interpolation.contents.length - 1;
- },
- _interpolation_map$_expandInterpolationSpanLeft$1(start) {
- var i0, prev, char,
- source = start.file._decodedChars,
- i = start.offset - 1;
- for (; i >= 0;) {
- i0 = i - 1;
- prev = source[i];
- if (prev === 123) {
- if (source[i0] === 35) {
- i = i0;
- break;
- }
- i = i0;
- } else if (prev === 47) {
- i = i0 - 1;
- if (source[i0] === 42)
- for (; true;) {
- i0 = i - 1;
- if (source[i] !== 42) {
- i = i0;
- continue;
- }
- i = i0;
- do {
- i0 = i - 1;
- char = source[i];
- if (char === 42) {
- i = i0;
- continue;
- } else
- break;
- } while (true);
- if (char === 47) {
- i = i0;
- break;
- }
- i = i0;
- }
- } else
- i = i0;
- }
- return i;
- },
- _interpolation_map$_expandInterpolationSpanRight$1(end) {
- var t1, i0, next, second, t2, char,
- source = end.file._decodedChars,
- i = end.offset;
- for (t1 = source.length; i < t1;) {
- i0 = i + 1;
- next = source[i];
- if (next === 125) {
- i = i0;
- break;
- }
- if (next === 47) {
- i = i0 + 1;
- second = source[i0];
- if (second === 47) {
- while (true) {
- i0 = i + 1;
- t2 = source[i];
- if (!!(t2 === 10 || t2 === 13 || t2 === 12))
- break;
- i = i0;
- }
- i = i0;
- } else if (second === 42)
- for (; true;) {
- i0 = i + 1;
- if (source[i] !== 42) {
- i = i0;
- continue;
- }
- i = i0;
- do {
- i0 = i + 1;
- char = source[i];
- if (char === 42) {
- i = i0;
- continue;
- } else
- break;
- } while (true);
- if (char === 47) {
- i = i0;
- break;
- }
- i = i0;
- }
- } else
- i = i0;
- }
- return i;
- }
- };
- A.InterpolationMap_mapException_closure0.prototype = {
- call$1($content) {
- return type$.Expression_2._is($content);
- },
- $signature: 75
- };
- A._realCasePath_helper0.prototype = {
- call$1(path) {
- var dirname = $.$get$context().dirname$1(path);
- if (dirname === path)
- return path;
- return $._realCaseCache0.putIfAbsent$2(path, new A._realCasePath_helper_closure0(this, dirname, path));
- },
- $signature: 5
- };
- A._realCasePath_helper_closure0.prototype = {
- call$0() {
- var matches, t1, _0_0, match, exception,
- realDirname = this.helper.call$1(this.dirname),
- t2 = this.path,
- basename = A.ParsedPath_ParsedPath$parse(t2, $.$get$context().style).get$basename();
- try {
- matches = J.where$1$ax(A.listDir0(realDirname), new A._realCasePath_helper__closure0(basename)).toList$0(0);
- t1 = null;
- _0_0 = matches;
- $label0$0: {
- match = null;
- if (J.get$length$asx(_0_0) === 1) {
- match = J.$index$asx(_0_0, 0);
- t1 = match;
- break $label0$0;
- }
- t1 = A.join(realDirname, basename, null);
- break $label0$0;
- }
- t1 = t1;
- return t1;
- } catch (exception) {
- if (A.unwrapException(exception) instanceof A.FileSystemException0)
- return t2;
- else
- throw exception;
- }
- },
- $signature: 26
- };
- A._realCasePath_helper__closure0.prototype = {
- call$1(realPath) {
- return A.equalsIgnoreCase0(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
- },
- $signature: 4
- };
- A.FileSystemException0.prototype = {
- toString$0(_) {
- var t1 = $.$get$context();
- return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message;
- },
- get$message(receiver) {
- return this.message;
- }
- };
- A._readFile_closure0.prototype = {
- call$0() {
- return J.readFileSync$2$x(A.fs(), this.path, this.encoding);
- },
- $signature: 60
- };
- A.fileExists_closure0.prototype = {
- call$0() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(A.fs(), t1))
- return false;
- try {
- t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1));
- return t1;
- } catch (exception) {
- error = A.unwrapException(exception);
- systemError = type$.JsSystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 22
- };
- A.dirExists_closure0.prototype = {
- call$0() {
- var error, systemError, exception,
- t1 = this.path;
- if (!J.existsSync$1$x(A.fs(), t1))
- return false;
- try {
- t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1));
- return t1;
- } catch (exception) {
- error = A.unwrapException(exception);
- systemError = type$.JsSystemError._as(error);
- if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
- return false;
- throw exception;
- }
- },
- $signature: 22
- };
- A.listDir_closure0.prototype = {
- call$0() {
- var t1 = this.path;
- if (!this.recursive)
- return J.map$1$1$ax(J.readdirSync$1$x(A.fs(), t1), new A.listDir__closure1(t1), type$.String).super$Iterable$where(0, new A.listDir__closure2());
- else
- return new A.listDir_closure_list0().call$1(t1);
- },
- $signature: 145
- };
- A.listDir__closure1.prototype = {
- call$1(child) {
- return A.join(this.path, A._asString(child), null);
- },
- $signature: 108
- };
- A.listDir__closure2.prototype = {
- call$1(child) {
- return !A.dirExists0(child);
- },
- $signature: 4
- };
- A.listDir_closure_list0.prototype = {
- call$1($parent) {
- return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure0($parent, this), type$.String);
- },
- $signature: 146
- };
- A.listDir__list_closure0.prototype = {
- call$1(child) {
- var path = A.join(this.parent, A._asString(child), null);
- return A.dirExists0(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String);
- },
- $signature: 147
- };
- A.main_closure.prototype = {
- call$2(_, __) {
- },
- $signature: 469
- };
- A.main_closure0.prototype = {
- call$2(_, __) {
- },
- $signature: 470
- };
- A.JSToDartLogger.prototype = {
- internalWarn$4$deprecation$span$trace(message, deprecation, span, trace) {
- var t2, t3, t4,
- t1 = this._node,
- _0_0 = t1 == null ? null : J.get$warn$x(t1);
- if (_0_0 != null) {
- t1 = span == null ? type$.nullable_SourceSpan._as(self.undefined) : span;
- t2 = J.toString$0$(trace);
- t3 = deprecation == null;
- t4 = $.$get$deprecations();
- _0_0.call$2(message, {deprecation: !t3, deprecationType: t4.$index(0, t3 ? null : deprecation.id), span: t1, stack: t2});
- } else
- this._withAscii$1(new A.JSToDartLogger_internalWarn_closure(this, message, span, trace, deprecation));
- },
- debug$2(_, message, span) {
- var t1 = this._node,
- _0_0 = t1 == null ? null : J.get$debug$x(t1);
- if (_0_0 != null)
- _0_0.call$2(message, {span: span});
- else
- this._withAscii$1(new A.JSToDartLogger_debug_closure(this, message, span));
- },
- _withAscii$1$1(callback) {
- var t1,
- wasAscii = $._glyphs === B.C_AsciiGlyphSet;
- $._glyphs = this._ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
- }
- },
- _withAscii$1(callback) {
- return this._withAscii$1$1(callback, type$.dynamic);
- }
- };
- A.JSToDartLogger_internalWarn_closure.prototype = {
- call$0() {
- var _this = this;
- _this.$this._fallback.warn$4$deprecation$span$trace(0, _this.message, _this.deprecation != null, _this.span, _this.trace);
- },
- $signature: 1
- };
- A.JSToDartLogger_debug_closure.prototype = {
- call$0() {
- return this.$this._fallback.debug$2(0, this.message, this.span);
- },
- $signature: 0
- };
- A.ModifiableCssKeyframeBlock0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssKeyframeBlock$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- return other instanceof A.ModifiableCssKeyframeBlock0 && B.C_ListEquality.equals$2(0, this.selector.value, other.selector.value);
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssKeyframeBlock$0(this.selector, this.span);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.KeyframeSelectorParser0.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure0(this));
- },
- _keyframe_selector$_percentage$0() {
- var $self, _0_0,
- t1 = this.scanner,
- t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "",
- second = t1.peekChar$0();
- if (!(second != null && second >= 48 && second <= 57) && second !== 46)
- t1.error$1(0, "Expected number.");
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- }
- if (t1.peekChar$0() === 46) {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- }
- }
- if (this.scanIdentChar$1(101)) {
- t2 += A.Primitives_stringFromCharCode(101);
- _0_0 = t1.peekChar$0();
- if (43 === _0_0 || 45 === _0_0)
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- t1.error$1(0, "Expected digit.");
- do {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- } while ($self != null && $self >= 48 && $self <= 57);
- }
- t1.expectChar$1(37);
- t2 += A.Primitives_stringFromCharCode(37);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- A.KeyframeSelectorParser_parse_closure0.prototype = {
- call$0() {
- var selectors = A._setArrayType([], type$.JSArray_String),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- if (t1.lookingAtIdentifier$0())
- if (t1.scanIdentifier$1("from"))
- selectors.push("from");
- else {
- t1.expectIdentifier$2$name("to", '"to" or "from"');
- selectors.push("to");
- }
- else
- selectors.push(t1._keyframe_selector$_percentage$0());
- t1.whitespace$0();
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return selectors;
- },
- $signature: 124
- };
- A.LazyFileSpan0.prototype = {
- get$span(_) {
- var t1 = this._lazy_file_span0$_span;
- return t1 == null ? this._lazy_file_span0$_span = this._lazy_file_span0$_builder.call$0() : t1;
- },
- compareTo$1(_, other) {
- return this.get$span(0).compareTo$1(0, other);
- },
- get$context(_) {
- var t1 = this.get$span(0);
- return t1.get$context(t1);
- },
- get$end(_) {
- var t1 = this.get$span(0);
- return t1.get$end(t1);
- },
- expand$1(_, other) {
- return this.get$span(0).expand$1(0, other);
- },
- get$file(_) {
- var t1 = this.get$span(0);
- return t1.get$file(t1);
- },
- highlight$1$color(color) {
- return this.get$span(0).highlight$1$color(color);
- },
- get$length(_) {
- var t1 = this.get$span(0);
- return t1.get$length(t1);
- },
- message$2$color(_, message, color) {
- return this.get$span(0).message$2$color(0, message, color);
- },
- message$1(_, message) {
- return this.message$2$color(0, message, null);
- },
- get$sourceUrl(_) {
- var t1 = this.get$span(0);
- return t1.get$sourceUrl(t1);
- },
- get$start(_) {
- var t1 = this.get$span(0);
- return t1.get$start(t1);
- },
- get$text() {
- return this.get$span(0).get$text();
- },
- $isComparable: 1,
- $isFileSpan: 1,
- $isSourceSpan: 1,
- $isSourceSpanWithContext: 1
- };
- A.render_closure.prototype = {
- call$0() {
- var error, exception;
- try {
- this.callback.call$2(null, A.renderSync(this.options));
- } catch (exception) {
- error = A.unwrapException(exception);
- this.callback.call$2(error, null);
- }
- return null;
- },
- $signature: 1
- };
- A.render_closure0.prototype = {
- call$1(result) {
- this.callback.call$2(null, result);
- },
- $signature: 471
- };
- A.render_closure1.prototype = {
- call$2(error, stackTrace) {
- var t2, t3, _null = null,
- t1 = this.callback;
- if (error instanceof A.SassException0)
- t1.call$2(A._wrapException(error, stackTrace), _null);
- else {
- t2 = J.toString$0$(error);
- t3 = A.getTrace0(error);
- t1.call$2(A._newRenderError(t2, t3 == null ? stackTrace : t3, _null, _null, _null, 3), _null);
- }
- },
- $signature: 52
- };
- A._parseFunctions_closure.prototype = {
- call$2(signature, callback) {
- var _0_0, _this = this, t1 = {},
- t2 = _this.options,
- context = {options: A._contextOptions(t2, _this.start)};
- J.set$context$x(J.get$options$x(context), context);
- _0_0 = J.get$fiber$x(t2);
- t1.fiber = null;
- if (_0_0 != null) {
- t1.fiber = _0_0;
- _this.result.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure(t1, callback, context), false));
- } else {
- t1 = _this.result;
- if (!_this.asynch)
- t1.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure0(callback, context), false));
- else
- t1.push(A.AsyncCallable_AsyncCallable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure1(callback, context), false));
- }
- },
- $signature: 120
- };
- A._parseFunctions__closure.prototype = {
- call$1($arguments) {
- var result,
- t1 = this._box_0,
- currentFiber = J.get$current$x(t1.fiber),
- t2 = type$.Object;
- t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2);
- t2.push(A.allowInterop(new A._parseFunctions___closure2(currentFiber)));
- result = A.wrapJSExceptions(new A._parseFunctions___closure3(this.callback, this.context, t2));
- return A.unwrapValue(A._asBool($.$get$_isUndefined().call$1(result)) ? A.runZoned(new A._parseFunctions___closure4(t1), null, type$.nullable_Object) : result);
- },
- $signature: 3
- };
- A._parseFunctions___closure2.prototype = {
- call$1(result) {
- A.scheduleMicrotask(new A._parseFunctions____closure(this.currentFiber, result));
- },
- call$0() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues() {
- return [null];
- },
- $signature: 93
- };
- A._parseFunctions____closure.prototype = {
- call$0() {
- return J.run$1$x(this.currentFiber, this.result);
- },
- $signature: 0
- };
- A._parseFunctions___closure3.prototype = {
- call$0() {
- return J.apply$2$x(type$.JSFunction._as(this.callback), this.context, this.jsArguments);
- },
- $signature: 35
- };
- A._parseFunctions___closure4.prototype = {
- call$0() {
- return J.yield$0$x(this._box_0.fiber);
- },
- $signature: 79
- };
- A._parseFunctions__closure0.prototype = {
- call$1($arguments) {
- return A.unwrapValue(A.wrapJSExceptions(new A._parseFunctions___closure1(this.callback, this.context, $arguments)));
- },
- $signature: 3
- };
- A._parseFunctions___closure1.prototype = {
- call$0() {
- var t1 = type$.JSFunction._as(this.callback),
- t2 = J.map$1$1$ax(this.$arguments, A.value0__wrapValue$closure(), type$.Object);
- return J.apply$2$x(t1, this.context, A.List_List$of(t2, true, t2.$ti._eval$1("ListIterable.E")));
- },
- $signature: 35
- };
- A._parseFunctions__closure1.prototype = {
- call$1($arguments) {
- return this.$call$body$_parseFunctions__closure($arguments);
- },
- $call$body$_parseFunctions__closure($arguments) {
- var $async$goto = 0,
- $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
- $async$returnValue, $async$self = this, result, t1, t2, $async$temp1;
- var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
- if ($async$errorCode === 1)
- return A._asyncRethrow($async$result, $async$completer);
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- t1 = new A._Future($.Zone__current, type$._Future_nullable_Object);
- t2 = type$.Object;
- t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2);
- t2.push(A.allowInterop(new A._parseFunctions___closure(new A._AsyncCompleter(t1, type$._AsyncCompleter_nullable_Object))));
- result = A.wrapJSExceptions(new A._parseFunctions___closure0($async$self.callback, $async$self.context, t2));
- $async$temp1 = A;
- $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 5;
- break;
- case 3:
- // then
- $async$goto = 6;
- return A._asyncAwait(t1, $async$call$1);
- case 6:
- // returning from await.
- // goto join
- $async$goto = 4;
- break;
- case 5:
- // else
- $async$result = result;
- case 4:
- // join
- $async$returnValue = $async$temp1.unwrapValue($async$result);
- // goto return
- $async$goto = 1;
- break;
- case 1:
- // return
- return A._asyncReturn($async$returnValue, $async$completer);
- }
- });
- return A._asyncStartSync($async$call$1, $async$completer);
- },
- $signature: 88
- };
- A._parseFunctions___closure.prototype = {
- call$1(result) {
- return this.completer.complete$1(result);
- },
- call$0() {
- return this.call$1(null);
- },
- "call*": "call$1",
- $requiredArgCount: 0,
- $defaultValues() {
- return [null];
- },
- $signature: 166
- };
- A._parseFunctions___closure0.prototype = {
- call$0() {
- return J.apply$2$x(type$.JSFunction._as(this.callback), this.context, this.jsArguments);
- },
- $signature: 35
- };
- A._parseImporter_closure.prototype = {
- call$1(importer) {
- return type$.JSFunction._as(A.allowInteropCaptureThis(new A._parseImporter__closure(this._box_0, importer)));
- },
- $signature: 472
- };
- A._parseImporter__closure.prototype = {
- call$4(thisArg, url, previous, _) {
- var t1 = this._box_0,
- result = J.apply$2$x(this.importer, thisArg, A._setArrayType([url, previous, A.allowInterop(new A._parseImporter___closure(J.get$current$x(t1.fiber)))], type$.JSArray_Object));
- if (A._asBool($.$get$_isUndefined().call$1(result)))
- return A.runZoned(new A._parseImporter___closure0(t1), null, type$.Object);
- return result;
- },
- call$3(thisArg, url, previous) {
- return this.call$4(thisArg, url, previous, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [null];
- },
- $signature: 473
- };
- A._parseImporter___closure.prototype = {
- call$1(result) {
- A.scheduleMicrotask(new A._parseImporter____closure(this.currentFiber, result));
- },
- $signature: 474
- };
- A._parseImporter____closure.prototype = {
- call$0() {
- return J.run$1$x(this.currentFiber, this.result);
- },
- $signature: 0
- };
- A._parseImporter___closure0.prototype = {
- call$0() {
- return J.yield$0$x(this._box_0.fiber);
- },
- $signature: 79
- };
- A.LimitedMapView0.prototype = {
- get$keys(_) {
- return this._limited_map_view0$_keys;
- },
- get$length(_) {
- return this._limited_map_view0$_keys._collection$_length;
- },
- get$isEmpty(_) {
- return this._limited_map_view0$_keys._collection$_length === 0;
- },
- get$isNotEmpty(_) {
- return this._limited_map_view0$_keys._collection$_length !== 0;
- },
- $index(_, key) {
- return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null;
- },
- containsKey$1(key) {
- return this._limited_map_view0$_keys.contains$1(0, key);
- },
- remove$1(_, key) {
- return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null;
- }
- };
- A.ListExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitListExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, t3, t4, t5, _this = this,
- t1 = _this.hasBrackets;
- if (t1)
- t2 = "" + A.Primitives_stringFromCharCode(91);
- else {
- t2 = _this.contents.length;
- if (t2 !== 0)
- t2 = t2 === 1 && _this.separator === B.ListSeparator_ECn0;
- else
- t2 = true;
- t2 = t2 ? "" + A.Primitives_stringFromCharCode(40) : "";
- }
- t3 = _this.contents;
- t4 = _this.separator === B.ListSeparator_ECn0;
- t5 = t4 ? ", " : " ";
- t5 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure0(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t5);
- if (t1)
- t1 = t5 + A.Primitives_stringFromCharCode(93);
- else {
- t1 = t3.length;
- if (t1 === 0)
- t1 = t5 + A.Primitives_stringFromCharCode(41);
- else
- t1 = t1 === 1 && t4 ? t5 + ",)" : t5;
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- _list3$_elementNeedsParens$1(expression) {
- var childSeparator, t1, _0_13;
- $label0$0: {
- if (expression instanceof A.ListExpression0 && expression.contents.length >= 2 && !expression.hasBrackets) {
- childSeparator = expression.separator;
- t1 = this.separator === B.ListSeparator_ECn0 ? childSeparator === B.ListSeparator_ECn0 : childSeparator !== B.ListSeparator_undecided_null_undecided0;
- break $label0$0;
- }
- if (expression instanceof A.UnaryOperationExpression0) {
- _0_13 = expression.operator;
- if (B.UnaryOperator_cLp0 !== _0_13)
- t1 = B.UnaryOperator_AiQ0 === _0_13;
- else
- t1 = true;
- } else
- t1 = false;
- if (t1) {
- t1 = this.separator === B.ListSeparator_nbm0;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ListExpression_toString_closure0.prototype = {
- call$1(element) {
- return this.$this._list3$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0);
- },
- $signature: 107
- };
- A._length_closure2.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).get$asList().length, null);
- },
- $signature: 12
- };
- A._nth_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1);
- return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
- },
- $signature: 3
- };
- A._setNth_closure0.prototype = {
- call$1($arguments) {
- var newList,
- t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- index = t1.$index($arguments, 1),
- value = t1.$index($arguments, 2);
- t1 = list.get$asList();
- newList = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
- newList[list.sassIndexToListIndex$2(index, "n")] = value;
- return list.withListContents$1(newList);
- },
- $signature: 23
- };
- A._join_closure0.prototype = {
- call$1($arguments) {
- var _0_1, _0_4, _0_3, t2, _0_40, separator, bracketed, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- list1 = t1.$index($arguments, 0),
- list2 = t1.$index($arguments, 1),
- separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
- bracketedParam = t1.$index($arguments, 3),
- _1_0 = separatorParam._string0$_text;
- $label1$1: {
- if ("auto" === _1_0) {
- _0_1 = list1.get$separator(list1);
- _0_4 = list2.get$separator(list2);
- $label0$0: {
- _0_3 = B.ListSeparator_undecided_null_undecided0 === _0_1;
- t1 = _0_3;
- if (t1) {
- t2 = B.ListSeparator_undecided_null_undecided0 === _0_4;
- _0_40 = _0_4;
- } else {
- _0_40 = _null;
- t2 = false;
- }
- if (t2) {
- t1 = B.ListSeparator_nbm0;
- break $label0$0;
- }
- if (_0_3)
- separator = t1 ? _0_40 : _0_4;
- else
- separator = _null;
- if (!_0_3)
- separator = _0_1;
- t1 = separator;
- break $label0$0;
- }
- break $label1$1;
- }
- if ("space" === _1_0) {
- t1 = B.ListSeparator_nbm0;
- break $label1$1;
- }
- if ("comma" === _1_0) {
- t1 = B.ListSeparator_ECn0;
- break $label1$1;
- }
- if ("slash" === _1_0) {
- t1 = B.ListSeparator_cQA0;
- break $label1$1;
- }
- t1 = A.throwExpression(A.SassScriptException$0(string$.x24separ, _null));
- }
- bracketed = bracketedParam instanceof A.SassString0 && bracketedParam._string0$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
- t2 = A.List_List$of(list1.get$asList(), true, type$.Value_2);
- B.JSArray_methods.addAll$1(t2, list2.get$asList());
- return A.SassList$0(t2, t1, bracketed);
- },
- $signature: 23
- };
- A._append_closure2.prototype = {
- call$1($arguments) {
- var t2,
- t1 = J.getInterceptor$asx($arguments),
- list = t1.$index($arguments, 0),
- value = t1.$index($arguments, 1),
- _0_0 = t1.$index($arguments, 2).assertString$1("separator")._string0$_text;
- $label0$0: {
- if ("auto" === _0_0) {
- t1 = list.get$separator(list) === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_nbm0 : list.get$separator(list);
- break $label0$0;
- }
- if ("space" === _0_0) {
- t1 = B.ListSeparator_nbm0;
- break $label0$0;
- }
- if ("comma" === _0_0) {
- t1 = B.ListSeparator_ECn0;
- break $label0$0;
- }
- if ("slash" === _0_0) {
- t1 = B.ListSeparator_cQA0;
- break $label0$0;
- }
- t1 = A.throwExpression(A.SassScriptException$0(string$.x24separ, null));
- }
- t2 = A.List_List$of(list.get$asList(), true, type$.Value_2);
- t2.push(value);
- return list.withListContents$2$separator(t2, t1);
- },
- $signature: 23
- };
- A._zip_closure0.prototype = {
- call$1($arguments) {
- var results, result, _box_0 = {},
- t1 = J.$index$asx($arguments, 0).get$asList(),
- t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value0>>"),
- lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure2(), t2), true, t2._eval$1("ListIterable.E"));
- if (lists.length === 0)
- return B.SassList_bdS1;
- _box_0.i = 0;
- results = A._setArrayType([], type$.JSArray_SassList_2);
- for (t1 = A._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value0>"), t2 = type$.Value_2; B.JSArray_methods.every$1(lists, new A._zip__closure3(_box_0));) {
- result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure4(_box_0), t1), false, t2);
- result.fixed$length = Array;
- result.immutable$list = Array;
- results.push(new A.SassList0(result, B.ListSeparator_nbm0, false));
- ++_box_0.i;
- }
- return A.SassList$0(results, B.ListSeparator_ECn0, false);
- },
- $signature: 23
- };
- A._zip__closure2.prototype = {
- call$1(list) {
- return list.get$asList();
- },
- $signature: 476
- };
- A._zip__closure3.prototype = {
- call$1(list) {
- return this._box_0.i !== J.get$length$asx(list);
- },
- $signature: 477
- };
- A._zip__closure4.prototype = {
- call$1(list) {
- return J.$index$asx(list, this._box_0.i);
- },
- $signature: 3
- };
- A._index_closure2.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
- return index === -1 ? B.C__SassNull0 : A.SassNumber_SassNumber0(index + 1, null);
- },
- $signature: 3
- };
- A._separator_closure0.prototype = {
- call$1($arguments) {
- var t1,
- _0_0 = J.get$separator$x(J.$index$asx($arguments, 0));
- $label0$0: {
- if (B.ListSeparator_ECn0 === _0_0) {
- t1 = new A.SassString0("comma", false);
- break $label0$0;
- }
- if (B.ListSeparator_cQA0 === _0_0) {
- t1 = new A.SassString0("slash", false);
- break $label0$0;
- }
- t1 = new A.SassString0("space", false);
- break $label0$0;
- }
- return t1;
- },
- $signature: 19
- };
- A._isBracketed_closure0.prototype = {
- call$1($arguments) {
- return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._slash_closure0.prototype = {
- call$1($arguments) {
- var list = J.$index$asx($arguments, 0).get$asList();
- if (list.length < 2)
- throw A.wrapException(A.SassScriptException$0("At least two elements are required.", null));
- return A.SassList$0(list, B.ListSeparator_cQA0, false);
- },
- $signature: 23
- };
- A.SelectorList0.prototype = {
- get$asSassList() {
- var t1 = this.components;
- return A.SassList$0(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_ECn0, false);
- },
- accept$1$1(visitor) {
- return visitor.visitSelectorList$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1(other) {
- var t3, t4, t5, t6, _i, complex1, _i0, t7,
- t1 = type$.JSArray_ComplexSelector_2,
- t2 = A._setArrayType([], t1);
- for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) {
- complex1 = t3[_i];
- for (_i0 = 0; _i0 < t6; ++_i0) {
- t7 = A.unifyComplex0(A._setArrayType([complex1, t5[_i0]], t1), complex1.span);
- if (t7 != null)
- B.JSArray_methods.addAll$1(t2, t7);
- }
- }
- return t2.length === 0 ? null : A.SelectorList$0(t2, this.span);
- },
- nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, preserveParentSelectors) {
- var parentSelector, t1, _this = this;
- if ($parent == null) {
- if (preserveParentSelectors)
- return _this;
- parentSelector = B.C__ParentSelectorVisitor0.visitSelectorList$1(_this);
- if (parentSelector == null)
- return _this;
- throw A.wrapException(A.SassException$0(string$.Top_les, parentSelector.span, null));
- }
- t1 = _this.components;
- return A.SelectorList$0(A.flattenVertically0(new A.MappedListIterable(t1, new A.SelectorList_nestWithin_closure0(_this, preserveParentSelectors, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector0>>")), type$.ComplexSelector_2), _this.span);
- },
- nestWithin$1($parent) {
- return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, true, false);
- },
- nestWithin$2$implicitParent($parent, implicitParent) {
- return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, false);
- },
- _list2$_nestWithinCompound$2(component, $parent) {
- var resolvedSimples, parentSelector, error, stackTrace, t2, resolvedSimples0, exception,
- t1 = component.selector,
- simples = t1.components,
- containsSelectorPseudo = J.any$1$ax(simples, new A.SelectorList__nestWithinCompound_closure2());
- if (!containsSelectorPseudo && !(J.get$first$ax(simples) instanceof A.ParentSelector0))
- return null;
- if (containsSelectorPseudo) {
- t2 = simples;
- resolvedSimples0 = new A.MappedListIterable(t2, new A.SelectorList__nestWithinCompound_closure3($parent), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,SimpleSelector0>"));
- } else
- resolvedSimples0 = simples;
- resolvedSimples = resolvedSimples0;
- parentSelector = J.get$first$ax(simples);
- try {
- if (!(parentSelector instanceof A.ParentSelector0)) {
- t2 = component.span;
- t2 = A._setArrayType([A.ComplexSelector$0(B.List_empty13, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(resolvedSimples, t1.span), A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator_2), t2)], type$.JSArray_ComplexSelectorComponent_2), t2, false)], type$.JSArray_ComplexSelector_2);
- return t2;
- } else if (J.get$length$asx(simples) === 1 && parentSelector.suffix == null) {
- t1 = $parent.withAdditionalCombinators$1(component.combinators);
- return t1.components;
- }
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace0(error.withAdditionalSpan$2(parentSelector.span, "parent selector"), error, stackTrace);
- } else
- throw exception;
- }
- t1 = $parent.components;
- return new A.MappedListIterable(t1, new A.SelectorList__nestWithinCompound_closure4(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
- },
- isSuperselector$1(other) {
- return A.listIsSuperselector0(this.components, other.components);
- },
- withAdditionalCombinators$1(combinators) {
- var t1;
- if (combinators.length === 0)
- t1 = this;
- else {
- t1 = this.components;
- t1 = A.SelectorList$0(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure0(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")), this.span);
- }
- return t1;
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this.components);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SelectorList0 && B.C_ListEquality.equals$2(0, this.components, other.components);
- }
- };
- A.SelectorList_asSassList_closure0.prototype = {
- call$1(complex) {
- var t3, t4, _i, component, t5, visitor, t6, t7, _i0,
- t1 = type$.JSArray_Value_2,
- t2 = A._setArrayType([], t1);
- for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i)
- t2.push(new A.SassString0(J.toString$0$(t3[_i].value), false));
- for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
- component = t3[_i];
- t5 = component.selector;
- visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
- t5.accept$1(visitor);
- t5 = A._setArrayType([new A.SassString0(visitor._serialize0$_buffer.toString$0(0), false)], t1);
- for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0)
- t5.push(new A.SassString0(J.toString$0$(t6[_i0].value), false));
- B.JSArray_methods.addAll$1(t2, t5);
- }
- return A.SassList$0(t2, B.ListSeparator_nbm0, false);
- },
- $signature: 478
- };
- A.SelectorList_nestWithin_closure0.prototype = {
- call$1(complex) {
- var t1, newComplexes, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, _i, component, resolved, i, t12, t13, t14, _i0, newComplex, t15, _this = this;
- if (_this.preserveParentSelectors || complex.accept$1(B.C__ParentSelectorVisitor0) == null) {
- if (!_this.implicitParent)
- return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
- t1 = _this.parent.components;
- return new A.MappedListIterable(t1, new A.SelectorList_nestWithin__closure1(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
- }
- t1 = type$.JSArray_ComplexSelector_2;
- newComplexes = A._setArrayType([], t1);
- for (t2 = complex.components, t3 = t2.length, t4 = _this.$this, t5 = _this.parent, t6 = type$.ComplexSelector_2, t7 = complex.leadingCombinators, t8 = t7.length === 0, t9 = complex.span, t10 = type$.ComplexSelectorComponent_2, t11 = type$.JSArray_ComplexSelectorComponent_2, _i = 0; _i < t3; ++_i) {
- component = t2[_i];
- resolved = t4._list2$_nestWithinCompound$2(component, t5);
- if (resolved == null)
- if (newComplexes.length === 0)
- newComplexes.push(A.ComplexSelector$0(t7, A._setArrayType([component], t11), t9, false));
- else
- for (i = 0; i < newComplexes.length; ++i) {
- t12 = newComplexes[i];
- t13 = t12.leadingCombinators;
- t14 = A.List_List$of(t12.components, true, t10);
- t14.push(component);
- t12 = t12.lineBreak;
- newComplexes[i] = A.ComplexSelector$0(t13, t14, t9, t12);
- }
- else if (newComplexes.length === 0)
- B.JSArray_methods.addAll$1(newComplexes, t8 ? resolved : J.map$1$1$ax(resolved, new A.SelectorList_nestWithin__closure2(complex), t6));
- else {
- t12 = A._setArrayType([], t1);
- for (t13 = newComplexes.length, t14 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t13 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) {
- newComplex = newComplexes[_i0];
- for (t15 = t14.get$iterator(resolved); t15.moveNext$0();)
- t12.push(newComplex.concatenate$2(t15.get$current(t15), newComplex.span));
- }
- newComplexes = t12;
- }
- }
- return newComplexes;
- },
- $signature: 479
- };
- A.SelectorList_nestWithin__closure1.prototype = {
- call$1(parentComplex) {
- var t1 = this.complex;
- return parentComplex.concatenate$2(t1, t1.span);
- },
- $signature: 55
- };
- A.SelectorList_nestWithin__closure2.prototype = {
- call$1(resolvedComplex) {
- var t1 = resolvedComplex.leadingCombinators,
- t2 = this.complex,
- t3 = t2.leadingCombinators;
- if (t1.length === 0)
- t1 = t3;
- else {
- t3 = A.List_List$of(t3, true, type$.CssValue_Combinator_2);
- B.JSArray_methods.addAll$1(t3, t1);
- t1 = t3;
- }
- return A.ComplexSelector$0(t1, resolvedComplex.components, t2.span, resolvedComplex.lineBreak);
- },
- $signature: 55
- };
- A.SelectorList__nestWithinCompound_closure2.prototype = {
- call$1(simple) {
- var selector;
- if (!(simple instanceof A.PseudoSelector0))
- return false;
- selector = simple.selector;
- return selector != null && selector.accept$1(B.C__ParentSelectorVisitor0) != null;
- },
- $signature: 14
- };
- A.SelectorList__nestWithinCompound_closure3.prototype = {
- call$1(simple) {
- var _0_2, selector, t1;
- $label0$0: {
- if (simple instanceof A.PseudoSelector0) {
- _0_2 = simple.selector;
- if (_0_2 != null) {
- selector = _0_2 == null ? type$.SelectorList_2._as(_0_2) : _0_2;
- t1 = selector.accept$1(B.C__ParentSelectorVisitor0) != null;
- } else {
- selector = null;
- t1 = false;
- }
- } else {
- selector = null;
- t1 = false;
- }
- if (t1) {
- t1 = simple.withSelector$1(selector.nestWithin$2$implicitParent(this.parent, false));
- break $label0$0;
- }
- t1 = simple;
- break $label0$0;
- }
- return t1;
- },
- $signature: 480
- };
- A.SelectorList__nestWithinCompound_closure4.prototype = {
- call$1(complex) {
- var lastComponent, suffix, lastSimples, t1, t2, last, t3, error, stackTrace, t4, t5, t6, t7, exception, _this = this;
- try {
- t4 = complex.components;
- lastComponent = B.JSArray_methods.get$last(t4);
- if (lastComponent.combinators.length !== 0) {
- t1 = A.MultiSpanSassException$0('Selector "' + complex.toString$0(0) + string$.x22x20can_, A.SpanExtensions_trimRight0(lastComponent.span), "outer selector", A.LinkedHashMap_LinkedHashMap$_literal([_this.parentSelector.span, "parent selector"], type$.FileSpan, type$.String), null);
- throw A.wrapException(t1);
- }
- suffix = _this.parentSelector.suffix;
- lastSimples = lastComponent.selector.components;
- t5 = type$.SimpleSelector_2;
- t6 = _this.resolvedSimples;
- t7 = J.getInterceptor$ax(t6);
- if (suffix == null) {
- t1 = A.List_List$of(lastSimples, true, t5);
- J.addAll$1$ax(t1, t7.skip$1(t6, 1));
- t1 = t1;
- } else {
- t2 = A.List_List$of(A.IterableExtension_get_exceptLast0(lastSimples), true, t5);
- J.add$1$ax(t2, J.get$last$ax(lastSimples).addSuffix$1(suffix));
- J.addAll$1$ax(t2, t7.skip$1(t6, 1));
- t1 = t2;
- }
- t2 = _this.component;
- last = A.CompoundSelector$0(t1, t2.selector.span);
- t3 = A.List_List$of(A.IterableExtension_get_exceptLast0(t4), true, type$.ComplexSelectorComponent_2);
- t4 = t2.span;
- J.add$1$ax(t3, new A.ComplexSelectorComponent0(last, A.List_List$unmodifiable(t2.combinators, type$.CssValue_Combinator_2), t4));
- t4 = A.ComplexSelector$0(complex.leadingCombinators, t3, t4, complex.lineBreak);
- return t4;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.SassException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace0(error.withAdditionalSpan$2(_this.parentSelector.span, "parent selector"), error, stackTrace);
- } else
- throw exception;
- }
- },
- $signature: 55
- };
- A.SelectorList_withAdditionalCombinators_closure0.prototype = {
- call$1(complex) {
- return complex.withAdditionalCombinators$1(this.combinators);
- },
- $signature: 55
- };
- A._ParentSelectorVisitor0.prototype = {
- visitParentSelector$1(selector) {
- return selector;
- }
- };
- A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0.prototype = {};
- A.listClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassList", new A.listClass__closure()));
- J.get$$prototype$x(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.listClass__closure0());
- A.JSClassExtension_injectSuperclass(t1._as(B.SassList_k8F.constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.listClass__closure.prototype = {
- call$3($self, contentsOrOptions, options) {
- var contents, t1, t2;
- if (self.immutable.isList(contentsOrOptions))
- contents = J.cast$1$0$ax(J.toArray$0$x(type$.ImmutableList._as(contentsOrOptions)), type$.Value_2);
- else if (type$.List_dynamic._is(contentsOrOptions))
- contents = J.cast$1$0$ax(contentsOrOptions, type$.Value_2);
- else {
- contents = A._setArrayType([], type$.JSArray_Value_2);
- type$.nullable__ConstructorOptions._as(contentsOrOptions);
- options = contentsOrOptions;
- }
- t1 = options == null;
- if (!t1) {
- t2 = J.get$separator$x(options);
- t2 = A._asBool($.$get$_isUndefined().call$1(t2));
- } else
- t2 = true;
- t2 = t2 ? B.ListSeparator_ECn0 : A.jsToDartSeparator(J.get$separator$x(options));
- t1 = t1 ? null : J.get$brackets$x(options);
- return A.SassList$0(contents, t2, t1 == null ? false : t1);
- },
- call$1($self) {
- return this.call$3($self, null, null);
- },
- call$2($self, contentsOrOptions) {
- return this.call$3($self, contentsOrOptions, null);
- },
- "call*": "call$3",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null, null];
- },
- $signature: 481
- };
- A.listClass__closure0.prototype = {
- call$2($self, indexFloat) {
- var index = B.JSNumber_methods.floor$0(indexFloat);
- if (index < 0)
- index = $self.get$asList().length + index;
- if (index < 0 || index >= $self.get$asList().length)
- return self.undefined;
- return $self.get$asList()[index];
- },
- $signature: 240
- };
- A._ConstructorOptions.prototype = {};
- A._NodeSassList.prototype = {};
- A.legacyListClass_closure.prototype = {
- call$4(thisArg, $length, commaSeparator, dartValue) {
- var t1;
- if (dartValue == null) {
- $length.toString;
- t1 = A.Iterable_Iterable$generate($length, new A.legacyListClass__closure(), type$.Value_2);
- t1 = A.SassList$0(t1, commaSeparator !== false ? B.ListSeparator_ECn0 : B.ListSeparator_nbm0, false);
- } else
- t1 = dartValue;
- J.set$dartValue$x(thisArg, t1);
- },
- call$2(thisArg, $length) {
- return this.call$4(thisArg, $length, null, null);
- },
- call$3(thisArg, $length, commaSeparator) {
- return this.call$4(thisArg, $length, commaSeparator, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null, null];
- },
- $signature: 483
- };
- A.legacyListClass__closure.prototype = {
- call$1(_) {
- return B.C__SassNull0;
- },
- $signature: 239
- };
- A.legacyListClass_closure0.prototype = {
- call$2(thisArg, index) {
- return A.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]);
- },
- $signature: 485
- };
- A.legacyListClass_closure1.prototype = {
- call$3(thisArg, index, value) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = t1.get$dartValue(thisArg)._list1$_contents,
- mutable = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
- mutable[index] = A.unwrapValue(value);
- t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).withListContents$1(mutable));
- },
- "call*": "call$3",
- $requiredArgCount: 3,
- $signature: 486
- };
- A.legacyListClass_closure2.prototype = {
- call$1(thisArg) {
- return J.get$dartValue$x(thisArg)._list1$_separator === B.ListSeparator_ECn0;
- },
- $signature: 487
- };
- A.legacyListClass_closure3.prototype = {
- call$2(thisArg, isComma) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = t1.get$dartValue(thisArg)._list1$_contents,
- t3 = isComma ? B.ListSeparator_ECn0 : B.ListSeparator_nbm0;
- t1.set$dartValue(thisArg, A.SassList$0(t2, t3, t1.get$dartValue(thisArg)._list1$_hasBrackets));
- },
- $signature: 488
- };
- A.legacyListClass_closure4.prototype = {
- call$1(thisArg) {
- return J.get$dartValue$x(thisArg)._list1$_contents.length;
- },
- $signature: 489
- };
- A.SassList0.prototype = {
- get$separator(_) {
- return this._list1$_separator;
- },
- get$hasBrackets() {
- return this._list1$_hasBrackets;
- },
- get$isBlank() {
- return !this._list1$_hasBrackets && B.JSArray_methods.every$1(this._list1$_contents, new A.SassList_isBlank_closure0());
- },
- get$asList() {
- return this._list1$_contents;
- },
- get$lengthAsList() {
- return this._list1$_contents.length;
- },
- SassList$3$brackets0(contents, _separator, brackets) {
- if (this._list1$_separator === B.ListSeparator_undecided_null_undecided0 && this._list1$_contents.length > 1)
- throw A.wrapException(A.ArgumentError$(string$.A_list, null));
- },
- accept$1$1(visitor) {
- return visitor.visitList$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1($name) {
- return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : this.super$Value$assertMap0($name);
- },
- tryMap$0() {
- return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : null;
- },
- $eq(_, other) {
- var t1, _this = this;
- if (other == null)
- return false;
- if (!(other instanceof A.SassList0 && other._list1$_separator === _this._list1$_separator && other._list1$_hasBrackets === _this._list1$_hasBrackets && B.C_ListEquality.equals$2(0, other._list1$_contents, _this._list1$_contents)))
- t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0;
- else
- t1 = true;
- return t1;
- },
- get$hashCode(_) {
- return B.C_ListEquality0.hash$1(this._list1$_contents);
- }
- };
- A.SassList_isBlank_closure0.prototype = {
- call$1(element) {
- return element.get$isBlank();
- },
- $signature: 53
- };
- A.ListSeparator0.prototype = {
- _enumToString$0() {
- return "ListSeparator." + this._name;
- },
- toString$0(_) {
- return this._list1$_name;
- }
- };
- A.JSLogger.prototype = {};
- A.WarnOptions.prototype = {};
- A.DebugOptions.prototype = {};
- A.LoggerWithDeprecationType.prototype = {
- warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
- this.internalWarn$4$deprecation$span$trace(message, deprecation ? B.Deprecation_oty : null, span, trace);
- },
- warn$1(_, message) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, null);
- },
- warn$3$span$trace(_, message, span, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
- },
- warn$2$span(_, message, span) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, null);
- },
- warn$2$trace(_, message, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
- }
- };
- A._QuietLogger0.prototype = {
- warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
- },
- warn$2$span(_, message, span) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, null);
- }
- };
- A.LoudComment0.prototype = {
- get$span(_) {
- return this.text.span;
- },
- accept$1$1(visitor) {
- return visitor.visitLoudComment$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.text.toString$0(0);
- },
- $isAstNode0: 1,
- $isStatement0: 1
- };
- A.MapExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitMapExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t2, t3, _i, t4, key, value,
- t1 = A._setArrayType([], type$.JSArray_String);
- for (t2 = this.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- t1.push(key.toString$0(0) + ": " + value.toString$0(0));
- }
- return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._get_closure0.prototype = {
- call$1($arguments) {
- var value,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
- value = map._map0$_contents.$index(0, t1.get$current(t1));
- if (!(value instanceof A.SassMap0))
- return B.C__SassNull0;
- }
- t1 = map._map0$_contents.$index(0, B.JSArray_methods.get$last(t2));
- return t1 == null ? B.C__SassNull0 : t1;
- },
- $signature: 3
- };
- A._set_closure1.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A._modify0(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2), new A._set__closure2($arguments), true);
- },
- $signature: 3
- };
- A._set__closure2.prototype = {
- call$1(_) {
- return J.$index$asx(this.$arguments, 2);
- },
- $signature: 42
- };
- A._set_closure2.prototype = {
- call$1($arguments) {
- var keys, t3, t1 = {},
- t2 = J.getInterceptor$asx($arguments),
- map = t2.$index($arguments, 0).assertMap$1("map"),
- _0_0 = t2.$index($arguments, 1).get$asList(),
- _0_1 = _0_0.length;
- if (_0_1 <= 0)
- throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", null));
- if (_0_1 === 1)
- throw A.wrapException(A.SassScriptException$0("Expected $args to contain a value.", null));
- keys = t1.value = null;
- t2 = _0_1 >= 1;
- if (t2) {
- t3 = _0_1 - 1;
- keys = B.JSArray_methods.sublist$2(_0_0, 0, t3);
- t1.value = _0_0[t3];
- }
- if (t2)
- return A._modify0(map, keys, new A._set__closure1(t1), true);
- throw A.wrapException("[BUG] Unreachable code");
- },
- $signature: 3
- };
- A._set__closure1.prototype = {
- call$1(_) {
- return this._box_0.value;
- },
- $signature: 42
- };
- A._merge_closure1.prototype = {
- call$1($arguments) {
- var t2,
- t1 = J.getInterceptor$asx($arguments),
- map1 = t1.$index($arguments, 0).assertMap$1("map1"),
- map2 = t1.$index($arguments, 1).assertMap$1("map2");
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map0$_contents, t1, t1);
- t2.addAll$1(0, map2._map0$_contents);
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 36
- };
- A._merge_closure2.prototype = {
- call$1($arguments) {
- var t2, keys, last, _null = null,
- t1 = J.getInterceptor$asx($arguments),
- map1 = t1.$index($arguments, 0).assertMap$1("map1"),
- _0_0 = t1.$index($arguments, 1).get$asList(),
- _0_1 = _0_0.length;
- if (_0_1 <= 0)
- throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", _null));
- if (_0_1 === 1)
- throw A.wrapException(A.SassScriptException$0("Expected $args to contain a map.", _null));
- t1 = _0_1 >= 1;
- if (t1) {
- t2 = _0_1 - 1;
- keys = B.JSArray_methods.sublist$2(_0_0, 0, t2);
- last = _0_0[t2];
- } else {
- last = _null;
- keys = last;
- }
- if (t1)
- return A._modify0(map1, keys, new A._merge__closure0(last.assertMap$1("map2")), true);
- throw A.wrapException("[BUG] Unreachable code");
- },
- $signature: 3
- };
- A._merge__closure0.prototype = {
- call$1(oldValue) {
- var t1, t2,
- nestedMap = oldValue.tryMap$0();
- if (nestedMap == null)
- return this.map2;
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1);
- t2.addAll$1(0, this.map2._map0$_contents);
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- },
- $signature: 490
- };
- A._deepMerge_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A._deepMergeImpl0(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
- },
- $signature: 36
- };
- A._deepRemove_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- return A._modify0(map, A.IterableExtension_get_exceptLast0(t2), new A._deepRemove__closure0(t2), false);
- },
- $signature: 3
- };
- A._deepRemove__closure0.prototype = {
- call$1(value) {
- var t1, nestedMap, t2,
- _0_0 = value.tryMap$0();
- if (_0_0 != null) {
- t1 = _0_0._map0$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys));
- nestedMap = _0_0;
- } else {
- nestedMap = null;
- t1 = false;
- }
- if (t1) {
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1);
- t2.remove$1(0, B.JSArray_methods.get$last(this.keys));
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- }
- return value;
- },
- $signature: 42
- };
- A._remove_closure1.prototype = {
- call$1($arguments) {
- return J.$index$asx($arguments, 0).assertMap$1("map");
- },
- $signature: 36
- };
- A._remove_closure2.prototype = {
- call$1($arguments) {
- var mutableMap, t3, _i,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- t1 = type$.Value_2;
- mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1);
- for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i)
- mutableMap.remove$1(0, t2[_i]);
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- },
- $signature: 36
- };
- A._keys_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents;
- return A.SassList$0(t1.get$keys(t1), B.ListSeparator_ECn0, false);
- },
- $signature: 23
- };
- A._values_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents;
- return A.SassList$0(t1.get$values(t1), B.ListSeparator_ECn0, false);
- },
- $signature: 23
- };
- A._hasKey_closure0.prototype = {
- call$1($arguments) {
- var value,
- t1 = J.getInterceptor$asx($arguments),
- map = t1.$index($arguments, 0).assertMap$1("map"),
- t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
- B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
- for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
- value = map._map0$_contents.$index(0, t1.get$current(t1));
- if (!(value instanceof A.SassMap0))
- return B.SassBoolean_false0;
- }
- return map._map0$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._modify_modifyNestedMap0.prototype = {
- call$1(map) {
- var nestedMap, _this = this,
- t1 = type$.Value_2,
- mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1),
- t2 = _this.keyIterator,
- key = t2.get$current(t2);
- if (!t2.moveNext$0()) {
- t2 = mutableMap.$index(0, key);
- if (t2 == null)
- t2 = B.C__SassNull0;
- mutableMap.$indexSet(0, key, _this.modify.call$1(t2));
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- }
- t2 = mutableMap.$index(0, key);
- nestedMap = t2 == null ? null : t2.tryMap$0();
- t2 = nestedMap == null;
- if (t2 && !_this.addNesting)
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty0 : nestedMap));
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
- },
- $signature: 491
- };
- A.MapExtensions_get_pairs_closure0.prototype = {
- call$1(e) {
- return new A._Record_2(e.key, e.value);
- },
- $signature() {
- return this.K._eval$1("@<0>")._bind$1(this.V)._eval$1("+(1,2)(MapEntry<1,2>)");
- }
- };
- A.mapClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassMap", new A.mapClass__closure())),
- t2 = J.getInterceptor$x(jsClass);
- A.defineGetter(t2.get$$prototype(jsClass), "contents", new A.mapClass__closure0(), null);
- t2.get$$prototype(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.mapClass__closure1());
- A.JSClassExtension_injectSuperclass(t1._as(B.SassMap_Map_empty0.constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.mapClass__closure.prototype = {
- call$2($self, contents) {
- var t1;
- if (contents == null)
- t1 = B.SassMap_Map_empty0;
- else {
- t1 = type$.Value_2;
- t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(A.immutableMapToDartMap(contents).cast$2$0(0, t1, t1), t1, t1));
- }
- return t1;
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 492
- };
- A.mapClass__closure0.prototype = {
- call$1($self) {
- return A.dartMapToImmutableMap($self._map0$_contents);
- },
- $signature: 493
- };
- A.mapClass__closure1.prototype = {
- call$2($self, indexOrKey) {
- var index, t1, _0_0;
- if (typeof indexOrKey == "number") {
- index = B.JSNumber_methods.floor$0(indexOrKey);
- if (index < 0) {
- t1 = $self._map0$_contents;
- index = t1.get$length(t1) + index;
- }
- if (index >= 0) {
- t1 = $self._map0$_contents;
- t1 = index >= t1.get$length(t1);
- } else
- t1 = true;
- if (t1)
- return self.undefined;
- t1 = type$.Value_2;
- _0_0 = A.MapExtensions_get_pairs0($self._map0$_contents, t1, t1).elementAt$1(0, index);
- return A.SassList$0(A._setArrayType([_0_0._0, _0_0._1], type$.JSArray_Value_2), B.ListSeparator_nbm0, false);
- } else {
- t1 = $self._map0$_contents.$index(0, indexOrKey);
- return t1 == null ? self.undefined : t1;
- }
- },
- $signature: 494
- };
- A._NodeSassMap.prototype = {};
- A.legacyMapClass_closure.prototype = {
- call$3(thisArg, $length, dartValue) {
- var t1, t2, t3, map;
- if (dartValue == null) {
- $length.toString;
- t1 = type$.Value_2;
- t2 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure(), t1);
- t3 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure0(), t1);
- map = A.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1);
- A.MapBase__fillMapWithIterables(map, t2, t3);
- t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
- } else
- t1 = dartValue;
- J.set$dartValue$x(thisArg, t1);
- },
- call$2(thisArg, $length) {
- return this.call$3(thisArg, $length, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 495
- };
- A.legacyMapClass__closure.prototype = {
- call$1(i) {
- return A.SassNumber_SassNumber0(i, null);
- },
- $signature: 496
- };
- A.legacyMapClass__closure0.prototype = {
- call$1(_) {
- return B.C__SassNull0;
- },
- $signature: 239
- };
- A.legacyMapClass_closure0.prototype = {
- call$2(thisArg, index) {
- var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
- return A.wrapValue(J.elementAt$1$ax(t1.get$keys(t1), index));
- },
- $signature: 236
- };
- A.legacyMapClass_closure1.prototype = {
- call$2(thisArg, index) {
- var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
- return A.wrapValue(t1.get$values(t1).elementAt$1(0, index));
- },
- $signature: 236
- };
- A.legacyMapClass_closure2.prototype = {
- call$1(thisArg) {
- var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
- return t1.get$length(t1);
- },
- $signature: 498
- };
- A.legacyMapClass_closure3.prototype = {
- call$3(thisArg, index, key) {
- var newKey, t2, newMap, t3, i, t4, oldKey, oldValue,
- t1 = J.getInterceptor$x(thisArg),
- oldMap = t1.get$dartValue(thisArg)._map0$_contents,
- $length = oldMap.get$length(oldMap);
- A.IndexError_check(index, $length, oldMap, null, "index");
- newKey = A.unwrapValue(key);
- t2 = type$.Value_2;
- newMap = A.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
- for (t3 = A.MapExtensions_get_pairs0(t1.get$dartValue(thisArg)._map0$_contents, t2, t2), t3 = t3.get$iterator(t3), i = 0; t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- oldKey = t4._0;
- oldValue = t4._1;
- if (i === index)
- newMap.$indexSet(0, newKey, oldValue);
- else {
- if (newKey.$eq(0, oldKey))
- throw A.wrapException(A.ArgumentError$value(key, "key", "is already in the map"));
- newMap.$indexSet(0, oldKey, oldValue);
- }
- ++i;
- }
- t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(newMap, t2, t2)));
- },
- "call*": "call$3",
- $requiredArgCount: 3,
- $signature: 235
- };
- A.legacyMapClass_closure4.prototype = {
- call$3(thisArg, index, value) {
- var t3,
- t1 = J.getInterceptor$x(thisArg),
- t2 = t1.get$dartValue(thisArg)._map0$_contents,
- key = J.elementAt$1$ax(t2.get$keys(t2), index);
- t2 = type$.Value_2;
- t3 = A.LinkedHashMap_LinkedHashMap$of(t1.get$dartValue(thisArg)._map0$_contents, t2, t2);
- t3.$indexSet(0, key, A.unwrapValue(value));
- t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(t3, t2, t2)));
- },
- "call*": "call$3",
- $requiredArgCount: 3,
- $signature: 235
- };
- A.SassMap0.prototype = {
- get$separator(_) {
- var t1 = this._map0$_contents;
- return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided0 : B.ListSeparator_ECn0;
- },
- get$asList() {
- var t3, t4, t5, result,
- t1 = type$.JSArray_Value_2,
- t2 = A._setArrayType([], t1);
- for (t3 = type$.Value_2, t4 = A.MapExtensions_get_pairs0(this._map0$_contents, t3, t3), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- result = A.List_List$from(A._setArrayType([t5._0, t5._1], t1), false, t3);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t2.push(new A.SassList0(result, B.ListSeparator_nbm0, false));
- }
- return t2;
- },
- get$lengthAsList() {
- var t1 = this._map0$_contents;
- return t1.get$length(t1);
- },
- accept$1$1(visitor) {
- return visitor.visitMap$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMap$1($name) {
- return this;
- },
- tryMap$0() {
- return this;
- },
- $eq(_, other) {
- var t1;
- if (other == null)
- return false;
- if (!(other instanceof A.SassMap0 && B.C_MapEquality.equals$2(0, other._map0$_contents, this._map0$_contents))) {
- t1 = this._map0$_contents;
- t1 = t1.get$isEmpty(t1) && other instanceof A.SassList0 && other._list1$_contents.length === 0;
- } else
- t1 = true;
- return t1;
- },
- get$hashCode(_) {
- var t1 = this._map0$_contents;
- return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty19) : B.C_MapEquality.hash$1(t1);
- }
- };
- A.global_closure31.prototype = {
- call$1($arguments) {
- var t1,
- number = J.$index$asx($arguments, 0).assertNumber$1("number");
- if (number.hasUnit$1("%"))
- A.warnForDeprecation0(string$.Passinp + number.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + number.toString$0(0) + string$.x7d__Mor, B.Deprecation_jYb);
- t1 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits0(Math.abs(number._number1$_value), number.get$denominatorUnits(number), t1);
- },
- $signature: 12
- };
- A.module_closure11.prototype = {
- call$1(value) {
- return Math.abs(value);
- },
- $signature: 37
- };
- A._ceil_closure0.prototype = {
- call$1(value) {
- return B.JSNumber_methods.ceil$0(value);
- },
- $signature: 37
- };
- A._clamp_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- min = t1.$index($arguments, 0).assertNumber$1("min"),
- number = t1.$index($arguments, 1).assertNumber$1("number"),
- max = t1.$index($arguments, 2).assertNumber$1("max");
- number.convertValueToMatch$3(min, "number", "min");
- max.convertValueToMatch$3(min, "max", "min");
- if (min.greaterThanOrEquals$1(max).value)
- return min;
- if (min.greaterThanOrEquals$1(number).value)
- return min;
- if (number.greaterThanOrEquals$1(max).value)
- return max;
- return number;
- },
- $signature: 12
- };
- A._floor_closure0.prototype = {
- call$1(value) {
- return B.JSNumber_methods.floor$0(value);
- },
- $signature: 37
- };
- A._max_closure0.prototype = {
- call$1($arguments) {
- var t1, t2, max, _i, number;
- for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- number = t1[_i].assertNumber$0();
- if (max == null || max.lessThan$1(number).value)
- max = number;
- }
- if (max != null)
- return max;
- throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
- },
- $signature: 12
- };
- A._min_closure0.prototype = {
- call$1($arguments) {
- var t1, t2, min, _i, number;
- for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
- number = t1[_i].assertNumber$0();
- if (min == null || min.greaterThan$1(number).value)
- min = number;
- }
- if (min != null)
- return min;
- throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
- },
- $signature: 12
- };
- A._round_closure0.prototype = {
- call$1(number) {
- return B.JSNumber_methods.round$0(number);
- },
- $signature: 37
- };
- A._hypot_closure0.prototype = {
- call$1($arguments) {
- var subtotal, i, i0, t3, t4,
- t1 = J.$index$asx($arguments, 0).get$asList(),
- t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0>"),
- numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure0(), t2), true, t2._eval$1("ListIterable.E"));
- t1 = numbers.length;
- if (t1 === 0)
- throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
- for (subtotal = 0, i = 0; i < t1; i = i0) {
- i0 = i + 1;
- subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2);
- }
- t1 = Math.sqrt(subtotal);
- t2 = numbers[0];
- t3 = J.getInterceptor$x(t2);
- t4 = t3.get$numeratorUnits(t2);
- return A.SassNumber_SassNumber$withUnits0(t1, t3.get$denominatorUnits(t2), t4);
- },
- $signature: 12
- };
- A._hypot__closure0.prototype = {
- call$1(argument) {
- return argument.assertNumber$0();
- },
- $signature: 500
- };
- A._log_closure0.prototype = {
- call$1($arguments) {
- var base,
- _s18_ = " to have no units.",
- _null = null,
- t1 = J.getInterceptor$asx($arguments),
- number = t1.$index($arguments, 0).assertNumber$1("number");
- if (number.get$hasUnits())
- throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_, _null));
- else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull0))
- return A.SassNumber_SassNumber0(Math.log(number._number1$_value), _null);
- base = t1.$index($arguments, 1).assertNumber$1("base");
- if (base.get$hasUnits())
- throw A.wrapException(A.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_, _null));
- else
- return A.SassNumber_SassNumber0(Math.log(number._number1$_value) / Math.log(base._number1$_value), _null);
- },
- $signature: 12
- };
- A._pow_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return A.pow1(t1.$index($arguments, 0).assertNumber$1("base"), t1.$index($arguments, 1).assertNumber$1("exponent"));
- },
- $signature: 12
- };
- A._atan2_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- y = t1.$index($arguments, 0).assertNumber$1("y");
- return A.SassNumber_SassNumber$withUnits0(Math.atan2(y._number1$_value, t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
- },
- $signature: 12
- };
- A._compatible_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments);
- return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._isUnitless_closure0.prototype = {
- call$1($arguments) {
- return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._unit_closure0.prototype = {
- call$1($arguments) {
- return new A.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
- },
- $signature: 19
- };
- A._percentage_closure0.prototype = {
- call$1($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number");
- number.assertNoUnits$1("number");
- return A.SassNumber_SassNumber0(number._number1$_value * 100, "%");
- },
- $signature: 12
- };
- A._randomFunction_closure0.prototype = {
- call$1($arguments) {
- var limit, limitScalar,
- t1 = J.getInterceptor$asx($arguments);
- if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull0))
- return A.SassNumber_SassNumber0($.$get$_random2().nextDouble$0(), null);
- limit = t1.$index($arguments, 0).assertNumber$1("limit");
- if (limit.get$hasUnits())
- A.warnForDeprecation0(string$.math_r + limit.toString$0(0) + string$.x29x20in_a + limit.get$unitString() + ")) * 1" + limit.get$unitString() + string$.x0a_To_p + limit.get$unitString() + string$.x29x29__Mo, B.Deprecation_oCX);
- limitScalar = limit.assertInt$1("limit");
- if (limitScalar < 1)
- throw A.wrapException(A.SassScriptException$0("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null));
- return A.SassNumber_SassNumber0($.$get$_random2().nextInt$1(limitScalar) + 1, null);
- },
- $signature: 12
- };
- A._div_closure0.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- number1 = t1.$index($arguments, 0),
- number2 = t1.$index($arguments, 1);
- if (!(number1 instanceof A.SassNumber0) || !(number2 instanceof A.SassNumber0))
- A.warn0(string$.math_d);
- return number1.dividedBy$1(number2);
- },
- $signature: 3
- };
- A._singleArgumentMathFunc_closure0.prototype = {
- call$1($arguments) {
- return this.mathFunc.call$1(J.$index$asx($arguments, 0).assertNumber$1("number"));
- },
- $signature: 12
- };
- A._numberFunction_closure0.prototype = {
- call$1($arguments) {
- var number = J.$index$asx($arguments, 0).assertNumber$1("number"),
- t1 = this.transform.call$1(number._number1$_value),
- t2 = number.get$numeratorUnits(number);
- return A.SassNumber_SassNumber$withUnits0(t1, number.get$denominatorUnits(number), t2);
- },
- $signature: 12
- };
- A.CssMediaQuery0.prototype = {
- merge$1(other) {
- var t1, ourModifier, t2, t3, ourType, t4, theirModifier, t5, t6, theirType, t7, t8, negativeConditions, conditions, type, modifier, fewerConditions, fewerConditions0, moreConditions, _this = this, _null = null, _s3_ = "all";
- if (!_this.conjunction || !other.conjunction)
- return B._SingletonCssMediaQueryMergeResult_10;
- t1 = _this.modifier;
- ourModifier = t1 == null ? _null : t1.toLowerCase();
- t2 = _this.type;
- t3 = t2 == null;
- ourType = t3 ? _null : t2.toLowerCase();
- t4 = other.modifier;
- theirModifier = t4 == null ? _null : t4.toLowerCase();
- t5 = other.type;
- t6 = t5 == null;
- theirType = t6 ? _null : t5.toLowerCase();
- t7 = ourType == null;
- if (t7 && theirType == null) {
- t1 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t1, other.conditions);
- return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$condition0(t1, true));
- }
- t8 = ourModifier === "not";
- if (t8 !== (theirModifier === "not")) {
- if (ourType == theirType) {
- negativeConditions = t8 ? _this.conditions : other.conditions;
- if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions)))
- return B._SingletonCssMediaQueryMergeResult_00;
- else
- return B._SingletonCssMediaQueryMergeResult_10;
- } else if (t3 || A.equalsIgnoreCase0(t2, _s3_) || t6 || A.equalsIgnoreCase0(t5, _s3_))
- return B._SingletonCssMediaQueryMergeResult_10;
- if (t8) {
- conditions = other.conditions;
- type = theirType;
- modifier = theirModifier;
- } else {
- conditions = _this.conditions;
- type = ourType;
- modifier = ourModifier;
- }
- } else if (t8) {
- if (ourType != theirType)
- return B._SingletonCssMediaQueryMergeResult_10;
- fewerConditions = _this.conditions;
- fewerConditions0 = other.conditions;
- t3 = fewerConditions.length > fewerConditions0.length;
- moreConditions = t3 ? fewerConditions : fewerConditions0;
- if (t3)
- fewerConditions = fewerConditions0;
- if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions)))
- return B._SingletonCssMediaQueryMergeResult_10;
- conditions = moreConditions;
- type = ourType;
- modifier = ourModifier;
- } else if (t3 || A.equalsIgnoreCase0(t2, _s3_)) {
- type = (t6 || A.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType;
- t3 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t3, other.conditions);
- conditions = t3;
- modifier = theirModifier;
- } else {
- if (t6 || A.equalsIgnoreCase0(t5, _s3_)) {
- t3 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t3, other.conditions);
- conditions = t3;
- modifier = ourModifier;
- } else {
- if (ourType != theirType)
- return B._SingletonCssMediaQueryMergeResult_00;
- else {
- modifier = ourModifier == null ? theirModifier : ourModifier;
- t3 = A.List_List$of(_this.conditions, true, type$.String);
- B.JSArray_methods.addAll$1(t3, other.conditions);
- }
- conditions = t3;
- }
- type = ourType;
- }
- t2 = type == ourType ? t2 : t5;
- return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$type0(t2, conditions, modifier == ourModifier ? t1 : t4));
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions);
- },
- get$hashCode(_) {
- return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions);
- },
- toString$0(_) {
- var t2, _this = this,
- t1 = _this.modifier;
- t1 = t1 != null ? "" + (t1 + " ") : "";
- t2 = _this.type;
- if (t2 != null) {
- t1 += t2;
- if (_this.conditions.length !== 0)
- t1 += " and ";
- }
- t2 = _this.conjunction ? " and " : " or ";
- t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- A._SingletonCssMediaQueryMergeResult0.prototype = {
- _enumToString$0() {
- return "_SingletonCssMediaQueryMergeResult." + this._name;
- }
- };
- A.MediaQuerySuccessfulMergeResult0.prototype = {
- toString$0(_) {
- return this.query.toString$0(0);
- }
- };
- A.MediaQueryParser0.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure0(this));
- },
- _media_query$_mediaQuery$0() {
- var conditions, conjunction, t1, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null;
- if (_this.scanner.peekChar$0() === 40) {
- conditions = A._setArrayType([_this._media_query$_mediaInParens$0()], type$.JSArray_String);
- _this.whitespace$0();
- if (_this.scanIdentifier$1(_s3_)) {
- _this.expectWhitespace$0();
- B.JSArray_methods.addAll$1(conditions, _this._media_query$_mediaLogicSequence$1(_s3_));
- conjunction = true;
- } else {
- t1 = _this.scanIdentifier$1("or");
- if (t1) {
- _this.expectWhitespace$0();
- B.JSArray_methods.addAll$1(conditions, _this._media_query$_mediaLogicSequence$1("or"));
- }
- conjunction = !t1;
- }
- return A.CssMediaQuery$condition0(conditions, conjunction);
- }
- identifier1 = _this.identifier$0();
- if (A.equalsIgnoreCase0(identifier1, "not")) {
- _this.expectWhitespace$0();
- if (!_this.lookingAtIdentifier$0())
- return A.CssMediaQuery$condition0(A._setArrayType(["(not " + _this._media_query$_mediaInParens$0() + ")"], type$.JSArray_String), _null);
- }
- _this.whitespace$0();
- if (!_this.lookingAtIdentifier$0())
- return A.CssMediaQuery$type0(identifier1, _null, _null);
- identifier2 = _this.identifier$0();
- if (A.equalsIgnoreCase0(identifier2, _s3_)) {
- _this.expectWhitespace$0();
- type = identifier1;
- modifier = _null;
- } else {
- _this.whitespace$0();
- if (_this.scanIdentifier$1(_s3_))
- _this.expectWhitespace$0();
- else
- return A.CssMediaQuery$type0(identifier2, _null, identifier1);
- type = identifier2;
- modifier = identifier1;
- }
- if (_this.scanIdentifier$1("not")) {
- _this.expectWhitespace$0();
- return A.CssMediaQuery$type0(type, A._setArrayType(["(not " + _this._media_query$_mediaInParens$0() + ")"], type$.JSArray_String), modifier);
- }
- return A.CssMediaQuery$type0(type, _this._media_query$_mediaLogicSequence$1(_s3_), modifier);
- },
- _media_query$_mediaLogicSequence$1(operator) {
- var t1, t2, _this = this,
- result = A._setArrayType([], type$.JSArray_String);
- for (t1 = _this.scanner; true;) {
- t1.expectChar$2$name(40, "media condition in parentheses");
- t2 = _this.declarationValue$0();
- t1.expectChar$1(41);
- result.push("(" + t2 + ")");
- _this.whitespace$0();
- if (!_this.scanIdentifier$1(operator))
- return result;
- _this.expectWhitespace$0();
- }
- },
- _media_query$_mediaInParens$0() {
- var t2,
- t1 = this.scanner;
- t1.expectChar$2$name(40, "media condition in parentheses");
- t2 = this.declarationValue$0();
- t1.expectChar$1(41);
- return "(" + t2 + ")";
- }
- };
- A.MediaQueryParser_parse_closure0.prototype = {
- call$0() {
- var queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2),
- t1 = this.$this,
- t2 = t1.scanner;
- do {
- t1.whitespace$0();
- queries.push(t1._media_query$_mediaQuery$0());
- t1.whitespace$0();
- } while (t2.scanChar$1(44));
- t2.expectDone$0();
- return queries;
- },
- $signature: 501
- };
- A.ModifiableCssMediaRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssMediaRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- return other instanceof A.ModifiableCssMediaRule0 && B.C_ListEquality.equals$2(0, this.queries, other.queries);
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssMediaRule$0(this.queries, this.span);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.MediaRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitMediaRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.MergedExtension0.prototype = {
- unmerge$0() {
- return new A._SyncStarIterable(this.unmerge$body$MergedExtension0(), type$._SyncStarIterable_Extension_2);
- },
- unmerge$body$MergedExtension0() {
- var $async$self = this;
- return function() {
- var $async$goto = 0, $async$handler = 1, $async$currentError, right, left;
- return function $async$unmerge$0($async$iterator, $async$errorCode, $async$result) {
- if ($async$errorCode === 1) {
- $async$currentError = $async$result;
- $async$goto = $async$handler;
- }
- while (true)
- switch ($async$goto) {
- case 0:
- // Function start
- left = $async$self.left;
- $async$goto = left instanceof A.MergedExtension0 ? 2 : 4;
- break;
- case 2:
- // then
- $async$goto = 5;
- return $async$iterator._yieldStar$1(left.unmerge$0());
- case 5:
- // after yield
- // goto join
- $async$goto = 3;
- break;
- case 4:
- // else
- $async$goto = 6;
- return $async$iterator._async$_current = left, 1;
- case 6:
- // after yield
- case 3:
- // join
- right = $async$self.right;
- $async$goto = right instanceof A.MergedExtension0 ? 7 : 9;
- break;
- case 7:
- // then
- $async$goto = 10;
- return $async$iterator._yieldStar$1(right.unmerge$0());
- case 10:
- // after yield
- // goto join
- $async$goto = 8;
- break;
- case 9:
- // else
- $async$goto = 11;
- return $async$iterator._async$_current = right, 1;
- case 11:
- // after yield
- case 8:
- // join
- // implicit return
- return 0;
- case 1:
- // rethrow
- return $async$iterator._datum = $async$currentError, 3;
- }
- };
- };
- }
- };
- A.MergedMapView0.prototype = {
- get$keys(_) {
- var t1 = this._merged_map_view$_mapsByKey;
- return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
- },
- get$length(_) {
- return this._merged_map_view$_mapsByKey.__js_helper$_length;
- },
- get$isEmpty(_) {
- return this._merged_map_view$_mapsByKey.__js_helper$_length === 0;
- },
- get$isNotEmpty(_) {
- return this._merged_map_view$_mapsByKey.__js_helper$_length !== 0;
- },
- MergedMapView$10(maps, $K, $V) {
- var t1, t2, t3, _i, map, t4, t5, t6;
- 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, A.throwConcurrentModificationError)(maps), ++_i) {
- map = maps[_i];
- if (t3._is(map))
- for (t4 = map._merged_map_view$_mapsByKey.get$values(0), t5 = A._instanceType(t4), t5 = t5._eval$1("@<1>")._bind$1(t5._rest[1]), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f, t5._eval$1("MappedIterator<1,2>")), t5 = t5._rest[1]; t4.moveNext$0();) {
- t6 = t4.__internal$_current;
- if (t6 == null)
- t6 = t5._as(t6);
- A.setAll0(t2, t6.get$keys(t6), t6);
- }
- else
- A.setAll0(t2, map.get$keys(map), map);
- }
- },
- $index(_, key) {
- var t1 = this._merged_map_view$_mapsByKey.$index(0, this.$ti._precomputed1._as(key));
- return t1 == null ? null : t1.$index(0, key);
- },
- $indexSet(_, key, value) {
- var _0_0 = this._merged_map_view$_mapsByKey.$index(0, key);
- if (_0_0 != null)
- _0_0.$indexSet(0, key, value);
- else
- throw A.wrapException(A.UnsupportedError$(string$.New_en));
- },
- remove$1(_, key) {
- throw A.wrapException(A.UnsupportedError$(string$.Entrie));
- },
- containsKey$1(key) {
- return this._merged_map_view$_mapsByKey.containsKey$1(key);
- }
- };
- A.global_closure59.prototype = {
- call$1($arguments) {
- return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A.global_closure60.prototype = {
- call$1($arguments) {
- return new A.SassString0(A.serializeValue0(J.get$first$ax($arguments), true, true), false);
- },
- $signature: 19
- };
- A.global_closure61.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- _0_0 = t1.$index($arguments, 0);
- $label0$0: {
- if (_0_0 instanceof A.SassArgumentList0) {
- t1 = "arglist";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassBoolean0) {
- t1 = "bool";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassColor0) {
- t1 = "color";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassList0) {
- t1 = "list";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassMap0) {
- t1 = "map";
- break $label0$0;
- }
- if (B.C__SassNull0 === _0_0) {
- t1 = "null";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassNumber0) {
- t1 = "number";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassFunction0) {
- t1 = "function";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassMixin0) {
- t1 = "mixin";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassCalculation0) {
- t1 = "calculation";
- break $label0$0;
- }
- if (_0_0 instanceof A.SassString0) {
- t1 = "string";
- break $label0$0;
- }
- t1 = A.throwExpression("[BUG] Unknown value type " + A.S(t1.$index($arguments, 0)));
- }
- return new A.SassString0(t1, false);
- },
- $signature: 19
- };
- A.global_closure62.prototype = {
- call$1($arguments) {
- var t2, t3, t4,
- t1 = J.getInterceptor$asx($arguments),
- _1_0 = t1.$index($arguments, 0);
- if (_1_0 instanceof A.SassArgumentList0) {
- _1_0._argument_list$_wereKeywordsAccessed = true;
- t1 = type$.Value_2;
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t3 = A.MapExtensions_get_pairs0(_1_0._argument_list$_keywords, type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t4 = t3.get$current(t3);
- t2.$indexSet(0, new A.SassString0(t4._0, false), t4._1);
- }
- return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
- } else
- throw A.wrapException("$args: " + A.S(t1.$index($arguments, 0)) + " is not an argument list.");
- },
- $signature: 36
- };
- A.local_closure2.prototype = {
- call$1($arguments) {
- return new A.SassString0(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true);
- },
- $signature: 19
- };
- A.local_closure3.prototype = {
- call$1($arguments) {
- var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments;
- return A.SassList$0(new A.MappedListIterable(t1, new A.local__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_ECn0, false);
- },
- $signature: 23
- };
- A.local__closure0.prototype = {
- call$1(argument) {
- return argument instanceof A.Value0 ? argument : new A.SassString0(J.toString$0$(argument), false);
- },
- $signature: 502
- };
- A.local_closure4.prototype = {
- call$1($arguments) {
- var _0_2_isSet, _0_2, acceptsContent, t1, _0_5_isSet, _0_5, hasContent,
- mixin = J.$index$asx($arguments, 0).assertMixin$1("mixin"),
- _0_0 = mixin.callable;
- $label0$0: {
- _0_2_isSet = type$.AsyncBuiltInCallable_2._is(_0_0);
- if (_0_2_isSet) {
- _0_2 = _0_0.get$acceptsContent();
- acceptsContent = _0_2;
- } else
- acceptsContent = null;
- if (!_0_2_isSet) {
- _0_2_isSet = _0_0 instanceof A.BuiltInCallable0;
- if (_0_2_isSet) {
- _0_2 = _0_0.acceptsContent;
- acceptsContent = _0_2;
- }
- t1 = _0_2_isSet;
- } else
- t1 = true;
- if (t1) {
- t1 = acceptsContent;
- break $label0$0;
- }
- _0_5_isSet = _0_0 instanceof A.UserDefinedCallable0;
- if (_0_5_isSet) {
- _0_5 = _0_0.declaration;
- t1 = _0_5 instanceof A.MixinRule0;
- } else {
- _0_5 = null;
- t1 = false;
- }
- if (t1) {
- t1 = _0_5_isSet ? _0_5 : _0_0.declaration;
- hasContent = type$.MixinRule_2._as(t1).get$hasContent();
- t1 = hasContent;
- break $label0$0;
- }
- t1 = A.throwExpression(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
- }
- return t1 ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A.mixinClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassMixin", new A.mixinClass__closure()));
- A.JSClassExtension_injectSuperclass(t1._as(new A.SassMixin0(A.BuiltInCallable$function0("f", "", new A.mixinClass__closure0(), null)).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.mixinClass__closure.prototype = {
- call$1($self) {
- A.jsThrow(new self.Error("It is not possible to construct a SassMixin through the JavaScript API"));
- },
- $signature: 503
- };
- A.mixinClass__closure0.prototype = {
- call$1(_) {
- return B.C__SassNull0;
- },
- $signature: 3
- };
- A.SassMixin0.prototype = {
- accept$1$1(visitor) {
- var t1, t2;
- if (!visitor._serialize0$_inspect)
- A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value.", null));
- t1 = visitor._serialize0$_buffer;
- t1.write$1(0, "get-mixin(");
- t2 = this.callable;
- visitor._serialize0$_visitQuotedString$1(t2.get$name(t2));
- t1.writeCharCode$1(41);
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertMixin$1($name) {
- return this;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassMixin0 && this.callable.$eq(0, other.callable);
- },
- get$hashCode(_) {
- var t1 = this.callable;
- return t1.get$hashCode(t1);
- }
- };
- A.MixinRule0.prototype = {
- get$hasContent() {
- var result, _this = this,
- value = _this._mixin_rule$__MixinRule_hasContent_FI;
- if (value === $) {
- result = J.$eq$(B.C__HasContentVisitor0.visitChildren$1(_this.children), true);
- _this._mixin_rule$__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI();
- _this._mixin_rule$__MixinRule_hasContent_FI = result;
- value = result;
- }
- return value;
- },
- accept$1$1(visitor) {
- return visitor.visitMixinRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = "@mixin " + this.name,
- t2 = this.$arguments;
- if (!(t2.$arguments.length === 0 && t2.restArgument == null))
- t1 += "(" + t2.toString$0(0) + ")";
- t2 = this.children;
- t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- };
- A._HasContentVisitor0.prototype = {
- visitContentRule$1(_) {
- return true;
- }
- };
- A.__HasContentVisitor_Object_StatementSearchVisitor0.prototype = {};
- A.ExtendMode0.prototype = {
- _enumToString$0() {
- return "ExtendMode." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.JSModule0.prototype = {};
- A.JSModuleRequire0.prototype = {};
- A.MultiSpan0.prototype = {
- get$start(_) {
- var t1 = this._multi_span0$_primary;
- return t1.get$start(t1);
- },
- get$end(_) {
- var t1 = this._multi_span0$_primary;
- return t1.get$end(t1);
- },
- get$text() {
- return this._multi_span0$_primary.get$text();
- },
- get$context(_) {
- var t1 = this._multi_span0$_primary;
- return t1.get$context(t1);
- },
- get$file(_) {
- var t1 = this._multi_span0$_primary;
- return t1.get$file(t1);
- },
- get$length(_) {
- var t1 = this._multi_span0$_primary;
- return t1.get$length(t1);
- },
- get$sourceUrl(_) {
- var t1 = this._multi_span0$_primary;
- return t1.get$sourceUrl(t1);
- },
- compareTo$1(_, other) {
- return this._multi_span0$_primary.compareTo$1(0, other);
- },
- toString$0(_) {
- return this._multi_span0$_primary.toString$0(0);
- },
- expand$1(_, other) {
- return new A.MultiSpan0(this._multi_span0$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans);
- },
- highlight$1$color(color) {
- return A.Highlighter$multiple(this._multi_span0$_primary, this.primaryLabel, this.secondarySpans, color === true, null, null).highlight$0();
- },
- message$2$color(_, message, color) {
- var t1 = J.$eq$(color, true) || typeof color == "string",
- t2 = typeof color == "string" ? color : null;
- return A.SourceSpanExtension_messageMultiple(this._multi_span0$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2, null);
- },
- message$1(_, message) {
- return this.message$2$color(0, message, null);
- },
- $isComparable: 1,
- $isFileSpan: 1,
- $isSourceSpan: 1,
- $isSourceSpanWithContext: 1
- };
- A.SupportsNegation0.prototype = {
- toString$0(_) {
- var t1 = this.condition;
- if (t1 instanceof A.SupportsNegation0 || t1 instanceof A.SupportsOperation0)
- return "not (" + t1.toString$0(0) + ")";
- else
- return "not " + t1.toString$0(0);
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.NoOpImporter0.prototype = {
- canonicalize$1(_, url) {
- return null;
- },
- load$1(_, url) {
- return null;
- },
- toString$0(_) {
- return "(unknown)";
- }
- };
- A.NoSourceMapBuffer0.prototype = {
- get$length(_) {
- return this._no_source_map_buffer0$_buffer._contents.length;
- },
- forSpan$1$2(span, callback) {
- return callback.call$0();
- },
- forSpan$2(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- write$1(_, object) {
- var t1 = this._no_source_map_buffer0$_buffer,
- t2 = A.S(object);
- t1._contents += t2;
- return null;
- },
- writeCharCode$1(charCode) {
- var t1 = this._no_source_map_buffer0$_buffer,
- t2 = A.Primitives_stringFromCharCode(charCode);
- t1._contents += t2;
- return null;
- },
- toString$0(_) {
- var t1 = this._no_source_map_buffer0$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix(prefix) {
- return A.throwExpression(A.UnsupportedError$(string$.NoSour));
- }
- };
- A._FakeAstNode0.prototype = {
- get$span(_) {
- return this._node0$_callback.call$0();
- },
- $isAstNode0: 1
- };
- A.CssNode0.prototype = {
- toString$0(_) {
- return A.serialize0(this, true, null, true, null, false, null, true)._0;
- },
- $isAstNode0: 1
- };
- A.CssParentNode0.prototype = {};
- A._IsInvisibleVisitor1.prototype = {
- visitCssAtRule$1(rule) {
- return false;
- },
- visitCssComment$1(comment) {
- return this.includeComments && comment.text.charCodeAt(2) !== 33;
- },
- visitCssStyleRule$1(rule) {
- var t1 = rule._style_rule0$_selector._box0$_inner;
- return (this.includeBogus ? t1.value.accept$1(B._IsInvisibleVisitor_true0) : t1.value.accept$1(B._IsInvisibleVisitor_false0)) || this.super$EveryCssVisitor$visitCssStyleRule0(rule);
- }
- };
- A.__IsInvisibleVisitor_Object_EveryCssVisitor0.prototype = {};
- A.ModifiableCssNode0.prototype = {
- get$hasFollowingSibling() {
- var t2,
- t1 = this._node$_parent;
- if (t1 == null)
- t1 = null;
- else {
- t1 = t1.children;
- t2 = this._node$_indexInParent;
- t2.toString;
- t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListBase.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure0());
- }
- return t1 === true;
- },
- get$isGroupEnd() {
- return this.isGroupEnd;
- }
- };
- A.ModifiableCssNode_hasFollowingSibling_closure0.prototype = {
- call$1(sibling) {
- return !sibling.accept$1(B._IsInvisibleVisitor_true_false0);
- },
- $signature: 504
- };
- A.ModifiableCssParentNode0.prototype = {
- get$isChildless() {
- return false;
- },
- addChild$1(child) {
- var t1;
- child._node$_parent = this;
- t1 = this._node$_children;
- child._node$_indexInParent = t1.length;
- t1.push(child);
- },
- clearChildren$0() {
- var t1, t2, _i, child;
- for (t1 = this._node$_children, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- child = t1[_i];
- child._node$_indexInParent = child._node$_parent = null;
- }
- B.JSArray_methods.clear$0(t1);
- },
- $isCssParentNode0: 1,
- get$children(receiver) {
- return this.children;
- }
- };
- A.NodePackageImporter0.prototype = {
- isNonCanonicalScheme$1(scheme) {
- return scheme === "pkg";
- },
- canonicalize$1(_, url) {
- var packageName, jsonPath, jsonString, packageManifest, e, t1, t2, t3, t4, baseDirectory, parts, t5, $name, subpath, packageRoot, exception, _1_0, rootPath, subpathInRoot, _this = this, _null = null;
- if (url.get$scheme() === "file")
- return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, url);
- if (url.get$scheme() !== "pkg")
- return _null;
- if (url.get$hasAuthority())
- throw A.wrapException(string$.A_pkg_h);
- else {
- t1 = $.$get$url();
- t2 = t1.style;
- if (t2.rootLength$1(url.get$path(url)) > 0)
- throw A.wrapException("A pkg: URL's path must not begin with /.");
- else if (url.get$path(url).length === 0)
- throw A.wrapException("A pkg: URL must not have an empty path.");
- else if (url.get$hasQuery() || url.get$hasFragment())
- throw A.wrapException(string$.A_pkg_q);
- }
- t3 = A.canonicalizeContext0();
- t3._canonicalize_context$_wasContainingUrlAccessed = true;
- t3 = t3._canonicalize_context$_containingUrl;
- if ((t3 == null ? _null : t3.get$scheme()) === "file") {
- t3 = A.canonicalizeContext0();
- t3._canonicalize_context$_wasContainingUrlAccessed = true;
- t3 = t3._canonicalize_context$_containingUrl;
- t3.toString;
- t4 = $.$get$context();
- baseDirectory = t4.dirname$1(t4.style.pathFromUri$1(A._parseUri(t3)));
- } else {
- t3 = _this._node_package$__NodePackageImporter__entryPointDirectory_F;
- t3 === $ && A.throwUnnamedLateFieldNI();
- baseDirectory = t3;
- }
- packageName = null;
- parts = t1.split$1(0, url.get$path(url));
- t3 = B.JSArray_methods.removeAt$1(parts, 0);
- t4 = $.$get$context();
- t3.toString;
- t5 = t4.style;
- $name = t5.pathFromUri$1(A._parseUri(t3));
- if (B.JSString_methods.startsWith$1($name, "@"))
- $name = parts.length !== 0 ? t1.join$2(0, $name, B.JSArray_methods.removeAt$1(parts, 0)) : $name;
- subpath = parts.length !== 0 ? t5.pathFromUri$1(A._parseUri(t1.joinAll$1(parts))) : _null;
- packageName = $name;
- if (!J.startsWith$1$s(packageName, "."))
- if (!J.contains$1$asx(packageName, "\\"))
- if (!J.contains$1$asx(packageName, "%"))
- t1 = J.startsWith$1$s(packageName, "@") && !J.contains$1$asx(packageName, t2.get$separator(t2));
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1)
- return _null;
- packageRoot = _this._node_package$_resolvePackageRoot$2(packageName, baseDirectory);
- if (packageRoot == null)
- return _null;
- jsonPath = A.join(packageRoot, "package.json", _null);
- jsonString = A.readFile0(jsonPath);
- packageManifest = null;
- try {
- packageManifest = type$.Map_String_dynamic._as(B.C_JsonCodec.decode$1(jsonString));
- } catch (exception) {
- e = A.unwrapException(exception);
- t1 = A.S(jsonPath);
- t2 = A.S(packageName);
- t3 = A.S(e);
- throw A.wrapException("Failed to parse " + t1 + ' for "pkg:' + t2 + '": ' + t3);
- }
- _1_0 = _this._node_package$_resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName);
- if (_1_0 != null)
- if (B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, t5)._splitExtension$1(1)[1]))
- return t4.toUri$1(t4.canonicalize$1(0, _1_0));
- else {
- t1 = subpath == null ? "root" : subpath;
- throw A.wrapException("The export for '" + t1 + "' in '" + A.S(packageName) + "' resolved to '" + _1_0 + string$.x27x2c_whi);
- }
- if (subpath == null) {
- rootPath = _this._node_package$_resolvePackageRootValues$2(packageRoot, packageManifest);
- return rootPath != null ? t4.toUri$1(t4.canonicalize$1(0, rootPath)) : _null;
- }
- subpathInRoot = A.join(packageRoot, subpath, _null);
- return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, t4.toUri$1(subpathInRoot));
- },
- load$1(_, url) {
- return $.$get$FilesystemImporter_cwd0().load$1(0, url);
- },
- _node_package$_resolvePackageRoot$2(packageName, baseDirectory) {
- var potentialPackage, t1;
- for (; true;) {
- potentialPackage = A.join(baseDirectory, "node_modules", packageName);
- if (A.dirExists0(potentialPackage))
- return potentialPackage;
- t1 = $.$get$context();
- if (t1.split$1(0, baseDirectory).length === 1)
- return null;
- baseDirectory = t1.dirname$1(baseDirectory);
- }
- },
- _node_package$_resolvePackageRootValues$2(packageRoot, packageManifest) {
- var t1, sassValue, _1_0, styleValue, _null = null,
- _0_0 = packageManifest.$index(0, "sass");
- if (typeof _0_0 == "string") {
- t1 = B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(_0_0, $.$get$url().style)._splitExtension$1(1)[1]);
- sassValue = _0_0;
- } else {
- sassValue = _null;
- t1 = false;
- }
- if (t1)
- return A.join(packageRoot, sassValue, _null);
- else {
- _1_0 = packageManifest.$index(0, "style");
- if (typeof _1_0 == "string") {
- t1 = B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, $.$get$url().style)._splitExtension$1(1)[1]);
- styleValue = _1_0;
- } else {
- styleValue = _null;
- t1 = false;
- }
- if (t1)
- return A.join(packageRoot, styleValue, _null);
- }
- return A.resolveImportPath0(A.join(packageRoot, "index", _null));
- },
- _node_package$_resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName) {
- var _0_0, _1_0, _this = this,
- exports = packageManifest.$index(0, "exports");
- if (exports == null)
- return null;
- _0_0 = _this._node_package$_nodePackageExportsResolve$5(packageRoot, _this._node_package$_exportsToCheck$1(subpath), exports, subpath, packageName);
- if (_0_0 != null)
- return _0_0;
- if (subpath != null && A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1].length !== 0)
- return null;
- _1_0 = _this._node_package$_nodePackageExportsResolve$5(packageRoot, _this._node_package$_exportsToCheck$2$addIndex(subpath, true), exports, subpath, packageName);
- if (_1_0 != null)
- return _1_0;
- return null;
- },
- _node_package$_nodePackageExportsResolve$5(packageRoot, subpathVariants, exports, subpath, packageName) {
- var t1, matches, _1_1, path;
- if (type$.Map_String_dynamic._is(exports) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure3()) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure4()))
- throw A.wrapException("`exports` in " + packageName + string$.x20can_n + J.map$1$1$ax(J.get$keys$z(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure5(), type$.String).join$1(0, ",") + " in " + A.join(packageRoot, "package.json", null) + ".");
- t1 = A.IterableNullableExtension_whereNotNull(new A.MappedListIterable(subpathVariants, new A.NodePackageImporter__nodePackageExportsResolve_closure6(this, exports, packageRoot), A._arrayInstanceType(subpathVariants)._eval$1("MappedListIterable<1,String?>")), type$.String);
- matches = A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
- $label0$1: {
- _1_1 = matches.length;
- if (_1_1 === 1) {
- path = matches[0];
- t1 = path;
- break $label0$1;
- }
- if (_1_1 <= 0) {
- t1 = null;
- break $label0$1;
- }
- t1 = subpath == null ? "root" : subpath;
- t1 = A.throwExpression(string$.Unable + t1 + " in " + packageName + " should be used. \n\nFound:\n" + B.JSArray_methods.join$1(matches, "\n"));
- }
- return t1;
- },
- _node_package$_compareExpansionKeys$2(keyA, keyB) {
- var t1 = B.JSString_methods.contains$1(keyA, "*"),
- baseLengthA = t1 ? B.JSString_methods.indexOf$1(keyA, "*") + 1 : keyA.length,
- t2 = B.JSString_methods.contains$1(keyB, "*"),
- baseLengthB = t2 ? B.JSString_methods.indexOf$1(keyB, "*") + 1 : keyB.length;
- if (baseLengthA > baseLengthB)
- return -1;
- if (baseLengthB > baseLengthA)
- return 1;
- if (!t1)
- return 1;
- if (!t2)
- return -1;
- t1 = keyA.length;
- t2 = keyB.length;
- if (t1 > t2)
- return -1;
- if (t2 > t1)
- return 1;
- return 0;
- },
- _node_package$_packageTargetResolve$4(subpath, exports, packageRoot, patternMatch) {
- var t2, string, path, map, key, value, _1_0, array, _2_0, _null = null,
- t1 = typeof exports == "string";
- if (t1) {
- t2 = !B.JSString_methods.startsWith$1(exports, "./");
- string = exports;
- } else {
- string = _null;
- t2 = false;
- }
- if (t2)
- throw A.wrapException("Export '" + A.S(string) + string$.x27x20must + packageRoot + "'.");
- if (t1) {
- t2 = patternMatch != null;
- string = exports;
- } else {
- string = _null;
- t2 = false;
- }
- if (t2) {
- t1 = J.replaceFirst$2$s(string, "*", patternMatch);
- t2 = $.$get$context();
- path = t2.normalize$1(A.join(packageRoot, t2.style.pathFromUri$1(A._parseUri(t1)), _null));
- return A.fileExists0(path) ? path : _null;
- }
- string = t1 ? exports : _null;
- if (t1) {
- t1 = $.$get$context();
- string.toString;
- return A.join(packageRoot, t1.style.pathFromUri$1(A._parseUri(string)), _null);
- }
- t1 = type$.Map_String_dynamic._is(exports);
- map = t1 ? exports : _null;
- if (t1) {
- for (t1 = A.MapExtensions_get_pairs(map, type$.String, type$.dynamic), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- key = t2._0;
- value = t2._1;
- if (!B.Set_TnQrk.contains$1(0, key))
- continue;
- if (value == null)
- continue;
- _1_0 = this._node_package$_packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
- if (_1_0 != null)
- return _1_0;
- }
- return _null;
- }
- if (type$.List_nullable_Object._is(exports) && J.get$length$asx(exports) <= 0)
- return _null;
- t1 = type$.List_dynamic._is(exports);
- array = t1 ? exports : _null;
- if (t1) {
- for (t1 = J.get$iterator$ax(array); t1.moveNext$0();) {
- value = t1.get$current(t1);
- if (value == null)
- continue;
- _2_0 = this._node_package$_packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
- if (_2_0 != null)
- return _2_0;
- }
- return _null;
- }
- throw A.wrapException("Invalid 'exports' value " + A.S(exports) + " in " + A.join(packageRoot, "package.json", _null) + ".");
- },
- _node_package$_packageTargetResolve$3(subpath, exports, packageRoot) {
- return this._node_package$_packageTargetResolve$4(subpath, exports, packageRoot, null);
- },
- _node_package$_getMainExport$1(exports) {
- var t1, t2, map, _0_4, $export;
- $label0$0: {
- if (typeof exports == "string") {
- t1 = exports;
- break $label0$0;
- }
- if (type$.List_String._is(exports)) {
- t1 = exports;
- break $label0$0;
- }
- t1 = type$.Map_String_dynamic._is(exports);
- if (t1) {
- t2 = !J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__getMainExport_closure0());
- map = exports;
- } else {
- map = null;
- t2 = false;
- }
- if (t2) {
- t1 = map;
- break $label0$0;
- }
- if (t1) {
- _0_4 = exports.$index(0, ".");
- if (_0_4 == null)
- t2 = exports.containsKey$1(".");
- else
- t2 = true;
- if (t2)
- t2 = _0_4 != null;
- else
- t2 = false;
- } else {
- _0_4 = null;
- t2 = false;
- }
- if (t2) {
- $export = t1 ? _0_4 : J.$index$asx(exports, ".");
- t1 = $export;
- break $label0$0;
- }
- t1 = null;
- break $label0$0;
- }
- return t1;
- },
- _node_package$_exportsToCheck$2$addIndex(subpath, addIndex) {
- var basename, dirname, t3, t4, _i, path,
- t1 = type$.JSArray_String,
- paths = A._setArrayType([], t1),
- t2 = subpath == null;
- if (t2 && addIndex)
- subpath = "index";
- else if (!t2 && addIndex)
- subpath = A.join(subpath, "index", null);
- if (subpath == null)
- return A._setArrayType([null], type$.JSArray_nullable_String);
- if (B.Set_0.contains$1(0, A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1]))
- paths.push(subpath);
- else
- B.JSArray_methods.addAll$1(paths, A._setArrayType([subpath, subpath + ".scss", subpath + ".sass", subpath + ".css"], t1));
- t1 = $.$get$context();
- t2 = t1.style;
- basename = A.ParsedPath_ParsedPath$parse(subpath, t2).get$basename();
- dirname = t1.dirname$1(subpath);
- if (B.JSString_methods.startsWith$1(basename, "_"))
- return paths;
- t1 = A.List_List$of(paths, true, type$.nullable_String);
- for (t3 = paths.length, t4 = dirname === ".", _i = 0; _i < paths.length; paths.length === t3 || (0, A.throwConcurrentModificationError)(paths), ++_i) {
- path = paths[_i];
- if (t4)
- t1.push("_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename());
- else
- t1.push(A.join(dirname, "_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename(), null));
- }
- return t1;
- },
- _node_package$_exportsToCheck$1(subpath) {
- return this._node_package$_exportsToCheck$2$addIndex(subpath, false);
- }
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure3.prototype = {
- call$1(key) {
- return B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure4.prototype = {
- call$1(key) {
- return !B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure5.prototype = {
- call$1(key) {
- return '"' + key + '"';
- },
- $signature: 5
- };
- A.NodePackageImporter__nodePackageExportsResolve_closure6.prototype = {
- call$1(variant) {
- var t1, matchKey, t2, t3, t4, t5, t6, _i, expansionKey, _0_0, t7, patternBase, patternTrailer, t8, target, _this = this, _null = null;
- if (variant == null) {
- t1 = _this.$this;
- return A.NullableExtension_andThen(t1._node_package$_getMainExport$1(_this.exports), new A.NodePackageImporter__nodePackageExportsResolve__closure1(t1, variant, _this.packageRoot));
- } else {
- t1 = _this.exports;
- if (!type$.Map_String_dynamic._is(t1) || J.every$1$ax(t1.get$keys(t1), new A.NodePackageImporter__nodePackageExportsResolve__closure2()))
- return _null;
- }
- matchKey = "./" + $.$get$context().toUri$1(variant).toString$0(0);
- if (t1.containsKey$1(matchKey) && J.$index$asx(t1, matchKey) != null && !B.JSString_methods.contains$1(matchKey, "*")) {
- t1 = J.$index$asx(t1, matchKey);
- if (t1 == null)
- t1 = type$.Object._as(t1);
- return _this.$this._node_package$_packageTargetResolve$3(matchKey, t1, _this.packageRoot);
- }
- t2 = A._setArrayType([], type$.JSArray_String);
- for (t3 = J.getInterceptor$z(t1), t4 = J.get$iterator$ax(t3.get$keys(t1)); t4.moveNext$0();) {
- t5 = t4.get$current(t4);
- if (B.JSString_methods.allMatches$1("*", t5).get$length(0) === 1)
- t2.push(t5);
- }
- t4 = _this.$this;
- B.JSArray_methods.sort$1(t2, t4.get$_node_package$_compareExpansionKeys());
- for (t5 = t2.length, t6 = matchKey.length, _i = 0; _i < t2.length; t2.length === t5 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
- expansionKey = t2[_i];
- _0_0 = expansionKey.split("*");
- t7 = _0_0.length === 2;
- if (t7) {
- patternBase = _0_0[0];
- patternTrailer = _0_0[1];
- patternTrailer = patternTrailer;
- } else {
- patternTrailer = _null;
- patternBase = patternTrailer;
- }
- if (!t7)
- throw A.wrapException(A.StateError$("Pattern matching error"));
- if (!B.JSString_methods.startsWith$1(matchKey, patternBase))
- continue;
- if (matchKey === patternBase)
- continue;
- t7 = patternTrailer.length;
- if (t7 !== 0)
- t8 = B.JSString_methods.endsWith$1(matchKey, patternTrailer) && t6 >= expansionKey.length;
- else
- t8 = true;
- if (t8) {
- target = t3.$index(t1, expansionKey);
- if (target == null)
- continue;
- return t4._node_package$_packageTargetResolve$4(variant, target, _this.packageRoot, B.JSString_methods.substring$2(matchKey, patternBase.length, t6 - t7));
- }
- }
- return _null;
- },
- $signature: 143
- };
- A.NodePackageImporter__nodePackageExportsResolve__closure1.prototype = {
- call$1(mainExport) {
- return this.$this._node_package$_packageTargetResolve$3(this.variant, mainExport, this.packageRoot);
- },
- $signature: 144
- };
- A.NodePackageImporter__nodePackageExportsResolve__closure2.prototype = {
- call$1(key) {
- return !B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.NodePackageImporter__getMainExport_closure0.prototype = {
- call$1(key) {
- return B.JSString_methods.startsWith$1(key, ".");
- },
- $signature: 4
- };
- A.NullExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitNullExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "null";
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.legacyNullClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Null", new A.legacyNullClass__closure()));
- jsClass.NULL = B.C__SassNull0;
- A.JSClassExtension_injectSuperclass(t1._as(B.C__SassNull0.constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.legacyNullClass__closure.prototype = {
- call$2(_, __) {
- throw A.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead.");
- },
- call$1(_) {
- return this.call$2(_, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 209
- };
- A._SassNull0.prototype = {
- get$isTruthy() {
- return false;
- },
- get$isBlank() {
- return true;
- },
- get$realNull() {
- return null;
- },
- accept$1$1(visitor) {
- if (visitor._serialize0$_inspect)
- visitor._serialize0$_buffer.write$1(0, "null");
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unaryNot$0() {
- return B.SassBoolean_true0;
- }
- };
- A.NumberExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitNumberExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return A.serializeValue0(A.SassNumber_SassNumber0(this.value, this.unit), true, true);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.numberClass_closure.prototype = {
- call$0() {
- var t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassNumber", new A.numberClass__closure())),
- t2 = type$.String,
- t3 = type$.Function;
- A.LinkedHashMap_LinkedHashMap$_literal(["value", new A.numberClass__closure0(), "isInt", new A.numberClass__closure1(), "asInt", new A.numberClass__closure2(), "numeratorUnits", new A.numberClass__closure3(), "denominatorUnits", new A.numberClass__closure4(), "hasUnits", new A.numberClass__closure5()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- A.LinkedHashMap_LinkedHashMap$_literal(["assertInt", new A.numberClass__closure6(), "assertInRange", new A.numberClass__closure7(), "assertNoUnits", new A.numberClass__closure8(), "assertUnit", new A.numberClass__closure9(), "hasUnit", new A.numberClass__closure10(), "compatibleWithUnit", new A.numberClass__closure11(), "convert", new A.numberClass__closure12(), "convertToMatch", new A.numberClass__closure13(), "convertValue", new A.numberClass__closure14(), "convertValueToMatch", new A.numberClass__closure15(), "coerce", new A.numberClass__closure16(), "coerceToMatch", new A.numberClass__closure17(), "coerceValue", new A.numberClass__closure18(), "coerceValueToMatch", new A.numberClass__closure19()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
- A.JSClassExtension_injectSuperclass(t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(A.SassNumber_SassNumber0(0, null).constructor))).constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.numberClass__closure.prototype = {
- call$3($self, value, unitOrOptions) {
- var t1, t2, _null = null;
- if (typeof unitOrOptions == "string")
- return A.SassNumber_SassNumber0(value, unitOrOptions);
- type$.nullable__ConstructorOptions_2._as(unitOrOptions);
- t1 = unitOrOptions == null;
- if (t1)
- t2 = _null;
- else {
- t2 = A.NullableExtension_andThen0(J.get$numeratorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure());
- t2 = t2 == null ? _null : J.cast$1$0$ax(t2, type$.String);
- }
- if (t1)
- t1 = _null;
- else {
- t1 = A.NullableExtension_andThen0(J.get$denominatorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure());
- t1 = t1 == null ? _null : J.cast$1$0$ax(t1, type$.String);
- }
- return A.SassNumber_SassNumber$withUnits0(value, t1, t2);
- },
- call$2($self, value) {
- return this.call$3($self, value, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 505
- };
- A.numberClass__closure0.prototype = {
- call$1($self) {
- return $self._number1$_value;
- },
- $signature: 506
- };
- A.numberClass__closure1.prototype = {
- call$1($self) {
- return A.fuzzyIsInt($self._number1$_value);
- },
- $signature: 233
- };
- A.numberClass__closure2.prototype = {
- call$1($self) {
- return A.fuzzyAsInt0($self._number1$_value);
- },
- $signature: 508
- };
- A.numberClass__closure3.prototype = {
- call$1($self) {
- return new self.immutable.List($self.get$numeratorUnits($self));
- },
- $signature: 230
- };
- A.numberClass__closure4.prototype = {
- call$1($self) {
- return new self.immutable.List($self.get$denominatorUnits($self));
- },
- $signature: 230
- };
- A.numberClass__closure5.prototype = {
- call$1($self) {
- return $self.get$hasUnits();
- },
- $signature: 233
- };
- A.numberClass__closure6.prototype = {
- call$2($self, $name) {
- return $self.assertInt$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 510
- };
- A.numberClass__closure7.prototype = {
- call$4($self, min, max, $name) {
- return $self.valueInRange$3(min, max, $name);
- },
- call$3($self, min, max) {
- return this.call$4($self, min, max, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [null];
- },
- $signature: 511
- };
- A.numberClass__closure8.prototype = {
- call$2($self, $name) {
- $self.assertNoUnits$1($name);
- return $self;
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 512
- };
- A.numberClass__closure9.prototype = {
- call$3($self, unit, $name) {
- $self.assertUnit$2(unit, $name);
- return $self;
- },
- call$2($self, unit) {
- return this.call$3($self, unit, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 513
- };
- A.numberClass__closure10.prototype = {
- call$2($self, unit) {
- return $self.hasUnit$1(unit);
- },
- $signature: 225
- };
- A.numberClass__closure11.prototype = {
- call$2($self, unit) {
- return $self.get$hasUnits() && $self.compatibleWithUnit$1(unit);
- },
- $signature: 225
- };
- A.numberClass__closure12.prototype = {
- call$4($self, numeratorUnits, denominatorUnits, $name) {
- var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
- t2 = type$.String;
- t1 = J.cast$1$0$ax(t1, t2);
- t2 = J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2);
- return A.SassNumber_SassNumber$withUnits0($self._number1$_coerceOrConvertValue$4$coerceUnitless$name(t1, t2, false, $name), t2, t1);
- },
- call$3($self, numeratorUnits, denominatorUnits) {
- return this.call$4($self, numeratorUnits, denominatorUnits, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [null];
- },
- $signature: 224
- };
- A.numberClass__closure13.prototype = {
- call$4($self, other, $name, otherName) {
- return $self.convertToMatch$3(other, $name, otherName);
- },
- call$2($self, other) {
- return this.call$4($self, other, null, null);
- },
- call$3($self, other, $name) {
- return this.call$4($self, other, $name, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null, null];
- },
- $signature: 222
- };
- A.numberClass__closure14.prototype = {
- call$4($self, numeratorUnits, denominatorUnits, $name) {
- var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
- t2 = type$.String;
- t1 = J.cast$1$0$ax(t1, t2);
- return $self._number1$_coerceOrConvertValue$4$coerceUnitless$name(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), false, $name);
- },
- call$3($self, numeratorUnits, denominatorUnits) {
- return this.call$4($self, numeratorUnits, denominatorUnits, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [null];
- },
- $signature: 218
- };
- A.numberClass__closure15.prototype = {
- call$4($self, other, $name, otherName) {
- return $self.convertValueToMatch$3(other, $name, otherName);
- },
- call$2($self, other) {
- return this.call$4($self, other, null, null);
- },
- call$3($self, other, $name) {
- return this.call$4($self, other, $name, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null, null];
- },
- $signature: 208
- };
- A.numberClass__closure16.prototype = {
- call$4($self, numeratorUnits, denominatorUnits, $name) {
- var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
- t2 = type$.String;
- t1 = J.cast$1$0$ax(t1, t2);
- return $self.coerce$3(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), $name);
- },
- call$3($self, numeratorUnits, denominatorUnits) {
- return this.call$4($self, numeratorUnits, denominatorUnits, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [null];
- },
- $signature: 224
- };
- A.numberClass__closure17.prototype = {
- call$4($self, other, $name, otherName) {
- return $self.coerceToMatch$3(other, $name, otherName);
- },
- call$2($self, other) {
- return this.call$4($self, other, null, null);
- },
- call$3($self, other, $name) {
- return this.call$4($self, other, $name, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null, null];
- },
- $signature: 222
- };
- A.numberClass__closure18.prototype = {
- call$4($self, numeratorUnits, denominatorUnits, $name) {
- var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
- t2 = type$.String;
- t1 = J.cast$1$0$ax(t1, t2);
- return $self.coerceValue$3(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), $name);
- },
- call$3($self, numeratorUnits, denominatorUnits) {
- return this.call$4($self, numeratorUnits, denominatorUnits, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [null];
- },
- $signature: 218
- };
- A.numberClass__closure19.prototype = {
- call$4($self, other, $name, otherName) {
- return $self.coerceValueToMatch$3(other, $name, otherName);
- },
- call$2($self, other) {
- return this.call$4($self, other, null, null);
- },
- call$3($self, other, $name) {
- return this.call$4($self, other, $name, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null, null];
- },
- $signature: 208
- };
- A._ConstructorOptions0.prototype = {};
- A._NodeSassNumber.prototype = {};
- A.legacyNumberClass_closure.prototype = {
- call$4(thisArg, value, unit, dartValue) {
- var t1;
- if (dartValue == null) {
- value.toString;
- t1 = A._parseNumber(value, unit);
- } else
- t1 = dartValue;
- J.set$dartValue$x(thisArg, t1);
- },
- call$2(thisArg, value) {
- return this.call$4(thisArg, value, null, null);
- },
- call$3(thisArg, value, unit) {
- return this.call$4(thisArg, value, unit, null);
- },
- "call*": "call$4",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null, null];
- },
- $signature: 519
- };
- A.legacyNumberClass_closure0.prototype = {
- call$1(thisArg) {
- return J.get$dartValue$x(thisArg)._number1$_value;
- },
- $signature: 520
- };
- A.legacyNumberClass_closure1.prototype = {
- call$2(thisArg, value) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = J.get$numeratorUnits$x(t1.get$dartValue(thisArg));
- t1.set$dartValue(thisArg, A.SassNumber_SassNumber$withUnits0(value, J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), t2));
- },
- $signature: 521
- };
- A.legacyNumberClass_closure2.prototype = {
- call$1(thisArg) {
- var t1 = J.getInterceptor$x(thisArg),
- t2 = B.JSArray_methods.join$1(J.get$numeratorUnits$x(t1.get$dartValue(thisArg)), "*"),
- t3 = J.get$denominatorUnits$x(t1.get$dartValue(thisArg)).length === 0 ? "" : "/";
- return t2 + t3 + B.JSArray_methods.join$1(J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), "*");
- },
- $signature: 522
- };
- A.legacyNumberClass_closure3.prototype = {
- call$2(thisArg, unit) {
- var t1 = J.getInterceptor$x(thisArg);
- t1.set$dartValue(thisArg, A._parseNumber(t1.get$dartValue(thisArg)._number1$_value, unit));
- },
- $signature: 523
- };
- A._parseNumber_closure.prototype = {
- call$1(unit) {
- return unit.length === 0;
- },
- $signature: 4
- };
- A._parseNumber_closure0.prototype = {
- call$1(unit) {
- return unit.length === 0;
- },
- $signature: 4
- };
- A.SassNumber0.prototype = {
- get$unitString() {
- var _this = this;
- return _this.get$hasUnits() ? _this._number1$_unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : "";
- },
- accept$1$1(visitor) {
- return visitor.visitNumber$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- withoutSlash$0() {
- var _this = this;
- return _this.asSlash == null ? _this : _this.withValue$1(_this._number1$_value);
- },
- assertNumber$1($name) {
- return this;
- },
- assertNumber$0() {
- return this.assertNumber$1(null);
- },
- assertInt$1($name) {
- var _0_0 = A.fuzzyAsInt0(this._number1$_value);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + " is not an int.", $name));
- },
- assertInt$0() {
- return this.assertInt$1(null);
- },
- valueInRange$3(min, max, $name) {
- var _this = this,
- _0_0 = A.fuzzyCheckRange0(_this._number1$_value, min, max);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$0("Expected " + _this.toString$0(0) + " to be within " + A.S(min) + _this.get$unitString() + " and " + A.S(max) + _this.get$unitString() + ".", $name));
- },
- valueInRangeWithUnit$4(min, max, $name, unit) {
- var _0_0 = A.fuzzyCheckRange0(this._number1$_value, min, max);
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
- },
- hasCompatibleUnits$1(other) {
- var _this = this;
- if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
- return false;
- if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
- return false;
- return _this.isComparableTo$1(other);
- },
- assertUnit$2(unit, $name) {
- if (this.hasUnit$1(unit))
- return;
- throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
- },
- assertNoUnits$1($name) {
- if (!this.get$hasUnits())
- return;
- throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to have no units.", $name));
- },
- assertNoUnits$0() {
- return this.assertNoUnits$1(null);
- },
- convertToMatch$3(other, $name, otherName) {
- var t1 = this.convertValueToMatch$3(other, $name, otherName),
- t2 = other.get$numeratorUnits(other);
- return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2);
- },
- convertValueToMatch$3(other, $name, otherName) {
- return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName);
- },
- convertValueToMatch$1(other) {
- return this.convertValueToMatch$3(other, null, null);
- },
- coerce$3(newNumerators, newDenominators, $name) {
- return A.SassNumber_SassNumber$withUnits0(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators);
- },
- coerce$2(newNumerators, newDenominators) {
- return this.coerce$3(newNumerators, newDenominators, null);
- },
- coerceValue$3(newNumerators, newDenominators, $name) {
- return this._number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name);
- },
- coerceValueToUnit$2(unit, $name) {
- var t1 = type$.JSArray_String;
- return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name);
- },
- coerceValueToUnit$1(unit) {
- return this.coerceValueToUnit$2(unit, null);
- },
- coerceToMatch$3(other, $name, otherName) {
- var t1 = this.coerceValueToMatch$3(other, $name, otherName),
- t2 = other.get$numeratorUnits(other);
- return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2);
- },
- coerceValueToMatch$3(other, $name, otherName) {
- return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName);
- },
- coerceValueToMatch$1(other) {
- return this.coerceValueToMatch$3(other, null, null);
- },
- _number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
- var t1, otherHasUnits, t2, compatibilityException, oldNumerators, oldDenominators, _this = this, _box_0 = {};
- if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators))
- return _this._number1$_value;
- t1 = J.getInterceptor$asx(newNumerators);
- otherHasUnits = t1.get$isNotEmpty(newNumerators) || J.get$isNotEmpty$asx(newDenominators);
- if (coerceUnitless)
- t2 = !_this.get$hasUnits() || !otherHasUnits;
- else
- t2 = false;
- if (t2)
- return _this._number1$_value;
- compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException0(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
- _box_0.value = _this._number1$_value;
- t2 = _this.get$numeratorUnits(_this);
- oldNumerators = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
- for (t1 = t1.get$iterator(newNumerators); t1.moveNext$0();)
- A.removeFirstWhere0(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure3(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure4(compatibilityException));
- t1 = _this.get$denominatorUnits(_this);
- oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
- for (t1 = J.get$iterator$ax(newDenominators); t1.moveNext$0();)
- A.removeFirstWhere0(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure5(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure6(compatibilityException));
- if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
- throw A.wrapException(compatibilityException.call$0());
- return _box_0.value;
- },
- _number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) {
- return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
- },
- isComparableTo$1(other) {
- var exception;
- if (!this.get$hasUnits() || !other.get$hasUnits())
- return true;
- try {
- this.greaterThan$1(other);
- return true;
- } catch (exception) {
- if (A.unwrapException(exception) instanceof A.SassScriptException0)
- return false;
- else
- throw exception;
- }
- },
- greaterThan$1(other) {
- if (other instanceof A.SassNumber0)
- return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
- },
- greaterThanOrEquals$1(other) {
- if (other instanceof A.SassNumber0)
- return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
- },
- lessThan$1(other) {
- if (other instanceof A.SassNumber0)
- return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
- },
- lessThanOrEquals$1(other) {
- if (other instanceof A.SassNumber0)
- return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
- },
- modulo$1(other) {
- if (other instanceof A.SassNumber0)
- return this.withValue$1(this._number1$_coerceUnits$2(other, A.number2__moduloLikeSass$closure()));
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
- },
- plus$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber0)
- return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_plus_closure0()));
- if (!(other instanceof A.SassColor0))
- return _this.super$Value$plus0(other);
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- },
- minus$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber0)
- return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_minus_closure0()));
- if (!(other instanceof A.SassColor0))
- return _this.super$Value$minus0(other);
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
- },
- times$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber0) {
- if (!other.get$hasUnits())
- return _this.withValue$1(_this._number1$_value * other._number1$_value);
- return _this.multiplyUnits$3(_this._number1$_value * other._number1$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other));
- }
- throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
- },
- dividedBy$1(other) {
- var _this = this;
- if (other instanceof A.SassNumber0) {
- if (!other.get$hasUnits())
- return _this.withValue$1(_this._number1$_value / other._number1$_value);
- return _this.multiplyUnits$3(_this._number1$_value / other._number1$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other));
- }
- return _this.super$Value$dividedBy0(other);
- },
- unaryPlus$0() {
- return this;
- },
- _number1$_coerceUnits$1$2(other, operation) {
- var t1, exception;
- try {
- t1 = operation.call$2(this._number1$_value, other.coerceValueToMatch$1(this));
- return t1;
- } catch (exception) {
- if (A.unwrapException(exception) instanceof A.SassScriptException0) {
- this.coerceValueToMatch$1(other);
- throw exception;
- } else
- throw exception;
- }
- },
- _number1$_coerceUnits$2(other, operation) {
- return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic);
- },
- multiplyUnits$3(value, otherNumerators, otherDenominators) {
- var t1, _0_1, _0_2, _0_3, _0_6, _0_7_isSet, _0_7, _0_9, t2, _0_9_isSet, denominators_case_0, _0_11_isSet, _0_11, _0_13_isSet, _0_10, _0_13, numerators_case_0, t4, t3, numerators_case_1, denominators_case_1, t0, newNumerators, mutableOtherDenominators, _i, numerator, mutableDenominatorUnits, _this = this, _null = null, _box_0 = {};
- _box_0.value = value;
- t1 = [_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this), otherNumerators, otherDenominators];
- _0_1 = t1[0];
- _0_2 = t1[1];
- _0_3 = t1[2];
- _0_6 = _0_3.length <= 0;
- _0_7_isSet = _0_6;
- if (_0_7_isSet) {
- _0_7 = t1[3];
- _0_9 = _0_7.length <= 0;
- t2 = _0_9;
- } else {
- _0_7 = _null;
- _0_9 = _0_7;
- t2 = false;
- }
- _0_9_isSet = _0_7_isSet;
- denominators_case_0 = _0_2;
- _0_11_isSet = !t2;
- if (_0_11_isSet) {
- _0_11 = _0_1.length <= 0;
- _0_13_isSet = _0_11;
- _0_10 = _0_1;
- if (_0_13_isSet) {
- _0_13 = _0_2.length <= 0;
- t2 = _0_13;
- if (t2) {
- if (_0_7_isSet)
- denominators_case_0 = _0_7;
- else {
- _0_7 = t1[3];
- denominators_case_0 = _0_7;
- _0_7_isSet = true;
- }
- numerators_case_0 = _0_3;
- } else
- numerators_case_0 = _0_1;
- } else {
- numerators_case_0 = _0_1;
- _0_13 = _null;
- t2 = false;
- }
- _0_1 = _0_10;
- } else {
- numerators_case_0 = _0_1;
- _0_13 = _null;
- _0_11 = _0_13;
- _0_13_isSet = false;
- t2 = true;
- }
- if (t2) {
- t4 = denominators_case_0;
- t3 = numerators_case_0;
- } else {
- t4 = _null;
- t3 = t4;
- }
- if (!t2) {
- if (_0_11_isSet)
- t2 = _0_11;
- else {
- _0_11 = _0_1.length <= 0;
- t2 = _0_11;
- }
- if (t2) {
- if (_0_9_isSet)
- t2 = _0_9;
- else {
- if (_0_7_isSet)
- t2 = _0_7;
- else {
- _0_7 = t1[3];
- t2 = _0_7;
- _0_7_isSet = true;
- }
- _0_9 = t2.length <= 0;
- t2 = _0_9;
- }
- numerators_case_1 = _0_3;
- denominators_case_1 = _0_2;
- } else {
- numerators_case_1 = _null;
- denominators_case_1 = numerators_case_1;
- t2 = false;
- }
- if (!t2) {
- if (_0_13_isSet)
- t2 = _0_13;
- else {
- _0_13 = _0_2.length <= 0;
- t2 = _0_13;
- }
- if (t2) {
- if (_0_6)
- denominators_case_1 = _0_7_isSet ? _0_7 : t1[3];
- t1 = _0_6;
- } else
- t1 = false;
- numerators_case_1 = _0_1;
- } else
- t1 = true;
- if (t1) {
- t1 = !_this._number1$_areAnyConvertible$2(numerators_case_1, denominators_case_1);
- if (t1) {
- t3 = denominators_case_1;
- t2 = numerators_case_1;
- } else {
- t2 = t3;
- t3 = t4;
- }
- t0 = t3;
- t3 = t1;
- t1 = t2;
- t2 = t0;
- } else {
- t2 = t4;
- t1 = t3;
- t3 = false;
- }
- } else {
- t2 = t4;
- t1 = t3;
- t3 = true;
- }
- if (t3)
- return A.SassNumber_SassNumber$withUnits0(value, t2, t1);
- newNumerators = A._setArrayType([], type$.JSArray_String);
- mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
- for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) {
- numerator = t1[_i];
- A.removeFirstWhere0(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure3(_box_0, numerator), new A.SassNumber_multiplyUnits_closure4(newNumerators, numerator));
- }
- t1 = _this.get$denominatorUnits(_this);
- mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
- for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) {
- numerator = otherNumerators[_i];
- A.removeFirstWhere0(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure5(_box_0, numerator), new A.SassNumber_multiplyUnits_closure6(newNumerators, numerator));
- }
- t1 = _box_0.value;
- B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators);
- return A.SassNumber_SassNumber$withUnits0(t1, mutableDenominatorUnits, newNumerators);
- },
- _number1$_areAnyConvertible$2(units1, units2) {
- return B.JSArray_methods.any$1(units1, new A.SassNumber__areAnyConvertible_closure0(units2));
- },
- _number1$_unitString$2(numerators, denominators) {
- var _0_4, _0_6, t1, _0_7, _0_5, _null = null;
- $label0$0: {
- _0_4 = J.get$length$asx(numerators) <= 0;
- if (_0_4) {
- _0_6 = J.get$length$asx(denominators);
- t1 = _0_6;
- _0_7 = t1 <= 0;
- t1 = _0_7;
- _0_5 = denominators;
- } else {
- _0_5 = _null;
- _0_6 = _0_5;
- _0_7 = _0_6;
- t1 = false;
- }
- if (t1) {
- t1 = "no units";
- break $label0$0;
- }
- if (_0_4)
- t1 = _0_6 === 1;
- else
- t1 = false;
- if (t1) {
- t1 = J.$index$asx(_0_4 ? _0_5 : denominators, 0) + "^-1";
- break $label0$0;
- }
- if (_0_4) {
- t1 = "(" + J.join$1$ax(denominators, "*") + ")^-1";
- break $label0$0;
- }
- _0_6 = J.get$length$asx(denominators);
- t1 = _0_6;
- _0_7 = t1 <= 0;
- t1 = _0_7;
- if (t1) {
- t1 = J.join$1$ax(numerators, "*");
- break $label0$0;
- }
- t1 = J.join$1$ax(numerators, "*") + "/" + J.join$1$ax(denominators, "*");
- break $label0$0;
- }
- return t1;
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- if (!(other instanceof A.SassNumber0))
- return false;
- if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
- return false;
- if (!_this.get$hasUnits())
- return A.fuzzyEquals0(_this._number1$_value, other._number1$_value);
- if (!B.C_ListEquality.equals$2(0, _this._number1$_canonicalizeUnitList$1(_this.get$numeratorUnits(_this)), _this._number1$_canonicalizeUnitList$1(other.get$numeratorUnits(other))) || !B.C_ListEquality.equals$2(0, _this._number1$_canonicalizeUnitList$1(_this.get$denominatorUnits(_this)), _this._number1$_canonicalizeUnitList$1(other.get$denominatorUnits(other))))
- return false;
- return A.fuzzyEquals0(_this._number1$_value * _this._number1$_canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._number1$_canonicalMultiplier$1(_this.get$denominatorUnits(_this)), other._number1$_value * _this._number1$_canonicalMultiplier$1(other.get$numeratorUnits(other)) / _this._number1$_canonicalMultiplier$1(other.get$denominatorUnits(other)));
- },
- get$hashCode(_) {
- var _this = this,
- t1 = _this.hashCache;
- return t1 == null ? _this.hashCache = A.fuzzyHashCode0(_this._number1$_value * _this._number1$_canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._number1$_canonicalMultiplier$1(_this.get$denominatorUnits(_this))) : t1;
- },
- _number1$_canonicalizeUnitList$1(units) {
- var type,
- t1 = units.length;
- if (t1 === 0)
- return units;
- if (t1 === 1) {
- type = $.$get$_typesByUnit0().$index(0, B.JSArray_methods.get$first(units));
- if (type == null)
- t1 = units;
- else {
- t1 = B.Map_397RH.$index(0, type);
- t1.toString;
- t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String);
- }
- return t1;
- }
- t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>");
- t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure0(), t1), true, t1._eval$1("ListIterable.E"));
- B.JSArray_methods.sort$0(t1);
- return t1;
- },
- _number1$_canonicalMultiplier$1(units) {
- return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure0(this));
- },
- canonicalMultiplierForUnit$1(unit) {
- var t1,
- innerMap = B.Map_gQqJO.$index(0, unit);
- if (innerMap == null)
- t1 = 1;
- else {
- t1 = innerMap.get$values(innerMap);
- t1 = 1 / t1.get$first(t1);
- }
- return t1;
- },
- unitSuggestion$2($name, unit) {
- var t2, t3, result, _this = this,
- t1 = _this.get$denominatorUnits(_this);
- t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
- t2 = _this.get$numeratorUnits(_this);
- t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0);
- t3 = unit == null ? "" : " * 1" + unit;
- result = "$" + $name + t1 + t2 + t3;
- return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")";
- },
- unitSuggestion$1($name) {
- return this.unitSuggestion$2($name, null);
- }
- };
- A.SassNumber__coerceOrConvertValue_compatibilityException0.prototype = {
- call$0() {
- var t2, t3, message, t4, type, unit, _this = this,
- t1 = _this.other;
- if (t1 != null) {
- t2 = _this.$this;
- t3 = t2.toString$0(0) + " and";
- message = new A.StringBuffer(t3);
- t4 = _this.otherName;
- if (t4 != null)
- t3 = message._contents = t3 + (" $" + t4 + ":");
- t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
- message._contents = t1;
- if (!t2.get$hasUnits() || !_this.otherHasUnits)
- message._contents = t1 + " (one has units and the other doesn't)";
- t1 = message.toString$0(0) + ".";
- t2 = _this.name;
- return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
- } else if (!_this.otherHasUnits) {
- t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
- t2 = _this.name;
- return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
- } else {
- t1 = _this.newNumerators;
- t2 = J.getInterceptor$asx(t1);
- if (t2.get$length(t1) === 1 && J.get$isEmpty$asx(_this.newDenominators)) {
- type = $.$get$_typesByUnit0().$index(0, t2.get$first(t1));
- if (type != null) {
- t1 = _this.$this.toString$0(0);
- t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), type.charCodeAt(0)) ? "an " + type : "a " + type;
- t3 = B.Map_397RH.$index(0, type);
- t3.toString;
- t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ").";
- t2 = _this.name;
- return new A.SassScriptException0(t2 == null ? t3 : "$" + t2 + ": " + t3);
- }
- }
- t3 = _this.newDenominators;
- unit = A.pluralize0("unit", t2.get$length(t1) + J.get$length$asx(t3), null);
- t2 = _this.$this;
- t3 = "Expected " + t2.toString$0(0) + " to have " + unit + " " + t2._number1$_unitString$2(t1, t3) + ".";
- t1 = _this.name;
- return new A.SassScriptException0(t1 == null ? t3 : "$" + t1 + ": " + t3);
- }
- },
- $signature: 524
- };
- A.SassNumber__coerceOrConvertValue_closure3.prototype = {
- call$1(oldNumerator) {
- var factor = A.conversionFactor0(this.newNumerator, oldNumerator);
- if (factor == null)
- return false;
- this._box_0.value *= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber__coerceOrConvertValue_closure4.prototype = {
- call$0() {
- return A.throwExpression(this.compatibilityException.call$0());
- },
- $signature: 0
- };
- A.SassNumber__coerceOrConvertValue_closure5.prototype = {
- call$1(oldDenominator) {
- var factor = A.conversionFactor0(this.newDenominator, oldDenominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber__coerceOrConvertValue_closure6.prototype = {
- call$0() {
- return A.throwExpression(this.compatibilityException.call$0());
- },
- $signature: 0
- };
- A.SassNumber_plus_closure0.prototype = {
- call$2(num1, num2) {
- return num1 + num2;
- },
- $signature: 56
- };
- A.SassNumber_minus_closure0.prototype = {
- call$2(num1, num2) {
- return num1 - num2;
- },
- $signature: 56
- };
- A.SassNumber_multiplyUnits_closure3.prototype = {
- call$1(denominator) {
- var factor = A.conversionFactor0(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber_multiplyUnits_closure4.prototype = {
- call$0() {
- return this.newNumerators.push(this.numerator);
- },
- $signature: 0
- };
- A.SassNumber_multiplyUnits_closure5.prototype = {
- call$1(denominator) {
- var factor = A.conversionFactor0(this.numerator, denominator);
- if (factor == null)
- return false;
- this._box_0.value /= factor;
- return true;
- },
- $signature: 4
- };
- A.SassNumber_multiplyUnits_closure6.prototype = {
- call$0() {
- return this.newNumerators.push(this.numerator);
- },
- $signature: 0
- };
- A.SassNumber__areAnyConvertible_closure0.prototype = {
- call$1(unit1) {
- var t1,
- _0_0 = B.Map_gQqJO.$index(0, unit1);
- $label0$0: {
- if (_0_0 != null) {
- t1 = B.JSArray_methods.any$1(this.units2, _0_0.get$containsKey());
- break $label0$0;
- }
- t1 = B.JSArray_methods.contains$1(this.units2, unit1);
- break $label0$0;
- }
- return t1;
- },
- $signature: 4
- };
- A.SassNumber__canonicalizeUnitList_closure0.prototype = {
- call$1(unit) {
- var t1,
- type = $.$get$_typesByUnit0().$index(0, unit);
- if (type == null)
- t1 = unit;
- else {
- t1 = B.Map_397RH.$index(0, type);
- t1.toString;
- t1 = B.JSArray_methods.get$first(t1);
- }
- return t1;
- },
- $signature: 5
- };
- A.SassNumber__canonicalMultiplier_closure0.prototype = {
- call$2(multiplier, unit) {
- return multiplier * this.$this.canonicalMultiplierForUnit$1(unit);
- },
- $signature: 160
- };
- A.SassNumber_unitSuggestion_closure1.prototype = {
- call$1(unit) {
- return " * 1" + unit;
- },
- $signature: 5
- };
- A.SassNumber_unitSuggestion_closure2.prototype = {
- call$1(unit) {
- return " / 1" + unit;
- },
- $signature: 5
- };
- A.SupportsOperation0.prototype = {
- toString$0(_) {
- var _this = this;
- return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right);
- },
- _operation0$_parenthesize$1(condition) {
- var t1;
- if (!(condition instanceof A.SupportsNegation0))
- t1 = condition instanceof A.SupportsOperation0 && condition.operator === this.operator;
- else
- t1 = true;
- return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ParentSelector0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitParentSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1(compound) {
- return A.throwExpression(A.UnsupportedError$("& doesn't support unification."));
- }
- };
- A.ParentStatement0.prototype = {$isAstNode0: 1, $isStatement0: 1};
- A.ParentStatement_closure0.prototype = {
- call$1(child) {
- var t1;
- $label0$0: {
- if (child instanceof A.VariableDeclaration0 || child instanceof A.FunctionRule0 || child instanceof A.MixinRule0) {
- t1 = true;
- break $label0$0;
- }
- if (child instanceof A.ImportRule0) {
- t1 = B.JSArray_methods.any$1(child.imports, new A.ParentStatement__closure0());
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $signature: 247
- };
- A.ParentStatement__closure0.prototype = {
- call$1($import) {
- return $import instanceof A.DynamicImport0;
- },
- $signature: 245
- };
- A.ParenthesizedExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitParenthesizedExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "(" + this.expression.toString$0(0) + ")";
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.Parser1.prototype = {
- _parser0$_parseIdentifier$0() {
- return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure0(this));
- },
- whitespace$0() {
- do
- this.whitespaceWithoutComments$0();
- while (this.scanComment$0());
- },
- whitespaceWithoutComments$0() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- spaces$0() {
- var t3,
- t1 = this.scanner,
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = t3 === 32 || t3 === 9;
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- },
- scanComment$0() {
- var _0_0,
- t1 = this.scanner;
- if (t1.peekChar$0() !== 47)
- return false;
- _0_0 = t1.peekChar$1(1);
- if (47 === _0_0)
- return this.silentComment$0();
- if (42 === _0_0) {
- this.loudComment$0();
- return true;
- }
- return false;
- },
- expectWhitespace$0() {
- var t2, t3,
- t1 = this.scanner;
- if (t1._string_scanner$_position !== t1.string.length) {
- t2 = t1.peekChar$0();
- t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0());
- t2 = t3;
- } else
- t2 = true;
- if (t2)
- t1.error$1(0, "Expected whitespace.");
- this.whitespace$0();
- },
- silentComment$0() {
- var t2, t3,
- t1 = this.scanner;
- t1.expect$1("//");
- t2 = t1.string.length;
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.peekChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- t1.readChar$0();
- }
- return true;
- },
- loudComment$0() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- if (t1.readChar$0() !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- identifier$2$normalize$unit(normalize, unit) {
- var t2, _0_0, _this = this,
- _s20_ = "Expected identifier.",
- text = new A.StringBuffer(""),
- t1 = _this.scanner;
- if (t1.scanChar$1(45)) {
- t2 = text._contents = "" + A.Primitives_stringFromCharCode(45);
- if (t1.scanChar$1(45)) {
- text._contents = t2 + A.Primitives_stringFromCharCode(45);
- _this._parser0$_identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- }
- } else
- t2 = "";
- $label0$0: {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- t1.error$1(0, _s20_);
- if (95 === _0_0 && normalize) {
- t1.readChar$0();
- text._contents = t2 + A.Primitives_stringFromCharCode(45);
- break $label0$0;
- }
- if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128) {
- text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0());
- break $label0$0;
- }
- if (92 === _0_0) {
- text._contents = t2 + _this.escape$1$identifierStart(true);
- break $label0$0;
- }
- t1.error$1(0, _s20_);
- }
- _this._parser0$_identifierBody$3$normalize$unit(text, normalize, unit);
- t1 = text._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- identifier$0() {
- return this.identifier$2$normalize$unit(false, false);
- },
- identifier$1$normalize(normalize) {
- return this.identifier$2$normalize$unit(normalize, false);
- },
- identifier$1$unit(unit) {
- return this.identifier$2$normalize$unit(false, unit);
- },
- _parser0$_identifierBody$3$normalize$unit(text, normalize, unit) {
- var t1, _1_0, _0_0, t2;
- for (t1 = this.scanner; true;) {
- _1_0 = t1.peekChar$0();
- if (_1_0 == null)
- break;
- if (45 === _1_0 && unit) {
- _0_0 = t1.peekChar$1(1);
- if (46 !== _0_0)
- t2 = A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57;
- else
- t2 = true;
- if (t2)
- break;
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- text._contents += t2;
- continue;
- }
- if (95 === _1_0 && normalize) {
- t1.readChar$0();
- t2 = A.Primitives_stringFromCharCode(45);
- text._contents += t2;
- continue;
- }
- if (_1_0 !== 95) {
- if (!(_1_0 >= 97 && _1_0 <= 122))
- t2 = _1_0 >= 65 && _1_0 <= 90;
- else
- t2 = true;
- t2 = t2 || _1_0 >= 128;
- } else
- t2 = true;
- if (!t2)
- t2 = _1_0 >= 48 && _1_0 <= 57 || _1_0 === 45;
- else
- t2 = true;
- if (t2) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- text._contents += t2;
- continue;
- }
- if (92 === _1_0) {
- t2 = this.escape$0();
- text._contents += t2;
- continue;
- }
- break;
- }
- },
- _parser0$_identifierBody$1(text) {
- return this._parser0$_identifierBody$3$normalize$unit(text, false, false);
- },
- string$0() {
- var buffer, _0_0, t2,
- t1 = this.scanner,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34)
- t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1);
- buffer = new A.StringBuffer("");
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 === quote) {
- t1.readChar$0();
- break;
- }
- if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)
- t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
- if (92 === _0_0) {
- t2 = t1.peekChar$1(1);
- if (t2 === 10 || t2 === 13 || t2 === 12) {
- t1.readChar$0();
- t1.readChar$0();
- } else {
- t2 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1));
- buffer._contents += t2;
- }
- continue;
- }
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t2;
- }
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- declarationValue$1$allowEmpty(allowEmpty) {
- var t1, t2, wroteNewline, next, t3, start, end, _0_0, _this = this,
- buffer = new A.StringBuffer(""),
- brackets = A._setArrayType([], type$.JSArray_int);
- for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
- next = t1.peekChar$0();
- if (next == null)
- break;
- if (92 === next) {
- t3 = _this.escape$1$identifierStart(true);
- buffer._contents += t3;
- wroteNewline = false;
- continue;
- }
- if (34 === next || 39 === next) {
- start = t1._string_scanner$_position;
- t2.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
- wroteNewline = false;
- continue;
- }
- if (47 === next) {
- if (t1.peekChar$1(1) === 42) {
- t3 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t3.call$0();
- end = t1._string_scanner$_position;
- buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
- } else {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- }
- wroteNewline = false;
- continue;
- }
- if (32 === next || 9 === next) {
- if (!wroteNewline) {
- t3 = t1.peekChar$1(1);
- t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = true;
- if (t3) {
- t3 = A.Primitives_stringFromCharCode(32);
- buffer._contents += t3;
- }
- t1.readChar$0();
- continue;
- }
- if (10 === next || 13 === next || 12 === next) {
- t3 = t1.peekChar$1(-1);
- if (!(t3 === 10 || t3 === 13 || t3 === 12))
- buffer._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- continue;
- }
- if (40 === next || 123 === next || 91 === next) {
- t3 = A.Primitives_stringFromCharCode(next);
- buffer._contents += t3;
- brackets.push(A.opposite0(t1.readChar$0()));
- wroteNewline = false;
- continue;
- }
- if (41 === next || 125 === next || 93 === next) {
- if (brackets.length === 0)
- break;
- t3 = A.Primitives_stringFromCharCode(next);
- buffer._contents += t3;
- t1.expectChar$1(brackets.pop());
- wroteNewline = false;
- continue;
- }
- if (59 === next) {
- if (brackets.length === 0)
- break;
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- continue;
- }
- if (117 === next || 85 === next) {
- _0_0 = _this.tryUrl$0();
- if (_0_0 != null)
- buffer._contents += _0_0;
- else {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- }
- wroteNewline = false;
- continue;
- }
- if (_this.lookingAtIdentifier$0()) {
- t3 = _this.identifier$0();
- buffer._contents += t3;
- } else {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t3;
- }
- wroteNewline = false;
- }
- if (brackets.length !== 0)
- t1.expectChar$1(B.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._contents.length === 0)
- t1.error$1(0, "Expected token.");
- t1 = buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- declarationValue$0() {
- return this.declarationValue$1$allowEmpty(false);
- },
- tryUrl$0() {
- var buffer, _0_0, t2, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (!_this.scanIdentifier$1("url"))
- return null;
- if (!t1.scanChar$1(40)) {
- t1.set$state(start);
- return null;
- }
- _this.whitespace$0();
- buffer = new A.StringBuffer("");
- buffer._contents = "" + "url(";
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- break;
- if (92 === _0_0) {
- t2 = _this.escape$0();
- buffer._contents += t2;
- continue;
- }
- if (37 !== _0_0)
- if (38 !== _0_0)
- if (35 !== _0_0)
- t2 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128;
- else
- t2 = true;
- else
- t2 = true;
- else
- t2 = true;
- if (t2) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents += t2;
- continue;
- }
- if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) {
- _this.whitespace$0();
- if (t1.peekChar$0() !== 41)
- break;
- continue;
- }
- if (41 === _0_0) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2 = buffer._contents += t2;
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- break;
- }
- t1.set$state(start);
- return null;
- },
- variableName$0() {
- this.scanner.expectChar$1(36);
- return this.identifier$1$normalize(true);
- },
- escape$1$identifierStart(identifierStart) {
- var value, _0_0, i, next, t2, exception,
- _s25_ = "Expected escape sequence.",
- t1 = this.scanner,
- start = t1._string_scanner$_position;
- t1.expectChar$1(92);
- value = 0;
- $label0$1: {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- t1.error$1(0, _s25_);
- if (_0_0 === 10 || _0_0 === 13 || _0_0 === 12)
- t1.error$1(0, _s25_);
- if (A.CharacterExtension_get_isHex0(_0_0)) {
- for (i = 0; i < 6; ++i) {
- next = t1.peekChar$0();
- if (next != null) {
- if (!(next >= 48 && next <= 57))
- if (!(next >= 97 && next <= 102))
- t2 = next >= 65 && next <= 70;
- else
- t2 = true;
- else
- t2 = true;
- t2 = !t2;
- } else
- t2 = true;
- if (t2)
- break;
- value *= 16;
- value += A.asHex0(t1.readChar$0());
- }
- this.scanCharIf$1(new A.Parser_escape_closure0());
- break $label0$1;
- }
- value = t1.readChar$0();
- }
- if (identifierStart) {
- t2 = value;
- t2 = t2 === 95 || A.CharacterExtension_get_isAlphabetic0(t2) || t2 >= 128;
- } else {
- t2 = value;
- if (!(t2 === 95 || A.CharacterExtension_get_isAlphabetic0(t2) || t2 >= 128))
- t2 = t2 >= 48 && t2 <= 57 || t2 === 45;
- else
- t2 = true;
- }
- if (t2)
- try {
- t2 = A.Primitives_stringFromCharCode(value);
- return t2;
- } catch (exception) {
- if (type$.RangeError._is(A.unwrapException(exception)))
- t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
- else
- throw exception;
- }
- else {
- if (!(value <= 31))
- if (!J.$eq$(value, 127))
- if (identifierStart) {
- t1 = value;
- t1 = t1 >= 48 && t1 <= 57;
- } else
- t1 = false;
- else
- t1 = true;
- else
- t1 = true;
- if (t1) {
- t1 = "" + A.Primitives_stringFromCharCode(92);
- if (value > 15)
- t1 += A.Primitives_stringFromCharCode(A.hexCharFor0(B.JSNumber_methods._shrOtherPositive$1(value, 4)));
- t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor0(value & 15)) + A.Primitives_stringFromCharCode(32);
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else
- return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null);
- }
- },
- escape$0() {
- return this.escape$1$identifierStart(false);
- },
- scanCharIf$1(condition) {
- var t1 = this.scanner;
- if (!condition.call$1(t1.peekChar$0()))
- return false;
- t1.readChar$0();
- return true;
- },
- scanIdentChar$2$caseSensitive(char, caseSensitive) {
- var t3,
- t1 = new A.Parser_scanIdentChar_matches0(caseSensitive, char),
- t2 = this.scanner,
- _0_0 = t2.peekChar$0();
- if (_0_0 != null) {
- t3 = t1.call$1(_0_0);
- t3 = t3;
- } else
- t3 = false;
- if (t3) {
- t2.readChar$0();
- return true;
- }
- if (92 === _0_0) {
- t3 = t2._string_scanner$_position;
- if (t1.call$1(A.consumeEscapedCharacter0(t2)))
- return true;
- t2.set$state(new A._SpanScannerState(t2, t3));
- }
- return false;
- },
- scanIdentChar$1(char) {
- return this.scanIdentChar$2$caseSensitive(char, false);
- },
- expectIdentChar$1(letter) {
- var t1;
- if (this.scanIdentChar$2$caseSensitive(letter, false))
- return;
- t1 = this.scanner;
- t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
- },
- lookingAtIdentifier$1($forward) {
- var t1, _1_0, t2, _0_0;
- if ($forward == null)
- $forward = 0;
- t1 = this.scanner;
- _1_0 = t1.peekChar$1($forward);
- $label0$0: {
- if (A._isInt(_1_0))
- t2 = _1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128;
- else
- t2 = false;
- if (t2 || 92 === _1_0) {
- t1 = true;
- break $label0$0;
- }
- if (45 === _1_0) {
- _0_0 = t1.peekChar$1($forward + 1);
- $label1$1: {
- if (A._isInt(_0_0))
- t1 = _0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128;
- else
- t1 = false;
- t1 = t1 || 92 === _0_0 || 45 === _0_0;
- if (t1)
- break $label1$1;
- break $label1$1;
- }
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- lookingAtIdentifier$0() {
- return this.lookingAtIdentifier$1(null);
- },
- lookingAtIdentifierBody$0() {
- var t1,
- next = this.scanner.peekChar$0();
- if (next != null) {
- if (!(next === 95 || A.CharacterExtension_get_isAlphabetic0(next) || next >= 128))
- t1 = next >= 48 && next <= 57 || next === 45;
- else
- t1 = true;
- t1 = t1 || next === 92;
- } else
- t1 = false;
- return t1;
- },
- scanIdentifier$2$caseSensitive(text, caseSensitive) {
- var t1, t2, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- if (_this._parser0$_consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0())
- return true;
- else {
- t1.set$state(new A._SpanScannerState(t1, t2));
- return false;
- }
- },
- scanIdentifier$1(text) {
- return this.scanIdentifier$2$caseSensitive(text, false);
- },
- _parser0$_consumeIdentifier$2(text, caseSensitive) {
- var t1, t2, t3;
- for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
- t3 = t1.__internal$_current;
- if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive))
- return false;
- }
- return true;
- },
- expectIdentifier$2$name(text, $name) {
- var t1, start, t2, t3, t4, t5, t6;
- if ($name == null)
- $name = '"' + text + '"';
- t1 = this.scanner;
- start = t1._string_scanner$_position;
- for (t2 = new A.CodeUnits(text), t3 = type$.CodeUnits, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = "Expected " + $name, t5 = t4 + ".", t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
- t6 = t2.__internal$_current;
- if (this.scanIdentChar$2$caseSensitive(t6 == null ? t3._as(t6) : t6, false))
- continue;
- t1.error$2$position(0, t5, start);
- }
- if (!this.lookingAtIdentifierBody$0())
- return;
- t1.error$2$position(0, t4, start);
- },
- expectIdentifier$1(text) {
- return this.expectIdentifier$2$name(text, null);
- },
- rawText$1(consumer) {
- var t1 = this.scanner,
- start = t1._string_scanner$_position;
- consumer.call$0();
- return t1.substring$1(0, start);
- },
- spanFrom$1(state) {
- var span = this.scanner.spanFrom$1(state);
- return this._parser0$_interpolationMap == null ? span : new A.LazyFileSpan0(new A.Parser_spanFrom_closure0(this, span));
- },
- error$3(_, message, span, trace) {
- var exception = new A.StringScannerException(this.scanner.string, message, span);
- if (trace == null)
- throw A.wrapException(exception);
- else
- A.throwWithTrace0(exception, this.get$error(this), trace);
- },
- error$2(_, message, span) {
- return this.error$3(0, message, span, null);
- },
- withErrorMessage$1$2(message, callback) {
- var error, stackTrace, t1, exception;
- try {
- t1 = callback.call$0();
- return t1;
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t1)) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- t1 = J.get$span$z(error);
- A.throwWithTrace0(new A.SourceSpanFormatException(error.get$source(), message, t1), error, stackTrace);
- } else
- throw exception;
- }
- },
- withErrorMessage$2(message, callback) {
- return this.withErrorMessage$1$2(message, callback, type$.dynamic);
- },
- wrapSpanFormatException$1$1(callback) {
- var error, stackTrace, map, error0, stackTrace0, span, error1, stackTrace1, span0, secondarySpans, t1, t2, span1, description, _0_0, t3, exception, t4, _this = this,
- _s8_ = "expected";
- try {
- try {
- t3 = callback.call$0();
- return t3;
- } catch (exception) {
- t3 = A.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t3)) {
- error = t3;
- stackTrace = A.getTraceFromException(exception);
- map = _this._parser0$_interpolationMap;
- if (map == null)
- throw exception;
- A.throwWithTrace0(map.mapException$1(error), error, stackTrace);
- } else
- throw exception;
- }
- } catch (exception) {
- t3 = A.unwrapException(exception);
- if (type$.SourceSpanFormatException._is(t3)) {
- error0 = t3;
- stackTrace0 = A.getTraceFromException(exception);
- span = J.get$span$z(error0);
- if (A.startsWithIgnoreCase0(error0._span_exception$_message, _s8_))
- span = _this._parser0$_adjustExceptionSpan$1(span);
- t1 = error0._span_exception$_message;
- t2 = span;
- A.throwWithTrace0(new A.SassFormatException0(B.Set_empty, t1, t2), error0, stackTrace0);
- } else if (type$.MultiSourceSpanFormatException._is(t3)) {
- error1 = t3;
- stackTrace1 = A.getTraceFromException(exception);
- span0 = J.get$span$z(error1);
- t3 = type$.FileSpan;
- t4 = type$.String;
- secondarySpans = error1.get$secondarySpans().cast$2$0(0, t3, t4);
- if (A.startsWithIgnoreCase0(error1._span_exception$_message, _s8_)) {
- span0 = _this._parser0$_adjustExceptionSpan$1(span0);
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
- for (t3 = A.MapExtensions_get_pairs0(secondarySpans, t3, t4), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
- t2 = t3.get$current(t3);
- span1 = null;
- description = null;
- _0_0 = t2;
- span1 = _0_0._0;
- description = _0_0._1;
- J.$indexSet$ax(t1, _this._parser0$_adjustExceptionSpan$1(span1), description);
- }
- secondarySpans = t1;
- }
- A.throwWithTrace0(A.MultiSpanSassFormatException$0(error1._span_exception$_message, span0, error1.get$primaryLabel(), secondarySpans, null), error1, stackTrace1);
- } else
- throw exception;
- }
- },
- wrapSpanFormatException$1(callback) {
- return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
- },
- _parser0$_adjustExceptionSpan$1(span) {
- var start, t1;
- if (span.get$length(span) > 0)
- return span;
- start = this._parser0$_firstNewlineBefore$1(span.get$start(span));
- if (start.$eq(0, span.get$start(span)))
- t1 = span;
- else {
- t1 = start.offset;
- t1 = A._FileSpan$(start.file, t1, t1);
- }
- return t1;
- },
- _parser0$_firstNewlineBefore$1($location) {
- var lastNewline, codeUnit,
- t1 = $location.file,
- t2 = $location.offset,
- text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, 0, t2), 0, null),
- index = t2 - 1;
- for (lastNewline = null; index >= 0;) {
- codeUnit = text.charCodeAt(index);
- if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) {
- if (lastNewline == null)
- t1 = $location;
- else {
- t2 = new A.FileLocation(t1, lastNewline);
- t2.FileLocation$_$2(t1, lastNewline);
- t1 = t2;
- }
- return t1;
- }
- if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
- lastNewline = index;
- --index;
- }
- return $location;
- }
- };
- A.Parser__parseIdentifier_closure0.prototype = {
- call$0() {
- var t1 = this.$this,
- result = t1.identifier$0();
- t1.scanner.expectDone$0();
- return result;
- },
- $signature: 26
- };
- A.Parser_escape_closure0.prototype = {
- call$1(char) {
- return char === 32 || char === 9 || char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A.Parser_scanIdentChar_matches0.prototype = {
- call$1(actual) {
- var t1 = this.char;
- return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase0(t1, actual);
- },
- $signature: 45
- };
- A.Parser_spanFrom_closure0.prototype = {
- call$0() {
- return this.$this._parser0$_interpolationMap.mapSpan$1(this.span);
- },
- $signature: 27
- };
- A.PlaceholderSelector0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitPlaceholderSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- return new A.PlaceholderSelector0(this.name + suffix, this.span);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.PlaceholderSelector0 && other.name === this.name;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- }
- };
- A.PlainCssCallable0.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.PlainCssCallable0 && this.name === other.name;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name);
- },
- $isAsyncCallable0: 1,
- $isCallable: 1,
- get$name(receiver) {
- return this.name;
- }
- };
- A.PrefixedMapView0.prototype = {
- get$keys(_) {
- return new A._PrefixedKeys0(this);
- },
- get$length(_) {
- var t1 = this._prefixed_map_view0$_map;
- return t1.get$length(t1);
- },
- get$isEmpty(_) {
- var t1 = this._prefixed_map_view0$_map;
- return t1.get$isEmpty(t1);
- },
- get$isNotEmpty(_) {
- var t1 = this._prefixed_map_view0$_map;
- return t1.get$isNotEmpty(t1);
- },
- $index(_, key) {
- return typeof key == "string" && B.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;
- },
- containsKey$1(key) {
- return typeof key == "string" && B.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));
- }
- };
- A._PrefixedKeys0.prototype = {
- get$length(_) {
- var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
- return t1.get$length(t1);
- },
- get$iterator(_) {
- var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
- t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure0(this), type$.String);
- return t1.get$iterator(t1);
- },
- contains$1(_, key) {
- return this._prefixed_map_view0$_view.containsKey$1(key);
- }
- };
- A._PrefixedKeys_iterator_closure0.prototype = {
- call$1(key) {
- return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + key;
- },
- $signature: 5
- };
- A.PseudoSelector0.prototype = {
- get$isHostContext() {
- return this.isClass && this.name === "host-context" && this.selector != null;
- },
- get$hasComplicatedSuperselectorSemantics() {
- return !this.isClass || this.selector != null;
- },
- get$specificity() {
- var result, _this = this,
- value = _this._pseudo$__PseudoSelector_specificity_FI;
- if (value === $) {
- result = new A.PseudoSelector_specificity_closure0(_this).call$0();
- _this._pseudo$__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
- _this._pseudo$__PseudoSelector_specificity_FI = result;
- value = result;
- }
- return value;
- },
- withSelector$1(selector) {
- var _this = this;
- return A.PseudoSelector$0(_this.name, _this.span, _this.argument, !_this.isClass, selector);
- },
- addSuffix$1(suffix) {
- var _this = this;
- if (_this.argument != null || _this.selector != null)
- _this.super$SimpleSelector$addSuffix0(suffix);
- return A.PseudoSelector$0(_this.name + suffix, _this.span, null, !_this.isClass, null);
- },
- unify$1(compound) {
- var other, result, t2, addedThis, _i, simple, _this = this,
- t1 = _this.name;
- if (t1 === "host" || t1 === "host-context") {
- if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure0()))
- return null;
- } else {
- if (compound.length === 1) {
- other = compound[0];
- if (!(other instanceof A.UniversalSelector0))
- if (other instanceof A.PseudoSelector0)
- t1 = other.isClass && other.name === "host" || other.get$isHostContext();
- else
- t1 = false;
- else
- t1 = true;
- } else {
- other = null;
- t1 = false;
- }
- if (t1)
- return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2));
- }
- if (B.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = A._setArrayType([], type$.JSArray_SimpleSelector_2);
- for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (simple instanceof A.PseudoSelector0 && !simple.isClass) {
- if (t2)
- return null;
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- },
- isSuperselector$1(other) {
- var selector, t1, t2, _this = this;
- if (_this.super$SimpleSelector$isSuperselector0(other))
- return true;
- selector = _this.selector;
- if (selector == null)
- return _this.$eq(0, other);
- if (other instanceof A.PseudoSelector0 && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) {
- t1 = A.NullableExtension_andThen0(other.selector, selector.get$isSuperselector());
- return t1 == null ? false : t1;
- }
- t1 = type$.JSArray_SimpleSelector_2;
- t2 = _this.span;
- return A.compoundIsSuperselector0(A.CompoundSelector$0(A._setArrayType([_this], t1), t2), A.CompoundSelector$0(A._setArrayType([other], t1), t2), null);
- },
- accept$1$1(visitor) {
- return visitor.visitPseudoSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- $eq(_, other) {
- var _this = this;
- if (other == null)
- return false;
- return other instanceof A.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
- },
- get$hashCode(_) {
- var _this = this,
- t1 = B.JSString_methods.get$hashCode(_this.name),
- t2 = !_this.isClass ? 519018 : 218159;
- return t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector);
- }
- };
- A.PseudoSelector_specificity_closure0.prototype = {
- call$0() {
- var selector, t2,
- t1 = this.$this;
- if (!t1.isClass)
- return 1;
- selector = t1.selector;
- if (selector == null)
- return A.SimpleSelector0.prototype.get$specificity.call(t1);
- switch (t1.normalizedName) {
- case "where":
- return 0;
- case "is":
- case "not":
- case "has":
- case "matches":
- t1 = selector.components;
- return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")));
- case "nth-child":
- case "nth-last-child":
- t1 = A.SimpleSelector0.prototype.get$specificity.call(t1);
- t2 = selector.components;
- return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>")));
- default:
- return A.SimpleSelector0.prototype.get$specificity.call(t1);
- }
- },
- $signature: 10
- };
- A.PseudoSelector_specificity__closure1.prototype = {
- call$1(component) {
- return component.get$specificity();
- },
- $signature: 205
- };
- A.PseudoSelector_specificity__closure2.prototype = {
- call$1(component) {
- return component.get$specificity();
- },
- $signature: 205
- };
- A.PseudoSelector_unify_closure0.prototype = {
- call$1(simple) {
- var t1;
- if (simple instanceof A.PseudoSelector0)
- t1 = simple.isClass && simple.name === "host" || simple.selector != null;
- else
- t1 = false;
- return t1;
- },
- $signature: 14
- };
- A.PublicMemberMapView0.prototype = {
- get$keys(_) {
- var t1 = this._public_member_map_view0$_inner;
- return J.where$1$ax(t1.get$keys(t1), A.utils0__isPublic$closure());
- },
- containsKey$1(key) {
- return typeof key == "string" && A.isPublic0(key) && this._public_member_map_view0$_inner.containsKey$1(key);
- },
- $index(_, key) {
- if (typeof key == "string" && A.isPublic0(key))
- return this._public_member_map_view0$_inner.$index(0, key);
- return null;
- }
- };
- A.QualifiedName0.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.QualifiedName0 && other.name === this.name && other.namespace == this.namespace;
- },
- get$hashCode(_) {
- return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
- },
- toString$0(_) {
- var t1 = this.namespace,
- t2 = this.name;
- return t1 == null ? t2 : t1 + "|" + t2;
- }
- };
- A.JSClass0.prototype = {};
- A.JSClassExtension_setCustomInspect_closure.prototype = {
- call$4($self, _, __, ___) {
- return this.inspect.call$1($self);
- },
- call$3($self, _, __) {
- return this.call$4($self, _, __, null);
- },
- "call*": "call$4",
- $requiredArgCount: 3,
- $defaultValues() {
- return [null];
- },
- $signature: 526
- };
- A.JSClassExtension_get_defineStaticMethod_closure.prototype = {
- call$2($name, body) {
- this._this[$name] = A.allowInteropNamed($name, body);
- return null;
- },
- $signature: 129
- };
- A.JSClassExtension_get_defineMethod_closure.prototype = {
- call$2($name, body) {
- J.get$$prototype$x(this._this)[$name] = A.allowInteropCaptureThisNamed($name, body);
- return null;
- },
- $signature: 129
- };
- A.JSClassExtension_get_defineGetter_closure.prototype = {
- call$2($name, body) {
- A.defineGetter(J.get$$prototype$x(this._this), $name, body, null);
- return null;
- },
- $signature: 129
- };
- A.RenderContext0.prototype = {};
- A.RenderContextOptions0.prototype = {};
- A.RenderContextResult0.prototype = {};
- A.RenderContextResultStats0.prototype = {};
- A.RenderOptions.prototype = {};
- A.RenderResult.prototype = {};
- A.RenderResultStats.prototype = {};
- A.ReplaceExpressionVisitor0.prototype = {
- visitBinaryOperationExpression$1(node) {
- return new A.BinaryOperationExpression0(node.operator, node.left.accept$1(this), node.right.accept$1(this), false);
- },
- visitBooleanExpression$1(node) {
- return node;
- },
- visitColorExpression$1(node) {
- return node;
- },
- visitFunctionExpression$1(node) {
- var t1 = node.originalName,
- t2 = this.visitArgumentInvocation$1(node.$arguments);
- return new A.FunctionExpression0(node.namespace, A.stringReplaceAllUnchecked(t1, "_", "-"), t1, t2, node.span);
- },
- visitInterpolatedFunctionExpression$1(node) {
- return new A.InterpolatedFunctionExpression0(this.visitInterpolation$1(node.name), this.visitArgumentInvocation$1(node.$arguments), node.span);
- },
- visitIfExpression$1(node) {
- return new A.IfExpression0(this.visitArgumentInvocation$1(node.$arguments), node.span);
- },
- visitListExpression$1(node) {
- var t1 = node.contents;
- return new A.ListExpression0(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitListExpression_closure0(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression0>")), type$.Expression_2), node.separator, node.hasBrackets, node.span);
- },
- visitMapExpression$1(node) {
- var t2, t3, _i, t4, key, value,
- t1 = A._setArrayType([], type$.JSArray_Record_2_Expression_and_Expression_2);
- for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
- t4 = t2[_i];
- key = t4._0;
- value = t4._1;
- t1.push(new A._Record_2(key.accept$1(this), value.accept$1(this)));
- }
- return new A.MapExpression0(A.List_List$unmodifiable(t1, type$.Record_2_Expression_and_Expression_2), node.span);
- },
- visitNullExpression$1(node) {
- return node;
- },
- visitNumberExpression$1(node) {
- return node;
- },
- visitParenthesizedExpression$1(node) {
- return new A.ParenthesizedExpression0(node.expression.accept$1(this), node.span);
- },
- visitSelectorExpression$1(node) {
- return node;
- },
- visitStringExpression$1(node) {
- return new A.StringExpression0(this.visitInterpolation$1(node.text), node.hasQuotes);
- },
- visitSupportsExpression$1(node) {
- return new A.SupportsExpression0(this.visitSupportsCondition$1(node.condition));
- },
- visitUnaryOperationExpression$1(node) {
- return new A.UnaryOperationExpression0(node.operator, node.operand.accept$1(this), node.span);
- },
- visitValueExpression$1(node) {
- return node;
- },
- visitVariableExpression$1(node) {
- return node;
- },
- visitArgumentInvocation$1(invocation) {
- var t5, t6, _this = this,
- t1 = invocation.positional,
- t2 = type$.String,
- t3 = type$.Expression_2,
- t4 = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
- for (t5 = A.MapExtensions_get_pairs0(invocation.named, t2, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
- t6 = t5.get$current(t5);
- t4.$indexSet(0, t6._0, t6._1.accept$1(_this));
- }
- t5 = invocation.rest;
- t5 = t5 == null ? null : t5.accept$1(_this);
- t6 = invocation.keywordRest;
- t6 = t6 == null ? null : t6.accept$1(_this);
- return new A.ArgumentInvocation0(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitArgumentInvocation_closure0(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression0>")), t3), A.ConstantMap_ConstantMap$from(t4, t2, t3), t5, t6, invocation.span);
- },
- visitSupportsCondition$1(condition) {
- var _this = this;
- if (condition instanceof A.SupportsOperation0)
- return A.SupportsOperation$0(_this.visitSupportsCondition$1(condition.left), _this.visitSupportsCondition$1(condition.right), condition.operator, condition.span);
- else if (condition instanceof A.SupportsNegation0)
- return new A.SupportsNegation0(_this.visitSupportsCondition$1(condition.condition), condition.span);
- else if (condition instanceof A.SupportsInterpolation0)
- return new A.SupportsInterpolation0(condition.expression.accept$1(_this), condition.span);
- else if (condition instanceof A.SupportsDeclaration0)
- return new A.SupportsDeclaration0(condition.name.accept$1(_this), condition.value.accept$1(_this), condition.span);
- else
- throw A.wrapException(A.SassException$0("BUG: Unknown SupportsCondition " + condition.toString$0(0) + ".", condition.get$span(condition), null));
- },
- visitInterpolation$1(interpolation) {
- var t1 = interpolation.contents;
- return A.Interpolation$0(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitInterpolation_closure0(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")), interpolation.span);
- }
- };
- A.ReplaceExpressionVisitor_visitListExpression_closure0.prototype = {
- call$1(item) {
- return item.accept$1(this.$this);
- },
- $signature: 204
- };
- A.ReplaceExpressionVisitor_visitArgumentInvocation_closure0.prototype = {
- call$1(expression) {
- return expression.accept$1(this.$this);
- },
- $signature: 204
- };
- A.ReplaceExpressionVisitor_visitInterpolation_closure0.prototype = {
- call$1(node) {
- return type$.Expression_2._is(node) ? node.accept$1(this.$this) : node;
- },
- $signature: 67
- };
- A.ImporterResult0.prototype = {
- get$sourceMapUrl(_) {
- var t1 = this._result$_sourceMapUrl;
- return t1 == null ? A.Uri_Uri$dataFromString(this.contents, B.C_Utf8Codec, null) : t1;
- }
- };
- A.ReturnRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitReturnRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@return " + this.expression.toString$0(0) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SassParser0.prototype = {
- get$currentIndentation() {
- return this._sass0$_currentIndentation;
- },
- get$indented() {
- return true;
- },
- styleRuleSelector$0() {
- var t4,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object));
- do {
- buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
- t4 = A.Primitives_stringFromCharCode(10);
- t4 = t3._contents += t4;
- } while (B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(new A.SassParser_styleRuleSelector_closure0()));
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- expectStatementSeparator$1($name) {
- var t1, _this = this;
- if (!_this.atEndOfStatement$0())
- _this._sass0$_expectNewline$0();
- if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation)
- return;
- t1 = $name == null ? "here" : "beneath a " + $name;
- _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._sass0$_nextIndentationEnd.position);
- },
- expectStatementSeparator$0() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0() {
- var t1 = this.scanner.peekChar$0();
- if (t1 == null)
- t1 = null;
- else
- t1 = t1 === 10 || t1 === 13 || t1 === 12;
- return t1 !== false;
- },
- lookingAtChildren$0() {
- return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation;
- },
- importArgument$0() {
- var url, span, innerError, stackTrace, t1, _0_0, start, next, t2, exception, _this = this;
- $label0$0: {
- t1 = _this.scanner;
- _0_0 = t1.peekChar$0();
- if (117 === _0_0 || 85 === _0_0) {
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this.scanIdentifier$1("url"))
- if (t1.scanChar$1(40)) {
- t1.set$state(start);
- return _this.super$StylesheetParser$importArgument0();
- } else
- t1.set$state(start);
- break $label0$0;
- }
- if (39 === _0_0 || 34 === _0_0)
- return _this.super$StylesheetParser$importArgument0();
- }
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- next = t1.peekChar$0();
- while (true) {
- if (next != null)
- if (next !== 44)
- if (next !== 59)
- t2 = !(next === 10 || next === 13 || next === 12);
- else
- t2 = false;
- else
- t2 = false;
- else
- t2 = false;
- if (!t2)
- break;
- t1.readChar$0();
- next = t1.peekChar$0();
- }
- url = t1.substring$1(0, start.position);
- span = t1.spanFrom$1(start);
- if (_this.isPlainImportUrl$1(url))
- return new A.StaticImport0(A.Interpolation$0(A._setArrayType([A.serializeValue0(new A.SassString0(url, true), true, true)], type$.JSArray_Object), span), null, span);
- else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new A.DynamicImport0(t1, span);
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- stackTrace = A.getTraceFromException(exception);
- _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace);
- } else
- throw exception;
- }
- },
- scanElse$1(ifIndentation) {
- var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
- if (_this._sass0$_peekIndentation$0() !== ifIndentation)
- return false;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- startIndentation = _this._sass0$_currentIndentation;
- startNextIndentation = _this._sass0$_nextIndentation;
- startNextIndentationEnd = _this._sass0$_nextIndentationEnd;
- _this._sass0$_readIndentation$0();
- if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
- return true;
- t1.set$state(new A._SpanScannerState(t1, t2));
- _this._sass0$_currentIndentation = startIndentation;
- _this._sass0$_nextIndentation = startNextIndentation;
- _this._sass0$_nextIndentationEnd = startNextIndentationEnd;
- return false;
- },
- children$1(_, child) {
- var children = A._setArrayType([], type$.JSArray_Statement_2);
- this._sass0$_whileIndentedLower$1(new A.SassParser_children_closure0(this, child, children));
- return children;
- },
- statements$1(statement) {
- var statements, t2, _1_0,
- t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- if (9 === _0_0 || 32 === _0_0)
- t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
- statements = A._setArrayType([], type$.JSArray_Statement_2);
- for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- _1_0 = this._sass0$_child$1(statement);
- if (_1_0 != null)
- statements.push(_1_0);
- this._sass0$_readIndentation$0();
- }
- return statements;
- },
- _sass0$_child$1(child) {
- var _0_0, _this = this,
- t1 = _this.scanner,
- _1_0 = t1.peekChar$0();
- $label0$0: {
- if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) {
- t1 = null;
- break $label0$0;
- }
- if (36 === _1_0) {
- t1 = _this.variableDeclarationWithoutNamespace$0();
- break $label0$0;
- }
- if (47 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label1$1: {
- if (47 === _0_0) {
- t1 = _this._sass0$_silentComment$0();
- break $label1$1;
- }
- if (42 === _0_0) {
- t1 = _this._sass0$_loudComment$0();
- break $label1$1;
- }
- t1 = child.call$0();
- break $label1$1;
- }
- break $label0$0;
- }
- t1 = child.call$0();
- break $label0$0;
- }
- return t1;
- },
- _sass0$_silentComment$0() {
- var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("//");
- buffer = new A.StringBuffer("");
- parentIndentation = _this._sass0$_currentIndentation;
- t3 = t1.string.length;
- t4 = 1 + parentIndentation;
- t5 = 2 + parentIndentation;
- $label0$0:
- do {
- commentPrefix = t1.scanChar$1(47) ? "///" : "//";
- for (i = commentPrefix.length; true;) {
- t6 = buffer._contents += commentPrefix;
- for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) {
- t6 += A.Primitives_stringFromCharCode(32);
- buffer._contents = t6;
- }
- while (true) {
- if (t1._string_scanner$_position !== t3) {
- t7 = t1.peekChar$0();
- t7 = !(t7 === 10 || t7 === 13 || t7 === 12);
- } else
- t7 = false;
- if (!t7)
- break;
- t6 += A.Primitives_stringFromCharCode(t1.readChar$0());
- buffer._contents = t6;
- }
- buffer._contents = t6 + "\n";
- if (_this._sass0$_peekIndentation$0() < parentIndentation)
- break $label0$0;
- if (_this._sass0$_peekIndentation$0() === parentIndentation) {
- if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47)
- _this._sass0$_readIndentation$0();
- break;
- }
- _this._sass0$_readIndentation$0();
- }
- } while (t1.scan$1("//"));
- t3 = buffer._contents;
- return _this.lastSilentComment = new A.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _sass0$_loudComment$0() {
- var t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _0_0, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer0(t3, t4);
- t3._contents = "" + "/*";
- parentIndentation = _this._sass0$_currentIndentation;
- for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) {
- if (first) {
- beginningOfComment = t1._string_scanner$_position;
- _this.spaces$0();
- t7 = t1.peekChar$0();
- if (t7 === 10 || t7 === 13 || t7 === 12) {
- _this._sass0$_readIndentation$0();
- t7 = A.Primitives_stringFromCharCode(32);
- t3._contents += t7;
- } else {
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end);
- }
- } else {
- t7 = t3._contents += "\n";
- t3._contents = t7 + " * ";
- }
- for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i) {
- t7 = A.Primitives_stringFromCharCode(32);
- t3._contents += t7;
- }
- for (; t1._string_scanner$_position !== t6;) {
- _0_0 = t1.peekChar$0();
- if (10 === _0_0 || 13 === _0_0 || 12 === _0_0)
- break;
- if (35 === _0_0) {
- if (t1.peekChar$1(1) === 123) {
- t7 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t7);
- } else {
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- continue;
- }
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- if (_this._sass0$_peekIndentation$0() <= parentIndentation)
- break;
- for (; _this._sass0$_lookingAtDoubleNewline$0();) {
- _this._sass0$_expectNewline$0();
- t7 = t3._contents += "\n";
- t3._contents = t7 + " *";
- }
- _this._sass0$_readIndentation$0();
- }
- t4 = t3._contents;
- if (!B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), "*/"))
- t3._contents += " */";
- return new A.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
- },
- whitespaceWithoutComments$0() {
- var t1, t2, next;
- for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
- next = t1.peekChar$0();
- if (next !== 9 && next !== 32)
- break;
- t1.readChar$0();
- }
- },
- loudComment$0() {
- var next,
- t1 = this.scanner;
- t1.expect$1("/*");
- for (; true;) {
- next = t1.readChar$0();
- if (next === 10 || next === 13 || next === 12)
- t1.error$1(0, "expected */.");
- if (next !== 42)
- continue;
- do
- next = t1.readChar$0();
- while (next === 42);
- if (next === 47)
- break;
- }
- },
- _sass0$_expectNewline$0() {
- var t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- if (59 === _0_0)
- t1.error$1(0, string$.semico);
- if (13 === _0_0) {
- t1.readChar$0();
- if (t1.peekChar$0() === 10)
- t1.readChar$0();
- return;
- }
- if (10 === _0_0 || 12 === _0_0) {
- t1.readChar$0();
- return;
- }
- t1.error$1(0, "expected newline.");
- },
- _sass0$_lookingAtDoubleNewline$0() {
- var _0_0,
- t1 = this.scanner,
- _1_0 = t1.peekChar$0();
- $label1$1: {
- if (13 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label0$0: {
- if (10 === _0_0) {
- t1 = t1.peekChar$1(2);
- t1 = t1 === 10 || t1 === 13 || t1 === 12;
- break $label0$0;
- }
- if (13 === _0_0 || 12 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- break $label1$1;
- }
- if (10 === _1_0 || 12 === _1_0) {
- t1 = t1.peekChar$1(1);
- t1 = t1 === 10 || t1 === 13 || t1 === 12;
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- return t1;
- },
- _sass0$_whileIndentedLower$1(body) {
- var t1, t2, childIndentation, indentation, t3, t4, _this = this,
- parentIndentation = _this._sass0$_currentIndentation;
- for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) {
- indentation = _this._sass0$_readIndentation$0();
- if (childIndentation == null)
- childIndentation = indentation;
- if (childIndentation !== indentation) {
- t3 = t1._string_scanner$_position;
- t4 = t2.getColumn$1(t3);
- t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4);
- }
- body.call$0();
- }
- },
- _sass0$_readIndentation$0() {
- var t1, _this = this,
- currentIndentation = _this._sass0$_nextIndentation;
- if (currentIndentation == null)
- currentIndentation = _this._sass0$_nextIndentation = _this._sass0$_peekIndentation$0();
- _this._sass0$_currentIndentation = currentIndentation;
- t1 = _this._sass0$_nextIndentationEnd;
- t1.toString;
- _this.scanner.set$state(t1);
- _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null;
- return currentIndentation;
- },
- _sass0$_peekIndentation$0() {
- var t1, t2, t3, start, containsTab, containsSpace, nextIndentation, _1_0, t4, _this = this,
- _0_0 = _this._sass0$_nextIndentation;
- if (_0_0 != null)
- return _0_0;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- t3 = t1.string.length;
- if (t2 === t3) {
- _this._sass0$_nextIndentation = 0;
- _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t2);
- return 0;
- }
- start = new A._SpanScannerState(t1, t2);
- if (!_this.scanCharIf$1(new A.SassParser__peekIndentation_closure1()))
- t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
- containsTab = A._Cell$();
- containsSpace = A._Cell$();
- nextIndentation = A._Cell$();
- do {
- containsSpace.__late_helper$_value = containsTab.__late_helper$_value = false;
- nextIndentation.__late_helper$_value = 0;
- for (; true;) {
- $label0$0: {
- _1_0 = t1.peekChar$0();
- if (32 === _1_0) {
- containsSpace.__late_helper$_value = true;
- break $label0$0;
- }
- if (9 === _1_0) {
- containsTab.__late_helper$_value = true;
- break $label0$0;
- }
- break;
- }
- t2 = nextIndentation.__late_helper$_value;
- if (t2 === nextIndentation)
- A.throwExpression(A.LateError$localNI(""));
- nextIndentation.__late_helper$_value = t2 + 1;
- t1.readChar$0();
- }
- t2 = t1._string_scanner$_position;
- if (t2 === t3) {
- _this._sass0$_nextIndentation = 0;
- _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t2);
- t1.set$state(start);
- return 0;
- }
- } while (_this.scanCharIf$1(new A.SassParser__peekIndentation_closure2()));
- t2 = containsTab._readLocal$0();
- t3 = containsSpace._readLocal$0();
- if (t2) {
- if (t3) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- } else if (_this._sass0$_spaces === true) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- } else if (t3 && _this._sass0$_spaces === false) {
- t2 = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = t3.getColumn$1(t2);
- t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
- }
- _this._sass0$_nextIndentation = nextIndentation._readLocal$0();
- if (nextIndentation._readLocal$0() > 0)
- if (_this._sass0$_spaces == null)
- _this._sass0$_spaces = containsSpace._readLocal$0();
- _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.set$state(start);
- return nextIndentation._readLocal$0();
- }
- };
- A.SassParser_styleRuleSelector_closure0.prototype = {
- call$1(char) {
- return char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A.SassParser_children_closure0.prototype = {
- call$0() {
- var _0_0 = this.$this._sass0$_child$1(this.child);
- if (_0_0 != null)
- this.children.push(_0_0);
- },
- $signature: 0
- };
- A.SassParser__peekIndentation_closure1.prototype = {
- call$1(char) {
- return char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A.SassParser__peekIndentation_closure2.prototype = {
- call$1(char) {
- return char === 10 || char === 13 || char === 12;
- },
- $signature: 30
- };
- A._Exports.prototype = {};
- A._wrapMain_closure.prototype = {
- call$1(_) {
- return A._translateReturnValue(this.main.call$0());
- },
- $signature: 82
- };
- A._wrapMain_closure0.prototype = {
- call$1(args) {
- return A._translateReturnValue(this.main.call$1(A.List_List$from(type$.List_dynamic._as(args), true, type$.String)));
- },
- $signature: 82
- };
- A.ScssParser0.prototype = {
- get$indented() {
- return false;
- },
- get$currentIndentation() {
- return 0;
- },
- styleRuleSelector$0() {
- return this.almostAnyValue$0();
- },
- expectStatementSeparator$1($name) {
- var t1, _0_0;
- this.whitespaceWithoutComments$0();
- t1 = this.scanner;
- if (t1._string_scanner$_position === t1.string.length)
- return;
- _0_0 = t1.peekChar$0();
- if (59 === _0_0 || 125 === _0_0)
- return;
- t1.expectChar$1(59);
- },
- expectStatementSeparator$0() {
- return this.expectStatementSeparator$1(null);
- },
- atEndOfStatement$0() {
- var next = this.scanner.peekChar$0();
- return next == null || next === 59 || next === 125 || next === 123;
- },
- lookingAtChildren$0() {
- return this.scanner.peekChar$0() === 123;
- },
- scanElse$1(ifIndentation) {
- var t3, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- _this.whitespace$0();
- t3 = t1._string_scanner$_position;
- if (t1.scanChar$1(64)) {
- if (_this.scanIdentifier$2$caseSensitive("else", true))
- return true;
- if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
- A.WarnForDeprecation_warnForDeprecation0(_this.logger, B.Deprecation_xw8, string$.x40elsei, t1.spanFrom$1(new A._SpanScannerState(t1, t3)), null);
- t1.set$position(t1._string_scanner$_position - 2);
- return true;
- }
- }
- t1.set$state(new A._SpanScannerState(t1, t2));
- return false;
- },
- children$1(_, child) {
- var children, _this = this,
- t1 = _this.scanner;
- t1.expectChar$1(123);
- _this.whitespaceWithoutComments$0();
- children = A._setArrayType([], type$.JSArray_Statement_2);
- for (; true;)
- switch (t1.peekChar$0()) {
- case 36:
- children.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- children.push(_this._scss0$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- children.push(_this._scss0$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- children.push(child.call$0());
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- case 125:
- t1.expectChar$1(125);
- return children;
- default:
- children.push(child.call$0());
- }
- },
- statements$1(statement) {
- var t1, t2, _0_0, _1_0, _this = this,
- statements = A._setArrayType([], type$.JSArray_Statement_2);
- _this.whitespaceWithoutComments$0();
- for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
- switch (t1.peekChar$0()) {
- case 36:
- statements.push(_this.variableDeclarationWithoutNamespace$0());
- break;
- case 47:
- switch (t1.peekChar$1(1)) {
- case 47:
- statements.push(_this._scss0$_silentComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- case 42:
- statements.push(_this._scss0$_loudComment$0());
- _this.whitespaceWithoutComments$0();
- break;
- default:
- _0_0 = statement.call$0();
- if (_0_0 != null)
- statements.push(_0_0);
- }
- break;
- case 59:
- t1.readChar$0();
- _this.whitespaceWithoutComments$0();
- break;
- default:
- _1_0 = statement.call$0();
- if (_1_0 != null)
- statements.push(_1_0);
- }
- return statements;
- },
- _scss0$_silentComment$0() {
- var t2, t3, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expect$1("//");
- t2 = t1.string.length;
- do {
- while (true) {
- if (t1._string_scanner$_position !== t2) {
- t3 = t1.readChar$0();
- t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
- } else
- t3 = false;
- if (!t3)
- break;
- }
- if (t1._string_scanner$_position === t2)
- break;
- _this.spaces$0();
- } while (t1.scan$1("//"));
- if (_this.get$plainCss())
- _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
- return _this.lastSilentComment = new A.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start));
- },
- _scss0$_loudComment$0() {
- var t3, t4, buffer, t5, endPosition, t6, result,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("/*");
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer0(t3, t4);
- t3._contents = "" + "/*";
- $label0$1:
- for (; true;)
- switch (t1.peekChar$0()) {
- case 35:
- if (t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- } else {
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- }
- break;
- case 42:
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- if (t1.peekChar$0() !== 47)
- continue $label0$1;
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- endPosition = t1._string_scanner$_position;
- t5 = t1._sourceFile;
- t6 = new A._SpanScannerState(t1, t2).position;
- t1 = new A._FileSpan(t5, t6, endPosition);
- t1._FileSpan$3(t5, t6, endPosition);
- t6 = type$.Object;
- t5 = A.List_List$of(t4, true, t6);
- t2 = t3._contents;
- if (t2.length !== 0)
- t5.push(t2.charCodeAt(0) == 0 ? t2 : t2);
- result = A.List_List$from(t5, false, t6);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t2 = new A.Interpolation0(result, t1);
- t2.Interpolation$20(t5, t1);
- return new A.LoudComment0(t2);
- case 13:
- t1.readChar$0();
- if (t1.peekChar$0() !== 10) {
- t5 = A.Primitives_stringFromCharCode(10);
- t3._contents += t5;
- }
- break;
- case 12:
- t1.readChar$0();
- t5 = A.Primitives_stringFromCharCode(10);
- t3._contents += t5;
- break;
- default:
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- }
- }
- };
- A.Selector0.prototype = {
- assertNotBogus$1$name($name) {
- if (!this.accept$1(B._IsBogusVisitor_true0))
- return;
- A.warnForDeprecation0("$" + $name + ": " + (this.toString$0(0) + string$.x20is_nov), B.Deprecation_5pG);
- },
- toString$0(_) {
- var visitor = A._SerializeVisitor$0(null, true, null, true, false, null, true);
- this.accept$1(visitor);
- return visitor._serialize0$_buffer.toString$0(0);
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._IsInvisibleVisitor2.prototype = {
- visitSelectorList$1(list) {
- return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector());
- },
- visitComplexSelector$1(complex) {
- var t1;
- if (!this.super$AnySelectorVisitor$visitComplexSelector0(complex))
- t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false0);
- else
- t1 = true;
- return t1;
- },
- visitPlaceholderSelector$1(placeholder) {
- return true;
- },
- visitPseudoSelector$1(pseudo) {
- var t1,
- _0_0 = pseudo.selector;
- if (_0_0 != null) {
- if (pseudo.name === "not")
- t1 = this.includeBogus && _0_0.accept$1(B._IsBogusVisitor_true0);
- else
- t1 = this.visitSelectorList$1(_0_0);
- return t1;
- } else
- return false;
- }
- };
- A._IsBogusVisitor0.prototype = {
- visitComplexSelector$1(complex) {
- var t2,
- t1 = complex.components;
- if (t1.length === 0)
- return complex.leadingCombinators.length !== 0;
- else {
- t2 = this.includeLeadingCombinator ? 0 : 1;
- return complex.leadingCombinators.length > t2 || B.JSArray_methods.get$last(t1).combinators.length !== 0 || B.JSArray_methods.any$1(t1, new A._IsBogusVisitor_visitComplexSelector_closure0(this));
- }
- },
- visitPseudoSelector$1(pseudo) {
- var selector = pseudo.selector;
- if (selector == null)
- return false;
- return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false0) : selector.accept$1(B._IsBogusVisitor_true0);
- }
- };
- A._IsBogusVisitor_visitComplexSelector_closure0.prototype = {
- call$1(component) {
- return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature: 50
- };
- A._IsUselessVisitor0.prototype = {
- visitComplexSelector$1(complex) {
- return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure0(this));
- },
- visitPseudoSelector$1(pseudo) {
- return pseudo.accept$1(B._IsBogusVisitor_true0);
- }
- };
- A._IsUselessVisitor_visitComplexSelector_closure0.prototype = {
- call$1(component) {
- return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature: 50
- };
- A.__IsBogusVisitor_Object_AnySelectorVisitor0.prototype = {};
- A.__IsInvisibleVisitor_Object_AnySelectorVisitor0.prototype = {};
- A.__IsUselessVisitor_Object_AnySelectorVisitor0.prototype = {};
- A.SelectorExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitSelectorExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "&";
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A._nest_closure0.prototype = {
- call$1($arguments) {
- var t1 = {},
- selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw A.wrapException(A.SassScriptException$0(string$.x24selec, null));
- t1.first = true;
- return new A.MappedListIterable(selectors, new A._nest__closure1(t1), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new A._nest__closure2()).get$asSassList();
- },
- $signature: 23
- };
- A._nest__closure1.prototype = {
- call$1(selector) {
- var t1 = this._box_0,
- result = A.SassApiValue_assertSelector0(selector, !t1.first, null);
- t1.first = false;
- return result;
- },
- $signature: 203
- };
- A._nest__closure2.prototype = {
- call$2($parent, child) {
- return child.nestWithin$1($parent);
- },
- $signature: 202
- };
- A._append_closure1.prototype = {
- call$1($arguments) {
- var t1,
- selectors = J.$index$asx($arguments, 0).get$asList();
- if (selectors.length === 0)
- throw A.wrapException(A.SassScriptException$0(string$.x24selec, null));
- t1 = A.EvaluationContext_currentOrNull0();
- return new A.MappedListIterable(selectors, new A._append__closure1(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new A._append__closure2((t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan())).get$asSassList();
- },
- $signature: 23
- };
- A._append__closure1.prototype = {
- call$1(selector) {
- return A.SassApiValue_assertSelector0(selector, false, null);
- },
- $signature: 203
- };
- A._append__closure2.prototype = {
- call$2($parent, child) {
- var t1 = child.components,
- t2 = this.span;
- return A.SelectorList$0(new A.MappedListIterable(t1, new A._append___closure0($parent, t2), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")), t2).nestWithin$1($parent);
- },
- $signature: 202
- };
- A._append___closure0.prototype = {
- call$1(complex) {
- var _0_0, t1, component, rest, newCompound, t2, _null = null;
- if (complex.leadingCombinators.length !== 0)
- throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
- _0_0 = complex.components;
- t1 = _0_0.length >= 1;
- if (t1) {
- component = _0_0[0];
- rest = B.JSArray_methods.sublist$1(_0_0, 1);
- } else {
- rest = _null;
- component = rest;
- }
- if (!t1)
- throw A.wrapException(A.StateError$("Pattern matching error"));
- newCompound = A._prependParent0(component.selector);
- if (newCompound == null)
- throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
- t1 = this.span;
- t2 = A._setArrayType([new A.ComplexSelectorComponent0(newCompound, A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator_2), t1)], type$.JSArray_ComplexSelectorComponent_2);
- B.JSArray_methods.addAll$1(t2, rest);
- return A.ComplexSelector$0(B.List_empty13, t2, t1, false);
- },
- $signature: 55
- };
- A._extend_closure0.prototype = {
- call$1($arguments) {
- var target, source,
- _s8_ = "selector",
- _s8_0 = "extendee",
- _s8_1 = "extender",
- t1 = J.getInterceptor$asx($arguments),
- selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_);
- selector.assertNotBogus$1$name(_s8_);
- target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0);
- target.assertNotBogus$1$name(_s8_0);
- source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s8_1);
- source.assertNotBogus$1$name(_s8_1);
- t1 = A.EvaluationContext_currentOrNull0();
- return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_allTargets_allTargets0, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
- },
- $signature: 23
- };
- A._replace_closure0.prototype = {
- call$1($arguments) {
- var target, source,
- _s8_ = "selector",
- _s8_0 = "original",
- _s11_ = "replacement",
- t1 = J.getInterceptor$asx($arguments),
- selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_);
- selector.assertNotBogus$1$name(_s8_);
- target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0);
- target.assertNotBogus$1$name(_s8_0);
- source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s11_);
- source.assertNotBogus$1$name(_s11_);
- t1 = A.EvaluationContext_currentOrNull0();
- return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_replace_replace0, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
- },
- $signature: 23
- };
- A._unify_closure0.prototype = {
- call$1($arguments) {
- var selector2,
- _s9_ = "selector1",
- _s9_0 = "selector2",
- t1 = J.getInterceptor$asx($arguments),
- selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s9_);
- selector1.assertNotBogus$1$name(_s9_);
- selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s9_0);
- selector2.assertNotBogus$1$name(_s9_0);
- t1 = selector1.unify$1(selector2);
- t1 = t1 == null ? null : t1.get$asSassList();
- return t1 == null ? B.C__SassNull0 : t1;
- },
- $signature: 3
- };
- A._isSuperselector_closure0.prototype = {
- call$1($arguments) {
- var selector2,
- t1 = J.getInterceptor$asx($arguments),
- selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, "super");
- selector1.assertNotBogus$1$name("super");
- selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, "sub");
- selector2.assertNotBogus$1$name("sub");
- return A.listIsSuperselector0(selector1.components, selector2.components) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- },
- $signature: 21
- };
- A._simpleSelectors_closure0.prototype = {
- call$1($arguments) {
- var t1 = A.SassApiValue_assertCompoundSelector0(J.$index$asx($arguments, 0), "selector").components;
- return A.SassList$0(new A.MappedListIterable(t1, new A._simpleSelectors__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_ECn0, false);
- },
- $signature: 23
- };
- A._simpleSelectors__closure0.prototype = {
- call$1(simple) {
- return new A.SassString0(A.serializeSelector0(simple, true), false);
- },
- $signature: 531
- };
- A._parse_closure0.prototype = {
- call$1($arguments) {
- return A.SassApiValue_assertSelector0(J.$index$asx($arguments, 0), false, "selector").get$asSassList();
- },
- $signature: 23
- };
- A.SelectorParser0.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure0(this));
- },
- parseCompoundSelector$0() {
- return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure0(this));
- },
- _selector$_selectorList$0() {
- var t4, t5, lineBreak, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = t1._sourceFile,
- previousLine = t3.getLine$1(t2),
- components = A._setArrayType([_this._selector$_complexSelector$0()], type$.JSArray_ComplexSelector_2);
- _this.whitespace$0();
- for (t4 = t1.string.length; t1.scanChar$1(44);) {
- _this.whitespace$0();
- if (t1.peekChar$0() === 44)
- continue;
- t5 = t1._string_scanner$_position;
- if (t5 === t4)
- break;
- lineBreak = t3.getLine$1(t5) !== previousLine;
- if (lineBreak)
- previousLine = t3.getLine$1(t1._string_scanner$_position);
- components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak));
- }
- return A.SelectorList$0(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _selector$_complexSelector$1$lineBreak(lineBreak) {
- var t4, lastCompound, initialCombinators, _0_0, t5, result, _this = this,
- _s18_ = "expected selector.",
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- componentStart = new A._SpanScannerState(t1, t2),
- t3 = type$.JSArray_CssValue_Combinator_2,
- combinators = A._setArrayType([], t3),
- components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2);
- for (t4 = type$.CssValue_Combinator_2, lastCompound = null, initialCombinators = null; true;) {
- _this.whitespace$0();
- _0_0 = t1.peekChar$0();
- if (43 === _0_0) {
- t5 = t1._string_scanner$_position;
- t1.readChar$0();
- combinators.push(new A.CssValue0(B.Combinator_gRV0, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
- continue;
- }
- if (62 === _0_0) {
- t5 = t1._string_scanner$_position;
- t1.readChar$0();
- combinators.push(new A.CssValue0(B.Combinator_8I80, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
- continue;
- }
- if (126 === _0_0) {
- t5 = t1._string_scanner$_position;
- t1.readChar$0();
- combinators.push(new A.CssValue0(B.Combinator_y180, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
- continue;
- }
- if (_0_0 == null)
- break;
- if (91 !== _0_0)
- if (46 !== _0_0)
- if (35 !== _0_0)
- if (37 !== _0_0)
- if (58 !== _0_0)
- if (38 !== _0_0)
- if (42 !== _0_0)
- if (124 !== _0_0)
- t5 = _this.lookingAtIdentifier$0();
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5) {
- if (lastCompound != null) {
- t5 = _this.spanFrom$1(componentStart);
- result = A.List_List$from(combinators, false, t4);
- result.fixed$length = Array;
- result.immutable$list = Array;
- components.push(new A.ComplexSelectorComponent0(lastCompound, result, t5));
- } else if (combinators.length !== 0) {
- componentStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
- initialCombinators = combinators;
- }
- lastCompound = _this._selector$_compoundSelector$0();
- combinators = A._setArrayType([], t3);
- if (t1.peekChar$0() === 38)
- t1.error$1(0, string$.x22x26__ma);
- continue;
- }
- break;
- }
- t3 = combinators.length !== 0;
- if (t3 && _this._selector$_plainCss)
- t1.error$1(0, _s18_);
- else if (lastCompound != null) {
- t3 = _this.spanFrom$1(componentStart);
- components.push(new A.ComplexSelectorComponent0(lastCompound, A.List_List$unmodifiable(combinators, t4), t3));
- } else if (t3)
- initialCombinators = combinators;
- else
- t1.error$1(0, _s18_);
- t3 = initialCombinators == null ? B.List_empty13 : initialCombinators;
- return A.ComplexSelector$0(t3, components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)), lineBreak);
- },
- _selector$_complexSelector$0() {
- return this._selector$_complexSelector$1$lineBreak(false);
- },
- _selector$_compoundSelector$0() {
- var t3, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- components = A._setArrayType([_this._selector$_simpleSelector$0()], type$.JSArray_SimpleSelector_2);
- for (t3 = _this._selector$_plainCss; _this._selector$_isSimpleSelectorStart$1(t1.peekChar$0());)
- components.push(_this._selector$_simpleSelector$1$allowParent(t3));
- return A.CompoundSelector$0(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _selector$_simpleSelector$1$allowParent(allowParent) {
- var t2, $name, text, t3, suffix, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (allowParent == null)
- allowParent = _this._selector$_allowParent;
- switch (t1.peekChar$0()) {
- case 91:
- return _this._selector$_attributeSelector$0();
- case 46:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(46);
- return new A.ClassSelector0(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- case 35:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(35);
- return new A.IDSelector0(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
- case 37:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(37);
- $name = _this.identifier$0();
- t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
- if (_this._selector$_plainCss)
- _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
- return new A.PlaceholderSelector0($name, t2);
- case 58:
- return _this._selector$_pseudoSelector$0();
- case 38:
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(38);
- if (_this.lookingAtIdentifierBody$0()) {
- text = new A.StringBuffer("");
- _this._parser0$_identifierBody$1(text);
- if (text._contents.length === 0)
- t1.error$1(0, "Expected identifier body.");
- t3 = text._contents;
- suffix = t3.charCodeAt(0) == 0 ? t3 : t3;
- } else
- suffix = null;
- if (_this._selector$_plainCss && suffix != null)
- t1.error$3$length$position(0, string$.Parent, t1._string_scanner$_position - t2, t2);
- t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
- if (!allowParent)
- _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
- return new A.ParentSelector0(suffix, t2);
- default:
- return _this._selector$_typeOrUniversalSelector$0();
- }
- },
- _selector$_simpleSelector$0() {
- return this._selector$_simpleSelector$1$allowParent(null);
- },
- _selector$_attributeSelector$0() {
- var $name, operator, next, value, modifier, _this = this, _null = null,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(91);
- _this.whitespace$0();
- $name = _this._selector$_attributeName$0();
- _this.whitespace$0();
- if (t1.scanChar$1(93))
- return new A.AttributeSelector0($name, _null, _null, _null, _this.spanFrom$1(start));
- operator = _this._selector$_attributeOperator$0();
- _this.whitespace$0();
- next = t1.peekChar$0();
- value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
- _this.whitespace$0();
- next = t1.peekChar$0();
- modifier = next != null && A.CharacterExtension_get_isAlphabetic0(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
- t1.expectChar$1(93);
- return new A.AttributeSelector0($name, operator, value, modifier, _this.spanFrom$1(start));
- },
- _selector$_attributeName$0() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner;
- if (t1.scanChar$1(42)) {
- t1.expectChar$1(124);
- return new A.QualifiedName0(_this.identifier$0(), "*");
- }
- if (t1.scanChar$1(124))
- return new A.QualifiedName0(_this.identifier$0(), "");
- nameOrNamespace = _this.identifier$0();
- if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
- return new A.QualifiedName0(nameOrNamespace, null);
- t1.readChar$0();
- return new A.QualifiedName0(_this.identifier$0(), nameOrNamespace);
- },
- _selector$_attributeOperator$0() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- switch (t1.readChar$0()) {
- case 61:
- return B.AttributeOperator_4QF0;
- case 126:
- t1.expectChar$1(61);
- return B.AttributeOperator_yT80;
- case 124:
- t1.expectChar$1(61);
- return B.AttributeOperator_jqB0;
- case 94:
- t1.expectChar$1(61);
- return B.AttributeOperator_cMb0;
- case 36:
- t1.expectChar$1(61);
- return B.AttributeOperator_qhE0;
- case 42:
- t1.expectChar$1(61);
- return B.AttributeOperator_61T0;
- default:
- t1.error$2$position(0, 'Expected "]".', t2);
- }
- },
- _selector$_pseudoSelector$0() {
- var element, $name, unvendored, selector, argument, t2, _this = this, _null = null,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(58);
- element = t1.scanChar$1(58);
- $name = _this.identifier$0();
- if (!t1.scanChar$1(40))
- return A.PseudoSelector$0($name, _this.spanFrom$1(start), _null, element, _null);
- _this.whitespace$0();
- unvendored = A.unvendor0($name);
- if (element)
- if ($._selectorPseudoElements0.contains$1(0, unvendored)) {
- selector = _this._selector$_selectorList$0();
- argument = _null;
- } else {
- argument = _this.declarationValue$1$allowEmpty(true);
- selector = _null;
- }
- else if ($._selectorPseudoClasses0.contains$1(0, unvendored)) {
- selector = _this._selector$_selectorList$0();
- argument = _null;
- } else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
- argument = _this._selector$_aNPlusB$0();
- _this.whitespace$0();
- t2 = t1.peekChar$1(-1);
- if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) {
- _this.expectIdentifier$1("of");
- argument += " of";
- _this.whitespace$0();
- selector = _this._selector$_selectorList$0();
- } else
- selector = _null;
- } else {
- argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
- selector = _null;
- }
- t1.expectChar$1(41);
- return A.PseudoSelector$0($name, _this.spanFrom$1(start), argument, element, selector);
- },
- _selector$_aNPlusB$0() {
- var t1, _0_0, t2, $self, next, _this = this;
- $label0$0: {
- t1 = _this.scanner;
- _0_0 = t1.peekChar$0();
- if (101 === _0_0 || 69 === _0_0) {
- _this.expectIdentifier$1("even");
- return "even";
- }
- if (111 === _0_0 || 79 === _0_0) {
- _this.expectIdentifier$1("odd");
- return "odd";
- }
- if (43 === _0_0 || 45 === _0_0) {
- t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0());
- break $label0$0;
- }
- t2 = "";
- }
- $self = t1.peekChar$0();
- if ($self != null && $self >= 48 && $self <= 57) {
- do {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- } while ($self != null && $self >= 48 && $self <= 57);
- _this.whitespace$0();
- if (!_this.scanIdentChar$1(110))
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- } else
- _this.expectIdentChar$1(110);
- t2 += A.Primitives_stringFromCharCode(110);
- _this.whitespace$0();
- next = t1.peekChar$0();
- if (next !== 43 && next !== 45)
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- _this.whitespace$0();
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- t1.error$1(0, "Expected a number.");
- do {
- t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
- $self = t1.peekChar$0();
- } while ($self != null && $self >= 48 && $self <= 57);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- },
- _selector$_typeOrUniversalSelector$0() {
- var nameOrNamespace, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (t1.scanChar$1(42)) {
- if (!t1.scanChar$1(124))
- return new A.UniversalSelector0(null, _this.spanFrom$1(start));
- return t1.scanChar$1(42) ? new A.UniversalSelector0("*", _this.spanFrom$1(start)) : new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), "*"), _this.spanFrom$1(start));
- } else if (t1.scanChar$1(124))
- return t1.scanChar$1(42) ? new A.UniversalSelector0("", _this.spanFrom$1(start)) : new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), ""), _this.spanFrom$1(start));
- nameOrNamespace = _this.identifier$0();
- if (!t1.scanChar$1(124))
- return new A.TypeSelector0(new A.QualifiedName0(nameOrNamespace, null), _this.spanFrom$1(start));
- else if (t1.scanChar$1(42))
- return new A.UniversalSelector0(nameOrNamespace, _this.spanFrom$1(start));
- else
- return new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), nameOrNamespace), _this.spanFrom$1(start));
- },
- _selector$_isSimpleSelectorStart$1(character) {
- var t1;
- $label0$0: {
- if (42 === character || 91 === character || 46 === character || 35 === character || 37 === character || 58 === character) {
- t1 = true;
- break $label0$0;
- }
- if (38 === character) {
- t1 = this._selector$_plainCss;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- }
- };
- A.SelectorParser_parse_closure0.prototype = {
- call$0() {
- var t1 = this.$this,
- selector = t1._selector$_selectorList$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1(0, "expected selector.");
- return selector;
- },
- $signature: 532
- };
- A.SelectorParser_parseCompoundSelector_closure0.prototype = {
- call$0() {
- var t1 = this.$this,
- compound = t1._selector$_compoundSelector$0();
- t1 = t1.scanner;
- if (t1._string_scanner$_position !== t1.string.length)
- t1.error$1(0, "expected selector.");
- return compound;
- },
- $signature: 533
- };
- A.SelectorSearchVisitor0.prototype = {
- visitAttributeSelector$1(attribute) {
- return null;
- },
- visitClassSelector$1(klass) {
- return null;
- },
- visitIDSelector$1(id) {
- return null;
- },
- visitParentSelector$1(placeholder) {
- return null;
- },
- visitPlaceholderSelector$1(placeholder) {
- return null;
- },
- visitTypeSelector$1(type) {
- return null;
- },
- visitUniversalSelector$1(universal) {
- return null;
- },
- visitComplexSelector$1(complex) {
- return A.IterableExtension_search0(complex.components, new A.SelectorSearchVisitor_visitComplexSelector_closure0(this));
- },
- visitCompoundSelector$1(compound) {
- return A.IterableExtension_search0(compound.components, new A.SelectorSearchVisitor_visitCompoundSelector_closure0(this));
- },
- visitPseudoSelector$1(pseudo) {
- return A.NullableExtension_andThen0(pseudo.selector, this.get$visitSelectorList());
- },
- visitSelectorList$1(list) {
- return A.IterableExtension_search0(list.components, this.get$visitComplexSelector());
- }
- };
- A.SelectorSearchVisitor_visitComplexSelector_closure0.prototype = {
- call$1(component) {
- return this.$this.visitCompoundSelector$1(component.selector);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor0.T?(ComplexSelectorComponent0)");
- }
- };
- A.SelectorSearchVisitor_visitCompoundSelector_closure0.prototype = {
- call$1(simple) {
- return simple.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor0.T?(SimpleSelector0)");
- }
- };
- A.serialize_closure0.prototype = {
- call$1(codeUnit) {
- return codeUnit > 127;
- },
- $signature: 45
- };
- A._SerializeVisitor0.prototype = {
- visitCssStylesheet$1(node) {
- var t1, t2, t3, t4, t5, t6, t7, previous, previous0, t8, _this = this;
- for (t1 = J.get$iterator$ax(node.get$children(node)), t2 = !_this._serialize0$_inspect, t3 = _this._serialize0$_style === B.OutputStyle_10, t4 = !t3, t5 = type$.CssParentNode_2, t6 = _this._serialize0$_buffer, t7 = _this._lineFeed.text, previous = null; t1.moveNext$0();) {
- previous0 = t1.get$current(t1);
- if (t2)
- t8 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0);
- else
- t8 = false;
- if (t8)
- continue;
- if (previous != null) {
- if (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0))
- t6.writeCharCode$1(59);
- if (_this._serialize0$_isTrailingComment$2(previous0, previous)) {
- if (t4)
- t6.writeCharCode$1(32);
- } else {
- if (t4)
- t6.write$1(0, t7);
- if (previous.get$isGroupEnd())
- if (t4)
- t6.write$1(0, t7);
- }
- }
- previous0.accept$1(_this);
- previous = previous0;
- }
- if (previous != null)
- t1 = (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0)) && t4;
- else
- t1 = false;
- if (t1)
- t6.writeCharCode$1(59);
- },
- visitCssComment$1(node) {
- this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure0(this, node));
- },
- visitCssAtRule$1(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._serialize0$_buffer;
- t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure0(_this, node));
- if (!node.isChildless) {
- if (_this._serialize0$_style !== B.OutputStyle_10)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node);
- }
- },
- visitCssMediaRule$1(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._serialize0$_buffer;
- t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure0(_this, node));
- if (_this._serialize0$_style !== B.OutputStyle_10)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node);
- },
- visitCssImport$1(node) {
- this._serialize0$_writeIndentation$0();
- this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure0(this, node));
- },
- _serialize0$_writeImportUrl$1(url) {
- var urlContents, maybeQuote, _this = this;
- if (_this._serialize0$_style !== B.OutputStyle_10 || url.charCodeAt(0) !== 117) {
- _this._serialize0$_buffer.write$1(0, url);
- return;
- }
- urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1);
- maybeQuote = urlContents.charCodeAt(0);
- if (maybeQuote === 39 || maybeQuote === 34)
- _this._serialize0$_buffer.write$1(0, urlContents);
- else
- _this._serialize0$_visitQuotedString$1(urlContents);
- },
- visitCssKeyframeBlock$1(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._serialize0$_buffer;
- t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node));
- if (_this._serialize0$_style !== B.OutputStyle_10)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node);
- },
- _serialize0$_visitMediaQuery$1(query) {
- var t1, _1_0, _2_0, condition, operator, t2, _this = this,
- _0_0 = query.modifier;
- if (_0_0 != null) {
- t1 = _this._serialize0$_buffer;
- t1.write$1(0, _0_0);
- t1.writeCharCode$1(32);
- }
- _1_0 = query.type;
- if (_1_0 != null) {
- t1 = _this._serialize0$_buffer;
- t1.write$1(0, _1_0);
- if (query.conditions.length !== 0)
- t1.write$1(0, " and ");
- }
- _2_0 = query.conditions;
- if (_2_0.length === 1)
- t1 = B.JSString_methods.startsWith$1(_2_0[0], "(not ");
- else
- t1 = false;
- if (t1) {
- t1 = _this._serialize0$_buffer;
- t1.write$1(0, "not ");
- condition = B.JSArray_methods.get$first(_2_0);
- t1.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1));
- } else {
- operator = query.conjunction ? "and" : "or";
- t1 = _this._serialize0$_style === B.OutputStyle_10 ? operator + " " : " " + operator + " ";
- t2 = _this._serialize0$_buffer;
- _this._serialize0$_writeBetween$3(_2_0, t1, t2.get$write(t2));
- }
- },
- visitCssStyleRule$1(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._serialize0$_buffer;
- t1.forSpan$2(node._style_rule0$_selector._box0$_inner.value.span, new A._SerializeVisitor_visitCssStyleRule_closure0(_this, node));
- if (_this._serialize0$_style !== B.OutputStyle_10)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node);
- },
- visitCssSupportsRule$1(node) {
- var t1, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = _this._serialize0$_buffer;
- t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure0(_this, node));
- if (_this._serialize0$_style !== B.OutputStyle_10)
- t1.writeCharCode$1(32);
- _this._serialize0$_visitChildren$1(node);
- },
- visitCssDeclaration$1(node) {
- var error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this;
- _this._serialize0$_writeIndentation$0();
- t1 = node.name;
- _this._serialize0$_write$1(t1);
- t2 = _this._serialize0$_buffer;
- t2.writeCharCode$1(58);
- if (J.startsWith$1$s(t1.value, "--") && node.parsedAsCustomProperty)
- t2.forSpan$2(node.value.span, new A._SerializeVisitor_visitCssDeclaration_closure1(_this, node));
- else {
- if (_this._serialize0$_style !== B.OutputStyle_10)
- t2.writeCharCode$1(32);
- try {
- t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure2(_this, node));
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (t1 instanceof A.MultiSpanSassScriptException0) {
- error = t1;
- stackTrace = A.getTraceFromException(exception);
- A.throwWithTrace0(A.MultiSpanSassException$0(error.message, node.value.span, error.primaryLabel, error.secondarySpans, null), error, stackTrace);
- } else if (t1 instanceof A.SassScriptException0) {
- error0 = t1;
- stackTrace0 = A.getTraceFromException(exception);
- t1 = error0.message;
- A.throwWithTrace0(new A.SassException0(B.Set_empty, t1, node.value.span), error0, stackTrace0);
- } else
- throw exception;
- }
- }
- },
- _serialize0$_writeFoldedValue$1(node) {
- var t1, t2, next, t3,
- scanner = A.StringScanner$(type$.SassString_2._as(node.value.value)._string0$_text, null, null);
- for (t1 = scanner.string.length, t2 = this._serialize0$_buffer; scanner._string_scanner$_position !== t1;) {
- next = scanner.readChar$0();
- if (next !== 10) {
- t2.writeCharCode$1(next);
- continue;
- }
- t2.writeCharCode$1(32);
- while (true) {
- t3 = scanner.peekChar$0();
- if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
- break;
- scanner.readChar$0();
- }
- }
- },
- _serialize0$_writeReindentedValue$1(node) {
- var _0_0, t1, _this = this,
- value = type$.SassString_2._as(node.value.value)._string0$_text;
- $label0$0: {
- _0_0 = _this._serialize0$_minimumIndentation$1(value);
- if (_0_0 == null) {
- _this._serialize0$_buffer.write$1(0, value);
- break $label0$0;
- }
- if (-1 === _0_0) {
- t1 = _this._serialize0$_buffer;
- t1.write$1(0, A.trimAsciiRight0(value, true));
- t1.writeCharCode$1(32);
- break $label0$0;
- }
- t1 = node.name.span;
- t1 = t1.get$start(t1);
- _this._serialize0$_writeWithIndent$2(value, Math.min(_0_0, t1.file.getColumn$1(t1.offset)));
- }
- },
- _serialize0$_minimumIndentation$1(text) {
- var character, t2, min, next, min0,
- scanner = A.LineScanner$(text),
- t1 = scanner.string.length;
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- if (scanner._string_scanner$_position === t1)
- return scanner.peekChar$1(-1) === 10 ? -1 : null;
- for (min = null; scanner._string_scanner$_position !== t1;) {
- for (; scanner._string_scanner$_position !== t1;) {
- next = scanner.peekChar$0();
- if (next !== 32 && next !== 9)
- break;
- scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
- }
- if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
- continue;
- min0 = scanner._line_scanner$_column;
- min = min == null ? min0 : Math.min(min, min0);
- while (true) {
- if (scanner._string_scanner$_position !== t1) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- t2 = character !== 10;
- } else
- t2 = false;
- if (!t2)
- break;
- }
- }
- return min == null ? -1 : min;
- },
- _serialize0$_writeWithIndent$2(text, minimumIndentation) {
- var t1, t2, t3, character, lineStart, newlines, end,
- scanner = A.LineScanner$(text);
- for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize0$_buffer; scanner._string_scanner$_position !== t2;) {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t3.writeCharCode$1(character);
- }
- for (; true;) {
- lineStart = scanner._string_scanner$_position;
- for (newlines = 1; true;) {
- if (scanner._string_scanner$_position === t2) {
- t3.writeCharCode$1(32);
- return;
- }
- $label0$2: {
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (32 === character || 9 === character)
- continue;
- if (10 === character) {
- lineStart = scanner._string_scanner$_position;
- ++newlines;
- break $label0$2;
- }
- break;
- }
- }
- this._serialize0$_writeTimes$2(10, newlines);
- this._serialize0$_writeIndentation$0();
- end = scanner._string_scanner$_position;
- t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end));
- for (; true;) {
- if (scanner._string_scanner$_position === t2)
- return;
- character = scanner.super$StringScanner$readChar();
- scanner._adjustLineAndColumn$1(character);
- if (character === 10)
- break;
- t3.writeCharCode$1(character);
- }
- }
- },
- visitCalculation$1(value) {
- var t2, _this = this,
- t1 = _this._serialize0$_buffer;
- t1.write$1(0, value.name);
- t1.writeCharCode$1(40);
- t2 = _this._serialize0$_style === B.OutputStyle_10 ? "," : ", ";
- _this._serialize0$_writeBetween$3(value.$arguments, t2, _this.get$_serialize0$_writeCalculationValue());
- t1.writeCharCode$1(41);
- },
- _serialize0$_writeCalculationValue$1(value) {
- var _2_4_isSet, _2_4, t1, _0_0, _1_0, first, rest, operator, left, right, parenthesizeLeft, operatorWhitespace, t2, parenthesizeRight, _this = this, _null = null;
- $label1$1: {
- _2_4_isSet = value instanceof A.SassNumber0;
- if (_2_4_isSet) {
- _2_4 = value.get$hasComplexUnits();
- t1 = _2_4 && !_this._serialize0$_inspect;
- } else {
- _2_4 = _null;
- t1 = false;
- }
- if (t1)
- throw A.wrapException(A.SassScriptException$0(A.S(value) + " isn't a valid CSS value.", _null));
- if (_2_4_isSet && !isFinite(value._number1$_value)) {
- $label0$0: {
- _0_0 = value._number1$_value;
- if (1 / 0 === _0_0) {
- _this._serialize0$_buffer.write$1(0, "infinity");
- break $label0$0;
- }
- if (-1 / 0 === _0_0) {
- _this._serialize0$_buffer.write$1(0, "-infinity");
- break $label0$0;
- }
- if (isNaN(_0_0))
- _this._serialize0$_buffer.write$1(0, "NaN");
- }
- t1 = J.getInterceptor$x(value);
- _this._serialize0$_writeCalculationUnits$2(t1.get$numeratorUnits(value), t1.get$denominatorUnits(value));
- break $label1$1;
- }
- if (_2_4_isSet)
- t1 = _2_4;
- else
- t1 = false;
- if (t1) {
- _this._serialize0$_writeNumber$1(value._number1$_value);
- t1 = J.getInterceptor$x(value);
- _1_0 = t1.get$numeratorUnits(value);
- if (_1_0.length >= 1) {
- first = _1_0[0];
- rest = B.JSArray_methods.sublist$1(_1_0, 1);
- _this._serialize0$_buffer.write$1(0, first);
- _this._serialize0$_writeCalculationUnits$2(rest, t1.get$denominatorUnits(value));
- } else
- _this._serialize0$_writeCalculationUnits$2(A._setArrayType([], type$.JSArray_String), t1.get$denominatorUnits(value));
- break $label1$1;
- }
- if (value instanceof A.Value0) {
- value.accept$1(_this);
- break $label1$1;
- }
- t1 = value instanceof A.CalculationOperation0;
- if (t1) {
- operator = value._calculation0$_operator;
- left = value._calculation0$_left;
- right = value._calculation0$_right;
- right = right;
- } else {
- right = _null;
- left = right;
- operator = left;
- }
- if (t1) {
- parenthesizeLeft = left instanceof A.CalculationOperation0 && left._calculation0$_operator.precedence < operator.precedence;
- if (parenthesizeLeft)
- _this._serialize0$_buffer.writeCharCode$1(40);
- _this._serialize0$_writeCalculationValue$1(left);
- if (parenthesizeLeft)
- _this._serialize0$_buffer.writeCharCode$1(41);
- operatorWhitespace = _this._serialize0$_style !== B.OutputStyle_10 || operator.precedence === 1;
- if (operatorWhitespace)
- _this._serialize0$_buffer.writeCharCode$1(32);
- t1 = _this._serialize0$_buffer;
- t1.write$1(0, operator.operator);
- if (operatorWhitespace)
- t1.writeCharCode$1(32);
- if (!(right instanceof A.CalculationOperation0 && _this._serialize0$_parenthesizeCalculationRhs$2(operator, right._calculation0$_operator)))
- if (operator === B.CalculationOperator_Qf10) {
- if (right instanceof A.SassNumber0)
- t2 = isFinite(right._number1$_value) ? right.get$hasComplexUnits() : right.get$hasUnits();
- else
- t2 = false;
- parenthesizeRight = t2;
- } else
- parenthesizeRight = false;
- else
- parenthesizeRight = true;
- if (parenthesizeRight)
- t1.writeCharCode$1(40);
- _this._serialize0$_writeCalculationValue$1(right);
- if (parenthesizeRight)
- t1.writeCharCode$1(41);
- }
- }
- },
- _serialize0$_writeCalculationUnits$2(numeratorUnits, denominatorUnits) {
- var t1, t2, t3, t4;
- for (t1 = J.get$iterator$ax(numeratorUnits), t2 = this._serialize0$_buffer, t3 = this._serialize0$_style !== B.OutputStyle_10; t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(42);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(49);
- t2.write$1(0, t4);
- }
- for (t1 = J.get$iterator$ax(denominatorUnits); t1.moveNext$0();) {
- t4 = t1.get$current(t1);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(47);
- if (t3)
- t2.writeCharCode$1(32);
- t2.writeCharCode$1(49);
- t2.write$1(0, t4);
- }
- },
- _serialize0$_parenthesizeCalculationRhs$2(outer, right) {
- var t1;
- $label0$0: {
- if (B.CalculationOperator_Qf10 === outer) {
- t1 = true;
- break $label0$0;
- }
- if (B.CalculationOperator_g2q0 === outer) {
- t1 = false;
- break $label0$0;
- }
- t1 = right === B.CalculationOperator_g2q0 || right === B.CalculationOperator_CxF0;
- break $label0$0;
- }
- return t1;
- },
- visitColor$1(value) {
- var hexLength, _0_0, t1, $name, _1_0, opaque, t2, _3_0, _this = this;
- if (_this._serialize0$_style === B.OutputStyle_10)
- if (!A.fuzzyEquals0(value._color1$_alpha, 1))
- _this._serialize0$_writeRgb$1(value);
- else {
- hexLength = _this._serialize0$_canUseShortHex$1(value) ? 4 : 7;
- _0_0 = $.$get$namesByColor0().$index(0, value);
- if (_0_0 != null) {
- t1 = _0_0.length <= hexLength;
- $name = _0_0;
- } else {
- $name = null;
- t1 = false;
- }
- if (t1)
- _this._serialize0$_buffer.write$1(0, $name);
- else {
- t1 = _this._serialize0$_buffer;
- if (_this._serialize0$_canUseShortHex$1(value)) {
- t1.writeCharCode$1(35);
- t1.writeCharCode$1(A.hexCharFor0(value.get$red(0) & 15));
- t1.writeCharCode$1(A.hexCharFor0(value.get$green(0) & 15));
- t1.writeCharCode$1(A.hexCharFor0(value.get$blue(0) & 15));
- } else {
- t1.writeCharCode$1(35);
- _this._serialize0$_writeHexComponent$1(value.get$red(0));
- _this._serialize0$_writeHexComponent$1(value.get$green(0));
- _this._serialize0$_writeHexComponent$1(value.get$blue(0));
- }
- }
- }
- else {
- _1_0 = value.format;
- if (_1_0 != null)
- $label0$0: {
- if (B._ColorFormatEnum_rgbFunction0 === _1_0) {
- _this._serialize0$_writeRgb$1(value);
- break $label0$0;
- }
- if (B._ColorFormatEnum_hslFunction0 === _1_0) {
- t1 = value._color1$_alpha;
- opaque = A.fuzzyEquals0(t1, 1);
- t2 = _this._serialize0$_buffer;
- t2.write$1(0, opaque ? "hsl(" : "hsla(");
- _this._serialize0$_writeNumber$1(value.get$hue(0));
- t2.write$1(0, ", ");
- _this._serialize0$_writeNumber$1(value.get$saturation(0));
- t2.writeCharCode$1(37);
- t2.write$1(0, ", ");
- _this._serialize0$_writeNumber$1(value.get$lightness(0));
- t2.writeCharCode$1(37);
- if (!opaque) {
- t2.write$1(0, ", ");
- _this._serialize0$_writeNumber$1(t1);
- }
- t2.writeCharCode$1(41);
- break $label0$0;
- }
- if (_1_0 instanceof A.SpanColorFormat0) {
- _this._serialize0$_buffer.write$1(0, _1_0._color1$_span.get$text());
- break $label0$0;
- }
- }
- else {
- _3_0 = $.$get$namesByColor0().$index(0, value);
- if (_3_0 != null) {
- t1 = !A.fuzzyEquals0(value._color1$_alpha, 0);
- $name = _3_0;
- } else {
- $name = null;
- t1 = false;
- }
- if (t1)
- _this._serialize0$_buffer.write$1(0, $name);
- else if (A.fuzzyEquals0(value._color1$_alpha, 1)) {
- _this._serialize0$_buffer.writeCharCode$1(35);
- _this._serialize0$_writeHexComponent$1(value.get$red(0));
- _this._serialize0$_writeHexComponent$1(value.get$green(0));
- _this._serialize0$_writeHexComponent$1(value.get$blue(0));
- } else
- _this._serialize0$_writeRgb$1(value);
- }
- }
- },
- _serialize0$_writeRgb$1(value) {
- var t3,
- t1 = value._color1$_alpha,
- opaque = A.fuzzyEquals0(t1, 1),
- t2 = this._serialize0$_buffer;
- t2.write$1(0, opaque ? "rgb(" : "rgba(");
- t2.write$1(0, value.get$red(0));
- t3 = this._serialize0$_style === B.OutputStyle_10;
- t2.write$1(0, t3 ? "," : ", ");
- t2.write$1(0, value.get$green(0));
- t2.write$1(0, t3 ? "," : ", ");
- t2.write$1(0, value.get$blue(0));
- if (!opaque) {
- t2.write$1(0, t3 ? "," : ", ");
- this._serialize0$_writeNumber$1(t1);
- }
- t2.writeCharCode$1(41);
- },
- _serialize0$_canUseShortHex$1(color) {
- var t1 = color.get$red(0);
- if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$green(0);
- if ((t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4)) {
- t1 = color.get$blue(0);
- t1 = (t1 & 15) === B.JSInt_methods._shrOtherPositive$1(t1, 4);
- } else
- t1 = false;
- } else
- t1 = false;
- return t1;
- },
- _serialize0$_writeHexComponent$1(color) {
- var t1 = this._serialize0$_buffer;
- t1.writeCharCode$1(A.hexCharFor0(B.JSInt_methods._shrOtherPositive$1(color, 4)));
- t1.writeCharCode$1(A.hexCharFor0(color & 15));
- },
- visitList$1(value) {
- var t2, t3, singleton, t4, t5, _this = this,
- t1 = value._list1$_hasBrackets;
- if (t1)
- _this._serialize0$_buffer.writeCharCode$1(91);
- else if (value._list1$_contents.length === 0) {
- if (!_this._serialize0$_inspect)
- throw A.wrapException(A.SassScriptException$0("() isn't a valid CSS value.", null));
- _this._serialize0$_buffer.write$1(0, "()");
- return;
- }
- t2 = _this._serialize0$_inspect;
- if (t2)
- if (value._list1$_contents.length === 1) {
- t3 = value._list1$_separator;
- t3 = t3 === B.ListSeparator_ECn0 || t3 === B.ListSeparator_cQA0;
- singleton = t3;
- } else
- singleton = false;
- else
- singleton = false;
- if (singleton && !t1)
- _this._serialize0$_buffer.writeCharCode$1(40);
- t3 = value._list1$_contents;
- t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure2(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
- t4 = value._list1$_separator;
- t5 = _this._serialize0$_separatorString$1(t4);
- _this._serialize0$_writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure3(_this, value) : new A._SerializeVisitor_visitList_closure4(_this));
- if (singleton) {
- t2 = _this._serialize0$_buffer;
- t2.write$1(0, t4.separator);
- if (!t1)
- t2.writeCharCode$1(41);
- }
- if (t1)
- _this._serialize0$_buffer.writeCharCode$1(93);
- },
- _serialize0$_separatorString$1(separator) {
- var t1;
- $label0$0: {
- if (B.ListSeparator_ECn0 === separator) {
- t1 = this._serialize0$_style === B.OutputStyle_10 ? "," : ", ";
- break $label0$0;
- }
- if (B.ListSeparator_cQA0 === separator) {
- t1 = this._serialize0$_style === B.OutputStyle_10 ? "/" : " / ";
- break $label0$0;
- }
- if (B.ListSeparator_nbm0 === separator) {
- t1 = " ";
- break $label0$0;
- }
- t1 = "";
- break $label0$0;
- }
- return t1;
- },
- _serialize0$_elementNeedsParens$2(separator, value) {
- var t1;
- $label1$1: {
- if (value instanceof A.SassList0 && value._list1$_contents.length > 1 && !value._list1$_hasBrackets) {
- $label0$0: {
- if (B.ListSeparator_ECn0 === separator) {
- t1 = value._list1$_separator === B.ListSeparator_ECn0;
- break $label0$0;
- }
- if (B.ListSeparator_cQA0 === separator) {
- t1 = value._list1$_separator;
- t1 = t1 === B.ListSeparator_ECn0 || t1 === B.ListSeparator_cQA0;
- break $label0$0;
- }
- t1 = value._list1$_separator !== B.ListSeparator_undecided_null_undecided0;
- break $label0$0;
- }
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- return t1;
- },
- visitMap$1(map) {
- var t1, t2, _this = this;
- if (!_this._serialize0$_inspect)
- throw A.wrapException(A.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value.", null));
- t1 = _this._serialize0$_buffer;
- t1.writeCharCode$1(40);
- t2 = map._map0$_contents;
- _this._serialize0$_writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure0(_this));
- t1.writeCharCode$1(41);
- },
- _serialize0$_writeMapElement$1(value) {
- var needsParens = value instanceof A.SassList0 && value._list1$_separator === B.ListSeparator_ECn0 && !value._list1$_hasBrackets;
- if (needsParens)
- this._serialize0$_buffer.writeCharCode$1(40);
- value.accept$1(this);
- if (needsParens)
- this._serialize0$_buffer.writeCharCode$1(41);
- },
- visitNumber$1(value) {
- var before, after, t1, _1_0, _this = this,
- _0_0 = value.asSlash;
- if (type$.Record_2_nullable_Object_and_nullable_Object._is(_0_0)) {
- before = _0_0._0;
- after = _0_0._1;
- _this.visitNumber$1(before);
- _this._serialize0$_buffer.writeCharCode$1(47);
- _this.visitNumber$1(after);
- return;
- }
- t1 = value._number1$_value;
- if (!isFinite(t1)) {
- _this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
- return;
- }
- if (value.get$hasComplexUnits()) {
- if (!_this._serialize0$_inspect)
- throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", null));
- _this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
- } else {
- _this._serialize0$_writeNumber$1(t1);
- _1_0 = value.get$numeratorUnits(value);
- if (_1_0.length === 1)
- _this._serialize0$_buffer.write$1(0, _1_0[0]);
- }
- },
- _serialize0$_writeNumber$1(number) {
- var text, _this = this,
- _0_0 = A.fuzzyAsInt0(number);
- if (_0_0 != null) {
- _this._serialize0$_buffer.write$1(0, _this._serialize0$_removeExponent$1(B.JSInt_methods.toString$0(_0_0)));
- return;
- }
- text = _this._serialize0$_removeExponent$1(B.JSNumber_methods.toString$0(number));
- if (text.length < 12) {
- if (_this._serialize0$_style === B.OutputStyle_10 && text.charCodeAt(0) === 48)
- text = B.JSString_methods.substring$1(text, 1);
- _this._serialize0$_buffer.write$1(0, text);
- return;
- }
- _this._serialize0$_writeRounded$1(text);
- },
- _serialize0$_removeExponent$1(text) {
- var buffer, t2, t3, additionalZeroes,
- negative = text.charCodeAt(0) === 45,
- exponent = A._Cell$(),
- t1 = text.length,
- i = 0;
- while (true) {
- if (!(i < t1)) {
- buffer = null;
- break;
- }
- c$0: {
- if (text.charCodeAt(i) !== 101)
- break c$0;
- buffer = new A.StringBuffer("");
- t2 = buffer._contents = "" + A.Primitives_stringFromCharCode(text.charCodeAt(0));
- if (negative) {
- t2 += A.Primitives_stringFromCharCode(text.charCodeAt(1));
- buffer._contents = t2;
- if (i > 3)
- buffer._contents = t2 + B.JSString_methods.substring$2(text, 3, i);
- } else if (i > 2)
- buffer._contents = t2 + B.JSString_methods.substring$2(text, 2, i);
- exponent.__late_helper$_value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t1), null);
- break;
- }
- ++i;
- }
- if (buffer == null)
- return text;
- if (exponent._readLocal$0() > 0) {
- t1 = exponent._readLocal$0();
- t2 = buffer._contents;
- t3 = negative ? 1 : 0;
- additionalZeroes = t1 - (t2.length - 1 - t3);
- for (t1 = t2, i = 0; i < additionalZeroes; ++i) {
- t1 = A.Primitives_stringFromCharCode(48);
- t1 = buffer._contents += t1;
- }
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- } else {
- negative = text.charCodeAt(0) === 45;
- t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0.";
- i = -1;
- while (true) {
- t2 = exponent.__late_helper$_value;
- if (t2 === exponent)
- A.throwExpression(A.LateError$localNI(""));
- if (!(i > t2))
- break;
- t1 += A.Primitives_stringFromCharCode(48);
- --i;
- }
- if (negative) {
- t2 = buffer._contents;
- t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
- } else
- t2 = buffer;
- t2 = t1 + A.S(t2);
- return t2.charCodeAt(0) == 0 ? t2 : t2;
- }
- },
- _serialize0$_writeRounded$1(text) {
- var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex, t2, _this = this;
- if (B.JSString_methods.endsWith$1(text, ".0")) {
- _this._serialize0$_buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2));
- return;
- }
- t1 = text.length;
- digits = new Uint8Array(t1 + 1);
- negative = text.charCodeAt(0) === 45;
- textIndex = negative ? 1 : 0;
- for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) {
- if (textIndex === t1) {
- _this._serialize0$_buffer.write$1(0, text);
- return;
- }
- textIndex0 = textIndex + 1;
- codeUnit = text.charCodeAt(textIndex);
- if (codeUnit === 46) {
- textIndex = textIndex0;
- break;
- }
- digitsIndex0 = digitsIndex + 1;
- digits[digitsIndex] = codeUnit - 48;
- }
- indexAfterPrecision = textIndex + 10;
- if (indexAfterPrecision >= t1) {
- _this._serialize0$_buffer.write$1(0, text);
- return;
- }
- for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) {
- digitsIndex1 = digitsIndex0 + 1;
- textIndex0 = textIndex + 1;
- digits[digitsIndex0] = text.charCodeAt(textIndex) - 48;
- }
- if (text.charCodeAt(textIndex) - 48 >= 5)
- for (; true; digitsIndex0 = digitsIndex1) {
- digitsIndex1 = digitsIndex0 - 1;
- newDigit = digits[digitsIndex1] + 1;
- digits[digitsIndex1] = newDigit;
- if (newDigit !== 10)
- break;
- }
- for (; digitsIndex0 < digitsIndex; ++digitsIndex0)
- digits[digitsIndex0] = 0;
- while (true) {
- t1 = digitsIndex0 > digitsIndex;
- if (!(t1 && digits[digitsIndex0 - 1] === 0))
- break;
- --digitsIndex0;
- }
- if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) {
- _this._serialize0$_buffer.writeCharCode$1(48);
- return;
- }
- if (negative)
- _this._serialize0$_buffer.writeCharCode$1(45);
- if (digits[0] === 0)
- writtenIndex = _this._serialize0$_style === B.OutputStyle_10 && digits[1] === 0 ? 2 : 1;
- else
- writtenIndex = 0;
- for (t2 = _this._serialize0$_buffer; writtenIndex < digitsIndex; ++writtenIndex)
- t2.writeCharCode$1(48 + digits[writtenIndex]);
- if (t1) {
- t2.writeCharCode$1(46);
- for (; writtenIndex < digitsIndex0; ++writtenIndex)
- t2.writeCharCode$1(48 + digits[writtenIndex]);
- }
- },
- _serialize0$_visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) {
- var t1, includesSingleQuote, includesDoubleQuote, i, char, _1_2, _1_4, _0_0, quote, _this = this,
- buffer = forceDoubleQuote ? _this._serialize0$_buffer : new A.StringBuffer("");
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
- char = string.charCodeAt(i);
- _1_2 = 39 === char;
- if (_1_2 && forceDoubleQuote) {
- buffer.writeCharCode$1(39);
- continue;
- }
- if (_1_2 && includesDoubleQuote) {
- _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- }
- if (_1_2) {
- buffer.writeCharCode$1(39);
- includesSingleQuote = true;
- continue;
- }
- _1_4 = 34 === char;
- if (_1_4 && forceDoubleQuote) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(34);
- continue;
- }
- if (_1_4 && includesSingleQuote) {
- _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
- return;
- }
- if (_1_4) {
- buffer.writeCharCode$1(34);
- includesDoubleQuote = true;
- continue;
- }
- if (0 === char || 1 === char || 2 === char || 3 === char || 4 === char || 5 === char || 6 === char || 7 === char || 8 === char || 10 === char || 11 === char || 12 === char || 13 === char || 14 === char || 15 === char || 16 === char || 17 === char || 18 === char || 19 === char || 20 === char || 21 === char || 22 === char || 23 === char || 24 === char || 25 === char || 26 === char || 27 === char || 28 === char || 29 === char || 30 === char || 31 === char || 127 === char) {
- _this._serialize0$_writeEscape$4(buffer, char, string, i);
- continue;
- }
- if (92 === char) {
- buffer.writeCharCode$1(92);
- buffer.writeCharCode$1(92);
- continue;
- }
- _0_0 = _this._serialize0$_tryPrivateUseCharacter$4(buffer, char, string, i);
- if (_0_0 != null)
- i = _0_0;
- else
- buffer.writeCharCode$1(char);
- }
- if (forceDoubleQuote)
- buffer.writeCharCode$1(34);
- else {
- quote = includesDoubleQuote ? 39 : 34;
- t1 = _this._serialize0$_buffer;
- t1.writeCharCode$1(quote);
- t1.write$1(0, buffer);
- t1.writeCharCode$1(quote);
- }
- },
- _serialize0$_visitQuotedString$1(string) {
- return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false);
- },
- _serialize0$_visitUnquotedString$1(string) {
- var t1, t2, afterNewline, i, _1_0, _0_0;
- for (t1 = string.length, t2 = this._serialize0$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
- _1_0 = string.charCodeAt(i);
- if (10 === _1_0) {
- t2.writeCharCode$1(32);
- afterNewline = true;
- continue;
- }
- if (32 === _1_0) {
- if (!afterNewline)
- t2.writeCharCode$1(32);
- continue;
- }
- _0_0 = this._serialize0$_tryPrivateUseCharacter$4(t2, _1_0, string, i);
- if (_0_0 != null)
- i = _0_0;
- else
- t2.writeCharCode$1(_1_0);
- afterNewline = false;
- }
- },
- _serialize0$_tryPrivateUseCharacter$4(buffer, codeUnit, string, i) {
- var t1;
- if (this._serialize0$_style === B.OutputStyle_10)
- return null;
- if (codeUnit >= 57344 && codeUnit <= 63743) {
- this._serialize0$_writeEscape$4(buffer, codeUnit, string, i);
- return i;
- }
- if (codeUnit >>> 7 === 439 && string.length > i + 1) {
- t1 = i + 1;
- this._serialize0$_writeEscape$4(buffer, 65536 + ((codeUnit & 1023) << 10) + (string.charCodeAt(t1) & 1023), string, t1);
- return t1;
- }
- return null;
- },
- _serialize0$_writeEscape$4(buffer, character, string, i) {
- var t1, next;
- buffer.writeCharCode$1(92);
- buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16));
- t1 = i + 1;
- if (string.length === t1)
- return;
- next = string.charCodeAt(t1);
- if (A.CharacterExtension_get_isHex0(next) || 32 === next || 9 === next)
- buffer.writeCharCode$1(32);
- },
- visitAttributeSelector$1(attribute) {
- var _0_0, t2,
- t1 = this._serialize0$_buffer;
- t1.writeCharCode$1(91);
- t1.write$1(0, attribute.name);
- _0_0 = attribute.value;
- if (_0_0 != null) {
- t1.write$1(0, attribute.op);
- if (A.Parser_isIdentifier0(_0_0) && !B.JSString_methods.startsWith$1(_0_0, "--")) {
- t1.write$1(0, _0_0);
- t2 = attribute.modifier;
- if (t2 != null)
- t1.writeCharCode$1(32);
- } else {
- this._serialize0$_visitQuotedString$1(_0_0);
- t2 = attribute.modifier;
- if (t2 != null)
- if (this._serialize0$_style !== B.OutputStyle_10)
- t1.writeCharCode$1(32);
- }
- A.NullableExtension_andThen0(t2, t1.get$write(t1));
- }
- t1.writeCharCode$1(93);
- },
- visitClassSelector$1(klass) {
- var t1 = this._serialize0$_buffer;
- t1.writeCharCode$1(46);
- t1.write$1(0, klass.name);
- },
- visitComplexSelector$1(complex) {
- var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this,
- t1 = complex.leadingCombinators;
- _this._serialize0$_writeCombinators$1(t1);
- if (t1.length >= 1 && complex.components.length >= 1)
- if (_this._serialize0$_style !== B.OutputStyle_10)
- _this._serialize0$_buffer.writeCharCode$1(32);
- for (t1 = complex.components, t2 = t1.length, t3 = t2 - 1, t4 = _this._serialize0$_buffer, t5 = _this._serialize0$_style === B.OutputStyle_10, t6 = !t5, i = 0; i < t2; ++i) {
- component = t1[i];
- _this.visitCompoundSelector$1(component.selector);
- t7 = component.combinators;
- t8 = t7.length === 0;
- if (!t8)
- if (t6)
- t4.writeCharCode$1(32);
- t9 = t5 ? "" : " ";
- _this._serialize0$_writeBetween$3(t7, t9, t4.get$write(t4));
- if (i !== t3)
- t7 = !t5 || t8;
- else
- t7 = false;
- if (t7)
- t4.writeCharCode$1(32);
- }
- },
- _serialize0$_writeCombinators$1(combinators) {
- var t1 = this._serialize0$_style === B.OutputStyle_10 ? "" : " ",
- t2 = this._serialize0$_buffer;
- return this._serialize0$_writeBetween$3(combinators, t1, t2.get$write(t2));
- },
- visitCompoundSelector$1(compound) {
- var t2, t3, _i,
- t1 = this._serialize0$_buffer,
- start = t1.get$length(t1);
- for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
- t2[_i].accept$1(this);
- if (t1.get$length(t1) === start)
- t1.writeCharCode$1(42);
- },
- visitIDSelector$1(id) {
- var t1 = this._serialize0$_buffer;
- t1.writeCharCode$1(35);
- t1.write$1(0, id.name);
- },
- visitSelectorList$1(list) {
- var t1, t2, t3, t4, first, t5, _this = this,
- complexes = list.components;
- for (t1 = J.get$iterator$ax(_this._serialize0$_inspect ? complexes : new A.WhereIterable(complexes, new A._SerializeVisitor_visitSelectorList_closure0(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"))), t2 = _this._serialize0$_style !== B.OutputStyle_10, t3 = _this._serialize0$_buffer, t4 = _this._lineFeed.text, first = true; t1.moveNext$0();) {
- t5 = t1.get$current(t1);
- if (first)
- first = false;
- else {
- t3.writeCharCode$1(44);
- if (t5.lineBreak) {
- if (t2)
- t3.write$1(0, t4);
- _this._serialize0$_writeIndentation$0();
- } else if (t2)
- t3.writeCharCode$1(32);
- }
- _this.visitComplexSelector$1(t5);
- }
- },
- visitParentSelector$1($parent) {
- var t1 = this._serialize0$_buffer;
- t1.writeCharCode$1(38);
- A.NullableExtension_andThen0($parent.suffix, t1.get$write(t1));
- },
- visitPlaceholderSelector$1(placeholder) {
- var t1 = this._serialize0$_buffer;
- t1.writeCharCode$1(37);
- t1.write$1(0, placeholder.name);
- },
- visitPseudoSelector$1(pseudo) {
- var _0_4, t2, t3,
- t1 = pseudo.name;
- if ("not" === t1) {
- _0_4 = pseudo.selector;
- if (_0_4 instanceof A.SelectorList0)
- t2 = (_0_4 == null ? type$.SelectorList_2._as(_0_4) : _0_4).accept$1(B._IsInvisibleVisitor_true0);
- else
- t2 = false;
- } else
- t2 = false;
- if (t2)
- return;
- t2 = this._serialize0$_buffer;
- t2.writeCharCode$1(58);
- if (!pseudo.isSyntacticClass)
- t2.writeCharCode$1(58);
- t2.write$1(0, t1);
- t1 = pseudo.argument;
- t3 = t1 == null;
- if (t3 && pseudo.selector == null)
- return;
- t2.writeCharCode$1(40);
- if (!t3) {
- t2.write$1(0, t1);
- if (pseudo.selector != null)
- t2.writeCharCode$1(32);
- }
- A.NullableExtension_andThen0(pseudo.selector, this.get$visitSelectorList());
- t2.writeCharCode$1(41);
- },
- visitTypeSelector$1(type) {
- this._serialize0$_buffer.write$1(0, type.name);
- },
- visitUniversalSelector$1(universal) {
- var t2,
- t1 = universal.namespace;
- if (t1 != null) {
- t2 = this._serialize0$_buffer;
- t2.write$1(0, t1);
- t2.writeCharCode$1(124);
- }
- this._serialize0$_buffer.writeCharCode$1(42);
- },
- _serialize0$_write$1(value) {
- return this._serialize0$_buffer.forSpan$2(value.span, new A._SerializeVisitor__write_closure0(this, value));
- },
- _serialize0$_visitChildren$1($parent) {
- var t2, t3, t4, t5, t6, t7, t8, prePrevious, previous, t9, previous0, t10, savedIndentation, _this = this,
- t1 = _this._serialize0$_buffer;
- t1.writeCharCode$1(123);
- for (t2 = $parent.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = _this._serialize0$_style === B.OutputStyle_10, t5 = !t4, t6 = _this.get$_serialize0$_requiresSemicolon(), t7 = !_this._serialize0$_inspect, t3 = t3._eval$1("ListBase.E"), t8 = _this._lineFeed.text, prePrevious = null, previous = null; t2.moveNext$0();) {
- t9 = t2.__internal$_current;
- previous0 = t9 == null ? t3._as(t9) : t9;
- if (t7)
- t9 = t4 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0);
- else
- t9 = false;
- if (t9)
- continue;
- t9 = previous == null;
- t10 = t9 ? null : t6.call$1(previous);
- if (t10 == null ? false : t10)
- t1.writeCharCode$1(59);
- if (_this._serialize0$_isTrailingComment$2(previous0, t9 ? $parent : previous)) {
- if (t5)
- t1.writeCharCode$1(32);
- savedIndentation = _this._serialize0$_indentation;
- _this._serialize0$_indentation = 0;
- new A._SerializeVisitor__visitChildren_closure1(_this, previous0).call$0();
- _this._serialize0$_indentation = savedIndentation;
- } else {
- if (t5)
- t1.write$1(0, t8);
- ++_this._serialize0$_indentation;
- new A._SerializeVisitor__visitChildren_closure2(_this, previous0).call$0();
- --_this._serialize0$_indentation;
- }
- prePrevious = previous;
- previous = previous0;
- }
- if (previous != null) {
- if ((type$.CssParentNode_2._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0)) && t5)
- t1.writeCharCode$1(59);
- if (prePrevious == null && _this._serialize0$_isTrailingComment$2(previous, $parent)) {
- if (t5)
- t1.writeCharCode$1(32);
- } else {
- _this._serialize0$_writeLineFeed$0();
- _this._serialize0$_writeIndentation$0();
- }
- }
- t1.writeCharCode$1(125);
- },
- _serialize0$_requiresSemicolon$1(node) {
- return type$.CssParentNode_2._is(node) ? node.get$isChildless() : !(node instanceof A.ModifiableCssComment0);
- },
- _serialize0$_isTrailingComment$2(node, previous) {
- var t1, t2, t3, searchFrom, endOffset, t4, span;
- if (this._serialize0$_style === B.OutputStyle_10)
- return false;
- if (!(node instanceof A.ModifiableCssComment0))
- return false;
- t1 = node.span;
- t2 = t1.get$sourceUrl(t1);
- t3 = previous.get$span(previous);
- if (!J.$eq$(t2, t3.get$sourceUrl(t3)))
- return false;
- t2 = previous.get$span(previous);
- if (!(J.$eq$(t2.get$file(t2).url, t1.get$file(t1).url) && t2.get$start(t2).offset <= t1.get$start(t1).offset && t2.get$end(t2).offset >= t1.get$end(t1).offset)) {
- t1 = t1.get$start(t1);
- t1 = t1.file.getLine$1(t1.offset);
- t2 = previous.get$span(previous);
- t2 = t2.get$end(t2);
- return t1 === t2.file.getLine$1(t2.offset);
- }
- t2 = t1.get$start(t1);
- t3 = previous.get$span(previous);
- searchFrom = t2.offset - t3.get$start(t3).offset - 1;
- if (searchFrom < 0)
- return false;
- endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom));
- t2 = previous.get$span(previous);
- t2 = t2.get$file(t2);
- t3 = previous.get$span(previous);
- t3 = t3.get$start(t3);
- t4 = previous.get$span(previous);
- span = t2.span$2(0, t3.offset, t4.get$start(t4).offset + endOffset);
- t1 = t1.get$start(t1);
- t1 = t1.file.getLine$1(t1.offset);
- t4 = A.FileLocation$_(span.file, span._end);
- return t1 === t4.file.getLine$1(t4.offset);
- },
- _serialize0$_writeLineFeed$0() {
- if (this._serialize0$_style !== B.OutputStyle_10)
- this._serialize0$_buffer.write$1(0, this._lineFeed.text);
- },
- _serialize0$_writeIndentation$0() {
- var _this = this;
- if (_this._serialize0$_style === B.OutputStyle_10)
- return;
- _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth);
- },
- _serialize0$_writeTimes$2(char, times) {
- var t1, i;
- for (t1 = this._serialize0$_buffer, i = 0; i < times; ++i)
- t1.writeCharCode$1(char);
- },
- _serialize0$_writeBetween$1$3(iterable, text, callback) {
- var t1, t2, first, value;
- for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize0$_buffer, first = true; t1.moveNext$0();) {
- value = t1.get$current(t1);
- if (first)
- first = false;
- else
- t2.write$1(0, text);
- callback.call$1(value);
- }
- },
- _serialize0$_writeBetween$3(iterable, text, callback) {
- return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic);
- }
- };
- A._SerializeVisitor_visitCssComment_closure0.prototype = {
- call$0() {
- var t2, t3, _0_0, minimumIndentation,
- t1 = this.$this;
- if (t1._serialize0$_style === B.OutputStyle_10 && this.node.text.charCodeAt(2) !== 33)
- return;
- t2 = this.node;
- t3 = t2.text;
- if (B.JSString_methods.startsWith$1(t3, A.RegExp_RegExp("/\\*# source(Mapping)?URL=", false)))
- return;
- _0_0 = t1._serialize0$_minimumIndentation$1(t3);
- if (_0_0 != null) {
- t2 = t2.span;
- t2 = t2.get$start(t2);
- minimumIndentation = Math.min(_0_0, t2.file.getColumn$1(t2.offset));
- t1._serialize0$_writeIndentation$0();
- t1._serialize0$_writeWithIndent$2(t3, minimumIndentation);
- } else {
- t1._serialize0$_writeIndentation$0();
- t1._serialize0$_buffer.write$1(0, t3);
- }
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssAtRule_closure0.prototype = {
- call$0() {
- var t3, _0_0,
- t1 = this.$this,
- t2 = t1._serialize0$_buffer;
- t2.writeCharCode$1(64);
- t3 = this.node;
- t1._serialize0$_write$1(t3.name);
- _0_0 = t3.value;
- if (_0_0 != null) {
- t2.writeCharCode$1(32);
- t1._serialize0$_write$1(_0_0);
- }
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssMediaRule_closure0.prototype = {
- call$0() {
- var t3, firstQuery, t4, t5,
- t1 = this.$this,
- t2 = t1._serialize0$_buffer;
- t2.write$1(0, "@media");
- t3 = this.node.queries;
- firstQuery = B.JSArray_methods.get$first(t3);
- t4 = t1._serialize0$_style === B.OutputStyle_10;
- if (t4)
- if (firstQuery.modifier == null)
- if (firstQuery.type == null) {
- t5 = firstQuery.conditions;
- t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not ");
- } else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5)
- t2.writeCharCode$1(32);
- t2 = t4 ? "," : ", ";
- t1._serialize0$_writeBetween$3(t3, t2, t1.get$_serialize0$_visitMediaQuery());
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssImport_closure0.prototype = {
- call$0() {
- var t3, t4, _0_0,
- t1 = this.$this,
- t2 = t1._serialize0$_buffer;
- t2.write$1(0, "@import");
- t3 = t1._serialize0$_style !== B.OutputStyle_10;
- if (t3)
- t2.writeCharCode$1(32);
- t4 = this.node;
- t2.forSpan$2(t4.url.span, new A._SerializeVisitor_visitCssImport__closure0(t1, t4));
- _0_0 = t4.modifiers;
- if (_0_0 != null) {
- if (t3)
- t2.writeCharCode$1(32);
- t2.write$1(0, _0_0);
- }
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssImport__closure0.prototype = {
- call$0() {
- return this.$this._serialize0$_writeImportUrl$1(this.node.url.value);
- },
- $signature: 0
- };
- A._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._serialize0$_style === B.OutputStyle_10 ? "," : ", ",
- t3 = t1._serialize0$_buffer;
- return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
- },
- $signature: 0
- };
- A._SerializeVisitor_visitCssStyleRule_closure0.prototype = {
- call$0() {
- return this.$this.visitSelectorList$1(this.node._style_rule0$_selector._box0$_inner.value);
- },
- $signature: 0
- };
- A._SerializeVisitor_visitCssSupportsRule_closure0.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = t1._serialize0$_buffer;
- t2.write$1(0, "@supports");
- if (!(t1._serialize0$_style === B.OutputStyle_10 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
- t2.writeCharCode$1(32);
- t1._serialize0$_write$1(this.node.condition);
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssDeclaration_closure1.prototype = {
- call$0() {
- var t1 = this.$this,
- t2 = this.node;
- if (t1._serialize0$_style === B.OutputStyle_10)
- t1._serialize0$_writeFoldedValue$1(t2);
- else
- t1._serialize0$_writeReindentedValue$1(t2);
- },
- $signature: 1
- };
- A._SerializeVisitor_visitCssDeclaration_closure2.prototype = {
- call$0() {
- return this.node.value.value.accept$1(this.$this);
- },
- $signature: 0
- };
- A._SerializeVisitor_visitList_closure2.prototype = {
- call$1(element) {
- return !element.get$isBlank();
- },
- $signature: 53
- };
- A._SerializeVisitor_visitList_closure3.prototype = {
- call$1(element) {
- var t1 = this.$this,
- needsParens = t1._serialize0$_elementNeedsParens$2(this.value._list1$_separator, element);
- if (needsParens)
- t1._serialize0$_buffer.writeCharCode$1(40);
- element.accept$1(t1);
- if (needsParens)
- t1._serialize0$_buffer.writeCharCode$1(41);
- },
- $signature: 62
- };
- A._SerializeVisitor_visitList_closure4.prototype = {
- call$1(element) {
- element.accept$1(this.$this);
- },
- $signature: 62
- };
- A._SerializeVisitor_visitMap_closure0.prototype = {
- call$1(entry) {
- var t1 = this.$this;
- t1._serialize0$_writeMapElement$1(entry.key);
- t1._serialize0$_buffer.write$1(0, ": ");
- t1._serialize0$_writeMapElement$1(entry.value);
- },
- $signature: 536
- };
- A._SerializeVisitor_visitSelectorList_closure0.prototype = {
- call$1(complex) {
- return !complex.accept$1(B._IsInvisibleVisitor_true0);
- },
- $signature: 18
- };
- A._SerializeVisitor__write_closure0.prototype = {
- call$0() {
- return this.$this._serialize0$_buffer.write$1(0, this.value.value);
- },
- $signature: 0
- };
- A._SerializeVisitor__visitChildren_closure1.prototype = {
- call$0() {
- return this.child.accept$1(this.$this);
- },
- $signature: 0
- };
- A._SerializeVisitor__visitChildren_closure2.prototype = {
- call$0() {
- this.child.accept$1(this.$this);
- },
- $signature: 0
- };
- A.OutputStyle0.prototype = {
- _enumToString$0() {
- return "OutputStyle." + this._name;
- }
- };
- A.LineFeed0.prototype = {
- _enumToString$0() {
- return "LineFeed." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.ShadowedModuleView0.prototype = {
- get$url(_) {
- var t1 = this._shadowed_view0$_inner;
- return t1.get$url(t1);
- },
- get$upstream() {
- return this._shadowed_view0$_inner.get$upstream();
- },
- get$extensionStore() {
- return this._shadowed_view0$_inner.get$extensionStore();
- },
- get$css(_) {
- var t1 = this._shadowed_view0$_inner;
- return t1.get$css(t1);
- },
- get$preModuleComments() {
- return this._shadowed_view0$_inner.get$preModuleComments();
- },
- get$transitivelyContainsCss() {
- return this._shadowed_view0$_inner.get$transitivelyContainsCss();
- },
- get$transitivelyContainsExtensions() {
- return this._shadowed_view0$_inner.get$transitivelyContainsExtensions();
- },
- setVariable$3($name, value, nodeWithSpan) {
- if (!this.variables.containsKey$1($name))
- throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
- else
- this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan);
- },
- variableIdentity$1($name) {
- return this._shadowed_view0$_inner.variableIdentity$1($name);
- },
- $eq(_, other) {
- var t1, t2, _this = this;
- if (other == null)
- return false;
- if (other instanceof A.ShadowedModuleView0)
- if (_this._shadowed_view0$_inner.$eq(0, other._shadowed_view0$_inner)) {
- t1 = _this.variables;
- t1 = t1.get$keys(t1);
- t2 = other.variables;
- if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
- t1 = _this.functions;
- t1 = t1.get$keys(t1);
- t2 = other.functions;
- if (B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2))) {
- t1 = _this.mixins;
- t1 = t1.get$keys(t1);
- t2 = other.mixins;
- t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
- t1 = t2;
- } else
- t1 = false;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = false;
- return t1;
- },
- get$hashCode(_) {
- var t1 = this._shadowed_view0$_inner;
- return t1.get$hashCode(t1);
- },
- cloneCss$0() {
- var _this = this;
- return new A.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
- },
- toString$0(_) {
- return "shadowed " + this._shadowed_view0$_inner.toString$0(0);
- },
- $isModule1: 1,
- get$variables() {
- return this.variables;
- },
- get$variableNodes() {
- return this.variableNodes;
- },
- get$functions(receiver) {
- return this.functions;
- },
- get$mixins() {
- return this.mixins;
- }
- };
- A.SilentComment0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitSilentComment$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.text;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.SimpleSelector0.prototype = {
- get$specificity() {
- return 1000;
- },
- get$hasComplicatedSuperselectorSemantics() {
- return false;
- },
- addSuffix$1(suffix) {
- return A.throwExpression(A.MultiSpanSassException$0('Selector "' + this.toString$0(0) + "\" can't have a suffix", this.span, "outer selector", A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String), null));
- },
- unify$1(compound) {
- var other, t1, result, addedThis, _i, simple, _this = this;
- if (compound.length === 1) {
- other = compound[0];
- if (!(other instanceof A.UniversalSelector0))
- if (other instanceof A.PseudoSelector0)
- t1 = other.isClass && other.name === "host" || other.get$isHostContext();
- else
- t1 = false;
- else
- t1 = true;
- } else {
- other = null;
- t1 = false;
- }
- if (t1)
- return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2));
- if (B.JSArray_methods.contains$1(compound, _this))
- return compound;
- result = A._setArrayType([], type$.JSArray_SimpleSelector_2);
- for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
- simple = compound[_i];
- if (!addedThis && simple instanceof A.PseudoSelector0) {
- result.push(_this);
- addedThis = true;
- }
- result.push(simple);
- }
- if (!addedThis)
- result.push(_this);
- return result;
- },
- isSuperselector$1(other) {
- var list;
- if (this.$eq(0, other))
- return true;
- if (other instanceof A.PseudoSelector0 && other.isClass) {
- list = other.selector;
- if (list != null && $._subselectorPseudos0.contains$1(0, other.normalizedName))
- return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure0(this));
- }
- return false;
- }
- };
- A.SimpleSelector_isSuperselector_closure0.prototype = {
- call$1(complex) {
- var t1 = complex.components;
- return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure0(this.$this));
- },
- $signature: 18
- };
- A.SimpleSelector_isSuperselector__closure0.prototype = {
- call$1(simple) {
- return this.$this.isSuperselector$1(simple);
- },
- $signature: 14
- };
- A.SingleUnitSassNumber0.prototype = {
- get$numeratorUnits(_) {
- return A.List_List$unmodifiable([this._single_unit$_unit], type$.String);
- },
- get$denominatorUnits(_) {
- return B.List_empty;
- },
- get$hasUnits() {
- return true;
- },
- get$hasComplexUnits() {
- return false;
- },
- withValue$1(value) {
- return new A.SingleUnitSassNumber0(this._single_unit$_unit, value, null);
- },
- withSlash$2(numerator, denominator) {
- return new A.SingleUnitSassNumber0(this._single_unit$_unit, this._number1$_value, new A._Record_2(numerator, denominator));
- },
- hasUnit$1(unit) {
- return unit === this._single_unit$_unit;
- },
- hasCompatibleUnits$1(other) {
- return other instanceof A.SingleUnitSassNumber0 && A.conversionFactor0(this._single_unit$_unit, other._single_unit$_unit) != null;
- },
- hasPossiblyCompatibleUnits$1(other) {
- var t1, knownCompatibilities, otherUnit;
- if (!(other instanceof A.SingleUnitSassNumber0))
- return false;
- t1 = $.$get$_knownCompatibilitiesByUnit0();
- knownCompatibilities = t1.$index(0, this._single_unit$_unit.toLowerCase());
- if (knownCompatibilities == null)
- return true;
- otherUnit = other._single_unit$_unit.toLowerCase();
- return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit);
- },
- compatibleWithUnit$1(unit) {
- return A.conversionFactor0(this._single_unit$_unit, unit) != null;
- },
- coerceToMatch$3(other, $name, otherName) {
- var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null;
- return t1 == null ? this.super$SassNumber$coerceToMatch0(other, $name, otherName) : t1;
- },
- coerceToMatch$1(other) {
- return this.coerceToMatch$3(other, null, null);
- },
- coerceValueToMatch$3(other, $name, otherName) {
- var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null;
- return t1 == null ? this.super$SassNumber$coerceValueToMatch0(other, $name, otherName) : t1;
- },
- coerceValueToMatch$1(other) {
- return this.coerceValueToMatch$3(other, null, null);
- },
- convertToMatch$3(other, $name, otherName) {
- var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null;
- return t1 == null ? this.super$SassNumber$convertToMatch(other, $name, otherName) : t1;
- },
- convertValueToMatch$3(other, $name, otherName) {
- var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null;
- return t1 == null ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : t1;
- },
- convertValueToMatch$1(other) {
- return this.convertValueToMatch$3(other, null, null);
- },
- coerce$3(newNumerators, newDenominators, $name) {
- var t1 = J.getInterceptor$asx(newNumerators);
- t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceToUnit$1(t1.$index(newNumerators, 0)) : null;
- return t1 == null ? this.super$SassNumber$coerce0(newNumerators, newDenominators, $name) : t1;
- },
- coerce$2(newNumerators, newDenominators) {
- return this.coerce$3(newNumerators, newDenominators, null);
- },
- coerceValue$3(newNumerators, newDenominators, $name) {
- var t1 = J.getInterceptor$asx(newNumerators);
- t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceValueToUnit$1(t1.$index(newNumerators, 0)) : null;
- return t1 == null ? this.super$SassNumber$coerceValue0(newNumerators, newDenominators, $name) : t1;
- },
- coerceValueToUnit$2(unit, $name) {
- var t1 = this._single_unit$_coerceValueToUnit$1(unit);
- return t1 == null ? this.super$SassNumber$coerceValueToUnit0(unit, $name) : t1;
- },
- coerceValueToUnit$1(unit) {
- return this.coerceValueToUnit$2(unit, null);
- },
- _single_unit$_coerceToUnit$1(unit) {
- var t1 = this._single_unit$_unit;
- if (t1 === unit)
- return this;
- return A.NullableExtension_andThen0(A.conversionFactor0(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure0(this, unit));
- },
- _single_unit$_coerceValueToUnit$1(unit) {
- return A.NullableExtension_andThen0(A.conversionFactor0(unit, this._single_unit$_unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure0(this));
- },
- multiplyUnits$3(value, otherNumerators, otherDenominators) {
- var mutableOtherDenominators, t1 = {};
- t1.value = value;
- t1.newNumerators = otherNumerators;
- mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
- A.removeFirstWhere0(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure1(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure2(t1, this));
- return A.SassNumber_SassNumber$withUnits0(t1.value, mutableOtherDenominators, t1.newNumerators);
- },
- unaryMinus$0() {
- return new A.SingleUnitSassNumber0(this._single_unit$_unit, -this._number1$_value, null);
- },
- $eq(_, other) {
- var factor;
- if (other == null)
- return false;
- if (other instanceof A.SingleUnitSassNumber0) {
- factor = A.conversionFactor0(other._single_unit$_unit, this._single_unit$_unit);
- return factor != null && A.fuzzyEquals0(this._number1$_value * factor, other._number1$_value);
- } else
- return false;
- },
- get$hashCode(_) {
- var _this = this,
- t1 = _this.hashCache;
- return t1 == null ? _this.hashCache = A.fuzzyHashCode0(_this._number1$_value * _this.canonicalMultiplierForUnit$1(_this._single_unit$_unit)) : t1;
- }
- };
- A.SingleUnitSassNumber__coerceToUnit_closure0.prototype = {
- call$1(factor) {
- return new A.SingleUnitSassNumber0(this.unit, this.$this._number1$_value * factor, null);
- },
- $signature: 537
- };
- A.SingleUnitSassNumber__coerceValueToUnit_closure0.prototype = {
- call$1(factor) {
- return this.$this._number1$_value * factor;
- },
- $signature: 37
- };
- A.SingleUnitSassNumber_multiplyUnits_closure1.prototype = {
- call$1(denominator) {
- var factor = A.conversionFactor0(denominator, this.$this._single_unit$_unit);
- if (factor == null)
- return false;
- this._box_0.value *= factor;
- return true;
- },
- $signature: 4
- };
- A.SingleUnitSassNumber_multiplyUnits_closure2.prototype = {
- call$0() {
- var t1 = A._setArrayType([this.$this._single_unit$_unit], type$.JSArray_String),
- t2 = this._box_0;
- B.JSArray_methods.addAll$1(t1, t2.newNumerators);
- t2.newNumerators = t1;
- },
- $signature: 0
- };
- A.SourceMapBuffer0.prototype = {
- get$_source_map_buffer0$_targetLocation() {
- var t1 = this._source_map_buffer0$_buffer._contents,
- t2 = this._source_map_buffer0$_line;
- return A.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null);
- },
- get$length(_) {
- return this._source_map_buffer0$_buffer._contents.length;
- },
- forSpan$1$2(span, callback) {
- var t1, _this = this,
- wasInSpan = _this._source_map_buffer0$_inSpan;
- _this._source_map_buffer0$_inSpan = true;
- _this._source_map_buffer0$_addEntry$2(span.get$start(span), _this.get$_source_map_buffer0$_targetLocation());
- try {
- t1 = callback.call$0();
- return t1;
- } finally {
- _this._source_map_buffer0$_inSpan = wasInSpan;
- }
- },
- forSpan$2(span, callback) {
- return this.forSpan$1$2(span, callback, type$.dynamic);
- },
- _source_map_buffer0$_addEntry$2(source, target) {
- var entry, t2,
- t1 = this._source_map_buffer0$_entries;
- if (t1.length !== 0) {
- entry = B.JSArray_methods.get$last(t1);
- t2 = entry.source;
- if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line)
- return;
- if (entry.target.offset === target.offset)
- return;
- }
- t1.push(new A.Entry(source, target, null));
- },
- write$1(_, object) {
- var t1, i,
- string = J.toString$0$(object);
- this._source_map_buffer0$_buffer._contents += string;
- for (t1 = string.length, i = 0; i < t1; ++i)
- if (string.charCodeAt(i) === 10)
- this._source_map_buffer0$_writeLine$0();
- else
- ++this._source_map_buffer0$_column;
- },
- writeCharCode$1(charCode) {
- var t1 = this._source_map_buffer0$_buffer,
- t2 = A.Primitives_stringFromCharCode(charCode);
- t1._contents += t2;
- if (charCode === 10)
- this._source_map_buffer0$_writeLine$0();
- else
- ++this._source_map_buffer0$_column;
- },
- _source_map_buffer0$_writeLine$0() {
- var _this = this,
- t1 = _this._source_map_buffer0$_entries;
- if (B.JSArray_methods.get$last(t1).target.line === _this._source_map_buffer0$_line && B.JSArray_methods.get$last(t1).target.column === _this._source_map_buffer0$_column)
- t1.pop();
- ++_this._source_map_buffer0$_line;
- _this._source_map_buffer0$_column = 0;
- if (_this._source_map_buffer0$_inSpan)
- t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null));
- },
- toString$0(_) {
- var t1 = this._source_map_buffer0$_buffer._contents;
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- buildSourceMap$1$prefix(prefix) {
- var i, t2, prefixColumn, _box_0 = {},
- t1 = prefix.length;
- if (t1 === 0)
- return A.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries);
- _box_0.prefixColumn = _box_0.prefixLines = 0;
- for (i = 0, t2 = 0; i < t1; ++i)
- if (prefix.charCodeAt(i) === 10) {
- ++_box_0.prefixLines;
- _box_0.prefixColumn = 0;
- t2 = 0;
- } else {
- prefixColumn = t2 + 1;
- _box_0.prefixColumn = prefixColumn;
- t2 = prefixColumn;
- }
- t2 = this._source_map_buffer0$_entries;
- return A.SingleMapping_SingleMapping$fromEntries(new A.MappedListIterable(t2, new A.SourceMapBuffer_buildSourceMap_closure0(_box_0, t1), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
- }
- };
- A.SourceMapBuffer_buildSourceMap_closure0.prototype = {
- call$1(entry) {
- var t1 = entry.target,
- t2 = t1.line,
- t3 = this._box_0,
- t4 = t3.prefixLines;
- t3 = t2 === 0 ? t3.prefixColumn : 0;
- return new A.Entry(entry.source, A.SourceLocation$(t1.offset + this.prefixLength, t1.column + t3, t2 + t4, null), entry.identifierName);
- },
- $signature: 158
- };
- A.updateSourceSpanPrototype_closure.prototype = {
- call$0() {
- return this.span;
- },
- $signature: 27
- };
- A.updateSourceSpanPrototype_closure0.prototype = {
- call$1(span) {
- return span.get$start(span);
- },
- $signature: 231
- };
- A.updateSourceSpanPrototype_closure1.prototype = {
- call$1(span) {
- return span.get$end(span);
- },
- $signature: 231
- };
- A.updateSourceSpanPrototype_closure2.prototype = {
- call$1(span) {
- return A.NullableExtension_andThen0(span.get$sourceUrl(span), A.utils1__dartToJSUrl$closure());
- },
- $signature: 539
- };
- A.updateSourceSpanPrototype_closure3.prototype = {
- call$1(span) {
- return span.get$text();
- },
- $signature: 223
- };
- A.updateSourceSpanPrototype_closure4.prototype = {
- call$1(span) {
- return span.get$context(span);
- },
- $signature: 223
- };
- A.updateSourceSpanPrototype_closure5.prototype = {
- call$1($location) {
- return $location.get$line();
- },
- $signature: 215
- };
- A.updateSourceSpanPrototype_closure6.prototype = {
- call$1($location) {
- return $location.get$column();
- },
- $signature: 215
- };
- A.StatementSearchVisitor0.prototype = {
- visitAtRootRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitAtRule$1(node) {
- return A.NullableExtension_andThen0(node.children, this.get$visitChildren());
- },
- visitContentBlock$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitContentRule$1(node) {
- return null;
- },
- visitDebugRule$1(node) {
- return null;
- },
- visitDeclaration$1(node) {
- return A.NullableExtension_andThen0(node.children, this.get$visitChildren());
- },
- visitEachRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitErrorRule$1(node) {
- return null;
- },
- visitExtendRule$1(node) {
- return null;
- },
- visitForRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitForwardRule$1(node) {
- return null;
- },
- visitFunctionRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitIfRule$1(node) {
- var t1 = A.IterableExtension_search0(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure1(this));
- return t1 == null ? A.NullableExtension_andThen0(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure2(this)) : t1;
- },
- visitImportRule$1(node) {
- return null;
- },
- visitIncludeRule$1(node) {
- return A.NullableExtension_andThen0(node.content, this.get$visitContentBlock());
- },
- visitLoudComment$1(node) {
- return null;
- },
- visitMediaRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitMixinRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitReturnRule$1(node) {
- return null;
- },
- visitSilentComment$1(node) {
- return null;
- },
- visitStyleRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitStylesheet$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitSupportsRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitUseRule$1(node) {
- return null;
- },
- visitVariableDeclaration$1(node) {
- return null;
- },
- visitWarnRule$1(node) {
- return null;
- },
- visitWhileRule$1(node) {
- return this.visitChildren$1(node.children);
- },
- visitChildren$1(children) {
- return A.IterableExtension_search0(children, new A.StatementSearchVisitor_visitChildren_closure0(this));
- }
- };
- A.StatementSearchVisitor_visitIfRule_closure1.prototype = {
- call$1(clause) {
- return A.IterableExtension_search0(clause.children, new A.StatementSearchVisitor_visitIfRule__closure2(this.$this));
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(IfClause0)");
- }
- };
- A.StatementSearchVisitor_visitIfRule__closure2.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
- }
- };
- A.StatementSearchVisitor_visitIfRule_closure2.prototype = {
- call$1(lastClause) {
- return A.IterableExtension_search0(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure1(this.$this));
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(ElseClause0)");
- }
- };
- A.StatementSearchVisitor_visitIfRule__closure1.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
- }
- };
- A.StatementSearchVisitor_visitChildren_closure0.prototype = {
- call$1(child) {
- return child.accept$1(this.$this);
- },
- $signature() {
- return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
- }
- };
- A.StaticImport0.prototype = {
- toString$0(_) {
- var t1 = this.url.toString$0(0),
- t2 = this.modifiers;
- return t1 + (t2 == null ? "" : " " + t2.toString$0(0));
- },
- $isImport0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.StderrLogger0.prototype = {
- warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
- var t2,
- result = new A.StringBuffer(""),
- t1 = this.color;
- if (t1) {
- t2 = result._contents = "" + "\x1b[33m\x1b[1m";
- t2 = result._contents = (deprecation ? result._contents = t2 + "Deprecation " : t2) + "Warning\x1b[0m";
- } else
- t2 = result._contents = (deprecation ? result._contents = "" + "DEPRECATION " : "") + "WARNING";
- if (span == null)
- t1 = result._contents = t2 + (": " + message + "\n");
- else if (trace != null) {
- t1 = t2 + (": " + message + "\n\n" + span.highlight$1$color(t1) + "\n");
- result._contents = t1;
- } else {
- t1 = t2 + (" on " + span.message$2$color(0, "\n" + message, t1) + "\n");
- result._contents = t1;
- }
- if (trace != null)
- result._contents = t1 + (A.indent0(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4) + "\n");
- A.printError0(result);
- },
- warn$1(_, message) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, null);
- },
- warn$3$span$trace(_, message, span, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
- },
- warn$2$span(_, message, span) {
- return this.warn$4$deprecation$span$trace(0, message, false, span, null);
- },
- warn$2$trace(_, message, trace) {
- return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
- },
- debug$2(_, message, span) {
- var url, t3, t4,
- t1 = span.file,
- t2 = span._file$_start;
- if (A.FileLocation$_(t1, t2).file.url == null)
- url = "-";
- else {
- t3 = A.FileLocation$_(t1, t2).file.url;
- t4 = $.$get$context();
- t3.toString;
- url = t4.prettyUri$1(t3);
- }
- t1 = A.FileLocation$_(t1, t2);
- t1 = t1.file.getLine$1(t1.offset);
- t2 = this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG";
- t2 = "" + (url + ":" + (t1 + 1) + " ") + t2 + (": " + message);
- A.printError0(t2.charCodeAt(0) == 0 ? t2 : t2);
- }
- };
- A.StringExpression0.prototype = {
- get$span(_) {
- return this.text.span;
- },
- accept$1$1(visitor) {
- return visitor.visitStringExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- asInterpolation$1$static($static) {
- var t1, t2, quote, t3, t4, buffer, t5, t6, _i, value;
- if (!this.hasQuotes)
- return this.text;
- t1 = this.text;
- t2 = t1.contents;
- quote = A.StringExpression__bestQuote0(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String));
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer0(t3, t4);
- t5 = A.Primitives_stringFromCharCode(quote);
- t3._contents += t5;
- for (t5 = t2.length, t6 = type$.Expression_2, _i = 0; _i < t5; ++_i) {
- value = t2[_i];
- if (t6._is(value)) {
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(value);
- continue;
- }
- if (typeof value == "string")
- A.StringExpression__quoteInnerText0(value, quote, buffer, $static);
- }
- t2 = A.Primitives_stringFromCharCode(quote);
- t3._contents += t2;
- return buffer.interpolation$1(t1.span);
- },
- asInterpolation$0() {
- return this.asInterpolation$1$static(false);
- },
- toString$0(_) {
- return this.asInterpolation$0().toString$0(0);
- },
- $isExpression0: 1,
- $isAstNode0: 1
- };
- A.module_closure10.prototype = {
- call$1($arguments) {
- var limit, t2, chunks, i, lastEnd, match, t3,
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- separator = t1.$index($arguments, 1).assertString$1("separator");
- t1 = t1.$index($arguments, 2).get$realNull();
- limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit");
- if (limit != null && limit < 1)
- throw A.wrapException(A.SassScriptException$0("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null));
- t1 = string._string0$_text;
- if (t1.length === 0)
- return B.SassList_bdS2;
- else {
- t2 = separator._string0$_text;
- if (t2.length === 0)
- return A.SassList$0(A.MappedIterable_MappedIterable(new A.Runes(t1), new A.module__closure2(string), type$.Runes._eval$1("Iterable.E"), type$.Value_2), B.ListSeparator_ECn0, true);
- }
- chunks = A._setArrayType([], type$.JSArray_String);
- for (t2 = B.JSString_methods.allMatches$1(t2, t1), t2 = new A._StringAllMatchesIterator(t2._input, t2._pattern, t2.__js_helper$_index), i = 0, lastEnd = 0; t2.moveNext$0();) {
- match = t2.__js_helper$_current;
- t3 = match.start;
- chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3));
- lastEnd = t3 + match.pattern.length;
- ++i;
- if (i === limit)
- break;
- }
- chunks.push(B.JSString_methods.substring$1(t1, lastEnd));
- return A.SassList$0(new A.MappedListIterable(chunks, new A.module__closure3(string), type$.MappedListIterable_String_Value_2), B.ListSeparator_ECn0, true);
- },
- $signature: 23
- };
- A.module__closure2.prototype = {
- call$1(rune) {
- return new A.SassString0(A.Primitives_stringFromCharCode(rune), this.string._string0$_hasQuotes);
- },
- $signature: 542
- };
- A.module__closure3.prototype = {
- call$1(chunk) {
- return new A.SassString0(chunk, this.string._string0$_hasQuotes);
- },
- $signature: 543
- };
- A._unquote_closure0.prototype = {
- call$1($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (!string._string0$_hasQuotes)
- return string;
- return new A.SassString0(string._string0$_text, false);
- },
- $signature: 19
- };
- A._quote_closure0.prototype = {
- call$1($arguments) {
- var string = J.$index$asx($arguments, 0).assertString$1("string");
- if (string._string0$_hasQuotes)
- return string;
- return new A.SassString0(string._string0$_text, true);
- },
- $signature: 19
- };
- A._length_closure1.prototype = {
- call$1($arguments) {
- return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).assertString$1("string").get$_string0$_sassLength(), null);
- },
- $signature: 12
- };
- A._insert_closure0.prototype = {
- call$1($arguments) {
- var indexInt, codeUnitIndex, _s5_ = "index",
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- insert = t1.$index($arguments, 1).assertString$1("insert"),
- index = t1.$index($arguments, 2).assertNumber$1(_s5_);
- index.assertNoUnits$1(_s5_);
- indexInt = index.assertInt$1(_s5_);
- if (indexInt < 0)
- indexInt = Math.max(string.get$_string0$_sassLength() + indexInt + 2, 0);
- t1 = string._string0$_text;
- codeUnitIndex = A.codepointIndexToCodeUnitIndex0(t1, A._codepointForIndex0(indexInt, string.get$_string0$_sassLength(), false));
- return new A.SassString0(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string0$_text), string._string0$_hasQuotes);
- },
- $signature: 19
- };
- A._index_closure1.prototype = {
- call$1($arguments) {
- var t1 = J.getInterceptor$asx($arguments),
- t2 = t1.$index($arguments, 0).assertString$1("string")._string0$_text,
- codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string0$_text);
- if (codeUnitIndex === -1)
- return B.C__SassNull0;
- return A.SassNumber_SassNumber0(A.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex) + 1, null);
- },
- $signature: 3
- };
- A._slice_closure0.prototype = {
- call$1($arguments) {
- var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
- _s8_ = "start-at",
- t1 = J.getInterceptor$asx($arguments),
- string = t1.$index($arguments, 0).assertString$1("string"),
- start = t1.$index($arguments, 1).assertNumber$1(_s8_),
- end = t1.$index($arguments, 2).assertNumber$1("end-at");
- start.assertNoUnits$1(_s8_);
- end.assertNoUnits$1("end-at");
- lengthInCodepoints = string.get$_string0$_sassLength();
- endInt = end.assertInt$0();
- if (endInt === 0)
- return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
- startCodepoint = A._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false);
- endCodepoint = A._codepointForIndex0(endInt, lengthInCodepoints, true);
- if (endCodepoint === lengthInCodepoints)
- --endCodepoint;
- if (endCodepoint < startCodepoint)
- return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
- t1 = string._string0$_text;
- return new A.SassString0(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex0(t1, startCodepoint), A.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string._string0$_hasQuotes);
- },
- $signature: 19
- };
- A._toUpperCase_closure0.prototype = {
- call$1($arguments) {
- var t1, t2, i, t3, t4,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
- t4 = t1.charCodeAt(i);
- t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4);
- }
- return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes);
- },
- $signature: 19
- };
- A._toLowerCase_closure0.prototype = {
- call$1($arguments) {
- var t1, t2, i, t3, t4,
- string = J.$index$asx($arguments, 0).assertString$1("string");
- for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
- t4 = t1.charCodeAt(i);
- t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4);
- }
- return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes);
- },
- $signature: 19
- };
- A._uniqueId_closure0.prototype = {
- call$1($arguments) {
- var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1);
- $._previousUniqueId0 = t1;
- if (t1 > Math.pow(36, 6))
- $._previousUniqueId0 = B.JSInt_methods.$mod($.$get$_previousUniqueId0(), A._asInt(Math.pow(36, 6)));
- return new A.SassString0("u" + B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1($.$get$_previousUniqueId0(), 36), 6, "0"), false);
- },
- $signature: 19
- };
- A.stringClass_closure.prototype = {
- call$0() {
- var t2,
- t1 = type$.JSClass,
- jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassString", new A.stringClass__closure()));
- A.LinkedHashMap_LinkedHashMap$_literal(["text", new A.stringClass__closure0(), "hasQuotes", new A.stringClass__closure1(), "sassLength", new A.stringClass__closure2()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- J.get$$prototype$x(jsClass).sassIndexToStringIndex = A.allowInteropCaptureThisNamed("sassIndexToStringIndex", new A.stringClass__closure3());
- t2 = $.$get$_emptyQuoted0();
- A.JSClassExtension_injectSuperclass(t1._as(t2.constructor), jsClass);
- return jsClass;
- },
- $signature: 15
- };
- A.stringClass__closure.prototype = {
- call$3($self, textOrOptions, options) {
- var t1;
- if (typeof textOrOptions == "string") {
- t1 = options == null ? null : J.get$quotes$x(options);
- t1 = new A.SassString0(textOrOptions, t1 == null ? true : t1);
- } else {
- type$.nullable__ConstructorOptions_3._as(textOrOptions);
- t1 = textOrOptions == null ? null : J.get$quotes$x(textOrOptions);
- t1 = (t1 == null ? true : t1) ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
- }
- return t1;
- },
- call$1($self) {
- return this.call$3($self, null, null);
- },
- call$2($self, textOrOptions) {
- return this.call$3($self, textOrOptions, null);
- },
- "call*": "call$3",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null, null];
- },
- $signature: 544
- };
- A.stringClass__closure0.prototype = {
- call$1($self) {
- return $self._string0$_text;
- },
- $signature: 545
- };
- A.stringClass__closure1.prototype = {
- call$1($self) {
- return $self._string0$_hasQuotes;
- },
- $signature: 546
- };
- A.stringClass__closure2.prototype = {
- call$1($self) {
- return $self.get$_string0$_sassLength();
- },
- $signature: 547
- };
- A.stringClass__closure3.prototype = {
- call$3($self, sassIndex, $name) {
- var t1,
- index = sassIndex.assertNumber$1($name).assertInt$1($name);
- if (index === 0)
- A.throwExpression(A.SassScriptException$0("String index may not be 0.", $name));
- else if (Math.abs(index) > $self.get$_string0$_sassLength())
- A.throwExpression(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a string with " + $self.get$_string0$_sassLength() + " characters.", $name));
- t1 = index < 0 ? $self.get$_string0$_sassLength() + index : index - 1;
- return A.codepointIndexToCodeUnitIndex0($self._string0$_text, t1);
- },
- call$2($self, sassIndex) {
- return this.call$3($self, sassIndex, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 548
- };
- A._ConstructorOptions1.prototype = {};
- A._NodeSassString.prototype = {};
- A.legacyStringClass_closure.prototype = {
- call$3(thisArg, value, dartValue) {
- var t1;
- if (dartValue == null) {
- value.toString;
- t1 = new A.SassString0(value, false);
- } else
- t1 = dartValue;
- J.set$dartValue$x(thisArg, t1);
- },
- call$2(thisArg, value) {
- return this.call$3(thisArg, value, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 549
- };
- A.legacyStringClass_closure0.prototype = {
- call$1(thisArg) {
- return J.get$dartValue$x(thisArg)._string0$_text;
- },
- $signature: 550
- };
- A.legacyStringClass_closure1.prototype = {
- call$2(thisArg, value) {
- J.set$dartValue$x(thisArg, new A.SassString0(value, false));
- },
- $signature: 551
- };
- A.SassString0.prototype = {
- get$_string0$_sassLength() {
- var result, _this = this,
- value = _this._string0$__SassString__sassLength_FI;
- if (value === $) {
- result = new A.Runes(_this._string0$_text).get$length(0);
- _this._string0$__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI();
- _this._string0$__SassString__sassLength_FI = result;
- value = result;
- }
- return value;
- },
- get$isSpecialNumber() {
- var t1, _2_0, _0_0, _1_0;
- if (this._string0$_hasQuotes)
- return false;
- t1 = this._string0$_text;
- if (t1.length < 6)
- return false;
- _2_0 = t1.charCodeAt(0);
- $label1$1: {
- if (99 === _2_0 || 67 === _2_0) {
- _0_0 = t1.charCodeAt(1);
- $label0$0: {
- if (108 === _0_0 || 76 === _0_0) {
- t1 = (t1.charCodeAt(2) | 32) === 97 && (t1.charCodeAt(3) | 32) === 109 && (t1.charCodeAt(4) | 32) === 112 && t1.charCodeAt(5) === 40;
- break $label0$0;
- }
- if (97 === _0_0 || 65 === _0_0) {
- t1 = (t1.charCodeAt(2) | 32) === 108 && (t1.charCodeAt(3) | 32) === 99 && t1.charCodeAt(4) === 40;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- break $label1$1;
- }
- if (118 === _2_0 || 86 === _2_0) {
- t1 = (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
- break $label1$1;
- }
- if (101 === _2_0 || 69 === _2_0) {
- t1 = (t1.charCodeAt(1) | 32) === 110 && (t1.charCodeAt(2) | 32) === 118 && t1.charCodeAt(3) === 40;
- break $label1$1;
- }
- if (109 === _2_0 || 77 === _2_0) {
- _1_0 = t1.charCodeAt(1);
- $label2$2: {
- if (97 === _1_0 || 65 === _1_0) {
- t1 = (t1.charCodeAt(2) | 32) === 120 && t1.charCodeAt(3) === 40;
- break $label2$2;
- }
- if (105 === _1_0 || 73 === _1_0) {
- t1 = (t1.charCodeAt(2) | 32) === 110 && t1.charCodeAt(3) === 40;
- break $label2$2;
- }
- t1 = false;
- break $label2$2;
- }
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- return t1;
- },
- get$isVar() {
- if (this._string0$_hasQuotes)
- return false;
- var t1 = this._string0$_text;
- if (t1.length < 8)
- return false;
- return (t1.charCodeAt(0) | 32) === 118 && (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
- },
- get$isBlank() {
- return !this._string0$_hasQuotes && this._string0$_text.length === 0;
- },
- accept$1$1(visitor) {
- var t1 = visitor._serialize0$_quote && this._string0$_hasQuotes,
- t2 = this._string0$_text;
- if (t1)
- visitor._serialize0$_visitQuotedString$1(t2);
- else
- visitor._serialize0$_visitUnquotedString$1(t2);
- return null;
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- assertString$1($name) {
- return this;
- },
- plus$1(other) {
- var t1 = this._string0$_text,
- t2 = this._string0$_hasQuotes;
- return other instanceof A.SassString0 ? new A.SassString0(t1 + other._string0$_text, t2) : new A.SassString0(t1 + A.serializeValue0(other, false, true), t2);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.SassString0 && this._string0$_text === other._string0$_text;
- },
- get$hashCode(_) {
- var t1 = this._string0$_hashCache;
- return t1 == null ? this._string0$_hashCache = B.JSString_methods.get$hashCode(this._string0$_text) : t1;
- }
- };
- A.ModifiableCssStyleRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssStyleRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- var t1;
- if (other instanceof A.ModifiableCssStyleRule0)
- t1 = B.C_ListEquality.equals$2(0, other._style_rule0$_selector._box0$_inner.value.components, this._style_rule0$_selector._box0$_inner.value.components);
- else
- t1 = false;
- return t1;
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssStyleRule$0(this._style_rule0$_selector, this.span, false, this.originalSelector);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.StyleRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitStyleRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.CssStylesheet0.prototype = {
- get$isGroupEnd() {
- return false;
- },
- get$isChildless() {
- return false;
- },
- accept$1$1(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- get$children(receiver) {
- return this.children;
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.ModifiableCssStylesheet0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssStylesheet$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- return other instanceof A.ModifiableCssStylesheet0;
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssStylesheet$0(this.span);
- },
- $isCssStylesheet0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.StylesheetParser0.prototype = {
- parse$0() {
- return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure0(this));
- },
- parseArgumentDeclaration$0() {
- return this._stylesheet0$_parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.ArgumentDeclaration_2);
- },
- _stylesheet0$_parseSingleProduction$1$1(production, $T) {
- return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure0(this, production, $T));
- },
- parseSignature$1$requireParens(requireParens) {
- return this.wrapSpanFormatException$1(new A.StylesheetParser_parseSignature_closure(this, requireParens));
- },
- _stylesheet0$_statement$1$root(root) {
- var t2, _this = this,
- t1 = _this.scanner,
- _0_0 = t1.peekChar$0();
- if (64 === _0_0)
- return _this.atRule$2$root(new A.StylesheetParser__statement_closure0(_this), root);
- if (43 === _0_0) {
- if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
- return _this._stylesheet0$_styleRule$0();
- _this._stylesheet0$_isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- return _this._stylesheet0$_includeRule$1(new A._SpanScannerState(t1, t2));
- }
- if (61 === _0_0) {
- if (!_this.get$indented())
- return _this._stylesheet0$_styleRule$0();
- _this._stylesheet0$_isUseAllowed = false;
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- _this.whitespace$0();
- return _this._stylesheet0$_mixinRule$1(new A._SpanScannerState(t1, t2));
- }
- if (125 === _0_0)
- t1.error$2$length(0, 'unmatched "}".', 1);
- return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0();
- },
- _stylesheet0$_statement$0() {
- return this._stylesheet0$_statement$1$root(false);
- },
- variableDeclarationWithoutNamespace$2(namespace, start_) {
- var t1, start, $name, t2, value, flagStart, t3, guarded, global, _0_0, endPosition, t4, t5, t6, declaration, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- if (start_ == null) {
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- } else
- start = start_;
- $name = _this.variableName$0();
- t1 = namespace != null;
- if (t1)
- _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_this, start));
- if (_this.get$plainCss())
- _this.error$2(0, string$.Sassx20v, _this.scanner.spanFrom$1(start));
- _this.whitespace$0();
- t2 = _this.scanner;
- t2.expectChar$1(58);
- _this.whitespace$0();
- value = _this._stylesheet0$_expression$0();
- flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
- for (t3 = _this.logger, guarded = false, global = false; t2.scanChar$1(33);) {
- $label0$0: {
- _0_0 = _this.identifier$0();
- if ("default" === _0_0) {
- if (guarded) {
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- A.WarnForDeprecation_warnForDeprecation0(t3, B.Deprecation_iXE, string$.x21defau, t6, null);
- }
- guarded = true;
- break $label0$0;
- }
- if ("global" === _0_0) {
- if (t1) {
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- _this.error$2(0, string$.x21globai, t6);
- } else if (global) {
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- A.WarnForDeprecation_warnForDeprecation0(t3, B.Deprecation_iXE, string$.x21globas, t6, null);
- }
- global = true;
- break $label0$0;
- }
- endPosition = t2._string_scanner$_position;
- t4 = t2._sourceFile;
- t5 = flagStart.position;
- t6 = new A._FileSpan(t4, t5, endPosition);
- t6._FileSpan$3(t4, t5, endPosition);
- _this.error$2(0, "Invalid flag name.", t6);
- }
- _this.whitespace$0();
- flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
- }
- _this.expectStatementSeparator$1("variable declaration");
- declaration = A.VariableDeclaration$0($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace);
- if (global)
- _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration));
- return declaration;
- },
- variableDeclarationWithoutNamespace$0() {
- return this.variableDeclarationWithoutNamespace$2(null, null);
- },
- _stylesheet0$_variableDeclarationOrStyleRule$0() {
- var t1, t2, variableOrInterpolation, t3, _this = this;
- if (_this.get$plainCss())
- return _this._stylesheet0$_styleRule$0();
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._stylesheet0$_styleRule$0();
- if (!_this.lookingAtIdentifier$0())
- return _this._stylesheet0$_styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof A.VariableDeclaration0)
- t1 = variableOrInterpolation;
- else {
- t3 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
- t3.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
- t2 = _this._stylesheet0$_styleRule$2(t3, new A._SpanScannerState(t1, t2));
- t1 = t2;
- }
- return t1;
- },
- _stylesheet0$_declarationOrStyleRule$0() {
- var t1, t2, declarationOrBuffer, _this = this;
- if (_this.get$indented() && _this.scanner.scanChar$1(92))
- return _this._stylesheet0$_styleRule$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0();
- return type$.Statement_2._is(declarationOrBuffer) ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.InterpolationBuffer_2._as(declarationOrBuffer), new A._SpanScannerState(t1, t2));
- },
- _stylesheet0$_declarationOrBuffer$0() {
- var midBuffer, couldBeSelector, beforeDeclaration, value, additional, t2, t3, variableOrInterpolation, t4, t5, $name, postColonWhitespace, _0_0, exception, _1_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- nameBuffer = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object)),
- startsWithPunctuation = _this._stylesheet0$_lookingAtPotentialPropertyHack$0();
- if (startsWithPunctuation) {
- t2 = t1.readChar$0();
- t3 = nameBuffer._interpolation_buffer0$_text;
- t2 = A.Primitives_stringFromCharCode(t2);
- t3._contents += t2;
- t2 = _this.rawText$1(_this.get$whitespace());
- t3 = nameBuffer._interpolation_buffer0$_text;
- t3._contents += t2;
- }
- if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- return nameBuffer;
- variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof A.VariableDeclaration0)
- return variableOrInterpolation;
- else
- nameBuffer.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
- _this._stylesheet0$_isUseAllowed = false;
- if (t1.matches$1("/*")) {
- t2 = _this.rawText$1(_this.get$loudComment());
- t3 = nameBuffer._interpolation_buffer0$_text;
- t3._contents += t2;
- }
- midBuffer = new A.StringBuffer("");
- t2 = midBuffer;
- t3 = _this.get$whitespace();
- t4 = _this.rawText$1(t3);
- t2._contents += t4;
- t4 = t1._string_scanner$_position;
- if (!t1.scanChar$1(58)) {
- if (midBuffer._contents.length !== 0) {
- t1 = nameBuffer._interpolation_buffer0$_text;
- t2 = A.Primitives_stringFromCharCode(32);
- t1._contents += t2;
- }
- return nameBuffer;
- }
- t2 = midBuffer;
- t5 = A.Primitives_stringFromCharCode(58);
- t2._contents += t5;
- $name = nameBuffer.interpolation$1(t1.spanFrom$2(start, new A._SpanScannerState(t1, t4)));
- if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
- t2 = _this._stylesheet0$_interpolatedDeclarationValue$1$silentComments(false);
- _this.expectStatementSeparator$1("custom property");
- return A.Declaration$0($name, new A.StringExpression0(t2, false), t1.spanFrom$1(start));
- }
- if (t1.scanChar$1(58)) {
- t1 = nameBuffer;
- t2 = t1._interpolation_buffer0$_text;
- t3 = A.S(midBuffer);
- t2._contents += t3;
- t3 = A.Primitives_stringFromCharCode(58);
- t2._contents += t3;
- return t1;
- } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
- t1 = nameBuffer;
- t2 = t1._interpolation_buffer0$_text;
- t3 = A.S(midBuffer);
- t2._contents += t3;
- return t1;
- }
- postColonWhitespace = _this.rawText$1(t3);
- _0_0 = _this._stylesheet0$_tryDeclarationChildren$2($name, start);
- if (_0_0 != null)
- return _0_0;
- midBuffer._contents += postColonWhitespace;
- couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0();
- beforeDeclaration = new A._SpanScannerState(t1, t1._string_scanner$_position);
- value = null;
- try {
- value = _this._stylesheet0$_expression$0();
- if (_this.lookingAtChildren$0()) {
- if (couldBeSelector)
- _this.expectStatementSeparator$0();
- } else if (!_this.atEndOfStatement$0())
- _this.expectStatementSeparator$0();
- } catch (exception) {
- if (type$.FormatException._is(A.unwrapException(exception))) {
- if (!couldBeSelector)
- throw exception;
- t1.set$state(beforeDeclaration);
- additional = _this.almostAnyValue$0();
- if (!_this.get$indented() && t1.peekChar$0() === 59)
- throw exception;
- t1 = nameBuffer._interpolation_buffer0$_text;
- t2 = A.S(midBuffer);
- t1._contents += t2;
- nameBuffer.addInterpolation$1(additional);
- return nameBuffer;
- } else
- throw exception;
- }
- _1_0 = _this._stylesheet0$_tryDeclarationChildren$3$value($name, start, value);
- if (_1_0 != null)
- return _1_0;
- else {
- _this.expectStatementSeparator$0();
- return A.Declaration$0($name, value, t1.spanFrom$1(start));
- }
- },
- _stylesheet0$_variableDeclarationOrInterpolation$0() {
- var t1, start, identifier, t2, buffer, _this = this;
- if (!_this.lookingAtIdentifier$0())
- return _this.interpolatedIdentifier$0();
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- identifier = _this.identifier$0();
- if (t1.matches$1(".$")) {
- t1.readChar$0();
- return _this.variableDeclarationWithoutNamespace$2(identifier, start);
- } else {
- t2 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object));
- t2._contents = "" + identifier;
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- },
- _stylesheet0$_styleRule$2(buffer, start_) {
- var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {};
- _this._stylesheet0$_isUseAllowed = false;
- if (start_ == null) {
- t2 = _this.scanner;
- start = new A._SpanScannerState(t2, t2._string_scanner$_position);
- } else
- start = start_;
- interpolation = t1.interpolation = _this.styleRuleSelector$0();
- if (buffer != null) {
- buffer.addInterpolation$1(interpolation);
- t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start));
- } else
- t2 = interpolation;
- if (t2.contents.length === 0)
- _this.scanner.error$1(0, 'expected "}".');
- wasInStyleRule = _this._stylesheet0$_inStyleRule;
- _this._stylesheet0$_inStyleRule = true;
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule, start));
- },
- _stylesheet0$_styleRule$0() {
- return this._stylesheet0$_styleRule$2(null, null);
- },
- _stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) {
- var t2, nameBuffer, t3, $name, variableOrInterpolation, _0_0, value, _1_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this._stylesheet0$_lookingAtPotentialPropertyHack$0()) {
- t2 = new A.StringBuffer("");
- nameBuffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object));
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += t3;
- t3 = _this.rawText$1(_this.get$whitespace());
- t2._contents += t3;
- nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- $name = nameBuffer.interpolation$1(t1.spanFrom$1(start));
- } else if (!_this.get$plainCss()) {
- variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
- if (variableOrInterpolation instanceof A.VariableDeclaration0)
- return variableOrInterpolation;
- else
- type$.Interpolation_2._as(variableOrInterpolation);
- $name = variableOrInterpolation;
- } else
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- _0_0 = _this._stylesheet0$_tryDeclarationChildren$2($name, start);
- if (_0_0 != null)
- return _0_0;
- value = _this._stylesheet0$_expression$0();
- _1_0 = _this._stylesheet0$_tryDeclarationChildren$3$value($name, start, value);
- if (_1_0 != null)
- return _1_0;
- else {
- _this.expectStatementSeparator$0();
- return A.Declaration$0($name, value, t1.spanFrom$1(start));
- }
- },
- _stylesheet0$_tryDeclarationChildren$3$value($name, start, value) {
- var _this = this;
- if (!_this.lookingAtChildren$0())
- return null;
- if (_this.get$plainCss())
- _this.scanner.error$1(0, string$.Nested);
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__tryDeclarationChildren_closure0($name, value));
- },
- _stylesheet0$_tryDeclarationChildren$2($name, start) {
- return this._stylesheet0$_tryDeclarationChildren$3$value($name, start, null);
- },
- _stylesheet0$_declarationChild$0() {
- return this.scanner.peekChar$0() === 64 ? this._stylesheet0$_declarationAtRule$0() : this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(false);
- },
- atRule$2$root(child, root) {
- var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$2$name(64, "@-rule");
- $name = _this.interpolatedIdentifier$0();
- _this.whitespace$0();
- wasUseAllowed = _this._stylesheet0$_isUseAllowed;
- _this._stylesheet0$_isUseAllowed = false;
- switch ($name.get$asPlain()) {
- case "at-root":
- return _this._stylesheet0$_atRootRule$1(start);
- case "content":
- return _this._stylesheet0$_contentRule$1(start);
- case "debug":
- return _this._stylesheet0$_debugRule$1(start);
- case "each":
- return _this._stylesheet0$_eachRule$2(start, child);
- case "else":
- return _this._stylesheet0$_disallowedAtRule$1(start);
- case "error":
- return _this._stylesheet0$_errorRule$1(start);
- case "extend":
- if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock)
- _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
- value = _this.almostAnyValue$0();
- optional = t1.scanChar$1(33);
- if (optional) {
- _this.expectIdentifier$1("optional");
- _this.whitespace$0();
- }
- _this.expectStatementSeparator$1("@extend rule");
- return new A.ExtendRule0(value, optional, t1.spanFrom$1(start));
- case "for":
- return _this._stylesheet0$_forRule$2(start, child);
- case "forward":
- _this._stylesheet0$_isUseAllowed = wasUseAllowed;
- if (!root)
- _this._stylesheet0$_disallowedAtRule$1(start);
- return _this._stylesheet0$_forwardRule$1(start);
- case "function":
- return _this._stylesheet0$_functionRule$1(start);
- case "if":
- return _this._stylesheet0$_ifRule$2(start, child);
- case "import":
- return _this._stylesheet0$_importRule$1(start);
- case "include":
- return _this._stylesheet0$_includeRule$1(start);
- case "media":
- return _this.mediaRule$1(start);
- case "mixin":
- return _this._stylesheet0$_mixinRule$1(start);
- case "-moz-document":
- return _this.mozDocumentRule$2(start, $name);
- case "return":
- return _this._stylesheet0$_disallowedAtRule$1(start);
- case "supports":
- return _this.supportsRule$1(start);
- case "use":
- _this._stylesheet0$_isUseAllowed = wasUseAllowed;
- if (!root)
- _this._stylesheet0$_disallowedAtRule$1(start);
- url = _this._stylesheet0$_urlString$0();
- _this.whitespace$0();
- namespace = _this._stylesheet0$_useNamespace$2(url, start);
- _this.whitespace$0();
- configuration = _this._stylesheet0$_configuration$0();
- _this.whitespace$0();
- span = t1.spanFrom$1(start);
- if (!_this._stylesheet0$_isUseAllowed)
- _this.error$2(0, string$.x40use_r, span);
- _this.expectStatementSeparator$1("@use rule");
- t1 = new A.UseRule0(url, namespace, configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
- t1.UseRule$4$configuration0(url, namespace, span, configuration);
- return t1;
- case "warn":
- return _this._stylesheet0$_warnRule$1(start);
- case "while":
- return _this._stylesheet0$_whileRule$2(start, child);
- default:
- return _this.unknownAtRule$2(start, $name);
- }
- },
- _stylesheet0$_declarationAtRule$0() {
- var _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- _0_0 = _this._stylesheet0$_plainAtRuleName$0();
- $label0$0: {
- if ("content" === _0_0) {
- t1 = _this._stylesheet0$_contentRule$1(start);
- break $label0$0;
- }
- if ("debug" === _0_0) {
- t1 = _this._stylesheet0$_debugRule$1(start);
- break $label0$0;
- }
- if ("each" === _0_0) {
- t1 = _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild());
- break $label0$0;
- }
- if ("else" === _0_0)
- _this._stylesheet0$_disallowedAtRule$1(start);
- if ("error" === _0_0) {
- t1 = _this._stylesheet0$_errorRule$1(start);
- break $label0$0;
- }
- if ("for" === _0_0) {
- t1 = _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationChild());
- break $label0$0;
- }
- if ("if" === _0_0) {
- t1 = _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild());
- break $label0$0;
- }
- if ("include" === _0_0) {
- t1 = _this._stylesheet0$_includeRule$1(start);
- break $label0$0;
- }
- if ("warn" === _0_0) {
- t1 = _this._stylesheet0$_warnRule$1(start);
- break $label0$0;
- }
- if ("while" === _0_0) {
- t1 = _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild());
- break $label0$0;
- }
- t1 = _this._stylesheet0$_disallowedAtRule$1(start);
- }
- return t1;
- },
- _stylesheet0$_functionChild$0() {
- var state, variableDeclarationError, stackTrace, statement, t2, namespace, exception, t3, start, _0_0, value, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() !== 64) {
- t2 = t1._string_scanner$_position;
- state = new A._SpanScannerState(t1, t2);
- try {
- namespace = _this.identifier$0();
- t1.expectChar$1(46);
- t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2));
- return t2;
- } catch (exception) {
- t2 = A.unwrapException(exception);
- t3 = type$.SourceSpanFormatException;
- if (t3._is(t2)) {
- variableDeclarationError = t2;
- stackTrace = A.getTraceFromException(exception);
- t1.set$state(state);
- statement = null;
- try {
- statement = _this._stylesheet0$_declarationOrStyleRule$0();
- } catch (exception) {
- if (t3._is(A.unwrapException(exception)))
- throw A.wrapException(variableDeclarationError);
- else
- throw exception;
- }
- t2 = statement instanceof A.StyleRule0 ? "style rules" : "declarations";
- _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace);
- } else
- throw exception;
- }
- }
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _0_0 = _this._stylesheet0$_plainAtRuleName$0();
- $label0$0: {
- if ("debug" === _0_0) {
- t1 = _this._stylesheet0$_debugRule$1(start);
- break $label0$0;
- }
- if ("each" === _0_0) {
- t1 = _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild());
- break $label0$0;
- }
- if ("else" === _0_0)
- _this._stylesheet0$_disallowedAtRule$1(start);
- if ("error" === _0_0) {
- t1 = _this._stylesheet0$_errorRule$1(start);
- break $label0$0;
- }
- if ("for" === _0_0) {
- t1 = _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild());
- break $label0$0;
- }
- if ("if" === _0_0) {
- t1 = _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild());
- break $label0$0;
- }
- if ("return" === _0_0) {
- value = _this._stylesheet0$_expression$0();
- _this.expectStatementSeparator$1("@return rule");
- t1 = new A.ReturnRule0(value, t1.spanFrom$1(start));
- break $label0$0;
- }
- if ("warn" === _0_0) {
- t1 = _this._stylesheet0$_warnRule$1(start);
- break $label0$0;
- }
- if ("while" === _0_0) {
- t1 = _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild());
- break $label0$0;
- }
- t1 = _this._stylesheet0$_disallowedAtRule$1(start);
- }
- return t1;
- },
- _stylesheet0$_plainAtRuleName$0() {
- this.scanner.expectChar$2$name(64, "@-rule");
- var $name = this.identifier$0();
- this.whitespace$0();
- return $name;
- },
- _stylesheet0$_atRootRule$1(start) {
- var t2, t3, t4, buffer, t5, query, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40) {
- t2 = t1._string_scanner$_position;
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer0(t3, t4);
- t1.expectChar$1(40);
- t5 = A.Primitives_stringFromCharCode(40);
- t3._contents += t5;
- _this.whitespace$0();
- t5 = _this._stylesheet0$_expression$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t5 = A.Primitives_stringFromCharCode(58);
- t3._contents += t5;
- t5 = A.Primitives_stringFromCharCode(32);
- t3._contents += t5;
- t5 = _this._stylesheet0$_expression$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t4 = A.Primitives_stringFromCharCode(41);
- t3._contents += t4;
- query = buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure1(query));
- } else if (_this.lookingAtChildren$0())
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure2());
- else
- return A.AtRootRule$0(A._setArrayType([_this._stylesheet0$_styleRule$0()], type$.JSArray_Statement_2), t1.spanFrom$1(start), null);
- },
- _stylesheet0$_contentRule$1(start) {
- var t1, beforeWhitespace, $arguments, t2, _this = this;
- if (!_this._stylesheet0$_inMixin)
- _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
- t1 = _this.scanner;
- beforeWhitespace = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- _this.whitespace$0();
- if (t1.peekChar$0() === 40) {
- $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
- _this.whitespace$0();
- } else {
- t2 = beforeWhitespace.offset;
- $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(beforeWhitespace.file, t2, t2));
- }
- _this.expectStatementSeparator$1("@content rule");
- return new A.ContentRule0($arguments, t1.spanFrom$1(start));
- },
- _stylesheet0$_debugRule$1(start) {
- var value = this._stylesheet0$_expression$0();
- this.expectStatementSeparator$1("@debug rule");
- return new A.DebugRule0(value, this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_eachRule$2(start, child) {
- var variables, t1, _this = this,
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String);
- _this.whitespace$0();
- for (t1 = _this.scanner; t1.scanChar$1(44);) {
- _this.whitespace$0();
- t1.expectChar$1(36);
- variables.push(_this.identifier$1$normalize(true));
- _this.whitespace$0();
- }
- _this.expectIdentifier$1("in");
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this._stylesheet0$_expression$0()));
- },
- _stylesheet0$_errorRule$1(start) {
- var value = this._stylesheet0$_expression$0();
- this.expectStatementSeparator$1("@error rule");
- return new A.ErrorRule0(value, this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_functionRule$1(start) {
- var t1, t2, $name, $arguments, _0_0, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- $name = _this.identifier$0();
- if (B.JSString_methods.startsWith$1($name, "--"))
- A.WarnForDeprecation_warnForDeprecation0(_this.logger, B.Deprecation_qBS, string$.Sassx20_fm, t1.spanFrom$1(new A._SpanScannerState(t1, t2)), null);
- _this.whitespace$0();
- $arguments = _this._stylesheet0$_argumentDeclaration$0();
- if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
- _this.error$2(0, string$.Mixinscf, t1.spanFrom$1(start));
- else if (_this._stylesheet0$_inControlDirective)
- _this.error$2(0, string$.Functi, t1.spanFrom$1(start));
- _0_0 = A.unvendor0($name);
- if ("calc" === _0_0 || "element" === _0_0 || "expression" === _0_0 || "url" === _0_0 || "and" === _0_0 || "or" === _0_0 || "not" === _0_0 || "clamp" === _0_0)
- _this.error$2(0, "Invalid function name.", t1.spanFrom$1(start));
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new A.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment));
- },
- _stylesheet0$_forRule$2(start, child) {
- var variable, from, _this = this, t1 = {},
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- variable = _this.variableName$0();
- _this.whitespace$0();
- _this.expectIdentifier$1("from");
- _this.whitespace$0();
- t1.exclusive = null;
- from = _this._stylesheet0$_expression$1$until(new A.StylesheetParser__forRule_closure1(t1, _this));
- if (t1.exclusive == null)
- _this.scanner.error$1(0, 'Expected "to" or "through".');
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this._stylesheet0$_expression$0()));
- },
- _stylesheet0$_forwardRule$1(start) {
- var prefix, _0_0, shownMixinsAndFunctions, shownVariables, hiddenVariables, hiddenMixinsAndFunctions, _1_0, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
- url = _this._stylesheet0$_urlString$0();
- _this.whitespace$0();
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- prefix = _this.identifier$1$normalize(true);
- _this.scanner.expectChar$1(42);
- _this.whitespace$0();
- } else
- prefix = _null;
- if (_this.scanIdentifier$1("show")) {
- _0_0 = _this._stylesheet0$_memberList$0();
- shownMixinsAndFunctions = _0_0._0;
- shownVariables = _0_0._1;
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- } else {
- if (_this.scanIdentifier$1("hide")) {
- _1_0 = _this._stylesheet0$_memberList$0();
- hiddenMixinsAndFunctions = _1_0._0;
- hiddenVariables = _1_0._1;
- } else {
- hiddenVariables = _null;
- hiddenMixinsAndFunctions = hiddenVariables;
- }
- shownVariables = _null;
- shownMixinsAndFunctions = shownVariables;
- }
- configuration = _this._stylesheet0$_configuration$1$allowGuarded(true);
- _this.whitespace$0();
- _this.expectStatementSeparator$1("@forward rule");
- span = _this.scanner.spanFrom$1(start);
- if (!_this._stylesheet0$_isUseAllowed)
- _this.error$2(0, string$.x40forwa, span);
- if (shownMixinsAndFunctions != null) {
- shownVariables.toString;
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
- t4 = configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
- return new A.ForwardRule0(url, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), _null, _null, prefix, t4, span);
- } else if (hiddenMixinsAndFunctions != null) {
- hiddenVariables.toString;
- t1 = type$.String;
- t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
- t3 = type$.UnmodifiableSetView_String;
- t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
- t4 = configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
- return new A.ForwardRule0(url, _null, _null, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), prefix, t4, span);
- } else
- return new A.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty21 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
- },
- _stylesheet0$_memberList$0() {
- var _this = this,
- t1 = type$.String,
- identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1),
- variables = A.LinkedHashSet_LinkedHashSet$_empty(t1);
- t1 = _this.scanner;
- do {
- _this.whitespace$0();
- _this.withErrorMessage$2(string$.Expect, new A.StylesheetParser__memberList_closure0(_this, variables, identifiers));
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- return new A._Record_2(identifiers, variables);
- },
- _stylesheet0$_ifRule$2(start, child) {
- var condition, children, clauses, lastClause, span, _this = this,
- ifIndentation = _this.get$currentIndentation(),
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- condition = _this._stylesheet0$_expression$0();
- children = _this.children$1(0, child);
- _this.whitespaceWithoutComments$0();
- clauses = A._setArrayType([A.IfClause$0(condition, children)], type$.JSArray_IfClause_2);
- while (true) {
- if (!_this.scanElse$1(ifIndentation)) {
- lastClause = null;
- break;
- }
- _this.whitespace$0();
- if (_this.scanIdentifier$1("if")) {
- _this.whitespace$0();
- clauses.push(A.IfClause$0(_this._stylesheet0$_expression$0(), _this.children$1(0, child)));
- } else {
- lastClause = A.ElseClause$0(_this.children$1(0, child));
- break;
- }
- }
- _this._stylesheet0$_inControlDirective = wasInControlDirective;
- span = _this.scanner.spanFrom$1(start);
- _this.whitespaceWithoutComments$0();
- return new A.IfRule0(A.List_List$unmodifiable(clauses, type$.IfClause_2), lastClause, span);
- },
- _stylesheet0$_importRule$1(start) {
- var argument, t3, _this = this,
- imports = A._setArrayType([], type$.JSArray_Import_2),
- t1 = _this.scanner,
- t2 = _this.logger;
- do {
- _this.whitespace$0();
- argument = _this.importArgument$0();
- t3 = argument instanceof A.DynamicImport0;
- if (t3)
- A.WarnForDeprecation_warnForDeprecation0(t2, B.Deprecation_qd9, string$.Sassx20_i, argument.span, null);
- if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && t3)
- _this._stylesheet0$_disallowedAtRule$1(start);
- imports.push(argument);
- _this.whitespace$0();
- } while (t1.scanChar$1(44));
- _this.expectStatementSeparator$1("@import rule");
- t1 = t1.spanFrom$1(start);
- return new A.ImportRule0(A.List_List$unmodifiable(imports, type$.Import_2), t1);
- },
- importArgument$0() {
- var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- _0_0 = t1.peekChar$0();
- if (117 === _0_0 || 85 === _0_0) {
- url = _this.dynamicUrl$0();
- _this.whitespace$0();
- modifiers = _this.tryImportModifiers$0();
- return new A.StaticImport0(A.Interpolation$0(A._setArrayType([url], type$.JSArray_Object), t1.spanFrom$1(start)), modifiers, t1.spanFrom$1(start));
- }
- url = _this.string$0();
- urlSpan = t1.spanFrom$1(start);
- _this.whitespace$0();
- modifiers = _this.tryImportModifiers$0();
- if (_this.isPlainImportUrl$1(url) || modifiers != null) {
- t2 = urlSpan;
- return new A.StaticImport0(A.Interpolation$0(A._setArrayType([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.JSArray_Object), urlSpan), modifiers, t1.spanFrom$1(start));
- } else
- try {
- t1 = _this.parseImportUrl$1(url);
- return new A.DynamicImport0(t1, urlSpan);
- } catch (exception) {
- t1 = A.unwrapException(exception);
- if (type$.FormatException._is(t1)) {
- innerError = t1;
- stackTrace = A.getTraceFromException(exception);
- _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace);
- } else
- throw exception;
- }
- },
- parseImportUrl$1(url) {
- var t1 = $.$get$windows();
- if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url))
- return t1.toUri$1(url).toString$0(0);
- A.Uri_parse(url);
- return url;
- },
- isPlainImportUrl$1(url) {
- var _0_0, t1;
- if (url.length < 5)
- return false;
- if (B.JSString_methods.endsWith$1(url, ".css"))
- return true;
- _0_0 = url.charCodeAt(0);
- $label0$0: {
- if (47 === _0_0) {
- t1 = url.charCodeAt(1) === 47;
- break $label0$0;
- }
- if (104 === _0_0) {
- t1 = B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://");
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- tryImportModifiers$0() {
- var t1, start, t2, t3, buffer, t4, identifier, $name, query, t5, endPosition, result, _this = this;
- if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40)
- return null;
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t2 = new A.StringBuffer("");
- t3 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer0(t2, t3);
- for (; true;)
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
- if (!(t3.length === 0 && t2._contents.length === 0)) {
- t4 = A.Primitives_stringFromCharCode(32);
- t2._contents += t4;
- }
- identifier = _this.interpolatedIdentifier$0();
- buffer.addInterpolation$1(identifier);
- t4 = identifier.get$asPlain();
- $name = t4 == null ? null : t4.toLowerCase();
- if ($name !== "and" && t1.scanChar$1(40)) {
- if ($name === "supports") {
- query = _this._stylesheet0$_importSupportsQuery$0();
- t4 = !(query instanceof A.SupportsDeclaration0);
- if (t4) {
- t5 = A.Primitives_stringFromCharCode(40);
- t2._contents += t5;
- }
- buffer._interpolation_buffer0$_flushText$0();
- t3.push(new A.SupportsExpression0(query));
- if (t4) {
- t4 = A.Primitives_stringFromCharCode(41);
- t2._contents += t4;
- }
- } else {
- t4 = A.Primitives_stringFromCharCode(40);
- t2._contents += t4;
- buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true));
- t4 = A.Primitives_stringFromCharCode(41);
- t2._contents += t4;
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- } else {
- _this.whitespace$0();
- if (t1.scanChar$1(44)) {
- t2._contents += ", ";
- buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0());
- endPosition = t1._string_scanner$_position;
- t4 = t1._sourceFile;
- t5 = start.position;
- t1 = new A._FileSpan(t4, t5, endPosition);
- t1._FileSpan$3(t4, t5, endPosition);
- t5 = type$.Object;
- t4 = A.List_List$of(t3, true, t5);
- t3 = t2._contents;
- if (t3.length !== 0)
- t4.push(t3.charCodeAt(0) == 0 ? t3 : t3);
- result = A.List_List$from(t4, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t2 = new A.Interpolation0(result, t1);
- t2.Interpolation$20(t4, t1);
- return t2;
- }
- }
- } else if (t1.peekChar$0() === 40) {
- if (!(t3.length === 0 && t2._contents.length === 0)) {
- t4 = A.Primitives_stringFromCharCode(32);
- t2._contents += t4;
- }
- buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0());
- endPosition = t1._string_scanner$_position;
- t1 = t1._sourceFile;
- t4 = start.position;
- t5 = new A._FileSpan(t1, t4, endPosition);
- t5._FileSpan$3(t1, t4, endPosition);
- t4 = type$.Object;
- t3 = A.List_List$of(t3, true, t4);
- t1 = t2._contents;
- if (t1.length !== 0)
- t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
- result = A.List_List$from(t3, false, t4);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1 = new A.Interpolation0(result, t5);
- t1.Interpolation$20(t3, t5);
- return t1;
- } else {
- endPosition = t1._string_scanner$_position;
- t1 = t1._sourceFile;
- t4 = start.position;
- t5 = new A._FileSpan(t1, t4, endPosition);
- t5._FileSpan$3(t1, t4, endPosition);
- t4 = type$.Object;
- t3 = A.List_List$of(t3, true, t4);
- t1 = t2._contents;
- if (t1.length !== 0)
- t3.push(t1.charCodeAt(0) == 0 ? t1 : t1);
- result = A.List_List$from(t3, false, t4);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t1 = new A.Interpolation0(result, t5);
- t1.Interpolation$20(t3, t5);
- return t1;
- }
- },
- _stylesheet0$_importSupportsQuery$0() {
- var t1, t2, _0_0, $name, _this = this;
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- } else {
- t1 = _this.scanner;
- if (t1.peekChar$0() === 40)
- return _this._stylesheet0$_supportsCondition$0();
- else {
- _0_0 = _this._stylesheet0$_tryImportSupportsFunction$0();
- if (_0_0 != null)
- return _0_0;
- t2 = t1._string_scanner$_position;
- $name = _this._stylesheet0$_expression$0();
- t1.expectChar$1(58);
- return _this._stylesheet0$_supportsDeclarationValue$2($name, new A._SpanScannerState(t1, t2));
- }
- }
- },
- _stylesheet0$_tryImportSupportsFunction$0() {
- var t1, start, $name, value, _this = this;
- if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- return null;
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- $name = _this.interpolatedIdentifier$0();
- if (!t1.scanChar$1(40)) {
- t1.set$state(start);
- return null;
- }
- value = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
- t1.expectChar$1(41);
- return new A.SupportsFunction0($name, value, t1.spanFrom$1(start));
- },
- _stylesheet0$_includeRule$1(start) {
- var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, span, _this = this, _null = null,
- $name = _this.identifier$0(),
- t1 = _this.scanner;
- if (t1.scanChar$1(46)) {
- name0 = _this._stylesheet0$_publicIdentifier$0();
- namespace = $name;
- $name = name0;
- } else
- namespace = _null;
- _this.whitespace$0();
- if (t1.peekChar$0() === 40)
- $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
- else {
- t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(t2.file, t3, t3));
- }
- _this.whitespace$0();
- if (_this.scanIdentifier$1("using")) {
- _this.whitespace$0();
- contentArguments = _this._stylesheet0$_argumentDeclaration$0();
- _this.whitespace$0();
- } else
- contentArguments = _null;
- t2 = contentArguments == null;
- if (!t2 || _this.lookingAtChildren$0()) {
- if (t2) {
- t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- contentArguments_ = new A.ArgumentDeclaration0(B.List_empty22, _null, A._FileSpan$(t2.file, t3, t3));
- } else
- contentArguments_ = contentArguments;
- wasInContentBlock = _this._stylesheet0$_inContentBlock;
- _this._stylesheet0$_inContentBlock = true;
- $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__includeRule_closure0(contentArguments_));
- _this._stylesheet0$_inContentBlock = wasInContentBlock;
- } else {
- _this.expectStatementSeparator$0();
- $content = _null;
- }
- t1 = t1.spanFrom$2(start, start);
- t2 = $content == null ? $arguments : $content;
- span = t1.expand$1(0, t2.get$span(t2));
- return new A.IncludeRule0(namespace, A.stringReplaceAllUnchecked($name, "_", "-"), $name, $arguments, $content, span);
- },
- mediaRule$1(start) {
- return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0()));
- },
- _stylesheet0$_mixinRule$1(start) {
- var t1, t2, $name, $arguments, t3, _this = this,
- precedingComment = _this.lastSilentComment;
- _this.lastSilentComment = null;
- t1 = _this.scanner;
- t2 = t1._string_scanner$_position;
- $name = _this.identifier$0();
- if (B.JSString_methods.startsWith$1($name, "--"))
- A.WarnForDeprecation_warnForDeprecation0(_this.logger, B.Deprecation_qBS, string$.Sassx20_m, t1.spanFrom$1(new A._SpanScannerState(t1, t2)), null);
- _this.whitespace$0();
- if (t1.peekChar$0() === 40)
- $arguments = _this._stylesheet0$_argumentDeclaration$0();
- else {
- t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
- t3 = t2.offset;
- $arguments = new A.ArgumentDeclaration0(B.List_empty22, null, A._FileSpan$(t2.file, t3, t3));
- }
- if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
- _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
- else if (_this._stylesheet0$_inControlDirective)
- _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
- _this.whitespace$0();
- _this._stylesheet0$_inMixin = true;
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment));
- },
- mozDocumentRule$2(start, $name) {
- var t5, t6, identifier, _0_0, argument, trailing, endPosition, t7, t8, start0, end, _this = this, _box_0 = {},
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- t4 = A._setArrayType([], type$.JSArray_Object),
- buffer = new A.InterpolationBuffer0(t3, t4);
- _box_0.needsDeprecationWarning = false;
- for (t5 = _this.get$whitespace(); true;) {
- if (t1.peekChar$0() === 35) {
- t6 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t6);
- _box_0.needsDeprecationWarning = true;
- } else {
- t6 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- $label0$0: {
- if ("url" === identifier || "url-prefix" === identifier || "domain" === identifier) {
- _0_0 = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t6), identifier);
- if (_0_0 != null)
- buffer.addInterpolation$1(_0_0);
- else {
- t1.expectChar$1(40);
- _this.whitespace$0();
- argument = _this.interpolatedString$0();
- t1.expectChar$1(41);
- t3._contents += identifier;
- t6 = A.Primitives_stringFromCharCode(40);
- t3._contents += t6;
- buffer.addInterpolation$1(argument.asInterpolation$0());
- t6 = A.Primitives_stringFromCharCode(41);
- t3._contents += t6;
- }
- t6 = t3._contents;
- trailing = t6.charCodeAt(0) == 0 ? t6 : t6;
- if (!B.JSString_methods.endsWith$1(trailing, "url-prefix()") && !B.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !B.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
- _box_0.needsDeprecationWarning = true;
- break $label0$0;
- }
- if ("regexp" === identifier) {
- t3._contents += "regexp(";
- t1.expectChar$1(40);
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- t1.expectChar$1(41);
- t6 = A.Primitives_stringFromCharCode(41);
- t3._contents += t6;
- _box_0.needsDeprecationWarning = true;
- break $label0$0;
- }
- endPosition = t1._string_scanner$_position;
- t7 = t1._sourceFile;
- t8 = new A._FileSpan(t7, t6, endPosition);
- t8._FileSpan$3(t7, t6, endPosition);
- _this.error$2(0, "Invalid function name.", t8);
- }
- }
- _this.whitespace$0();
- if (!t1.scanChar$1(44))
- break;
- t6 = A.Primitives_stringFromCharCode(44);
- t3._contents += t6;
- start0 = t1._string_scanner$_position;
- t5.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t1.string, start0, end);
- }
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_mozDocumentRule_closure0(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))));
- },
- supportsRule$1(start) {
- var _this = this,
- condition = _this._stylesheet0$_supportsCondition$0();
- _this.whitespace$0();
- return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_supportsRule_closure0(condition));
- },
- _stylesheet0$_useNamespace$2(url, start) {
- var namespace, basename, dot, t1, exception, _this = this;
- if (_this.scanIdentifier$1("as")) {
- _this.whitespace$0();
- return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
- }
- basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments());
- dot = B.JSString_methods.indexOf$1(basename, ".");
- t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
- namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
- try {
- t1 = A.SpanScanner$(namespace, null);
- t1 = new A.Parser1(t1, _this.logger, null)._parser0$_parseIdentifier$0();
- return t1;
- } catch (exception) {
- if (type$.SassFormatException_2._is(A.unwrapException(exception)))
- _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start));
- else
- throw exception;
- }
- },
- _stylesheet0$_configuration$1$allowGuarded(allowGuarded) {
- var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this;
- if (!_this.scanIdentifier$1("with"))
- return null;
- variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable_2);
- _this.whitespace$0();
- t1 = _this.scanner;
- t1.expectChar$1(40);
- for (; true;) {
- _this.whitespace$0();
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- expression = _this.expressionUntilComma$0();
- t3 = t1._string_scanner$_position;
- if (allowGuarded && t1.scanChar$1(33)) {
- guarded = _this.identifier$0() === "default";
- if (guarded)
- _this.whitespace$0();
- else {
- endPosition = t1._string_scanner$_position;
- t4 = t1._sourceFile;
- t5 = new A._FileSpan(t4, t3, endPosition);
- t5._FileSpan$3(t4, t3, endPosition);
- _this.error$2(0, "Invalid flag name.", t5);
- }
- } else
- guarded = false;
- endPosition = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- span = new A._FileSpan(t3, t2, endPosition);
- span._FileSpan$3(t3, t2, endPosition);
- if (variableNames.contains$1(0, $name))
- _this.error$2(0, string$.The_sa, span);
- variableNames.add$1(0, $name);
- configuration.push(new A.ConfiguredVariable0($name, expression, guarded, span));
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- if (!_this._stylesheet0$_lookingAtExpression$0())
- break;
- }
- t1.expectChar$1(41);
- return configuration;
- },
- _stylesheet0$_configuration$0() {
- return this._stylesheet0$_configuration$1$allowGuarded(false);
- },
- _stylesheet0$_warnRule$1(start) {
- var value = this._stylesheet0$_expression$0();
- this.expectStatementSeparator$1("@warn rule");
- return new A.WarnRule0(value, this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_whileRule$2(start, child) {
- var _this = this,
- wasInControlDirective = _this._stylesheet0$_inControlDirective;
- _this._stylesheet0$_inControlDirective = true;
- return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this._stylesheet0$_expression$0()));
- },
- unknownAtRule$2(start, $name) {
- var t2, t3, rule, _this = this, t1 = {},
- wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule;
- _this._stylesheet0$_inUnknownAtRule = true;
- t1.value = null;
- t2 = _this.scanner;
- t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this._stylesheet0$_interpolatedDeclarationValue$1$allowOpenBrace(false) : null;
- if (_this.lookingAtChildren$0())
- rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_unknownAtRule_closure0(t1, $name));
- else {
- _this.expectStatementSeparator$0();
- rule = A.AtRule$0($name, t2.spanFrom$1(start), null, t3);
- }
- _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule;
- return rule;
- },
- _stylesheet0$_disallowedAtRule$1(start) {
- this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(true, false);
- this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_argumentDeclaration$0() {
- var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- $arguments = A._setArrayType([], type$.JSArray_Argument_2);
- named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
- while (true) {
- if (!(t1.peekChar$0() === 36)) {
- restArgument = null;
- break;
- }
- t3 = t1._string_scanner$_position;
- t1.expectChar$1(36);
- $name = _this.identifier$1$normalize(true);
- _this.whitespace$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- defaultValue = _this.expressionUntilComma$0();
- } else {
- if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- _this.whitespace$0();
- restArgument = $name;
- break;
- }
- defaultValue = null;
- }
- endPosition = t1._string_scanner$_position;
- t4 = t1._sourceFile;
- t5 = new A._FileSpan(t4, t3, endPosition);
- t5._FileSpan$3(t4, t3, endPosition);
- $arguments.push(new A.Argument0($name, defaultValue, t5));
- if (!named.add$1(0, $name))
- _this.error$2(0, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span);
- if (!t1.scanChar$1(44)) {
- restArgument = null;
- break;
- }
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- return new A.ArgumentDeclaration0(A.List_List$unmodifiable($arguments, type$.Argument_2), restArgument, t1);
- },
- _stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) {
- var positional, t3, t4, named, keywordRest, t5, rest, expression, t6, t7, result, _this = this, _null = null,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expectChar$1(40);
- _this.whitespace$0();
- positional = A._setArrayType([], type$.JSArray_Expression_2);
- t3 = type$.String;
- t4 = type$.Expression_2;
- named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
- t5 = !mixin;
- rest = _null;
- while (true) {
- if (!_this._stylesheet0$_lookingAtExpression$0()) {
- keywordRest = _null;
- break;
- }
- expression = _this.expressionUntilComma$1$singleEquals(t5);
- _this.whitespace$0();
- if (expression instanceof A.VariableExpression0 && t1.scanChar$1(58)) {
- _this.whitespace$0();
- t6 = expression.name;
- if (named.containsKey$1(t6))
- _this.error$2(0, "Duplicate argument.", expression.span);
- named.$indexSet(0, t6, _this.expressionUntilComma$1$singleEquals(t5));
- } else if (t1.scanChar$1(46)) {
- t1.expectChar$1(46);
- t1.expectChar$1(46);
- if (rest != null) {
- _this.whitespace$0();
- keywordRest = expression;
- break;
- }
- rest = expression;
- } else if (named.__js_helper$_length !== 0)
- _this.error$2(0, string$.Positi, expression.get$span(expression));
- else
- positional.push(expression);
- _this.whitespace$0();
- if (!t1.scanChar$1(44)) {
- keywordRest = _null;
- break;
- }
- _this.whitespace$0();
- if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) {
- t5 = t1._sourceFile;
- t6 = t1._string_scanner$_position;
- new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6);
- t7 = new A._FileSpan(t5, t6, t6);
- t7._FileSpan$3(t5, t6, t6);
- t6 = A._setArrayType([""], type$.JSArray_Object);
- result = A.List_List$from(t6, false, type$.Object);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t5 = new A.Interpolation0(result, t7);
- t5.Interpolation$20(t6, t7);
- positional.push(new A.StringExpression0(t5, false));
- keywordRest = _null;
- break;
- }
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- return new A.ArgumentInvocation0(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
- },
- _stylesheet0$_argumentInvocation$0() {
- return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, false);
- },
- _stylesheet0$_argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) {
- return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false);
- },
- _stylesheet0$_argumentInvocation$1$mixin(mixin) {
- return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin);
- },
- _stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) {
- var t2, beforeBracket, start, wasInExpression, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, _3_0, _1_0, t4, _3_28, _2_0, _3_32, _3_40, commaExpressions, spaceExpressions, singleExpression, _this = this,
- _s20_ = "Expected expression.",
- _box_0 = {},
- t1 = until != null;
- if (t1 && until.call$0())
- _this.scanner.error$1(0, _s20_);
- if (bracketList) {
- t2 = _this.scanner;
- beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position);
- t2.expectChar$1(91);
- _this.whitespace$0();
- if (t2.scanChar$1(93)) {
- t1 = A._setArrayType([], type$.JSArray_Expression_2);
- t2 = t2.spanFrom$1(beforeBracket);
- return new A.ListExpression0(A.List_List$unmodifiable(t1, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2);
- }
- } else
- beforeBracket = null;
- t2 = _this.scanner;
- start = new A._SpanScannerState(t2, t2._string_scanner$_position);
- wasInExpression = _this._stylesheet0$_inExpression;
- wasInParentheses = _this._stylesheet0$_inParentheses;
- _this._stylesheet0$_inExpression = true;
- _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null;
- _box_0.allowSlash = true;
- _box_0.singleExpression_ = _this._stylesheet0$_singleExpression$0();
- resetState = new A.StylesheetParser__expression_resetState0(_box_0, _this, start);
- resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation0(_box_0, _this);
- resolveOperations = new A.StylesheetParser__expression_resolveOperations0(_box_0, resolveOneOperation);
- addSingleExpression = new A.StylesheetParser__expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations);
- addOperator = new A.StylesheetParser__expression_addOperator0(_box_0, _this, resolveOneOperation);
- resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions0(_box_0, _this, resolveOperations);
- for (t3 = type$.JSArray_Expression_2; true;) {
- _this.whitespace$0();
- if (t1 && until.call$0())
- break;
- _3_0 = t2.peekChar$0();
- if (_3_0 == null)
- break;
- if (40 === _3_0) {
- addSingleExpression.call$1(_this.parentheses$0());
- continue;
- }
- if (91 === _3_0) {
- addSingleExpression.call$1(_this._stylesheet0$_expression$1$bracketList(true));
- continue;
- }
- if (36 === _3_0) {
- addSingleExpression.call$1(_this._stylesheet0$_variable$0());
- continue;
- }
- if (38 === _3_0) {
- addSingleExpression.call$1(_this._stylesheet0$_selector$0());
- continue;
- }
- if (39 === _3_0 || 34 === _3_0) {
- addSingleExpression.call$1(_this.interpolatedString$0());
- continue;
- }
- if (35 === _3_0) {
- addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0());
- continue;
- }
- if (61 === _3_0) {
- t2.readChar$0();
- if (singleEquals && t2.peekChar$0() !== 61)
- addOperator.call$1(B.BinaryOperator_wdM0);
- else {
- t2.expectChar$1(61);
- addOperator.call$1(B.BinaryOperator_g8k0);
- }
- continue;
- }
- if (33 === _3_0) {
- $label0$1: {
- _1_0 = t2.peekChar$1(1);
- if (61 === _1_0) {
- t2.readChar$0();
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_icU0);
- break $label0$1;
- }
- if (_1_0 != null)
- if (105 !== _1_0)
- if (73 !== _1_0)
- t4 = _1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12;
- else
- t4 = true;
- else
- t4 = true;
- else
- t4 = true;
- if (t4) {
- addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0());
- break $label0$1;
- }
- break;
- }
- continue;
- }
- if (60 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_SPQ0 : B.BinaryOperator_miq0);
- continue;
- }
- if (62 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_oEm0 : B.BinaryOperator_bEa0);
- continue;
- }
- if (42 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_2No0);
- continue;
- }
- _3_28 = 43 === _3_0;
- if (_3_28 && _box_0.singleExpression_ == null) {
- addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
- continue;
- }
- if (_3_28) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_u150);
- continue;
- }
- if (45 === _3_0) {
- _2_0 = t2.peekChar$1(1);
- if (A._isInt(_2_0) && _2_0 >= 48 && _2_0 <= 57 || 46 === _2_0)
- if (_box_0.singleExpression_ != null) {
- t4 = t2.peekChar$1(-1);
- t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
- } else
- t4 = true;
- else
- t4 = false;
- if (t4)
- addSingleExpression.call$1(_this._stylesheet0$_number$0());
- else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- addSingleExpression.call$1(_this.identifierLike$0());
- else if (_box_0.singleExpression_ == null)
- addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
- else {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_SjO0);
- }
- continue;
- }
- _3_32 = 47 === _3_0;
- if (_3_32 && _box_0.singleExpression_ == null) {
- addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
- continue;
- }
- if (_3_32) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_U770);
- continue;
- }
- if (37 === _3_0) {
- t2.readChar$0();
- addOperator.call$1(B.BinaryOperator_KNx0);
- continue;
- }
- if (_3_0 >= 48 && _3_0 <= 57) {
- addSingleExpression.call$1(_this._stylesheet0$_number$0());
- continue;
- }
- _3_40 = 46 === _3_0;
- if (_3_40 && t2.peekChar$1(1) === 46)
- break;
- if (_3_40) {
- addSingleExpression.call$1(_this._stylesheet0$_number$0());
- continue;
- }
- if (97 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("and")) {
- addOperator.call$1(B.BinaryOperator_eDt0);
- continue;
- }
- if (111 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("or")) {
- addOperator.call$1(B.BinaryOperator_qNM0);
- continue;
- }
- if ((117 === _3_0 || 85 === _3_0) && t2.peekChar$1(1) === 43) {
- addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0());
- continue;
- }
- if (!(_3_0 >= 97 && _3_0 <= 122))
- t4 = _3_0 >= 65 && _3_0 <= 90 || 95 === _3_0 || 92 === _3_0 || _3_0 >= 128;
- else
- t4 = true;
- if (t4) {
- addSingleExpression.call$1(_this.identifierLike$0());
- continue;
- }
- if (44 === _3_0) {
- if (_this._stylesheet0$_inParentheses) {
- _this._stylesheet0$_inParentheses = false;
- if (_box_0.allowSlash) {
- resetState.call$0();
- continue;
- }
- }
- commaExpressions = _box_0.commaExpressions_;
- if (commaExpressions == null)
- commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3);
- if (_box_0.singleExpression_ == null)
- t2.error$1(0, _s20_);
- resolveSpaceExpressions.call$0();
- t4 = _box_0.singleExpression_;
- t4.toString;
- commaExpressions.push(t4);
- t2.readChar$0();
- _box_0.allowSlash = true;
- _box_0.singleExpression_ = null;
- continue;
- }
- break;
- }
- if (bracketList)
- t2.expectChar$1(93);
- commaExpressions = _box_0.commaExpressions_;
- spaceExpressions = _box_0.spaceExpressions_;
- if (commaExpressions != null) {
- resolveSpaceExpressions.call$0();
- _this._stylesheet0$_inParentheses = wasInParentheses;
- singleExpression = _box_0.singleExpression_;
- if (singleExpression != null)
- commaExpressions.push(singleExpression);
- _this._stylesheet0$_inExpression = wasInExpression;
- t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket);
- return new A.ListExpression0(A.List_List$unmodifiable(commaExpressions, type$.Expression_2), B.ListSeparator_ECn0, bracketList, t1);
- } else if (bracketList && spaceExpressions != null) {
- resolveOperations.call$0();
- _this._stylesheet0$_inExpression = wasInExpression;
- t1 = _box_0.singleExpression_;
- t1.toString;
- spaceExpressions.push(t1);
- beforeBracket.toString;
- t2 = t2.spanFrom$1(beforeBracket);
- return new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_nbm0, true, t2);
- } else {
- resolveSpaceExpressions.call$0();
- if (bracketList) {
- t1 = _box_0.singleExpression_;
- t1.toString;
- t3 = A._setArrayType([t1], t3);
- beforeBracket.toString;
- t2 = t2.spanFrom$1(beforeBracket);
- _box_0.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(t3, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2);
- }
- _this._stylesheet0$_inExpression = wasInExpression;
- t1 = _box_0.singleExpression_;
- t1.toString;
- return t1;
- }
- },
- _stylesheet0$_expression$2$singleEquals$until(singleEquals, until) {
- return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, singleEquals, until);
- },
- _stylesheet0$_expression$1$bracketList(bracketList) {
- return this._stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, false, null);
- },
- _stylesheet0$_expression$0() {
- return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, null);
- },
- _stylesheet0$_expression$1$until(until) {
- return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, until);
- },
- expressionUntilComma$1$singleEquals(singleEquals) {
- return this._stylesheet0$_expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure0(this));
- },
- expressionUntilComma$0() {
- return this.expressionUntilComma$1$singleEquals(false);
- },
- _stylesheet0$_isSlashOperand$1(expression) {
- var t1;
- if (!(expression instanceof A.NumberExpression0))
- if (!(expression instanceof A.FunctionExpression0))
- t1 = expression instanceof A.BinaryOperationExpression0 && expression.allowsSlash;
- else
- t1 = true;
- else
- t1 = true;
- return t1;
- },
- _stylesheet0$_singleExpression$0() {
- var next, t2, _this = this,
- _s20_ = "Expected expression.",
- t1 = _this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (_0_0 == null)
- t1.error$1(0, _s20_);
- if (40 === _0_0) {
- t1 = _this.parentheses$0();
- break $label0$0;
- }
- if (47 === _0_0) {
- t1 = _this._stylesheet0$_unaryOperation$0();
- break $label0$0;
- }
- if (46 === _0_0) {
- t1 = _this._stylesheet0$_number$0();
- break $label0$0;
- }
- if (91 === _0_0) {
- t1 = _this._stylesheet0$_expression$1$bracketList(true);
- break $label0$0;
- }
- if (36 === _0_0) {
- t1 = _this._stylesheet0$_variable$0();
- break $label0$0;
- }
- if (38 === _0_0) {
- t1 = _this._stylesheet0$_selector$0();
- break $label0$0;
- }
- if (39 === _0_0 || 34 === _0_0) {
- t1 = _this.interpolatedString$0();
- break $label0$0;
- }
- if (35 === _0_0) {
- t1 = _this._stylesheet0$_hashExpression$0();
- break $label0$0;
- }
- if (43 === _0_0) {
- next = t1.peekChar$1(1);
- t1 = next != null && next >= 48 && next <= 57 || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0();
- break $label0$0;
- }
- if (45 === _0_0) {
- t1 = _this._stylesheet0$_minusExpression$0();
- break $label0$0;
- }
- if (33 === _0_0) {
- t1 = _this._stylesheet0$_importantExpression$0();
- break $label0$0;
- }
- if ((117 === _0_0 || 85 === _0_0) && t1.peekChar$1(1) === 43) {
- t1 = _this._stylesheet0$_unicodeRange$0();
- break $label0$0;
- }
- if (_0_0 >= 48 && _0_0 <= 57) {
- t1 = _this._stylesheet0$_number$0();
- break $label0$0;
- }
- if (!(_0_0 >= 97 && _0_0 <= 122))
- t2 = _0_0 >= 65 && _0_0 <= 90 || 95 === _0_0 || 92 === _0_0 || _0_0 >= 128;
- else
- t2 = true;
- if (t2) {
- t1 = _this.identifierLike$0();
- break $label0$0;
- }
- t1 = t1.error$1(0, _s20_);
- }
- return t1;
- },
- parentheses$0() {
- var start, first, expressions, t1, t2, _this = this,
- wasInParentheses = _this._stylesheet0$_inParentheses;
- _this._stylesheet0$_inParentheses = true;
- try {
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(40);
- _this.whitespace$0();
- if (!_this._stylesheet0$_lookingAtExpression$0()) {
- t1.expectChar$1(41);
- t2 = A._setArrayType([], type$.JSArray_Expression_2);
- t1 = t1.spanFrom$1(start);
- t2 = A.List_List$unmodifiable(t2, type$.Expression_2);
- return new A.ListExpression0(t2, B.ListSeparator_undecided_null_undecided0, false, t1);
- }
- first = _this.expressionUntilComma$0();
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t1 = _this._stylesheet0$_map$2(first, start);
- return t1;
- }
- if (!t1.scanChar$1(44)) {
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- return new A.ParenthesizedExpression0(first, t1);
- }
- _this.whitespace$0();
- expressions = A._setArrayType([first], type$.JSArray_Expression_2);
- for (; true;) {
- if (!_this._stylesheet0$_lookingAtExpression$0())
- break;
- J.add$1$ax(expressions, _this.expressionUntilComma$0());
- if (!t1.scanChar$1(44))
- break;
- _this.whitespace$0();
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- t2 = A.List_List$unmodifiable(expressions, type$.Expression_2);
- return new A.ListExpression0(t2, B.ListSeparator_ECn0, false, t1);
- } finally {
- _this._stylesheet0$_inParentheses = wasInParentheses;
- }
- },
- _stylesheet0$_map$2(first, start) {
- var t1, key, _this = this,
- pairs = A._setArrayType([new A._Record_2(first, _this.expressionUntilComma$0())], type$.JSArray_Record_2_Expression_and_Expression_2);
- for (t1 = _this.scanner; t1.scanChar$1(44);) {
- _this.whitespace$0();
- if (!_this._stylesheet0$_lookingAtExpression$0())
- break;
- key = _this.expressionUntilComma$0();
- t1.expectChar$1(58);
- _this.whitespace$0();
- pairs.push(new A._Record_2(key, _this.expressionUntilComma$0()));
- }
- t1.expectChar$1(41);
- t1 = t1.spanFrom$1(start);
- return new A.MapExpression0(A.List_List$unmodifiable(pairs, type$.Record_2_Expression_and_Expression_2), t1);
- },
- _stylesheet0$_hashExpression$0() {
- var start, t2, identifier, buffer, t3, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$1(1) === 123)
- return _this.identifierLike$0();
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(35);
- t2 = t1.peekChar$0();
- if (t2 == null)
- t2 = null;
- else
- t2 = t2 >= 48 && t2 <= 57;
- if (t2 === true)
- return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start));
- t2 = t1._string_scanner$_position;
- identifier = _this.interpolatedIdentifier$0();
- if (_this._stylesheet0$_isHexColor$1(identifier)) {
- t1.set$state(new A._SpanScannerState(t1, t2));
- return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start));
- }
- t2 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object));
- t3 = A.Primitives_stringFromCharCode(35);
- t2._contents += t3;
- buffer.addInterpolation$1(identifier);
- return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _stylesheet0$_hexColorContents$1(start) {
- var red, green, blue, alpha, digit4, t2, t3, t4, _this = this,
- digit1 = _this._stylesheet0$_hexDigit$0(),
- digit2 = _this._stylesheet0$_hexDigit$0(),
- digit3 = _this._stylesheet0$_hexDigit$0(),
- t1 = _this.scanner,
- $self = t1.peekChar$0();
- if (!($self != null && A.CharacterExtension_get_isHex0($self))) {
- red = (digit1 << 4 >>> 0) + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = (digit3 << 4 >>> 0) + digit3;
- alpha = null;
- } else {
- digit4 = _this._stylesheet0$_hexDigit$0();
- $self = t1.peekChar$0();
- t2 = $self != null && A.CharacterExtension_get_isHex0($self);
- t3 = digit1 << 4 >>> 0;
- t4 = digit3 << 4 >>> 0;
- if (!t2) {
- red = t3 + digit1;
- green = (digit2 << 4 >>> 0) + digit2;
- blue = t4 + digit3;
- alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
- } else {
- red = t3 + digit2;
- green = t4 + digit4;
- blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0();
- $self = t1.peekChar$0();
- alpha = $self != null && A.CharacterExtension_get_isHex0($self) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : null;
- }
- }
- t2 = alpha == null;
- t3 = t2 ? 1 : alpha;
- return A.SassColor$rgbInternal0(red, green, blue, t3, t2 ? new A.SpanColorFormat0(t1.spanFrom$1(start)) : null);
- },
- _stylesheet0$_isHexColor$1(interpolation) {
- var _0_2, t1,
- plain = interpolation.get$asPlain();
- if (typeof plain == "string") {
- _0_2 = plain.length;
- if (3 !== _0_2)
- if (4 !== _0_2)
- if (6 !== _0_2)
- t1 = 8 === _0_2;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- } else
- t1 = false;
- if (t1) {
- t1 = new A.CodeUnits(plain);
- return t1.every$1(t1, new A.StylesheetParser__isHexColor_closure0());
- } else
- return false;
- },
- _stylesheet0$_hexDigit$0() {
- var t1 = this.scanner,
- t2 = t1.peekChar$0();
- t2 = t2 == null ? null : A.CharacterExtension_get_isHex0(t2);
- return t2 === true ? A.asHex0(t1.readChar$0()) : t1.error$1(0, "Expected hex digit.");
- },
- _stylesheet0$_minusExpression$0() {
- var _this = this,
- _0_0 = _this.scanner.peekChar$1(1);
- if (A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57 || 46 === _0_0)
- return _this._stylesheet0$_number$0();
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- return _this.identifierLike$0();
- return _this._stylesheet0$_unaryOperation$0();
- },
- _stylesheet0$_importantExpression$0() {
- var t1 = this.scanner,
- t2 = t1._string_scanner$_position;
- t1.readChar$0();
- this.whitespace$0();
- this.expectIdentifier$1("important");
- t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
- return new A.StringExpression0(A.Interpolation$0(A._setArrayType(["!important"], type$.JSArray_Object), t2), false);
- },
- _stylesheet0$_unaryOperation$0() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0());
- if (operator == null)
- t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
- else if (_this.get$plainCss() && operator !== B.UnaryOperator_SJr0)
- t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
- _this.whitespace$0();
- return new A.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_unaryOperatorFor$1(character) {
- var t1;
- $label0$0: {
- if (43 === character) {
- t1 = B.UnaryOperator_cLp0;
- break $label0$0;
- }
- if (45 === character) {
- t1 = B.UnaryOperator_AiQ0;
- break $label0$0;
- }
- if (47 === character) {
- t1 = B.UnaryOperator_SJr0;
- break $label0$0;
- }
- t1 = null;
- break $label0$0;
- }
- return t1;
- },
- _stylesheet0$_number$0() {
- var number, unit, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- first = t1.peekChar$0(),
- t3 = first !== 43;
- if (!t3 || first === 45)
- t1.readChar$0();
- if (t1.peekChar$0() !== 46)
- _this._stylesheet0$_consumeNaturalNumber$0();
- _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2 && t3 && first !== 45);
- _this._stylesheet0$_tryExponent$0();
- number = A.double_parse(t1.substring$1(0, t2));
- if (t1.scanChar$1(37))
- unit = "%";
- else {
- if (_this.lookingAtIdentifier$0())
- t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
- else
- t3 = false;
- unit = t3 ? _this.identifier$1$unit(true) : null;
- }
- return new A.NumberExpression0(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_consumeNaturalNumber$0() {
- var $self,
- t1 = this.scanner,
- t2 = t1.readChar$0();
- if (!(t2 >= 48 && t2 <= 57))
- t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t1.readChar$0();
- }
- },
- _stylesheet0$_tryDecimal$1$allowTrailingDot(allowTrailingDot) {
- var $self,
- t1 = this.scanner;
- if (t1.peekChar$0() !== 46)
- return;
- $self = t1.peekChar$1(1);
- if (!($self != null && $self >= 48 && $self <= 57)) {
- if (allowTrailingDot)
- return;
- t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
- }
- t1.readChar$0();
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t1.readChar$0();
- }
- },
- _stylesheet0$_tryExponent$0() {
- var next, $self,
- t1 = this.scanner,
- first = t1.peekChar$0();
- if (first !== 101 && first !== 69)
- return;
- next = t1.peekChar$1(1);
- if (!(next != null && next >= 48 && next <= 57) && next !== 45 && next !== 43)
- return;
- t1.readChar$0();
- if (43 === next || 45 === next)
- t1.readChar$0();
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- t1.error$1(0, "Expected digit.");
- while (true) {
- $self = t1.peekChar$0();
- if (!($self != null && $self >= 48 && $self <= 57))
- break;
- t1.readChar$0();
- }
- },
- _stylesheet0$_unicodeRange$0() {
- var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this,
- _s26_ = "Expected at most 6 digits.",
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentChar$1(117);
- t1.expectChar$1(43);
- for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure1());)
- ++firstRangeLength;
- for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true)
- ++firstRangeLength;
- if (firstRangeLength === 0)
- t1.error$1(0, 'Expected hex digit or "?".');
- else if (firstRangeLength > 6)
- _this.error$2(0, _s26_, t1.spanFrom$1(start));
- else if (hasQuestionMark) {
- t2 = t1.substring$1(0, start.position);
- t1 = t1.spanFrom$1(start);
- return new A.StringExpression0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), t1), false);
- }
- if (t1.scanChar$1(45)) {
- t2 = t1._string_scanner$_position;
- for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure2());)
- ++secondRangeLength;
- if (secondRangeLength === 0)
- t1.error$1(0, "Expected hex digit.");
- else if (secondRangeLength > 6)
- _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- }
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
- t1.error$1(0, "Expected end of identifier.");
- t2 = t1.substring$1(0, start.position);
- t1 = t1.spanFrom$1(start);
- return new A.StringExpression0(A.Interpolation$0(A._setArrayType([t2], type$.JSArray_Object), t1), false);
- },
- _stylesheet0$_variable$0() {
- var _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- $name = _this.variableName$0();
- if (_this.get$plainCss())
- _this.error$2(0, string$.Sassx20v, t1.spanFrom$1(start));
- return new A.VariableExpression0(null, $name, t1.spanFrom$1(start));
- },
- _stylesheet0$_selector$0() {
- var t1, start, _this = this;
- if (_this.get$plainCss())
- _this.scanner.error$2$length(0, string$.The_pa, 1);
- t1 = _this.scanner;
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- t1.expectChar$1(38);
- if (t1.scanChar$1(38)) {
- _this.logger.warn$2$span(0, string$.In_Sas, t1.spanFrom$1(start));
- t1.set$position(t1._string_scanner$_position - 1);
- }
- return new A.SelectorExpression0(t1.spanFrom$1(start));
- },
- interpolatedString$0() {
- var t3, t4, buffer, _0_0, second, t5,
- t1 = this.scanner,
- t2 = t1._string_scanner$_position,
- quote = t1.readChar$0();
- if (quote !== 39 && quote !== 34)
- t1.error$2$position(0, "Expected string.", t2);
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer0(t3, t4);
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 === quote) {
- t1.readChar$0();
- break;
- }
- if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)
- t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
- if (92 === _0_0) {
- second = t1.peekChar$1(1);
- if (second === 10 || second === 13 || second === 12) {
- t1.readChar$0();
- t1.readChar$0();
- if (second === 13)
- t1.scanChar$1(10);
- } else {
- t5 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1));
- t3._contents += t5;
- }
- continue;
- }
- if (35 === _0_0 && t1.peekChar$1(1) === 123) {
- t5 = this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- continue;
- }
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- }
- return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true);
- },
- identifierLike$0() {
- var invocation, expression, _0_0, _1_0, _2_0, _2_2, _2_4, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- identifier = _this.interpolatedIdentifier$0(),
- plain = identifier.get$asPlain(),
- lower = A._Cell$(),
- t2 = plain != null;
- if (t2) {
- if (plain === "if" && t1.peekChar$0() === 40) {
- invocation = _this._stylesheet0$_argumentInvocation$0();
- return new A.IfExpression0(invocation, identifier.span.expand$1(0, invocation.span));
- } else if (plain === "not") {
- _this.whitespace$0();
- expression = _this._stylesheet0$_singleExpression$0();
- return new A.UnaryOperationExpression0(B.UnaryOperator_not_not_not0, expression, identifier.span.expand$1(0, expression.get$span(expression)));
- }
- lower.__late_helper$_value = plain.toLowerCase();
- if (t1.peekChar$0() !== 40) {
- switch (plain) {
- case "false":
- return new A.BooleanExpression0(false, identifier.span);
- case "null":
- return new A.NullExpression0(identifier.span);
- case "true":
- return new A.BooleanExpression0(true, identifier.span);
- }
- _0_0 = $.$get$colorsByName0().$index(0, lower._readLocal$0());
- if (_0_0 != null) {
- t1 = identifier.span;
- return new A.ColorExpression0(A.SassColor$rgbInternal0(_0_0.get$red(0), _0_0.get$green(0), _0_0.get$blue(0), _0_0._color1$_alpha, new A.SpanColorFormat0(t1)), t1);
- }
- }
- _1_0 = _this.trySpecialFunction$2(lower._readLocal$0(), start);
- if (_1_0 != null)
- return _1_0;
- }
- _2_0 = t1.peekChar$0();
- _2_2 = 46 === _2_0;
- if (_2_2 && t1.peekChar$1(1) === 46)
- return new A.StringExpression0(identifier, false);
- if (_2_2) {
- t1.readChar$0();
- if (t2)
- return _this.namespacedExpression$2(plain, start);
- _this.error$2(0, string$.Interpn, identifier.span);
- }
- _2_4 = 40 === _2_0;
- if (_2_4 && t2) {
- t2 = _this._stylesheet0$_argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var"));
- t1 = t1.spanFrom$1(start);
- return new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, t2, t1);
- }
- if (_2_4)
- return new A.InterpolatedFunctionExpression0(identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
- return new A.StringExpression0(identifier, false);
- },
- namespacedExpression$2(namespace, start) {
- var $name, t2, t3, _this = this,
- t1 = _this.scanner;
- if (t1.peekChar$0() === 36) {
- $name = _this.variableName$0();
- _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure0(_this, start));
- return new A.VariableExpression0(namespace, $name, t1.spanFrom$1(start));
- }
- t2 = _this._stylesheet0$_publicIdentifier$0();
- t3 = _this._stylesheet0$_argumentInvocation$0();
- t1 = t1.spanFrom$1(start);
- return new A.FunctionExpression0(namespace, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, t3, t1);
- },
- trySpecialFunction$2($name, start) {
- var t1, buffer, t2, next, t3, _this = this,
- normalized = A.unvendor0($name);
- $label0$0: {
- if (!("calc" === normalized && normalized !== $name && _this.scanner.scanChar$1(40)))
- t1 = ("element" === normalized || "expression" === normalized) && _this.scanner.scanChar$1(40);
- else
- t1 = true;
- if (t1) {
- t1 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object));
- t1._contents = "" + $name;
- t2 = A.Primitives_stringFromCharCode(40);
- t1._contents += t2;
- break $label0$0;
- }
- if ("progid" === normalized && _this.scanner.scanChar$1(58)) {
- t1 = new A.StringBuffer("");
- buffer = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object));
- t1._contents = "" + $name;
- t2 = A.Primitives_stringFromCharCode(58);
- t1._contents += t2;
- t2 = _this.scanner;
- next = t2.peekChar$0();
- while (true) {
- if (next != null) {
- if (!(next >= 97 && next <= 122))
- t3 = next >= 65 && next <= 90;
- else
- t3 = true;
- t3 = t3 || next === 46;
- } else
- t3 = false;
- if (!t3)
- break;
- t3 = A.Primitives_stringFromCharCode(t2.readChar$0());
- t1._contents += t3;
- next = t2.peekChar$0();
- }
- t2.expectChar$1(40);
- t2 = A.Primitives_stringFromCharCode(40);
- t1._contents += t2;
- break $label0$0;
- }
- if ("url" === normalized)
- return A.NullableExtension_andThen0(_this._stylesheet0$_tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure0());
- return null;
- }
- buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true));
- t1 = _this.scanner;
- t1.expectChar$1(41);
- t2 = buffer._interpolation_buffer0$_text;
- t3 = A.Primitives_stringFromCharCode(41);
- t2._contents += t3;
- return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
- },
- _stylesheet0$_tryUrlContents$2$name(start, $name) {
- var t3, t4, buffer, t5, _0_0, _0_6, endPosition, result, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- if (!t1.scanChar$1(40))
- return null;
- _this.whitespaceWithoutComments$0();
- t3 = new A.StringBuffer("");
- t4 = A._setArrayType([], type$.JSArray_Object);
- buffer = new A.InterpolationBuffer0(t3, t4);
- t3._contents = "" + ($name == null ? "url" : $name);
- t5 = A.Primitives_stringFromCharCode(40);
- t3._contents += t5;
- for (; true;) {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- break;
- if (92 === _0_0) {
- t5 = _this.escape$0();
- t3._contents += t5;
- continue;
- }
- _0_6 = 35 === _0_0;
- if (_0_6 && t1.peekChar$1(1) === 123) {
- t5 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- continue;
- }
- if (33 !== _0_0)
- if (37 !== _0_0)
- if (38 !== _0_0)
- if (!_0_6)
- t5 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- else
- t5 = true;
- if (t5) {
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t5;
- continue;
- }
- if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) {
- _this.whitespaceWithoutComments$0();
- if (t1.peekChar$0() !== 41)
- break;
- continue;
- }
- if (41 === _0_0) {
- t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t2;
- endPosition = t1._string_scanner$_position;
- t2 = t1._sourceFile;
- t5 = start.position;
- t1 = new A._FileSpan(t2, t5, endPosition);
- t1._FileSpan$3(t2, t5, endPosition);
- t5 = type$.Object;
- t2 = A.List_List$of(t4, true, t5);
- t4 = t3._contents;
- if (t4.length !== 0)
- t2.push(t4.charCodeAt(0) == 0 ? t4 : t4);
- result = A.List_List$from(t2, false, t5);
- result.fixed$length = Array;
- result.immutable$list = Array;
- t3 = new A.Interpolation0(result, t1);
- t3.Interpolation$20(t2, t1);
- return t3;
- }
- break;
- }
- t1.set$state(new A._SpanScannerState(t1, t2));
- return null;
- },
- _stylesheet0$_tryUrlContents$1(start) {
- return this._stylesheet0$_tryUrlContents$2$name(start, null);
- },
- dynamicUrl$0() {
- var _0_0, _this = this,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _this.expectIdentifier$1("url");
- _0_0 = _this._stylesheet0$_tryUrlContents$1(start);
- if (_0_0 != null)
- return new A.StringExpression0(_0_0, false);
- return new A.InterpolatedFunctionExpression0(A.Interpolation$0(A._setArrayType(["url"], type$.JSArray_Object), t1.spanFrom$1(start)), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
- },
- almostAnyValue$1$omitComments(omitComments) {
- var t4, t5, t6, _2_0, t7, _0_0, _0_2, start, end, _0_4, identifier, _1_0, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object));
- for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;)
- $label0$0: {
- _2_0 = t1.peekChar$0();
- if (92 === _2_0) {
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- break $label0$0;
- }
- if (34 === _2_0 || 39 === _2_0) {
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- break $label0$0;
- }
- if (47 === _2_0) {
- $label1$1: {
- _0_0 = t1.peekChar$1(1);
- _0_2 = 42 === _0_0;
- if (_0_2 && t6) {
- t7 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t7.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t4, start, end);
- break $label1$1;
- }
- if (_0_2) {
- _this.loudComment$0();
- break $label1$1;
- }
- _0_4 = 47 === _0_0;
- if (_0_4 && t6) {
- t7 = _this.get$silentComment();
- start = t1._string_scanner$_position;
- t7.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t4, start, end);
- break $label1$1;
- }
- if (_0_4) {
- _this.silentComment$0();
- break $label1$1;
- }
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- break $label0$0;
- }
- if (35 === _2_0 && t1.peekChar$1(1) === 123) {
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- break $label0$0;
- }
- if (13 === _2_0 || 10 === _2_0 || 12 === _2_0) {
- if (_this.get$indented())
- break;
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- break $label0$0;
- }
- if (33 === _2_0 || 59 === _2_0 || 123 === _2_0 || 125 === _2_0)
- break;
- if (117 === _2_0 || 85 === _2_0) {
- t7 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- if (identifier !== "url" && identifier !== "url-prefix") {
- t3._contents += identifier;
- continue;
- }
- _1_0 = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
- if (_1_0 != null)
- buffer.addInterpolation$1(_1_0);
- else {
- if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5)
- A.throwExpression(A.ArgumentError$("Invalid position " + t7, null));
- t1._string_scanner$_position = t7;
- t1._lastMatch = null;
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- break $label0$0;
- }
- if (_2_0 == null)
- break;
- t7 = _this.lookingAtIdentifier$0();
- if (t7) {
- t7 = _this.identifier$0();
- t3._contents += t7;
- break $label0$0;
- }
- t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t7;
- }
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- almostAnyValue$0() {
- return this.almostAnyValue$1$omitComments(false);
- },
- _stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, allowOpenBrace, allowSemicolon, silentComments) {
- var t4, t5, t6, t7, t8, wroteNewline, _2_0, t9, _0_0, start, end, _2_14_isSet, _2_14, _2_18_isSet, _2_18, _2_20_isSet, _2_20, _2_22, bracket, identifier, _1_0, _this = this, _null = null,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object)),
- brackets = A._setArrayType([], type$.JSArray_int);
- for (t4 = !allowOpenBrace, t5 = t1.string, t6 = t5.length, t7 = !allowColon, t8 = !allowSemicolon, wroteNewline = false; true;)
- $label0$0: {
- _2_0 = t1.peekChar$0();
- if (92 === _2_0) {
- t9 = _this.escape$1$identifierStart(true);
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (34 === _2_0 || 39 === _2_0) {
- buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
- wroteNewline = false;
- break $label0$0;
- }
- if (47 === _2_0) {
- $label1$1: {
- _0_0 = t1.peekChar$1(1);
- if (42 === _0_0) {
- t9 = _this.get$loudComment();
- start = t1._string_scanner$_position;
- t9.call$0();
- end = t1._string_scanner$_position;
- t3._contents += B.JSString_methods.substring$2(t5, start, end);
- break $label1$1;
- }
- if (47 === _0_0 && silentComments) {
- _this.silentComment$0();
- break $label1$1;
- }
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- }
- wroteNewline = false;
- break $label0$0;
- }
- if (35 === _2_0 && t1.peekChar$1(1) === 123) {
- buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
- wroteNewline = false;
- break $label0$0;
- }
- _2_14_isSet = 32 !== _2_0;
- if (_2_14_isSet) {
- _2_14 = 9 === _2_0;
- t9 = _2_14;
- } else {
- _2_14 = _null;
- t9 = true;
- }
- if (t9)
- if (!wroteNewline) {
- t9 = t1.peekChar$1(1);
- t9 = t9 === 32 || t9 === 9 || t9 === 10 || t9 === 13 || t9 === 12;
- } else
- t9 = false;
- else
- t9 = false;
- if (t9) {
- t1.readChar$0();
- break $label0$0;
- }
- if (_2_14_isSet)
- t9 = _2_14;
- else
- t9 = true;
- if (t9) {
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- break $label0$0;
- }
- _2_18_isSet = 10 !== _2_0;
- if (_2_18_isSet) {
- _2_18 = 13 === _2_0;
- _2_20_isSet = !_2_18;
- if (_2_20_isSet) {
- _2_20 = 12 === _2_0;
- t9 = _2_20;
- } else {
- _2_20 = _null;
- t9 = true;
- }
- } else {
- _2_20 = _null;
- _2_18 = _2_20;
- _2_20_isSet = false;
- t9 = true;
- }
- if (t9 && _this.get$indented())
- break;
- if (_2_18_isSet)
- if (!_2_18)
- t9 = _2_20_isSet ? _2_20 : 12 === _2_0;
- else
- t9 = true;
- else
- t9 = true;
- if (t9) {
- t9 = t1.peekChar$1(-1);
- if (!(t9 === 10 || t9 === 13 || t9 === 12))
- t3._contents += "\n";
- t1.readChar$0();
- wroteNewline = true;
- break $label0$0;
- }
- _2_22 = 123 === _2_0;
- if (_2_22 && t4)
- break;
- if (40 !== _2_0)
- t9 = _2_22 || 91 === _2_0;
- else
- t9 = true;
- if (t9) {
- bracket = t1.readChar$0();
- t9 = A.Primitives_stringFromCharCode(bracket);
- t3._contents += t9;
- brackets.push(A.opposite0(bracket));
- wroteNewline = false;
- break $label0$0;
- }
- if (41 === _2_0 || 125 === _2_0 || 93 === _2_0) {
- if (brackets.length === 0)
- break;
- bracket = brackets.pop();
- t1.expectChar$1(bracket);
- t9 = A.Primitives_stringFromCharCode(bracket);
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (59 === _2_0) {
- if (t8 && brackets.length === 0)
- break;
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (58 === _2_0) {
- if (t7 && brackets.length === 0)
- break;
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- if (117 === _2_0 || 85 === _2_0) {
- t9 = t1._string_scanner$_position;
- identifier = _this.identifier$0();
- if (identifier !== "url" && identifier !== "url-prefix") {
- t3._contents += identifier;
- wroteNewline = false;
- continue;
- }
- _1_0 = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t9), identifier);
- if (_1_0 != null)
- buffer.addInterpolation$1(_1_0);
- else {
- if ((t9 === 0 ? 1 / t9 < 0 : t9 < 0) || t9 > t6)
- A.throwExpression(A.ArgumentError$("Invalid position " + t9, _null));
- t1._string_scanner$_position = t9;
- t1._lastMatch = null;
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- }
- wroteNewline = false;
- break $label0$0;
- }
- if (_2_0 == null)
- break;
- t9 = _this.lookingAtIdentifier$0();
- if (t9) {
- t9 = _this.identifier$0();
- t3._contents += t9;
- wroteNewline = false;
- break $label0$0;
- }
- t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t3._contents += t9;
- wroteNewline = false;
- }
- if (brackets.length !== 0)
- t1.expectChar$1(B.JSArray_methods.get$last(brackets));
- if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0)
- t1.error$1(0, "Expected token.");
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(allowEmpty) {
- return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, false, true);
- },
- _stylesheet0$_interpolatedDeclarationValue$1$allowOpenBrace(allowOpenBrace) {
- return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, allowOpenBrace, false, true);
- },
- _stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) {
- return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, allowSemicolon, true);
- },
- _stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) {
- return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, true, allowSemicolon, true);
- },
- _stylesheet0$_interpolatedDeclarationValue$0() {
- return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, true);
- },
- _stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(allowEmpty, allowOpenBrace) {
- return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, allowOpenBrace, false, true);
- },
- _stylesheet0$_interpolatedDeclarationValue$1$silentComments(silentComments) {
- return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, silentComments);
- },
- interpolatedIdentifier$0() {
- var t4, _0_0, _this = this,
- _s20_ = "Expected identifier.",
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- t2 = new A.StringBuffer(""),
- t3 = A._setArrayType([], type$.JSArray_Object),
- buffer = new A.InterpolationBuffer0(t2, t3);
- if (t1.scanChar$1(45)) {
- t4 = A.Primitives_stringFromCharCode(45);
- t2._contents += t4;
- if (t1.scanChar$1(45)) {
- t3 = A.Primitives_stringFromCharCode(45);
- t2._contents += t3;
- _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- }
- }
- $label0$0: {
- _0_0 = t1.peekChar$0();
- if (_0_0 == null)
- t1.error$1(0, _s20_);
- if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128) {
- t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += t3;
- break $label0$0;
- }
- if (92 === _0_0) {
- t3 = _this.escape$1$identifierStart(true);
- t2._contents += t3;
- break $label0$0;
- }
- if (35 === _0_0 && t1.peekChar$1(1) === 123) {
- t2 = _this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t3.push(t2);
- break $label0$0;
- }
- t1.error$1(0, _s20_);
- }
- _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
- return buffer.interpolation$1(t1.spanFrom$1(start));
- },
- _stylesheet0$_interpolatedIdentifierBody$1(buffer) {
- var t1, t2, t3, _0_0, t4;
- for (t1 = buffer._interpolation_buffer0$_contents, t2 = this.scanner, t3 = buffer._interpolation_buffer0$_text; true;) {
- _0_0 = t2.peekChar$0();
- if (_0_0 == null)
- break;
- if (95 !== _0_0)
- if (45 !== _0_0) {
- if (!(_0_0 >= 97 && _0_0 <= 122))
- t4 = _0_0 >= 65 && _0_0 <= 90;
- else
- t4 = true;
- if (!t4)
- t4 = _0_0 >= 48 && _0_0 <= 57;
- else
- t4 = true;
- t4 = t4 || _0_0 >= 128;
- } else
- t4 = true;
- else
- t4 = true;
- if (t4) {
- t4 = A.Primitives_stringFromCharCode(t2.readChar$0());
- t3._contents += t4;
- continue;
- }
- if (92 === _0_0) {
- t4 = this.escape$0();
- t3._contents += t4;
- continue;
- }
- if (35 === _0_0 && t2.peekChar$1(1) === 123) {
- t4 = this.singleInterpolation$0();
- buffer._interpolation_buffer0$_flushText$0();
- t1.push(t4);
- continue;
- }
- break;
- }
- },
- singleInterpolation$0() {
- var contents, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- t1.expect$1("#{");
- _this.whitespace$0();
- contents = _this._stylesheet0$_expression$0();
- t1.expectChar$1(125);
- if (_this.get$plainCss())
- _this.error$2(0, string$.Interpp, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- return contents;
- },
- _stylesheet0$_mediaQueryList$0() {
- var t4, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- t3 = new A.StringBuffer(""),
- buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object));
- for (; true;) {
- _this.whitespace$0();
- _this._stylesheet0$_mediaQuery$1(buffer);
- _this.whitespace$0();
- if (!t1.scanChar$1(44))
- break;
- t4 = A.Primitives_stringFromCharCode(44);
- t3._contents += t4;
- t4 = A.Primitives_stringFromCharCode(32);
- t3._contents += t4;
- }
- return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- },
- _stylesheet0$_mediaQuery$1(buffer) {
- var identifier1, t1, t2, identifier2, _this = this, _s3_ = "and";
- if (_this.scanner.peekChar$0() === 40) {
- _this._stylesheet0$_mediaInParens$1(buffer);
- _this.whitespace$0();
- if (_this.scanIdentifier$1(_s3_)) {
- buffer._interpolation_buffer0$_text._contents += " and ";
- _this.expectWhitespace$0();
- _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_);
- } else if (_this.scanIdentifier$1("or")) {
- buffer._interpolation_buffer0$_text._contents += " or ";
- _this.expectWhitespace$0();
- _this._stylesheet0$_mediaLogicSequence$2(buffer, "or");
- }
- return;
- }
- identifier1 = _this.interpolatedIdentifier$0();
- if (A.equalsIgnoreCase0(identifier1.get$asPlain(), "not")) {
- _this.expectWhitespace$0();
- if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
- buffer._interpolation_buffer0$_text._contents += "not ";
- _this._stylesheet0$_mediaOrInterp$1(buffer);
- return;
- }
- }
- _this.whitespace$0();
- buffer.addInterpolation$1(identifier1);
- if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
- return;
- t1 = buffer._interpolation_buffer0$_text;
- t2 = A.Primitives_stringFromCharCode(32);
- t1._contents += t2;
- identifier2 = _this.interpolatedIdentifier$0();
- if (A.equalsIgnoreCase0(identifier2.get$asPlain(), _s3_)) {
- _this.expectWhitespace$0();
- t1._contents += " and ";
- } else {
- _this.whitespace$0();
- buffer.addInterpolation$1(identifier2);
- if (_this.scanIdentifier$1(_s3_)) {
- _this.expectWhitespace$0();
- t1._contents += " and ";
- } else
- return;
- }
- if (_this.scanIdentifier$1("not")) {
- _this.expectWhitespace$0();
- t1._contents += "not ";
- _this._stylesheet0$_mediaOrInterp$1(buffer);
- return;
- }
- _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_);
- return;
- },
- _stylesheet0$_mediaLogicSequence$2(buffer, operator) {
- var t1, t2, _this = this;
- for (t1 = buffer._interpolation_buffer0$_text; true;) {
- _this._stylesheet0$_mediaOrInterp$1(buffer);
- _this.whitespace$0();
- if (!_this.scanIdentifier$1(operator))
- return;
- _this.expectWhitespace$0();
- t2 = A.Primitives_stringFromCharCode(32);
- t2 = t1._contents += t2;
- t1._contents = t2 + operator;
- t2 = A.Primitives_stringFromCharCode(32);
- t1._contents += t2;
- }
- },
- _stylesheet0$_mediaOrInterp$1(buffer) {
- var interpolation;
- if (this.scanner.peekChar$0() === 35) {
- interpolation = this.singleInterpolation$0();
- buffer.addInterpolation$1(A.Interpolation$0(A._setArrayType([interpolation], type$.JSArray_Object), interpolation.get$span(interpolation)));
- } else
- this._stylesheet0$_mediaInParens$1(buffer);
- },
- _stylesheet0$_mediaInParens$1(buffer) {
- var t2, t3, t4, next, t5, _this = this,
- t1 = _this.scanner;
- t1.expectChar$2$name(40, "media condition in parentheses");
- t2 = buffer._interpolation_buffer0$_text;
- t3 = A.Primitives_stringFromCharCode(40);
- t2._contents += t3;
- _this.whitespace$0();
- if (t1.peekChar$0() === 40) {
- _this._stylesheet0$_mediaInParens$1(buffer);
- _this.whitespace$0();
- if (_this.scanIdentifier$1("and")) {
- t2._contents += " and ";
- _this.expectWhitespace$0();
- _this._stylesheet0$_mediaLogicSequence$2(buffer, "and");
- } else if (_this.scanIdentifier$1("or")) {
- t2._contents += " or ";
- _this.expectWhitespace$0();
- _this._stylesheet0$_mediaLogicSequence$2(buffer, "or");
- }
- } else if (_this.scanIdentifier$1("not")) {
- t2._contents += "not ";
- _this.expectWhitespace$0();
- _this._stylesheet0$_mediaOrInterp$1(buffer);
- } else {
- t3 = _this._stylesheet0$_expressionUntilComparison$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4 = buffer._interpolation_buffer0$_contents;
- t4.push(t3);
- if (t1.scanChar$1(58)) {
- _this.whitespace$0();
- t3 = A.Primitives_stringFromCharCode(58);
- t2._contents += t3;
- t3 = A.Primitives_stringFromCharCode(32);
- t2._contents += t3;
- t3 = _this._stylesheet0$_expression$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t3);
- } else {
- next = t1.peekChar$0();
- t3 = 60 !== next;
- if (!t3 || 62 === next || 61 === next) {
- t5 = A.Primitives_stringFromCharCode(32);
- t2._contents += t5;
- t5 = A.Primitives_stringFromCharCode(t1.readChar$0());
- t2._contents += t5;
- if ((!t3 || 62 === next) && t1.scanChar$1(61)) {
- t5 = A.Primitives_stringFromCharCode(61);
- t2._contents += t5;
- }
- t5 = A.Primitives_stringFromCharCode(32);
- t2._contents += t5;
- _this.whitespace$0();
- t5 = _this._stylesheet0$_expressionUntilComparison$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t5);
- if (!t3 || 62 === next) {
- next.toString;
- t3 = t1.scanChar$1(next);
- } else
- t3 = false;
- if (t3) {
- t3 = A.Primitives_stringFromCharCode(32);
- t2._contents += t3;
- t3 = A.Primitives_stringFromCharCode(next);
- t2._contents += t3;
- if (t1.scanChar$1(61)) {
- t3 = A.Primitives_stringFromCharCode(61);
- t2._contents += t3;
- }
- t3 = A.Primitives_stringFromCharCode(32);
- t2._contents += t3;
- _this.whitespace$0();
- t3 = _this._stylesheet0$_expressionUntilComparison$0();
- buffer._interpolation_buffer0$_flushText$0();
- t4.push(t3);
- }
- }
- }
- }
- t1.expectChar$1(41);
- _this.whitespace$0();
- t1 = A.Primitives_stringFromCharCode(41);
- t2._contents += t1;
- },
- _stylesheet0$_expressionUntilComparison$0() {
- return this._stylesheet0$_expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure0(this));
- },
- _stylesheet0$_supportsCondition$0() {
- var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position;
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
- }
- condition = _this._stylesheet0$_supportsConditionInParens$0();
- _this.whitespace$0();
- for (operator = null; _this.lookingAtIdentifier$0();) {
- if (operator != null)
- _this.expectIdentifier$1(operator);
- else if (_this.scanIdentifier$1("or"))
- operator = "or";
- else {
- _this.expectIdentifier$1("and");
- operator = "and";
- }
- _this.whitespace$0();
- right = _this._stylesheet0$_supportsConditionInParens$0();
- endPosition = t1._string_scanner$_position;
- t3 = t1._sourceFile;
- t4 = new A._FileSpan(t3, t2, endPosition);
- t4._FileSpan$3(t3, t2, endPosition);
- condition = new A.SupportsOperation0(condition, right, operator, t4);
- lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- _this.whitespace$0();
- }
- return condition;
- },
- _stylesheet0$_supportsConditionInParens$0() {
- var $name, nameStart, wasInParentheses, identifier, _1_0, operation, contents, identifier0, t2, $arguments, _0_0, _0_4_isSet, _0_4, condition, exception, declaration, _this = this, _null = null,
- t1 = _this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position);
- if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
- identifier0 = _this.interpolatedIdentifier$0();
- t2 = identifier0.get$asPlain();
- if ((t2 == null ? _null : t2.toLowerCase()) === "not")
- _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
- if (t1.scanChar$1(40)) {
- $arguments = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
- t1.expectChar$1(41);
- return new A.SupportsFunction0(identifier0, $arguments, t1.spanFrom$1(start));
- } else {
- _0_0 = identifier0.contents;
- _0_4_isSet = _0_0.length === 1;
- if (_0_4_isSet) {
- _0_4 = _0_0[0];
- t2 = _0_4;
- t2 = type$.Expression_2._is(t2);
- } else {
- _0_4 = _null;
- t2 = false;
- }
- if (t2) {
- t2 = _0_4_isSet ? _0_4 : _0_0[0];
- return new A.SupportsInterpolation0(type$.Expression_2._as(t2), t1.spanFrom$1(start));
- } else
- _this.error$2(0, "Expected @supports condition.", identifier0.span);
- }
- }
- t1.expectChar$1(40);
- _this.whitespace$0();
- if (_this.scanIdentifier$1("not")) {
- _this.whitespace$0();
- condition = _this._stylesheet0$_supportsConditionInParens$0();
- t1.expectChar$1(41);
- return new A.SupportsNegation0(condition, t1.spanFrom$1(start));
- } else if (t1.peekChar$0() === 40) {
- condition = _this._stylesheet0$_supportsCondition$0();
- t1.expectChar$1(41);
- return condition;
- }
- $name = null;
- nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
- wasInParentheses = _this._stylesheet0$_inParentheses;
- try {
- $name = _this._stylesheet0$_expression$0();
- t1.expectChar$1(58);
- } catch (exception) {
- if (type$.FormatException._is(A.unwrapException(exception))) {
- t1.set$state(nameStart);
- _this._stylesheet0$_inParentheses = wasInParentheses;
- identifier = _this.interpolatedIdentifier$0();
- _1_0 = _this._stylesheet0$_trySupportsOperation$2(identifier, nameStart);
- operation = null;
- if (_1_0 != null) {
- operation = _1_0;
- t1.expectChar$1(41);
- return operation;
- }
- t2 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object));
- t2.addInterpolation$1(identifier);
- t2.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
- contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
- if (t1.peekChar$0() === 58)
- throw exception;
- t1.expectChar$1(41);
- return new A.SupportsAnything0(contents, t1.spanFrom$1(start));
- } else
- throw exception;
- }
- declaration = _this._stylesheet0$_supportsDeclarationValue$2($name, start);
- t1.expectChar$1(41);
- return declaration;
- },
- _stylesheet0$_supportsDeclarationValue$2($name, start) {
- var t1, value, _this = this;
- if ($name instanceof A.StringExpression0)
- if (!$name.hasQuotes)
- t1 = B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--");
- else
- t1 = false;
- else
- t1 = false;
- if (t1)
- value = new A.StringExpression0(_this._stylesheet0$_interpolatedDeclarationValue$0(), false);
- else {
- _this.whitespace$0();
- value = _this._stylesheet0$_expression$0();
- }
- return new A.SupportsDeclaration0($name, value, _this.scanner.spanFrom$1(start));
- },
- _stylesheet0$_trySupportsOperation$2(interpolation, start) {
- var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
- t1 = interpolation.contents;
- if (t1.length !== 1)
- return _null;
- expression = B.JSArray_methods.get$first(t1);
- if (!type$.Expression_2._is(expression))
- return _null;
- t1 = _this.scanner;
- beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position);
- _this.whitespace$0();
- for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
- if (operator != null)
- _this.expectIdentifier$1(operator);
- else if (_this.scanIdentifier$1("and"))
- operator = "and";
- else {
- if (!_this.scanIdentifier$1("or")) {
- if (beforeWhitespace._scanner !== t1)
- A.throwExpression(A.ArgumentError$(string$.The_gi, _null));
- t2 = beforeWhitespace.position;
- if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length)
- A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null));
- t1._string_scanner$_position = t2;
- return t1._lastMatch = null;
- }
- operator = "or";
- }
- _this.whitespace$0();
- right = _this._stylesheet0$_supportsConditionInParens$0();
- t4 = operation == null ? new A.SupportsInterpolation0(expression, t3) : operation;
- endPosition = t1._string_scanner$_position;
- t5 = t1._sourceFile;
- t6 = new A._FileSpan(t5, t2, endPosition);
- t6._FileSpan$3(t5, t2, endPosition);
- operation = new A.SupportsOperation0(t4, right, operator, t6);
- lowerOperator = operator.toLowerCase();
- if (lowerOperator !== "and" && lowerOperator !== "or")
- A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
- _this.whitespace$0();
- }
- return operation;
- },
- _stylesheet0$_lookingAtInterpolatedIdentifier$0() {
- var _0_0,
- t1 = this.scanner,
- _1_0 = t1.peekChar$0();
- $label0$0: {
- if (_1_0 == null) {
- t1 = false;
- break $label0$0;
- }
- if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128 || 92 === _1_0) {
- t1 = true;
- break $label0$0;
- }
- if (35 === _1_0) {
- t1 = t1.peekChar$1(1) === 123;
- break $label0$0;
- }
- if (45 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label1$1: {
- if (_0_0 == null) {
- t1 = false;
- break $label1$1;
- }
- if (35 === _0_0) {
- t1 = t1.peekChar$1(2) === 123;
- break $label1$1;
- }
- if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128 || 92 === _0_0 || 45 === _0_0) {
- t1 = true;
- break $label1$1;
- }
- t1 = false;
- break $label1$1;
- }
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _stylesheet0$_lookingAtPotentialPropertyHack$0() {
- var t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (58 === _0_0 || 42 === _0_0 || 46 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- if (35 === _0_0) {
- t1 = t1.peekChar$1(1) !== 123;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _stylesheet0$_lookingAtInterpolatedIdentifierBody$0() {
- var t2,
- t1 = this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (_0_0 == null) {
- t1 = false;
- break $label0$0;
- }
- if (!(_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128))
- t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
- else
- t2 = true;
- if (t2 || 92 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- if (35 === _0_0) {
- t1 = t1.peekChar$1(1) === 123;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _stylesheet0$_lookingAtExpression$0() {
- var _0_0,
- t1 = this.scanner,
- _1_0 = t1.peekChar$0();
- $label0$0: {
- if (_1_0 == null) {
- t1 = false;
- break $label0$0;
- }
- if (46 === _1_0) {
- t1 = t1.peekChar$1(1) !== 46;
- break $label0$0;
- }
- if (33 === _1_0) {
- _0_0 = t1.peekChar$1(1);
- $label1$1: {
- if (_0_0 != null)
- if (105 !== _0_0)
- if (73 !== _0_0)
- t1 = _0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1)
- break $label1$1;
- break $label1$1;
- }
- break $label0$0;
- }
- if (40 !== _1_0)
- if (47 !== _1_0)
- if (91 !== _1_0)
- if (39 !== _1_0)
- if (34 !== _1_0)
- if (35 !== _1_0)
- if (43 !== _1_0)
- if (45 !== _1_0)
- if (92 !== _1_0)
- if (36 !== _1_0)
- if (38 !== _1_0)
- if (!(_1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128))
- t1 = _1_0 >= 48 && _1_0 <= 57;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- else
- t1 = true;
- if (t1) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- _stylesheet0$_withChildren$1$3(child, start, create) {
- var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
- this.whitespaceWithoutComments$0();
- return result;
- },
- _stylesheet0$_withChildren$3(child, start, create) {
- return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic);
- },
- _stylesheet0$_urlString$0() {
- var innerError, stackTrace, t2, exception,
- t1 = this.scanner,
- start = new A._SpanScannerState(t1, t1._string_scanner$_position),
- url = this.string$0();
- try {
- t2 = A.Uri_parse(url);
- return t2;
- } catch (exception) {
- t2 = A.unwrapException(exception);
- if (type$.FormatException._is(t2)) {
- innerError = t2;
- stackTrace = A.getTraceFromException(exception);
- this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace);
- } else
- throw exception;
- }
- },
- _stylesheet0$_publicIdentifier$0() {
- var _this = this,
- t1 = _this.scanner,
- t2 = t1._string_scanner$_position,
- result = _this.identifier$0();
- _this._stylesheet0$_assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure0(_this, new A._SpanScannerState(t1, t2)));
- return result;
- },
- _stylesheet0$_assertPublic$2(identifier, span) {
- var first = identifier.charCodeAt(0);
- if (!(first === 45 || first === 95))
- return;
- this.error$2(0, string$.Privat, span.call$0());
- },
- get$plainCss() {
- return false;
- }
- };
- A.StylesheetParser_parse_closure0.prototype = {
- call$0() {
- var statements, t4,
- t1 = this.$this,
- t2 = t1.scanner,
- t3 = t2._string_scanner$_position;
- t2.scanChar$1(65279);
- statements = t1.statements$1(new A.StylesheetParser_parse__closure1(t1));
- t2.expectDone$0();
- t4 = t1._stylesheet0$_globalVariables.get$values(0);
- B.JSArray_methods.addAll$1(statements, A.MappedIterable_MappedIterable(t4, new A.StylesheetParser_parse__closure2(), A._instanceType(t4)._eval$1("Iterable.E"), type$.Statement_2));
- return A.Stylesheet$internal0(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.get$plainCss());
- },
- $signature: 554
- };
- A.StylesheetParser_parse__closure1.prototype = {
- call$0() {
- var t1 = this.$this;
- if (t1.scanner.scan$1("@charset")) {
- t1.whitespace$0();
- t1.string$0();
- return null;
- }
- return t1._stylesheet0$_statement$1$root(true);
- },
- $signature: 555
- };
- A.StylesheetParser_parse__closure2.prototype = {
- call$1(declaration) {
- var t1 = declaration.expression;
- return A.VariableDeclaration$0(declaration.name, new A.NullExpression0(t1.get$span(t1)), declaration.span, null, false, true, null);
- },
- $signature: 556
- };
- A.StylesheetParser_parseArgumentDeclaration_closure0.prototype = {
- call$0() {
- var $arguments,
- t1 = this.$this,
- t2 = t1.scanner;
- t2.expectChar$2$name(64, "@-rule");
- t1.identifier$0();
- t1.whitespace$0();
- t1.identifier$0();
- $arguments = t1._stylesheet0$_argumentDeclaration$0();
- t1.whitespace$0();
- t2.expectChar$1(123);
- return $arguments;
- },
- $signature: 557
- };
- A.StylesheetParser__parseSingleProduction_closure0.prototype = {
- call$0() {
- var result = this.production.call$0();
- this.$this.scanner.expectDone$0();
- return result;
- },
- $signature() {
- return this.T._eval$1("0()");
- }
- };
- A.StylesheetParser_parseSignature_closure.prototype = {
- call$0() {
- var $arguments, t2, t3,
- t1 = this.$this,
- $name = t1.identifier$0();
- if (this.requireParens || t1.scanner.peekChar$0() === 40)
- $arguments = t1._stylesheet0$_argumentDeclaration$0();
- else {
- t2 = t1.scanner;
- t2 = A.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
- t3 = t2.offset;
- $arguments = new A.ArgumentDeclaration0(B.List_empty22, null, A._FileSpan$(t2.file, t3, t3));
- }
- t1.scanner.expectDone$0();
- return new A._Record_2($name, $arguments);
- },
- $signature: 558
- };
- A.StylesheetParser__statement_closure0.prototype = {
- call$0() {
- return this.$this._stylesheet0$_statement$0();
- },
- $signature: 130
- };
- A.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = {
- call$0() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 27
- };
- A.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = {
- call$0() {
- return this.declaration;
- },
- $signature: 559
- };
- A.StylesheetParser__styleRule_closure0.prototype = {
- call$2(children, span) {
- var _this = this,
- t1 = _this.$this;
- if (t1.get$indented() && children.length === 0)
- t1.logger.warn$2$span(0, string$.This_s, _this._box_0.interpolation.span);
- t1._stylesheet0$_inStyleRule = _this.wasInStyleRule;
- return A.StyleRule$0(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start));
- },
- $signature: 560
- };
- A.StylesheetParser__tryDeclarationChildren_closure0.prototype = {
- call$2(children, span) {
- return A.Declaration$nested0(this.name, children, span, this.value);
- },
- $signature: 561
- };
- A.StylesheetParser__atRootRule_closure1.prototype = {
- call$2(children, span) {
- return A.AtRootRule$0(children, span, this.query);
- },
- $signature: 210
- };
- A.StylesheetParser__atRootRule_closure2.prototype = {
- call$2(children, span) {
- return A.AtRootRule$0(children, span, null);
- },
- $signature: 210
- };
- A.StylesheetParser__eachRule_closure0.prototype = {
- call$2(children, span) {
- var _this = this;
- _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
- return A.EachRule$0(_this.variables, _this.list, children, span);
- },
- $signature: 563
- };
- A.StylesheetParser__functionRule_closure0.prototype = {
- call$2(children, span) {
- return A.FunctionRule$0(this.name, this.$arguments, children, span, this.precedingComment);
- },
- $signature: 564
- };
- A.StylesheetParser__forRule_closure1.prototype = {
- call$0() {
- var t1 = this.$this;
- if (!t1.lookingAtIdentifier$0())
- return false;
- if (t1.scanIdentifier$1("to"))
- return this._box_0.exclusive = true;
- else if (t1.scanIdentifier$1("through")) {
- this._box_0.exclusive = false;
- return true;
- } else
- return false;
- },
- $signature: 22
- };
- A.StylesheetParser__forRule_closure2.prototype = {
- call$2(children, span) {
- var t1, _this = this;
- _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
- t1 = _this._box_0.exclusive;
- t1.toString;
- return A.ForRule$0(_this.variable, _this.from, _this.to, children, span, t1);
- },
- $signature: 565
- };
- A.StylesheetParser__memberList_closure0.prototype = {
- call$0() {
- var t1 = this.$this;
- if (t1.scanner.peekChar$0() === 36)
- this.variables.add$1(0, t1.variableName$0());
- else
- this.identifiers.add$1(0, t1.identifier$1$normalize(true));
- },
- $signature: 1
- };
- A.StylesheetParser__includeRule_closure0.prototype = {
- call$2(children, span) {
- return A.ContentBlock$0(this.contentArguments_, children, span);
- },
- $signature: 566
- };
- A.StylesheetParser_mediaRule_closure0.prototype = {
- call$2(children, span) {
- return A.MediaRule$0(this.query, children, span);
- },
- $signature: 567
- };
- A.StylesheetParser__mixinRule_closure0.prototype = {
- call$2(children, span) {
- var _this = this;
- _this.$this._stylesheet0$_inMixin = false;
- return A.MixinRule$0(_this.name, _this.$arguments, children, span, _this.precedingComment);
- },
- $signature: 568
- };
- A.StylesheetParser_mozDocumentRule_closure0.prototype = {
- call$2(children, span) {
- var _this = this;
- if (_this._box_0.needsDeprecationWarning)
- A.WarnForDeprecation_warnForDeprecation0(_this.$this.logger, B.Deprecation_Iit, string$.x40_moz_, span, null);
- return A.AtRule$0(_this.name, span, children, _this.value);
- },
- $signature: 195
- };
- A.StylesheetParser_supportsRule_closure0.prototype = {
- call$2(children, span) {
- return A.SupportsRule$0(this.condition, children, span);
- },
- $signature: 570
- };
- A.StylesheetParser__whileRule_closure0.prototype = {
- call$2(children, span) {
- this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective;
- return A.WhileRule$0(this.condition, children, span);
- },
- $signature: 571
- };
- A.StylesheetParser_unknownAtRule_closure0.prototype = {
- call$2(children, span) {
- return A.AtRule$0(this.name, span, children, this._box_0.value);
- },
- $signature: 195
- };
- A.StylesheetParser__expression_resetState0.prototype = {
- call$0() {
- var t2,
- t1 = this._box_0;
- t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null;
- t2 = this.$this;
- t2.scanner.set$state(this.start);
- t1.allowSlash = true;
- t1.singleExpression_ = t2._stylesheet0$_singleExpression$0();
- },
- $signature: 0
- };
- A.StylesheetParser__expression_resolveOneOperation0.prototype = {
- call$0() {
- var t2, t3, t4, t5, t6, t7, _this = this,
- t1 = _this._box_0,
- operator = t1.operators_.pop(),
- left = t1.operands_.pop(),
- right = t1.singleExpression_;
- if (right == null) {
- t2 = _this.$this.scanner;
- t3 = operator.operator.length;
- t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3);
- }
- if (t1.allowSlash) {
- t2 = _this.$this;
- t2 = !t2._stylesheet0$_inParentheses && operator === B.BinaryOperator_U770 && t2._stylesheet0$_isSlashOperand$1(left) && t2._stylesheet0$_isSlashOperand$1(right);
- } else
- t2 = false;
- if (t2)
- t1.singleExpression_ = new A.BinaryOperationExpression0(B.BinaryOperator_U770, left, right, true);
- else {
- t1.singleExpression_ = new A.BinaryOperationExpression0(operator, left, right, false);
- t2 = t1.allowSlash = false;
- if (B.BinaryOperator_u150 === operator || B.BinaryOperator_SjO0 === operator) {
- t3 = _this.$this;
- t4 = t3.scanner.string;
- t5 = right.get$span(right);
- t5 = t5.get$start(t5);
- t6 = right.get$span(right);
- t7 = operator.operator;
- if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) {
- t2 = left.get$span(left);
- t2 = t4.charCodeAt(t2.get$end(t2).offset);
- t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12;
- }
- if (t2) {
- t2 = left.toString$0(0);
- t4 = right.toString$0(0);
- t5 = left.toString$0(0);
- t6 = right.toString$0(0);
- t1 = t1.singleExpression_;
- A.WarnForDeprecation_warnForDeprecation0(t3.logger, B.Deprecation_woc, "This operation is parsed as:\n\n " + t2 + " " + t7 + " " + t4 + string$.x0a_but_ + t5 + " (" + t7 + t6 + ")\n\nAdd a space after " + t7 + string$.x20to_cl, t1.get$span(t1), null);
- }
- }
- }
- },
- $signature: 0
- };
- A.StylesheetParser__expression_resolveOperations0.prototype = {
- call$0() {
- var t1,
- operators = this._box_0.operators_;
- if (operators == null)
- return;
- for (t1 = this.resolveOneOperation; operators.length !== 0;)
- t1.call$0();
- },
- $signature: 0
- };
- A.StylesheetParser__expression_addSingleExpression0.prototype = {
- call$1(expression) {
- var t2, spaceExpressions, _this = this,
- t1 = _this._box_0;
- if (t1.singleExpression_ != null) {
- t2 = _this.$this;
- if (t2._stylesheet0$_inParentheses) {
- t2._stylesheet0$_inParentheses = false;
- if (t1.allowSlash) {
- _this.resetState.call$0();
- return;
- }
- }
- spaceExpressions = t1.spaceExpressions_;
- if (spaceExpressions == null)
- spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression_2);
- _this.resolveOperations.call$0();
- t2 = t1.singleExpression_;
- t2.toString;
- spaceExpressions.push(t2);
- t1.allowSlash = true;
- }
- t1.singleExpression_ = expression;
- },
- $signature: 572
- };
- A.StylesheetParser__expression_addOperator0.prototype = {
- call$1(operator) {
- var t2, t3, operators, operands, t4, singleExpression,
- t1 = this.$this;
- if (t1.get$plainCss() && operator !== B.BinaryOperator_wdM0 && operator !== B.BinaryOperator_u150 && operator !== B.BinaryOperator_SjO0 && operator !== B.BinaryOperator_2No0 && operator !== B.BinaryOperator_U770) {
- t2 = t1.scanner;
- t3 = operator.operator.length;
- t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
- }
- t2 = this._box_0;
- t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_U770;
- operators = t2.operators_;
- if (operators == null)
- operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator_2);
- operands = t2.operands_;
- if (operands == null)
- operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression_2);
- t3 = this.resolveOneOperation;
- t4 = operator.precedence;
- while (true) {
- if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4))
- break;
- t3.call$0();
- }
- operators.push(operator);
- singleExpression = t2.singleExpression_;
- if (singleExpression == null) {
- t3 = t1.scanner;
- t4 = operator.operator.length;
- t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4);
- }
- operands.push(singleExpression);
- t1.whitespace$0();
- t2.singleExpression_ = t1._stylesheet0$_singleExpression$0();
- },
- $signature: 573
- };
- A.StylesheetParser__expression_resolveSpaceExpressions0.prototype = {
- call$0() {
- var t1, spaceExpressions, singleExpression, t2;
- this.resolveOperations.call$0();
- t1 = this._box_0;
- spaceExpressions = t1.spaceExpressions_;
- if (spaceExpressions == null)
- return;
- singleExpression = t1.singleExpression_;
- if (singleExpression == null)
- this.$this.scanner.error$1(0, "Expected expression.");
- spaceExpressions.push(singleExpression);
- t2 = B.JSArray_methods.get$first(spaceExpressions);
- t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression));
- t1.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_nbm0, false, t2);
- t1.spaceExpressions_ = null;
- },
- $signature: 0
- };
- A.StylesheetParser_expressionUntilComma_closure0.prototype = {
- call$0() {
- return this.$this.scanner.peekChar$0() === 44;
- },
- $signature: 22
- };
- A.StylesheetParser__isHexColor_closure0.prototype = {
- call$1(char) {
- return A.CharacterExtension_get_isHex0(char);
- },
- $signature: 45
- };
- A.StylesheetParser__unicodeRange_closure1.prototype = {
- call$1(char) {
- return char != null && A.CharacterExtension_get_isHex0(char);
- },
- $signature: 30
- };
- A.StylesheetParser__unicodeRange_closure2.prototype = {
- call$1(char) {
- return char != null && A.CharacterExtension_get_isHex0(char);
- },
- $signature: 30
- };
- A.StylesheetParser_namespacedExpression_closure0.prototype = {
- call$0() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 27
- };
- A.StylesheetParser_trySpecialFunction_closure0.prototype = {
- call$1(contents) {
- return new A.StringExpression0(contents, false);
- },
- $signature: 574
- };
- A.StylesheetParser__expressionUntilComparison_closure0.prototype = {
- call$0() {
- var t1 = this.$this.scanner,
- _0_0 = t1.peekChar$0();
- $label0$0: {
- if (61 === _0_0) {
- t1 = t1.peekChar$1(1) !== 61;
- break $label0$0;
- }
- if (60 === _0_0 || 62 === _0_0) {
- t1 = true;
- break $label0$0;
- }
- t1 = false;
- break $label0$0;
- }
- return t1;
- },
- $signature: 22
- };
- A.StylesheetParser__publicIdentifier_closure0.prototype = {
- call$0() {
- return this.$this.scanner.spanFrom$1(this.start);
- },
- $signature: 27
- };
- A.Stylesheet0.prototype = {
- Stylesheet$internal$3$plainCss0(children, span, plainCss) {
- var t1, t2, t3, t4, _i, child;
- for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) {
- child = t1[_i];
- if (child instanceof A.UseRule0) {
- t4.push(child);
- continue;
- }
- if (child instanceof A.ForwardRule0) {
- t3.push(child);
- continue;
- }
- if (child instanceof A.SilentComment0 || child instanceof A.LoudComment0 || child instanceof A.VariableDeclaration0)
- continue;
- break;
- }
- },
- accept$1$1(visitor) {
- return visitor.visitStylesheet$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return (t1 && B.JSArray_methods).join$1(t1, " ");
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsExpression0.prototype = {
- get$span(_) {
- var t1 = this.condition;
- return t1.get$span(t1);
- },
- accept$1$1(visitor) {
- return visitor.visitSupportsExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return this.condition.toString$0(0);
- },
- $isExpression0: 1,
- $isAstNode0: 1
- };
- A.ModifiableCssSupportsRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitCssSupportsRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- equalsIgnoringChildren$1(other) {
- var t1, t2;
- if (other instanceof A.ModifiableCssSupportsRule0) {
- t1 = this.condition;
- t2 = other.condition;
- t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value);
- } else
- t1 = false;
- return t1;
- },
- copyWithoutChildren$0() {
- return A.ModifiableCssSupportsRule$0(this.condition, this.span);
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.SupportsRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitSupportsRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- A.JSToDartImporter.prototype = {
- canonicalize$1(_, url) {
- var t1,
- result = A.wrapJSExceptions(new A.JSToDartImporter_canonicalize_closure(this, url));
- if (result == null)
- return null;
- t1 = self.URL;
- if (result instanceof t1)
- return A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
- t1 = self.Promise;
- if (result instanceof t1)
- A.jsThrow(new self.Error("The canonicalize() function can't return a Promise for synchronous compile functions."));
- else
- A.jsThrow(new self.Error(string$.The_ca));
- },
- load$1(_, url) {
- var t1, contents, syntax, t2,
- result = A.wrapJSExceptions(new A.JSToDartImporter_load_closure(this, url));
- if (result == null)
- return null;
- t1 = self.Promise;
- if (result instanceof t1)
- A.jsThrow(new self.Error("The load() function can't return a Promise for synchronous compile functions."));
- type$.JSImporterResult._as(result);
- t1 = J.getInterceptor$x(result);
- contents = t1.get$contents(result);
- if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
- A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
- syntax = t1.get$syntax(result);
- if (contents == null || syntax == null)
- A.jsThrow(new self.Error(string$.The_lo));
- t2 = A.parseSyntax(syntax);
- return A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils1__jsToDartUrl$closure()), t2);
- },
- isNonCanonicalScheme$1(scheme) {
- return this._sync$_nonCanonicalSchemes.contains$1(0, scheme);
- }
- };
- A.JSToDartImporter_canonicalize_closure.prototype = {
- call$0() {
- return this.$this._sync$_canonicalize.call$2(this.url.toString$0(0), A.canonicalizeContext0());
- },
- $signature: 35
- };
- A.JSToDartImporter_load_closure.prototype = {
- call$0() {
- return this.$this._sync$_load.call$1(new self.URL(this.url.toString$0(0)));
- },
- $signature: 35
- };
- A.Syntax0.prototype = {
- _enumToString$0() {
- return "Syntax." + this._name;
- },
- toString$0(_) {
- return this._syntax0$_name;
- }
- };
- A.TypeSelector0.prototype = {
- get$specificity() {
- return 1;
- },
- accept$1$1(visitor) {
- return visitor.visitTypeSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- addSuffix$1(suffix) {
- var t1 = this.name;
- return new A.TypeSelector0(new A.QualifiedName0(t1.name + suffix, t1.namespace), this.span);
- },
- unify$1(compound) {
- var unified, t1,
- _0_0 = B.JSArray_methods.get$first(compound);
- if (_0_0 instanceof A.UniversalSelector0 || _0_0 instanceof A.TypeSelector0) {
- unified = A.unifyUniversalAndElement0(this, B.JSArray_methods.get$first(compound));
- if (unified == null)
- return null;
- t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2);
- B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
- return t1;
- } else {
- t1 = A._setArrayType([this], type$.JSArray_SimpleSelector_2);
- B.JSArray_methods.addAll$1(t1, compound);
- return t1;
- }
- },
- isSuperselector$1(other) {
- var t1, t2;
- if (!this.super$SimpleSelector$isSuperselector0(other))
- if (other instanceof A.TypeSelector0) {
- t1 = this.name;
- t2 = other.name;
- if (t1.name === t2.name) {
- t1 = t1.namespace;
- t1 = t1 === "*" || t1 == t2.namespace;
- } else
- t1 = false;
- } else
- t1 = false;
- else
- t1 = true;
- return t1;
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.TypeSelector0 && other.name.$eq(0, this.name);
- },
- get$hashCode(_) {
- var t1 = this.name;
- return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
- }
- };
- A.Types.prototype = {};
- A.UnaryOperationExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitUnaryOperationExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var operand,
- t1 = this.operator,
- t2 = t1.operator;
- t1 = t1 === B.UnaryOperator_not_not_not0 ? t2 + A.Primitives_stringFromCharCode(32) : t2;
- operand = this.operand;
- $label0$0: {
- if (!(operand instanceof A.BinaryOperationExpression0))
- if (!(operand instanceof A.UnaryOperationExpression0))
- t2 = operand instanceof A.ListExpression0 && !operand.hasBrackets && operand.contents.length >= 2;
- else
- t2 = true;
- else
- t2 = true;
- if (t2)
- break $label0$0;
- break $label0$0;
- }
- if (t2)
- t1 += "40";
- t1 += operand.toString$0(0);
- if (t2)
- t1 += "41";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.UnaryOperator0.prototype = {
- _enumToString$0() {
- return "UnaryOperator." + this._name;
- },
- toString$0(_) {
- return this.name;
- }
- };
- A.UnitlessSassNumber0.prototype = {
- get$numeratorUnits(_) {
- return B.List_empty;
- },
- get$denominatorUnits(_) {
- return B.List_empty;
- },
- get$hasUnits() {
- return false;
- },
- get$hasComplexUnits() {
- return false;
- },
- withValue$1(value) {
- return new A.UnitlessSassNumber0(value, null);
- },
- withSlash$2(numerator, denominator) {
- return new A.UnitlessSassNumber0(this._number1$_value, new A._Record_2(numerator, denominator));
- },
- hasUnit$1(unit) {
- return false;
- },
- hasCompatibleUnits$1(other) {
- return other instanceof A.UnitlessSassNumber0;
- },
- hasPossiblyCompatibleUnits$1(other) {
- return other instanceof A.UnitlessSassNumber0;
- },
- compatibleWithUnit$1(unit) {
- return true;
- },
- coerceToMatch$3(other, $name, otherName) {
- return other.withValue$1(this._number1$_value);
- },
- coerceToMatch$1(other) {
- return this.coerceToMatch$3(other, null, null);
- },
- coerceValueToMatch$3(other, $name, otherName) {
- return this._number1$_value;
- },
- coerceValueToMatch$1(other) {
- return this.coerceValueToMatch$3(other, null, null);
- },
- convertToMatch$3(other, $name, otherName) {
- return other.get$hasUnits() ? this.super$SassNumber$convertToMatch(other, $name, otherName) : this;
- },
- convertValueToMatch$3(other, $name, otherName) {
- return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : this._number1$_value;
- },
- convertValueToMatch$1(other) {
- return this.convertValueToMatch$3(other, null, null);
- },
- coerce$3(newNumerators, newDenominators, $name) {
- return A.SassNumber_SassNumber$withUnits0(this._number1$_value, newDenominators, newNumerators);
- },
- coerce$2(newNumerators, newDenominators) {
- return this.coerce$3(newNumerators, newDenominators, null);
- },
- coerceValue$3(newNumerators, newDenominators, $name) {
- return this._number1$_value;
- },
- coerceValueToUnit$2(unit, $name) {
- return this._number1$_value;
- },
- coerceValueToUnit$1(unit) {
- return this.coerceValueToUnit$2(unit, null);
- },
- greaterThan$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber0) {
- t1 = this._number1$_value;
- t2 = other._number1$_value;
- return t1 > t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- }
- return this.super$SassNumber$greaterThan0(other);
- },
- greaterThanOrEquals$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber0) {
- t1 = this._number1$_value;
- t2 = other._number1$_value;
- return t1 > t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- }
- return this.super$SassNumber$greaterThanOrEquals0(other);
- },
- lessThan$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber0) {
- t1 = this._number1$_value;
- t2 = other._number1$_value;
- return t1 < t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- }
- return this.super$SassNumber$lessThan0(other);
- },
- lessThanOrEquals$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber0) {
- t1 = this._number1$_value;
- t2 = other._number1$_value;
- return t1 < t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
- }
- return this.super$SassNumber$lessThanOrEquals0(other);
- },
- modulo$1(other) {
- if (other instanceof A.SassNumber0)
- return other.withValue$1(A.moduloLikeSass0(this._number1$_value, other._number1$_value));
- return this.super$SassNumber$modulo0(other);
- },
- plus$1(other) {
- if (other instanceof A.SassNumber0)
- return other.withValue$1(this._number1$_value + other._number1$_value);
- return this.super$SassNumber$plus0(other);
- },
- minus$1(other) {
- if (other instanceof A.SassNumber0)
- return other.withValue$1(this._number1$_value - other._number1$_value);
- return this.super$SassNumber$minus0(other);
- },
- times$1(other) {
- if (other instanceof A.SassNumber0)
- return other.withValue$1(this._number1$_value * other._number1$_value);
- return this.super$SassNumber$times0(other);
- },
- dividedBy$1(other) {
- var t1, t2;
- if (other instanceof A.SassNumber0) {
- t1 = this._number1$_value / other._number1$_value;
- if (other.get$hasUnits()) {
- t2 = other.get$denominatorUnits(other);
- t2 = A.SassNumber_SassNumber$withUnits0(t1, other.get$numeratorUnits(other), t2);
- t1 = t2;
- } else
- t1 = new A.UnitlessSassNumber0(t1, null);
- return t1;
- }
- return this.super$SassNumber$dividedBy0(other);
- },
- unaryMinus$0() {
- return new A.UnitlessSassNumber0(-this._number1$_value, null);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.UnitlessSassNumber0 && A.fuzzyEquals0(this._number1$_value, other._number1$_value);
- },
- get$hashCode(_) {
- var t1 = this.hashCache;
- return t1 == null ? this.hashCache = A.fuzzyHashCode0(this._number1$_value) : t1;
- }
- };
- A.UniversalSelector0.prototype = {
- get$specificity() {
- return 0;
- },
- accept$1$1(visitor) {
- return visitor.visitUniversalSelector$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- unify$1(compound) {
- var _0_4, t1, rest, unified, _this = this, _null = null,
- _0_1 = compound.length,
- _0_4_isSet = _0_1 >= 1;
- if (_0_4_isSet) {
- _0_4 = compound[0];
- t1 = _0_4;
- if (!(t1 instanceof A.UniversalSelector0))
- t1 = _0_4 instanceof A.TypeSelector0;
- else
- t1 = true;
- rest = t1 ? B.JSArray_methods.sublist$1(compound, 1) : _null;
- } else {
- rest = _null;
- _0_4 = rest;
- t1 = false;
- }
- if (t1) {
- unified = A.unifyUniversalAndElement0(_this, B.JSArray_methods.get$first(compound));
- if (unified == null)
- return _null;
- t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2);
- B.JSArray_methods.addAll$1(t1, rest);
- return t1;
- }
- if (_0_1 === 1) {
- if (_0_4_isSet)
- t1 = _0_4;
- else {
- _0_4 = compound[0];
- t1 = _0_4;
- _0_4_isSet = true;
- }
- if (t1 instanceof A.PseudoSelector0) {
- t1 = _0_4_isSet ? _0_4 : compound[0];
- type$.PseudoSelector_2._as(t1);
- t1 = t1.isClass && t1.name === "host" || t1.get$isHostContext();
- } else
- t1 = false;
- } else
- t1 = false;
- if (t1)
- return _null;
- if (_0_1 <= 0)
- return A._setArrayType([_this], type$.JSArray_SimpleSelector_2);
- t1 = _this.namespace;
- if (t1 == null || t1 === "*")
- t1 = compound;
- else {
- t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector_2);
- B.JSArray_methods.addAll$1(t1, compound);
- }
- return t1;
- },
- isSuperselector$1(other) {
- var t1 = this.namespace;
- if (t1 === "*")
- return true;
- if (other instanceof A.TypeSelector0)
- return t1 == other.name.namespace;
- if (other instanceof A.UniversalSelector0)
- return t1 == other.namespace;
- return t1 == null || this.super$SimpleSelector$isSuperselector0(other);
- },
- $eq(_, other) {
- if (other == null)
- return false;
- return other instanceof A.UniversalSelector0 && other.namespace == this.namespace;
- },
- get$hashCode(_) {
- return J.get$hashCode$(this.namespace);
- }
- };
- A.UnprefixedMapView0.prototype = {
- get$keys(_) {
- return new A._UnprefixedKeys0(this);
- },
- $index(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, this._unprefixed_map_view0$_prefix + key) : null;
- },
- containsKey$1(key) {
- return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(this._unprefixed_map_view0$_prefix + key);
- },
- remove$1(_, key) {
- return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, this._unprefixed_map_view0$_prefix + key) : null;
- }
- };
- A._UnprefixedKeys0.prototype = {
- get$iterator(_) {
- var t1 = this._unprefixed_map_view0$_view._unprefixed_map_view0$_map;
- t1 = J.where$1$ax(t1.get$keys(t1), new A._UnprefixedKeys_iterator_closure1(this)).map$1$1(0, new A._UnprefixedKeys_iterator_closure2(this), type$.String);
- return t1.get$iterator(t1);
- },
- contains$1(_, key) {
- return this._unprefixed_map_view0$_view.containsKey$1(key);
- }
- };
- A._UnprefixedKeys_iterator_closure1.prototype = {
- call$1(key) {
- return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix);
- },
- $signature: 4
- };
- A._UnprefixedKeys_iterator_closure2.prototype = {
- call$1(key) {
- return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length);
- },
- $signature: 5
- };
- A.JSUrl0.prototype = {};
- A.UseRule0.prototype = {
- UseRule$4$configuration0(url, namespace, span, configuration) {
- var t1, t2, _i, variable;
- for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
- variable = t1[_i];
- if (variable.isGuarded)
- throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
- }
- },
- accept$1$1(visitor) {
- return visitor.visitUseRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.url,
- t2 = "@use " + A.StringExpression_quoteText0(t1.toString$0(0)),
- basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()),
- dot = B.JSString_methods.indexOf$1(basename, ".");
- t1 = this.namespace;
- if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
- t1 = t2 + (" as " + (t1 == null ? "*" : t1));
- else
- t1 = t2;
- t2 = this.configuration;
- t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.UserDefinedCallable0.prototype = {
- get$name(_) {
- return this.declaration.name;
- },
- $isAsyncCallable0: 1,
- $isCallable: 1
- };
- A.resolveImportPath_closure1.prototype = {
- call$0() {
- return A._exactlyOne0(A._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
- },
- $signature: 44
- };
- A.resolveImportPath_closure2.prototype = {
- call$0() {
- return A._exactlyOne0(A._tryPathWithExtensions0(this.path + ".import"));
- },
- $signature: 44
- };
- A._tryPathAsDirectory_closure0.prototype = {
- call$0() {
- return A._exactlyOne0(A._tryPathWithExtensions0(A.join(this.path, "index.import", null)));
- },
- $signature: 44
- };
- A._exactlyOne_closure0.prototype = {
- call$1(path) {
- var t1 = $.$get$context();
- return " " + t1.prettyUri$1(t1.toUri$1(path));
- },
- $signature: 5
- };
- A._PropertyDescriptor0.prototype = {};
- A.futureToPromise_closure0.prototype = {
- call$2(resolve, reject) {
- this.future.then$1$2$onError(0, new A.futureToPromise__closure0(resolve), new A.futureToPromise__closure1(reject), type$.void);
- },
- $signature: 575
- };
- A.futureToPromise__closure0.prototype = {
- call$1(result) {
- return this.resolve.call$1(result);
- },
- $signature: 31
- };
- A.futureToPromise__closure1.prototype = {
- call$2(error, stackTrace) {
- A.attachTrace0(error, stackTrace);
- this.reject.call$1(error);
- },
- $signature: 52
- };
- A.objectToMap_closure.prototype = {
- call$2(key, value) {
- this.map.$indexSet(0, key, value);
- return value;
- },
- $signature: 120
- };
- A._RequireMain0.prototype = {};
- A.indent_closure0.prototype = {
- call$1(line) {
- return B.JSString_methods.$mul(" ", this.indentation) + line;
- },
- $signature: 5
- };
- A.flattenVertically_closure1.prototype = {
- call$1(inner) {
- return A.QueueList_QueueList$from(inner, this.T);
- },
- $signature() {
- return this.T._eval$1("QueueList<0>(Iterable<0>)");
- }
- };
- A.flattenVertically_closure2.prototype = {
- call$1(queue) {
- this.result.push(queue.removeFirst$0());
- return queue.get$length(0) === 0;
- },
- $signature() {
- return this.T._eval$1("bool(QueueList<0>)");
- }
- };
- A.longestCommonSubsequence_backtrack0.prototype = {
- call$2(i, j) {
- var selection, t1, _this = this;
- if (i === -1 || j === -1)
- return A._setArrayType([], _this.T._eval$1("JSArray<0>"));
- selection = _this.selections[i][j];
- if (selection != null) {
- t1 = _this.call$2(i - 1, j - 1);
- J.add$1$ax(t1, selection);
- return t1;
- }
- t1 = _this.lengths;
- return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
- },
- $signature() {
- return this.T._eval$1("List<0>(int,int)");
- }
- };
- A.mapAddAll2_closure0.prototype = {
- call$2(key, inner) {
- var t1 = this.destination,
- _0_0 = t1.$index(0, key);
- if (_0_0 != null)
- _0_0.addAll$1(0, inner);
- else
- t1.$indexSet(0, key, inner);
- },
- $signature() {
- return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)");
- }
- };
- A.CssValue0.prototype = {
- $eq(_, other) {
- if (other == null)
- return false;
- return this.$ti._is(other) && J.$eq$(other.value, this.value);
- },
- get$hashCode(_) {
- return J.get$hashCode$(this.value);
- },
- toString$0(_) {
- return J.toString$0$(this.value);
- },
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.ValueExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitValueExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return A.serializeValue0(this.value, true, true);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.valueClass_closure.prototype = {
- call$0() {
- var t2,
- t1 = type$.JSClass,
- jsClass = t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(B.C__SassNull0.constructor))).constructor);
- A.JSClassExtension_setCustomInspect(jsClass, new A.valueClass__closure());
- t1 = type$.String;
- t2 = type$.Function;
- A.LinkedHashMap_LinkedHashMap$_literal(["asList", new A.valueClass__closure0(), "hasBrackets", new A.valueClass__closure1(), "isTruthy", new A.valueClass__closure2(), "realNull", new A.valueClass__closure3(), "separator", new A.valueClass__closure4()], t1, t2).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
- A.LinkedHashMap_LinkedHashMap$_literal(["sassIndexToListIndex", new A.valueClass__closure5(), "get", new A.valueClass__closure6(), "assertBoolean", new A.valueClass__closure7(), "assertCalculation", new A.valueClass__closure8(), "assertColor", new A.valueClass__closure9(), "assertFunction", new A.valueClass__closure10(), "assertMap", new A.valueClass__closure11(), "assertMixin", new A.valueClass__closure12(), "assertNumber", new A.valueClass__closure13(), "assertString", new A.valueClass__closure14(), "tryMap", new A.valueClass__closure15(), "equals", new A.valueClass__closure16(), "hashCode", new A.valueClass__closure17(), "toString", new A.valueClass__closure18()], t1, t2).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
- return jsClass;
- },
- $signature: 15
- };
- A.valueClass__closure.prototype = {
- call$1($self) {
- return J.toString$0$($self);
- },
- $signature: 134
- };
- A.valueClass__closure0.prototype = {
- call$1($self) {
- return new self.immutable.List($self.get$asList());
- },
- $signature: 576
- };
- A.valueClass__closure1.prototype = {
- call$1($self) {
- return $self.get$hasBrackets();
- },
- $signature: 53
- };
- A.valueClass__closure2.prototype = {
- call$1($self) {
- return $self.get$isTruthy();
- },
- $signature: 53
- };
- A.valueClass__closure3.prototype = {
- call$1($self) {
- return $self.get$realNull();
- },
- $signature: 190
- };
- A.valueClass__closure4.prototype = {
- call$1($self) {
- return $self.get$separator($self).separator;
- },
- $signature: 577
- };
- A.valueClass__closure5.prototype = {
- call$3($self, sassIndex, $name) {
- return $self.sassIndexToListIndex$2(sassIndex, $name);
- },
- call$2($self, sassIndex) {
- return this.call$3($self, sassIndex, null);
- },
- "call*": "call$3",
- $requiredArgCount: 2,
- $defaultValues() {
- return [null];
- },
- $signature: 578
- };
- A.valueClass__closure6.prototype = {
- call$2($self, index) {
- return index < 1 && index >= -1 ? $self : self.undefined;
- },
- $signature: 240
- };
- A.valueClass__closure7.prototype = {
- call$2($self, $name) {
- return $self.assertBoolean$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 579
- };
- A.valueClass__closure8.prototype = {
- call$2($self, $name) {
- return $self.assertCalculation$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 580
- };
- A.valueClass__closure9.prototype = {
- call$2($self, $name) {
- return $self.assertColor$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 581
- };
- A.valueClass__closure10.prototype = {
- call$2($self, $name) {
- return $self.assertFunction$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 582
- };
- A.valueClass__closure11.prototype = {
- call$2($self, $name) {
- return $self.assertMap$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 583
- };
- A.valueClass__closure12.prototype = {
- call$2($self, $name) {
- return $self.assertMixin$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 584
- };
- A.valueClass__closure13.prototype = {
- call$2($self, $name) {
- return $self.assertNumber$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 585
- };
- A.valueClass__closure14.prototype = {
- call$2($self, $name) {
- return $self.assertString$1($name);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 586
- };
- A.valueClass__closure15.prototype = {
- call$1($self) {
- return $self.tryMap$0();
- },
- $signature: 587
- };
- A.valueClass__closure16.prototype = {
- call$2($self, other) {
- return $self.$eq(0, other);
- },
- $signature: 588
- };
- A.valueClass__closure17.prototype = {
- call$2($self, _) {
- return $self.get$hashCode($self);
- },
- call$1($self) {
- return this.call$2($self, null);
- },
- "call*": "call$2",
- $requiredArgCount: 1,
- $defaultValues() {
- return [null];
- },
- $signature: 589
- };
- A.valueClass__closure18.prototype = {
- call$1($self) {
- return A.serializeValue0($self, true, true);
- },
- $signature: 136
- };
- A.Value0.prototype = {
- get$isTruthy() {
- return true;
- },
- get$separator(_) {
- return B.ListSeparator_undecided_null_undecided0;
- },
- get$hasBrackets() {
- return false;
- },
- get$asList() {
- return A._setArrayType([this], type$.JSArray_Value_2);
- },
- get$lengthAsList() {
- return 1;
- },
- get$isBlank() {
- return false;
- },
- get$isSpecialNumber() {
- return false;
- },
- get$isVar() {
- return false;
- },
- get$realNull() {
- return this;
- },
- sassIndexToListIndex$2(sassIndex, $name) {
- var t1, index,
- indexValue = sassIndex.assertNumber$1($name);
- if (indexValue.get$hasUnits()) {
- t1 = indexValue.get$unitString();
- A.warnForDeprecation0("$" + A.S($name) + ": Passing a number with unit " + t1 + string$.x20is_de + indexValue.unitSuggestion$1($name == null ? "index" : $name) + string$.x0a_Morex3a, B.Deprecation_oCX);
- }
- index = indexValue.assertInt$1($name);
- if (index === 0)
- throw A.wrapException(A.SassScriptException$0("List index may not be 0.", $name));
- if (Math.abs(index) > this.get$lengthAsList())
- throw A.wrapException(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name));
- return index < 0 ? this.get$lengthAsList() + index : index - 1;
- },
- assertBoolean$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a boolean.", $name));
- },
- assertCalculation$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a calculation.", $name));
- },
- assertColor$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a color.", $name));
- },
- assertFunction$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a function reference.", $name));
- },
- assertMixin$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a mixin reference.", $name));
- },
- assertMap$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a map.", $name));
- },
- tryMap$0() {
- return null;
- },
- assertNumber$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a number.", $name));
- },
- assertNumber$0() {
- return this.assertNumber$1(null);
- },
- assertString$1($name) {
- return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a string.", $name));
- },
- _value$_selectorString$1($name) {
- var _0_0 = this._value$_selectorStringOrNull$0();
- if (_0_0 != null)
- return _0_0;
- throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + string$.x20is_noav, $name));
- },
- _value$_selectorStringOrNull$0() {
- var t1, t2, result, _1_0, _i, complex, string, compound, _this = this, _null = null;
- if (_this instanceof A.SassString0)
- return _this._string0$_text;
- if (!(_this instanceof A.SassList0))
- return _null;
- t1 = _this._list1$_contents;
- t2 = t1.length;
- if (t2 === 0)
- return _null;
- result = A._setArrayType([], type$.JSArray_String);
- $label0$1: {
- _1_0 = _this._list1$_separator;
- if (B.ListSeparator_ECn0 === _1_0) {
- for (_i = 0; _i < t2; ++_i) {
- complex = t1[_i];
- if (complex instanceof A.SassString0) {
- result.push(complex._string0$_text);
- continue;
- }
- if (complex instanceof A.SassList0 && B.ListSeparator_nbm0 === complex._list1$_separator) {
- string = complex._value$_selectorStringOrNull$0();
- if (string == null)
- return _null;
- result.push(string);
- continue;
- }
- return _null;
- }
- break $label0$1;
- }
- if (B.ListSeparator_cQA0 === _1_0)
- return _null;
- for (_i = 0; _i < t2; ++_i) {
- compound = t1[_i];
- if (!(compound instanceof A.SassString0))
- return _null;
- result.push(compound._string0$_text);
- }
- break $label0$1;
- }
- return B.JSArray_methods.join$1(result, _1_0 === B.ListSeparator_ECn0 ? ", " : " ");
- },
- withListContents$2$separator(contents, separator) {
- var t1 = separator == null ? this.get$separator(this) : separator,
- t2 = this.get$hasBrackets();
- return A.SassList$0(contents, t1, t2);
- },
- withListContents$1(contents) {
- return this.withListContents$2$separator(contents, null);
- },
- greaterThan$1(other) {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
- },
- greaterThanOrEquals$1(other) {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
- },
- lessThan$1(other) {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
- },
- lessThanOrEquals$1(other) {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
- },
- times$1(other) {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
- },
- modulo$1(other) {
- return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
- },
- plus$1(other) {
- var t1;
- $label0$0: {
- if (other instanceof A.SassString0) {
- t1 = new A.SassString0(A.serializeValue0(this, false, true) + other._string0$_text, other._string0$_hasQuotes);
- break $label0$0;
- }
- if (other instanceof A.SassCalculation0)
- A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
- t1 = new A.SassString0(A.serializeValue0(this, false, true) + A.serializeValue0(other, false, true), false);
- break $label0$0;
- }
- return t1;
- },
- minus$1(other) {
- return other instanceof A.SassCalculation0 ? A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)) : new A.SassString0(A.serializeValue0(this, false, true) + "-" + A.serializeValue0(other, false, true), false);
- },
- dividedBy$1(other) {
- return new A.SassString0(A.serializeValue0(this, false, true) + "/" + A.serializeValue0(other, false, true), false);
- },
- unaryPlus$0() {
- return new A.SassString0("+" + A.serializeValue0(this, false, true), false);
- },
- unaryMinus$0() {
- return new A.SassString0("-" + A.serializeValue0(this, false, true), false);
- },
- unaryNot$0() {
- return B.SassBoolean_false0;
- },
- withoutSlash$0() {
- return this;
- },
- toString$0(_) {
- return A.serializeValue0(this, true, true);
- }
- };
- A.VariableExpression0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitVariableExpression$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.span;
- return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
- },
- $isExpression0: 1,
- $isAstNode0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.VariableDeclaration0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitVariableDeclaration$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.namespace;
- t1 = t1 != null ? "" + (t1 + ".") : "";
- t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";";
- return t1.charCodeAt(0) == 0 ? t1 : t1;
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.WarnRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitWarnRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- return "@warn " + this.expression.toString$0(0) + ";";
- },
- $isAstNode0: 1,
- $isStatement0: 1,
- get$span(receiver) {
- return this.span;
- }
- };
- A.WhileRule0.prototype = {
- accept$1$1(visitor) {
- return visitor.visitWhileRule$1(this);
- },
- accept$1(visitor) {
- return this.accept$1$1(visitor, type$.dynamic);
- },
- toString$0(_) {
- var t1 = this.children;
- return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
- },
- get$span(receiver) {
- return this.span;
- }
- };
- (function aliases() {
- var _ = J.LegacyJavaScriptObject.prototype;
- _.super$LegacyJavaScriptObject$toString = _.toString$0;
- _ = A.JsLinkedHashMap.prototype;
- _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1;
- _.super$JsLinkedHashMap$internalGet = _.internalGet$1;
- _.super$JsLinkedHashMap$internalSet = _.internalSet$2;
- _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1;
- _ = A._BufferingStreamSubscription.prototype;
- _.super$_BufferingStreamSubscription$_add = _._async$_add$1;
- _.super$_BufferingStreamSubscription$_addError = _._addError$2;
- _ = A.ListBase.prototype;
- _.super$ListBase$setRange = _.setRange$4;
- _ = A.Iterable.prototype;
- _.super$Iterable$where = _.where$1;
- _.super$Iterable$skipWhile = _.skipWhile$1;
- _ = A.ModifiableCssParentNode.prototype;
- _.super$ModifiableCssParentNode$addChild = _.addChild$1;
- _ = A.SimpleSelector.prototype;
- _.super$SimpleSelector$addSuffix = _.addSuffix$1;
- _.super$SimpleSelector$unify = _.unify$1;
- _.super$SimpleSelector$isSuperselector = _.isSuperselector$1;
- _ = A.Parser.prototype;
- _.super$Parser$silentComment = _.silentComment$0;
- _ = A.StylesheetParser.prototype;
- _.super$StylesheetParser$importArgument = _.importArgument$0;
- _.super$StylesheetParser$namespacedExpression = _.namespacedExpression$2;
- _ = A.Value.prototype;
- _.super$Value$assertMap = _.assertMap$1;
- _.super$Value$plus = _.plus$1;
- _.super$Value$minus = _.minus$1;
- _.super$Value$dividedBy = _.dividedBy$1;
- _ = A.SassNumber.prototype;
- _.super$SassNumber$convertValueToMatch = _.convertValueToMatch$3;
- _.super$SassNumber$coerce = _.coerce$3;
- _.super$SassNumber$coerceValue = _.coerceValue$3;
- _.super$SassNumber$coerceValueToUnit = _.coerceValueToUnit$2;
- _.super$SassNumber$coerceToMatch = _.coerceToMatch$3;
- _.super$SassNumber$coerceValueToMatch = _.coerceValueToMatch$3;
- _.super$SassNumber$greaterThan = _.greaterThan$1;
- _.super$SassNumber$greaterThanOrEquals = _.greaterThanOrEquals$1;
- _.super$SassNumber$lessThan = _.lessThan$1;
- _.super$SassNumber$lessThanOrEquals = _.lessThanOrEquals$1;
- _.super$SassNumber$modulo = _.modulo$1;
- _.super$SassNumber$plus = _.plus$1;
- _.super$SassNumber$minus = _.minus$1;
- _.super$SassNumber$times = _.times$1;
- _.super$SassNumber$dividedBy = _.dividedBy$1;
- _ = A.AnySelectorVisitor.prototype;
- _.super$AnySelectorVisitor$visitComplexSelector = _.visitComplexSelector$1;
- _ = A.EveryCssVisitor.prototype;
- _.super$EveryCssVisitor$visitCssStyleRule = _.visitCssStyleRule$1;
- _ = A.ReplaceExpressionVisitor.prototype;
- _.super$ReplaceExpressionVisitor$visitBinaryOperationExpression = _.visitBinaryOperationExpression$1;
- _.super$ReplaceExpressionVisitor$visitUnaryOperationExpression = _.visitUnaryOperationExpression$1;
- _ = A.SourceSpanMixin.prototype;
- _.super$SourceSpanMixin$compareTo = _.compareTo$1;
- _.super$SourceSpanMixin$$eq = _.$eq;
- _ = A.StringScanner.prototype;
- _.super$StringScanner$readChar = _.readChar$0;
- _.super$StringScanner$scanChar = _.scanChar$1;
- _.super$StringScanner$scan = _.scan$1;
- _.super$StringScanner$matches = _.matches$1;
- _ = A.AnySelectorVisitor0.prototype;
- _.super$AnySelectorVisitor$visitComplexSelector0 = _.visitComplexSelector$1;
- _ = A.EveryCssVisitor0.prototype;
- _.super$EveryCssVisitor$visitCssStyleRule0 = _.visitCssStyleRule$1;
- _ = A.ModifiableCssParentNode0.prototype;
- _.super$ModifiableCssParentNode$addChild0 = _.addChild$1;
- _ = A.SassNumber0.prototype;
- _.super$SassNumber$convertToMatch = _.convertToMatch$3;
- _.super$SassNumber$convertValueToMatch0 = _.convertValueToMatch$3;
- _.super$SassNumber$coerce0 = _.coerce$3;
- _.super$SassNumber$coerceValue0 = _.coerceValue$3;
- _.super$SassNumber$coerceValueToUnit0 = _.coerceValueToUnit$2;
- _.super$SassNumber$coerceToMatch0 = _.coerceToMatch$3;
- _.super$SassNumber$coerceValueToMatch0 = _.coerceValueToMatch$3;
- _.super$SassNumber$greaterThan0 = _.greaterThan$1;
- _.super$SassNumber$greaterThanOrEquals0 = _.greaterThanOrEquals$1;
- _.super$SassNumber$lessThan0 = _.lessThan$1;
- _.super$SassNumber$lessThanOrEquals0 = _.lessThanOrEquals$1;
- _.super$SassNumber$modulo0 = _.modulo$1;
- _.super$SassNumber$plus0 = _.plus$1;
- _.super$SassNumber$minus0 = _.minus$1;
- _.super$SassNumber$times0 = _.times$1;
- _.super$SassNumber$dividedBy0 = _.dividedBy$1;
- _ = A.Parser1.prototype;
- _.super$Parser$silentComment0 = _.silentComment$0;
- _ = A.ReplaceExpressionVisitor0.prototype;
- _.super$ReplaceExpressionVisitor$visitBinaryOperationExpression0 = _.visitBinaryOperationExpression$1;
- _.super$ReplaceExpressionVisitor$visitUnaryOperationExpression0 = _.visitUnaryOperationExpression$1;
- _ = A.SimpleSelector0.prototype;
- _.super$SimpleSelector$addSuffix0 = _.addSuffix$1;
- _.super$SimpleSelector$unify0 = _.unify$1;
- _.super$SimpleSelector$isSuperselector0 = _.isSuperselector$1;
- _ = A.StylesheetParser0.prototype;
- _.super$StylesheetParser$importArgument0 = _.importArgument$0;
- _.super$StylesheetParser$namespacedExpression0 = _.namespacedExpression$2;
- _ = A.Value0.prototype;
- _.super$Value$assertMap0 = _.assertMap$1;
- _.super$Value$plus0 = _.plus$1;
- _.super$Value$minus0 = _.minus$1;
- _.super$Value$dividedBy0 = _.dividedBy$1;
- })();
- (function installTearOffs() {
- var _static_2 = hunkHelpers._static_2,
- _instance_1_i = hunkHelpers._instance_1i,
- _instance_1_u = hunkHelpers._instance_1u,
- _static_1 = hunkHelpers._static_1,
- _static_0 = hunkHelpers._static_0,
- _static = hunkHelpers.installStaticTearOff,
- _instance = hunkHelpers.installInstanceTearOff,
- _instance_2_u = hunkHelpers._instance_2u,
- _instance_0_i = hunkHelpers._instance_0i,
- _instance_0_u = hunkHelpers._instance_0u;
- _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 188);
- _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 9);
- _instance_1_i(A._CastIterableBase.prototype, "get$contains", "contains$1", 9);
- _instance_1_u(A.CastMap.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_u(A.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_i(A.ConstantStringSet.prototype, "get$contains", "contains$1", 9);
- _instance_1_i(A.GeneralConstantSet.prototype, "get$contains", "contains$1", 9);
- _instance_1_u(A.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 9);
- _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 131);
- _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 131);
- _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 131);
- _static_0(A, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 0);
- _static_1(A, "async___nullDataHandler$closure", "_nullDataHandler", 71);
- _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 73);
- _static_0(A, "async___nullDoneHandler$closure", "_nullDoneHandler", 0);
- _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 592, 0);
- _static(A, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) {
- return A._rootRun($self, $parent, zone, f, type$.dynamic);
- }], 593, 1);
- _static(A, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) {
- var t1 = type$.dynamic;
- return A._rootRunUnary($self, $parent, zone, f, arg, t1, t1);
- }], 594, 1);
- _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) {
- var t1 = type$.dynamic;
- return A._rootRunBinary($self, $parent, zone, f, arg1, arg2, t1, t1, t1);
- }], 595, 1);
- _static(A, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) {
- return A._rootRegisterCallback($self, $parent, zone, f, type$.dynamic);
- }], 596, 0);
- _static(A, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) {
- var t1 = type$.dynamic;
- return A._rootRegisterUnaryCallback($self, $parent, zone, f, t1, t1);
- }], 597, 0);
- _static(A, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) {
- var t1 = type$.dynamic;
- return A._rootRegisterBinaryCallback($self, $parent, zone, f, t1, t1, t1);
- }], 598, 0);
- _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 599, 0);
- _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 600, 0);
- _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 601, 0);
- _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 602, 0);
- _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 603, 0);
- _static_1(A, "async___printToZone$closure", "_printToZone", 104);
- _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 604, 0);
- _instance(A._AsyncCompleter.prototype, "get$complete", 0, 0, function() {
- return [null];
- }, ["call$1", "call$0"], ["complete$1", "complete$0"], 166, 0, 0);
- _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 73);
- var _;
- _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 31);
- _instance(_, "get$addError", 0, 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["addError$2", "addError$1"], 244, 0, 0);
- _instance_0_i(_, "get$close", "close$0", 517);
- _instance_1_u(_, "get$_async$_add", "_async$_add$1", 31);
- _instance_2_u(_, "get$_addError", "_addError$2", 73);
- _instance_0_u(_, "get$_close", "_close$0", 0);
- _instance_0_u(_ = A._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0);
- _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
- _instance(_ = A._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 516, 0, 0);
- _instance_0_i(_, "get$resume", "resume$0", 0);
- _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 0);
- _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
- _instance_1_u(_ = A._StreamIterator.prototype, "get$_onData", "_onData$1", 31);
- _instance_2_u(_, "get$_onError", "_onError$2", 73);
- _instance_0_u(_, "get$_onDone", "_onDone$0", 0);
- _instance_0_u(_ = A._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0);
- _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
- _instance_1_u(_, "get$_handleData", "_handleData$1", 31);
- _instance_2_u(_, "get$_handleError", "_handleError$2", 507);
- _instance_0_u(_, "get$_handleDone", "_handleDone$0", 0);
- _static_2(A, "collection___defaultEquals$closure", "_defaultEquals", 187);
- _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 211);
- _static_2(A, "collection_ListBase__compareAny$closure", "ListBase__compareAny", 188);
- _instance_1_u(A._HashMap.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_u(A._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 9);
- _instance(_ = A._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 161, 0, 0);
- _instance_1_i(_, "get$contains", "contains$1", 9);
- _instance_1_i(_, "get$add", "add$1", 9);
- _instance(A._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 161, 0, 0);
- _instance_1_u(A.MapBase.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_u(A.MapView.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_i(A.UnmodifiableSetView.prototype, "get$contains", "contains$1", 9);
- _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 82);
- _instance_1_u(A._JsonMap.prototype, "get$containsKey", "containsKey$1", 9);
- _static_1(A, "core__identityHashCode$closure", "identityHashCode", 211);
- _static_2(A, "core__identical$closure", "identical", 187);
- _static_1(A, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 5);
- _instance_1_i(A.Iterable.prototype, "get$contains", "contains$1", 9);
- _instance_1_i(A.StringBuffer.prototype, "get$write", "write$1", 31);
- _static(A, "math0__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) {
- return A.max(a, b, type$.num);
- }], 607, 1);
- _instance_1_u(A.ArgResults.prototype, "get$wasParsed", "wasParsed$1", 4);
- _instance_1_u(_ = A.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 31);
- _instance(_, "get$setError", 0, 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["setError$2", "setError$1"], 244, 0, 0);
- _instance_0_u(_ = A.StreamGroup.prototype, "get$_onListen", "_onListen$0", 0);
- _instance_0_u(_, "get$_onPause", "_onPause$0", 0);
- _instance_0_u(_, "get$_onResume", "_onResume$0", 0);
- _instance_0_u(_, "get$_onCancel", "_onCancel$0", 214);
- _instance_0_i(A.ReplAdapter.prototype, "get$exit", "exit$0", 0);
- _instance_1_i(A.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 9);
- _instance_1_i(A.UnionSet.prototype, "get$contains", "contains$1", 9);
- _instance_1_i(A._DelegatingIterableBase.prototype, "get$contains", "contains$1", 9);
- _instance_1_i(A.MapKeySet.prototype, "get$contains", "contains$1", 9);
- _static_1(A, "version_Version___parse_tearOff$closure", "Version___parse_tearOff", 198);
- _instance_1_u(A.VersionRange.prototype, "get$allows", "allows$1", 528);
- _instance_1_u(A._IsInvisibleVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
- _instance_1_u(A._IsBogusVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
- _instance_1_u(A._IsUselessVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
- _instance_1_u(A.SelectorList.prototype, "get$isSuperselector", "isSuperselector$1", 70);
- _instance_1_u(A.PseudoSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
- _instance_1_u(A.SimpleSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
- _instance_1_u(A.TypeSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
- _instance_1_u(A.UniversalSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
- _instance_1_u(A.EmptyExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 226);
- _instance_1_u(A.ExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 226);
- _static_1(A, "functions___isUnique$closure", "_isUnique", 13);
- _static_1(A, "color0___opacify$closure", "_opacify", 29);
- _static_1(A, "color0___transparentize$closure", "_transparentize", 29);
- _instance_2_u(A.NodePackageImporter.prototype, "get$_compareExpansionKeys", "_compareExpansionKeys$2", 142);
- _instance_0_u(A.CssParser.prototype, "get$silentComment", "silentComment$0", 22);
- _instance_0_u(_ = A.Parser.prototype, "get$whitespace", "whitespace$0", 0);
- _instance_0_u(_, "get$silentComment", "silentComment$0", 22);
- _instance_0_u(_, "get$loudComment", "loudComment$0", 0);
- _instance_0_u(_, "get$string", "string$0", 26);
- _instance(_, "get$error", 1, 2, function() {
- return [null];
- }, ["call$3", "call$2"], ["error$3", "error$2"], 151, 0, 0);
- _instance_0_u(A.SassParser.prototype, "get$loudComment", "loudComment$0", 0);
- _instance(_ = A.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 482, 0, 0);
- _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 127);
- _instance_0_u(_, "get$_functionChild", "_functionChild$0", 127);
- _instance(_, "get$_expression", 0, 0, null, ["call$3$bracketList$singleEquals$until", "call$0", "call$2$singleEquals$until", "call$1$bracketList", "call$1$until"], ["_expression$3$bracketList$singleEquals$until", "_expression$0", "_expression$2$singleEquals$until", "_expression$1$bracketList", "_expression$1$until"], 462, 0, 0);
- _instance(A.LazyFileSpan.prototype, "get$message", 1, 1, function() {
- return {color: null};
- }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 126, 0, 0);
- _instance_1_u(A.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_u(A.MergedMapView.prototype, "get$containsKey", "containsKey$1", 9);
- _instance(A.MultiSpan.prototype, "get$message", 1, 1, function() {
- return {color: null};
- }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 157, 0, 0);
- _instance_1_i(A.NoSourceMapBuffer.prototype, "get$write", "write$1", 31);
- _instance_1_u(A.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_u(A.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_i(A.SourceMapBuffer.prototype, "get$write", "write$1", 31);
- _instance_1_u(A.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 9);
- _static_1(A, "utils__isPublic$closure", "isPublic", 4);
- _static_1(A, "calculation_SassCalculation__simplify$closure", "SassCalculation__simplify", 67);
- _instance_1_u(A.AnySelectorVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 16);
- _instance(_ = A._EvaluateVisitor0.prototype, "get$_async_evaluate$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_async_evaluate$_interpolationToValue$3$trim$warnForColor", "_async_evaluate$_interpolationToValue$1", "_async_evaluate$_interpolationToValue$2$warnForColor"], 315, 0, 0);
- _instance_1_u(_, "get$_async_evaluate$_expressionNode", "_async_evaluate$_expressionNode$1", 162);
- _instance(_ = A._EvaluateVisitor.prototype, "get$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_interpolationToValue$3$trim$warnForColor", "_interpolationToValue$1", "_interpolationToValue$2$warnForColor"], 309, 0, 0);
- _instance_1_u(_, "get$_expressionNode", "_expressionNode$1", 162);
- _instance_1_u(_ = A.RecursiveStatementVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", 267);
- _instance_1_u(_, "get$visitChildren", "visitChildren$1", 268);
- _instance_1_u(_ = A.SelectorSearchVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", "SelectorSearchVisitor.T?(ComplexSelector)");
- _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", "SelectorSearchVisitor.T?(SelectorList)");
- _instance_1_u(_ = A._SerializeVisitor.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 271);
- _instance_1_u(_, "get$_writeCalculationValue", "_writeCalculationValue$1", 99);
- _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", 272);
- _instance_1_u(_, "get$_requiresSemicolon", "_requiresSemicolon$1", 7);
- _instance_1_u(_ = A.StatementSearchVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor.T?(ContentBlock)");
- _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor.T?(List<Statement>)");
- _instance(A.SourceSpanMixin.prototype, "get$message", 1, 1, function() {
- return {color: null};
- }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 126, 0, 0);
- _static_1(A, "frame_Frame___parseVM_tearOff$closure", "Frame___parseVM_tearOff", 105);
- _static_1(A, "frame_Frame___parseV8_tearOff$closure", "Frame___parseV8_tearOff", 105);
- _static_1(A, "frame_Frame___parseFirefox_tearOff$closure", "Frame___parseFirefox_tearOff", 105);
- _static_1(A, "frame_Frame___parseFriendly_tearOff$closure", "Frame___parseFriendly_tearOff", 105);
- _static_1(A, "trace_Trace___parseVM_tearOff$closure", "Trace___parseVM_tearOff", 254);
- _static_1(A, "trace_Trace___parseFriendly_tearOff$closure", "Trace___parseFriendly_tearOff", 254);
- _static(A, "from_handlers__TransformByHandlers__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["TransformByHandlers__defaultHandleError", function(error, stackTrace, sink) {
- return A.TransformByHandlers__defaultHandleError(error, stackTrace, sink, type$.dynamic);
- }], 610, 0);
- _static(A, "rate_limit___collect$closure", 2, null, ["call$1$2", "call$2"], ["_collect", function($event, soFar) {
- return A._collect($event, soFar, type$.dynamic);
- }], 611, 0);
- _instance_1_u(A.AnySelectorVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18);
- _instance(_ = A._EvaluateVisitor2.prototype, "get$_async_evaluate0$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_async_evaluate0$_interpolationToValue$3$trim$warnForColor", "_async_evaluate0$_interpolationToValue$1", "_async_evaluate0$_interpolationToValue$2$warnForColor"], 311, 0, 0);
- _instance_1_u(_, "get$_async_evaluate0$_expressionNode", "_async_evaluate0$_expressionNode$1", 248);
- _static_1(A, "calculation1___assertCalculationValue$closure", "_assertCalculationValue", 99);
- _static_1(A, "calculation1___isValidClampArg$closure", "_isValidClampArg", 9);
- _static_1(A, "calculation0_SassCalculation__simplify$closure", "SassCalculation__simplify0", 67);
- _static_1(A, "color2___opacify$closure", "_opacify0", 28);
- _static_1(A, "color2___transparentize$closure", "_transparentize0", 28);
- _static(A, "compile__compile$closure", 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["compile0", function(path) {
- return A.compile0(path, null);
- }], 612, 0);
- _static(A, "compile__compileString$closure", 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["compileString0", function(text) {
- return A.compileString0(text, null);
- }], 613, 0);
- _static(A, "compile__compileAsync$closure", 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["compileAsync1", function(path) {
- return A.compileAsync1(path, null);
- }], 614, 0);
- _static(A, "compile__compileStringAsync$closure", 1, function() {
- return [null];
- }, ["call$2", "call$1"], ["compileStringAsync1", function(text) {
- return A.compileStringAsync1(text, null);
- }], 615, 0);
- _static_1(A, "compile___parseImporter$closure", "_parseImporter0", 616);
- _static_1(A, "compile___simplifyCalcArg$closure", "_simplifyCalcArg", 67);
- _static_0(A, "compiler__initCompiler$closure", "initCompiler", 617);
- _static_0(A, "compiler__initAsyncCompiler$closure", "initAsyncCompiler", 618);
- _instance_0_u(A.CssParser0.prototype, "get$silentComment", "silentComment$0", 22);
- _instance_1_u(A.EmptyExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 197);
- _instance(_ = A._EvaluateVisitor1.prototype, "get$_evaluate0$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_evaluate0$_interpolationToValue$3$trim$warnForColor", "_evaluate0$_interpolationToValue$1", "_evaluate0$_interpolationToValue$2$warnForColor"], 424, 0, 0);
- _instance_1_u(_, "get$_evaluate0$_expressionNode", "_evaluate0$_expressionNode$1", 248);
- _instance_1_u(A.ExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 197);
- _static_1(A, "functions0___isUnique$closure", "_isUnique0", 14);
- _static_1(A, "immutable__jsToDartList$closure", "jsToDartList", 619);
- _instance(A.LazyFileSpan0.prototype, "get$message", 1, 1, function() {
- return {color: null};
- }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 126, 0, 0);
- _static_2(A, "legacy__render$closure", "render", 620);
- _static_1(A, "legacy__renderSync$closure", "renderSync", 621);
- _instance_1_u(A.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_u(A.SelectorList0.prototype, "get$isSuperselector", "isSuperselector$1", 65);
- _instance_1_u(A.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
- _instance(A.MultiSpan0.prototype, "get$message", 1, 1, function() {
- return {color: null};
- }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 157, 0, 0);
- _instance_1_i(A.NoSourceMapBuffer0.prototype, "get$write", "write$1", 31);
- _instance_2_u(A.NodePackageImporter0.prototype, "get$_node_package$_compareExpansionKeys", "_node_package$_compareExpansionKeys$2", 142);
- _instance_0_u(_ = A.Parser1.prototype, "get$whitespace", "whitespace$0", 0);
- _instance_0_u(_, "get$silentComment", "silentComment$0", 22);
- _instance_0_u(_, "get$loudComment", "loudComment$0", 0);
- _instance_0_u(_, "get$string", "string$0", 26);
- _instance(_, "get$error", 1, 2, function() {
- return [null];
- }, ["call$3", "call$2"], ["error$3", "error$2"], 151, 0, 0);
- _instance_1_u(A.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_1_u(A.PseudoSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
- _instance_1_u(A.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 9);
- _instance_0_u(A.SassParser0.prototype, "get$loudComment", "loudComment$0", 0);
- _instance_1_u(A._IsInvisibleVisitor2.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18);
- _instance_1_u(A._IsBogusVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18);
- _instance_1_u(A._IsUselessVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 18);
- _instance_1_u(_ = A.SelectorSearchVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", "SelectorSearchVisitor0.T?(ComplexSelector0)");
- _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", "SelectorSearchVisitor0.T?(SelectorList0)");
- _instance_1_u(_ = A._SerializeVisitor0.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 534);
- _instance_1_u(_, "get$_serialize0$_writeCalculationValue", "_serialize0$_writeCalculationValue$1", 99);
- _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", 535);
- _instance_1_u(_, "get$_serialize0$_requiresSemicolon", "_serialize0$_requiresSemicolon$1", 8);
- _instance_1_u(A.SimpleSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
- _instance_1_i(A.SourceMapBuffer0.prototype, "get$write", "write$1", 31);
- _instance_1_u(_ = A.StatementSearchVisitor0.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor0.T?(ContentBlock0)");
- _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor0.T?(List<Statement0>)");
- _instance(_ = A.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 552, 0, 0);
- _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 130);
- _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 130);
- _instance_1_u(A.TypeSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
- _instance_1_u(A.UniversalSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
- _instance_1_u(A.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
- _static_1(A, "utils1__jsToDartUrl$closure", "jsToDartUrl", 622);
- _static_1(A, "utils1__dartToJSUrl$closure", "dartToJSUrl", 623);
- _static_1(A, "utils0__isPublic$closure", "isPublic0", 4);
- _static(A, "path__absolute$closure", 1, function() {
- return [null, null, null, null, null, null, null, null, null, null, null, null, null, null];
- }, ["call$15", "call$1", "call$2", "call$3", "call$4", "call$5", "call$6"], ["absolute", function(part1) {
- var _null = null;
- return A.absolute(part1, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- }, function(part1, part2) {
- var _null = null;
- return A.absolute(part1, part2, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- }, function(part1, part2, part3) {
- var _null = null;
- return A.absolute(part1, part2, part3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- }, function(part1, part2, part3, part4) {
- var _null = null;
- return A.absolute(part1, part2, part3, part4, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- }, function(part1, part2, part3, part4, part5) {
- var _null = null;
- return A.absolute(part1, part2, part3, part4, part5, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- }, function(part1, part2, part3, part4, part5, part6) {
- var _null = null;
- return A.absolute(part1, part2, part3, part4, part5, part6, _null, _null, _null, _null, _null, _null, _null, _null, _null);
- }], 624, 0);
- _static_1(A, "path__prettyUri$closure", "prettyUri", 625);
- _static_2(A, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 46);
- _static_2(A, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 46);
- _static_2(A, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 46);
- _static_2(A, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 46);
- _static_2(A, "number0__moduloLikeSass$closure", "moduloLikeSass", 56);
- _static_1(A, "number0__sqrt$closure", "sqrt", 51);
- _static_1(A, "number0__sin$closure", "sin", 51);
- _static_1(A, "number0__cos$closure", "cos", 51);
- _static_1(A, "number0__tan$closure", "tan", 51);
- _static_1(A, "number0__atan$closure", "atan", 51);
- _static_1(A, "number0__asin$closure", "asin", 51);
- _static_1(A, "number0__acos$closure", "acos", 51);
- _static_2(A, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 46);
- _static_2(A, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 46);
- _static_2(A, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 46);
- _static_2(A, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 46);
- _static_1(A, "number2__fuzzyRound$closure", "fuzzyRound0", 628);
- _static_2(A, "number2__moduloLikeSass$closure", "moduloLikeSass0", 56);
- _static_1(A, "number2__sqrt$closure", "sqrt0", 48);
- _static_1(A, "number2__sin$closure", "sin0", 48);
- _static_1(A, "number2__cos$closure", "cos0", 48);
- _static_1(A, "number2__tan$closure", "tan0", 48);
- _static_1(A, "number2__atan$closure", "atan0", 48);
- _static_1(A, "number2__asin$closure", "asin0", 48);
- _static_1(A, "number2__acos$closure", "acos0", 48);
- _static_1(A, "sass__main$closure", "main1", 465);
- _static_1(A, "utils2__validateUrlScheme$closure", "validateUrlScheme", 104);
- _static_1(A, "value0__wrapValue$closure", "wrapValue", 420);
- })();
- (function inheritance() {
- var _mixin = hunkHelpers.mixin,
- _inherit = hunkHelpers.inherit,
- _inheritMany = hunkHelpers.inheritMany;
- _inherit(A.Object, null);
- _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapBase, A.Error, A.ListBase, A.SentinelValue, A.ListIterator, A.MappedIterator, A.WhereIterator, A.ExpandIterator, A.TakeIterator, A.SkipIterator, A.SkipWhileIterator, A.EmptyIterator, A.FollowedByIterator, A.WhereTypeIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A.Symbol, A._Record, A.MapView, A.ConstantMap, A._KeysOrValuesOrElementsIterator, A.SetBase, A.JSInvocationMirror, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A._Required, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A._SyncStarIterator, A.AsyncError, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._AddStreamState, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A._MapBaseValueIterator, A._UnmodifiableMapMixin, A._ListQueueIterator, A._UnmodifiableSetMixin, A.Codec, A.Converter, A._Base64Encoder, A.ByteConversionSink, A._JsonStringifier, A.StringConversionSink, A._Utf8Encoder, A._Utf8Decoder, A.DateTime, A.Duration, A._Enum, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.MapEntry, A.Null, A._StringStackTrace, A.RuneIterator, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.Expando, A.NullRejectionException, A._JSRandom, A.ArgParser, A.ArgResults, A.Option, A.OptionType, A.Parser0, A._Usage, A.FutureGroup, A.ErrorResult, A.ValueResult, A.StreamCompleter, A.StreamGroup, A._StreamGroupState, A.StreamQueue, A._NextRequest, A.Repl, A.ReplAdapter, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._MapEntry, A.MapEquality, A._QueueList_Object_ListMixin, A._DelegatingIterableBase, A.UnmodifiableSetMixin, A.Context, A._PathDirection, A._PathRelation, A.Style, A.ParsedPath, A.PathException, A.Version, A.VersionRange, A.CssMediaQuery, A.MediaQuerySuccessfulMergeResult, A.CssNode, A.__IsInvisibleVisitor_Object_EveryCssVisitor, A.CssValue, A._FakeAstNode, A.Argument, A.ArgumentDeclaration, A.ArgumentInvocation, A.AtRootQuery, A.ConfiguredVariable, A._IsCalculationSafeVisitor, A.BinaryOperationExpression, A.BooleanExpression, A.ColorExpression, A.FunctionExpression, A.IfExpression, A.InterpolatedFunctionExpression, A.ListExpression, A.MapExpression, A.NullExpression, A.NumberExpression, A.ParenthesizedExpression, A.SelectorExpression, A.StringExpression, A.SupportsExpression, A.UnaryOperationExpression, A.ValueExpression, A.VariableExpression, A.DynamicImport, A.StaticImport, A.Interpolation, A.ParentStatement, A.ContentRule, A.DebugRule, A.ErrorRule, A.ExtendRule, A.ForwardRule, A.IfRule, A.IfRuleClause, A.ImportRule, A.IncludeRule, A.LoudComment, A.__HasContentVisitor_Object_StatementSearchVisitor, A.ReturnRule, A.SilentComment, A.UseRule, A.VariableDeclaration, A.WarnRule, A.SupportsAnything, A.SupportsDeclaration, A.SupportsFunction, A.SupportsInterpolation, A.SupportsNegation, A.SupportsOperation, A.Selector, A.__IsInvisibleVisitor_Object_AnySelectorVisitor, A.__IsBogusVisitor_Object_AnySelectorVisitor, A.__IsUselessVisitor_Object_AnySelectorVisitor, A.ComplexSelectorComponent, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor, A.QualifiedName, A.AsyncEnvironment, A._EnvironmentModule0, A.AsyncImportCache, A.AsyncBuiltInCallable, A.BuiltInCallable, A.PlainCssCallable, A.UserDefinedCallable, A.CompileResult, A.Configuration, A.ConfiguredValue, A.Environment, A._EnvironmentModule, A.SourceSpanException, A.SassScriptException, A.ExecutableOptions, A.UsageException, A._Watcher, A.EmptyExtensionStore, A.Extension, A.Extender, A.ExtensionStore, A.ImportCache, A.AsyncImporter, A.CanonicalizeContext, A.ImporterResult, A.InterpolationBuffer, A.InterpolationMap, A.FileSystemException, A.LoggerWithDeprecationType0, A._QuietLogger, A.StderrLogger, A.TrackingLogger, A.BuiltInModule, A.ForwardedModuleView, A.ShadowedModuleView, A.Parser, A.StylesheetGraph, A.StylesheetNode, A.Box, A.ModifiableBox, A.LazyFileSpan, A.MultiDirWatcher, A.MultiSpan, A.NoSourceMapBuffer, A.SourceMapBuffer, A.Value, A.CalculationOperation, A._ColorFormatEnum, A.SpanColorFormat, A.AnySelectorVisitor, A._EvaluateVisitor0, A._ImportedCssVisitor0, A._EvaluationContext0, A._CloneCssVisitor, A.Evaluator, A._EvaluateVisitor, A._ImportedCssVisitor, A._EvaluationContext, A.EveryCssVisitor, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor, A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor, A.DependencyReport, A.RecursiveStatementVisitor, A.ReplaceExpressionVisitor, A.SelectorSearchVisitor, A._SerializeVisitor, A.StatementSearchVisitor, A.Entry, A.Mapping, A.TargetLineEntry, A.TargetEntry, A.SourceFile, A.SourceLocationMixin, A.SourceSpanMixin, A.Highlighter, A._Highlight, A._Line, A.SourceLocation, A.Chain, A.Frame, A.LazyTrace, A.Trace, A.UnparsedFrame, A.StringScanner, A._SpanScannerState, A.AsciiGlyphSet, A.UnicodeGlyphSet, A.WatchEvent, A.ChangeType, A.AnySelectorVisitor0, A.SupportsAnything0, A.Argument0, A.ArgumentDeclaration0, A.ArgumentInvocation0, A.Value0, A.AsyncImporter0, A.AsyncBuiltInCallable0, A.AsyncEnvironment0, A._EnvironmentModule2, A._EvaluateVisitor2, A._ImportedCssVisitor2, A._EvaluationContext2, A.AsyncImportCache0, A.Parser1, A.AtRootQuery0, A.ParentStatement0, A.CssNode0, A.Selector0, A.BinaryOperationExpression0, A.BooleanExpression0, A.Box0, A.ModifiableBox0, A.BuiltInCallable0, A.BuiltInModule0, A.CalculationOperation0, A.CalculationInterpolation, A.CanonicalizeContext0, A._CloneCssVisitor0, A.ColorExpression0, A._ColorFormatEnum0, A.SpanColorFormat0, A.CompileResult0, A.Compiler, A.ComplexSelectorComponent0, A.Configuration0, A.ConfiguredValue0, A.ConfiguredVariable0, A.ContentRule0, A.DebugRule0, A.SupportsDeclaration0, A.LoggerWithDeprecationType, A.DynamicImport0, A.EmptyExtensionStore0, A.Environment0, A._EnvironmentModule1, A.ErrorRule0, A._EvaluateVisitor1, A._ImportedCssVisitor1, A._EvaluationContext1, A.EveryCssVisitor0, A.SassScriptException0, A._IsCalculationSafeVisitor0, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0, A.ExtendRule0, A.Extension0, A.Extender0, A.ExtensionStore0, A.ForwardRule0, A.ForwardedModuleView0, A.FunctionExpression0, A.SupportsFunction0, A.IfExpression0, A.IfRule0, A.IfRuleClause0, A.NodeImporter, A.ImportCache0, A.ImportRule0, A.IncludeRule0, A.InterpolatedFunctionExpression0, A.Interpolation0, A.SupportsInterpolation0, A.InterpolationBuffer0, A.InterpolationMap0, A.FileSystemException0, A.LazyFileSpan0, A.ListExpression0, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0, A._QuietLogger0, A.LoudComment0, A.MapExpression0, A.CssMediaQuery0, A.MediaQuerySuccessfulMergeResult0, A.__HasContentVisitor_Object_StatementSearchVisitor0, A.MultiSpan0, A.SupportsNegation0, A.NoSourceMapBuffer0, A._FakeAstNode0, A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.NullExpression0, A.NumberExpression0, A.SupportsOperation0, A.ParenthesizedExpression0, A.PlainCssCallable0, A.QualifiedName0, A.ReplaceExpressionVisitor0, A.ImporterResult0, A.ReturnRule0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.SelectorExpression0, A.SelectorSearchVisitor0, A._SerializeVisitor0, A.ShadowedModuleView0, A.SilentComment0, A.SourceMapBuffer0, A.StatementSearchVisitor0, A.StaticImport0, A.StderrLogger0, A.StringExpression0, A.SupportsExpression0, A.UnaryOperationExpression0, A.UseRule0, A.UserDefinedCallable0, A.CssValue0, A.ValueExpression0, A.VariableExpression0, A.VariableDeclaration0, A.WarnRule0]);
- _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JavaScriptBigInt, J.JavaScriptSymbol, J.JSNumber, J.JSString]);
- _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, J.JSArray, A.NativeByteBuffer, A.NativeTypedData]);
- _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, A.Stdin, A.Stdout, A.ReadlineModule, A.ReadlineOptions, A.ReadlineInterface, A.BufferModule, A.BufferConstants, A.Buffer, A.ConsoleModule, A.Console, A.EventEmitter, A.FS, A.FSConstants, A.FSWatcher, A.ReadStream, A.ReadStreamOptions, A.WriteStream, A.WriteStreamOptions, A.FileOptions, A.StatOptions, A.MkdirOptions, A.RmdirOptions, A.WatchOptions, A.WatchFileOptions, A.Stats, A.Promise, A.Date, A.JsError, A.Atomics, A.Modules, A.Module, A.Net, A.Socket, A.NetAddress, A.NetServer, A.NodeJsError, A.Process, A.CPUUsage, A.Release, A.StreamModule, A.Readable, A.Writable, A.Duplex, A.Transform, A.WritableOptions, A.ReadableOptions, A.Immediate, A.Timeout, A.TTY, A.Util, A.JSArray0, A.Chokidar, A.ChokidarOptions, A.ChokidarWatcher, A.JSFunction, A.ImmutableList, A.ImmutableMap, A.NodeImporterResult, A.RenderContext, A.RenderContextOptions, A.RenderContextResult, A.RenderContextResultStats, A.JSModule, A.JSModuleRequire, A.JSClass, A.JSUrl, A._PropertyDescriptor, A._RequireMain, A.JSArray1, A.Chokidar0, A.ChokidarOptions0, A.ChokidarWatcher0, A._Channels, A._NodeSassColor, A.CompileOptions, A.NodeCompileResult, A.Deprecation1, A.Exports, A.LoggerNamespace, A.FiberClass, A.Fiber, A.JSFunction0, A.ImmutableList0, A.ImmutableMap0, A.JSImporter, A.JSImporterResult, A.NodeImporterResult0, A._ConstructorOptions, A._NodeSassList, A.JSLogger, A.WarnOptions, A.DebugOptions, A._NodeSassMap, A.JSModule0, A.JSModuleRequire0, A._ConstructorOptions0, A._NodeSassNumber, A.JSClass0, A.RenderContext0, A.RenderContextOptions0, A.RenderContextResult0, A.RenderContextResultStats0, A.RenderOptions, A.RenderResult, A.RenderResultStats, A._Exports, A._ConstructorOptions1, A._NodeSassString, A.Types, A.JSUrl0, A._PropertyDescriptor0, A._RequireMain0]);
- _inherit(J.JSUnmodifiableArray, J.JSArray);
- _inheritMany(J.JSNumber, [J.JSInt, J.JSNumNotInt]);
- _inheritMany(A.Iterable, [A._CastIterableBase, A.EfficientLengthIterable, A.MappedIterable, A.WhereIterable, A.ExpandIterable, A.TakeIterable, A.SkipIterable, A.SkipWhileIterable, A.FollowedByIterable, A.WhereTypeIterable, A._KeysOrValues, A._AllMatchesIterable, A._StringAllMatchesIterable, A._SyncStarIterable, A.Runes, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A._PrefixedKeys, A._UnprefixedKeys, A._PrefixedKeys0, A._UnprefixedKeys0]);
- _inheritMany(A._CastIterableBase, [A.CastIterable, A.__CastListBase__CastIterableBase_ListMixin, A.CastSet]);
- _inherit(A._EfficientLengthCastIterable, A.CastIterable);
- _inherit(A._CastListBase, A.__CastListBase__CastIterableBase_ListMixin);
- _inheritMany(A.Closure, [A.Closure2Args, A.CastMap_entries_closure, A.Closure0Args, A.Instantiation, A.TearOffClosure, A.JsLinkedHashMap_values_closure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._awaitOnObject_closure, A.Future_wait_closure, A._Future__chainForeignFuture_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A.Stream_Stream$fromFuture_closure, A.Stream_length_closure, A._CustomZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallback_closure, A._HashMap_values_closure, A._LinkedCustomHashMap_closure, A.MapBase_entries_closure, A._JsonMap_values_closure, A._Uri__makePath_closure, A._createTables_setChars, A._createTables_setRange, A.jsify__convert, A.promiseToFuture_closure1, A.promiseToFuture_closure2, A.ArgParser__addOption_closure, A._Usage__writeOption_closure, A._Usage__buildAllowedList_closure, A.FutureGroup_add_closure, A.StreamGroup__onListen_closure, A.StreamGroup__onCancel_closure, A.StreamQueue__ensureListening_closure, A.alwaysValid_closure, A.ReplAdapter_runAsync__closure, A.UnionSet__iterable_closure, A.UnionSet_contains_closure, A.MapKeySet_difference_closure, A.promiseToFuture_closure, A.promiseToFuture_closure0, A.futureToPromise__closure, A.Context_joinAll_closure, A.Context_split_closure, A._validateArgList_closure, A.ParsedPath__splitExtension_closure, A.PathMap__create_closure0, A.PathMap__create_closure1, A.WindowsStyle_absolutePathToUri_closure, A.Version__splitParts_closure, A.ModifiableCssNode_hasFollowingSibling_closure, A.ArgumentDeclaration_verify_closure, A.ArgumentDeclaration_verify_closure0, A._IsCalculationSafeVisitor_visitListExpression_closure, A.ListExpression_toString_closure, A.Interpolation_toString_closure, A.EachRule_toString_closure, A.IfRuleClause$__closure, A.IfRuleClause$___closure, A.ParentStatement_closure, A.ParentStatement__closure, A._IsBogusVisitor_visitComplexSelector_closure, A._IsUselessVisitor_visitComplexSelector_closure, A.ComplexSelectorComponent_toString_closure, A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure, A.IDSelector_unify_closure, A.SelectorList_asSassList_closure, A.SelectorList_nestWithin_closure, A.SelectorList_nestWithin__closure, A.SelectorList_nestWithin__closure0, A.SelectorList__nestWithinCompound_closure, A.SelectorList__nestWithinCompound_closure0, A.SelectorList__nestWithinCompound_closure1, A.SelectorList_withAdditionalCombinators_closure, A.PseudoSelector_specificity__closure, A.PseudoSelector_specificity__closure0, A.PseudoSelector_unify_closure, A.SimpleSelector_isSuperselector_closure, A.SimpleSelector_isSuperselector__closure, A._compileStylesheet_closure0, A.AsyncEnvironment__getVariableFromGlobalModule_closure, A.AsyncEnvironment_setVariable_closure0, A.AsyncEnvironment__getFunctionFromGlobalModule_closure, A.AsyncEnvironment__getMixinFromGlobalModule_closure, A.AsyncEnvironment_toModule_closure, A.AsyncEnvironment_toDummyModule_closure, A._EnvironmentModule__EnvironmentModule_closure5, A._EnvironmentModule__EnvironmentModule_closure6, A._EnvironmentModule__EnvironmentModule_closure7, A._EnvironmentModule__EnvironmentModule_closure8, A._EnvironmentModule__EnvironmentModule_closure9, A._EnvironmentModule__EnvironmentModule_closure10, A.AsyncImportCache_humanize_closure, A.AsyncImportCache_humanize_closure0, A.AsyncImportCache_humanize_closure1, A.AsyncImportCache_humanize_closure2, A.AsyncBuiltInCallable$mixin_closure, A.BuiltInCallable$mixin_closure, A._compileStylesheet_closure, A.Deprecation_fromId_closure, A.Environment__getVariableFromGlobalModule_closure, A.Environment_setVariable_closure0, A.Environment__getFunctionFromGlobalModule_closure, A.Environment__getMixinFromGlobalModule_closure, A.Environment_toModule_closure, A.Environment_toDummyModule_closure, A._EnvironmentModule__EnvironmentModule_closure, A._EnvironmentModule__EnvironmentModule_closure0, A._EnvironmentModule__EnvironmentModule_closure1, A._EnvironmentModule__EnvironmentModule_closure2, A._EnvironmentModule__EnvironmentModule_closure3, A._EnvironmentModule__EnvironmentModule_closure4, A._writeSourceMap_closure, A.ExecutableOptions_emitErrorCss_closure, A.watch_closure, A._Watcher__debounceEvents_closure, A.ExtensionStore_extensionsWhereTarget_closure, A.ExtensionStore__extendComplex_closure, A.ExtensionStore__extendComplex__closure, A.ExtensionStore__extendCompound_closure, A.ExtensionStore__extendCompound_closure0, A.ExtensionStore__extendCompound_closure1, A.ExtensionStore__extendSimple_withoutPseudo, A.ExtensionStore__extendSimple_closure, A.ExtensionStore__extendSimple_closure0, A.ExtensionStore__extendPseudo_closure, A.ExtensionStore__extendPseudo_closure0, A.ExtensionStore__extendPseudo_closure1, A.ExtensionStore__extendPseudo_closure2, A.ExtensionStore__extendPseudo_closure3, A.ExtensionStore__trim_closure, A.ExtensionStore__trim_closure0, A.unifyComplex_closure, A._weaveParents_closure0, A._weaveParents_closure1, A._weaveParents_closure2, A._mustUnify_closure, A._mustUnify__closure, A.paths__closure, A.paths___closure, A.listIsSuperselector_closure, A.listIsSuperselector__closure, A.complexIsSuperselector_closure, A.complexIsSuperselector_closure0, A._compatibleWithPreviousCombinator_closure, A.compoundIsSuperselector_closure, A._selectorPseudoIsSuperselector_closure, A._selectorPseudoIsSuperselector_closure0, A._selectorPseudoIsSuperselector_closure1, A._selectorPseudoIsSuperselector_closure2, A._selectorPseudoIsSuperselector_closure3, A._selectorPseudoIsSuperselector__closure, A._selectorPseudoIsSuperselector___closure, A._selectorPseudoIsSuperselector___closure0, A._selectorPseudoIsSuperselector_closure4, A._selectorPseudoIsSuperselector_closure5, A._selectorPseudoArgs_closure, A._selectorPseudoArgs_closure0, A.globalFunctions_closure, A.global_closure0, A.global_closure1, A.global_closure2, A.global_closure3, A.global_closure4, A.global_closure5, A.global_closure6, A.global_closure7, A.global_closure8, A.global_closure9, A.global_closure10, A.global_closure11, A.global_closure12, A.global_closure13, A.global_closure14, A.global_closure15, A.global_closure16, A.global_closure17, A.global_closure18, A.global_closure19, A.global_closure20, A.global_closure21, A.global_closure22, A.global_closure23, A.global_closure24, A.global_closure25, A.global__closure, A.global_closure26, A.module_closure1, A.module_closure2, A.module_closure3, A.module_closure4, A.module_closure5, A.module_closure6, A.module_closure7, A.module_closure8, A.module__closure1, A.module_closure9, A._red_closure, A._green_closure, A._blue_closure, A._mix_closure, A._hue_closure, A._saturation_closure, A._lightness_closure, A._complement_closure, A._adjust_closure, A._scale_closure, A._change_closure, A._ieHexStr_closure, A._ieHexStr_closure_hexString, A._updateComponents_getParam, A._updateComponents_closure, A._updateComponents_closure0, A._updateComponents_updateValue, A._functionString_closure, A._removedColorFunction_closure, A._rgb_closure, A._hsl_closure, A._hwb_closure, A._parseChannels_closure, A._length_closure0, A._nth_closure, A._setNth_closure, A._join_closure, A._append_closure0, A._zip_closure, A._zip__closure, A._zip__closure0, A._zip__closure1, A._index_closure0, A._separator_closure, A._isBracketed_closure, A._slash_closure, A._get_closure, A._set_closure, A._set__closure0, A._set_closure0, A._set__closure, A._merge_closure, A._merge_closure0, A._merge__closure, A._deepMerge_closure, A._deepRemove_closure, A._deepRemove__closure, A._remove_closure, A._remove_closure0, A._keys_closure, A._values_closure, A._hasKey_closure, A._modify_modifyNestedMap, A.global_closure, A.module_closure0, A._ceil_closure, A._clamp_closure, A._floor_closure, A._max_closure, A._min_closure, A._round_closure, A._hypot_closure, A._hypot__closure, A._log_closure, A._pow_closure, A._atan2_closure, A._compatible_closure, A._isUnitless_closure, A._unit_closure, A._percentage_closure, A._randomFunction_closure, A._div_closure, A._singleArgumentMathFunc_closure, A._numberFunction_closure, A.global_closure27, A.global_closure28, A.global_closure29, A.global_closure30, A.local_closure, A.local_closure0, A.local__closure, A.local_closure1, A._nest_closure, A._nest__closure, A._append_closure, A._append__closure, A._append___closure, A._extend_closure, A._replace_closure, A._unify_closure, A._isSuperselector_closure, A._simpleSelectors_closure, A._simpleSelectors__closure, A._parse_closure, A.module_closure, A.module__closure, A.module__closure0, A._unquote_closure, A._quote_closure, A._length_closure, A._insert_closure, A._index_closure, A._slice_closure, A._toUpperCase_closure, A._toLowerCase_closure, A._uniqueId_closure, A.ImportCache_humanize_closure, A.ImportCache_humanize_closure0, A.ImportCache_humanize_closure1, A.ImportCache_humanize_closure2, A.FilesystemImporter_canonicalize_closure, A.NodePackageImporter__nodePackageExportsResolve_closure, A.NodePackageImporter__nodePackageExportsResolve_closure0, A.NodePackageImporter__nodePackageExportsResolve_closure1, A.NodePackageImporter__nodePackageExportsResolve_closure2, A.NodePackageImporter__nodePackageExportsResolve__closure, A.NodePackageImporter__nodePackageExportsResolve__closure0, A.NodePackageImporter__getMainExport_closure, A._exactlyOne_closure, A.InterpolationMap_mapException_closure, A._realCasePath_helper, A._realCasePath_helper__closure, A.readStdin_closure, A.readStdin_closure0, A.readStdin_closure1, A.readStdin_closure2, A.listDir__closure, A.listDir__closure0, A.listDir_closure_list, A.listDir__list_closure, A.watchDir_closure, A.watchDir_closure0, A.watchDir_closure1, A.watchDir_closure2, A.DeprecationProcessingLogger_summarize_closure, A.DeprecationProcessingLogger_summarize_closure0, A._disallowedFunctionNames_closure, A.Parser_escape_closure, A.Parser_scanIdentChar_matches, A.SassParser_styleRuleSelector_closure, A.SassParser__peekIndentation_closure, A.SassParser__peekIndentation_closure0, A.StylesheetParser_parse__closure0, A.StylesheetParser__expression_addSingleExpression, A.StylesheetParser__expression_addOperator, A.StylesheetParser__isHexColor_closure, A.StylesheetParser__unicodeRange_closure, A.StylesheetParser__unicodeRange_closure0, A.StylesheetParser_trySpecialFunction_closure, A.StylesheetGraph_modifiedSince_transitiveModificationTime, A.MapExtensions_get_pairs_closure, A._PrefixedKeys_iterator_closure, A.SourceMapBuffer_buildSourceMap_closure, A._UnprefixedKeys_iterator_closure, A._UnprefixedKeys_iterator_closure0, A.indent_closure, A.flattenVertically_closure, A.flattenVertically_closure0, A.SassCalculation__verifyLength_closure, A.SassColor_SassColor$hwb_toRgb, A.SassList_isBlank_closure, A.SassNumber__coerceOrConvertValue_closure, A.SassNumber__coerceOrConvertValue_closure1, A.SassNumber_multiplyUnits_closure, A.SassNumber_multiplyUnits_closure1, A.SassNumber__areAnyConvertible_closure, A.SassNumber__canonicalizeUnitList_closure, A.SassNumber_unitSuggestion_closure, A.SassNumber_unitSuggestion_closure0, A.SingleUnitSassNumber__coerceToUnit_closure, A.SingleUnitSassNumber__coerceValueToUnit_closure, A.SingleUnitSassNumber_multiplyUnits_closure, A.AnySelectorVisitor_visitComplexSelector_closure, A.AnySelectorVisitor_visitCompoundSelector_closure, A._EvaluateVisitor_closure12, A._EvaluateVisitor_closure13, A._EvaluateVisitor_closure14, A._EvaluateVisitor_closure15, A._EvaluateVisitor_closure16, A._EvaluateVisitor_closure17, A._EvaluateVisitor_closure18, A._EvaluateVisitor_closure19, A._EvaluateVisitor_closure20, A._EvaluateVisitor_closure21, A._EvaluateVisitor_closure22, A._EvaluateVisitor_closure23, A._EvaluateVisitor_closure24, A._EvaluateVisitor__loadModule__closure1, A._EvaluateVisitor__combineCss_closure1, A._EvaluateVisitor__combineCss_closure2, A._EvaluateVisitor__combineCss_visitModule0, A._EvaluateVisitor__extendModules_closure1, A._EvaluateVisitor__scopeForAtRoot_closure5, A._EvaluateVisitor__scopeForAtRoot_closure6, A._EvaluateVisitor__scopeForAtRoot_closure7, A._EvaluateVisitor__scopeForAtRoot_closure8, A._EvaluateVisitor__scopeForAtRoot_closure9, A._EvaluateVisitor__scopeForAtRoot_closure10, A._EvaluateVisitor_visitEachRule_closure2, A._EvaluateVisitor_visitEachRule_closure3, A._EvaluateVisitor_visitEachRule__closure0, A._EvaluateVisitor_visitEachRule___closure0, A._EvaluateVisitor_visitAtRule_closure2, A._EvaluateVisitor_visitAtRule_closure4, A._EvaluateVisitor_visitForRule__closure0, A._EvaluateVisitor_visitIfRule_closure0, A._EvaluateVisitor_visitIfRule___closure0, A._EvaluateVisitor__visitDynamicImport__closure3, A._EvaluateVisitor__visitDynamicImport__closure4, A._EvaluateVisitor__visitDynamicImport__closure5, A._EvaluateVisitor_visitIncludeRule_closure3, A._EvaluateVisitor_visitMediaRule_closure2, A._EvaluateVisitor_visitMediaRule_closure4, A._EvaluateVisitor_visitStyleRule_closure4, A._EvaluateVisitor_visitStyleRule_closure5, A._EvaluateVisitor__warnForBogusCombinators_closure0, A._EvaluateVisitor_visitSupportsRule_closure2, A._EvaluateVisitor_visitWhileRule__closure0, A._EvaluateVisitor__slash_recommendation0, A._EvaluateVisitor_visitListExpression_closure0, A._EvaluateVisitor_visitFunctionExpression_closure3, A._EvaluateVisitor__checkCalculationArguments_check0, A._EvaluateVisitor__runUserDefinedCallable____closure0, A._EvaluateVisitor__runBuiltInCallable_closure4, A._EvaluateVisitor__evaluateArguments_closure3, A._EvaluateVisitor__evaluateArguments_closure4, A._EvaluateVisitor__evaluateArguments_closure6, A._EvaluateVisitor__evaluateMacroArguments_closure3, A._EvaluateVisitor__evaluateMacroArguments_closure4, A._EvaluateVisitor__evaluateMacroArguments_closure6, A._EvaluateVisitor_visitCssAtRule_closure2, A._EvaluateVisitor_visitCssKeyframeBlock_closure2, A._EvaluateVisitor_visitCssMediaRule_closure2, A._EvaluateVisitor_visitCssMediaRule_closure4, A._EvaluateVisitor_visitCssStyleRule_closure1, A._EvaluateVisitor_visitCssSupportsRule_closure2, A._EvaluateVisitor__performInterpolationHelper_closure0, A._EvaluateVisitor__withoutSlash_recommendation0, A._EvaluateVisitor__stackFrame_closure0, A._ImportedCssVisitor_visitCssAtRule_closure0, A._ImportedCssVisitor_visitCssMediaRule_closure0, A._ImportedCssVisitor_visitCssStyleRule_closure0, A._ImportedCssVisitor_visitCssSupportsRule_closure0, A._EvaluateVisitor_closure, A._EvaluateVisitor_closure0, A._EvaluateVisitor_closure1, A._EvaluateVisitor_closure2, A._EvaluateVisitor_closure3, A._EvaluateVisitor_closure4, A._EvaluateVisitor_closure5, A._EvaluateVisitor_closure6, A._EvaluateVisitor_closure7, A._EvaluateVisitor_closure8, A._EvaluateVisitor_closure9, A._EvaluateVisitor_closure10, A._EvaluateVisitor_closure11, A._EvaluateVisitor__loadModule__closure, A._EvaluateVisitor__combineCss_closure, A._EvaluateVisitor__combineCss_closure0, A._EvaluateVisitor__combineCss_visitModule, A._EvaluateVisitor__extendModules_closure, A._EvaluateVisitor__scopeForAtRoot_closure, A._EvaluateVisitor__scopeForAtRoot_closure0, A._EvaluateVisitor__scopeForAtRoot_closure1, A._EvaluateVisitor__scopeForAtRoot_closure2, A._EvaluateVisitor__scopeForAtRoot_closure3, A._EvaluateVisitor__scopeForAtRoot_closure4, A._EvaluateVisitor_visitEachRule_closure, A._EvaluateVisitor_visitEachRule_closure0, A._EvaluateVisitor_visitEachRule__closure, A._EvaluateVisitor_visitEachRule___closure, A._EvaluateVisitor_visitAtRule_closure, A._EvaluateVisitor_visitAtRule_closure1, A._EvaluateVisitor_visitForRule__closure, A._EvaluateVisitor_visitIfRule_closure, A._EvaluateVisitor_visitIfRule___closure, A._EvaluateVisitor__visitDynamicImport__closure, A._EvaluateVisitor__visitDynamicImport__closure0, A._EvaluateVisitor__visitDynamicImport__closure1, A._EvaluateVisitor_visitIncludeRule_closure0, A._EvaluateVisitor_visitMediaRule_closure, A._EvaluateVisitor_visitMediaRule_closure1, A._EvaluateVisitor_visitStyleRule_closure0, A._EvaluateVisitor_visitStyleRule_closure1, A._EvaluateVisitor__warnForBogusCombinators_closure, A._EvaluateVisitor_visitSupportsRule_closure0, A._EvaluateVisitor_visitWhileRule__closure, A._EvaluateVisitor__slash_recommendation, A._EvaluateVisitor_visitListExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure0, A._EvaluateVisitor__checkCalculationArguments_check, A._EvaluateVisitor__runUserDefinedCallable____closure, A._EvaluateVisitor__runBuiltInCallable_closure1, A._EvaluateVisitor__evaluateArguments_closure, A._EvaluateVisitor__evaluateArguments_closure0, A._EvaluateVisitor__evaluateArguments_closure2, A._EvaluateVisitor__evaluateMacroArguments_closure, A._EvaluateVisitor__evaluateMacroArguments_closure0, A._EvaluateVisitor__evaluateMacroArguments_closure2, A._EvaluateVisitor_visitCssAtRule_closure0, A._EvaluateVisitor_visitCssKeyframeBlock_closure0, A._EvaluateVisitor_visitCssMediaRule_closure, A._EvaluateVisitor_visitCssMediaRule_closure1, A._EvaluateVisitor_visitCssStyleRule_closure, A._EvaluateVisitor_visitCssSupportsRule_closure0, A._EvaluateVisitor__performInterpolationHelper_closure, A._EvaluateVisitor__withoutSlash_recommendation, A._EvaluateVisitor__stackFrame_closure, A._ImportedCssVisitor_visitCssAtRule_closure, A._ImportedCssVisitor_visitCssMediaRule_closure, A._ImportedCssVisitor_visitCssStyleRule_closure, A._ImportedCssVisitor_visitCssSupportsRule_closure, A.EveryCssVisitor_visitCssAtRule_closure, A.EveryCssVisitor_visitCssKeyframeBlock_closure, A.EveryCssVisitor_visitCssMediaRule_closure, A.EveryCssVisitor_visitCssStyleRule_closure, A.EveryCssVisitor_visitCssStylesheet_closure, A.EveryCssVisitor_visitCssSupportsRule_closure, A.ReplaceExpressionVisitor_visitListExpression_closure, A.ReplaceExpressionVisitor_visitArgumentInvocation_closure, A.ReplaceExpressionVisitor_visitInterpolation_closure, A.SelectorSearchVisitor_visitComplexSelector_closure, A.SelectorSearchVisitor_visitCompoundSelector_closure, A.serialize_closure, A._SerializeVisitor_visitList_closure, A._SerializeVisitor_visitList_closure0, A._SerializeVisitor_visitList_closure1, A._SerializeVisitor_visitMap_closure, A._SerializeVisitor_visitSelectorList_closure, A.StatementSearchVisitor_visitIfRule_closure, A.StatementSearchVisitor_visitIfRule__closure0, A.StatementSearchVisitor_visitIfRule_closure0, A.StatementSearchVisitor_visitIfRule__closure, A.StatementSearchVisitor_visitChildren_closure, A.SingleMapping_SingleMapping$fromEntries_closure1, A.SingleMapping_toJson_closure, A.Highlighter$__closure, A.Highlighter$___closure, A.Highlighter$__closure0, A.Highlighter__collateLines_closure, A.Highlighter__collateLines_closure1, A.Highlighter__collateLines__closure, A.Highlighter_highlight_closure, A.Chain_Chain$parse_closure, A.Chain_toTrace_closure, A.Chain_toString_closure0, A.Chain_toString__closure0, A.Chain_toString_closure, A.Chain_toString__closure, A.Trace__parseVM_closure, A.Trace$parseV8_closure, A.Trace$parseJSCore_closure, A.Trace$parseFirefox_closure, A.Trace$parseFriendly_closure, A.Trace_terse_closure, A.Trace_foldFrames_closure, A.Trace_foldFrames_closure0, A.Trace_toString_closure0, A.Trace_toString_closure, A.TransformByHandlers_transformByHandlers__closure, A.RateLimit__debounceAggregate_closure0, A.AnySelectorVisitor_visitComplexSelector_closure0, A.AnySelectorVisitor_visitCompoundSelector_closure0, A.ArgumentDeclaration_verify_closure1, A.ArgumentDeclaration_verify_closure2, A.argumentListClass__closure, A.argumentListClass__closure0, A.AsyncBuiltInCallable$mixin_closure0, A._compileStylesheet_closure2, A.AsyncEnvironment__getVariableFromGlobalModule_closure0, A.AsyncEnvironment_setVariable_closure3, A.AsyncEnvironment__getFunctionFromGlobalModule_closure0, A.AsyncEnvironment__getMixinFromGlobalModule_closure0, A.AsyncEnvironment_toModule_closure0, A.AsyncEnvironment_toDummyModule_closure0, A._EnvironmentModule__EnvironmentModule_closure17, A._EnvironmentModule__EnvironmentModule_closure18, A._EnvironmentModule__EnvironmentModule_closure19, A._EnvironmentModule__EnvironmentModule_closure20, A._EnvironmentModule__EnvironmentModule_closure21, A._EnvironmentModule__EnvironmentModule_closure22, A._EvaluateVisitor_closure38, A._EvaluateVisitor_closure39, A._EvaluateVisitor_closure40, A._EvaluateVisitor_closure41, A._EvaluateVisitor_closure42, A._EvaluateVisitor_closure43, A._EvaluateVisitor_closure44, A._EvaluateVisitor_closure45, A._EvaluateVisitor_closure46, A._EvaluateVisitor_closure47, A._EvaluateVisitor_closure48, A._EvaluateVisitor_closure49, A._EvaluateVisitor_closure50, A._EvaluateVisitor__loadModule__closure5, A._EvaluateVisitor__combineCss_closure5, A._EvaluateVisitor__combineCss_closure6, A._EvaluateVisitor__combineCss_visitModule2, A._EvaluateVisitor__extendModules_closure5, A._EvaluateVisitor__scopeForAtRoot_closure17, A._EvaluateVisitor__scopeForAtRoot_closure18, A._EvaluateVisitor__scopeForAtRoot_closure19, A._EvaluateVisitor__scopeForAtRoot_closure20, A._EvaluateVisitor__scopeForAtRoot_closure21, A._EvaluateVisitor__scopeForAtRoot_closure22, A._EvaluateVisitor_visitEachRule_closure8, A._EvaluateVisitor_visitEachRule_closure9, A._EvaluateVisitor_visitEachRule__closure2, A._EvaluateVisitor_visitEachRule___closure2, A._EvaluateVisitor_visitAtRule_closure8, A._EvaluateVisitor_visitAtRule_closure10, A._EvaluateVisitor_visitForRule__closure2, A._EvaluateVisitor_visitIfRule_closure2, A._EvaluateVisitor_visitIfRule___closure2, A._EvaluateVisitor__visitDynamicImport__closure11, A._EvaluateVisitor__visitDynamicImport__closure12, A._EvaluateVisitor__visitDynamicImport__closure13, A._EvaluateVisitor_visitIncludeRule_closure9, A._EvaluateVisitor_visitMediaRule_closure8, A._EvaluateVisitor_visitMediaRule_closure10, A._EvaluateVisitor_visitStyleRule_closure12, A._EvaluateVisitor_visitStyleRule_closure13, A._EvaluateVisitor__warnForBogusCombinators_closure2, A._EvaluateVisitor_visitSupportsRule_closure6, A._EvaluateVisitor_visitWhileRule__closure2, A._EvaluateVisitor__slash_recommendation2, A._EvaluateVisitor_visitListExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure9, A._EvaluateVisitor__checkCalculationArguments_check2, A._EvaluateVisitor__runUserDefinedCallable____closure2, A._EvaluateVisitor__runBuiltInCallable_closure10, A._EvaluateVisitor__evaluateArguments_closure11, A._EvaluateVisitor__evaluateArguments_closure12, A._EvaluateVisitor__evaluateArguments_closure14, A._EvaluateVisitor__evaluateMacroArguments_closure11, A._EvaluateVisitor__evaluateMacroArguments_closure12, A._EvaluateVisitor__evaluateMacroArguments_closure14, A._EvaluateVisitor_visitCssAtRule_closure6, A._EvaluateVisitor_visitCssKeyframeBlock_closure6, A._EvaluateVisitor_visitCssMediaRule_closure8, A._EvaluateVisitor_visitCssMediaRule_closure10, A._EvaluateVisitor_visitCssStyleRule_closure5, A._EvaluateVisitor_visitCssSupportsRule_closure6, A._EvaluateVisitor__performInterpolationHelper_closure2, A._EvaluateVisitor__withoutSlash_recommendation2, A._EvaluateVisitor__stackFrame_closure2, A._ImportedCssVisitor_visitCssAtRule_closure2, A._ImportedCssVisitor_visitCssMediaRule_closure2, A._ImportedCssVisitor_visitCssStyleRule_closure2, A._ImportedCssVisitor_visitCssSupportsRule_closure2, A.AsyncImportCache_humanize_closure3, A.AsyncImportCache_humanize_closure4, A.AsyncImportCache_humanize_closure5, A.AsyncImportCache_humanize_closure6, A.booleanClass__closure, A.legacyBooleanClass__closure, A.legacyBooleanClass__closure0, A.BuiltInCallable$mixin_closure0, A.calculationClass__closure, A.calculationClass__closure0, A.calculationClass__closure1, A.calculationClass__closure2, A.calculationClass__closure3, A.calculationClass__closure4, A.calculationClass__closure5, A.calculationOperationClass__closure, A.calculationOperationClass___closure, A.calculationOperationClass__closure1, A.calculationOperationClass__closure2, A.calculationOperationClass__closure3, A.calculationOperationClass__closure4, A.calculationInterpolationClass__closure1, A.calculationInterpolationClass__closure2, A.SassCalculation__verifyLength_closure0, A.updateCanonicalizeContextPrototype_closure, A.updateCanonicalizeContextPrototype_closure0, A.global_closure32, A.global_closure33, A.global_closure34, A.global_closure35, A.global_closure36, A.global_closure37, A.global_closure38, A.global_closure39, A.global_closure40, A.global_closure41, A.global_closure42, A.global_closure43, A.global_closure44, A.global_closure45, A.global_closure46, A.global_closure47, A.global_closure48, A.global_closure49, A.global_closure50, A.global_closure51, A.global_closure52, A.global_closure53, A.global_closure54, A.global_closure55, A.global_closure56, A.global_closure57, A.global__closure0, A.global_closure58, A.module_closure12, A.module_closure13, A.module_closure14, A.module_closure15, A.module_closure16, A.module_closure17, A.module_closure18, A.module_closure19, A.module__closure4, A.module_closure20, A._red_closure0, A._green_closure0, A._blue_closure0, A._mix_closure0, A._hue_closure0, A._saturation_closure0, A._lightness_closure0, A._complement_closure0, A._adjust_closure0, A._scale_closure0, A._change_closure0, A._ieHexStr_closure0, A._ieHexStr_closure_hexString0, A._updateComponents_getParam0, A._updateComponents_closure1, A._updateComponents_closure2, A._updateComponents_updateValue0, A._functionString_closure0, A._removedColorFunction_closure0, A._rgb_closure0, A._hsl_closure0, A._hwb_closure0, A._parseChannels_closure0, A.colorClass__closure1, A.colorClass__closure2, A.colorClass__closure3, A.colorClass__closure4, A.colorClass__closure5, A.colorClass__closure6, A.colorClass__closure7, A.colorClass__closure8, A.colorClass__closure9, A.legacyColorClass_closure, A.legacyColorClass_closure0, A.legacyColorClass_closure1, A.legacyColorClass_closure2, A.legacyColorClass_closure3, A.SassColor_SassColor$hwb_toRgb0, A.compileAsync__closure, A.compileStringAsync__closure, A.compileStringAsync__closure0, A._wrapAsyncSassExceptions_closure, A._parseFunctions__closure2, A._parseFunctions__closure3, A.nodePackageImporterClass__closure, A._compileStylesheet_closure1, A.AsyncCompiler_addCompilation_closure, A.compilerClass__closure, A.compilerClass__closure0, A.compilerClass__closure1, A.compilerClass__closure2, A.asyncCompilerClass__closure, A.asyncCompilerClass__closure0, A.asyncCompilerClass__closure1, A.asyncCompilerClass__closure2, A.ComplexSelectorComponent_toString_closure0, A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure0, A._disallowedFunctionNames_closure0, A.Deprecation_fromId_closure0, A.DeprecationProcessingLogger_summarize_closure1, A.DeprecationProcessingLogger_summarize_closure2, A.versionClass__closure, A.versionClass__closure0, A.EachRule_toString_closure0, A.Environment__getVariableFromGlobalModule_closure0, A.Environment_setVariable_closure3, A.Environment__getFunctionFromGlobalModule_closure0, A.Environment__getMixinFromGlobalModule_closure0, A.Environment_toModule_closure0, A.Environment_toDummyModule_closure0, A._EnvironmentModule__EnvironmentModule_closure11, A._EnvironmentModule__EnvironmentModule_closure12, A._EnvironmentModule__EnvironmentModule_closure13, A._EnvironmentModule__EnvironmentModule_closure14, A._EnvironmentModule__EnvironmentModule_closure15, A._EnvironmentModule__EnvironmentModule_closure16, A._EvaluateVisitor_closure25, A._EvaluateVisitor_closure26, A._EvaluateVisitor_closure27, A._EvaluateVisitor_closure28, A._EvaluateVisitor_closure29, A._EvaluateVisitor_closure30, A._EvaluateVisitor_closure31, A._EvaluateVisitor_closure32, A._EvaluateVisitor_closure33, A._EvaluateVisitor_closure34, A._EvaluateVisitor_closure35, A._EvaluateVisitor_closure36, A._EvaluateVisitor_closure37, A._EvaluateVisitor__loadModule__closure3, A._EvaluateVisitor__combineCss_closure3, A._EvaluateVisitor__combineCss_closure4, A._EvaluateVisitor__combineCss_visitModule1, A._EvaluateVisitor__extendModules_closure3, A._EvaluateVisitor__scopeForAtRoot_closure11, A._EvaluateVisitor__scopeForAtRoot_closure12, A._EvaluateVisitor__scopeForAtRoot_closure13, A._EvaluateVisitor__scopeForAtRoot_closure14, A._EvaluateVisitor__scopeForAtRoot_closure15, A._EvaluateVisitor__scopeForAtRoot_closure16, A._EvaluateVisitor_visitEachRule_closure5, A._EvaluateVisitor_visitEachRule_closure6, A._EvaluateVisitor_visitEachRule__closure1, A._EvaluateVisitor_visitEachRule___closure1, A._EvaluateVisitor_visitAtRule_closure5, A._EvaluateVisitor_visitAtRule_closure7, A._EvaluateVisitor_visitForRule__closure1, A._EvaluateVisitor_visitIfRule_closure1, A._EvaluateVisitor_visitIfRule___closure1, A._EvaluateVisitor__visitDynamicImport__closure7, A._EvaluateVisitor__visitDynamicImport__closure8, A._EvaluateVisitor__visitDynamicImport__closure9, A._EvaluateVisitor_visitIncludeRule_closure6, A._EvaluateVisitor_visitMediaRule_closure5, A._EvaluateVisitor_visitMediaRule_closure7, A._EvaluateVisitor_visitStyleRule_closure8, A._EvaluateVisitor_visitStyleRule_closure9, A._EvaluateVisitor__warnForBogusCombinators_closure1, A._EvaluateVisitor_visitSupportsRule_closure4, A._EvaluateVisitor_visitWhileRule__closure1, A._EvaluateVisitor__slash_recommendation1, A._EvaluateVisitor_visitListExpression_closure1, A._EvaluateVisitor_visitFunctionExpression_closure6, A._EvaluateVisitor__checkCalculationArguments_check1, A._EvaluateVisitor__runUserDefinedCallable____closure1, A._EvaluateVisitor__runBuiltInCallable_closure7, A._EvaluateVisitor__evaluateArguments_closure7, A._EvaluateVisitor__evaluateArguments_closure8, A._EvaluateVisitor__evaluateArguments_closure10, A._EvaluateVisitor__evaluateMacroArguments_closure7, A._EvaluateVisitor__evaluateMacroArguments_closure8, A._EvaluateVisitor__evaluateMacroArguments_closure10, A._EvaluateVisitor_visitCssAtRule_closure4, A._EvaluateVisitor_visitCssKeyframeBlock_closure4, A._EvaluateVisitor_visitCssMediaRule_closure5, A._EvaluateVisitor_visitCssMediaRule_closure7, A._EvaluateVisitor_visitCssStyleRule_closure3, A._EvaluateVisitor_visitCssSupportsRule_closure4, A._EvaluateVisitor__performInterpolationHelper_closure1, A._EvaluateVisitor__withoutSlash_recommendation1, A._EvaluateVisitor__stackFrame_closure1, A._ImportedCssVisitor_visitCssAtRule_closure1, A._ImportedCssVisitor_visitCssMediaRule_closure1, A._ImportedCssVisitor_visitCssStyleRule_closure1, A._ImportedCssVisitor_visitCssSupportsRule_closure1, A.EveryCssVisitor_visitCssAtRule_closure0, A.EveryCssVisitor_visitCssKeyframeBlock_closure0, A.EveryCssVisitor_visitCssMediaRule_closure0, A.EveryCssVisitor_visitCssStyleRule_closure0, A.EveryCssVisitor_visitCssStylesheet_closure0, A.EveryCssVisitor_visitCssSupportsRule_closure0, A.exceptionClass__closure, A.exceptionClass__closure0, A.exceptionClass__closure1, A._IsCalculationSafeVisitor_visitListExpression_closure0, A.ExtensionStore_extensionsWhereTarget_closure0, A.ExtensionStore__extendComplex_closure0, A.ExtensionStore__extendComplex__closure0, A.ExtensionStore__extendCompound_closure2, A.ExtensionStore__extendCompound_closure3, A.ExtensionStore__extendCompound_closure4, A.ExtensionStore__extendSimple_withoutPseudo0, A.ExtensionStore__extendSimple_closure1, A.ExtensionStore__extendSimple_closure2, A.ExtensionStore__extendPseudo_closure4, A.ExtensionStore__extendPseudo_closure5, A.ExtensionStore__extendPseudo_closure6, A.ExtensionStore__extendPseudo_closure7, A.ExtensionStore__extendPseudo_closure8, A.ExtensionStore__trim_closure1, A.ExtensionStore__trim_closure2, A.FilesystemImporter_canonicalize_closure0, A.functionClass__closure, A.functionClass__closure0, A.unifyComplex_closure0, A._weaveParents_closure4, A._weaveParents_closure5, A._weaveParents_closure6, A._mustUnify_closure0, A._mustUnify__closure0, A.paths__closure0, A.paths___closure0, A.listIsSuperselector_closure0, A.listIsSuperselector__closure0, A.complexIsSuperselector_closure1, A.complexIsSuperselector_closure2, A._compatibleWithPreviousCombinator_closure0, A.compoundIsSuperselector_closure0, A._selectorPseudoIsSuperselector_closure6, A._selectorPseudoIsSuperselector_closure7, A._selectorPseudoIsSuperselector_closure8, A._selectorPseudoIsSuperselector_closure9, A._selectorPseudoIsSuperselector_closure10, A._selectorPseudoIsSuperselector__closure0, A._selectorPseudoIsSuperselector___closure1, A._selectorPseudoIsSuperselector___closure2, A._selectorPseudoIsSuperselector_closure11, A._selectorPseudoIsSuperselector_closure12, A._selectorPseudoArgs_closure1, A._selectorPseudoArgs_closure2, A.globalFunctions_closure0, A.IDSelector_unify_closure0, A.IfRuleClause$__closure0, A.IfRuleClause$___closure0, A.immutableMapToDartMap_closure, A.NodeImporter__tryPath_closure0, A.ImportCache_humanize_closure3, A.ImportCache_humanize_closure4, A.ImportCache_humanize_closure5, A.ImportCache_humanize_closure6, A.Interpolation_toString_closure0, A.InterpolationMap_mapException_closure0, A._realCasePath_helper0, A._realCasePath_helper__closure0, A.listDir__closure1, A.listDir__closure2, A.listDir_closure_list0, A.listDir__list_closure0, A.render_closure0, A._parseFunctions__closure, A._parseFunctions___closure2, A._parseFunctions__closure0, A._parseFunctions__closure1, A._parseFunctions___closure, A._parseImporter_closure, A._parseImporter__closure, A._parseImporter___closure, A.ListExpression_toString_closure0, A._length_closure2, A._nth_closure0, A._setNth_closure0, A._join_closure0, A._append_closure2, A._zip_closure0, A._zip__closure2, A._zip__closure3, A._zip__closure4, A._index_closure2, A._separator_closure0, A._isBracketed_closure0, A._slash_closure0, A.SelectorList_asSassList_closure0, A.SelectorList_nestWithin_closure0, A.SelectorList_nestWithin__closure1, A.SelectorList_nestWithin__closure2, A.SelectorList__nestWithinCompound_closure2, A.SelectorList__nestWithinCompound_closure3, A.SelectorList__nestWithinCompound_closure4, A.SelectorList_withAdditionalCombinators_closure0, A.listClass__closure, A.legacyListClass_closure, A.legacyListClass__closure, A.legacyListClass_closure1, A.legacyListClass_closure2, A.legacyListClass_closure4, A.SassList_isBlank_closure0, A._get_closure0, A._set_closure1, A._set__closure2, A._set_closure2, A._set__closure1, A._merge_closure1, A._merge_closure2, A._merge__closure0, A._deepMerge_closure0, A._deepRemove_closure0, A._deepRemove__closure0, A._remove_closure1, A._remove_closure2, A._keys_closure0, A._values_closure0, A._hasKey_closure0, A._modify_modifyNestedMap0, A.MapExtensions_get_pairs_closure0, A.mapClass__closure, A.mapClass__closure0, A.legacyMapClass_closure, A.legacyMapClass__closure, A.legacyMapClass__closure0, A.legacyMapClass_closure2, A.legacyMapClass_closure3, A.legacyMapClass_closure4, A.global_closure31, A.module_closure11, A._ceil_closure0, A._clamp_closure0, A._floor_closure0, A._max_closure0, A._min_closure0, A._round_closure0, A._hypot_closure0, A._hypot__closure0, A._log_closure0, A._pow_closure0, A._atan2_closure0, A._compatible_closure0, A._isUnitless_closure0, A._unit_closure0, A._percentage_closure0, A._randomFunction_closure0, A._div_closure0, A._singleArgumentMathFunc_closure0, A._numberFunction_closure0, A.global_closure59, A.global_closure60, A.global_closure61, A.global_closure62, A.local_closure2, A.local_closure3, A.local__closure0, A.local_closure4, A.mixinClass__closure, A.mixinClass__closure0, A.ModifiableCssNode_hasFollowingSibling_closure0, A.NodePackageImporter__nodePackageExportsResolve_closure3, A.NodePackageImporter__nodePackageExportsResolve_closure4, A.NodePackageImporter__nodePackageExportsResolve_closure5, A.NodePackageImporter__nodePackageExportsResolve_closure6, A.NodePackageImporter__nodePackageExportsResolve__closure1, A.NodePackageImporter__nodePackageExportsResolve__closure2, A.NodePackageImporter__getMainExport_closure0, A.legacyNullClass__closure, A.numberClass__closure, A.numberClass__closure0, A.numberClass__closure1, A.numberClass__closure2, A.numberClass__closure3, A.numberClass__closure4, A.numberClass__closure5, A.numberClass__closure6, A.numberClass__closure7, A.numberClass__closure8, A.numberClass__closure9, A.numberClass__closure12, A.numberClass__closure13, A.numberClass__closure14, A.numberClass__closure15, A.numberClass__closure16, A.numberClass__closure17, A.numberClass__closure18, A.numberClass__closure19, A.legacyNumberClass_closure, A.legacyNumberClass_closure0, A.legacyNumberClass_closure2, A._parseNumber_closure, A._parseNumber_closure0, A.SassNumber__coerceOrConvertValue_closure3, A.SassNumber__coerceOrConvertValue_closure5, A.SassNumber_multiplyUnits_closure3, A.SassNumber_multiplyUnits_closure5, A.SassNumber__areAnyConvertible_closure0, A.SassNumber__canonicalizeUnitList_closure0, A.SassNumber_unitSuggestion_closure1, A.SassNumber_unitSuggestion_closure2, A.ParentStatement_closure0, A.ParentStatement__closure0, A.Parser_escape_closure0, A.Parser_scanIdentChar_matches0, A._PrefixedKeys_iterator_closure0, A.PseudoSelector_specificity__closure1, A.PseudoSelector_specificity__closure2, A.PseudoSelector_unify_closure0, A.JSClassExtension_setCustomInspect_closure, A.ReplaceExpressionVisitor_visitListExpression_closure0, A.ReplaceExpressionVisitor_visitArgumentInvocation_closure0, A.ReplaceExpressionVisitor_visitInterpolation_closure0, A.SassParser_styleRuleSelector_closure0, A.SassParser__peekIndentation_closure1, A.SassParser__peekIndentation_closure2, A._wrapMain_closure, A._wrapMain_closure0, A._IsBogusVisitor_visitComplexSelector_closure0, A._IsUselessVisitor_visitComplexSelector_closure0, A._nest_closure0, A._nest__closure1, A._append_closure1, A._append__closure1, A._append___closure0, A._extend_closure0, A._replace_closure0, A._unify_closure0, A._isSuperselector_closure0, A._simpleSelectors_closure0, A._simpleSelectors__closure0, A._parse_closure0, A.SelectorSearchVisitor_visitComplexSelector_closure0, A.SelectorSearchVisitor_visitCompoundSelector_closure0, A.serialize_closure0, A._SerializeVisitor_visitList_closure2, A._SerializeVisitor_visitList_closure3, A._SerializeVisitor_visitList_closure4, A._SerializeVisitor_visitMap_closure0, A._SerializeVisitor_visitSelectorList_closure0, A.SimpleSelector_isSuperselector_closure0, A.SimpleSelector_isSuperselector__closure0, A.SingleUnitSassNumber__coerceToUnit_closure0, A.SingleUnitSassNumber__coerceValueToUnit_closure0, A.SingleUnitSassNumber_multiplyUnits_closure1, A.SourceMapBuffer_buildSourceMap_closure0, A.updateSourceSpanPrototype_closure0, A.updateSourceSpanPrototype_closure1, A.updateSourceSpanPrototype_closure2, A.updateSourceSpanPrototype_closure3, A.updateSourceSpanPrototype_closure4, A.updateSourceSpanPrototype_closure5, A.updateSourceSpanPrototype_closure6, A.StatementSearchVisitor_visitIfRule_closure1, A.StatementSearchVisitor_visitIfRule__closure2, A.StatementSearchVisitor_visitIfRule_closure2, A.StatementSearchVisitor_visitIfRule__closure1, A.StatementSearchVisitor_visitChildren_closure0, A.module_closure10, A.module__closure2, A.module__closure3, A._unquote_closure0, A._quote_closure0, A._length_closure1, A._insert_closure0, A._index_closure1, A._slice_closure0, A._toUpperCase_closure0, A._toLowerCase_closure0, A._uniqueId_closure0, A.stringClass__closure, A.stringClass__closure0, A.stringClass__closure1, A.stringClass__closure2, A.stringClass__closure3, A.legacyStringClass_closure, A.legacyStringClass_closure0, A.StylesheetParser_parse__closure2, A.StylesheetParser__expression_addSingleExpression0, A.StylesheetParser__expression_addOperator0, A.StylesheetParser__isHexColor_closure0, A.StylesheetParser__unicodeRange_closure1, A.StylesheetParser__unicodeRange_closure2, A.StylesheetParser_trySpecialFunction_closure0, A._UnprefixedKeys_iterator_closure1, A._UnprefixedKeys_iterator_closure2, A._exactlyOne_closure0, A.futureToPromise__closure0, A.indent_closure0, A.flattenVertically_closure1, A.flattenVertically_closure2, A.valueClass__closure, A.valueClass__closure0, A.valueClass__closure1, A.valueClass__closure2, A.valueClass__closure3, A.valueClass__closure4, A.valueClass__closure5, A.valueClass__closure7, A.valueClass__closure8, A.valueClass__closure9, A.valueClass__closure10, A.valueClass__closure11, A.valueClass__closure12, A.valueClass__closure13, A.valueClass__closure14, A.valueClass__closure15, A.valueClass__closure17, A.valueClass__closure18]);
- _inheritMany(A.Closure2Args, [A._CastListBase_sort_closure, A.CastMap_forEach_closure, A.Primitives_functionNoSuchMethod_closure, A.JsLinkedHashMap_addAll_closure, A.initHooks_closure0, A._awaitOnObject_closure0, A._wrapJsFunctionForAsync_closure, A.Future_wait_handleError, A._Future__chainForeignFuture_closure0, A.Stream_Stream$fromFuture_closure0, A._AddStreamState_makeErrorHandler_closure, A._HashMap_addAll_closure, A.HashMap_HashMap$from_closure, A.LinkedHashMap_LinkedHashMap$from_closure, A.MapBase_addAll_closure, A.MapBase_mapToString_closure, A._JsonMap_addAll_closure, A._JsonStringifier_writeMap_closure, A.NoSuchMethodError_toString_closure, A.Uri__parseIPv4Address_error, A.Uri_parseIPv6Address_error, A.Uri_parseIPv6Address_parseHex, A._createTables_build, A.Parser_parse_closure, A.FutureGroup_add_closure0, A.StreamQueue__ensureListening_closure1, A.futureToPromise_closure, A.PathMap__create_closure, A.IfRule_toString_closure, A.ComplexSelector_specificity_closure, A.CompoundSelector_specificity_closure, A.ExtensionStore_clone_closure, A._weaveParents_closure, A.paths_closure, A._updateComponents_updateRgb, A._nest__closure0, A._append__closure0, A.ImportCache_clearCanonicalize_closure, A.StylesheetParser__styleRule_closure, A.StylesheetParser__tryDeclarationChildren_closure, A.StylesheetParser__atRootRule_closure, A.StylesheetParser__atRootRule_closure0, A.StylesheetParser__eachRule_closure, A.StylesheetParser__functionRule_closure, A.StylesheetParser__forRule_closure0, A.StylesheetParser__includeRule_closure, A.StylesheetParser_mediaRule_closure, A.StylesheetParser__mixinRule_closure, A.StylesheetParser_mozDocumentRule_closure, A.StylesheetParser_supportsRule_closure, A.StylesheetParser__whileRule_closure, A.StylesheetParser_unknownAtRule_closure, A.longestCommonSubsequence_backtrack, A.mapAddAll2_closure, A.SassNumber_plus_closure, A.SassNumber_minus_closure, A.SassNumber__canonicalMultiplier_closure, A._EvaluateVisitor__closure3, A._EvaluateVisitor__closure4, A._EvaluateVisitor_visitForwardRule_closure1, A._EvaluateVisitor_visitForwardRule_closure2, A._EvaluateVisitor_visitUseRule_closure0, A._EvaluateVisitor__evaluateArguments_closure5, A._EvaluateVisitor__evaluateMacroArguments_closure5, A._EvaluateVisitor__addRestMap_closure0, A._EvaluateVisitor__closure, A._EvaluateVisitor__closure0, A._EvaluateVisitor_visitForwardRule_closure, A._EvaluateVisitor_visitForwardRule_closure0, A._EvaluateVisitor_visitUseRule_closure, A._EvaluateVisitor__evaluateArguments_closure1, A._EvaluateVisitor__evaluateMacroArguments_closure1, A._EvaluateVisitor__addRestMap_closure, A.SingleMapping_toJson_closure0, A.Highlighter__collateLines_closure0, A.Frame_Frame$parseV8_closure_parseLocation, A.TransformByHandlers_transformByHandlers__closure1, A.RateLimit__debounceAggregate_closure, A._EvaluateVisitor__closure11, A._EvaluateVisitor__closure12, A._EvaluateVisitor_visitForwardRule_closure5, A._EvaluateVisitor_visitForwardRule_closure6, A._EvaluateVisitor_visitUseRule_closure2, A._EvaluateVisitor__evaluateArguments_closure13, A._EvaluateVisitor__evaluateMacroArguments_closure13, A._EvaluateVisitor__addRestMap_closure2, A.calculationOperationClass__closure0, A.calculationInterpolationClass__closure, A.calculationInterpolationClass__closure0, A._updateComponents_updateRgb0, A.colorClass__closure, A.colorClass__closure0, A.legacyColorClass_closure4, A.legacyColorClass_closure5, A.legacyColorClass_closure6, A.legacyColorClass_closure7, A._parseFunctions_closure0, A.ComplexSelector_specificity_closure0, A.CompoundSelector_specificity_closure0, A._EvaluateVisitor__closure7, A._EvaluateVisitor__closure8, A._EvaluateVisitor_visitForwardRule_closure3, A._EvaluateVisitor_visitForwardRule_closure4, A._EvaluateVisitor_visitUseRule_closure1, A._EvaluateVisitor__evaluateArguments_closure9, A._EvaluateVisitor__evaluateMacroArguments_closure9, A._EvaluateVisitor__addRestMap_closure1, A.ExtensionStore_clone_closure0, A._weaveParents_closure3, A.paths_closure0, A.IfRule_toString_closure0, A.main_closure, A.main_closure0, A.render_closure1, A._parseFunctions_closure, A.listClass__closure0, A.legacyListClass_closure0, A.legacyListClass_closure3, A.mapClass__closure1, A.legacyMapClass_closure0, A.legacyMapClass_closure1, A.numberClass__closure10, A.numberClass__closure11, A.legacyNumberClass_closure1, A.legacyNumberClass_closure3, A.SassNumber_plus_closure0, A.SassNumber_minus_closure0, A.SassNumber__canonicalMultiplier_closure0, A.JSClassExtension_get_defineStaticMethod_closure, A.JSClassExtension_get_defineMethod_closure, A.JSClassExtension_get_defineGetter_closure, A._nest__closure2, A._append__closure2, A.legacyStringClass_closure1, A.StylesheetParser__styleRule_closure0, A.StylesheetParser__tryDeclarationChildren_closure0, A.StylesheetParser__atRootRule_closure1, A.StylesheetParser__atRootRule_closure2, A.StylesheetParser__eachRule_closure0, A.StylesheetParser__functionRule_closure0, A.StylesheetParser__forRule_closure2, A.StylesheetParser__includeRule_closure0, A.StylesheetParser_mediaRule_closure0, A.StylesheetParser__mixinRule_closure0, A.StylesheetParser_mozDocumentRule_closure0, A.StylesheetParser_supportsRule_closure0, A.StylesheetParser__whileRule_closure0, A.StylesheetParser_unknownAtRule_closure0, A.futureToPromise_closure0, A.futureToPromise__closure1, A.objectToMap_closure, A.longestCommonSubsequence_backtrack0, A.mapAddAll2_closure0, A.valueClass__closure6, A.valueClass__closure16]);
- _inherit(A.CastList, A._CastListBase);
- _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A.UnmodifiableMapBase, A._JsonMap, A.MergedMapView, A.MergedMapView0]);
- _inheritMany(A.Error, [A.LateError, A.ReachabilityError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A._CyclicInitializationError, A.RuntimeError, A._Error, A.JsonUnsupportedObjectError, A.AssertionError, A.ArgumentError, A.NoSuchMethodError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError]);
- _inherit(A.UnmodifiableListBase, A.ListBase);
- _inheritMany(A.UnmodifiableListBase, [A.CodeUnits, A.UnmodifiableListView]);
- _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainForeignFuture_closure1, A._Future__chainCoreFutureAsync_closure, A._Future__asyncCompleteWithValue_closure, A._Future__asyncCompleteError_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A.Stream_length_closure0, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._AddStreamState_cancel_closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A._Utf8Decoder__decoder_closure, A._Utf8Decoder__decoderNonfatal_closure, A.Parser__setOption_closure, A.StreamGroup_add_closure, A.StreamGroup_add_closure0, A.StreamGroup__listenToStream_closure, A.StreamQueue__ensureListening_closure0, A._isStrictMode_closure, A.ReplAdapter_runAsync_closure, A.ParsedPath__splitExtension_closure0, A.PseudoSelector_specificity_closure, A.AsyncEnvironment_setVariable_closure, A.AsyncEnvironment_setVariable_closure1, A.AsyncImportCache_canonicalize_closure, A.AsyncImportCache__canonicalize_closure, A.AsyncImportCache_importCanonical_closure, A.Environment_setVariable_closure, A.Environment_setVariable_closure1, A.ExecutableOptions__parser_closure, A.ExecutableOptions_interactive_closure, A.ExecutableOptions_fatalDeprecations_closure, A.ExtensionStore__registerSelector_closure, A.ExtensionStore_addExtension_closure, A.ExtensionStore_addExtension_closure0, A.ExtensionStore_addExtension_closure1, A.ExtensionStore__extendExistingExtensions_closure, A.ExtensionStore__extendExistingExtensions_closure0, A.ExtensionStore_addExtensions_closure, A.ImportCache_canonicalize_closure, A.ImportCache__canonicalize_closure, A.ImportCache_importCanonical_closure, A.resolveImportPath_closure, A.resolveImportPath_closure0, A._tryPathAsDirectory_closure, A._realCasePath_helper_closure, A._readFile_closure, A.writeFile_closure, A.deleteFile_closure, A.fileExists_closure, A.dirExists_closure, A.ensureDir_closure, A.listDir_closure, A.modificationTime_closure, A.watchDir_closure3, A.watchDir__closure, A.AtRootQueryParser_parse_closure, A.KeyframeSelectorParser_parse_closure, A.MediaQueryParser_parse_closure, A.Parser__parseIdentifier_closure, A.Parser_spanFrom_closure, A.SassParser_children_closure, A.SelectorParser_parse_closure, A.SelectorParser_parseCompoundSelector_closure, A.StylesheetParser_parse_closure, A.StylesheetParser_parse__closure, A.StylesheetParser_parseArgumentDeclaration_closure, A.StylesheetParser_parseVariableDeclaration_closure, A.StylesheetParser_parseUseRule_closure, A.StylesheetParser__parseSingleProduction_closure, A.StylesheetParser__statement_closure, A.StylesheetParser_variableDeclarationWithoutNamespace_closure, A.StylesheetParser_variableDeclarationWithoutNamespace_closure0, A.StylesheetParser__forRule_closure, A.StylesheetParser__memberList_closure, A.StylesheetParser__expression_resetState, A.StylesheetParser__expression_resolveOneOperation, A.StylesheetParser__expression_resolveOperations, A.StylesheetParser__expression_resolveSpaceExpressions, A.StylesheetParser_expressionUntilComma_closure, A.StylesheetParser_namespacedExpression_closure, A.StylesheetParser__expressionUntilComparison_closure, A.StylesheetParser__publicIdentifier_closure, A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure, A.StylesheetGraph__add_closure, A.StylesheetGraph_addCanonical_closure, A.StylesheetGraph_reload_closure, A.StylesheetGraph__nodeFor_closure, A.StylesheetGraph__nodeFor_closure0, A.SassNumber__coerceOrConvertValue_compatibilityException, A.SassNumber__coerceOrConvertValue_closure0, A.SassNumber__coerceOrConvertValue_closure2, A.SassNumber_multiplyUnits_closure0, A.SassNumber_multiplyUnits_closure2, A.SingleUnitSassNumber_multiplyUnits_closure0, A._EvaluateVisitor__closure6, A._EvaluateVisitor__closure5, A._EvaluateVisitor_run_closure0, A._EvaluateVisitor_run__closure0, A._EvaluateVisitor__loadModule_closure1, A._EvaluateVisitor__loadModule_closure2, A._EvaluateVisitor__loadModule__closure2, A._EvaluateVisitor__execute_closure0, A._EvaluateVisitor__extendModules_closure2, A._EvaluateVisitor_visitAtRootRule_closure1, A._EvaluateVisitor_visitAtRootRule_closure2, A._EvaluateVisitor__scopeForAtRoot__closure0, A._EvaluateVisitor_visitContentRule_closure0, A._EvaluateVisitor_visitDeclaration_closure0, A._EvaluateVisitor_visitEachRule_closure4, A._EvaluateVisitor_visitAtRule_closure3, A._EvaluateVisitor_visitAtRule__closure0, A._EvaluateVisitor_visitForRule_closure4, A._EvaluateVisitor_visitForRule_closure5, A._EvaluateVisitor_visitForRule_closure6, A._EvaluateVisitor_visitForRule_closure7, A._EvaluateVisitor_visitForRule_closure8, A._EvaluateVisitor__registerCommentsForModule_closure0, A._EvaluateVisitor_visitIfRule__closure0, A._EvaluateVisitor__visitDynamicImport_closure0, A._EvaluateVisitor__visitDynamicImport__closure6, A._EvaluateVisitor__applyMixin_closure1, A._EvaluateVisitor__applyMixin__closure2, A._EvaluateVisitor__applyMixin_closure2, A._EvaluateVisitor__applyMixin__closure1, A._EvaluateVisitor__applyMixin___closure0, A._EvaluateVisitor__applyMixin____closure0, A._EvaluateVisitor_visitIncludeRule_closure2, A._EvaluateVisitor_visitIncludeRule_closure4, A._EvaluateVisitor_visitMediaRule_closure3, A._EvaluateVisitor_visitMediaRule__closure0, A._EvaluateVisitor_visitMediaRule___closure0, A._EvaluateVisitor_visitStyleRule_closure3, A._EvaluateVisitor_visitStyleRule_closure6, A._EvaluateVisitor_visitStyleRule__closure0, A._EvaluateVisitor_visitSupportsRule_closure1, A._EvaluateVisitor_visitSupportsRule__closure0, A._EvaluateVisitor__visitSupportsCondition_closure0, A._EvaluateVisitor_visitVariableDeclaration_closure2, A._EvaluateVisitor_visitVariableDeclaration_closure3, A._EvaluateVisitor_visitVariableDeclaration_closure4, A._EvaluateVisitor_visitWarnRule_closure0, A._EvaluateVisitor_visitWhileRule_closure0, A._EvaluateVisitor_visitBinaryOperationExpression_closure0, A._EvaluateVisitor_visitVariableExpression_closure0, A._EvaluateVisitor_visitUnaryOperationExpression_closure0, A._EvaluateVisitor_visitFunctionExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure4, A._EvaluateVisitor__visitCalculationExpression_closure0, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0, A._EvaluateVisitor__runUserDefinedCallable_closure0, A._EvaluateVisitor__runUserDefinedCallable__closure0, A._EvaluateVisitor__runUserDefinedCallable___closure0, A._EvaluateVisitor__runFunctionCallable_closure0, A._EvaluateVisitor__runBuiltInCallable_closure2, A._EvaluateVisitor__runBuiltInCallable_closure3, A._EvaluateVisitor__verifyArguments_closure0, A._EvaluateVisitor_visitCssAtRule_closure1, A._EvaluateVisitor_visitCssKeyframeBlock_closure1, A._EvaluateVisitor_visitCssMediaRule_closure3, A._EvaluateVisitor_visitCssMediaRule__closure0, A._EvaluateVisitor_visitCssMediaRule___closure0, A._EvaluateVisitor_visitCssStyleRule_closure2, A._EvaluateVisitor_visitCssStyleRule__closure0, A._EvaluateVisitor_visitCssSupportsRule_closure1, A._EvaluateVisitor_visitCssSupportsRule__closure0, A._EvaluateVisitor__serialize_closure0, A._EvaluateVisitor__expressionNode_closure0, A._EvaluateVisitor__closure2, A._EvaluateVisitor__closure1, A._EvaluateVisitor_run_closure, A._EvaluateVisitor_run__closure, A._EvaluateVisitor_runExpression_closure, A._EvaluateVisitor_runExpression__closure, A._EvaluateVisitor_runExpression___closure, A._EvaluateVisitor_runStatement_closure, A._EvaluateVisitor_runStatement__closure, A._EvaluateVisitor_runStatement___closure, A._EvaluateVisitor__loadModule_closure, A._EvaluateVisitor__loadModule_closure0, A._EvaluateVisitor__loadModule__closure0, A._EvaluateVisitor__execute_closure, A._EvaluateVisitor__extendModules_closure0, A._EvaluateVisitor_visitAtRootRule_closure, A._EvaluateVisitor_visitAtRootRule_closure0, A._EvaluateVisitor__scopeForAtRoot__closure, A._EvaluateVisitor_visitContentRule_closure, A._EvaluateVisitor_visitDeclaration_closure, A._EvaluateVisitor_visitEachRule_closure1, A._EvaluateVisitor_visitAtRule_closure0, A._EvaluateVisitor_visitAtRule__closure, A._EvaluateVisitor_visitForRule_closure, A._EvaluateVisitor_visitForRule_closure0, A._EvaluateVisitor_visitForRule_closure1, A._EvaluateVisitor_visitForRule_closure2, A._EvaluateVisitor_visitForRule_closure3, A._EvaluateVisitor__registerCommentsForModule_closure, A._EvaluateVisitor_visitIfRule__closure, A._EvaluateVisitor__visitDynamicImport_closure, A._EvaluateVisitor__visitDynamicImport__closure2, A._EvaluateVisitor__applyMixin_closure, A._EvaluateVisitor__applyMixin__closure0, A._EvaluateVisitor__applyMixin_closure0, A._EvaluateVisitor__applyMixin__closure, A._EvaluateVisitor__applyMixin___closure, A._EvaluateVisitor__applyMixin____closure, A._EvaluateVisitor_visitIncludeRule_closure, A._EvaluateVisitor_visitIncludeRule_closure1, A._EvaluateVisitor_visitMediaRule_closure0, A._EvaluateVisitor_visitMediaRule__closure, A._EvaluateVisitor_visitMediaRule___closure, A._EvaluateVisitor_visitStyleRule_closure, A._EvaluateVisitor_visitStyleRule_closure2, A._EvaluateVisitor_visitStyleRule__closure, A._EvaluateVisitor_visitSupportsRule_closure, A._EvaluateVisitor_visitSupportsRule__closure, A._EvaluateVisitor__visitSupportsCondition_closure, A._EvaluateVisitor_visitVariableDeclaration_closure, A._EvaluateVisitor_visitVariableDeclaration_closure0, A._EvaluateVisitor_visitVariableDeclaration_closure1, A._EvaluateVisitor_visitWarnRule_closure, A._EvaluateVisitor_visitWhileRule_closure, A._EvaluateVisitor_visitBinaryOperationExpression_closure, A._EvaluateVisitor_visitVariableExpression_closure, A._EvaluateVisitor_visitUnaryOperationExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure1, A._EvaluateVisitor__visitCalculationExpression_closure, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure, A._EvaluateVisitor__runUserDefinedCallable_closure, A._EvaluateVisitor__runUserDefinedCallable__closure, A._EvaluateVisitor__runUserDefinedCallable___closure, A._EvaluateVisitor__runFunctionCallable_closure, A._EvaluateVisitor__runBuiltInCallable_closure, A._EvaluateVisitor__runBuiltInCallable_closure0, A._EvaluateVisitor__verifyArguments_closure, A._EvaluateVisitor_visitCssAtRule_closure, A._EvaluateVisitor_visitCssKeyframeBlock_closure, A._EvaluateVisitor_visitCssMediaRule_closure0, A._EvaluateVisitor_visitCssMediaRule__closure, A._EvaluateVisitor_visitCssMediaRule___closure, A._EvaluateVisitor_visitCssStyleRule_closure0, A._EvaluateVisitor_visitCssStyleRule__closure, A._EvaluateVisitor_visitCssSupportsRule_closure, A._EvaluateVisitor_visitCssSupportsRule__closure, A._EvaluateVisitor__serialize_closure, A._EvaluateVisitor__expressionNode_closure, A._SerializeVisitor_visitCssComment_closure, A._SerializeVisitor_visitCssAtRule_closure, A._SerializeVisitor_visitCssMediaRule_closure, A._SerializeVisitor_visitCssImport_closure, A._SerializeVisitor_visitCssImport__closure, A._SerializeVisitor_visitCssKeyframeBlock_closure, A._SerializeVisitor_visitCssStyleRule_closure, A._SerializeVisitor_visitCssSupportsRule_closure, A._SerializeVisitor_visitCssDeclaration_closure, A._SerializeVisitor_visitCssDeclaration_closure0, A._SerializeVisitor__write_closure, A._SerializeVisitor__visitChildren_closure, A._SerializeVisitor__visitChildren_closure0, A.SingleMapping_SingleMapping$fromEntries_closure, A.SingleMapping_SingleMapping$fromEntries_closure0, A.Highlighter_closure, A.Highlighter__writeFileStart_closure, A.Highlighter__writeMultilineHighlights_closure, A.Highlighter__writeMultilineHighlights_closure0, A.Highlighter__writeMultilineHighlights_closure1, A.Highlighter__writeMultilineHighlights_closure2, A.Highlighter__writeMultilineHighlights__closure, A.Highlighter__writeMultilineHighlights__closure0, A.Highlighter__writeHighlightedText_closure, A.Highlighter__writeIndicator_closure, A.Highlighter__writeIndicator_closure0, A.Highlighter__writeIndicator_closure1, A.Highlighter__writeLabel_closure, A.Highlighter__writeLabel_closure0, A.Highlighter__writeSidebar_closure, A._Highlight_closure, A.Frame_Frame$parseVM_closure, A.Frame_Frame$parseV8_closure, A.Frame_Frame$_parseFirefoxEval_closure, A.Frame_Frame$parseFirefox_closure, A.Frame_Frame$parseFriendly_closure, A.LazyTrace_terse_closure, A.Trace_Trace$from_closure, A.TransformByHandlers_transformByHandlers_closure, A.TransformByHandlers_transformByHandlers__closure0, A.TransformByHandlers_transformByHandlers__closure2, A.RateLimit__debounceAggregate_closure_emit, A.RateLimit__debounceAggregate__closure, A.argumentListClass_closure, A.JSToDartAsyncImporter_canonicalize_closure, A.JSToDartAsyncImporter_load_closure, A.AsyncEnvironment_setVariable_closure2, A.AsyncEnvironment_setVariable_closure4, A._EvaluateVisitor__closure14, A._EvaluateVisitor__closure13, A._EvaluateVisitor_run_closure2, A._EvaluateVisitor_run__closure2, A._EvaluateVisitor__loadModule_closure5, A._EvaluateVisitor__loadModule_closure6, A._EvaluateVisitor__loadModule__closure6, A._EvaluateVisitor__execute_closure2, A._EvaluateVisitor__extendModules_closure6, A._EvaluateVisitor_visitAtRootRule_closure5, A._EvaluateVisitor_visitAtRootRule_closure6, A._EvaluateVisitor__scopeForAtRoot__closure2, A._EvaluateVisitor_visitContentRule_closure2, A._EvaluateVisitor_visitDeclaration_closure2, A._EvaluateVisitor_visitEachRule_closure10, A._EvaluateVisitor_visitAtRule_closure9, A._EvaluateVisitor_visitAtRule__closure2, A._EvaluateVisitor_visitForRule_closure14, A._EvaluateVisitor_visitForRule_closure15, A._EvaluateVisitor_visitForRule_closure16, A._EvaluateVisitor_visitForRule_closure17, A._EvaluateVisitor_visitForRule_closure18, A._EvaluateVisitor__registerCommentsForModule_closure2, A._EvaluateVisitor_visitIfRule__closure2, A._EvaluateVisitor__visitDynamicImport_closure2, A._EvaluateVisitor__visitDynamicImport__closure14, A._EvaluateVisitor__applyMixin_closure5, A._EvaluateVisitor__applyMixin__closure6, A._EvaluateVisitor__applyMixin_closure6, A._EvaluateVisitor__applyMixin__closure5, A._EvaluateVisitor__applyMixin___closure2, A._EvaluateVisitor__applyMixin____closure2, A._EvaluateVisitor_visitIncludeRule_closure8, A._EvaluateVisitor_visitIncludeRule_closure10, A._EvaluateVisitor_visitMediaRule_closure9, A._EvaluateVisitor_visitMediaRule__closure2, A._EvaluateVisitor_visitMediaRule___closure2, A._EvaluateVisitor_visitStyleRule_closure11, A._EvaluateVisitor_visitStyleRule_closure14, A._EvaluateVisitor_visitStyleRule__closure2, A._EvaluateVisitor_visitSupportsRule_closure5, A._EvaluateVisitor_visitSupportsRule__closure2, A._EvaluateVisitor__visitSupportsCondition_closure2, A._EvaluateVisitor_visitVariableDeclaration_closure8, A._EvaluateVisitor_visitVariableDeclaration_closure9, A._EvaluateVisitor_visitVariableDeclaration_closure10, A._EvaluateVisitor_visitWarnRule_closure2, A._EvaluateVisitor_visitWhileRule_closure2, A._EvaluateVisitor_visitBinaryOperationExpression_closure2, A._EvaluateVisitor_visitVariableExpression_closure2, A._EvaluateVisitor_visitUnaryOperationExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure8, A._EvaluateVisitor_visitFunctionExpression_closure10, A._EvaluateVisitor__visitCalculationExpression_closure2, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2, A._EvaluateVisitor__runUserDefinedCallable_closure2, A._EvaluateVisitor__runUserDefinedCallable__closure2, A._EvaluateVisitor__runUserDefinedCallable___closure2, A._EvaluateVisitor__runFunctionCallable_closure2, A._EvaluateVisitor__runBuiltInCallable_closure8, A._EvaluateVisitor__runBuiltInCallable_closure9, A._EvaluateVisitor__verifyArguments_closure2, A._EvaluateVisitor_visitCssAtRule_closure5, A._EvaluateVisitor_visitCssKeyframeBlock_closure5, A._EvaluateVisitor_visitCssMediaRule_closure9, A._EvaluateVisitor_visitCssMediaRule__closure2, A._EvaluateVisitor_visitCssMediaRule___closure2, A._EvaluateVisitor_visitCssStyleRule_closure6, A._EvaluateVisitor_visitCssStyleRule__closure2, A._EvaluateVisitor_visitCssSupportsRule_closure5, A._EvaluateVisitor_visitCssSupportsRule__closure2, A._EvaluateVisitor__serialize_closure2, A._EvaluateVisitor__expressionNode_closure2, A.JSToDartAsyncFileImporter_canonicalize_closure, A.AsyncImportCache_canonicalize_closure0, A.AsyncImportCache__canonicalize_closure0, A.AsyncImportCache_importCanonical_closure0, A.AtRootQueryParser_parse_closure0, A.booleanClass_closure, A.legacyBooleanClass_closure, A.calculationClass_closure, A.calculationOperationClass_closure, A.calculationInterpolationClass_closure, A.colorClass_closure, A.compileAsync_closure, A.compileStringAsync_closure, A._parseFunctions___closure6, A._parseFunctions___closure5, A._parseDeprecations_closure, A.nodePackageImporterClass_closure, A.compilerClass_closure, A.asyncCompilerClass_closure, A.asyncCompilerClass___closure, A.initAsyncCompiler_closure, A.deprecations_closure, A.versionClass_closure, A.Environment_setVariable_closure2, A.Environment_setVariable_closure4, A._EvaluateVisitor__closure10, A._EvaluateVisitor__closure9, A._EvaluateVisitor_run_closure1, A._EvaluateVisitor_run__closure1, A._EvaluateVisitor__loadModule_closure3, A._EvaluateVisitor__loadModule_closure4, A._EvaluateVisitor__loadModule__closure4, A._EvaluateVisitor__execute_closure1, A._EvaluateVisitor__extendModules_closure4, A._EvaluateVisitor_visitAtRootRule_closure3, A._EvaluateVisitor_visitAtRootRule_closure4, A._EvaluateVisitor__scopeForAtRoot__closure1, A._EvaluateVisitor_visitContentRule_closure1, A._EvaluateVisitor_visitDeclaration_closure1, A._EvaluateVisitor_visitEachRule_closure7, A._EvaluateVisitor_visitAtRule_closure6, A._EvaluateVisitor_visitAtRule__closure1, A._EvaluateVisitor_visitForRule_closure9, A._EvaluateVisitor_visitForRule_closure10, A._EvaluateVisitor_visitForRule_closure11, A._EvaluateVisitor_visitForRule_closure12, A._EvaluateVisitor_visitForRule_closure13, A._EvaluateVisitor__registerCommentsForModule_closure1, A._EvaluateVisitor_visitIfRule__closure1, A._EvaluateVisitor__visitDynamicImport_closure1, A._EvaluateVisitor__visitDynamicImport__closure10, A._EvaluateVisitor__applyMixin_closure3, A._EvaluateVisitor__applyMixin__closure4, A._EvaluateVisitor__applyMixin_closure4, A._EvaluateVisitor__applyMixin__closure3, A._EvaluateVisitor__applyMixin___closure1, A._EvaluateVisitor__applyMixin____closure1, A._EvaluateVisitor_visitIncludeRule_closure5, A._EvaluateVisitor_visitIncludeRule_closure7, A._EvaluateVisitor_visitMediaRule_closure6, A._EvaluateVisitor_visitMediaRule__closure1, A._EvaluateVisitor_visitMediaRule___closure1, A._EvaluateVisitor_visitStyleRule_closure7, A._EvaluateVisitor_visitStyleRule_closure10, A._EvaluateVisitor_visitStyleRule__closure1, A._EvaluateVisitor_visitSupportsRule_closure3, A._EvaluateVisitor_visitSupportsRule__closure1, A._EvaluateVisitor__visitSupportsCondition_closure1, A._EvaluateVisitor_visitVariableDeclaration_closure5, A._EvaluateVisitor_visitVariableDeclaration_closure6, A._EvaluateVisitor_visitVariableDeclaration_closure7, A._EvaluateVisitor_visitWarnRule_closure1, A._EvaluateVisitor_visitWhileRule_closure1, A._EvaluateVisitor_visitBinaryOperationExpression_closure1, A._EvaluateVisitor_visitVariableExpression_closure1, A._EvaluateVisitor_visitUnaryOperationExpression_closure1, A._EvaluateVisitor_visitFunctionExpression_closure5, A._EvaluateVisitor_visitFunctionExpression_closure7, A._EvaluateVisitor__visitCalculationExpression_closure1, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1, A._EvaluateVisitor__runUserDefinedCallable_closure1, A._EvaluateVisitor__runUserDefinedCallable__closure1, A._EvaluateVisitor__runUserDefinedCallable___closure1, A._EvaluateVisitor__runFunctionCallable_closure1, A._EvaluateVisitor__runBuiltInCallable_closure5, A._EvaluateVisitor__runBuiltInCallable_closure6, A._EvaluateVisitor__verifyArguments_closure1, A._EvaluateVisitor_visitCssAtRule_closure3, A._EvaluateVisitor_visitCssKeyframeBlock_closure3, A._EvaluateVisitor_visitCssMediaRule_closure6, A._EvaluateVisitor_visitCssMediaRule__closure1, A._EvaluateVisitor_visitCssMediaRule___closure1, A._EvaluateVisitor_visitCssStyleRule_closure4, A._EvaluateVisitor_visitCssStyleRule__closure1, A._EvaluateVisitor_visitCssSupportsRule_closure3, A._EvaluateVisitor_visitCssSupportsRule__closure1, A._EvaluateVisitor__serialize_closure1, A._EvaluateVisitor__expressionNode_closure1, A.exceptionClass_closure, A.ExtensionStore__registerSelector_closure0, A.ExtensionStore_addExtension_closure2, A.ExtensionStore_addExtension_closure3, A.ExtensionStore_addExtension_closure4, A.ExtensionStore__extendExistingExtensions_closure1, A.ExtensionStore__extendExistingExtensions_closure2, A.ExtensionStore_addExtensions_closure0, A.JSToDartFileImporter_canonicalize_closure, A.functionClass_closure, A.NodeImporter_load_closure, A.NodeImporter__tryPath_closure, A.NodeImporter__callImporterAsync_closure, A.ImportCache_canonicalize_closure0, A.ImportCache__canonicalize_closure0, A.ImportCache_importCanonical_closure0, A._realCasePath_helper_closure0, A._readFile_closure0, A.fileExists_closure0, A.dirExists_closure0, A.listDir_closure0, A.JSToDartLogger_internalWarn_closure, A.JSToDartLogger_debug_closure, A.KeyframeSelectorParser_parse_closure0, A.render_closure, A._parseFunctions____closure, A._parseFunctions___closure3, A._parseFunctions___closure4, A._parseFunctions___closure1, A._parseFunctions___closure0, A._parseImporter____closure, A._parseImporter___closure0, A.listClass_closure, A.mapClass_closure, A.MediaQueryParser_parse_closure0, A.mixinClass_closure, A.legacyNullClass_closure, A.numberClass_closure, A.SassNumber__coerceOrConvertValue_compatibilityException0, A.SassNumber__coerceOrConvertValue_closure4, A.SassNumber__coerceOrConvertValue_closure6, A.SassNumber_multiplyUnits_closure4, A.SassNumber_multiplyUnits_closure6, A.Parser__parseIdentifier_closure0, A.Parser_spanFrom_closure0, A.PseudoSelector_specificity_closure0, A.SassParser_children_closure0, A.SelectorParser_parse_closure0, A.SelectorParser_parseCompoundSelector_closure0, A._SerializeVisitor_visitCssComment_closure0, A._SerializeVisitor_visitCssAtRule_closure0, A._SerializeVisitor_visitCssMediaRule_closure0, A._SerializeVisitor_visitCssImport_closure0, A._SerializeVisitor_visitCssImport__closure0, A._SerializeVisitor_visitCssKeyframeBlock_closure0, A._SerializeVisitor_visitCssStyleRule_closure0, A._SerializeVisitor_visitCssSupportsRule_closure0, A._SerializeVisitor_visitCssDeclaration_closure1, A._SerializeVisitor_visitCssDeclaration_closure2, A._SerializeVisitor__write_closure0, A._SerializeVisitor__visitChildren_closure1, A._SerializeVisitor__visitChildren_closure2, A.SingleUnitSassNumber_multiplyUnits_closure2, A.updateSourceSpanPrototype_closure, A.stringClass_closure, A.StylesheetParser_parse_closure0, A.StylesheetParser_parse__closure1, A.StylesheetParser_parseArgumentDeclaration_closure0, A.StylesheetParser__parseSingleProduction_closure0, A.StylesheetParser_parseSignature_closure, A.StylesheetParser__statement_closure0, A.StylesheetParser_variableDeclarationWithoutNamespace_closure1, A.StylesheetParser_variableDeclarationWithoutNamespace_closure2, A.StylesheetParser__forRule_closure1, A.StylesheetParser__memberList_closure0, A.StylesheetParser__expression_resetState0, A.StylesheetParser__expression_resolveOneOperation0, A.StylesheetParser__expression_resolveOperations0, A.StylesheetParser__expression_resolveSpaceExpressions0, A.StylesheetParser_expressionUntilComma_closure0, A.StylesheetParser_namespacedExpression_closure0, A.StylesheetParser__expressionUntilComparison_closure0, A.StylesheetParser__publicIdentifier_closure0, A.JSToDartImporter_canonicalize_closure, A.JSToDartImporter_load_closure, A.resolveImportPath_closure1, A.resolveImportPath_closure2, A._tryPathAsDirectory_closure0, A.valueClass_closure]);
- _inheritMany(A.EfficientLengthIterable, [A.ListIterable, A.EmptyIterable, A.LinkedHashMapKeyIterable, A._HashMapKeyIterable, A._MapBaseValueIterable]);
- _inheritMany(A.ListIterable, [A.SubListIterable, A.MappedListIterable, A.ReversedListIterable, A.ListQueue, A._JsonMapKeyIterable, A._GeneratorIterable]);
- _inherit(A.EfficientLengthMappedIterable, A.MappedIterable);
- _inherit(A.EfficientLengthTakeIterable, A.TakeIterable);
- _inherit(A.EfficientLengthSkipIterable, A.SkipIterable);
- _inherit(A.EfficientLengthFollowedByIterable, A.FollowedByIterable);
- _inheritMany(A._Record, [A._Record1, A._Record2, A._Record3, A._RecordN]);
- _inherit(A._Record_1, A._Record1);
- _inheritMany(A._Record2, [A._Record_2, A._Record_2_forImport, A._Record_2_imports_modules, A._Record_2_loadedUrls_stylesheet, A._Record_2_sourceMap]);
- _inheritMany(A._Record3, [A._Record_3, A._Record_3_forImport, A._Record_3_importer_isDependency, A._Record_3_originalUrl]);
- _inherit(A._Record_5_named_namedNodes_positional_positionalNodes_separator, A._RecordN);
- _inheritMany(A.MapView, [A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A.PathMap]);
- _inherit(A.UnmodifiableMapView, A._UnmodifiableMapView_MapView__UnmodifiableMapMixin);
- _inherit(A.ConstantMapView, A.UnmodifiableMapView);
- _inherit(A.ConstantStringMap, A.ConstantMap);
- _inheritMany(A.SetBase, [A.ConstantSet, A._SetBase, A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin, A._UnionSet_SetBase_UnmodifiableSetMixin]);
- _inheritMany(A.ConstantSet, [A.ConstantStringSet, A.GeneralConstantSet]);
- _inherit(A.Instantiation1, A.Instantiation);
- _inherit(A.NullError, A.TypeError);
- _inheritMany(A.TearOffClosure, [A.StaticClosure, A.BoundClosure]);
- _inheritMany(A.JsLinkedHashMap, [A.JsIdentityLinkedHashMap, A.JsConstantLinkedHashMap, A._LinkedCustomHashMap]);
- _inheritMany(A.NativeTypedData, [A.NativeByteData, A.NativeTypedArray]);
- _inheritMany(A.NativeTypedArray, [A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]);
- _inherit(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin);
- _inherit(A.NativeTypedArrayOfDouble, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin);
- _inherit(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin);
- _inherit(A.NativeTypedArrayOfInt, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin);
- _inheritMany(A.NativeTypedArrayOfDouble, [A.NativeFloat32List, A.NativeFloat64List]);
- _inheritMany(A.NativeTypedArrayOfInt, [A.NativeInt16List, A.NativeInt32List, A.NativeInt8List, A.NativeUint16List, A.NativeUint32List, A.NativeUint8ClampedList, A.NativeUint8List]);
- _inherit(A._TypeError, A._Error);
- _inheritMany(A._Completer, [A._AsyncCompleter, A._SyncCompleter]);
- _inheritMany(A._StreamController, [A._AsyncStreamController, A._SyncStreamController]);
- _inheritMany(A.Stream, [A._StreamImpl, A._ForwardingStream, A._CompleterStream]);
- _inherit(A._ControllerStream, A._StreamImpl);
- _inheritMany(A._BufferingStreamSubscription, [A._ControllerSubscription, A._ForwardingStreamSubscription]);
- _inherit(A._StreamControllerAddStreamState, A._AddStreamState);
- _inheritMany(A._DelayedEvent, [A._DelayedData, A._DelayedError]);
- _inherit(A._ExpandStream, A._ForwardingStream);
- _inheritMany(A._Zone, [A._CustomZone, A._RootZone]);
- _inherit(A._IdentityHashMap, A._HashMap);
- _inherit(A._LinkedHashSet, A._SetBase);
- _inherit(A._LinkedIdentityHashSet, A._LinkedHashSet);
- _inherit(A.UnmodifiableSetView, A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin);
- _inheritMany(A.Codec, [A.Encoding, A.Base64Codec, A.JsonCodec]);
- _inheritMany(A.Encoding, [A.AsciiCodec, A.Utf8Codec]);
- _inheritMany(A.Converter, [A._UnicodeSubsetEncoder, A.Base64Encoder, A.JsonEncoder, A.JsonDecoder, A.Utf8Encoder, A.Utf8Decoder]);
- _inherit(A.AsciiEncoder, A._UnicodeSubsetEncoder);
- _inheritMany(A.ByteConversionSink, [A._Base64EncoderSink, A._Utf8StringSinkAdapter]);
- _inherit(A._Utf8Base64EncoderSink, A._Base64EncoderSink);
- _inherit(A.JsonCyclicError, A.JsonUnsupportedObjectError);
- _inherit(A._JsonStringStringifier, A._JsonStringifier);
- _inherit(A._StringSinkConversionSink, A.StringConversionSink);
- _inherit(A._StringCallbackSink, A._StringSinkConversionSink);
- _inheritMany(A.ArgumentError, [A.RangeError, A.IndexError]);
- _inherit(A._DataUri, A._Uri);
- _inherit(A.ArgParserException, A.FormatException);
- _inherit(A.EmptyUnmodifiableSet, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin);
- _inherit(A.QueueList, A._QueueList_Object_ListMixin);
- _inherit(A._CastQueueList, A.QueueList);
- _inherit(A.UnionSet, A._UnionSet_SetBase_UnmodifiableSetMixin);
- _inheritMany(A._DelegatingIterableBase, [A.DelegatingSet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]);
- _inherit(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.DelegatingSet);
- _inherit(A.UnmodifiableSetView0, A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin);
- _inherit(A.MapKeySet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin);
- _inheritMany(A.NodeJsError, [A.JsAssertionError, A.JsRangeError, A.JsReferenceError, A.JsSyntaxError, A.JsTypeError, A.JsSystemError]);
- _inheritMany(A.Socket, [A.TTYReadStream, A.TTYWriteStream]);
- _inherit(A.InternalStyle, A.Style);
- _inheritMany(A.InternalStyle, [A.PosixStyle, A.UrlStyle, A.WindowsStyle]);
- _inheritMany(A._Enum, [A._SingletonCssMediaQueryMergeResult, A.BinaryOperator, A.UnaryOperator, A.AttributeOperator, A.Combinator, A.Deprecation, A.ExtendMode, A.Syntax, A.CalculationOperator, A.ListSeparator, A.OutputStyle, A.LineFeed, A.AttributeOperator0, A.BinaryOperator0, A.CalculationOperator0, A.Combinator0, A.Deprecation0, A.ListSeparator0, A._SingletonCssMediaQueryMergeResult0, A.ExtendMode0, A.OutputStyle0, A.LineFeed0, A.Syntax0, A.UnaryOperator0]);
- _inheritMany(A.CssNode, [A.ModifiableCssNode, A.CssParentNode]);
- _inheritMany(A.ModifiableCssNode, [A.ModifiableCssParentNode, A.ModifiableCssComment, A.ModifiableCssDeclaration, A.ModifiableCssImport]);
- _inheritMany(A.ModifiableCssParentNode, [A.ModifiableCssAtRule, A.ModifiableCssKeyframeBlock, A.ModifiableCssMediaRule, A.ModifiableCssStyleRule, A.ModifiableCssStylesheet, A.ModifiableCssSupportsRule]);
- _inherit(A._IsInvisibleVisitor, A.__IsInvisibleVisitor_Object_EveryCssVisitor);
- _inherit(A.CssStylesheet, A.CssParentNode);
- _inheritMany(A.ParentStatement, [A.AtRootRule, A.AtRule, A.CallableDeclaration, A.Declaration, A.EachRule, A.ForRule, A.MediaRule, A.StyleRule, A.Stylesheet, A.SupportsRule, A.WhileRule]);
- _inheritMany(A.CallableDeclaration, [A.ContentBlock, A.FunctionRule, A.MixinRule]);
- _inheritMany(A.IfRuleClause, [A.IfClause, A.ElseClause]);
- _inherit(A._HasContentVisitor, A.__HasContentVisitor_Object_StatementSearchVisitor);
- _inherit(A._IsInvisibleVisitor0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor);
- _inherit(A._IsBogusVisitor, A.__IsBogusVisitor_Object_AnySelectorVisitor);
- _inherit(A._IsUselessVisitor, A.__IsUselessVisitor_Object_AnySelectorVisitor);
- _inheritMany(A.Selector, [A.SimpleSelector, A.ComplexSelector, A.CompoundSelector, A.SelectorList]);
- _inheritMany(A.SimpleSelector, [A.AttributeSelector, A.ClassSelector, A.IDSelector, A.ParentSelector, A.PlaceholderSelector, A.PseudoSelector, A.TypeSelector, A.UniversalSelector]);
- _inherit(A._ParentSelectorVisitor, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor);
- _inherit(A.ExplicitConfiguration, A.Configuration);
- _inheritMany(A.SourceSpanException, [A.SassException, A.SourceSpanFormatException, A.MultiSourceSpanException, A.SassException0]);
- _inheritMany(A.SassException, [A.MultiSpanSassException, A.SassRuntimeException, A.SassFormatException]);
- _inheritMany(A.MultiSpanSassException, [A.MultiSpanSassRuntimeException, A.MultiSpanSassFormatException]);
- _inherit(A.MultiSpanSassScriptException, A.SassScriptException);
- _inherit(A.MergedExtension, A.Extension);
- _inherit(A.Importer, A.AsyncImporter);
- _inheritMany(A.Importer, [A.FilesystemImporter, A.NoOpImporter, A.NodePackageImporter]);
- _inherit(A.DeprecationProcessingLogger, A.LoggerWithDeprecationType0);
- _inheritMany(A.Parser, [A.AtRootQueryParser, A.StylesheetParser, A.KeyframeSelectorParser, A.MediaQueryParser, A.SelectorParser]);
- _inheritMany(A.StylesheetParser, [A.ScssParser, A.SassParser]);
- _inherit(A.CssParser, A.ScssParser);
- _inheritMany(A.UnmodifiableMapBase, [A.LimitedMapView, A.PrefixedMapView, A.PublicMemberMapView, A.UnprefixedMapView, A.LimitedMapView0, A.PrefixedMapView0, A.PublicMemberMapView0, A.UnprefixedMapView0]);
- _inheritMany(A.Value, [A.SassList, A.SassBoolean, A.SassCalculation, A.SassColor, A.SassFunction, A.SassMap, A.SassMixin, A._SassNull, A.SassNumber, A.SassString]);
- _inherit(A.SassArgumentList, A.SassList);
- _inheritMany(A.SassNumber, [A.ComplexSassNumber, A.SingleUnitSassNumber, A.UnitlessSassNumber]);
- _inherit(A._MakeExpressionCalculationSafe, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor);
- _inherit(A._FindDependenciesVisitor, A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor);
- _inherit(A.SingleMapping, A.Mapping);
- _inherit(A.FileLocation, A.SourceLocationMixin);
- _inheritMany(A.SourceSpanMixin, [A._FileSpan, A.SourceSpanBase]);
- _inherit(A.MultiSourceSpanFormatException, A.MultiSourceSpanException);
- _inherit(A.SourceSpanWithContext, A.SourceSpanBase);
- _inherit(A.StringScannerException, A.SourceSpanFormatException);
- _inheritMany(A.StringScanner, [A.LineScanner, A.SpanScanner]);
- _inheritMany(A.Value0, [A.SassList0, A.SassBoolean0, A.SassCalculation0, A.SassColor0, A.SassNumber0, A.SassFunction0, A.SassMap0, A.SassMixin0, A._SassNull0, A.SassString0]);
- _inherit(A.SassArgumentList0, A.SassList0);
- _inheritMany(A.AsyncImporter0, [A.JSToDartAsyncImporter, A.JSToDartAsyncFileImporter, A.Importer0]);
- _inheritMany(A.Parser1, [A.AtRootQueryParser0, A.StylesheetParser0, A.KeyframeSelectorParser0, A.MediaQueryParser0, A.SelectorParser0]);
- _inheritMany(A.ParentStatement0, [A.AtRootRule0, A.AtRule0, A.CallableDeclaration0, A.Declaration0, A.EachRule0, A.ForRule0, A.MediaRule0, A.StyleRule0, A.Stylesheet0, A.SupportsRule0, A.WhileRule0]);
- _inheritMany(A.CssNode0, [A.ModifiableCssNode0, A.CssParentNode0]);
- _inheritMany(A.ModifiableCssNode0, [A.ModifiableCssParentNode0, A.ModifiableCssComment0, A.ModifiableCssDeclaration0, A.ModifiableCssImport0]);
- _inheritMany(A.ModifiableCssParentNode0, [A.ModifiableCssAtRule0, A.ModifiableCssKeyframeBlock0, A.ModifiableCssMediaRule0, A.ModifiableCssStyleRule0, A.ModifiableCssStylesheet0, A.ModifiableCssSupportsRule0]);
- _inheritMany(A.Selector0, [A.SimpleSelector0, A.ComplexSelector0, A.CompoundSelector0, A.SelectorList0]);
- _inheritMany(A.SimpleSelector0, [A.AttributeSelector0, A.ClassSelector0, A.IDSelector0, A.ParentSelector0, A.PlaceholderSelector0, A.PseudoSelector0, A.TypeSelector0, A.UniversalSelector0]);
- _inherit(A.CompileStringOptions, A.CompileOptions);
- _inherit(A.AsyncCompiler, A.Compiler);
- _inheritMany(A.SassNumber0, [A.ComplexSassNumber0, A.SingleUnitSassNumber0, A.UnitlessSassNumber0]);
- _inherit(A.ExplicitConfiguration0, A.Configuration0);
- _inheritMany(A.CallableDeclaration0, [A.ContentBlock0, A.FunctionRule0, A.MixinRule0]);
- _inheritMany(A.StylesheetParser0, [A.ScssParser0, A.SassParser0]);
- _inherit(A.CssParser0, A.ScssParser0);
- _inheritMany(A.LoggerWithDeprecationType, [A.DeprecationProcessingLogger0, A.JSToDartLogger]);
- _inherit(A._NodeException, A.JsError);
- _inheritMany(A.SassException0, [A.MultiSpanSassException0, A.SassRuntimeException0, A.SassFormatException0]);
- _inheritMany(A.MultiSpanSassException0, [A.MultiSpanSassRuntimeException0, A.MultiSpanSassFormatException0]);
- _inherit(A.MultiSpanSassScriptException0, A.SassScriptException0);
- _inherit(A._MakeExpressionCalculationSafe0, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0);
- _inheritMany(A.Importer0, [A.JSToDartFileImporter, A.FilesystemImporter0, A.NoOpImporter0, A.NodePackageImporter0, A.JSToDartImporter]);
- _inheritMany(A.IfRuleClause0, [A.IfClause0, A.ElseClause0]);
- _inherit(A._ParentSelectorVisitor0, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0);
- _inherit(A.MergedExtension0, A.Extension0);
- _inherit(A._HasContentVisitor0, A.__HasContentVisitor_Object_StatementSearchVisitor0);
- _inherit(A._IsInvisibleVisitor1, A.__IsInvisibleVisitor_Object_EveryCssVisitor0);
- _inherit(A._IsInvisibleVisitor2, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0);
- _inherit(A._IsBogusVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0);
- _inherit(A._IsUselessVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0);
- _inherit(A.CssStylesheet0, A.CssParentNode0);
- _mixin(A.UnmodifiableListBase, A.UnmodifiableListMixin);
- _mixin(A.__CastListBase__CastIterableBase_ListMixin, A.ListBase);
- _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A.ListBase);
- _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin);
- _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, A.ListBase);
- _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin);
- _mixin(A._AsyncStreamController, A._AsyncStreamControllerDispatch);
- _mixin(A._SyncStreamController, A._SyncStreamControllerDispatch);
- _mixin(A.UnmodifiableMapBase, A._UnmodifiableMapMixin);
- _mixin(A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A._UnmodifiableMapMixin);
- _mixin(A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin, A._UnmodifiableSetMixin);
- _mixin(A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
- _mixin(A._QueueList_Object_ListMixin, A.ListBase);
- _mixin(A._UnionSet_SetBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
- _mixin(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
- _mixin(A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
- _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor, A.EveryCssVisitor);
- _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor, A.StatementSearchVisitor);
- _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
- _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
- _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
- _mixin(A.__ParentSelectorVisitor_Object_SelectorSearchVisitor, A.SelectorSearchVisitor);
- _mixin(A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor, A.ReplaceExpressionVisitor);
- _mixin(A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor, A.RecursiveStatementVisitor);
- _mixin(A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0, A.ReplaceExpressionVisitor0);
- _mixin(A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0, A.SelectorSearchVisitor0);
- _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor0, A.StatementSearchVisitor0);
- _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.EveryCssVisitor0);
- _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
- _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
- _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
- })();
- var init = {
- typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []},
- mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List", Object: "Object", Map: "Map"},
- mangledNames: {},
- types: ["~()", "Null()", "Future<Null>()", "Value0(List<Value0>)", "bool(String)", "String(String)", "Value(List<Value>)", "bool(CssNode)", "bool(CssNode0)", "bool(Object?)", "int()", "SassNumber(List<Value>)", "SassNumber0(List<Value0>)", "bool(SimpleSelector)", "bool(SimpleSelector0)", "JSClass0()", "bool(ComplexSelector)", "SassString(List<Value>)", "bool(ComplexSelector0)", "SassString0(List<Value0>)", "SassBoolean(List<Value>)", "SassBoolean0(List<Value0>)", "bool()", "SassList0(List<Value0>)", "SassList(List<Value>)", "Future<~>()", "String()", "FileSpan()", "SassColor0(List<Value0>)", "SassColor(List<Value>)", "bool(int?)", "~(Object?)", "Null(~())", "SassMap(List<Value>)", "Value()", "Object?()", "SassMap0(List<Value0>)", "double(double)", "Future<Null>(Future<~>())", "Value(Value)", "Value?()", "Value0?()", "Value0(Value0)", "Uri(Uri)", "String?()", "bool(int)", "bool(num,num)", "Value0()", "SassNumber0(SassNumber0)", "bool(ComplexSelectorComponent)", "bool(ComplexSelectorComponent0)", "SassNumber(SassNumber)", "Null(Object,StackTrace)", "bool(Value0)", "~(Value)", "ComplexSelector0(ComplexSelector0)", "double(double,double)", "double(SassColor0)", "ValueExpression(Value)", "ComplexSelector(ComplexSelector)", "@()", "Null(@)", "~(Value0)", "ValueExpression0(Value0)", "Future<Value0>()", "bool(SelectorList0)", "Future<Value?>()", "Object(Object)", "Future<Value>()", "Frame()", "bool(SelectorList)", "~(@)", "bool(Value)", "~(Object,StackTrace)", "Future<Value0?>()", "bool(Object)", "~(Value0,Value0)", "~(Module0<Callable0>,bool)", "Value?(Statement)", "Object()", "~(Module1<Callable>,bool)", "Stylesheet?()", "@(@)", "double(Value)", "Future<Value?>(Statement)", "Callable?()", "AsyncCallable?()", "int(Uri)", "Future<Value0>(List<Value0>)", "List<CssMediaQuery>?(List<CssMediaQuery>)", "~(Value,Value)", "SassRuntimeException(AstNode)", "AsyncCallable0?()", "Null([Object?])", "SassRuntimeException0(AstNode0)", "double(Value0)", "~([int?])", "Future<Value0?>(Statement0)", "~(String,Value)", "~(Object)", "List<CssMediaQuery0>?(List<CssMediaQuery0>)", "Value0?(Statement0)", "Callable0?()", "~(String,Value0)", "~(String)", "Frame(String)", "Null(_NodeSassColor,num)", "String(Expression0)", "String(@)", "Null(Module1<AsyncCallable0>,bool)", "SassCalculation0(Object)", "String(Expression)", "bool(Module1<AsyncCallable0>)", "bool(Expression)", "~(String,@)", "Map<ComplexSelector,Extension>()", "int(SassColor0)", "bool(Module0<Callable0>)", "int(_NodeSassColor)", "Null(Module0<AsyncCallable>,bool)", "~(String,Object?)", "bool(Module1<Callable>)", "+originalUrl(Importer,Uri,Uri)?()", "bool(Module0<AsyncCallable>)", "List<String>()", "Map<ComplexSelector0,Extension0>()", "String(String{color:Object?})", "Statement()", "bool(@)", "~(String,Function)", "Statement0()", "~(~())", "bool(Expression0)", "bool(_Highlight)", "String(Object)", "SassFunction0(List<Value0>)", "String(Value0)", "SelectorList(Value)", "SelectorList(SelectorList,SelectorList)", "bool(String?)", "Uri?()", "Uri(String)", "int(String,String)", "String?(String?)", "String?(Object)", "Iterable<String>()", "Iterable<String>(String)", "Iterable<String>(@)", "DateTime()", "~(String[~])", "int(int)", "0&(String,FileSpan[StackTrace?])", "bool(Statement)", "VariableDeclaration()", "AtRootRule(List<Statement>,FileSpan)", "AtRule(List<Statement>,FileSpan)", "bool(Import)", "String(String{color:@})", "Entry(Entry)", "int(double)", "double(double,String)", "Set<0^>()<Object?>", "AstNode(AstNode)", "SassFunction(List<Value>)", "SassMixin(List<Value>)", "Future<~>(List<Value>)", "~([Object?])", "List<ExtensionStore>()", "~(@,@)", "bool(ModifiableCssParentNode)", "~(Object?,Object?)", "@(String)", "Future<SassNumber>()", "List<CssComment>()", "bool(UseRule)", "bool(ForwardRule)", "Future<String>()", "int(ComplexSelector)", "AsyncCallable?(Module0<AsyncCallable>)", "Future<Object>()", "MapKeySet<Module0<AsyncCallable>>(Map<Module0<AsyncCallable>,AstNode>)", "InterpolationMap(List<SourceLocation>)", "AstNode?()", "String(SassNumber)", "~(List<Value>)", "Map<String,AsyncCallable>(Module0<AsyncCallable>)", "SassNumber()", "bool(Object?,Object?)", "int(@,@)", "double?(String,num{assertPercent:bool,checkPercent:bool,checkUnitless:bool})", "Value0?(Value0)", "String(int)", "~(List<Value0>)", "Map<String,Callable>(Module1<Callable>)", "MapKeySet<Module1<Callable>>(Map<Module1<Callable>,AstNode0>)", "AtRule0(List<Statement0>,FileSpan)", "Callable?(Module1<Callable>)", "~(Iterable<ExtensionStore0>)", "Version(String)", "Set<0&>(Object)", "AsyncImporter0(Object?)", "Future<NodeCompileResult>()", "SelectorList0(SelectorList0,SelectorList0)", "SelectorList0(Value0)", "Expression0(Expression0)", "int(ComplexSelector0)", "bool(Queue<List<ComplexSelectorComponent>>)", "Object(CalculationOperation0)", "double(SassNumber0,SassNumber0[String?,String?])", "0&(@[@])", "AtRootRule0(List<Statement0>,FileSpan)", "int(Object?)", "SassNumber0()", "0&(Object[Object?])", "Future<~>?()", "int(SourceLocation)", "String(SassNumber0)", "AstNode0?()", "double(SassNumber0,Object,Object[String?])", "InterpolationMap0(List<SourceLocation>)", "List<Extension>()", "~(Uint8List,String,int)", "SassNumber0(SassNumber0,SassNumber0[String?,String?])", "String(FileSpan)", "SassNumber0(SassNumber0,Object,Object[String?])", "bool(SassNumber0,String)", "~(Iterable<ExtensionStore>)", "bool(ForwardRule0)", "bool(UseRule0)", "List<CssComment0>()", "ImmutableList0(SassNumber0)", "FileLocation(FileSpan)", "Future<SassNumber0>()", "bool(SassNumber0)", "Map<String,Callable0>(Module0<Callable0>)", "Null(_NodeSassMap,int,Object)", "Object(_NodeSassMap,int)", "bool(ModifiableCssParentNode0)", "Expression(Expression)", "Value0(int)", "@(Value0,num)", "Future<~>(List<Value0>)", "SassMixin0(List<Value0>)", "MapKeySet<Module0<Callable0>>(Map<Module0<Callable0>,AstNode>)", "~(Object[StackTrace?])", "bool(Import0)", "Callable0?(Module0<Callable0>)", "bool(Statement0)", "AstNode0(AstNode0)", "int(int,double?)", "bool(Queue<List<ComplexSelectorComponent0>>)", "double(double,double?,num)", "Map<String,AsyncCallable0>(Module1<AsyncCallable0>)", "MapKeySet<Module1<AsyncCallable0>>(Map<Module1<AsyncCallable0>,AstNode0>)", "Trace(String)", "List<Extension0>()", "AsyncCallable0?(Module1<AsyncCallable0>)", "Future<Value>(List<Value>)", "bool(Frame)", "Trace()", "String(Frame)", "int(Frame)", "String(_NodeException)", "Uri?/()", "List<ExtensionStore0>()", "Value(Expression)", "Future<+originalUrl(AsyncImporter,Uri,Uri)?>()", "~(ContentBlock)", "~(List<Statement>)", "UserDefinedCallable<Environment>(ContentBlock)", "Value?(IfRuleClause)", "~(CssMediaQuery)", "~(SelectorList)", "~(MapEntry<Value,Value>)", "SourceFile()", "SourceFile?(int)", "String?(SourceFile?)", "int(_Line)", "Future<Stylesheet?>()", "Object(_Line)", "Object(_Highlight)", "int(_Highlight,_Highlight)", "List<_Line>(MapEntry<Object,List<_Highlight>>)", "SourceSpanWithContext()", "List<Frame>(Trace)", "int(Trace)", "CssValue<String>(Interpolation)", "String(Trace)", "~(String,int)", "bool(+originalUrl(AsyncImporter,Uri,Uri))", "Frame(String,String)", "Value?(Value)", "~(Module0<Callable0>)", "Frame(Frame)", "Uri(+originalUrl(AsyncImporter,Uri,Uri))", "~(String,int?)", "int(int,int)", "String(Argument0)", "Module0<Callable0>()", "SassArgumentList0(Object,Object,Object[String?])", "ImmutableMap0(SassArgumentList0)", "SassMap(Value)", "bool(Deprecation)", "Value0?(Module1<AsyncCallable0>)", "Module1<AsyncCallable0>?(Module1<AsyncCallable0>)", "+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)()", "Map<String,AstNode>(Module0<AsyncCallable>)", "Map<String,Value0>(Module1<AsyncCallable0>)", "Map<String,AstNode0>(Module1<AsyncCallable0>)", "CssValue<String>(Interpolation{trim:bool,warnForColor:bool})", "Value?(Module0<Callable0>)", "Future<CssValue0<String>>(Interpolation0{trim:bool,warnForColor:bool})", "Map<String,Value>(Module0<AsyncCallable>)", "Module0<Callable0>?(Module0<Callable0>)", "Value/()", "Future<CssValue<String>>(Interpolation{trim:bool,warnForColor:bool})", "Future<Value>(Expression)", "Module0<AsyncCallable>?(Module0<AsyncCallable>)", "Value?(Module0<AsyncCallable>)", "Map<String,Value>(Module0<Callable0>)", "~(Module1<AsyncCallable0>,bool)", "Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)>()", "Future<Module1<AsyncCallable0>>()", "Map<String,AstNode>(Module0<Callable0>)", "~(Module1<AsyncCallable0>)", "~(Symbol0,@)", "UserDefinedCallable<AsyncEnvironment>(ContentBlock)", "Future<Value?>(IfRuleClause)", "Uint8List(@,@)", "Future<Value0?>(Value0)", "ArgParser()", "Future<CssValue0<String>>(Interpolation0)", "Set<Deprecation>()", "SimpleSelector(SimpleSelector)", "Future<~>(String)", "Future<CssValue<String>>(Interpolation)", "Future<Value0?>(IfRuleClause0)", "Iterable<ComplexSelector>(ComplexSelector)", "Future<Value?>(Value)", "UserDefinedCallable0<AsyncEnvironment0>(ContentBlock0)", "List<WatchEvent>(List<WatchEvent>)", "SassList(ComplexSelector)", "bool(Extension)", "Set<ModifiableBox<SelectorList>>()", "~(Module0<AsyncCallable>)", "Future<Value0>(Expression0)", "int(int,SimpleSelector)", "Value0/()", "Iterable<ComplexSelector>(List<ComplexSelector>)", "List<SimpleSelector>(Extender)", "List<Extender>?(SimpleSelector)", "Future<Module0<AsyncCallable>>()", "~(Module0<AsyncCallable>,bool)", "String(CssValue<Combinator>)", "Future<+originalUrl(AsyncImporter0,Uri,Uri)?>()", "Future<Stylesheet0?>()", "bool(+originalUrl(AsyncImporter0,Uri,Uri))", "Uri(+originalUrl(AsyncImporter0,Uri,Uri))", "AtRootQuery0()", "int(int,ComplexSelectorComponent)", "SingleUnitSassNumber(double)", "List<Extender>(PseudoSelector)", "List<List<Extender>>(List<Extender>)", "SassCalculation0(Object[Object?,Object?])", "SassCalculation0(SassCalculation0[String?])", "ImmutableList(SassCalculation0)", "Object(Object,String,Object,Object)", "bool(CalculationOperator0)", "bool(CalculationOperation0,Object)", "int(CalculationOperation0)", "String(CalculationOperation0)", "~(int,@)", "CalculationInterpolation(Object,String)", "bool(CalculationInterpolation,Object)", "int(CalculationInterpolation)", "String(CalculationInterpolation)", "bool(CanonicalizeContext0)", "JSUrl0?(CanonicalizeContext0)", "List<ComplexSelector>(ComplexSelector)", "PseudoSelector(ComplexSelector)", "~(SimpleSelector,Set<ModifiableBox<SelectorList>>)", "List<ComplexSelectorComponent>?(List<ComplexSelectorComponent>,List<ComplexSelectorComponent>)", "SassScriptException()", "Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)>()", "0&(List<Value0>)", "SassColor0(Object,_Channels)", "SassColor0(SassColor0,_Channels)", "bool(List<Iterable<ComplexSelectorComponent>>)", "bool(PseudoSelector)", "Null(_NodeSassColor,num?[num?,num?,num?,SassColor0?])", "SelectorList?(PseudoSelector)", "double(_NodeSassColor)", "Object?(Object?)", "DateTime(StylesheetNode)", "StringExpression(Interpolation)", "AsyncImporter0(JSImporter)", "0&(@)", "@(@,String)", "Iterable<Deprecation0>()", "NodePackageImporter0(Object[String?])", "~(BinaryOperator)", "NodeCompileResult(Compiler,String[CompileOptions?])", "NodeCompileResult(Compiler,String[CompileStringOptions?])", "Null(Compiler)", "Promise(AsyncCompiler,String[CompileOptions?])", "Promise(AsyncCompiler,String[CompileStringOptions?])", "Promise(AsyncCompiler)", "Future<AsyncCompiler>()", "int(int,ComplexSelectorComponent0)", "String(CssValue0<Combinator0>)", "int(int,SimpleSelector0)", "String(BuiltInCallable0)", "bool(Deprecation0)", "Version(Object,int,int,int)", "~(Expression)", "WhileRule(List<Statement>,FileSpan)", "Value0?(Module1<Callable>)", "Module1<Callable>?(Module1<Callable>)", "SupportsRule(List<Statement>,FileSpan)", "MixinRule(List<Statement>,FileSpan)", "Object(Value0)", "Map<String,AstNode0>(Module1<Callable>)", "MediaRule(List<Statement>,FileSpan)", "~(String,Option)", "CssValue0<String>(Interpolation0{trim:bool,warnForColor:bool})", "_Future<@>(@)", "ContentBlock(List<Statement>,FileSpan)", "ForRule(List<Statement>,FileSpan)", "+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)()", "Module1<Callable>()", "~(Module1<Callable>)", "FunctionRule(List<Statement>,FileSpan)", "EachRule(List<Statement>,FileSpan)", "CssValue0<String>(Interpolation0)", "Declaration(List<Statement>,FileSpan)", "Value0?(IfRuleClause0)", "UserDefinedCallable0<Environment0>(ContentBlock0)", "Value0(Expression0)", "StyleRule(List<Statement>,FileSpan)", "FileSpan(_NodeException)", "bool(Extension0)", "Set<ModifiableBox0<SelectorList0>>()", "Null(@,@)", "UseRule()", "Iterable<ComplexSelector0>(List<ComplexSelector0>)", "ArgumentDeclaration()", "List<SimpleSelector0>(Extender0)", "List<Extender0>?(SimpleSelector0)", "List<Extender0>(PseudoSelector0)", "List<List<Extender0>>(List<Extender0>)", "List<ComplexSelector0>(ComplexSelector0)", "PseudoSelector0(ComplexSelector0)", "~(SimpleSelector0,Set<ModifiableBox0<SelectorList0>>)", "SassFunction0(Object,String,Value0(List<Value0>))", "List<ComplexSelectorComponent0>?(List<ComplexSelectorComponent0>,List<ComplexSelectorComponent0>)", "VariableDeclaration(VariableDeclaration)", "bool(List<Iterable<ComplexSelectorComponent0>>)", "Statement?()", "bool(PseudoSelector0)", "SelectorList0?(PseudoSelector0)", "String(int,IfClause0)", "Stylesheet()", "Expression({bracketList:bool,singleEquals:bool,until:bool()?})", "~(Object?,Object,Object?)", "+(String,String)(String)", "Future<~>(List<String>)", "Stylesheet0?()", "bool(+originalUrl(Importer0,Uri,Uri))", "Uri(+originalUrl(Importer0,Uri,Uri))", "~(String,WarnOptions)", "~(String,DebugOptions)", "Null(RenderResult)", "JSFunction0(JSFunction0)", "Object?(Object,String,String[Object?])", "Null(Object)", "String(Value)", "List<Value0>(Value0)", "bool(List<Value0>)", "SassList0(ComplexSelector0)", "Iterable<ComplexSelector0>(ComplexSelector0)", "SimpleSelector0(SimpleSelector0)", "SassList0(Object[Object?,_ConstructorOptions?])", "Statement({root:bool})", "Null(_NodeSassList,int?[bool?,SassList0?])", "CompoundSelector()", "Object(_NodeSassList,int)", "Null(_NodeSassList,int,Object)", "bool(_NodeSassList)", "Null(_NodeSassList,bool)", "int(_NodeSassList)", "SassMap0(Value0)", "SassMap0(SassMap0)", "SassMap0(Object[ImmutableMap0?])", "ImmutableMap0(SassMap0)", "@(SassMap0,Object)", "Null(_NodeSassMap,int?[SassMap0?])", "SassNumber0(int)", "SelectorList()", "int(_NodeSassMap)", "String(int,IfClause)", "SassNumber0(Value0)", "List<CssMediaQuery0>()", "Value0(Object)", "0&(Object)", "bool(ModifiableCssNode0)", "SassNumber0(Object,num[Object?])", "double(SassNumber0)", "~(@,StackTrace)", "int?(SassNumber0)", "List<CssMediaQuery>()", "int(SassNumber0[String?])", "double(SassNumber0,num,num[String?])", "SassNumber0(SassNumber0[String?])", "SassNumber0(SassNumber0,String[String?])", "String(BuiltInCallable)", "AtRootQuery()", "~([Future<~>?])", "Future<@>()", "String(Argument)", "Null(_NodeSassNumber,num?[String?,SassNumber0?])", "double(_NodeSassNumber)", "Null(_NodeSassNumber,num)", "String(_NodeSassNumber)", "Null(_NodeSassNumber,String)", "SassScriptException0()", "bool(ModifiableCssNode)", "String(Object,@,@[@])", "0&(List<Value>)", "bool(Version)", "Object(String)", "int(String?)", "SassString0(SimpleSelector0)", "SelectorList0()", "CompoundSelector0()", "~(CssMediaQuery0)", "~(SelectorList0)", "~(MapEntry<Value0,Value0>)", "SingleUnitSassNumber0(double)", "bool(+forImport(Importer,Uri,bool),+originalUrl(Importer,Uri,Uri)?)", "JSUrl0?(FileSpan)", "Uri(+originalUrl(Importer,Uri,Uri))", "bool(+originalUrl(Importer,Uri,Uri))", "SassString0(int)", "SassString0(String)", "SassString0(Object[Object?,_ConstructorOptions1?])", "String(SassString0)", "bool(SassString0)", "int(SassString0)", "int(SassString0,Value0[String?])", "Null(_NodeSassString,String?[SassString0?])", "String(_NodeSassString)", "Null(_NodeSassString,String)", "Statement0({root:bool})", "bool(String?,String?)", "Stylesheet0()", "Statement0?()", "VariableDeclaration0(VariableDeclaration0)", "ArgumentDeclaration0()", "+(String,ArgumentDeclaration0)()", "VariableDeclaration0()", "StyleRule0(List<Statement0>,FileSpan)", "Declaration0(List<Statement0>,FileSpan)", "SassString(String)", "EachRule0(List<Statement0>,FileSpan)", "FunctionRule0(List<Statement0>,FileSpan)", "ForRule0(List<Statement0>,FileSpan)", "ContentBlock0(List<Statement0>,FileSpan)", "MediaRule0(List<Statement0>,FileSpan)", "MixinRule0(List<Statement0>,FileSpan)", "SassString(int)", "SupportsRule0(List<Statement0>,FileSpan)", "WhileRule0(List<Statement0>,FileSpan)", "~(Expression0)", "~(BinaryOperator0)", "StringExpression0(Interpolation0)", "Null(~(Object?),~(Object?))", "ImmutableList0(Value0)", "String?(Value0)", "int(Value0,Value0[String?])", "SassBoolean0(Value0[String?])", "SassCalculation0(Value0[String?])", "SassColor0(Value0[String?])", "SassFunction0(Value0[String?])", "SassMap0(Value0[String?])", "SassMixin0(Value0[String?])", "SassNumber0(Value0[String?])", "SassString0(Value0[String?])", "SassMap0?(Value0)", "bool(Value0,Object?)", "int(Value0[Object?])", "SassString(SimpleSelector)", "List<Value>(Value)", "~(Zone?,ZoneDelegate?,Zone,Object,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)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map<Object?,Object?>?)", "Value(Object)", "SassNumber(Value)", "0^(0^,0^)<num>", "bool(List<Value>)", "String(String?)", "~(Object,StackTrace,EventSink<0^>)<Object?>", "List<0^>(0^,List<0^>?)<Object?>", "NodeCompileResult(String[CompileOptions?])", "NodeCompileResult(String[CompileStringOptions?])", "Promise(String[CompileOptions?])", "Promise(String[CompileStringOptions?])", "Importer0(Object?)", "Compiler()", "Promise()", "List<Object?>(Object?)", "~(RenderOptions,~(Object?,RenderResult?))", "RenderResult(RenderOptions)", "Uri(JSUrl0)", "JSUrl0(Uri)", "String(String[String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?])", "String(Object?)", "Null(@,StackTrace)", "SassMap(SassMap)", "int(num)", "Null(Function,Function)", "+originalUrl(Importer0,Uri,Uri)?()", "Map<String,Value0>(Module1<Callable>)"],
- interceptorsByTag: null,
- leafTags: null,
- arrayRti: Symbol("$ti"),
- rttc: {
- "1;": t1 => o => o instanceof A._Record_1 && t1._is(o._0),
- "2;": (t1, t2) => o => o instanceof A._Record_2 && t1._is(o._0) && t2._is(o._1),
- "2;forImport": (t1, t2) => o => o instanceof A._Record_2_forImport && t1._is(o._0) && t2._is(o._1),
- "2;sourceMap": (t1, t2) => o => o instanceof A._Record_2_sourceMap && t1._is(o._0) && t2._is(o._1),
- "2;imports,modules": (t1, t2) => o => o instanceof A._Record_2_imports_modules && t1._is(o._0) && t2._is(o._1),
- "2;loadedUrls,stylesheet": (t1, t2) => o => o instanceof A._Record_2_loadedUrls_stylesheet && t1._is(o._0) && t2._is(o._1),
- "3;": (t1, t2, t3) => o => o instanceof A._Record_3 && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
- "3;forImport": (t1, t2, t3) => o => o instanceof A._Record_3_forImport && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
- "3;originalUrl": (t1, t2, t3) => o => o instanceof A._Record_3_originalUrl && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
- "3;importer,isDependency": (t1, t2, t3) => o => o instanceof A._Record_3_importer_isDependency && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
- "5;named,namedNodes,positional,positionalNodes,separator": types => o => o instanceof A._Record_5_named_namedNodes_positional_positionalNodes_separator && A.pairwiseIsTest(types, o._values)
- }
- };
- A._Universe_addRules(init.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","Stdin":"LegacyJavaScriptObject","Stdout":"LegacyJavaScriptObject","ReadlineModule":"LegacyJavaScriptObject","ReadlineOptions":"LegacyJavaScriptObject","ReadlineInterface":"LegacyJavaScriptObject","BufferModule":"LegacyJavaScriptObject","BufferConstants":"LegacyJavaScriptObject","Buffer":"LegacyJavaScriptObject","ConsoleModule":"LegacyJavaScriptObject","Console":"LegacyJavaScriptObject","EventEmitter":"LegacyJavaScriptObject","FS":"LegacyJavaScriptObject","FSConstants":"LegacyJavaScriptObject","FSWatcher":"LegacyJavaScriptObject","ReadStream":"LegacyJavaScriptObject","ReadStreamOptions":"LegacyJavaScriptObject","WriteStream":"LegacyJavaScriptObject","WriteStreamOptions":"LegacyJavaScriptObject","FileOptions":"LegacyJavaScriptObject","StatOptions":"LegacyJavaScriptObject","MkdirOptions":"LegacyJavaScriptObject","RmdirOptions":"LegacyJavaScriptObject","WatchOptions":"LegacyJavaScriptObject","WatchFileOptions":"LegacyJavaScriptObject","Stats":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","Date":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","Atomics":"LegacyJavaScriptObject","Modules":"LegacyJavaScriptObject","Module":"LegacyJavaScriptObject","Net":"LegacyJavaScriptObject","Socket":"LegacyJavaScriptObject","NetAddress":"LegacyJavaScriptObject","NetServer":"LegacyJavaScriptObject","NodeJsError":"LegacyJavaScriptObject","JsAssertionError":"LegacyJavaScriptObject","JsRangeError":"LegacyJavaScriptObject","JsReferenceError":"LegacyJavaScriptObject","JsSyntaxError":"LegacyJavaScriptObject","JsTypeError":"LegacyJavaScriptObject","JsSystemError":"LegacyJavaScriptObject","Process":"LegacyJavaScriptObject","CPUUsage":"LegacyJavaScriptObject","Release":"LegacyJavaScriptObject","StreamModule":"LegacyJavaScriptObject","Readable":"LegacyJavaScriptObject","Writable":"LegacyJavaScriptObject","Duplex":"LegacyJavaScriptObject","Transform":"LegacyJavaScriptObject","WritableOptions":"LegacyJavaScriptObject","ReadableOptions":"LegacyJavaScriptObject","Immediate":"LegacyJavaScriptObject","Timeout":"LegacyJavaScriptObject","TTY":"LegacyJavaScriptObject","TTYReadStream":"LegacyJavaScriptObject","TTYWriteStream":"LegacyJavaScriptObject","Util":"LegacyJavaScriptObject","JSArray0":"LegacyJavaScriptObject","Chokidar":"LegacyJavaScriptObject","ChokidarOptions":"LegacyJavaScriptObject","ChokidarWatcher":"LegacyJavaScriptObject","JSFunction":"LegacyJavaScriptObject","ImmutableList":"LegacyJavaScriptObject","ImmutableMap":"LegacyJavaScriptObject","NodeImporterResult":"LegacyJavaScriptObject","RenderContext":"LegacyJavaScriptObject","RenderContextOptions":"LegacyJavaScriptObject","RenderContextResult":"LegacyJavaScriptObject","RenderContextResultStats":"LegacyJavaScriptObject","JSModule":"LegacyJavaScriptObject","JSModuleRequire":"LegacyJavaScriptObject","JSClass":"LegacyJavaScriptObject","JSUrl":"LegacyJavaScriptObject","_PropertyDescriptor":"LegacyJavaScriptObject","_RequireMain":"LegacyJavaScriptObject","JSArray1":"LegacyJavaScriptObject","Chokidar0":"LegacyJavaScriptObject","ChokidarOptions0":"LegacyJavaScriptObject","ChokidarWatcher0":"LegacyJavaScriptObject","_Channels":"LegacyJavaScriptObject","_NodeSassColor":"LegacyJavaScriptObject","CompileOptions":"LegacyJavaScriptObject","CompileStringOptions":"LegacyJavaScriptObject","NodeCompileResult":"LegacyJavaScriptObject","Deprecation1":"LegacyJavaScriptObject","_NodeException":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","LoggerNamespace":"LegacyJavaScriptObject","Fiber":"LegacyJavaScriptObject","FiberClass":"LegacyJavaScriptObject","JSFunction0":"LegacyJavaScriptObject","ImmutableList0":"LegacyJavaScriptObject","ImmutableMap0":"LegacyJavaScriptObject","JSImporter":"LegacyJavaScriptObject","JSImporterResult":"LegacyJavaScriptObject","NodeImporterResult0":"LegacyJavaScriptObject","_ConstructorOptions":"LegacyJavaScriptObject","_NodeSassList":"LegacyJavaScriptObject","WarnOptions":"LegacyJavaScriptObject","DebugOptions":"LegacyJavaScriptObject","JSLogger":"LegacyJavaScriptObject","_NodeSassMap":"LegacyJavaScriptObject","JSModule0":"LegacyJavaScriptObject","JSModuleRequire0":"LegacyJavaScriptObject","_ConstructorOptions0":"LegacyJavaScriptObject","_NodeSassNumber":"LegacyJavaScriptObject","JSClass0":"LegacyJavaScriptObject","RenderContext0":"LegacyJavaScriptObject","RenderContextOptions0":"LegacyJavaScriptObject","RenderContextResult0":"LegacyJavaScriptObject","RenderContextResultStats0":"LegacyJavaScriptObject","RenderOptions":"LegacyJavaScriptObject","RenderResult":"LegacyJavaScriptObject","RenderResultStats":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","_ConstructorOptions1":"LegacyJavaScriptObject","_NodeSassString":"LegacyJavaScriptObject","Types":"LegacyJavaScriptObject","JSUrl0":"LegacyJavaScriptObject","_PropertyDescriptor0":"LegacyJavaScriptObject","_RequireMain0":"LegacyJavaScriptObject","JSBool":{"bool":[],"TrustedGetRuntimeType":[]},"JSNull":{"Null":[],"TrustedGetRuntimeType":[]},"LegacyJavaScriptObject":{"Promise":[],"JsSystemError":[],"ImmutableList":[],"_Channels":[],"_NodeSassColor":[],"CompileOptions":[],"CompileStringOptions":[],"NodeCompileResult":[],"Deprecation1":[],"_NodeException":[],"Fiber":[],"JSFunction0":[],"ImmutableList0":[],"ImmutableMap0":[],"JSImporter":[],"JSImporterResult":[],"NodeImporterResult0":[],"_ConstructorOptions":[],"_NodeSassList":[],"WarnOptions":[],"DebugOptions":[],"_NodeSassMap":[],"_ConstructorOptions0":[],"_NodeSassNumber":[],"JSClass0":[],"RenderContextOptions0":[],"RenderOptions":[],"RenderResult":[],"_ConstructorOptions1":[],"_NodeSassString":[],"JSUrl0":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSNumNotInt":{"double":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSString":{"String":[],"Comparable":["String"],"TrustedGetRuntimeType":[]},"_CastIterableBase":{"Iterable":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","Iterable.E":"2"},"CastSet":{"Set":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"CastMap":{"MapBase":["3","4"],"Map":["3","4"],"MapBase.V":"4","MapBase.K":"3"},"LateError":{"Error":[]},"ReachabilityError":{"Error":[]},"CodeUnits":{"ListBase":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListBase.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":{"ListBase":["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"]},"_KeysOrValues":{"Iterable":["1"],"Iterable.E":"1"},"ConstantSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ConstantStringSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"GeneralConstantSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"Instantiation":{"Function":[]},"Instantiation1":{"Function":[]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"NullThrownFromJavaScriptException":{"Exception":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Function":[]},"Closure2Args":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"_CyclicInitializationError":{"Error":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"JsIdentityLinkedHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"JsConstantLinkedHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeByteBuffer":{"ByteBuffer":[],"TrustedGetRuntimeType":[]},"NativeByteData":{"ByteData":[],"TrustedGetRuntimeType":[]},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"]},"NativeTypedArrayOfDouble":{"ListBase":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"NativeTypedArrayOfInt":{"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeFloat32List":{"NativeTypedArrayOfDouble":[],"ListBase":["double"],"Float32List":[],"List":["double"],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double"},"NativeFloat64List":{"NativeTypedArrayOfDouble":[],"ListBase":["double"],"Float64List":[],"List":["double"],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Int16List":[],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Int32List":[],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Int8List":[],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint16List":[],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint32List":[],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint8ClampedList":[],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"ListBase":["int"],"Uint8List":[],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_Future":{"Future":["1"]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_AsyncCompleter":{"_Completer":["1"]},"_SyncCompleter":{"_Completer":["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.T":"1"},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_BufferingStreamSubscription.T":"2"},"_ExpandStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"Zone":[]},"_RootZone":{"Zone":[]},"Queue":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"_HashMap":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_IdentityHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_LinkedHashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_LinkedIdentityHashSet":{"_LinkedHashSet":["1"],"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableListView":{"ListBase":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1"},"ListBase":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"Map":["1","2"]},"UnmodifiableMapBase":{"MapBase":["1","2"],"Map":["1","2"]},"_MapBaseValueIterable":{"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"ListQueue":{"Queue":["1"],"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SetBase":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableSetView":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_JsonMap":{"MapBase":["String","@"],"Map":["String","@"],"MapBase.V":"@","MapBase.K":"String"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"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"]},"JsonDecoder":{"Converter":["String","Object?"]},"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"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"RangeError":[],"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"_Exception":{"Exception":[]},"FormatException":{"Exception":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_StringStackTrace":{"StackTrace":[]},"Runes":{"Iterable":["int"],"Iterable.E":"int"},"_Uri":{"_PlatformUri":[],"Uri":[]},"_SimpleUri":{"_PlatformUri":[],"Uri":[]},"_DataUri":{"_PlatformUri":[],"Uri":[]},"NullRejectionException":{"Exception":[]},"ArgParserException":{"FormatException":[],"Exception":[]},"ErrorResult":{"Result":["0&"]},"ValueResult":{"Result":["1"]},"_CompleterStream":{"Stream":["1"],"Stream.T":"1"},"_NextRequest":{"_EventRequest":["1"]},"EmptyUnmodifiableSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"QueueList":{"ListBase":["1"],"List":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","QueueList.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListBase":["2"],"List":["2"],"Queue":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","QueueList.E":"2"},"UnionSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableSetView0":{"DelegatingSet":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapKeySet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_DelegatingIterableBase":{"Iterable":["1"]},"DelegatingSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"PathException":{"Exception":[]},"PathMap":{"Map":["String?","1"]},"Version":{"VersionRange":[],"Comparable":["VersionRange"]},"VersionRange":{"Comparable":["VersionRange"]},"ModifiableCssAtRule":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssComment":{"ModifiableCssNode":[],"CssComment":[],"CssNode":[],"AstNode":[]},"ModifiableCssDeclaration":{"ModifiableCssNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssImport":{"ModifiableCssNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssKeyframeBlock":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssMediaRule":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssNode":{"CssNode":[],"AstNode":[]},"ModifiableCssParentNode":{"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStyleRule":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStylesheet":{"ModifiableCssParentNode":[],"CssStylesheet":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssSupportsRule":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"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":[]},"InterpolatedFunctionExpression":{"Expression":[],"AstNode":[]},"ListExpression":{"Expression":[],"AstNode":[]},"MapExpression":{"Expression":[],"AstNode":[]},"NullExpression":{"Expression":[],"AstNode":[]},"NumberExpression":{"Expression":[],"AstNode":[]},"ParenthesizedExpression":{"Expression":[],"AstNode":[]},"SelectorExpression":{"Expression":[],"AstNode":[]},"StringExpression":{"Expression":[],"AstNode":[]},"SupportsExpression":{"Expression":[],"AstNode":[]},"UnaryOperationExpression":{"Expression":[],"AstNode":[]},"ValueExpression":{"Expression":[],"AstNode":[]},"VariableExpression":{"Expression":[],"AstNode":[]},"DynamicImport":{"Import":[],"AstNode":[]},"StaticImport":{"Import":[],"AstNode":[]},"Interpolation":{"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":[]},"IfClause":{"IfRuleClause":[]},"ElseClause":{"IfRuleClause":[]},"IfRule":{"Statement":[],"AstNode":[]},"ImportRule":{"Statement":[],"AstNode":[]},"IncludeRule":{"Statement":[],"AstNode":[]},"LoudComment":{"Statement":[],"AstNode":[]},"MediaRule":{"Statement":[],"AstNode":[]},"MixinRule":{"Statement":[],"AstNode":[]},"_HasContentVisitor":{"StatementSearchVisitor":["bool"],"StatementSearchVisitor.T":"bool"},"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":[]},"SupportsAnything":{"AstNode":[]},"SupportsDeclaration":{"AstNode":[]},"SupportsFunction":{"AstNode":[]},"SupportsInterpolation":{"AstNode":[]},"SupportsNegation":{"AstNode":[]},"SupportsOperation":{"AstNode":[]},"Selector":{"AstNode":[]},"AttributeSelector":{"SimpleSelector":[],"AstNode":[]},"ClassSelector":{"SimpleSelector":[],"AstNode":[]},"ComplexSelector":{"AstNode":[]},"CompoundSelector":{"AstNode":[]},"IDSelector":{"SimpleSelector":[],"AstNode":[]},"SelectorList":{"AstNode":[]},"_ParentSelectorVisitor":{"SelectorSearchVisitor":["ParentSelector"],"SelectorSearchVisitor.T":"ParentSelector"},"ParentSelector":{"SimpleSelector":[],"AstNode":[]},"PlaceholderSelector":{"SimpleSelector":[],"AstNode":[]},"PseudoSelector":{"SimpleSelector":[],"AstNode":[]},"SimpleSelector":{"AstNode":[]},"TypeSelector":{"SimpleSelector":[],"AstNode":[]},"UniversalSelector":{"SimpleSelector":[],"AstNode":[]},"_EnvironmentModule0":{"Module0":["AsyncCallable"]},"AsyncBuiltInCallable":{"AsyncCallable":[]},"BuiltInCallable":{"Callable0":[],"AsyncBuiltInCallable":[],"AsyncCallable":[]},"PlainCssCallable":{"Callable0":[],"AsyncCallable":[]},"UserDefinedCallable":{"Callable0":[],"AsyncCallable":[]},"ExplicitConfiguration":{"Configuration":[]},"_EnvironmentModule":{"Module0":["Callable0"]},"SassRuntimeException":{"Exception":[]},"SassException":{"Exception":[]},"MultiSpanSassException":{"Exception":[]},"MultiSpanSassRuntimeException":{"SassRuntimeException":[],"Exception":[]},"SassFormatException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"MultiSpanSassFormatException":{"MultiSourceSpanFormatException":[],"SassFormatException":[],"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"UsageException":{"Exception":[]},"EmptyExtensionStore":{"ExtensionStore":[]},"MergedExtension":{"Extension":[]},"Importer":{"AsyncImporter":[]},"FilesystemImporter":{"Importer":[],"AsyncImporter":[]},"NodePackageImporter":{"Importer":[],"AsyncImporter":[]},"BuiltInModule":{"Module0":["1"]},"ForwardedModuleView":{"Module0":["1"]},"ShadowedModuleView":{"Module0":["1"]},"LazyFileSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"LimitedMapView":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"MergedMapView":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"MultiSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"PrefixedMapView":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_PrefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"PublicMemberMapView":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"UnprefixedMapView":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_UnprefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"SassArgumentList":{"SassList":[],"Value":[]},"SassBoolean":{"Value":[]},"SassCalculation":{"Value":[]},"SassColor":{"Value":[]},"SassFunction":{"Value":[]},"SassList":{"Value":[]},"SassMap":{"Value":[]},"SassMixin":{"Value":[]},"_SassNull":{"Value":[]},"SassNumber":{"Value":[]},"ComplexSassNumber":{"SassNumber":[],"Value":[]},"SingleUnitSassNumber":{"SassNumber":[],"Value":[]},"UnitlessSassNumber":{"SassNumber":[],"Value":[]},"SassString":{"Value":[]},"_EvaluationContext0":{"EvaluationContext":[]},"_EvaluationContext":{"EvaluationContext":[]},"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":[]},"MultiSourceSpanException":{"Exception":[]},"MultiSourceSpanFormatException":{"FormatException":[],"Exception":[]},"SourceSpanMixin":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanWithContext":{"SourceSpan":[],"Comparable":["SourceSpan"]},"Chain":{"StackTrace":[]},"LazyTrace":{"Trace":[],"StackTrace":[]},"Trace":{"StackTrace":[]},"UnparsedFrame":{"Frame":[]},"StringScannerException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"SupportsAnything0":{"AstNode0":[]},"Argument0":{"AstNode0":[]},"ArgumentDeclaration0":{"AstNode0":[]},"ArgumentInvocation0":{"AstNode0":[]},"SassArgumentList0":{"SassList0":[],"Value0":[]},"JSToDartAsyncImporter":{"AsyncImporter0":[]},"AsyncBuiltInCallable0":{"AsyncCallable0":[]},"_EnvironmentModule2":{"Module1":["AsyncCallable0"]},"_EvaluationContext2":{"EvaluationContext0":[]},"JSToDartAsyncFileImporter":{"AsyncImporter0":[]},"AtRootRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssAtRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"AtRule0":{"Statement0":[],"AstNode0":[]},"AttributeSelector0":{"SimpleSelector0":[],"AstNode0":[]},"BinaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"BooleanExpression0":{"Expression0":[],"AstNode0":[]},"SassBoolean0":{"Value0":[]},"BuiltInCallable0":{"Callable":[],"AsyncBuiltInCallable0":[],"AsyncCallable0":[]},"BuiltInModule0":{"Module1":["1"]},"SassCalculation0":{"Value0":[]},"CallableDeclaration0":{"Statement0":[],"AstNode0":[]},"ClassSelector0":{"SimpleSelector0":[],"AstNode0":[]},"ColorExpression0":{"Expression0":[],"AstNode0":[]},"SassColor0":{"Value0":[]},"ModifiableCssComment0":{"ModifiableCssNode0":[],"CssComment0":[],"CssNode0":[],"AstNode0":[]},"AsyncCompiler":{"Compiler":[]},"ComplexSassNumber0":{"SassNumber0":[],"Value0":[]},"ComplexSelector0":{"AstNode0":[]},"CompoundSelector0":{"AstNode0":[]},"ExplicitConfiguration0":{"Configuration0":[]},"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":[]},"EmptyExtensionStore0":{"ExtensionStore0":[]},"_EnvironmentModule1":{"Module1":["Callable"]},"ErrorRule0":{"Statement0":[],"AstNode0":[]},"_EvaluationContext1":{"EvaluationContext0":[]},"SassRuntimeException0":{"Exception":[]},"SassException0":{"Exception":[]},"MultiSpanSassException0":{"Exception":[]},"MultiSpanSassRuntimeException0":{"SassRuntimeException0":[],"Exception":[]},"SassFormatException0":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"MultiSpanSassFormatException0":{"MultiSourceSpanFormatException":[],"SassFormatException0":[],"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"Expression0":{"AstNode0":[]},"ExtendRule0":{"Statement0":[],"AstNode0":[]},"JSToDartFileImporter":{"Importer0":[],"AsyncImporter0":[]},"FilesystemImporter0":{"Importer0":[],"AsyncImporter0":[]},"ForRule0":{"Statement0":[],"AstNode0":[]},"ForwardRule0":{"Statement0":[],"AstNode0":[]},"ForwardedModuleView0":{"Module1":["1"]},"FunctionExpression0":{"Expression0":[],"AstNode0":[]},"SupportsFunction0":{"AstNode0":[]},"SassFunction0":{"Value0":[]},"FunctionRule0":{"Statement0":[],"AstNode0":[]},"IDSelector0":{"SimpleSelector0":[],"AstNode0":[]},"IfExpression0":{"Expression0":[],"AstNode0":[]},"IfClause0":{"IfRuleClause0":[]},"ElseClause0":{"IfRuleClause0":[]},"IfRule0":{"Statement0":[],"AstNode0":[]},"ModifiableCssImport0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"ImportRule0":{"Statement0":[],"AstNode0":[]},"Importer0":{"AsyncImporter0":[]},"IncludeRule0":{"Statement0":[],"AstNode0":[]},"InterpolatedFunctionExpression0":{"Expression0":[],"AstNode0":[]},"Interpolation0":{"AstNode0":[]},"SupportsInterpolation0":{"AstNode0":[]},"ModifiableCssKeyframeBlock0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"LazyFileSpan0":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"LimitedMapView0":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"ListExpression0":{"Expression0":[],"AstNode0":[]},"SelectorList0":{"AstNode0":[]},"_ParentSelectorVisitor0":{"SelectorSearchVisitor0":["ParentSelector0"],"SelectorSearchVisitor0.T":"ParentSelector0"},"SassList0":{"Value0":[]},"LoudComment0":{"Statement0":[],"AstNode0":[]},"MapExpression0":{"Expression0":[],"AstNode0":[]},"SassMap0":{"Value0":[]},"ModifiableCssMediaRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"MediaRule0":{"Statement0":[],"AstNode0":[]},"MergedExtension0":{"Extension0":[]},"MergedMapView0":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"SassMixin0":{"Value0":[]},"MixinRule0":{"Statement0":[],"AstNode0":[]},"_HasContentVisitor0":{"StatementSearchVisitor0":["bool"],"StatementSearchVisitor0.T":"bool"},"MultiSpan0":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SupportsNegation0":{"AstNode0":[]},"NoOpImporter0":{"Importer0":[],"AsyncImporter0":[]},"_FakeAstNode0":{"AstNode0":[]},"CssNode0":{"AstNode0":[]},"CssParentNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssParentNode0":{"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"NodePackageImporter0":{"Importer0":[],"AsyncImporter0":[]},"NullExpression0":{"Expression0":[],"AstNode0":[]},"_SassNull0":{"Value0":[]},"NumberExpression0":{"Expression0":[],"AstNode0":[]},"SassNumber0":{"Value0":[]},"SupportsOperation0":{"AstNode0":[]},"ParentSelector0":{"SimpleSelector0":[],"AstNode0":[]},"ParentStatement0":{"Statement0":[],"AstNode0":[]},"ParenthesizedExpression0":{"Expression0":[],"AstNode0":[]},"PlaceholderSelector0":{"SimpleSelector0":[],"AstNode0":[]},"PlainCssCallable0":{"Callable":[],"AsyncCallable0":[]},"PrefixedMapView0":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_PrefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"PseudoSelector0":{"SimpleSelector0":[],"AstNode0":[]},"PublicMemberMapView0":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"ReturnRule0":{"Statement0":[],"AstNode0":[]},"Selector0":{"AstNode0":[]},"SelectorExpression0":{"Expression0":[],"AstNode0":[]},"ShadowedModuleView0":{"Module1":["1"]},"SilentComment0":{"Statement0":[],"AstNode0":[]},"SimpleSelector0":{"AstNode0":[]},"SingleUnitSassNumber0":{"SassNumber0":[],"Value0":[]},"StaticImport0":{"Import0":[],"AstNode0":[]},"StringExpression0":{"Expression0":[],"AstNode0":[]},"SassString0":{"Value0":[]},"ModifiableCssStyleRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"StyleRule0":{"Statement0":[],"AstNode0":[]},"CssStylesheet0":{"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"ModifiableCssStylesheet0":{"ModifiableCssParentNode0":[],"CssStylesheet0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"Stylesheet0":{"Statement0":[],"AstNode0":[]},"SupportsExpression0":{"Expression0":[],"AstNode0":[]},"ModifiableCssSupportsRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsRule0":{"Statement0":[],"AstNode0":[]},"JSToDartImporter":{"Importer0":[],"AsyncImporter0":[]},"TypeSelector0":{"SimpleSelector0":[],"AstNode0":[]},"UnaryOperationExpression0":{"Expression0":[],"AstNode0":[]},"UnitlessSassNumber0":{"SassNumber0":[],"Value0":[]},"UniversalSelector0":{"SimpleSelector0":[],"AstNode0":[]},"UnprefixedMapView0":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_UnprefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"UseRule0":{"Statement0":[],"AstNode0":[]},"UserDefinedCallable0":{"Callable":[],"AsyncCallable0":[]},"CssValue0":{"AstNode0":[]},"ValueExpression0":{"Expression0":[],"AstNode0":[]},"VariableExpression0":{"Expression0":[],"AstNode0":[]},"VariableDeclaration0":{"Statement0":[],"AstNode0":[]},"WarnRule0":{"Statement0":[],"AstNode0":[]},"WhileRule0":{"Statement0":[],"AstNode0":[]},"Int8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8ClampedList":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Float32List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"Float64List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"CssComment":{"CssNode":[],"AstNode":[]},"Import":{"AstNode":[]},"Statement":{"AstNode":[]},"Callable0":{"AsyncCallable":[]},"Callable":{"AsyncCallable0":[]},"CssComment0":{"CssNode0":[],"AstNode0":[]},"Import0":{"AstNode0":[]},"Statement0":{"AstNode0":[]}}'));
- A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"WhereIterator":1,"SkipIterator":1,"SkipWhileIterator":1,"EmptyIterator":1,"FollowedByIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"ConstantSet":1,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"EventSink":1,"_SyncStarIterator":1,"_SyncStreamControllerDispatch":1,"_AsyncStreamControllerDispatch":1,"_AddStreamState":1,"_StreamControllerAddStreamState":1,"_DelayedEvent":1,"_DelayedData":1,"_PendingEvents":1,"_StreamIterator":1,"_ZoneFunction":1,"Queue":1,"UnmodifiableMapBase":2,"_UnmodifiableMapMixin":2,"MapView":2,"_UnmodifiableSetMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"_UnmodifiableSetView_SetBase__UnmodifiableSetMixin":1,"_StringSinkConversionSink":1,"Expando":1,"_EventRequest":1,"_EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin":1,"DefaultEquality":1,"IterableEquality":1,"ListEquality":1,"_QueueList_Object_ListMixin":1,"_UnionSet_SetBase_UnmodifiableSetMixin":1,"UnmodifiableSetMixin":1,"_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin":1,"_DelegatingIterableBase":1,"_MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin":1,"ParentStatement":1,"ParentStatement0":1}'));
- var string$ = {
- x0a_BUG_: "\n\nBUG: This should include a source span!",
- x0a_Morex20: "\n\nMore info and automated migrator: https://sass-lang.com/d/slash-div",
- x0a_Morex3a: "\n\nMore info: https://sass-lang.com/d/function-units",
- x0a_See_: "\n\nSee https://sass-lang.com/d/function-units",
- x0a_This: "\n\nThis is only an error because you've set the ",
- x0a_To_p: "\n\nTo preserve current behavior: math.random(math.div($limit, 1",
- x0a_but_: "\n\nbut you may have intended it to mean:\n\n ",
- x0aRun_i: "\nRun in verbose mode to see all warnings.",
- x0aThis_: "\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
- x0aYou_m: "\nYou may not @extend the same selector from within different media queries.",
- x20It_wi: " It will be omitted from the generated CSS.",
- x20be_an: " be an extender.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
- x20can_n: " can not have both conditions and paths at the same level.\nFound ",
- x20deprex20i: " deprecation is not yet active, so silencing it is unnecessary.",
- x20deprex20m: " deprecation must be enabled before it can be made fatal.",
- x20deprex20t: " deprecation to be fatal.\nRemove this setting if you need to keep using this feature.",
- x20deprex2c: " deprecation, since it has also been made fatal.",
- x20in_in: " in interpolation here.\nIt may end up represented as ",
- x20is_as: " is asynchronous.\nThis is probably caused by a bug in a Sass plugin.",
- x20is_av: " is available from multiple global modules.",
- x20is_de: " is deprecated.\n\nTo preserve current behavior: ",
- x20is_noaf: " is not a future deprecation, so it does not need to be explicitly enabled.",
- x20is_noav: " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.",
- x20is_nov: " is not valid CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
- x20must_b: " must be either nearest, up, down or to-zero.",
- x20must_n: " must not be greater than the number of characters in the file, ",
- x20repet: " repetitive deprecation warnings omitted.",
- x20targe: " targetLocations if the interpolation has ",
- x20to_cl: " to clarify that it's meant to be a binary operation, or wrap\nit in parentheses to make it a unary operation. This will be an error in future\nversions of Sass.\n\nMore info and automated migrator: https://sass-lang.com/d/strict-unary",
- x20to_co: " to color.opacity() is deprecated.\n\nRecommendation: ",
- x20was_a: ' was already loaded, so it can\'t be configured using "with".',
- x20was_n: " was not declared with !default in the @used module.",
- x20was_p: " was passed both by position and by name.",
- x21defau: "!default should only be written once for each variable.\nThis will be an error in Dart Sass 2.0.0.",
- x21globai: "!global isn't allowed for variables in other modules.",
- x21globas: "!global should only be written once for each variable.\nThis will be an error in Dart Sass 2.0.0.",
- x22x20can_: "\" can't be used as a parent in a compound selector.",
- x22x20is_ix0a: '" is invalid CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators',
- x22x20is_ix20: '" is invalid CSS. It will be omitted from the generated CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators',
- x22x20is_n: '" is not a valid Sass identifier.\n\nRecommendation: add an "as" clause to define an explicit namespace.',
- x22x20is_o: "\" is only valid for nesting and shouldn't\nhave children other than style rules.",
- x22x26__ma: '"&" may only used at the beginning of a compound selector.',
- x22x29__If: "\").\nIf you really want to use the color value here, use '",
- x22x2b__an: '"+" and "-" must be surrounded by whitespace in calculations.',
- x22packa: '"package:" URLs aren\'t supported on this platform.',
- x24css_a: "$css and $module may not both be passed at once.",
- x24list1: "$list1, $list2, $separator: auto, $bracketed: auto",
- x24selec: "$selectors: At least one selector must be passed.",
- x24separ: '$separator: Must be "space", "comma", "slash", or "auto".',
- x27x20must: "' must be a path relative to the package root at '",
- x27x2c_whi: "', which is not a '.scss', '.sass', or '.css' file.",
- x28__isn: "() isn't in the sass:color module.\n\nRecommendation: color.adjust(",
- x29x0a_Mor: ")\n\nMore info: https://sass-lang.com/documentation/functions/color#",
- x29x20in_a: ") in a future release.\n\nRecommendation: math.random(math.div($limit, 1",
- x29x20is_d: ") is deprecated.\n\nTo preserve current behavior: ",
- x29x20to_cg: ") to color.grayscale() is deprecated.\n\nRecommendation: ",
- x29x20to_ci: ") to color.invert() is deprecated.\n\nRecommendation: ",
- x29x29__Mo: "))\n\nMore info: https://sass-lang.com/d/function-units",
- x2c_whicu: ", which uses a scheme declared as non-canonical.",
- x2c_whicw: ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "',
- x2e_Rela: ".\nRelative canonical URLs are deprecated and will eventually be disallowed.",
- x3d_____: "===== asynchronous gap ===========================\n",
- x40_moz_: "@-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.\n\nFor details, see https://sass-lang.com/d/moz-document.",
- x40conte: "@content is only allowed within mixin declarations.",
- x40elsei: "@elseif is deprecated and will not be supported in future Sass versions.\n\nRecommendation: @else if",
- x40exten: "@extend may only be used within style rules.",
- x40forwa: "@forward rules must be written before any other rules.",
- x40funct: "@function if($condition, $if-true, $if-false) {",
- x40use_r: "@use rules must be written before any other rules.",
- A_list: "A list with more than one element must have an explicit separator.",
- A_pkg_h: "A pkg: URL must not have a host, port, username or password.",
- A_pkg_q: "A pkg: URL must not have a query or fragment.",
- ABCDEF: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
- An_impa: "An importer may not have a findFileUrl method as well as canonicalize and load methods.",
- An_impu: "An importer must have either canonicalize and load methods, or a findFileUrl method.",
- As_of_R: "As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.\n\nRecommendation: add `",
- As_of_S: "As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.\n\nSince this assignment is at the root of the stylesheet, the !global flag is\nunnecessary and can safely be removed.",
- At_rul: "At-rules may not be used within nested declarations.",
- Cannotff: "Cannot extract a file path from a URI with a fragment component",
- Cannotfq: "Cannot extract a file path from a URI with a query component",
- Cannotn: "Cannot extract a non-Windows file path from a file URI with an authority",
- Comple: "ComplexSassNumber.hasPossiblyCompatibleUnits is not implemented.",
- Could_: 'Could not find an option with short name "-',
- CssNod: "CssNodes must have a CssStylesheet transitive parent node.",
- Custom: "Custom importers are required to load stylesheets when compiling in the browser.",
- Declarm: "Declarations may only be used within style rules.",
- Declarw: 'Declarations whose names begin with "--" may not be nested.',
- Either: "Either options.data or options.file must be set.",
- Entrie: "Entries may not be removed from MergedMapView.",
- Error_: "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a value of the returned future's type",
- Evalua: "Evaluation handles @include and its content block together.",
- Expect: "Expected variable, mixin, or function name",
- Functi: "Functions may not be declared in control directives.",
- HSL_pa: "HSL parameters may not be passed along with HWB parameters.",
- If_con: "If conditions is longer than one element, conjunction may not be null.",
- If_par: "If parsedAsCustomProperty is true, value must contain a SassString (was `",
- If_str: "If strategy is not null, step is required.",
- In_Sas: 'In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.',
- Indent: "Indenting at the beginning of the document is illegal.",
- Interpn: "Interpolation isn't allowed in namespaces.",
- Interpp: "Interpolation isn't allowed in plain CSS.",
- Invali: 'Invalid return value for custom function "',
- It_s_n: "It's not clear which file to import. Found:\n",
- Keywor: "Keyword arguments can't be used with calculations.",
- May_on: "May only contains Strings or Expressions.",
- Media_: "Media rules may not be used within nested declarations.",
- Mixinsb: "Mixins may not be declared in control directives.",
- Mixinscf: "Mixins may not contain function declarations.",
- Mixinscm: "Mixins may not contain mixin declarations.",
- Modulel: "Module loop: this module is already being loaded.",
- Modulen: "Module namespaces aren't allowed in plain CSS.",
- Nested: "Nested declarations aren't allowed in plain CSS.",
- New_en: "New entries may not be added to MergedMapView.",
- No_Sasc: "No Sass callable is currently being evaluated.",
- No_Sass: "No Sass stylesheet is currently being evaluated.",
- NoSour: "NoSourceMapBuffer.buildSourceMap() is not supported.",
- None_o: "None of the patterns in the switch expression the matched input value. See https://github.com/dart-lang/language/issues/3488 for details.",
- Number: "Number to round and step arguments are required.",
- Only_2: "Only 2 slash-separated elements allowed, but ",
- Only_oa: "Only one argument may be passed to the plain-CSS invert() function.",
- Only_op: "Only one positional argument is allowed. All other arguments must be passed by name.",
- Other_: "Other modules' members can't be defined with !global.",
- Parent: "Parent selectors can't have suffixes in plain CSS.",
- Passina: "Passing a string to call() is deprecated and will be illegal in Dart Sass 2.0.0.\n\nRecommendation: call(get-function(",
- Passinp: "Passing percentage units to the global abs() function is deprecated.\nIn the future, this will emit a CSS abs() function to be resolved by the browser.\nTo preserve current behavior: math.abs(",
- Placeh: "Placeholder selectors aren't allowed in plain CSS.",
- Plain_: "Plain CSS functions don't support keyword arguments.",
- Positi: "Positional arguments must come before keyword arguments.",
- Privat: "Private members can't be accessed from outside their modules.",
- RGB_pa: "RGB parameters may not be passed along with ",
- Rest_a: "Rest arguments can't be used with calculations.",
- Sassx20_ff: "Sass @function names beginning with -- are deprecated for forward-compatibility with plain CSS functions.\n\nFor details, see https://sass-lang.com/d/css-function-mixin",
- Sassx20_fm: "Sass @function names beginning with -- are deprecated for forward-compatibility with plain CSS mixins.\n\nFor details, see https://sass-lang.com/d/css-function-mixin",
- Sassx20_i: "Sass @import rules will be deprecated in the future.\nRemove the --future-deprecation=import flag to silence this warning for now.",
- Sassx20_m: "Sass @mixin names beginning with -- are deprecated for forward-compatibility with plain CSS mixins.\n\nFor details, see https://sass-lang.com/d/css-function-mixin",
- Sassx20v: "Sass variables aren't allowed in plain CSS.",
- Sassx27s: "Sass's behavior for declarations that appear after nested\nrules will be changing to match the behavior specified by CSS in an upcoming\nversion. To keep the existing behavior, move the declaration above the nested\nrule. To opt into the new behavior, wrap the declaration in `& {}`.\n\nMore info: https://sass-lang.com/d/mixed-decls",
- Silent: "Silent comments aren't allowed in plain CSS.",
- Style_k: "Style rules may not be used within keyframe blocks.",
- Style_n: "Style rules may not be used within nested declarations.",
- Suppor: "Supports rules may not be used within nested declarations.",
- The_Ex: "The ExtensionStore and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation.",
- The_No: "The Node package importer cannot be used without a filesystem.",
- The_ca: "The canonicalize() method must return a URL.",
- The_fie: "The findFileUrl() method must return a URL.",
- The_fiu: 'The findFileUrl() must return a URL with scheme file://, was "',
- The_gi: "The given LineScannerState was not returned by this LineScanner.",
- The_lo: "The load() function must return an object with contents and syntax fields.",
- The_pa: "The parent selector isn't allowed in plain CSS.",
- The_sa: "The same variable may only be configured once.",
- The_ta: 'The target selector was not found.\nUse "@extend ',
- There_: "There's already a module with namespace \"",
- This_d: 'This declaration has no argument named "$',
- This_e: "This expression can't be used in a calculation.",
- This_f: "This function isn't allowed in plain CSS.",
- This_ma: 'This module and the new module both define a variable named "$',
- This_mw: 'This module was already loaded, so it can\'t be configured using "with".',
- This_o: "This operation can't be used in a calculation.",
- This_s: "This selector doesn't have any properties and won't be rendered.",
- This_v: "This variable was not declared with !default in the @used module.",
- Top_lel: "Top-level leading combinators aren't allowed in plain CSS.",
- Top_les: 'Top-level selectors may not contain the parent selector "&".',
- Unable: "Unable to determine which of multiple potential resolutions found for ",
- Unexpe: "Unexpected Zone.current[#_canonicalizeContext] value ",
- User_a: "User-authored deprecations should not be silenced.",
- Using__i: "Using / for division is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ",
- Using__o: "Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ",
- Using_c: "Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: ",
- Using_t: "Using the current working directory as an implicit load path is deprecated. Either add it as an explicit load path or importer, or load this stylesheet from a different URL.",
- Variab_: "Variable keyword argument map must have string keys.\n",
- Variabs: "Variable keyword arguments must be a map (was ",
- You_ma: "You may not @extend selectors across media queries.",
- You_pr: "You probably don't mean to use the color value ",
- x60_inst: "` instead.\nSee https://sass-lang.com/d/extend-compound for details.\n",
- addExt: "addExtensions() can't be called for a const ExtensionStore.",
- canoni: "canonicalizeContext may only be accessed within a call to canonicalize().",
- compou: "compound selectors may no longer be extended.\nConsider `@extend ",
- conten: "content-exists() may only be called within a mixin.",
- fileEx: "fileExists() is only supported on Node.js",
- leadin: "leadingCombinators and components may not both be empty.",
- math_d: "math.div() will only support number arguments in a future release.\nUse list.slash() instead for a slash separator.",
- math_r: "math.random() will no longer ignore $limit units (",
- must_b: "must be a UniversalSelector or a TypeSelector",
- parsed: 'parsedAsCustomProperty must be false if name doesn\'t begin with "--".',
- semico: "semicolons aren't allowed in the indented syntax.",
- throug: "through() must return false for at least one parent of ",
- x7d__Mor: "})\nMore info: https://sass-lang.com/d/abs-percent"
- };
- var type$ = (function rtii() {
- var findType = A.findType;
- return {
- $env_1_1_String: findType("@<String>"),
- ArgParser: findType("ArgParser"),
- Argument: findType("Argument"),
- ArgumentDeclaration: findType("ArgumentDeclaration"),
- ArgumentDeclaration_2: findType("ArgumentDeclaration0"),
- Argument_2: findType("Argument0"),
- AstNode: findType("AstNode"),
- AstNode_2: findType("AstNode0"),
- AsyncBuiltInCallable: findType("AsyncBuiltInCallable"),
- AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0"),
- AsyncCallable: findType("AsyncCallable"),
- AsyncCallable_2: findType("AsyncCallable0"),
- AsyncCompiler: findType("AsyncCompiler"),
- AsyncImporter: findType("AsyncImporter0"),
- Box_SelectorList: findType("Box<SelectorList>"),
- Box_SelectorList_2: findType("Box0<SelectorList0>"),
- BuiltInCallable: findType("BuiltInCallable"),
- BuiltInCallable_2: findType("BuiltInCallable0"),
- BuiltInModule_AsyncCallable: findType("BuiltInModule<AsyncCallable>"),
- BuiltInModule_AsyncCallable_2: findType("BuiltInModule0<AsyncCallable0>"),
- BuiltInModule_Callable: findType("BuiltInModule<Callable0>"),
- BuiltInModule_Callable_2: findType("BuiltInModule0<Callable>"),
- ByteBuffer: findType("ByteBuffer"),
- ByteData: findType("ByteData"),
- Callable: findType("Callable0"),
- Callable_2: findType("Callable"),
- ChangeType: findType("ChangeType"),
- CodeUnits: findType("CodeUnits"),
- Combinator: findType("Combinator"),
- Combinator_2: findType("Combinator0"),
- Comparable_dynamic: findType("Comparable<@>"),
- Comparable_nullable_Object: findType("Comparable<Object?>"),
- CompileResult: findType("CompileResult"),
- CompileResult_2: findType("CompileResult0"),
- ComplexSelector: findType("ComplexSelector"),
- ComplexSelectorComponent: findType("ComplexSelectorComponent"),
- ComplexSelectorComponent_2: findType("ComplexSelectorComponent0"),
- ComplexSelector_2: findType("ComplexSelector0"),
- Configuration: findType("Configuration"),
- Configuration_2: findType("Configuration0"),
- ConfiguredValue: findType("ConfiguredValue"),
- ConfiguredValue_2: findType("ConfiguredValue0"),
- ConfiguredVariable: findType("ConfiguredVariable"),
- ConfiguredVariable_2: findType("ConfiguredVariable0"),
- ConstantMapView_Symbol_dynamic: findType("ConstantMapView<Symbol0,@>"),
- ConstantStringMap_String_double: findType("ConstantStringMap<String,double>"),
- ConstantStringSet_String: findType("ConstantStringSet<String>"),
- CssComment: findType("CssComment"),
- CssComment_2: findType("CssComment0"),
- CssMediaQuery: findType("CssMediaQuery"),
- CssMediaQuery_2: findType("CssMediaQuery0"),
- CssParentNode: findType("CssParentNode"),
- CssParentNode_2: findType("CssParentNode0"),
- CssStylesheet: findType("CssStylesheet"),
- CssStylesheet_2: findType("CssStylesheet0"),
- CssValue_Combinator: findType("CssValue<Combinator>"),
- CssValue_Combinator_2: findType("CssValue0<Combinator0>"),
- CssValue_List_String: findType("CssValue<List<String>>"),
- CssValue_List_String_2: findType("CssValue0<List<String>>"),
- CssValue_String: findType("CssValue<String>"),
- CssValue_String_2: findType("CssValue0<String>"),
- CssValue_Value: findType("CssValue<Value>"),
- CssValue_Value_2: findType("CssValue0<Value0>"),
- DateTime: findType("DateTime"),
- Deprecation: findType("Deprecation"),
- Deprecation_2: findType("Deprecation1"),
- Deprecation_3: findType("Deprecation0"),
- EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"),
- Error: findType("Error"),
- EvaluationContext: findType("EvaluationContext"),
- EvaluationContext_2: findType("EvaluationContext0"),
- Exception: findType("Exception"),
- Expression: findType("Expression"),
- Expression_2: findType("Expression0"),
- Extender: findType("Extender"),
- Extender_2: findType("Extender0"),
- Extension: findType("Extension"),
- Extension_2: findType("Extension0"),
- FileLocation: findType("FileLocation"),
- FileSpan: findType("FileSpan"),
- Float32List: findType("Float32List"),
- Float64List: findType("Float64List"),
- FormatException: findType("FormatException"),
- Frame: findType("Frame"),
- Function: findType("Function"),
- FutureGroup_void: findType("FutureGroup<~>"),
- FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)/"),
- FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)/"),
- FutureOr_nullable_Uri: findType("Uri?/"),
- Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)>"),
- Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)>"),
- Future_Value: findType("Future<Value>"),
- Future_Value_2: findType("Future<Value0>"),
- Future_nullable_CssValue_String: findType("Future<CssValue<String>?>"),
- Future_nullable_CssValue_String_2: findType("Future<CssValue0<String>?>"),
- Future_nullable_ImporterResult: findType("Future<ImporterResult0?>"),
- Future_nullable_Uri: findType("Future<Uri?>"),
- Future_nullable_Value: findType("Future<Value?>"),
- Future_nullable_Value_2: findType("Future<Value0?>"),
- Future_void: findType("Future<~>"),
- IfClause: findType("IfClause"),
- IfClause_2: findType("IfClause0"),
- ImmutableList: findType("ImmutableList0"),
- ImmutableList_2: findType("ImmutableList"),
- ImmutableMap: findType("ImmutableMap0"),
- Import: findType("Import"),
- Import_2: findType("Import0"),
- Importer: findType("Importer0"),
- ImporterResult: findType("ImporterResult"),
- ImporterResult_2: findType("ImporterResult0"),
- Importer_2: findType("Importer"),
- Int16List: findType("Int16List"),
- Int32List: findType("Int32List"),
- Int8List: findType("Int8List"),
- Interpolation: findType("Interpolation"),
- InterpolationBuffer: findType("InterpolationBuffer"),
- InterpolationBuffer_2: findType("InterpolationBuffer0"),
- Interpolation_2: findType("Interpolation0"),
- Iterable_ComplexSelectorComponent: findType("Iterable<ComplexSelectorComponent>"),
- Iterable_ComplexSelectorComponent_2: findType("Iterable<ComplexSelectorComponent0>"),
- Iterable_dynamic: findType("Iterable<@>"),
- Iterable_nullable_Object: findType("Iterable<Object?>"),
- JSArray_Argument: findType("JSArray<Argument>"),
- JSArray_Argument_2: findType("JSArray<Argument0>"),
- JSArray_AstNode: findType("JSArray<AstNode>"),
- JSArray_AstNode_2: findType("JSArray<AstNode0>"),
- JSArray_AsyncBuiltInCallable: findType("JSArray<AsyncBuiltInCallable>"),
- JSArray_AsyncBuiltInCallable_2: findType("JSArray<AsyncBuiltInCallable0>"),
- JSArray_AsyncCallable: findType("JSArray<AsyncCallable>"),
- JSArray_AsyncCallable_2: findType("JSArray<AsyncCallable0>"),
- JSArray_AsyncImporter: findType("JSArray<AsyncImporter0>"),
- JSArray_AsyncImporter_2: findType("JSArray<AsyncImporter>"),
- JSArray_BinaryOperator: findType("JSArray<BinaryOperator>"),
- JSArray_BinaryOperator_2: findType("JSArray<BinaryOperator0>"),
- JSArray_BuiltInCallable: findType("JSArray<BuiltInCallable>"),
- JSArray_BuiltInCallable_2: findType("JSArray<BuiltInCallable0>"),
- JSArray_Callable: findType("JSArray<Callable0>"),
- JSArray_Callable_2: findType("JSArray<Callable>"),
- JSArray_ComplexSelector: findType("JSArray<ComplexSelector>"),
- JSArray_ComplexSelectorComponent: findType("JSArray<ComplexSelectorComponent>"),
- JSArray_ComplexSelectorComponent_2: findType("JSArray<ComplexSelectorComponent0>"),
- JSArray_ComplexSelector_2: findType("JSArray<ComplexSelector0>"),
- JSArray_ConfiguredVariable: findType("JSArray<ConfiguredVariable>"),
- JSArray_ConfiguredVariable_2: findType("JSArray<ConfiguredVariable0>"),
- JSArray_CssComment: findType("JSArray<CssComment>"),
- JSArray_CssComment_2: findType("JSArray<CssComment0>"),
- JSArray_CssMediaQuery: findType("JSArray<CssMediaQuery>"),
- JSArray_CssMediaQuery_2: findType("JSArray<CssMediaQuery0>"),
- JSArray_CssNode: findType("JSArray<CssNode>"),
- JSArray_CssNode_2: findType("JSArray<CssNode0>"),
- JSArray_CssValue_Combinator: findType("JSArray<CssValue<Combinator>>"),
- JSArray_CssValue_Combinator_2: findType("JSArray<CssValue0<Combinator0>>"),
- JSArray_Entry: findType("JSArray<Entry>"),
- JSArray_Expression: findType("JSArray<Expression>"),
- JSArray_Expression_2: findType("JSArray<Expression0>"),
- JSArray_Extender: findType("JSArray<Extender>"),
- JSArray_Extender_2: findType("JSArray<Extender0>"),
- JSArray_Extension: findType("JSArray<Extension>"),
- JSArray_ExtensionStore: findType("JSArray<ExtensionStore>"),
- JSArray_ExtensionStore_2: findType("JSArray<ExtensionStore0>"),
- JSArray_Extension_2: findType("JSArray<Extension0>"),
- JSArray_ForwardRule: findType("JSArray<ForwardRule>"),
- JSArray_ForwardRule_2: findType("JSArray<ForwardRule0>"),
- JSArray_Frame: findType("JSArray<Frame>"),
- JSArray_Future_nullable_Record_3_int_and_String_and_nullable_String: findType("JSArray<Future<+(int,String,String?)?>>"),
- JSArray_IfClause: findType("JSArray<IfClause>"),
- JSArray_IfClause_2: findType("JSArray<IfClause0>"),
- JSArray_Import: findType("JSArray<Import>"),
- JSArray_Import_2: findType("JSArray<Import0>"),
- JSArray_Importer: findType("JSArray<Importer>"),
- JSArray_Importer_2: findType("JSArray<Importer0>"),
- JSArray_Iterable_ComplexSelectorComponent: findType("JSArray<Iterable<ComplexSelectorComponent>>"),
- JSArray_Iterable_ComplexSelectorComponent_2: findType("JSArray<Iterable<ComplexSelectorComponent0>>"),
- JSArray_JSFunction: findType("JSArray<JSFunction0>"),
- JSArray_List_ComplexSelector: findType("JSArray<List<ComplexSelector>>"),
- JSArray_List_ComplexSelectorComponent: findType("JSArray<List<ComplexSelectorComponent>>"),
- JSArray_List_ComplexSelectorComponent_2: findType("JSArray<List<ComplexSelectorComponent0>>"),
- JSArray_List_ComplexSelector_2: findType("JSArray<List<ComplexSelector0>>"),
- JSArray_List_Extender: findType("JSArray<List<Extender>>"),
- JSArray_List_Extender_2: findType("JSArray<List<Extender0>>"),
- JSArray_List_Iterable_ComplexSelectorComponent: findType("JSArray<List<Iterable<ComplexSelectorComponent>>>"),
- JSArray_List_Iterable_ComplexSelectorComponent_2: findType("JSArray<List<Iterable<ComplexSelectorComponent0>>>"),
- JSArray_Map_String_AstNode: findType("JSArray<Map<String,AstNode>>"),
- JSArray_Map_String_AstNode_2: findType("JSArray<Map<String,AstNode0>>"),
- JSArray_Map_String_AsyncCallable: findType("JSArray<Map<String,AsyncCallable>>"),
- JSArray_Map_String_AsyncCallable_2: findType("JSArray<Map<String,AsyncCallable0>>"),
- JSArray_Map_String_Callable: findType("JSArray<Map<String,Callable0>>"),
- JSArray_Map_String_Callable_2: findType("JSArray<Map<String,Callable>>"),
- JSArray_Map_String_Value: findType("JSArray<Map<String,Value>>"),
- JSArray_Map_String_Value_2: findType("JSArray<Map<String,Value0>>"),
- JSArray_ModifiableCssImport: findType("JSArray<ModifiableCssImport>"),
- JSArray_ModifiableCssImport_2: findType("JSArray<ModifiableCssImport0>"),
- JSArray_ModifiableCssNode: findType("JSArray<ModifiableCssNode>"),
- JSArray_ModifiableCssNode_2: findType("JSArray<ModifiableCssNode0>"),
- JSArray_ModifiableCssParentNode: findType("JSArray<ModifiableCssParentNode>"),
- JSArray_ModifiableCssParentNode_2: findType("JSArray<ModifiableCssParentNode0>"),
- JSArray_Module_AsyncCallable: findType("JSArray<Module0<AsyncCallable>>"),
- JSArray_Module_AsyncCallable_2: findType("JSArray<Module1<AsyncCallable0>>"),
- JSArray_Module_Callable: findType("JSArray<Module0<Callable0>>"),
- JSArray_Module_Callable_2: findType("JSArray<Module1<Callable>>"),
- JSArray_Object: findType("JSArray<Object>"),
- JSArray_PseudoSelector: findType("JSArray<PseudoSelector>"),
- JSArray_PseudoSelector_2: findType("JSArray<PseudoSelector0>"),
- JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value: findType("JSArray<+(ArgumentDeclaration,Value(List<Value>))>"),
- JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("JSArray<+(ArgumentDeclaration0,Value0(List<Value0>))>"),
- JSArray_Record_2_Expression_and_Expression: findType("JSArray<+(Expression,Expression)>"),
- JSArray_Record_2_Expression_and_Expression_2: findType("JSArray<+(Expression0,Expression0)>"),
- JSArray_Record_2_String_and_AstNode: findType("JSArray<+(String,AstNode)>"),
- JSArray_Record_2_String_and_AstNode_2: findType("JSArray<+(String,AstNode0)>"),
- JSArray_SassList: findType("JSArray<SassList>"),
- JSArray_SassList_2: findType("JSArray<SassList0>"),
- JSArray_SimpleSelector: findType("JSArray<SimpleSelector>"),
- JSArray_SimpleSelector_2: findType("JSArray<SimpleSelector0>"),
- JSArray_SourceLocation: findType("JSArray<SourceLocation>"),
- JSArray_Statement: findType("JSArray<Statement>"),
- JSArray_Statement_2: findType("JSArray<Statement0>"),
- JSArray_String: findType("JSArray<String>"),
- JSArray_StylesheetNode: findType("JSArray<StylesheetNode>"),
- JSArray_TargetEntry: findType("JSArray<TargetEntry>"),
- JSArray_TargetLineEntry: findType("JSArray<TargetLineEntry>"),
- JSArray_Trace: findType("JSArray<Trace>"),
- JSArray_UseRule: findType("JSArray<UseRule>"),
- JSArray_UseRule_2: findType("JSArray<UseRule0>"),
- JSArray_Value: findType("JSArray<Value>"),
- JSArray_Value_2: findType("JSArray<Value0>"),
- JSArray_WatchEvent: findType("JSArray<WatchEvent>"),
- JSArray__Highlight: findType("JSArray<_Highlight>"),
- JSArray__Line: findType("JSArray<_Line>"),
- JSArray_dynamic: findType("JSArray<@>"),
- JSArray_int: findType("JSArray<int>"),
- JSArray_nullable_Record_3_int_and_String_and_nullable_String: findType("JSArray<+(int,String,String?)?>"),
- JSArray_nullable_String: findType("JSArray<String?>"),
- JSClass: findType("JSClass0"),
- JSFunction: findType("JSFunction0"),
- JSImporter: findType("JSImporter"),
- JSImporterResult: findType("JSImporterResult"),
- JSNull: findType("JSNull"),
- JSUrl: findType("JSUrl0"),
- JavaScriptFunction: findType("JavaScriptFunction"),
- JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"),
- JsIdentityLinkedHashMap_SimpleSelector_int: findType("JsIdentityLinkedHashMap<SimpleSelector,int>"),
- JsIdentityLinkedHashMap_SimpleSelector_int_2: findType("JsIdentityLinkedHashMap<SimpleSelector0,int>"),
- JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList: findType("JsIdentityLinkedHashMap<SelectorList,Box<SelectorList>>"),
- JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList_2: findType("JsIdentityLinkedHashMap<SelectorList0,Box0<SelectorList0>>"),
- JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap<Symbol0,@>"),
- JsSystemError: findType("JsSystemError"),
- LimitedMapView_String_ConfiguredValue: findType("LimitedMapView<String,ConfiguredValue>"),
- LimitedMapView_String_ConfiguredValue_2: findType("LimitedMapView0<String,ConfiguredValue0>"),
- List_ComplexSelectorComponent: findType("List<ComplexSelectorComponent>"),
- List_ComplexSelectorComponent_2: findType("List<ComplexSelectorComponent0>"),
- List_CssComment: findType("List<CssComment>"),
- List_CssComment_2: findType("List<CssComment0>"),
- List_CssMediaQuery: findType("List<CssMediaQuery>"),
- List_CssMediaQuery_2: findType("List<CssMediaQuery0>"),
- List_CssValue_Combinator: findType("List<CssValue<Combinator>>"),
- List_CssValue_Combinator_2: findType("List<CssValue0<Combinator0>>"),
- List_Extension: findType("List<Extension>"),
- List_ExtensionStore: findType("List<ExtensionStore>"),
- List_ExtensionStore_2: findType("List<ExtensionStore0>"),
- List_Extension_2: findType("List<Extension0>"),
- List_List_ComplexSelectorComponent: findType("List<List<ComplexSelectorComponent>>"),
- List_List_ComplexSelectorComponent_2: findType("List<List<ComplexSelectorComponent0>>"),
- List_Module_AsyncCallable: findType("List<Module0<AsyncCallable>>"),
- List_Module_AsyncCallable_2: findType("List<Module1<AsyncCallable0>>"),
- List_Module_Callable: findType("List<Module0<Callable0>>"),
- List_Module_Callable_2: findType("List<Module1<Callable>>"),
- List_String: findType("List<String>"),
- List_Value: findType("List<Value>"),
- List_Value_2: findType("List<Value0>"),
- List_WatchEvent: findType("List<WatchEvent>"),
- List_dynamic: findType("List<@>"),
- List_int: findType("List<int>"),
- List_nullable_Object: findType("List<Object?>"),
- MapKeySet_Module_AsyncCallable: findType("MapKeySet<Module0<AsyncCallable>>"),
- MapKeySet_Module_AsyncCallable_2: findType("MapKeySet<Module1<AsyncCallable0>>"),
- MapKeySet_Module_Callable: findType("MapKeySet<Module0<Callable0>>"),
- MapKeySet_Module_Callable_2: findType("MapKeySet<Module1<Callable>>"),
- MapKeySet_SimpleSelector: findType("MapKeySet<SimpleSelector>"),
- MapKeySet_SimpleSelector_2: findType("MapKeySet<SimpleSelector0>"),
- MapKeySet_String: findType("MapKeySet<String>"),
- MapKeySet_nullable_Object: findType("MapKeySet<Object?>"),
- Map_ComplexSelector_Extension: findType("Map<ComplexSelector,Extension>"),
- Map_ComplexSelector_Extension_2: findType("Map<ComplexSelector0,Extension0>"),
- Map_String_AstNode: findType("Map<String,AstNode>"),
- Map_String_AstNode_2: findType("Map<String,AstNode0>"),
- Map_String_AsyncCallable: findType("Map<String,AsyncCallable>"),
- Map_String_AsyncCallable_2: findType("Map<String,AsyncCallable0>"),
- Map_String_Callable: findType("Map<String,Callable0>"),
- Map_String_Callable_2: findType("Map<String,Callable>"),
- Map_String_Value: findType("Map<String,Value>"),
- Map_String_Value_2: findType("Map<String,Value0>"),
- Map_String_dynamic: findType("Map<String,@>"),
- Map_dynamic_dynamic: findType("Map<@,@>"),
- Map_of_nullable_Object_and_nullable_Object: findType("Map<Object?,Object?>"),
- MappedIterable_String_Frame: findType("MappedIterable<String,Frame>"),
- MappedListIterable_Frame_Frame: findType("MappedListIterable<Frame,Frame>"),
- MappedListIterable_String_Object: findType("MappedListIterable<String,Object>"),
- MappedListIterable_String_String: findType("MappedListIterable<String,String>"),
- MappedListIterable_String_Trace: findType("MappedListIterable<String,Trace>"),
- MappedListIterable_String_Value: findType("MappedListIterable<String,Value>"),
- MappedListIterable_String_Value_2: findType("MappedListIterable<String,Value0>"),
- MappedListIterable_String_dynamic: findType("MappedListIterable<String,@>"),
- MixinRule: findType("MixinRule"),
- MixinRule_2: findType("MixinRule0"),
- ModifiableBox_SelectorList: findType("ModifiableBox<SelectorList>"),
- ModifiableBox_SelectorList_2: findType("ModifiableBox0<SelectorList0>"),
- ModifiableCssAtRule: findType("ModifiableCssAtRule"),
- ModifiableCssAtRule_2: findType("ModifiableCssAtRule0"),
- ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock"),
- ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0"),
- ModifiableCssMediaRule: findType("ModifiableCssMediaRule"),
- ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0"),
- ModifiableCssNode: findType("ModifiableCssNode"),
- ModifiableCssNode_2: findType("ModifiableCssNode0"),
- ModifiableCssParentNode: findType("ModifiableCssParentNode"),
- ModifiableCssParentNode_2: findType("ModifiableCssParentNode0"),
- ModifiableCssStyleRule: findType("ModifiableCssStyleRule"),
- ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0"),
- ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule"),
- ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0"),
- Module_AsyncCallable: findType("Module0<AsyncCallable>"),
- Module_AsyncCallable_2: findType("Module1<AsyncCallable0>"),
- Module_Callable: findType("Module0<Callable0>"),
- Module_Callable_2: findType("Module1<Callable>"),
- MultiSourceSpanFormatException: findType("MultiSourceSpanFormatException"),
- NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"),
- NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"),
- NativeUint8List: findType("NativeUint8List"),
- Never: findType("0&"),
- NodeCompileResult: findType("NodeCompileResult"),
- NodeImporterResult: findType("NodeImporterResult0"),
- Null: findType("Null"),
- Object: findType("Object"),
- Option: findType("Option"),
- PathMap_ChangeType: findType("PathMap<ChangeType>"),
- PathMap_Stream_WatchEvent: findType("PathMap<Stream<WatchEvent>>"),
- PathMap_String: findType("PathMap<String>"),
- PathMap_nullable_String: findType("PathMap<String?>"),
- Promise: findType("Promise"),
- PseudoSelector: findType("PseudoSelector"),
- PseudoSelector_2: findType("PseudoSelector0"),
- RangeError: findType("RangeError"),
- Record: findType("Record"),
- Record_0: findType("+()"),
- Record_1_nullable_Object: findType("+(Object?)"),
- Record_2_Expression_and_Expression: findType("+(Expression,Expression)"),
- Record_2_Expression_and_Expression_2: findType("+(Expression0,Expression0)"),
- Record_2_List_Expression_and_Map_String_Expression: findType("+(List<Expression>,Map<String,Expression>)"),
- Record_2_List_Expression_and_Map_String_Expression_2: findType("+(List<Expression0>,Map<String,Expression0>)"),
- Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)"),
- Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)"),
- Record_2_String_and_InterpolationMap: findType("+(String,InterpolationMap)"),
- Record_2_String_and_InterpolationMap_2: findType("+(String,InterpolationMap0)"),
- Record_2_String_and_SourceSpan: findType("+(String,SourceSpan)"),
- Record_2_String_and_nullable_InterpolationMap: findType("+(String,InterpolationMap?)"),
- Record_2_String_and_nullable_InterpolationMap_2: findType("+(String,InterpolationMap0?)"),
- Record_2_Uri_and_bool_forImport: findType("+forImport(Uri,bool)"),
- Record_2_nullable_Object_and_nullable_Object: findType("+(Object?,Object?)"),
- Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool: findType("+(+originalUrl(AsyncImporter,Uri,Uri)?,bool)"),
- Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool_2: findType("+(+originalUrl(AsyncImporter0,Uri,Uri)?,bool)"),
- Record_2_nullable_String_and_nullable_String: findType("+(String?,String?)"),
- Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl: findType("+originalUrl(AsyncImporter,Uri,Uri)"),
- Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(AsyncImporter0,Uri,Uri)"),
- Record_3_AsyncImporter_and_Uri_and_bool_forImport: findType("+forImport(AsyncImporter,Uri,bool)"),
- Record_3_AsyncImporter_and_Uri_and_bool_forImport_2: findType("+forImport(AsyncImporter0,Uri,bool)"),
- Record_3_Importer_and_Uri_and_Uri_originalUrl: findType("+originalUrl(Importer,Uri,Uri)"),
- Record_3_Importer_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(Importer0,Uri,Uri)"),
- Record_3_Importer_and_Uri_and_bool_forImport: findType("+forImport(Importer,Uri,bool)"),
- Record_3_Importer_and_Uri_and_bool_forImport_2: findType("+forImport(Importer0,Uri,bool)"),
- Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency: findType("+importer,isDependency(Stylesheet,AsyncImporter?,bool)"),
- Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2: findType("+importer,isDependency(Stylesheet0,AsyncImporter0?,bool)"),
- Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl: findType("+originalUrl(Object?,Object?,Object?)"),
- Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator: findType("+named,namedNodes,positional,positionalNodes,separator(Map<String,Value>,Map<String,AstNode>,List<Value>,List<AstNode>,ListSeparator)"),
- Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator_2: findType("+named,namedNodes,positional,positionalNodes,separator(Map<String,Value0>,Map<String,AstNode0>,List<Value0>,List<AstNode0>,ListSeparator0)"),
- RegExpMatch: findType("RegExpMatch"),
- RenderContextOptions: findType("RenderContextOptions0"),
- RenderResult: findType("RenderResult"),
- Result_String: findType("Result<String>"),
- ReversedListIterable_Frame: findType("ReversedListIterable<Frame>"),
- Runes: findType("Runes"),
- SassArgumentList: findType("SassArgumentList"),
- SassArgumentList_2: findType("SassArgumentList0"),
- SassBoolean: findType("SassBoolean"),
- SassBoolean_2: findType("SassBoolean0"),
- SassColor: findType("SassColor"),
- SassColor_2: findType("SassColor0"),
- SassFormatException: findType("SassFormatException"),
- SassFormatException_2: findType("SassFormatException0"),
- SassList: findType("SassList"),
- SassList_2: findType("SassList0"),
- SassMap: findType("SassMap"),
- SassMap_2: findType("SassMap0"),
- SassNumber: findType("SassNumber"),
- SassNumber_2: findType("SassNumber0"),
- SassRuntimeException: findType("SassRuntimeException"),
- SassRuntimeException_2: findType("SassRuntimeException0"),
- SassString: findType("SassString"),
- SassString_2: findType("SassString0"),
- SelectorList: findType("SelectorList"),
- SelectorList_2: findType("SelectorList0"),
- Set_ModifiableBox_SelectorList: findType("Set<ModifiableBox<SelectorList>>"),
- Set_ModifiableBox_SelectorList_2: findType("Set<ModifiableBox0<SelectorList0>>"),
- Set_Uri: findType("Set<Uri>"),
- SimpleSelector: findType("SimpleSelector"),
- SimpleSelector_2: findType("SimpleSelector0"),
- SourceFile: findType("SourceFile"),
- SourceLocation: findType("SourceLocation"),
- SourceSpan: findType("SourceSpan"),
- SourceSpanFormatException: findType("SourceSpanFormatException"),
- SourceSpanWithContext: findType("SourceSpanWithContext"),
- StackTrace: findType("StackTrace"),
- Statement: findType("Statement"),
- Statement_2: findType("Statement0"),
- StaticImport: findType("StaticImport"),
- StaticImport_2: findType("StaticImport0"),
- StreamCompleter_WatchEvent: findType("StreamCompleter<WatchEvent>"),
- StreamGroup_WatchEvent: findType("StreamGroup<WatchEvent>"),
- StreamQueue_String: findType("StreamQueue<String>"),
- Stream_WatchEvent: findType("Stream<WatchEvent>"),
- String: findType("String"),
- StringExpression: findType("StringExpression"),
- StylesheetNode: findType("StylesheetNode"),
- Timer: findType("Timer"),
- Trace: findType("Trace"),
- TrustedGetRuntimeType: findType("TrustedGetRuntimeType"),
- TypeError: findType("TypeError"),
- TypeSelector: findType("TypeSelector"),
- TypeSelector_2: findType("TypeSelector0"),
- Uint16List: findType("Uint16List"),
- Uint32List: findType("Uint32List"),
- Uint8ClampedList: findType("Uint8ClampedList"),
- Uint8List: findType("Uint8List"),
- UnionSet_Uri: findType("UnionSet<Uri>"),
- UnknownJavaScriptObject: findType("UnknownJavaScriptObject"),
- UnmodifiableListView_CssComment: findType("UnmodifiableListView<CssComment>"),
- UnmodifiableListView_CssComment_2: findType("UnmodifiableListView<CssComment0>"),
- UnmodifiableListView_CssNode: findType("UnmodifiableListView<CssNode>"),
- UnmodifiableListView_CssNode_2: findType("UnmodifiableListView<CssNode0>"),
- UnmodifiableListView_ForwardRule: findType("UnmodifiableListView<ForwardRule>"),
- UnmodifiableListView_ForwardRule_2: findType("UnmodifiableListView<ForwardRule0>"),
- UnmodifiableListView_ModifiableCssNode: findType("UnmodifiableListView<ModifiableCssNode>"),
- UnmodifiableListView_ModifiableCssNode_2: findType("UnmodifiableListView<ModifiableCssNode0>"),
- UnmodifiableListView_String: findType("UnmodifiableListView<String>"),
- UnmodifiableListView_UseRule: findType("UnmodifiableListView<UseRule>"),
- UnmodifiableListView_UseRule_2: findType("UnmodifiableListView<UseRule0>"),
- UnmodifiableMapView_String_ArgParser: findType("UnmodifiableMapView<String,ArgParser>"),
- UnmodifiableMapView_String_ConfiguredValue: findType("UnmodifiableMapView<String,ConfiguredValue>"),
- UnmodifiableMapView_String_ConfiguredValue_2: findType("UnmodifiableMapView<String,ConfiguredValue0>"),
- UnmodifiableMapView_String_Option: findType("UnmodifiableMapView<String,Option>"),
- UnmodifiableMapView_String_Value: findType("UnmodifiableMapView<String,Value>"),
- UnmodifiableMapView_String_Value_2: findType("UnmodifiableMapView<String,Value0>"),
- UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode: findType("UnmodifiableMapView<Uri,StylesheetNode?>"),
- UnmodifiableMapView_of_nullable_String_and_String: findType("UnmodifiableMapView<String?,String>"),
- UnmodifiableMapView_of_nullable_String_and_nullable_String: findType("UnmodifiableMapView<String?,String?>"),
- UnmodifiableSetView_String: findType("UnmodifiableSetView0<String>"),
- UnmodifiableSetView_StylesheetNode: findType("UnmodifiableSetView0<StylesheetNode>"),
- UnmodifiableSetView_Uri: findType("UnmodifiableSetView0<Uri>"),
- UnprefixedMapView_ConfiguredValue: findType("UnprefixedMapView<ConfiguredValue>"),
- UnprefixedMapView_ConfiguredValue_2: findType("UnprefixedMapView0<ConfiguredValue0>"),
- Uri: findType("Uri"),
- UseRule: findType("UseRule"),
- UserDefinedCallable_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment>"),
- UserDefinedCallable_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0>"),
- UserDefinedCallable_Environment: findType("UserDefinedCallable<Environment>"),
- UserDefinedCallable_Environment_2: findType("UserDefinedCallable0<Environment0>"),
- Value: findType("Value"),
- Value_2: findType("Value0"),
- Value_Function_List_Value: findType("Value(List<Value>)"),
- Value_Function_List_Value_2: findType("Value0(List<Value0>)"),
- VariableDeclaration: findType("VariableDeclaration"),
- VariableDeclaration_2: findType("VariableDeclaration0"),
- VersionRange: findType("VersionRange"),
- WatchEvent: findType("WatchEvent"),
- WhereIterable_List_Iterable_ComplexSelectorComponent: findType("WhereIterable<List<Iterable<ComplexSelectorComponent>>>"),
- WhereIterable_List_Iterable_ComplexSelectorComponent_2: findType("WhereIterable<List<Iterable<ComplexSelectorComponent0>>>"),
- WhereIterable_String: findType("WhereIterable<String>"),
- WhereTypeIterable_PseudoSelector: findType("WhereTypeIterable<PseudoSelector>"),
- WhereTypeIterable_PseudoSelector_2: findType("WhereTypeIterable<PseudoSelector0>"),
- WhereTypeIterable_String: findType("WhereTypeIterable<String>"),
- _AsyncCompleter_List_void: findType("_AsyncCompleter<List<~>>"),
- _AsyncCompleter_Object: findType("_AsyncCompleter<Object>"),
- _AsyncCompleter_Stream_WatchEvent: findType("_AsyncCompleter<Stream<WatchEvent>>"),
- _AsyncCompleter_String: findType("_AsyncCompleter<String>"),
- _AsyncCompleter_nullable_Object: findType("_AsyncCompleter<Object?>"),
- _CompleterStream_WatchEvent: findType("_CompleterStream<WatchEvent>"),
- _EventRequest_dynamic: findType("_EventRequest<@>"),
- _Future_List_void: findType("_Future<List<~>>"),
- _Future_Object: findType("_Future<Object>"),
- _Future_Stream_WatchEvent: findType("_Future<Stream<WatchEvent>>"),
- _Future_String: findType("_Future<String>"),
- _Future_Value: findType("_Future<Value>"),
- _Future_Value_2: findType("_Future<Value0>"),
- _Future_bool: findType("_Future<bool>"),
- _Future_dynamic: findType("_Future<@>"),
- _Future_int: findType("_Future<int>"),
- _Future_nullable_Object: findType("_Future<Object?>"),
- _Future_void: findType("_Future<~>"),
- _Highlight: findType("_Highlight"),
- _IdentityHashMap_of_nullable_Object_and_nullable_Object: findType("_IdentityHashMap<Object?,Object?>"),
- _LinkedIdentityHashSet_ComplexSelector: findType("_LinkedIdentityHashSet<ComplexSelector>"),
- _LinkedIdentityHashSet_ComplexSelector_2: findType("_LinkedIdentityHashSet<ComplexSelector0>"),
- _LinkedIdentityHashSet_Extension: findType("_LinkedIdentityHashSet<Extension>"),
- _LinkedIdentityHashSet_Extension_2: findType("_LinkedIdentityHashSet<Extension0>"),
- _MapEntry: findType("_MapEntry"),
- _NodeException: findType("_NodeException"),
- _PlatformUri: findType("_PlatformUri"),
- _SyncStarIterable_Deprecation: findType("_SyncStarIterable<Deprecation0>"),
- _SyncStarIterable_Extension: findType("_SyncStarIterable<Extension>"),
- _SyncStarIterable_Extension_2: findType("_SyncStarIterable<Extension0>"),
- _SyncStarIterable_SimpleSelector: findType("_SyncStarIterable<SimpleSelector>"),
- _SyncStarIterable_SimpleSelector_2: findType("_SyncStarIterable<SimpleSelector0>"),
- _SyncStarIterable_String: findType("_SyncStarIterable<String>"),
- bool: findType("bool"),
- double: findType("double"),
- dynamic: findType("@"),
- dynamic_Function: findType("@()"),
- dynamic_Function_Object: findType("@(Object)"),
- dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"),
- int: findType("int"),
- legacy_Never: findType("0&*"),
- legacy_Object: findType("Object*"),
- nullable_AstNode: findType("AstNode?"),
- nullable_AstNode_2: findType("AstNode0?"),
- nullable_CanonicalizeContext: findType("CanonicalizeContext?"),
- nullable_CanonicalizeContext_2: findType("CanonicalizeContext0?"),
- nullable_CssValue_String: findType("CssValue<String>?"),
- nullable_CssValue_String_2: findType("CssValue0<String>?"),
- nullable_Future_Null: findType("Future<Null>?"),
- nullable_Future_void: findType("Future<~>?"),
- nullable_ImporterResult: findType("ImporterResult?"),
- nullable_ImporterResult_2: findType("ImporterResult0?"),
- nullable_Object: findType("Object?"),
- nullable_Record_2_String_and_String: findType("+(String,String)?"),
- nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl: findType("+originalUrl(AsyncImporter,Uri,Uri)?"),
- nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(AsyncImporter0,Uri,Uri)?"),
- nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl: findType("+originalUrl(Importer,Uri,Uri)?"),
- nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(Importer0,Uri,Uri)?"),
- nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency: findType("+importer,isDependency(Stylesheet0,AsyncImporter0?,bool)?"),
- nullable_Record_3_int_and_String_and_nullable_String: findType("+(int,String,String?)?"),
- nullable_SourceFile: findType("SourceFile?"),
- nullable_SourceSpan: findType("SourceSpan?"),
- nullable_StreamSubscription_WatchEvent: findType("StreamSubscription<WatchEvent>?"),
- nullable_String: findType("String?"),
- nullable_Stylesheet: findType("Stylesheet?"),
- nullable_StylesheetNode: findType("StylesheetNode?"),
- nullable_Stylesheet_2: findType("Stylesheet0?"),
- nullable_Uri: findType("Uri?"),
- nullable_Value: findType("Value?"),
- nullable_Value_2: findType("Value0?"),
- nullable__ConstructorOptions: findType("_ConstructorOptions?"),
- nullable__ConstructorOptions_2: findType("_ConstructorOptions0?"),
- nullable__ConstructorOptions_3: findType("_ConstructorOptions1?"),
- nullable__Highlight: findType("_Highlight?"),
- num: findType("num"),
- void: findType("~"),
- void_Function_Object: findType("~(Object)"),
- void_Function_Object_StackTrace: findType("~(Object,StackTrace)")
- };
- })();
- (function constants() {
- var makeConstList = hunkHelpers.makeConstList;
- B.Interceptor_methods = J.Interceptor.prototype;
- B.JSArray_methods = J.JSArray.prototype;
- B.JSInt_methods = J.JSInt.prototype;
- B.JSNull_methods = J.JSNull.prototype;
- B.JSNumber_methods = J.JSNumber.prototype;
- B.JSString_methods = J.JSString.prototype;
- B.JavaScriptFunction_methods = J.JavaScriptFunction.prototype;
- B.JavaScriptObject_methods = J.JavaScriptObject.prototype;
- B.NativeUint32List_methods = A.NativeUint32List.prototype;
- B.NativeUint8List_methods = A.NativeUint8List.prototype;
- B.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype;
- B.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
- B.AsciiEncoder_127 = new A.AsciiEncoder(127);
- B.C_EmptyUnmodifiableSet1 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<String>"));
- B.AtRootQuery_n2q = new A.AtRootQuery(false, B.C_EmptyUnmodifiableSet1, false, true);
- B.AtRootQuery_n2q0 = new A.AtRootQuery0(false, B.C_EmptyUnmodifiableSet1, false, true);
- B.AttributeOperator_4QF = new A.AttributeOperator("=", "equal");
- B.AttributeOperator_4QF0 = new A.AttributeOperator0("=", "equal");
- B.AttributeOperator_61T = new A.AttributeOperator("*=", "substring");
- B.AttributeOperator_61T0 = new A.AttributeOperator0("*=", "substring");
- B.AttributeOperator_cMb = new A.AttributeOperator("^=", "prefix");
- B.AttributeOperator_cMb0 = new A.AttributeOperator0("^=", "prefix");
- B.AttributeOperator_jqB = new A.AttributeOperator("|=", "dash");
- B.AttributeOperator_jqB0 = new A.AttributeOperator0("|=", "dash");
- B.AttributeOperator_qhE = new A.AttributeOperator("$=", "suffix");
- B.AttributeOperator_qhE0 = new A.AttributeOperator0("$=", "suffix");
- B.AttributeOperator_yT8 = new A.AttributeOperator("~=", "include");
- B.AttributeOperator_yT80 = new A.AttributeOperator0("~=", "include");
- B.BinaryOperator_2No = new A.BinaryOperator("times", "*", 6, true, "times");
- B.BinaryOperator_2No0 = new A.BinaryOperator0("times", "*", 6, true, "times");
- B.BinaryOperator_KNx = new A.BinaryOperator("modulo", "%", 6, false, "modulo");
- B.BinaryOperator_KNx0 = new A.BinaryOperator0("modulo", "%", 6, false, "modulo");
- B.BinaryOperator_SPQ = new A.BinaryOperator("less than or equals", "<=", 4, false, "lessThanOrEquals");
- B.BinaryOperator_SPQ0 = new A.BinaryOperator0("less than or equals", "<=", 4, false, "lessThanOrEquals");
- B.BinaryOperator_SjO = new A.BinaryOperator("minus", "-", 5, false, "minus");
- B.BinaryOperator_SjO0 = new A.BinaryOperator0("minus", "-", 5, false, "minus");
- B.BinaryOperator_U77 = new A.BinaryOperator("divided by", "/", 6, false, "dividedBy");
- B.BinaryOperator_U770 = new A.BinaryOperator0("divided by", "/", 6, false, "dividedBy");
- B.BinaryOperator_bEa = new A.BinaryOperator("greater than", ">", 4, false, "greaterThan");
- B.BinaryOperator_bEa0 = new A.BinaryOperator0("greater than", ">", 4, false, "greaterThan");
- B.BinaryOperator_eDt = new A.BinaryOperator("and", "and", 2, true, "and");
- B.BinaryOperator_eDt0 = new A.BinaryOperator0("and", "and", 2, true, "and");
- B.BinaryOperator_g8k = new A.BinaryOperator("equals", "==", 3, false, "equals");
- B.BinaryOperator_g8k0 = new A.BinaryOperator0("equals", "==", 3, false, "equals");
- B.BinaryOperator_icU = new A.BinaryOperator("not equals", "!=", 3, false, "notEquals");
- B.BinaryOperator_icU0 = new A.BinaryOperator0("not equals", "!=", 3, false, "notEquals");
- B.BinaryOperator_miq = new A.BinaryOperator("less than", "<", 4, false, "lessThan");
- B.BinaryOperator_miq0 = new A.BinaryOperator0("less than", "<", 4, false, "lessThan");
- B.BinaryOperator_oEm = new A.BinaryOperator("greater than or equals", ">=", 4, false, "greaterThanOrEquals");
- B.BinaryOperator_oEm0 = new A.BinaryOperator0("greater than or equals", ">=", 4, false, "greaterThanOrEquals");
- B.BinaryOperator_qNM = new A.BinaryOperator("or", "or", 1, true, "or");
- B.BinaryOperator_qNM0 = new A.BinaryOperator0("or", "or", 1, true, "or");
- B.BinaryOperator_u15 = new A.BinaryOperator("plus", "+", 5, true, "plus");
- B.BinaryOperator_u150 = new A.BinaryOperator0("plus", "+", 5, true, "plus");
- B.BinaryOperator_wdM = new A.BinaryOperator("single equals", "=", 0, false, "singleEquals");
- B.BinaryOperator_wdM0 = new A.BinaryOperator0("single equals", "=", 0, false, "singleEquals");
- B.CONSTANT = new A.Instantiation1(A.math0__max$closure(), A.findType("Instantiation1<int>"));
- B.C_AsciiCodec = new A.AsciiCodec();
- B.C_AsciiGlyphSet = new A.AsciiGlyphSet();
- B.C_Base64Encoder = new A.Base64Encoder();
- B.C_Base64Codec = new A.Base64Codec();
- B.C_DefaultEquality = new A.DefaultEquality();
- B.C_EmptyExtensionStore = new A.EmptyExtensionStore();
- B.C_EmptyExtensionStore0 = new A.EmptyExtensionStore0();
- B.C_EmptyIterator = new A.EmptyIterator();
- B.C_EmptyUnmodifiableSet = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<SimpleSelector>"));
- B.C_EmptyUnmodifiableSet0 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<SimpleSelector0>"));
- B.C_IterableEquality = new A.IterableEquality();
- B.C_JS_CONST = function getTagFallback(o) {
- var s = Object.prototype.toString.call(o);
- return s.substring(8, s.length - 1);
- };
- B.C_JS_CONST0 = function() {
- var toStringFunction = Object.prototype.toString;
- function getTag(o) {
- var s = toStringFunction.call(o);
- return s.substring(8, s.length - 1);
- }
- function getUnknownTag(object, tag) {
- if (/^HTML[A-Z].*Element$/.test(tag)) {
- var name = toStringFunction.call(object);
- if (name == "[object Object]") return null;
- return "HTMLElement";
- }
- }
- function getUnknownTagGenericBrowser(object, tag) {
- if (object instanceof HTMLElement) return "HTMLElement";
- return getUnknownTag(object, tag);
- }
- function prototypeForTag(tag) {
- if (typeof window == "undefined") return null;
- if (typeof window[tag] == "undefined") return null;
- var constructor = window[tag];
- if (typeof constructor != "function") return null;
- return constructor.prototype;
- }
- function discriminator(tag) { return null; }
- var isBrowser = typeof HTMLElement == "function";
- return {
- getTag: getTag,
- getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag,
- prototypeForTag: prototypeForTag,
- discriminator: discriminator };
- };
- B.C_JS_CONST6 = function(getTagFallback) {
- return function(hooks) {
- if (typeof navigator != "object") return hooks;
- var userAgent = navigator.userAgent;
- if (typeof userAgent != "string") return hooks;
- if (userAgent.indexOf("DumpRenderTree") >= 0) return hooks;
- if (userAgent.indexOf("Chrome") >= 0) {
- function confirm(p) {
- return typeof window == "object" && window[p] && window[p].name == p;
- }
- if (confirm("Window") && confirm("HTMLElement")) return hooks;
- }
- hooks.getTag = getTagFallback;
- };
- };
- B.C_JS_CONST1 = function(hooks) {
- if (typeof dartExperimentalFixupGetTag != "function") return hooks;
- hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
- };
- B.C_JS_CONST5 = function(hooks) {
- if (typeof navigator != "object") return hooks;
- var userAgent = navigator.userAgent;
- if (typeof userAgent != "string") return hooks;
- if (userAgent.indexOf("Firefox") == -1) return hooks;
- var getTag = hooks.getTag;
- var quickMap = {
- "BeforeUnloadEvent": "Event",
- "DataTransfer": "Clipboard",
- "GeoGeolocation": "Geolocation",
- "Location": "!Location",
- "WorkerMessageEvent": "MessageEvent",
- "XMLDocument": "!Document"};
- function getTagFirefox(o) {
- var tag = getTag(o);
- return quickMap[tag] || tag;
- }
- hooks.getTag = getTagFirefox;
- };
- B.C_JS_CONST4 = function(hooks) {
- if (typeof navigator != "object") return hooks;
- var userAgent = navigator.userAgent;
- if (typeof userAgent != "string") return hooks;
- if (userAgent.indexOf("Trident/") == -1) return hooks;
- var getTag = hooks.getTag;
- var quickMap = {
- "BeforeUnloadEvent": "Event",
- "DataTransfer": "Clipboard",
- "HTMLDDElement": "HTMLElement",
- "HTMLDTElement": "HTMLElement",
- "HTMLPhraseElement": "HTMLElement",
- "Position": "Geoposition"
- };
- function getTagIE(o) {
- var tag = getTag(o);
- var newTag = quickMap[tag];
- if (newTag) return newTag;
- if (tag == "Object") {
- if (window.DataView && (o instanceof window.DataView)) return "DataView";
- }
- return tag;
- }
- function prototypeForTagIE(tag) {
- var constructor = window[tag];
- if (constructor == null) return null;
- return constructor.prototype;
- }
- hooks.getTag = getTagIE;
- hooks.prototypeForTag = prototypeForTagIE;
- };
- B.C_JS_CONST2 = function(hooks) {
- var getTag = hooks.getTag;
- var prototypeForTag = hooks.prototypeForTag;
- function getTagFixed(o) {
- var tag = getTag(o);
- if (tag == "Document") {
- if (!!o.xmlVersion) return "!Document";
- return "!HTMLDocument";
- }
- return tag;
- }
- function prototypeForTagFixed(tag) {
- if (tag == "Document") return null;
- return prototypeForTag(tag);
- }
- hooks.getTag = getTagFixed;
- hooks.prototypeForTag = prototypeForTagFixed;
- };
- B.C_JS_CONST3 = function(hooks) { return hooks; }
- ;
- B.C_JsonCodec = new A.JsonCodec();
- B.C_ListEquality0 = new A.ListEquality();
- B.C_ListEquality = new A.ListEquality();
- B.C_MapEquality = new A.MapEquality(A.findType("MapEquality<Object,Object>"));
- B.C_OutOfMemoryError = new A.OutOfMemoryError();
- B.C_SentinelValue = new A.SentinelValue();
- B.C_UnicodeGlyphSet = new A.UnicodeGlyphSet();
- B.C_Utf8Codec = new A.Utf8Codec();
- B.C_Utf8Encoder = new A.Utf8Encoder();
- B.C__DelayedDone = new A._DelayedDone();
- B.C__HasContentVisitor = new A._HasContentVisitor();
- B.C__HasContentVisitor0 = new A._HasContentVisitor0();
- B.C__IsUselessVisitor = new A._IsUselessVisitor();
- B.C__IsUselessVisitor0 = new A._IsUselessVisitor0();
- B.C__JSRandom = new A._JSRandom();
- B.C__MakeExpressionCalculationSafe = new A._MakeExpressionCalculationSafe();
- B.C__MakeExpressionCalculationSafe0 = new A._MakeExpressionCalculationSafe0();
- B.C__ParentSelectorVisitor = new A._ParentSelectorVisitor();
- B.C__ParentSelectorVisitor0 = new A._ParentSelectorVisitor0();
- B.C__Required = new A._Required();
- B.C__RootZone = new A._RootZone();
- B.C__SassNull = new A._SassNull();
- B.C__SassNull0 = new A._SassNull0();
- B.CalculationOperator_171 = new A.CalculationOperator("times", "*", 2, "times");
- B.CalculationOperator_1710 = new A.CalculationOperator0("times", "*", 2, "times");
- B.CalculationOperator_CxF = new A.CalculationOperator("minus", "-", 1, "minus");
- B.CalculationOperator_CxF0 = new A.CalculationOperator0("minus", "-", 1, "minus");
- B.CalculationOperator_Qf1 = new A.CalculationOperator("divided by", "/", 2, "dividedBy");
- B.CalculationOperator_Qf10 = new A.CalculationOperator0("divided by", "/", 2, "dividedBy");
- B.CalculationOperator_g2q = new A.CalculationOperator("plus", "+", 1, "plus");
- B.CalculationOperator_g2q0 = new A.CalculationOperator0("plus", "+", 1, "plus");
- B.ChangeType_add = new A.ChangeType("add");
- B.ChangeType_modify = new A.ChangeType("modify");
- B.ChangeType_remove = new A.ChangeType("remove");
- B.Combinator_8I8 = new A.Combinator(">", "child");
- B.Combinator_8I80 = new A.Combinator0(">", "child");
- B.Combinator_gRV = new A.Combinator("+", "nextSibling");
- B.Combinator_gRV0 = new A.Combinator0("+", "nextSibling");
- B.Combinator_y18 = new A.Combinator("~", "followingSibling");
- B.Combinator_y180 = new A.Combinator0("~", "followingSibling");
- B.Object_empty = {};
- B.Map_empty17 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,ConfiguredValue>"));
- B.Configuration_Map_empty_null = new A.Configuration(B.Map_empty17, null);
- B.Map_empty18 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,ConfiguredValue0>"));
- B.Configuration_Map_empty_null0 = new A.Configuration0(B.Map_empty18, null);
- B.Deprecation_2Vk = new A.Deprecation("strict-unary", "1.55.0", false, "strictUnary");
- B.Deprecation_2jN = new A.Deprecation("function-units", "1.56.0", false, "functionUnits");
- B.Deprecation_2nU = new A.Deprecation("new-global", "1.17.2", false, "newGlobal");
- B.Deprecation_5pG = new A.Deprecation0("bogus-combinators", "1.54.0", "Leading, trailing, and repeated combinators.", false, "bogusCombinators");
- B.Deprecation_Agq = new A.Deprecation0("calc-interp", null, null, false, "calcInterp");
- B.Deprecation_B4v = new A.Deprecation("fs-importer-cwd", "1.73.0", false, "fsImporterCwd");
- B.Deprecation_E8a = new A.Deprecation0("slash-div", "1.33.0", "/ operator for division.", false, "slashDiv");
- B.Deprecation_EJz = new A.Deprecation("elseif", "1.3.2", false, "elseif");
- B.Deprecation_EfO = new A.Deprecation0("color-module-compat", "1.23.0", "Using color module functions in place of plain CSS functions.", false, "colorModuleCompat");
- B.Deprecation_FGJ = new A.Deprecation0("mixed-decls", "1.77.7", "Declarations after or between nested rules.", false, "mixedDecls");
- B.Deprecation_GFc = new A.Deprecation("abs-percent", "1.65.0", false, "absPercent");
- B.Deprecation_HJ0 = new A.Deprecation("css-function-mixin", "1.76.0", false, "cssFunctionMixin");
- B.Deprecation_IMm = new A.Deprecation("relative-canonical", "1.14.2", false, "relativeCanonical");
- B.Deprecation_Iit = new A.Deprecation0("moz-document", "1.7.2", "@-moz-document.", false, "mozDocument");
- B.Deprecation_JeE = new A.Deprecation("user-authored", null, false, "userAuthored");
- B.Deprecation_MMc = new A.Deprecation0("call-string", "0.0.0", "Passing a string directly to meta.call().", false, "callString");
- B.Deprecation_Ssf = new A.Deprecation0("relative-canonical", "1.14.2", "Imports using relative canonical URLs.", false, "relativeCanonical");
- B.Deprecation_W6Z = new A.Deprecation0("new-global", "1.17.2", "Declaring new variables with !global.", false, "newGlobal");
- B.Deprecation_gf0 = new A.Deprecation("mixed-decls", "1.77.7", false, "mixedDecls");
- B.Deprecation_gkc = new A.Deprecation("call-string", "0.0.0", false, "callString");
- B.Deprecation_iDZ = new A.Deprecation("color-module-compat", "1.23.0", false, "colorModuleCompat");
- B.Deprecation_iXE = new A.Deprecation0("duplicate-var-flags", "1.62.0", "Using !default or !global multiple times for one variable.", false, "duplicateVarFlags");
- B.Deprecation_ido = new A.Deprecation("bogus-combinators", "1.54.0", false, "bogusCombinators");
- B.Deprecation_import_null_true_import = new A.Deprecation("import", null, true, "import");
- B.Deprecation_jYb = new A.Deprecation0("abs-percent", "1.65.0", "Passing percentages to the Sass abs() function.", false, "absPercent");
- B.Deprecation_kmo = new A.Deprecation0("fs-importer-cwd", "1.73.0", "Using the current working directory as an implicit load path.", false, "fsImporterCwd");
- B.Deprecation_oCX = new A.Deprecation0("function-units", "1.56.0", "Passing invalid units to built-in functions.", false, "functionUnits");
- B.Deprecation_oJv = new A.Deprecation("slash-div", "1.33.0", false, "slashDiv");
- B.Deprecation_omH = new A.Deprecation0("null-alpha", "1.62.3", "Passing null as alpha in the JS API.", false, "nullAlpha");
- B.Deprecation_oty = new A.Deprecation0("user-authored", null, null, false, "userAuthored");
- B.Deprecation_qBS = new A.Deprecation0("css-function-mixin", "1.76.0", "Function and mixin names beginning with --.", false, "cssFunctionMixin");
- B.Deprecation_qd9 = new A.Deprecation0("import", null, "@import rules.", true, "import");
- B.Deprecation_uNF = new A.Deprecation("moz-document", "1.7.2", false, "mozDocument");
- B.Deprecation_woc = new A.Deprecation0("strict-unary", "1.55.0", "Ambiguous + and - operators.", false, "strictUnary");
- B.Deprecation_xw8 = new A.Deprecation0("elseif", "1.3.2", "@elseif.", false, "elseif");
- B.Deprecation_zrt = new A.Deprecation("duplicate-var-flags", "1.62.0", false, "duplicateVarFlags");
- B.Duration_0 = new A.Duration(0);
- B.ExtendMode_allTargets_allTargets = new A.ExtendMode("allTargets", "allTargets");
- B.ExtendMode_allTargets_allTargets0 = new A.ExtendMode0("allTargets", "allTargets");
- B.ExtendMode_normal_normal = new A.ExtendMode("normal", "normal");
- B.ExtendMode_normal_normal0 = new A.ExtendMode0("normal", "normal");
- B.ExtendMode_replace_replace = new A.ExtendMode("replace", "replace");
- B.ExtendMode_replace_replace0 = new A.ExtendMode0("replace", "replace");
- B.JsonDecoder_null = new A.JsonDecoder(null);
- B.JsonEncoder_null = new A.JsonEncoder(null);
- B.LineFeed_75j = new A.LineFeed0("lfcr", "\n\r", "lfcr");
- B.LineFeed_89t = new A.LineFeed0("cr", "\r", "cr");
- B.LineFeed_A4L = new A.LineFeed0("crlf", "\r\n", "crlf");
- B.LineFeed_LvD = new A.LineFeed0("lf", "\n", "lf");
- B.LineFeed_lf = new A.LineFeed("lf");
- B.ListSeparator_ECn = new A.ListSeparator("comma", ",", "comma");
- B.ListSeparator_ECn0 = new A.ListSeparator0("comma", ",", "comma");
- B.ListSeparator_cQA = new A.ListSeparator("slash", "/", "slash");
- B.ListSeparator_cQA0 = new A.ListSeparator0("slash", "/", "slash");
- B.ListSeparator_nbm = new A.ListSeparator("space", " ", "space");
- B.ListSeparator_nbm0 = new A.ListSeparator0("space", " ", "space");
- B.ListSeparator_undecided_null_undecided = new A.ListSeparator("undecided", null, "undecided");
- B.ListSeparator_undecided_null_undecided0 = new A.ListSeparator0("undecided", null, "undecided");
- B.List_2jN = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_int);
- B.List_42A = A._setArrayType(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_int);
- B.List_4AN = A._setArrayType(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_int);
- B.Object_79D = {em: 0, rem: 1, ex: 2, rex: 3, cap: 4, rcap: 5, ch: 6, rch: 7, ic: 8, ric: 9, lh: 10, rlh: 11, vw: 12, lvw: 13, svw: 14, dvw: 15, vh: 16, lvh: 17, svh: 18, dvh: 19, vi: 20, lvi: 21, svi: 22, dvi: 23, vb: 24, lvb: 25, svb: 26, dvb: 27, vmin: 28, lvmin: 29, svmin: 30, dvmin: 31, vmax: 32, lvmax: 33, svmax: 34, dvmax: 35, cqw: 36, cqh: 37, cqi: 38, cqb: 39, cqmin: 40, cqmax: 41, cm: 42, mm: 43, q: 44, in: 45, pt: 46, pc: 47, px: 48};
- B.Set_ot1A = new A.ConstantStringSet(B.Object_79D, 49, type$.ConstantStringSet_String);
- B.Object_Yf3 = {deg: 0, grad: 1, rad: 2, turn: 3};
- B.Set_YZQG9 = new A.ConstantStringSet(B.Object_Yf3, 4, type$.ConstantStringSet_String);
- B.Object_s_0_ms_1 = {s: 0, ms: 1};
- B.Set_wEo81 = new A.ConstantStringSet(B.Object_s_0_ms_1, 2, type$.ConstantStringSet_String);
- B.Object_hz_0_khz_1 = {hz: 0, khz: 1};
- B.Set_y00Wb = new A.ConstantStringSet(B.Object_hz_0_khz_1, 2, type$.ConstantStringSet_String);
- B.Object_3CF = {dpi: 0, dpcm: 1, dppx: 2};
- B.Set_Db0y4 = new A.ConstantStringSet(B.Object_3CF, 3, type$.ConstantStringSet_String);
- B.List_Eeh = A._setArrayType(makeConstList([B.Set_ot1A, B.Set_YZQG9, B.Set_wEo81, B.Set_y00Wb, B.Set_Db0y4]), A.findType("JSArray<Set<String>>"));
- B.List_GVy = A._setArrayType(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_int);
- B.List_M2I0 = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
- B.List_M2I = A._setArrayType(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
- B.List_VOY = A._setArrayType(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_int);
- B.Deprecation_gQW = new A.Deprecation("null-alpha", "1.62.3", false, "nullAlpha");
- B.Deprecation_ErI = new A.Deprecation("calc-interp", null, false, "calcInterp");
- B.List_Yb0 = A._setArrayType(makeConstList([B.Deprecation_gkc, B.Deprecation_EJz, B.Deprecation_uNF, B.Deprecation_IMm, B.Deprecation_2nU, B.Deprecation_iDZ, B.Deprecation_oJv, B.Deprecation_ido, B.Deprecation_2Vk, B.Deprecation_2jN, B.Deprecation_zrt, B.Deprecation_gQW, B.Deprecation_GFc, B.Deprecation_B4v, B.Deprecation_HJ0, B.Deprecation_gf0, B.Deprecation_import_null_true_import, B.Deprecation_JeE, B.Deprecation_ErI]), A.findType("JSArray<Deprecation>"));
- B.List_empty11 = A._setArrayType(makeConstList([]), type$.JSArray_Argument);
- B.List_empty22 = A._setArrayType(makeConstList([]), type$.JSArray_Argument_2);
- B.List_empty24 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncCallable_2);
- B.List_empty25 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncImporter);
- B.List_empty1 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector);
- B.List_empty14 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector_2);
- B.List_empty2 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent);
- B.List_empty15 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent_2);
- B.List_empty10 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable);
- B.List_empty21 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable_2);
- B.List_empty3 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode);
- B.List_empty16 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode_2);
- B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_CssValue_Combinator);
- B.List_empty13 = A._setArrayType(makeConstList([]), type$.JSArray_CssValue_Combinator_2);
- B.List_empty9 = A._setArrayType(makeConstList([]), type$.JSArray_Expression);
- B.List_empty20 = A._setArrayType(makeConstList([]), type$.JSArray_Expression_2);
- B.List_empty5 = A._setArrayType(makeConstList([]), type$.JSArray_Extension);
- B.List_empty17 = A._setArrayType(makeConstList([]), type$.JSArray_Extension_2);
- B.List_empty23 = A._setArrayType(makeConstList([]), type$.JSArray_Importer_2);
- B.List_empty7 = A._setArrayType(makeConstList([]), A.findType("JSArray<Module0<0&>>"));
- B.List_empty18 = A._setArrayType(makeConstList([]), A.findType("JSArray<Module1<0&>>"));
- B.List_empty12 = A._setArrayType(makeConstList([]), type$.JSArray_Statement);
- B.List_empty = A._setArrayType(makeConstList([]), type$.JSArray_String);
- B.List_empty8 = A._setArrayType(makeConstList([]), type$.JSArray_Value);
- B.List_empty19 = A._setArrayType(makeConstList([]), type$.JSArray_Value_2);
- B.List_empty4 = A._setArrayType(makeConstList([]), type$.JSArray_int);
- B.List_empty6 = A._setArrayType(makeConstList([]), type$.JSArray_dynamic);
- B.List_kUZ = A._setArrayType(makeConstList([B.CalculationOperator_g2q0, B.CalculationOperator_CxF0, B.CalculationOperator_1710, B.CalculationOperator_Qf10]), A.findType("JSArray<CalculationOperator0>"));
- B.List_oyU = A._setArrayType(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_int);
- B.List_piR = A._setArrayType(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_int);
- B.List_wIq = A._setArrayType(makeConstList([B.Deprecation_MMc, B.Deprecation_xw8, B.Deprecation_Iit, B.Deprecation_Ssf, B.Deprecation_W6Z, B.Deprecation_EfO, B.Deprecation_E8a, B.Deprecation_5pG, B.Deprecation_woc, B.Deprecation_oCX, B.Deprecation_iXE, B.Deprecation_omH, B.Deprecation_jYb, B.Deprecation_kmo, B.Deprecation_qBS, B.Deprecation_FGJ, B.Deprecation_qd9, B.Deprecation_oty, B.Deprecation_Agq]), A.findType("JSArray<Deprecation0>"));
- B.Object_Jgz = {length: 0, angle: 1, time: 2, frequency: 3, "pixel density": 4};
- B.List_Mul = A._setArrayType(makeConstList(["in", "cm", "pc", "mm", "q", "pt", "px"]), type$.JSArray_String);
- B.List_deg_grad_rad_turn = A._setArrayType(makeConstList(["deg", "grad", "rad", "turn"]), type$.JSArray_String);
- B.List_s_ms = A._setArrayType(makeConstList(["s", "ms"]), type$.JSArray_String);
- B.List_Hz_kHz = A._setArrayType(makeConstList(["Hz", "kHz"]), type$.JSArray_String);
- B.List_dpi_dpcm_dppx = A._setArrayType(makeConstList(["dpi", "dpcm", "dppx"]), type$.JSArray_String);
- B.Map_397RH = new A.ConstantStringMap(B.Object_Jgz, [B.List_Mul, B.List_deg_grad_rad_turn, B.List_s_ms, B.List_Hz_kHz, B.List_dpi_dpcm_dppx], A.findType("ConstantStringMap<String,List<String>>"));
- B.Map_empty7 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module0<AsyncCallable>,List<CssComment>>"));
- B.Map_empty0 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module0<Callable0>,List<CssComment>>"));
- B.Map_empty2 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module0<0&>,List<CssComment>>"));
- B.Map_empty15 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module1<AsyncCallable0>,List<CssComment0>>"));
- B.Map_empty9 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module1<Callable>,List<CssComment0>>"));
- B.Map_empty11 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module1<0&>,List<CssComment0>>"));
- B.Map_empty4 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,AstNode>"));
- B.Map_empty12 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,AstNode0>"));
- B.Map_empty6 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Expression>"));
- B.Map_empty14 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Expression0>"));
- B.Map_empty8 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module0<AsyncCallable>>"));
- B.Map_empty1 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module0<Callable0>>"));
- B.Map_empty16 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module1<AsyncCallable0>>"));
- B.Map_empty10 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module1<Callable>>"));
- B.Map_empty5 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Value>"));
- B.Map_empty13 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Value0>"));
- B.Map_empty3 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Symbol0,@>"));
- B.Map_empty = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String?,String>"));
- B.Object_AiQ = {in: 0, cm: 1, pc: 2, mm: 3, q: 4, pt: 5, px: 6, deg: 7, grad: 8, rad: 9, turn: 10, s: 11, ms: 12, Hz: 13, kHz: 14, dpi: 15, dpcm: 16, dppx: 17};
- B.Object_Uy1 = {in: 0, cm: 1, pc: 2, mm: 3, q: 4, pt: 5, px: 6};
- B.Map_MuACk = new A.ConstantStringMap(B.Object_Uy1, [1, 0.39370078740157477, 0.16666666666666666, 0.03937007874015748, 0.00984251968503937, 0.013888888888888888, 0.010416666666666666], type$.ConstantStringMap_String_double);
- B.Map_MuHeh = new A.ConstantStringMap(B.Object_Uy1, [2.54, 1, 0.42333333333333334, 0.1, 0.025, 0.035277777777777776, 0.026458333333333334], type$.ConstantStringMap_String_double);
- B.Map_Mudgs = new A.ConstantStringMap(B.Object_Uy1, [6, 2.3622047244094486, 1, 0.2362204724409449, 0.05905511811023623, 0.08333333333333333, 0.0625], type$.ConstantStringMap_String_double);
- B.Map_Mu8oi = new A.ConstantStringMap(B.Object_Uy1, [25.4, 10, 4.233333333333333, 1, 0.25, 0.35277777777777775, 0.26458333333333334], type$.ConstantStringMap_String_double);
- B.Map_MusBb = new A.ConstantStringMap(B.Object_Uy1, [101.6, 40, 16.933333333333334, 4, 1, 1.411111111111111, 1.0583333333333333], type$.ConstantStringMap_String_double);
- B.Map_MuX5a = new A.ConstantStringMap(B.Object_Uy1, [72, 28.346456692913385, 12, 2.834645669291339, 0.7086614173228347, 1, 0.75], type$.ConstantStringMap_String_double);
- B.Map_MuVWp = new A.ConstantStringMap(B.Object_Uy1, [96, 37.79527559055118, 16, 3.7795275590551185, 0.9448818897637796, 1.3333333333333333, 1], type$.ConstantStringMap_String_double);
- B.Map_P98ha = new A.ConstantStringMap(B.Object_Yf3, [1, 0.9, 57.29577951308232, 360], type$.ConstantStringMap_String_double);
- B.Map_P9IYz = new A.ConstantStringMap(B.Object_Yf3, [1.1111111111111112, 1, 63.66197723675813, 400], type$.ConstantStringMap_String_double);
- B.Map_P9t42 = new A.ConstantStringMap(B.Object_Yf3, [0.017453292519943295, 0.015707963267948967, 1, 6.283185307179586], type$.ConstantStringMap_String_double);
- B.Map_P9ZUB = new A.ConstantStringMap(B.Object_Yf3, [0.002777777777777778, 0.0025, 0.15915494309189535, 1], type$.ConstantStringMap_String_double);
- B.Map_kUCK0 = new A.ConstantStringMap(B.Object_s_0_ms_1, [1, 0.001], type$.ConstantStringMap_String_double);
- B.Map_kUfVB = new A.ConstantStringMap(B.Object_s_0_ms_1, [1000, 1], type$.ConstantStringMap_String_double);
- B.Object_Hz_0_kHz_1 = {Hz: 0, kHz: 1};
- B.Map_WfkC8 = new A.ConstantStringMap(B.Object_Hz_0_kHz_1, [1, 1000], type$.ConstantStringMap_String_double);
- B.Map_Wfs7p = new A.ConstantStringMap(B.Object_Hz_0_kHz_1, [0.001, 1], type$.ConstantStringMap_String_double);
- B.Map_dgy9B = new A.ConstantStringMap(B.Object_3CF, [1, 2.54, 96], type$.ConstantStringMap_String_double);
- B.Map_dgLkt = new A.ConstantStringMap(B.Object_3CF, [0.39370078740157477, 1, 37.79527559055118], type$.ConstantStringMap_String_double);
- B.Map_dgw3K = new A.ConstantStringMap(B.Object_3CF, [0.010416666666666666, 0.026458333333333334, 1], type$.ConstantStringMap_String_double);
- B.Map_gQqJO = new A.ConstantStringMap(B.Object_AiQ, [B.Map_MuACk, B.Map_MuHeh, B.Map_Mudgs, B.Map_Mu8oi, B.Map_MusBb, B.Map_MuX5a, B.Map_MuVWp, B.Map_P98ha, B.Map_P9IYz, B.Map_P9t42, B.Map_P9ZUB, B.Map_kUCK0, B.Map_kUfVB, B.Map_WfkC8, B.Map_Wfs7p, B.Map_dgy9B, B.Map_dgLkt, B.Map_dgw3K], A.findType("ConstantStringMap<String,Map<String,double>>"));
- B.OptionType_I6i = new A.OptionType("OptionType.flag");
- B.OptionType_tew = new A.OptionType("OptionType.single");
- B.OptionType_yPm = new A.OptionType("OptionType.multiple");
- B.OutputStyle_0 = new A.OutputStyle("expanded");
- B.OutputStyle_00 = new A.OutputStyle0("expanded");
- B.OutputStyle_1 = new A.OutputStyle("compressed");
- B.OutputStyle_10 = new A.OutputStyle0("compressed");
- B.Map_empty19 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<SelectorList,Box<SelectorList>>"));
- B.Record2_EmptyExtensionStore_Map_empty = new A._Record_2(B.C_EmptyExtensionStore, B.Map_empty19);
- B.Map_empty20 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<SelectorList0,Box0<SelectorList0>>"));
- B.Record2_EmptyExtensionStore_Map_empty0 = new A._Record_2(B.C_EmptyExtensionStore0, B.Map_empty20);
- B.SassBoolean_false = new A.SassBoolean(false);
- B.SassBoolean_false0 = new A.SassBoolean0(false);
- B.SassBoolean_true = new A.SassBoolean(true);
- B.SassBoolean_true0 = new A.SassBoolean0(true);
- B.SassList_bdS = new A.SassList(B.List_empty8, B.ListSeparator_ECn, false);
- B.SassList_bdS0 = new A.SassList(B.List_empty8, B.ListSeparator_ECn, true);
- B.SassList_bdS1 = new A.SassList0(B.List_empty19, B.ListSeparator_ECn0, false);
- B.SassList_bdS2 = new A.SassList0(B.List_empty19, B.ListSeparator_ECn0, true);
- B.SassList_k8F = new A.SassList0(B.List_empty19, B.ListSeparator_undecided_null_undecided0, false);
- B.Map_empty21 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Value,Value>"));
- B.SassMap_Map_empty = new A.SassMap(B.Map_empty21);
- B.Map_empty22 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Value0,Value0>"));
- B.SassMap_Map_empty0 = new A.SassMap0(B.Map_empty22);
- B.Object_oyn = {".scss": 0, ".sass": 1, ".css": 2};
- B.Set_0 = new A.ConstantStringSet(B.Object_oyn, 3, type$.ConstantStringSet_String);
- B.Object_6Gw = {sass: 0, style: 1, default: 2};
- B.Set_TnQrk = new A.ConstantStringSet(B.Object_6Gw, 3, type$.ConstantStringSet_String);
- B.Set_empty1 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<CssMediaQuery>"));
- B.Set_empty5 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<CssMediaQuery0>"));
- B.Set_empty2 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module0<AsyncCallable>>"));
- B.Set_empty0 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module0<Callable0>>"));
- B.Set_empty6 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module1<AsyncCallable0>>"));
- B.Set_empty4 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module1<Callable>>"));
- B.Set_empty7 = new A.ConstantStringSet(B.Object_empty, 0, type$.ConstantStringSet_String);
- B.Set_empty3 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<StylesheetNode>"));
- B.Set_empty = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Uri>"));
- B.Object_q8Y = {is: 0, matches: 1, where: 2};
- B.Set_mlzm2 = new A.ConstantStringSet(B.Object_q8Y, 3, type$.ConstantStringSet_String);
- B.Set_mqKz = new A.GeneralConstantSet([B.BinaryOperator_2No, B.BinaryOperator_U77, B.BinaryOperator_u15, B.BinaryOperator_SjO], A.findType("GeneralConstantSet<BinaryOperator>"));
- B.Set_mqKz0 = new A.GeneralConstantSet([B.BinaryOperator_2No0, B.BinaryOperator_U770, B.BinaryOperator_u150, B.BinaryOperator_SjO0], A.findType("GeneralConstantSet<BinaryOperator0>"));
- B.Object_GUq = {calc: 0, clamp: 1, hypot: 2, sin: 3, cos: 4, tan: 5, asin: 6, acos: 7, atan: 8, sqrt: 9, exp: 10, sign: 11, mod: 12, rem: 13, atan2: 14, pow: 15, log: 16};
- B.Set_yHF81 = new A.ConstantStringSet(B.Object_GUq, 17, type$.ConstantStringSet_String);
- B.StderrLogger_false = new A.StderrLogger(false);
- B.StderrLogger_false0 = new A.StderrLogger0(false);
- B.Symbol__canonicalizeContext = new A.Symbol("_canonicalizeContext");
- B.Symbol__evaluationContext = new A.Symbol("_evaluationContext");
- B.Symbol__extensions = new A.Symbol("_extensions");
- B.Symbol__sourceSpecificity = new A.Symbol("_sourceSpecificity");
- B.Symbol_call = new A.Symbol("call");
- B.Syntax_CSS_css = new A.Syntax("CSS", "css");
- B.Syntax_CSS_css0 = new A.Syntax0("CSS", "css");
- B.Syntax_SCSS_scss = new A.Syntax("SCSS", "scss");
- B.Syntax_SCSS_scss0 = new A.Syntax0("SCSS", "scss");
- B.Syntax_Sass_sass = new A.Syntax("Sass", "sass");
- B.Syntax_Sass_sass0 = new A.Syntax0("Sass", "sass");
- B.Type_ByteBuffer_EOZ = A.typeLiteral("ByteBuffer");
- B.Type_ByteData_mF8 = A.typeLiteral("ByteData");
- B.Type_Float32List_Ymk = A.typeLiteral("Float32List");
- B.Type_Float64List_Ymk = A.typeLiteral("Float64List");
- B.Type_Int16List_cot = A.typeLiteral("Int16List");
- B.Type_Int32List_m1p = A.typeLiteral("Int32List");
- B.Type_Int8List_woc = A.typeLiteral("Int8List");
- B.Type_Object_QJv = A.typeLiteral("Object");
- B.Type_Uint16List_2mh = A.typeLiteral("Uint16List");
- B.Type_Uint32List_2mh = A.typeLiteral("Uint32List");
- B.Type_Uint8ClampedList_9Bb = A.typeLiteral("Uint8ClampedList");
- B.Type_Uint8List_CSc = A.typeLiteral("Uint8List");
- B.UnaryOperator_AiQ = new A.UnaryOperator("minus", "-", "minus");
- B.UnaryOperator_AiQ0 = new A.UnaryOperator0("minus", "-", "minus");
- B.UnaryOperator_SJr = new A.UnaryOperator("divide", "/", "divide");
- B.UnaryOperator_SJr0 = new A.UnaryOperator0("divide", "/", "divide");
- B.UnaryOperator_cLp = new A.UnaryOperator("plus", "+", "plus");
- B.UnaryOperator_cLp0 = new A.UnaryOperator0("plus", "+", "plus");
- B.UnaryOperator_not_not_not = new A.UnaryOperator("not", "not", "not");
- B.UnaryOperator_not_not_not0 = new A.UnaryOperator0("not", "not", "not");
- B.Utf8Decoder_false = new A.Utf8Decoder(false);
- B._ColorFormatEnum_hslFunction = new A._ColorFormatEnum("hslFunction");
- B._ColorFormatEnum_hslFunction0 = new A._ColorFormatEnum0("hslFunction");
- B._ColorFormatEnum_rgbFunction = new A._ColorFormatEnum("rgbFunction");
- B._ColorFormatEnum_rgbFunction0 = new A._ColorFormatEnum0("rgbFunction");
- B._IsBogusVisitor_false = new A._IsBogusVisitor(false);
- B._IsBogusVisitor_false0 = new A._IsBogusVisitor0(false);
- B._IsBogusVisitor_true = new A._IsBogusVisitor(true);
- B._IsBogusVisitor_true0 = new A._IsBogusVisitor0(true);
- B._IsInvisibleVisitor_false = new A._IsInvisibleVisitor0(false);
- B._IsInvisibleVisitor_false0 = new A._IsInvisibleVisitor2(false);
- B._IsInvisibleVisitor_false_false = new A._IsInvisibleVisitor(false, false);
- B._IsInvisibleVisitor_false_false0 = new A._IsInvisibleVisitor1(false, false);
- B._IsInvisibleVisitor_true = new A._IsInvisibleVisitor0(true);
- B._IsInvisibleVisitor_true0 = new A._IsInvisibleVisitor2(true);
- B._IsInvisibleVisitor_true_false = new A._IsInvisibleVisitor(true, false);
- B._IsInvisibleVisitor_true_false0 = new A._IsInvisibleVisitor1(true, false);
- B._IsInvisibleVisitor_true_true = new A._IsInvisibleVisitor(true, true);
- B._IsInvisibleVisitor_true_true0 = new A._IsInvisibleVisitor1(true, true);
- B._PathDirection_3KU = new A._PathDirection("above root");
- B._PathDirection_8OV = new A._PathDirection("at root");
- B._PathDirection_e7w = new A._PathDirection("reaches root");
- B._PathDirection_yLX = new A._PathDirection("below root");
- B._PathRelation_different = new A._PathRelation("different");
- B._PathRelation_equal = new A._PathRelation("equal");
- B._PathRelation_inconclusive = new A._PathRelation("inconclusive");
- B._PathRelation_within = new A._PathRelation("within");
- B._SingletonCssMediaQueryMergeResult_0 = new A._SingletonCssMediaQueryMergeResult("empty");
- B._SingletonCssMediaQueryMergeResult_00 = new A._SingletonCssMediaQueryMergeResult0("empty");
- B._SingletonCssMediaQueryMergeResult_1 = new A._SingletonCssMediaQueryMergeResult("unrepresentable");
- B._SingletonCssMediaQueryMergeResult_10 = new A._SingletonCssMediaQueryMergeResult0("unrepresentable");
- B._StreamGroupState_canceled = new A._StreamGroupState("canceled");
- B._StreamGroupState_dormant = new A._StreamGroupState("dormant");
- B._StreamGroupState_listening = new A._StreamGroupState("listening");
- B._StreamGroupState_paused = new A._StreamGroupState("paused");
- B._StringStackTrace_uwd = new A._StringStackTrace("");
- B._ZoneFunction_NIe = new A._ZoneFunction(B.C__RootZone, A.async___rootHandleUncaughtError$closure());
- B._ZoneFunction_QOa = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterUnaryCallback$closure());
- B._ZoneFunction__RootZone__rootCreateTimer = new A._ZoneFunction(B.C__RootZone, A.async___rootCreateTimer$closure());
- B._ZoneFunction__RootZone__rootErrorCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootErrorCallback$closure());
- B._ZoneFunction__RootZone__rootFork = new A._ZoneFunction(B.C__RootZone, A.async___rootFork$closure());
- B._ZoneFunction__RootZone__rootPrint = new A._ZoneFunction(B.C__RootZone, A.async___rootPrint$closure());
- B._ZoneFunction__RootZone__rootRegisterCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterCallback$closure());
- B._ZoneFunction__RootZone__rootRun = new A._ZoneFunction(B.C__RootZone, A.async___rootRun$closure());
- B._ZoneFunction__RootZone__rootRunBinary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunBinary$closure());
- B._ZoneFunction__RootZone__rootRunUnary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunUnary$closure());
- B._ZoneFunction__RootZone__rootScheduleMicrotask = new A._ZoneFunction(B.C__RootZone, A.async___rootScheduleMicrotask$closure());
- B._ZoneFunction_kWM = new A._ZoneFunction(B.C__RootZone, A.async___rootCreatePeriodicTimer$closure());
- B._ZoneFunction_qxw = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterBinaryCallback$closure());
- B._ZoneSpecification_48t = new A._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null);
- })();
- (function staticFields() {
- $._JS_INTEROP_INTERCEPTOR_TAG = null;
- $.toStringVisiting = A._setArrayType([], type$.JSArray_Object);
- $.printToZone = null;
- $.Primitives__identityHashCodeProperty = null;
- $.BoundClosure__receiverFieldNameCache = null;
- $.BoundClosure__interceptorFieldNameCache = null;
- $.getTagFunction = null;
- $.alternateTagFunction = null;
- $.prototypeForTagFunction = null;
- $.dispatchRecordsForInstanceTags = null;
- $.interceptorsForUncacheableTags = null;
- $.initNativeDispatchFlag = null;
- $._Record__computedFieldKeys = A._setArrayType([], A.findType("JSArray<List<Object>?>"));
- $._nextCallback = null;
- $._lastCallback = null;
- $._lastPriorityCallback = null;
- $._isInCallbackLoop = false;
- $.Zone__current = B.C__RootZone;
- $._RootZone__rootDelegate = null;
- $.Uri__cachedBaseString = "";
- $.Uri__cachedBaseUri = null;
- $._fs = null;
- $._currentUriBase = null;
- $._current = null;
- $._subselectorPseudos = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String);
- $._rootishPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String);
- $._features = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
- $._realCaseCache = function() {
- var t1 = type$.String;
- return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- }();
- $._selectorPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String);
- $._selectorPseudoElements = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
- $._glyphs = B.C_UnicodeGlyphSet;
- $._rootishPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String);
- $._realCaseCache0 = function() {
- var t1 = type$.String;
- return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- }();
- $._features0 = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
- $._selectorPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String);
- $._selectorPseudoElements0 = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
- $._subselectorPseudos0 = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String);
- })();
- (function lazyInitializers() {
- var _lazyFinal = hunkHelpers.lazyFinal,
- _lazy = hunkHelpers.lazy;
- _lazyFinal($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => A.getIsolateAffinityTag("_$dart_dartClosure"));
- _lazyFinal($, "nullFuture", "$get$nullFuture", () => B.C__RootZone.run$1$1(0, new A.nullFuture_closure(), A.findType("Future<Null>")));
- _lazyFinal($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({
- toString: function() {
- return "$receiver$";
- }
- })));
- _lazyFinal($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({$method$: null,
- toString: function() {
- return "$receiver$";
- }
- })));
- _lazyFinal($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(null)));
- _lazyFinal($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() {
- var $argumentsExpr$ = "$arguments$";
- try {
- null.$method$($argumentsExpr$);
- } catch (e) {
- return e.message;
- }
- }()));
- _lazyFinal($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(void 0)));
- _lazyFinal($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() {
- var $argumentsExpr$ = "$arguments$";
- try {
- (void 0).$method$($argumentsExpr$);
- } catch (e) {
- return e.message;
- }
- }()));
- _lazyFinal($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(null)));
- _lazyFinal($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() {
- try {
- null.$method$;
- } catch (e) {
- return e.message;
- }
- }()));
- _lazyFinal($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(void 0)));
- _lazyFinal($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() {
- try {
- (void 0).$method$;
- } catch (e) {
- return e.message;
- }
- }()));
- _lazyFinal($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", () => A._AsyncRun__initializeScheduleImmediate());
- _lazyFinal($, "Future__nullFuture", "$get$Future__nullFuture", () => A.findType("_Future<Null>")._as($.$get$nullFuture()));
- _lazyFinal($, "Future__falseFuture", "$get$Future__falseFuture", () => A._Future$zoneValue(false, B.C__RootZone, type$.bool));
- _lazyFinal($, "_RootZone__rootMap", "$get$_RootZone__rootMap", () => {
- var t1 = type$.dynamic;
- return A.HashMap_HashMap(t1, t1);
- });
- _lazyFinal($, "_Utf8Decoder__reusableBuffer", "$get$_Utf8Decoder__reusableBuffer", () => A.NativeUint8List_NativeUint8List(4096));
- _lazyFinal($, "_Utf8Decoder__decoder", "$get$_Utf8Decoder__decoder", () => new A._Utf8Decoder__decoder_closure().call$0());
- _lazyFinal($, "_Utf8Decoder__decoderNonfatal", "$get$_Utf8Decoder__decoderNonfatal", () => new A._Utf8Decoder__decoderNonfatal_closure().call$0());
- _lazyFinal($, "_Base64Decoder__inverseAlphabet", "$get$_Base64Decoder__inverseAlphabet", () => A.NativeInt8List__create1(A._ensureNativeList(A._setArrayType([-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))));
- _lazyFinal($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", () => {
- var t1 = typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32";
- return t1;
- });
- _lazyFinal($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", () => A.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false));
- _lazyFinal($, "_hashSeed", "$get$_hashSeed", () => A.objectHashCode(B.Type_Object_QJv));
- _lazyFinal($, "_scannerTables", "$get$_scannerTables", () => A._createTables());
- _lazyFinal($, "Option__invalidChars", "$get$Option__invalidChars", () => A.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false));
- _lazyFinal($, "_isStrictMode", "$get$_isStrictMode", () => new A._isStrictMode_closure().call$0());
- _lazyFinal($, "alwaysValid", "$get$alwaysValid", () => new A.alwaysValid_closure());
- _lazyFinal($, "readline", "$get$readline", () => self.readline);
- _lazyFinal($, "windows", "$get$windows", () => A.Context_Context($.$get$Style_windows()));
- _lazyFinal($, "url", "$get$url", () => A.Context_Context($.$get$Style_url()));
- _lazyFinal($, "context", "$get$context", () => new A.Context($.$get$Style_platform(), null));
- _lazyFinal($, "Style_posix", "$get$Style_posix", () => new A.PosixStyle(A.RegExp_RegExp("/", false), A.RegExp_RegExp("[^/]$", false), A.RegExp_RegExp("^/", false)));
- _lazyFinal($, "Style_windows", "$get$Style_windows", () => new A.WindowsStyle(A.RegExp_RegExp("[/\\\\]", false), A.RegExp_RegExp("[^/\\\\]$", false), A.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", false), A.RegExp_RegExp("^[/\\\\](?![/\\\\])", false)));
- _lazyFinal($, "Style_url", "$get$Style_url", () => new A.UrlStyle(A.RegExp_RegExp("/", false), A.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", false), A.RegExp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", false), A.RegExp_RegExp("^/", false)));
- _lazyFinal($, "Style_platform", "$get$Style_platform", () => A.Style__getPlatformStyle());
- _lazyFinal($, "startVersion", "$get$startVersion", () => A.RegExp_RegExp("^(\\d+)\\.(\\d+)\\.(\\d+)(-([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?(\\+([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?", false));
- _lazyFinal($, "completeVersion", "$get$completeVersion", () => A.RegExp_RegExp($.$get$startVersion().pattern + "$", false));
- _lazyFinal($, "IfExpression_declaration", "$get$IfExpression_declaration", () => A.ArgumentDeclaration_ArgumentDeclaration$parse(string$.x40funct, null));
- _lazyFinal($, "colorsByName", "$get$colorsByName", () => A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor$rgb(154, 205, 50, 1), "yellow", A.SassColor$rgb(255, 255, 0, 1), "whitesmoke", A.SassColor$rgb(245, 245, 245, 1), "white", A.SassColor$rgb(255, 255, 255, 1), "wheat", A.SassColor$rgb(245, 222, 179, 1), "violet", A.SassColor$rgb(238, 130, 238, 1), "turquoise", A.SassColor$rgb(64, 224, 208, 1), "transparent", A.SassColor$rgb(0, 0, 0, 0), "tomato", A.SassColor$rgb(255, 99, 71, 1), "thistle", A.SassColor$rgb(216, 191, 216, 1), "teal", A.SassColor$rgb(0, 128, 128, 1), "tan", A.SassColor$rgb(210, 180, 140, 1), "steelblue", A.SassColor$rgb(70, 130, 180, 1), "springgreen", A.SassColor$rgb(0, 255, 127, 1), "snow", A.SassColor$rgb(255, 250, 250, 1), "slategrey", A.SassColor$rgb(112, 128, 144, 1), "slategray", A.SassColor$rgb(112, 128, 144, 1), "slateblue", A.SassColor$rgb(106, 90, 205, 1), "skyblue", A.SassColor$rgb(135, 206, 235, 1), "silver", A.SassColor$rgb(192, 192, 192, 1), "sienna", A.SassColor$rgb(160, 82, 45, 1), "seashell", A.SassColor$rgb(255, 245, 238, 1), "seagreen", A.SassColor$rgb(46, 139, 87, 1), "sandybrown", A.SassColor$rgb(244, 164, 96, 1), "salmon", A.SassColor$rgb(250, 128, 114, 1), "saddlebrown", A.SassColor$rgb(139, 69, 19, 1), "royalblue", A.SassColor$rgb(65, 105, 225, 1), "rosybrown", A.SassColor$rgb(188, 143, 143, 1), "red", A.SassColor$rgb(255, 0, 0, 1), "rebeccapurple", A.SassColor$rgb(102, 51, 153, 1), "purple", A.SassColor$rgb(128, 0, 128, 1), "powderblue", A.SassColor$rgb(176, 224, 230, 1), "plum", A.SassColor$rgb(221, 160, 221, 1), "pink", A.SassColor$rgb(255, 192, 203, 1), "peru", A.SassColor$rgb(205, 133, 63, 1), "peachpuff", A.SassColor$rgb(255, 218, 185, 1), "papayawhip", A.SassColor$rgb(255, 239, 213, 1), "palevioletred", A.SassColor$rgb(219, 112, 147, 1), "paleturquoise", A.SassColor$rgb(175, 238, 238, 1), "palegreen", A.SassColor$rgb(152, 251, 152, 1), "palegoldenrod", A.SassColor$rgb(238, 232, 170, 1), "orchid", A.SassColor$rgb(218, 112, 214, 1), "orangered", A.SassColor$rgb(255, 69, 0, 1), "orange", A.SassColor$rgb(255, 165, 0, 1), "olivedrab", A.SassColor$rgb(107, 142, 35, 1), "olive", A.SassColor$rgb(128, 128, 0, 1), "oldlace", A.SassColor$rgb(253, 245, 230, 1), "navy", A.SassColor$rgb(0, 0, 128, 1), "navajowhite", A.SassColor$rgb(255, 222, 173, 1), "moccasin", A.SassColor$rgb(255, 228, 181, 1), "mistyrose", A.SassColor$rgb(255, 228, 225, 1), "mintcream", A.SassColor$rgb(245, 255, 250, 1), "midnightblue", A.SassColor$rgb(25, 25, 112, 1), "mediumvioletred", A.SassColor$rgb(199, 21, 133, 1), "mediumturquoise", A.SassColor$rgb(72, 209, 204, 1), "mediumspringgreen", A.SassColor$rgb(0, 250, 154, 1), "mediumslateblue", A.SassColor$rgb(123, 104, 238, 1), "mediumseagreen", A.SassColor$rgb(60, 179, 113, 1), "mediumpurple", A.SassColor$rgb(147, 112, 219, 1), "mediumorchid", A.SassColor$rgb(186, 85, 211, 1), "mediumblue", A.SassColor$rgb(0, 0, 205, 1), "mediumaquamarine", A.SassColor$rgb(102, 205, 170, 1), "maroon", A.SassColor$rgb(128, 0, 0, 1), "magenta", A.SassColor$rgb(255, 0, 255, 1), "linen", A.SassColor$rgb(250, 240, 230, 1), "limegreen", A.SassColor$rgb(50, 205, 50, 1), "lime", A.SassColor$rgb(0, 255, 0, 1), "lightyellow", A.SassColor$rgb(255, 255, 224, 1), "lightsteelblue", A.SassColor$rgb(176, 196, 222, 1), "lightslategrey", A.SassColor$rgb(119, 136, 153, 1), "lightslategray", A.SassColor$rgb(119, 136, 153, 1), "lightskyblue", A.SassColor$rgb(135, 206, 250, 1), "lightseagreen", A.SassColor$rgb(32, 178, 170, 1), "lightsalmon", A.SassColor$rgb(255, 160, 122, 1), "lightpink", A.SassColor$rgb(255, 182, 193, 1), "lightgrey", A.SassColor$rgb(211, 211, 211, 1), "lightgreen", A.SassColor$rgb(144, 238, 144, 1), "lightgray", A.SassColor$rgb(211, 211, 211, 1), "lightgoldenrodyellow", A.SassColor$rgb(250, 250, 210, 1), "lightcyan", A.SassColor$rgb(224, 255, 255, 1), "lightcoral", A.SassColor$rgb(240, 128, 128, 1), "lightblue", A.SassColor$rgb(173, 216, 230, 1), "lemonchiffon", A.SassColor$rgb(255, 250, 205, 1), "lawngreen", A.SassColor$rgb(124, 252, 0, 1), "lavenderblush", A.SassColor$rgb(255, 240, 245, 1), "lavender", A.SassColor$rgb(230, 230, 250, 1), "khaki", A.SassColor$rgb(240, 230, 140, 1), "ivory", A.SassColor$rgb(255, 255, 240, 1), "indigo", A.SassColor$rgb(75, 0, 130, 1), "indianred", A.SassColor$rgb(205, 92, 92, 1), "hotpink", A.SassColor$rgb(255, 105, 180, 1), "honeydew", A.SassColor$rgb(240, 255, 240, 1), "grey", A.SassColor$rgb(128, 128, 128, 1), "greenyellow", A.SassColor$rgb(173, 255, 47, 1), "green", A.SassColor$rgb(0, 128, 0, 1), "gray", A.SassColor$rgb(128, 128, 128, 1), "goldenrod", A.SassColor$rgb(218, 165, 32, 1), "gold", A.SassColor$rgb(255, 215, 0, 1), "ghostwhite", A.SassColor$rgb(248, 248, 255, 1), "gainsboro", A.SassColor$rgb(220, 220, 220, 1), "fuchsia", A.SassColor$rgb(255, 0, 255, 1), "forestgreen", A.SassColor$rgb(34, 139, 34, 1), "floralwhite", A.SassColor$rgb(255, 250, 240, 1), "firebrick", A.SassColor$rgb(178, 34, 34, 1), "dodgerblue", A.SassColor$rgb(30, 144, 255, 1), "dimgrey", A.SassColor$rgb(105, 105, 105, 1), "dimgray", A.SassColor$rgb(105, 105, 105, 1), "deepskyblue", A.SassColor$rgb(0, 191, 255, 1), "deeppink", A.SassColor$rgb(255, 20, 147, 1), "darkviolet", A.SassColor$rgb(148, 0, 211, 1), "darkturquoise", A.SassColor$rgb(0, 206, 209, 1), "darkslategrey", A.SassColor$rgb(47, 79, 79, 1), "darkslategray", A.SassColor$rgb(47, 79, 79, 1), "darkslateblue", A.SassColor$rgb(72, 61, 139, 1), "darkseagreen", A.SassColor$rgb(143, 188, 143, 1), "darksalmon", A.SassColor$rgb(233, 150, 122, 1), "darkred", A.SassColor$rgb(139, 0, 0, 1), "darkorchid", A.SassColor$rgb(153, 50, 204, 1), "darkorange", A.SassColor$rgb(255, 140, 0, 1), "darkolivegreen", A.SassColor$rgb(85, 107, 47, 1), "darkmagenta", A.SassColor$rgb(139, 0, 139, 1), "darkkhaki", A.SassColor$rgb(189, 183, 107, 1), "darkgrey", A.SassColor$rgb(169, 169, 169, 1), "darkgreen", A.SassColor$rgb(0, 100, 0, 1), "darkgray", A.SassColor$rgb(169, 169, 169, 1), "darkgoldenrod", A.SassColor$rgb(184, 134, 11, 1), "darkcyan", A.SassColor$rgb(0, 139, 139, 1), "darkblue", A.SassColor$rgb(0, 0, 139, 1), "cyan", A.SassColor$rgb(0, 255, 255, 1), "crimson", A.SassColor$rgb(220, 20, 60, 1), "cornsilk", A.SassColor$rgb(255, 248, 220, 1), "cornflowerblue", A.SassColor$rgb(100, 149, 237, 1), "coral", A.SassColor$rgb(255, 127, 80, 1), "chocolate", A.SassColor$rgb(210, 105, 30, 1), "chartreuse", A.SassColor$rgb(127, 255, 0, 1), "cadetblue", A.SassColor$rgb(95, 158, 160, 1), "burlywood", A.SassColor$rgb(222, 184, 135, 1), "brown", A.SassColor$rgb(165, 42, 42, 1), "blueviolet", A.SassColor$rgb(138, 43, 226, 1), "blue", A.SassColor$rgb(0, 0, 255, 1), "blanchedalmond", A.SassColor$rgb(255, 235, 205, 1), "black", A.SassColor$rgb(0, 0, 0, 1), "bisque", A.SassColor$rgb(255, 228, 196, 1), "beige", A.SassColor$rgb(245, 245, 220, 1), "azure", A.SassColor$rgb(240, 255, 255, 1), "aquamarine", A.SassColor$rgb(127, 255, 212, 1), "aqua", A.SassColor$rgb(0, 255, 255, 1), "antiquewhite", A.SassColor$rgb(250, 235, 215, 1), "aliceblue", A.SassColor$rgb(240, 248, 255, 1)], type$.String, type$.SassColor));
- _lazyFinal($, "namesByColor", "$get$namesByColor", () => {
- var $name,
- t1 = type$.SassColor,
- t2 = type$.String,
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t1 = A.MapExtensions_get_pairs($.$get$colorsByName(), t2, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- $name = t2._0;
- t3.$indexSet(0, t2._1, $name);
- }
- return t3;
- });
- _lazyFinal($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", () => A.isWindows() ? "=" : "\u2501");
- _lazyFinal($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", () => new A.ExecutableOptions__parser_closure().call$0());
- _lazyFinal($, "globalFunctions", "$get$globalFunctions", () => {
- var t1 = type$.BuiltInCallable,
- t2 = A.List_List$of($.$get$global0(), true, t1);
- B.JSArray_methods.addAll$1(t2, $.$get$global1());
- B.JSArray_methods.addAll$1(t2, $.$get$global2());
- B.JSArray_methods.addAll$1(t2, $.$get$global3());
- B.JSArray_methods.addAll$1(t2, $.$get$global4());
- B.JSArray_methods.addAll$1(t2, $.$get$global5());
- B.JSArray_methods.addAll$1(t2, $.$get$global());
- t2.push(A.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure(), null));
- return A.UnmodifiableListView$(t2, t1);
- });
- _lazyFinal($, "coreModules", "$get$coreModules", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], A.findType("JSArray<BuiltInModule<Callable0>>")), type$.BuiltInModule_Callable));
- _lazyFinal($, "_microsoftFilterStart", "$get$_microsoftFilterStart", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false));
- _lazyFinal($, "global", "$get$global0", () => {
- var _s27_ = "$red, $green, $blue, $alpha",
- _s19_ = "$red, $green, $blue",
- _s37_ = "$hue, $saturation, $lightness, $alpha",
- _s29_ = "$hue, $saturation, $lightness",
- _s17_ = "$hue, $saturation",
- _s15_ = "$color, $amount",
- t1 = type$.String,
- t2 = type$.Value_Function_List_Value;
- return A.UnmodifiableListView$(A._setArrayType([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), A.BuiltInCallable$overloadedFunction("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure0(), _s19_, new A.global_closure1(), "$color, $alpha", new A.global_closure2(), "$channels", new A.global_closure3()], t1, t2)), A.BuiltInCallable$overloadedFunction("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure4(), _s19_, new A.global_closure5(), "$color, $alpha", new A.global_closure6(), "$channels", new A.global_closure7()], t1, t2)), A._function4("invert", "$color, $weight: 100%", new A.global_closure8()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), A.BuiltInCallable$overloadedFunction("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure9(), _s29_, new A.global_closure10(), _s17_, new A.global_closure11(), "$channels", new A.global_closure12()], t1, t2)), A.BuiltInCallable$overloadedFunction("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure13(), _s29_, new A.global_closure14(), _s17_, new A.global_closure15(), "$channels", new A.global_closure16()], t1, t2)), A._function4("grayscale", "$color", new A.global_closure17()), A._function4("adjust-hue", "$color, $degrees", new A.global_closure18()), A._function4("lighten", _s15_, new A.global_closure19()), A._function4("darken", _s15_, new A.global_closure20()), A.BuiltInCallable$overloadedFunction("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure21(), "$color, $amount", new A.global_closure22()], t1, t2)), A._function4("desaturate", _s15_, new A.global_closure23()), A._function4("opacify", _s15_, A.color0___opacify$closure()), A._function4("fade-in", _s15_, A.color0___opacify$closure()), A._function4("transparentize", _s15_, A.color0___transparentize$closure()), A._function4("fade-out", _s15_, A.color0___transparentize$closure()), A.BuiltInCallable$overloadedFunction("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure24(), "$args...", new A.global_closure25()], t1, t2)), A._function4("opacity", "$color", new A.global_closure26()), $.$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);
- });
- _lazyFinal($, "module", "$get$module", () => {
- var _s9_ = "lightness",
- _s10_ = "saturation",
- _s6_ = "$color", _s5_ = "alpha",
- t1 = type$.String,
- t2 = type$.Value_Function_List_Value;
- return A.BuiltInModule$("color", A._setArrayType([$.$get$_red(), $.$get$_green(), $.$get$_blue(), $.$get$_mix(), A._function4("invert", "$color, $weight: 100%", new A.module_closure1()), $.$get$_hue(), $.$get$_saturation(), $.$get$_lightness(), $.$get$_complement(), A._removedColorFunction("adjust-hue", "hue", false), A._removedColorFunction("lighten", _s9_, false), A._removedColorFunction("darken", _s9_, true), A._removedColorFunction("saturate", _s10_, false), A._removedColorFunction("desaturate", _s10_, true), A._function4("grayscale", _s6_, new A.module_closure2()), A.BuiltInCallable$overloadedFunction("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure3(), "$channels", new A.module_closure4()], t1, t2)), A._function4("whiteness", _s6_, new A.module_closure5()), A._function4("blackness", _s6_, new A.module_closure6()), A._removedColorFunction("opacify", _s5_, false), A._removedColorFunction("fade-in", _s5_, false), A._removedColorFunction("transparentize", _s5_, true), A._removedColorFunction("fade-out", _s5_, true), A.BuiltInCallable$overloadedFunction(_s5_, A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.module_closure7(), "$args...", new A.module_closure8()], t1, t2)), A._function4("opacity", _s6_, new A.module_closure9()), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_Callable), null, null, type$.Callable);
- });
- _lazyFinal($, "_red", "$get$_red", () => A._function4("red", "$color", new A._red_closure()));
- _lazyFinal($, "_green", "$get$_green", () => A._function4("green", "$color", new A._green_closure()));
- _lazyFinal($, "_blue", "$get$_blue", () => A._function4("blue", "$color", new A._blue_closure()));
- _lazyFinal($, "_mix", "$get$_mix", () => A._function4("mix", "$color1, $color2, $weight: 50%", new A._mix_closure()));
- _lazyFinal($, "_hue", "$get$_hue", () => A._function4("hue", "$color", new A._hue_closure()));
- _lazyFinal($, "_saturation", "$get$_saturation", () => A._function4("saturation", "$color", new A._saturation_closure()));
- _lazyFinal($, "_lightness", "$get$_lightness", () => A._function4("lightness", "$color", new A._lightness_closure()));
- _lazyFinal($, "_complement", "$get$_complement", () => A._function4("complement", "$color", new A._complement_closure()));
- _lazyFinal($, "_adjust", "$get$_adjust", () => A._function4("adjust", "$color, $kwargs...", new A._adjust_closure()));
- _lazyFinal($, "_scale", "$get$_scale", () => A._function4("scale", "$color, $kwargs...", new A._scale_closure()));
- _lazyFinal($, "_change", "$get$_change", () => A._function4("change", "$color, $kwargs...", new A._change_closure()));
- _lazyFinal($, "_ieHexStr", "$get$_ieHexStr", () => A._function4("ie-hex-str", "$color", new A._ieHexStr_closure()));
- _lazyFinal($, "global0", "$get$global1", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module0", "$get$module0", () => A.BuiltInModule$("list", A._setArrayType([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator(), $.$get$_slash()], type$.JSArray_Callable), null, null, type$.Callable));
- _lazyFinal($, "_length", "$get$_length0", () => A._function3("length", "$list", new A._length_closure0()));
- _lazyFinal($, "_nth", "$get$_nth", () => A._function3("nth", "$list, $n", new A._nth_closure()));
- _lazyFinal($, "_setNth", "$get$_setNth", () => A._function3("set-nth", "$list, $n, $value", new A._setNth_closure()));
- _lazyFinal($, "_join", "$get$_join", () => A._function3("join", string$.x24list1, new A._join_closure()));
- _lazyFinal($, "_append", "$get$_append0", () => A._function3("append", "$list, $val, $separator: auto", new A._append_closure0()));
- _lazyFinal($, "_zip", "$get$_zip", () => A._function3("zip", "$lists...", new A._zip_closure()));
- _lazyFinal($, "_index", "$get$_index0", () => A._function3("index", "$list, $value", new A._index_closure0()));
- _lazyFinal($, "_separator", "$get$_separator", () => A._function3("separator", "$list", new A._separator_closure()));
- _lazyFinal($, "_isBracketed", "$get$_isBracketed", () => A._function3("is-bracketed", "$list", new A._isBracketed_closure()));
- _lazyFinal($, "_slash", "$get$_slash", () => A._function3("slash", "$elements...", new A._slash_closure()));
- _lazyFinal($, "global1", "$get$global2", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module1", "$get$module1", () => A.BuiltInModule$("map", A._setArrayType([$.$get$_get(), $.$get$_set(), $.$get$_merge(), $.$get$_remove(), $.$get$_keys(), $.$get$_values(), $.$get$_hasKey(), $.$get$_deepMerge(), $.$get$_deepRemove()], type$.JSArray_Callable), null, null, type$.Callable));
- _lazyFinal($, "_get", "$get$_get", () => A._function2("get", "$map, $key, $keys...", new A._get_closure()));
- _lazyFinal($, "_set", "$get$_set", () => A.BuiltInCallable$overloadedFunction("set", A.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A._set_closure(), "$map, $args...", new A._set_closure0()], type$.String, type$.Value_Function_List_Value)));
- _lazyFinal($, "_merge", "$get$_merge", () => A.BuiltInCallable$overloadedFunction("merge", A.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A._merge_closure(), "$map1, $args...", new A._merge_closure0()], type$.String, type$.Value_Function_List_Value)));
- _lazyFinal($, "_deepMerge", "$get$_deepMerge", () => A._function2("deep-merge", "$map1, $map2", new A._deepMerge_closure()));
- _lazyFinal($, "_deepRemove", "$get$_deepRemove", () => A._function2("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure()));
- _lazyFinal($, "_remove", "$get$_remove", () => A.BuiltInCallable$overloadedFunction("remove", A.LinkedHashMap_LinkedHashMap$_literal(["$map", new A._remove_closure(), "$map, $key, $keys...", new A._remove_closure0()], type$.String, type$.Value_Function_List_Value)));
- _lazyFinal($, "_keys", "$get$_keys", () => A._function2("keys", "$map", new A._keys_closure()));
- _lazyFinal($, "_values", "$get$_values", () => A._function2("values", "$map", new A._values_closure()));
- _lazyFinal($, "_hasKey", "$get$_hasKey", () => A._function2("has-key", "$map, $key, $keys...", new A._hasKey_closure()));
- _lazyFinal($, "global2", "$get$global3", () => A.UnmodifiableListView$(A._setArrayType([A._function1("abs", "$number", new A.global_closure()), $.$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));
- _lazyFinal($, "module2", "$get$module2", () => {
- var _null = null;
- return A.BuiltInModule$("math", A._setArrayType([A._numberFunction("abs", new A.module_closure0()), $.$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(), $.$get$_div()], type$.JSArray_Callable), _null, A.LinkedHashMap_LinkedHashMap$_literal(["e", A.SassNumber_SassNumber(2.718281828459045, _null), "pi", A.SassNumber_SassNumber(3.141592653589793, _null), "epsilon", A.SassNumber_SassNumber(2220446049250313e-31, _null), "max-safe-integer", A.SassNumber_SassNumber(9007199254740991, _null), "min-safe-integer", A.SassNumber_SassNumber(-9007199254740991, _null), "max-number", A.SassNumber_SassNumber(17976931348623157e292, _null), "min-number", A.SassNumber_SassNumber(5e-324, _null)], type$.String, type$.Value), type$.Callable);
- });
- _lazyFinal($, "_ceil", "$get$_ceil", () => A._numberFunction("ceil", new A._ceil_closure()));
- _lazyFinal($, "_clamp", "$get$_clamp", () => A._function1("clamp", "$min, $number, $max", new A._clamp_closure()));
- _lazyFinal($, "_floor", "$get$_floor", () => A._numberFunction("floor", new A._floor_closure()));
- _lazyFinal($, "_max", "$get$_max", () => A._function1("max", "$numbers...", new A._max_closure()));
- _lazyFinal($, "_min", "$get$_min", () => A._function1("min", "$numbers...", new A._min_closure()));
- _lazyFinal($, "_round", "$get$_round", () => A._numberFunction("round", new A._round_closure()));
- _lazyFinal($, "_hypot", "$get$_hypot", () => A._function1("hypot", "$numbers...", new A._hypot_closure()));
- _lazyFinal($, "_log", "$get$_log", () => A._function1("log", "$number, $base: null", new A._log_closure()));
- _lazyFinal($, "_pow", "$get$_pow", () => A._function1("pow", "$base, $exponent", new A._pow_closure()));
- _lazyFinal($, "_sqrt", "$get$_sqrt", () => A._singleArgumentMathFunc("sqrt", A.number0__sqrt$closure()));
- _lazyFinal($, "_acos", "$get$_acos", () => A._singleArgumentMathFunc("acos", A.number0__acos$closure()));
- _lazyFinal($, "_asin", "$get$_asin", () => A._singleArgumentMathFunc("asin", A.number0__asin$closure()));
- _lazyFinal($, "_atan", "$get$_atan", () => A._singleArgumentMathFunc("atan", A.number0__atan$closure()));
- _lazyFinal($, "_atan2", "$get$_atan2", () => A._function1("atan2", "$y, $x", new A._atan2_closure()));
- _lazyFinal($, "_cos", "$get$_cos", () => A._singleArgumentMathFunc("cos", A.number0__cos$closure()));
- _lazyFinal($, "_sin", "$get$_sin", () => A._singleArgumentMathFunc("sin", A.number0__sin$closure()));
- _lazyFinal($, "_tan", "$get$_tan", () => A._singleArgumentMathFunc("tan", A.number0__tan$closure()));
- _lazyFinal($, "_compatible", "$get$_compatible", () => A._function1("compatible", "$number1, $number2", new A._compatible_closure()));
- _lazyFinal($, "_isUnitless", "$get$_isUnitless", () => A._function1("is-unitless", "$number", new A._isUnitless_closure()));
- _lazyFinal($, "_unit", "$get$_unit", () => A._function1("unit", "$number", new A._unit_closure()));
- _lazyFinal($, "_percentage", "$get$_percentage", () => A._function1("percentage", "$number", new A._percentage_closure()));
- _lazyFinal($, "_random", "$get$_random0", () => A.Random_Random());
- _lazyFinal($, "_randomFunction", "$get$_randomFunction", () => A._function1("random", "$limit: null", new A._randomFunction_closure()));
- _lazyFinal($, "_div", "$get$_div", () => A._function1("div", "$number1, $number2", new A._div_closure()));
- _lazyFinal($, "global3", "$get$global", () => A.UnmodifiableListView$(A._setArrayType([A._function5("feature-exists", "$feature", new A.global_closure27()), A._function5("inspect", "$value", new A.global_closure28()), A._function5("type-of", "$value", new A.global_closure29()), A._function5("keywords", "$args", new A.global_closure30())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
- _lazyFinal($, "local", "$get$local", () => A.UnmodifiableListView$(A._setArrayType([A._function5("calc-name", "$calc", new A.local_closure()), A._function5("calc-args", "$calc", new A.local_closure0()), A._function5("accepts-content", "$mixin", new A.local_closure1())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
- _lazyFinal($, "global4", "$get$global4", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module3", "$get$module3", () => A.BuiltInModule$("selector", A._setArrayType([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse(), $.$get$_nest(), $.$get$_append(), $.$get$_extend(), $.$get$_replace(), $.$get$_unify()], type$.JSArray_Callable), null, null, type$.Callable));
- _lazyFinal($, "_nest", "$get$_nest", () => A._function0("nest", "$selectors...", new A._nest_closure()));
- _lazyFinal($, "_append0", "$get$_append", () => A._function0("append", "$selectors...", new A._append_closure()));
- _lazyFinal($, "_extend", "$get$_extend", () => A._function0("extend", "$selector, $extendee, $extender", new A._extend_closure()));
- _lazyFinal($, "_replace", "$get$_replace", () => A._function0("replace", "$selector, $original, $replacement", new A._replace_closure()));
- _lazyFinal($, "_unify", "$get$_unify", () => A._function0("unify", "$selector1, $selector2", new A._unify_closure()));
- _lazyFinal($, "_isSuperselector", "$get$_isSuperselector", () => A._function0("is-superselector", "$super, $sub", new A._isSuperselector_closure()));
- _lazyFinal($, "_simpleSelectors", "$get$_simpleSelectors", () => A._function0("simple-selectors", "$selector", new A._simpleSelectors_closure()));
- _lazyFinal($, "_parse", "$get$_parse", () => A._function0("parse", "$selector", new A._parse_closure()));
- _lazyFinal($, "_random0", "$get$_random", () => A.Random_Random());
- _lazy($, "_previousUniqueId", "$get$_previousUniqueId", () => $.$get$_random().nextInt$1(A._asInt(A.pow(36, 6))));
- _lazyFinal($, "global5", "$get$global5", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module4", "$get$module4", () => A.BuiltInModule$("string", A._setArrayType([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_length(), $.$get$_insert(), $.$get$_index(), $.$get$_slice(), $.$get$_uniqueId(), A._function("split", "$string, $separator, $limit: null", new A.module_closure())], type$.JSArray_Callable), null, null, type$.Callable));
- _lazyFinal($, "_unquote", "$get$_unquote", () => A._function("unquote", "$string", new A._unquote_closure()));
- _lazyFinal($, "_quote", "$get$_quote", () => A._function("quote", "$string", new A._quote_closure()));
- _lazyFinal($, "_length0", "$get$_length", () => A._function("length", "$string", new A._length_closure()));
- _lazyFinal($, "_insert", "$get$_insert", () => A._function("insert", "$string, $insert, $index", new A._insert_closure()));
- _lazyFinal($, "_index0", "$get$_index", () => A._function("index", "$string, $substring", new A._index_closure()));
- _lazyFinal($, "_slice", "$get$_slice", () => A._function("slice", "$string, $start-at, $end-at: -1", new A._slice_closure()));
- _lazyFinal($, "_toUpperCase", "$get$_toUpperCase", () => A._function("to-upper-case", "$string", new A._toUpperCase_closure()));
- _lazyFinal($, "_toLowerCase", "$get$_toLowerCase", () => A._function("to-lower-case", "$string", new A._toLowerCase_closure()));
- _lazyFinal($, "_uniqueId", "$get$_uniqueId", () => A._function("unique-id", "", new A._uniqueId_closure()));
- _lazyFinal($, "FilesystemImporter_cwd", "$get$FilesystemImporter_cwd", () => {
- var _null = null;
- return new A.FilesystemImporter(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), true);
- });
- _lazyFinal($, "FilesystemImporter_noLoadPath", "$get$FilesystemImporter_noLoadPath", () => new A.FilesystemImporter(null, false));
- _lazyFinal($, "_jsThrow", "$get$_jsThrow0", () => new self.Function("error", "throw error;"));
- _lazyFinal($, "Logger_quiet", "$get$Logger_quiet", () => new A._QuietLogger());
- _lazyFinal($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", () => {
- var t1 = $.$get$globalFunctions();
- t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure(), type$.String).toSet$0(0);
- t1.add$1(0, "if");
- t1.remove$1(0, "rgb");
- t1.remove$1(0, "rgba");
- t1.remove$1(0, "hsl");
- t1.remove$1(0, "hsla");
- t1.remove$1(0, "grayscale");
- t1.remove$1(0, "invert");
- t1.remove$1(0, "alpha");
- t1.remove$1(0, "opacity");
- t1.remove$1(0, "saturate");
- t1.remove$1(0, "min");
- t1.remove$1(0, "max");
- t1.remove$1(0, "round");
- t1.remove$1(0, "abs");
- return t1;
- });
- _lazyFinal($, "_epsilon", "$get$_epsilon", () => A.pow(10, -11));
- _lazyFinal($, "_inverseEpsilon", "$get$_inverseEpsilon", () => A.pow(10, 11));
- _lazyFinal($, "bogusSpan", "$get$bogusSpan", () => A.SourceFile$decoded(A._setArrayType([], type$.JSArray_int), null).span$1(0, 0));
- _lazyFinal($, "_noSourceUrl", "$get$_noSourceUrl", () => A.Uri_parse("-"));
- _lazyFinal($, "_traces", "$get$_traces", () => A.Expando$());
- _lazyFinal($, "_typesByUnit", "$get$_typesByUnit", () => {
- var t3, type,
- t1 = type$.String,
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t1 = A.MapExtensions_get_pairs(B.Map_397RH, t1, type$.List_String), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- type = t3._0;
- for (t3 = J.get$iterator$ax(t3._1); t3.moveNext$0();)
- t2.$indexSet(0, t3.get$current(t3), type);
- }
- return t2;
- });
- _lazyFinal($, "_knownCompatibilitiesByUnit", "$get$_knownCompatibilitiesByUnit", () => {
- var _i, set, t2,
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set<String>"));
- for (_i = 0; _i < 5; ++_i) {
- set = B.List_Eeh[_i];
- for (t2 = set.get$iterator(set); t2.moveNext$0();)
- t1.$indexSet(0, t2.get$current(0), set);
- }
- return t1;
- });
- _lazyFinal($, "_emptyQuoted", "$get$_emptyQuoted", () => A.SassString$("", true));
- _lazyFinal($, "_emptyUnquoted", "$get$_emptyUnquoted", () => A.SassString$("", false));
- _lazyFinal($, "maxInt32", "$get$maxInt32", () => A._asInt(A.pow(2, 31)) - 1);
- _lazyFinal($, "minInt32", "$get$minInt32", () => -A._asInt(A.pow(2, 31)));
- _lazyFinal($, "_vmFrame", "$get$_vmFrame", () => A.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false));
- _lazyFinal($, "_v8Frame", "$get$_v8Frame", () => A.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false));
- _lazyFinal($, "_v8UrlLocation", "$get$_v8UrlLocation", () => A.RegExp_RegExp("^(.*?):(\\d+)(?::(\\d+))?$|native$", false));
- _lazyFinal($, "_v8EvalLocation", "$get$_v8EvalLocation", () => A.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false));
- _lazyFinal($, "_firefoxEvalLocation", "$get$_firefoxEvalLocation", () => A.RegExp_RegExp("(\\S+)@(\\S+) line (\\d+) >.* (Function|eval):\\d+:\\d+", false));
- _lazyFinal($, "_firefoxSafariFrame", "$get$_firefoxSafariFrame", () => A.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false));
- _lazyFinal($, "_friendlyFrame", "$get$_friendlyFrame", () => A.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false));
- _lazyFinal($, "_asyncBody", "$get$_asyncBody", () => A.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", false));
- _lazyFinal($, "_initialDot", "$get$_initialDot", () => A.RegExp_RegExp("^\\.", false));
- _lazyFinal($, "Frame__uriRegExp", "$get$Frame__uriRegExp", () => A.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false));
- _lazyFinal($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", () => A.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false));
- _lazyFinal($, "_terseRegExp", "$get$_terseRegExp", () => A.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false));
- _lazyFinal($, "_v8Trace", "$get$_v8Trace", () => A.RegExp_RegExp("\\n ?at ", false));
- _lazyFinal($, "_v8TraceLine", "$get$_v8TraceLine", () => A.RegExp_RegExp(" ?at ", false));
- _lazyFinal($, "_firefoxEvalTrace", "$get$_firefoxEvalTrace", () => A.RegExp_RegExp("@\\S+ line \\d+ >.* (Function|eval):\\d+:\\d+", false));
- _lazyFinal($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", () => A.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true));
- _lazyFinal($, "_friendlyTrace", "$get$_friendlyTrace", () => A.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true));
- _lazyFinal($, "vmChainGap", "$get$vmChainGap", () => A.RegExp_RegExp("^<asynchronous suspension>\\n?$", true));
- _lazyFinal($, "_newlineRegExp", "$get$_newlineRegExp", () => A.RegExp_RegExp("\\r\\n?|\\n", false));
- _lazyFinal($, "argumentListClass", "$get$argumentListClass", () => new A.argumentListClass_closure().call$0());
- _lazyFinal($, "booleanClass", "$get$booleanClass", () => new A.booleanClass_closure().call$0());
- _lazyFinal($, "legacyBooleanClass", "$get$legacyBooleanClass", () => new A.legacyBooleanClass_closure().call$0());
- _lazyFinal($, "calculationClass", "$get$calculationClass", () => new A.calculationClass_closure().call$0());
- _lazyFinal($, "calculationOperationClass", "$get$calculationOperationClass", () => new A.calculationOperationClass_closure().call$0());
- _lazyFinal($, "calculationInterpolationClass", "$get$calculationInterpolationClass", () => new A.calculationInterpolationClass_closure().call$0());
- _lazyFinal($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false));
- _lazyFinal($, "global6", "$get$global7", () => {
- var _s27_ = "$red, $green, $blue, $alpha",
- _s19_ = "$red, $green, $blue",
- _s37_ = "$hue, $saturation, $lightness, $alpha",
- _s29_ = "$hue, $saturation, $lightness",
- _s17_ = "$hue, $saturation",
- _s15_ = "$color, $amount",
- t1 = type$.String,
- t2 = type$.Value_Function_List_Value_2;
- return A.UnmodifiableListView$(A._setArrayType([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), A.BuiltInCallable$overloadedFunction0("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure32(), _s19_, new A.global_closure33(), "$color, $alpha", new A.global_closure34(), "$channels", new A.global_closure35()], t1, t2)), A.BuiltInCallable$overloadedFunction0("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure36(), _s19_, new A.global_closure37(), "$color, $alpha", new A.global_closure38(), "$channels", new A.global_closure39()], t1, t2)), A._function11("invert", "$color, $weight: 100%", new A.global_closure40()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), A.BuiltInCallable$overloadedFunction0("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure41(), _s29_, new A.global_closure42(), _s17_, new A.global_closure43(), "$channels", new A.global_closure44()], t1, t2)), A.BuiltInCallable$overloadedFunction0("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure45(), _s29_, new A.global_closure46(), _s17_, new A.global_closure47(), "$channels", new A.global_closure48()], t1, t2)), A._function11("grayscale", "$color", new A.global_closure49()), A._function11("adjust-hue", "$color, $degrees", new A.global_closure50()), A._function11("lighten", _s15_, new A.global_closure51()), A._function11("darken", _s15_, new A.global_closure52()), A.BuiltInCallable$overloadedFunction0("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure53(), "$color, $amount", new A.global_closure54()], t1, t2)), A._function11("desaturate", _s15_, new A.global_closure55()), A._function11("opacify", _s15_, A.color2___opacify$closure()), A._function11("fade-in", _s15_, A.color2___opacify$closure()), A._function11("transparentize", _s15_, A.color2___transparentize$closure()), A._function11("fade-out", _s15_, A.color2___transparentize$closure()), A.BuiltInCallable$overloadedFunction0("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure56(), "$args...", new A.global_closure57()], t1, t2)), A._function11("opacity", "$color", new A.global_closure58()), $.$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);
- });
- _lazyFinal($, "module5", "$get$module5", () => {
- var _s9_ = "lightness",
- _s10_ = "saturation",
- _s6_ = "$color", _s5_ = "alpha",
- t1 = type$.String,
- t2 = type$.Value_Function_List_Value_2;
- return A.BuiltInModule$0("color", A._setArrayType([$.$get$_red0(), $.$get$_green0(), $.$get$_blue0(), $.$get$_mix0(), A._function11("invert", "$color, $weight: 100%", new A.module_closure12()), $.$get$_hue0(), $.$get$_saturation0(), $.$get$_lightness0(), $.$get$_complement0(), A._removedColorFunction0("adjust-hue", "hue", false), A._removedColorFunction0("lighten", _s9_, false), A._removedColorFunction0("darken", _s9_, true), A._removedColorFunction0("saturate", _s10_, false), A._removedColorFunction0("desaturate", _s10_, true), A._function11("grayscale", _s6_, new A.module_closure13()), A.BuiltInCallable$overloadedFunction0("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure14(), "$channels", new A.module_closure15()], t1, t2)), A._function11("whiteness", _s6_, new A.module_closure16()), A._function11("blackness", _s6_, new A.module_closure17()), A._removedColorFunction0("opacify", _s5_, false), A._removedColorFunction0("fade-in", _s5_, false), A._removedColorFunction0("transparentize", _s5_, true), A._removedColorFunction0("fade-out", _s5_, true), A.BuiltInCallable$overloadedFunction0(_s5_, A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.module_closure18(), "$args...", new A.module_closure19()], t1, t2)), A._function11("opacity", _s6_, new A.module_closure20()), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_Callable_2), null, null, type$.Callable_2);
- });
- _lazyFinal($, "_red0", "$get$_red0", () => A._function11("red", "$color", new A._red_closure0()));
- _lazyFinal($, "_green0", "$get$_green0", () => A._function11("green", "$color", new A._green_closure0()));
- _lazyFinal($, "_blue0", "$get$_blue0", () => A._function11("blue", "$color", new A._blue_closure0()));
- _lazyFinal($, "_mix0", "$get$_mix0", () => A._function11("mix", "$color1, $color2, $weight: 50%", new A._mix_closure0()));
- _lazyFinal($, "_hue0", "$get$_hue0", () => A._function11("hue", "$color", new A._hue_closure0()));
- _lazyFinal($, "_saturation0", "$get$_saturation0", () => A._function11("saturation", "$color", new A._saturation_closure0()));
- _lazyFinal($, "_lightness0", "$get$_lightness0", () => A._function11("lightness", "$color", new A._lightness_closure0()));
- _lazyFinal($, "_complement0", "$get$_complement0", () => A._function11("complement", "$color", new A._complement_closure0()));
- _lazyFinal($, "_adjust0", "$get$_adjust0", () => A._function11("adjust", "$color, $kwargs...", new A._adjust_closure0()));
- _lazyFinal($, "_scale0", "$get$_scale0", () => A._function11("scale", "$color, $kwargs...", new A._scale_closure0()));
- _lazyFinal($, "_change0", "$get$_change0", () => A._function11("change", "$color, $kwargs...", new A._change_closure0()));
- _lazyFinal($, "_ieHexStr0", "$get$_ieHexStr0", () => A._function11("ie-hex-str", "$color", new A._ieHexStr_closure0()));
- _lazyFinal($, "colorClass", "$get$colorClass", () => new A.colorClass_closure().call$0());
- _lazyFinal($, "legacyColorClass", "$get$legacyColorClass", () => {
- var t1 = A.createJSClass("sass.types.Color", new A.legacyColorClass_closure());
- A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getR", new A.legacyColorClass_closure0(), "getG", new A.legacyColorClass_closure1(), "getB", new A.legacyColorClass_closure2(), "getA", new A.legacyColorClass_closure3(), "setR", new A.legacyColorClass_closure4(), "setG", new A.legacyColorClass_closure5(), "setB", new A.legacyColorClass_closure6(), "setA", new A.legacyColorClass_closure7()], type$.String, type$.Function));
- return t1;
- });
- _lazyFinal($, "colorsByName0", "$get$colorsByName0", () => A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor$rgb0(154, 205, 50, 1), "yellow", A.SassColor$rgb0(255, 255, 0, 1), "whitesmoke", A.SassColor$rgb0(245, 245, 245, 1), "white", A.SassColor$rgb0(255, 255, 255, 1), "wheat", A.SassColor$rgb0(245, 222, 179, 1), "violet", A.SassColor$rgb0(238, 130, 238, 1), "turquoise", A.SassColor$rgb0(64, 224, 208, 1), "transparent", A.SassColor$rgb0(0, 0, 0, 0), "tomato", A.SassColor$rgb0(255, 99, 71, 1), "thistle", A.SassColor$rgb0(216, 191, 216, 1), "teal", A.SassColor$rgb0(0, 128, 128, 1), "tan", A.SassColor$rgb0(210, 180, 140, 1), "steelblue", A.SassColor$rgb0(70, 130, 180, 1), "springgreen", A.SassColor$rgb0(0, 255, 127, 1), "snow", A.SassColor$rgb0(255, 250, 250, 1), "slategrey", A.SassColor$rgb0(112, 128, 144, 1), "slategray", A.SassColor$rgb0(112, 128, 144, 1), "slateblue", A.SassColor$rgb0(106, 90, 205, 1), "skyblue", A.SassColor$rgb0(135, 206, 235, 1), "silver", A.SassColor$rgb0(192, 192, 192, 1), "sienna", A.SassColor$rgb0(160, 82, 45, 1), "seashell", A.SassColor$rgb0(255, 245, 238, 1), "seagreen", A.SassColor$rgb0(46, 139, 87, 1), "sandybrown", A.SassColor$rgb0(244, 164, 96, 1), "salmon", A.SassColor$rgb0(250, 128, 114, 1), "saddlebrown", A.SassColor$rgb0(139, 69, 19, 1), "royalblue", A.SassColor$rgb0(65, 105, 225, 1), "rosybrown", A.SassColor$rgb0(188, 143, 143, 1), "red", A.SassColor$rgb0(255, 0, 0, 1), "rebeccapurple", A.SassColor$rgb0(102, 51, 153, 1), "purple", A.SassColor$rgb0(128, 0, 128, 1), "powderblue", A.SassColor$rgb0(176, 224, 230, 1), "plum", A.SassColor$rgb0(221, 160, 221, 1), "pink", A.SassColor$rgb0(255, 192, 203, 1), "peru", A.SassColor$rgb0(205, 133, 63, 1), "peachpuff", A.SassColor$rgb0(255, 218, 185, 1), "papayawhip", A.SassColor$rgb0(255, 239, 213, 1), "palevioletred", A.SassColor$rgb0(219, 112, 147, 1), "paleturquoise", A.SassColor$rgb0(175, 238, 238, 1), "palegreen", A.SassColor$rgb0(152, 251, 152, 1), "palegoldenrod", A.SassColor$rgb0(238, 232, 170, 1), "orchid", A.SassColor$rgb0(218, 112, 214, 1), "orangered", A.SassColor$rgb0(255, 69, 0, 1), "orange", A.SassColor$rgb0(255, 165, 0, 1), "olivedrab", A.SassColor$rgb0(107, 142, 35, 1), "olive", A.SassColor$rgb0(128, 128, 0, 1), "oldlace", A.SassColor$rgb0(253, 245, 230, 1), "navy", A.SassColor$rgb0(0, 0, 128, 1), "navajowhite", A.SassColor$rgb0(255, 222, 173, 1), "moccasin", A.SassColor$rgb0(255, 228, 181, 1), "mistyrose", A.SassColor$rgb0(255, 228, 225, 1), "mintcream", A.SassColor$rgb0(245, 255, 250, 1), "midnightblue", A.SassColor$rgb0(25, 25, 112, 1), "mediumvioletred", A.SassColor$rgb0(199, 21, 133, 1), "mediumturquoise", A.SassColor$rgb0(72, 209, 204, 1), "mediumspringgreen", A.SassColor$rgb0(0, 250, 154, 1), "mediumslateblue", A.SassColor$rgb0(123, 104, 238, 1), "mediumseagreen", A.SassColor$rgb0(60, 179, 113, 1), "mediumpurple", A.SassColor$rgb0(147, 112, 219, 1), "mediumorchid", A.SassColor$rgb0(186, 85, 211, 1), "mediumblue", A.SassColor$rgb0(0, 0, 205, 1), "mediumaquamarine", A.SassColor$rgb0(102, 205, 170, 1), "maroon", A.SassColor$rgb0(128, 0, 0, 1), "magenta", A.SassColor$rgb0(255, 0, 255, 1), "linen", A.SassColor$rgb0(250, 240, 230, 1), "limegreen", A.SassColor$rgb0(50, 205, 50, 1), "lime", A.SassColor$rgb0(0, 255, 0, 1), "lightyellow", A.SassColor$rgb0(255, 255, 224, 1), "lightsteelblue", A.SassColor$rgb0(176, 196, 222, 1), "lightslategrey", A.SassColor$rgb0(119, 136, 153, 1), "lightslategray", A.SassColor$rgb0(119, 136, 153, 1), "lightskyblue", A.SassColor$rgb0(135, 206, 250, 1), "lightseagreen", A.SassColor$rgb0(32, 178, 170, 1), "lightsalmon", A.SassColor$rgb0(255, 160, 122, 1), "lightpink", A.SassColor$rgb0(255, 182, 193, 1), "lightgrey", A.SassColor$rgb0(211, 211, 211, 1), "lightgreen", A.SassColor$rgb0(144, 238, 144, 1), "lightgray", A.SassColor$rgb0(211, 211, 211, 1), "lightgoldenrodyellow", A.SassColor$rgb0(250, 250, 210, 1), "lightcyan", A.SassColor$rgb0(224, 255, 255, 1), "lightcoral", A.SassColor$rgb0(240, 128, 128, 1), "lightblue", A.SassColor$rgb0(173, 216, 230, 1), "lemonchiffon", A.SassColor$rgb0(255, 250, 205, 1), "lawngreen", A.SassColor$rgb0(124, 252, 0, 1), "lavenderblush", A.SassColor$rgb0(255, 240, 245, 1), "lavender", A.SassColor$rgb0(230, 230, 250, 1), "khaki", A.SassColor$rgb0(240, 230, 140, 1), "ivory", A.SassColor$rgb0(255, 255, 240, 1), "indigo", A.SassColor$rgb0(75, 0, 130, 1), "indianred", A.SassColor$rgb0(205, 92, 92, 1), "hotpink", A.SassColor$rgb0(255, 105, 180, 1), "honeydew", A.SassColor$rgb0(240, 255, 240, 1), "grey", A.SassColor$rgb0(128, 128, 128, 1), "greenyellow", A.SassColor$rgb0(173, 255, 47, 1), "green", A.SassColor$rgb0(0, 128, 0, 1), "gray", A.SassColor$rgb0(128, 128, 128, 1), "goldenrod", A.SassColor$rgb0(218, 165, 32, 1), "gold", A.SassColor$rgb0(255, 215, 0, 1), "ghostwhite", A.SassColor$rgb0(248, 248, 255, 1), "gainsboro", A.SassColor$rgb0(220, 220, 220, 1), "fuchsia", A.SassColor$rgb0(255, 0, 255, 1), "forestgreen", A.SassColor$rgb0(34, 139, 34, 1), "floralwhite", A.SassColor$rgb0(255, 250, 240, 1), "firebrick", A.SassColor$rgb0(178, 34, 34, 1), "dodgerblue", A.SassColor$rgb0(30, 144, 255, 1), "dimgrey", A.SassColor$rgb0(105, 105, 105, 1), "dimgray", A.SassColor$rgb0(105, 105, 105, 1), "deepskyblue", A.SassColor$rgb0(0, 191, 255, 1), "deeppink", A.SassColor$rgb0(255, 20, 147, 1), "darkviolet", A.SassColor$rgb0(148, 0, 211, 1), "darkturquoise", A.SassColor$rgb0(0, 206, 209, 1), "darkslategrey", A.SassColor$rgb0(47, 79, 79, 1), "darkslategray", A.SassColor$rgb0(47, 79, 79, 1), "darkslateblue", A.SassColor$rgb0(72, 61, 139, 1), "darkseagreen", A.SassColor$rgb0(143, 188, 143, 1), "darksalmon", A.SassColor$rgb0(233, 150, 122, 1), "darkred", A.SassColor$rgb0(139, 0, 0, 1), "darkorchid", A.SassColor$rgb0(153, 50, 204, 1), "darkorange", A.SassColor$rgb0(255, 140, 0, 1), "darkolivegreen", A.SassColor$rgb0(85, 107, 47, 1), "darkmagenta", A.SassColor$rgb0(139, 0, 139, 1), "darkkhaki", A.SassColor$rgb0(189, 183, 107, 1), "darkgrey", A.SassColor$rgb0(169, 169, 169, 1), "darkgreen", A.SassColor$rgb0(0, 100, 0, 1), "darkgray", A.SassColor$rgb0(169, 169, 169, 1), "darkgoldenrod", A.SassColor$rgb0(184, 134, 11, 1), "darkcyan", A.SassColor$rgb0(0, 139, 139, 1), "darkblue", A.SassColor$rgb0(0, 0, 139, 1), "cyan", A.SassColor$rgb0(0, 255, 255, 1), "crimson", A.SassColor$rgb0(220, 20, 60, 1), "cornsilk", A.SassColor$rgb0(255, 248, 220, 1), "cornflowerblue", A.SassColor$rgb0(100, 149, 237, 1), "coral", A.SassColor$rgb0(255, 127, 80, 1), "chocolate", A.SassColor$rgb0(210, 105, 30, 1), "chartreuse", A.SassColor$rgb0(127, 255, 0, 1), "cadetblue", A.SassColor$rgb0(95, 158, 160, 1), "burlywood", A.SassColor$rgb0(222, 184, 135, 1), "brown", A.SassColor$rgb0(165, 42, 42, 1), "blueviolet", A.SassColor$rgb0(138, 43, 226, 1), "blue", A.SassColor$rgb0(0, 0, 255, 1), "blanchedalmond", A.SassColor$rgb0(255, 235, 205, 1), "black", A.SassColor$rgb0(0, 0, 0, 1), "bisque", A.SassColor$rgb0(255, 228, 196, 1), "beige", A.SassColor$rgb0(245, 245, 220, 1), "azure", A.SassColor$rgb0(240, 255, 255, 1), "aquamarine", A.SassColor$rgb0(127, 255, 212, 1), "aqua", A.SassColor$rgb0(0, 255, 255, 1), "antiquewhite", A.SassColor$rgb0(250, 235, 215, 1), "aliceblue", A.SassColor$rgb0(240, 248, 255, 1)], type$.String, type$.SassColor_2));
- _lazyFinal($, "namesByColor0", "$get$namesByColor0", () => {
- var $name,
- t1 = type$.SassColor_2,
- t2 = type$.String,
- t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
- for (t1 = A.MapExtensions_get_pairs0($.$get$colorsByName0(), t2, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t2 = t1.get$current(t1);
- $name = t2._0;
- t3.$indexSet(0, t2._1, $name);
- }
- return t3;
- });
- _lazyFinal($, "nodePackageImporterClass", "$get$nodePackageImporterClass", () => new A.nodePackageImporterClass_closure().call$0());
- _lazyFinal($, "compilerClass", "$get$compilerClass", () => new A.compilerClass_closure().call$0());
- _lazyFinal($, "asyncCompilerClass", "$get$asyncCompilerClass", () => new A.asyncCompilerClass_closure().call$0());
- _lazyFinal($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", () => {
- var t1 = $.$get$globalFunctions0();
- t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure0(), type$.String).toSet$0(0);
- t1.add$1(0, "if");
- t1.remove$1(0, "rgb");
- t1.remove$1(0, "rgba");
- t1.remove$1(0, "hsl");
- t1.remove$1(0, "hsla");
- t1.remove$1(0, "grayscale");
- t1.remove$1(0, "invert");
- t1.remove$1(0, "alpha");
- t1.remove$1(0, "opacity");
- t1.remove$1(0, "saturate");
- t1.remove$1(0, "min");
- t1.remove$1(0, "max");
- t1.remove$1(0, "round");
- t1.remove$1(0, "abs");
- return t1;
- });
- _lazyFinal($, "deprecations", "$get$deprecations", () => {
- var _i, deprecation, t2,
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Deprecation1?"));
- for (_i = 0; _i < 19; ++_i) {
- deprecation = B.List_wIq[_i];
- if (deprecation !== B.Deprecation_Agq) {
- t2 = deprecation.id;
- t1.$indexSet(0, t2, {id: t2, status: new A.deprecations_closure(deprecation).call$0(), description: deprecation.description, deprecatedIn: deprecation.get$deprecatedIn(0), obsoleteIn: deprecation.get$deprecatedIn(0)});
- }
- }
- return t1;
- });
- _lazyFinal($, "versionClass", "$get$versionClass", () => new A.versionClass_closure().call$0());
- _lazyFinal($, "exceptionClass", "$get$exceptionClass", () => new A.exceptionClass_closure().call$0());
- _lazyFinal($, "FilesystemImporter_cwd0", "$get$FilesystemImporter_cwd0", () => {
- var _null = null;
- return new A.FilesystemImporter0(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), true);
- });
- _lazyFinal($, "functionClass", "$get$functionClass", () => new A.functionClass_closure().call$0());
- _lazyFinal($, "globalFunctions0", "$get$globalFunctions0", () => {
- var t1 = type$.BuiltInCallable_2,
- t2 = A.List_List$of($.$get$global7(), true, t1);
- B.JSArray_methods.addAll$1(t2, $.$get$global8());
- B.JSArray_methods.addAll$1(t2, $.$get$global9());
- B.JSArray_methods.addAll$1(t2, $.$get$global10());
- B.JSArray_methods.addAll$1(t2, $.$get$global11());
- B.JSArray_methods.addAll$1(t2, $.$get$global12());
- B.JSArray_methods.addAll$1(t2, $.$get$global6());
- t2.push(A.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure0(), null));
- return A.UnmodifiableListView$(t2, t1);
- });
- _lazyFinal($, "coreModules0", "$get$coreModules0", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], A.findType("JSArray<BuiltInModule0<Callable>>")), type$.BuiltInModule_Callable_2));
- _lazyFinal($, "IfExpression_declaration0", "$get$IfExpression_declaration0", () => A.ArgumentDeclaration_ArgumentDeclaration$parse0(string$.x40funct, null));
- _lazyFinal($, "global7", "$get$global8", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module6", "$get$module6", () => A.BuiltInModule$0("list", A._setArrayType([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0(), $.$get$_slash0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
- _lazyFinal($, "_length1", "$get$_length2", () => A._function10("length", "$list", new A._length_closure2()));
- _lazyFinal($, "_nth0", "$get$_nth0", () => A._function10("nth", "$list, $n", new A._nth_closure0()));
- _lazyFinal($, "_setNth0", "$get$_setNth0", () => A._function10("set-nth", "$list, $n, $value", new A._setNth_closure0()));
- _lazyFinal($, "_join0", "$get$_join0", () => A._function10("join", string$.x24list1, new A._join_closure0()));
- _lazyFinal($, "_append1", "$get$_append2", () => A._function10("append", "$list, $val, $separator: auto", new A._append_closure2()));
- _lazyFinal($, "_zip0", "$get$_zip0", () => A._function10("zip", "$lists...", new A._zip_closure0()));
- _lazyFinal($, "_index1", "$get$_index2", () => A._function10("index", "$list, $value", new A._index_closure2()));
- _lazyFinal($, "_separator0", "$get$_separator0", () => A._function10("separator", "$list", new A._separator_closure0()));
- _lazyFinal($, "_isBracketed0", "$get$_isBracketed0", () => A._function10("is-bracketed", "$list", new A._isBracketed_closure0()));
- _lazyFinal($, "_slash0", "$get$_slash0", () => A._function10("slash", "$elements...", new A._slash_closure0()));
- _lazyFinal($, "listClass", "$get$listClass", () => new A.listClass_closure().call$0());
- _lazyFinal($, "legacyListClass", "$get$legacyListClass", () => {
- var t1 = A.createJSClass("sass.types.List", new A.legacyListClass_closure());
- A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyListClass_closure0(), "setValue", new A.legacyListClass_closure1(), "getSeparator", new A.legacyListClass_closure2(), "setSeparator", new A.legacyListClass_closure3(), "getLength", new A.legacyListClass_closure4()], type$.String, type$.Function));
- return t1;
- });
- _lazyFinal($, "Logger_quiet0", "$get$Logger_quiet0", () => new A._QuietLogger0());
- _lazyFinal($, "global8", "$get$global9", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module7", "$get$module7", () => A.BuiltInModule$0("map", A._setArrayType([$.$get$_get0(), $.$get$_set0(), $.$get$_merge0(), $.$get$_remove0(), $.$get$_keys0(), $.$get$_values0(), $.$get$_hasKey0(), $.$get$_deepMerge0(), $.$get$_deepRemove0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
- _lazyFinal($, "_get0", "$get$_get0", () => A._function9("get", "$map, $key, $keys...", new A._get_closure0()));
- _lazyFinal($, "_set0", "$get$_set0", () => A.BuiltInCallable$overloadedFunction0("set", A.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A._set_closure1(), "$map, $args...", new A._set_closure2()], type$.String, type$.Value_Function_List_Value_2)));
- _lazyFinal($, "_merge0", "$get$_merge0", () => A.BuiltInCallable$overloadedFunction0("merge", A.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A._merge_closure1(), "$map1, $args...", new A._merge_closure2()], type$.String, type$.Value_Function_List_Value_2)));
- _lazyFinal($, "_deepMerge0", "$get$_deepMerge0", () => A._function9("deep-merge", "$map1, $map2", new A._deepMerge_closure0()));
- _lazyFinal($, "_deepRemove0", "$get$_deepRemove0", () => A._function9("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure0()));
- _lazyFinal($, "_remove0", "$get$_remove0", () => A.BuiltInCallable$overloadedFunction0("remove", A.LinkedHashMap_LinkedHashMap$_literal(["$map", new A._remove_closure1(), "$map, $key, $keys...", new A._remove_closure2()], type$.String, type$.Value_Function_List_Value_2)));
- _lazyFinal($, "_keys0", "$get$_keys0", () => A._function9("keys", "$map", new A._keys_closure0()));
- _lazyFinal($, "_values0", "$get$_values0", () => A._function9("values", "$map", new A._values_closure0()));
- _lazyFinal($, "_hasKey0", "$get$_hasKey0", () => A._function9("has-key", "$map, $key, $keys...", new A._hasKey_closure0()));
- _lazyFinal($, "mapClass", "$get$mapClass", () => new A.mapClass_closure().call$0());
- _lazyFinal($, "legacyMapClass", "$get$legacyMapClass", () => {
- var t1 = A.createJSClass("sass.types.Map", new A.legacyMapClass_closure());
- A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getKey", new A.legacyMapClass_closure0(), "getValue", new A.legacyMapClass_closure1(), "getLength", new A.legacyMapClass_closure2(), "setKey", new A.legacyMapClass_closure3(), "setValue", new A.legacyMapClass_closure4()], type$.String, type$.Function));
- return t1;
- });
- _lazyFinal($, "global9", "$get$global10", () => A.UnmodifiableListView$(A._setArrayType([A._function8("abs", "$number", new A.global_closure31()), $.$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));
- _lazyFinal($, "module8", "$get$module8", () => {
- var _null = null;
- return A.BuiltInModule$0("math", A._setArrayType([A._numberFunction0("abs", new A.module_closure11()), $.$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(), $.$get$_div0()], type$.JSArray_Callable_2), _null, A.LinkedHashMap_LinkedHashMap$_literal(["e", A.SassNumber_SassNumber0(2.718281828459045, _null), "pi", A.SassNumber_SassNumber0(3.141592653589793, _null), "epsilon", A.SassNumber_SassNumber0(2220446049250313e-31, _null), "max-safe-integer", A.SassNumber_SassNumber0(9007199254740991, _null), "min-safe-integer", A.SassNumber_SassNumber0(-9007199254740991, _null), "max-number", A.SassNumber_SassNumber0(17976931348623157e292, _null), "min-number", A.SassNumber_SassNumber0(5e-324, _null)], type$.String, type$.Value_2), type$.Callable_2);
- });
- _lazyFinal($, "_ceil0", "$get$_ceil0", () => A._numberFunction0("ceil", new A._ceil_closure0()));
- _lazyFinal($, "_clamp0", "$get$_clamp0", () => A._function8("clamp", "$min, $number, $max", new A._clamp_closure0()));
- _lazyFinal($, "_floor0", "$get$_floor0", () => A._numberFunction0("floor", new A._floor_closure0()));
- _lazyFinal($, "_max0", "$get$_max0", () => A._function8("max", "$numbers...", new A._max_closure0()));
- _lazyFinal($, "_min0", "$get$_min0", () => A._function8("min", "$numbers...", new A._min_closure0()));
- _lazyFinal($, "_round0", "$get$_round0", () => A._numberFunction0("round", new A._round_closure0()));
- _lazyFinal($, "_hypot0", "$get$_hypot0", () => A._function8("hypot", "$numbers...", new A._hypot_closure0()));
- _lazyFinal($, "_log0", "$get$_log0", () => A._function8("log", "$number, $base: null", new A._log_closure0()));
- _lazyFinal($, "_pow0", "$get$_pow0", () => A._function8("pow", "$base, $exponent", new A._pow_closure0()));
- _lazyFinal($, "_sqrt0", "$get$_sqrt0", () => A._singleArgumentMathFunc0("sqrt", A.number2__sqrt$closure()));
- _lazyFinal($, "_acos0", "$get$_acos0", () => A._singleArgumentMathFunc0("acos", A.number2__acos$closure()));
- _lazyFinal($, "_asin0", "$get$_asin0", () => A._singleArgumentMathFunc0("asin", A.number2__asin$closure()));
- _lazyFinal($, "_atan0", "$get$_atan0", () => A._singleArgumentMathFunc0("atan", A.number2__atan$closure()));
- _lazyFinal($, "_atan20", "$get$_atan20", () => A._function8("atan2", "$y, $x", new A._atan2_closure0()));
- _lazyFinal($, "_cos0", "$get$_cos0", () => A._singleArgumentMathFunc0("cos", A.number2__cos$closure()));
- _lazyFinal($, "_sin0", "$get$_sin0", () => A._singleArgumentMathFunc0("sin", A.number2__sin$closure()));
- _lazyFinal($, "_tan0", "$get$_tan0", () => A._singleArgumentMathFunc0("tan", A.number2__tan$closure()));
- _lazyFinal($, "_compatible0", "$get$_compatible0", () => A._function8("compatible", "$number1, $number2", new A._compatible_closure0()));
- _lazyFinal($, "_isUnitless0", "$get$_isUnitless0", () => A._function8("is-unitless", "$number", new A._isUnitless_closure0()));
- _lazyFinal($, "_unit0", "$get$_unit0", () => A._function8("unit", "$number", new A._unit_closure0()));
- _lazyFinal($, "_percentage0", "$get$_percentage0", () => A._function8("percentage", "$number", new A._percentage_closure0()));
- _lazyFinal($, "_random1", "$get$_random2", () => A.Random_Random());
- _lazyFinal($, "_randomFunction0", "$get$_randomFunction0", () => A._function8("random", "$limit: null", new A._randomFunction_closure0()));
- _lazyFinal($, "_div0", "$get$_div0", () => A._function8("div", "$number1, $number2", new A._div_closure0()));
- _lazyFinal($, "global10", "$get$global6", () => A.UnmodifiableListView$(A._setArrayType([A._function12("feature-exists", "$feature", new A.global_closure59()), A._function12("inspect", "$value", new A.global_closure60()), A._function12("type-of", "$value", new A.global_closure61()), A._function12("keywords", "$args", new A.global_closure62())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
- _lazyFinal($, "local0", "$get$local0", () => A.UnmodifiableListView$(A._setArrayType([A._function12("calc-name", "$calc", new A.local_closure2()), A._function12("calc-args", "$calc", new A.local_closure3()), A._function12("accepts-content", "$mixin", new A.local_closure4())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
- _lazyFinal($, "mixinClass", "$get$mixinClass", () => new A.mixinClass_closure().call$0());
- _lazyFinal($, "legacyNullClass", "$get$legacyNullClass", () => new A.legacyNullClass_closure().call$0());
- _lazyFinal($, "_epsilon0", "$get$_epsilon0", () => A.pow(10, -11));
- _lazyFinal($, "_inverseEpsilon0", "$get$_inverseEpsilon0", () => A.pow(10, 11));
- _lazyFinal($, "numberClass", "$get$numberClass", () => new A.numberClass_closure().call$0());
- _lazyFinal($, "legacyNumberClass", "$get$legacyNumberClass", () => {
- var t1 = A.createJSClass("sass.types.Number", new A.legacyNumberClass_closure());
- A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyNumberClass_closure0(), "setValue", new A.legacyNumberClass_closure1(), "getUnit", new A.legacyNumberClass_closure2(), "setUnit", new A.legacyNumberClass_closure3()], type$.String, type$.Function));
- return t1;
- });
- _lazyFinal($, "_typesByUnit0", "$get$_typesByUnit0", () => {
- var t3, type,
- t1 = type$.String,
- t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
- for (t1 = A.MapExtensions_get_pairs0(B.Map_397RH, t1, type$.List_String), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
- t3 = t1.get$current(t1);
- type = t3._0;
- for (t3 = J.get$iterator$ax(t3._1); t3.moveNext$0();)
- t2.$indexSet(0, t3.get$current(t3), type);
- }
- return t2;
- });
- _lazyFinal($, "global11", "$get$global11", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module9", "$get$module9", () => A.BuiltInModule$0("selector", A._setArrayType([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0(), $.$get$_nest0(), $.$get$_append1(), $.$get$_extend0(), $.$get$_replace0(), $.$get$_unify0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
- _lazyFinal($, "_nest0", "$get$_nest0", () => A._function7("nest", "$selectors...", new A._nest_closure0()));
- _lazyFinal($, "_append2", "$get$_append1", () => A._function7("append", "$selectors...", new A._append_closure1()));
- _lazyFinal($, "_extend0", "$get$_extend0", () => A._function7("extend", "$selector, $extendee, $extender", new A._extend_closure0()));
- _lazyFinal($, "_replace0", "$get$_replace0", () => A._function7("replace", "$selector, $original, $replacement", new A._replace_closure0()));
- _lazyFinal($, "_unify0", "$get$_unify0", () => A._function7("unify", "$selector1, $selector2", new A._unify_closure0()));
- _lazyFinal($, "_isSuperselector0", "$get$_isSuperselector0", () => A._function7("is-superselector", "$super, $sub", new A._isSuperselector_closure0()));
- _lazyFinal($, "_simpleSelectors0", "$get$_simpleSelectors0", () => A._function7("simple-selectors", "$selector", new A._simpleSelectors_closure0()));
- _lazyFinal($, "_parse0", "$get$_parse0", () => A._function7("parse", "$selector", new A._parse_closure0()));
- _lazyFinal($, "_knownCompatibilitiesByUnit0", "$get$_knownCompatibilitiesByUnit0", () => {
- var _i, set, t2,
- t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set<String>"));
- for (_i = 0; _i < 5; ++_i) {
- set = B.List_Eeh[_i];
- for (t2 = set.get$iterator(set); t2.moveNext$0();)
- t1.$indexSet(0, t2.get$current(0), set);
- }
- return t1;
- });
- _lazyFinal($, "bogusSpan0", "$get$bogusSpan0", () => A.SourceFile$decoded(A._setArrayType([], type$.JSArray_int), null).span$1(0, 0));
- _lazyFinal($, "_random2", "$get$_random1", () => A.Random_Random());
- _lazy($, "_previousUniqueId0", "$get$_previousUniqueId0", () => $.$get$_random1().nextInt$1(A._asInt(A.pow(36, 6))));
- _lazyFinal($, "global12", "$get$global12", () => A.UnmodifiableListView$(A._setArrayType([$.$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));
- _lazyFinal($, "module10", "$get$module10", () => A.BuiltInModule$0("string", A._setArrayType([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_length1(), $.$get$_insert0(), $.$get$_index1(), $.$get$_slice0(), $.$get$_uniqueId0(), A._function6("split", "$string, $separator, $limit: null", new A.module_closure10())], type$.JSArray_Callable_2), null, null, type$.Callable_2));
- _lazyFinal($, "_unquote0", "$get$_unquote0", () => A._function6("unquote", "$string", new A._unquote_closure0()));
- _lazyFinal($, "_quote0", "$get$_quote0", () => A._function6("quote", "$string", new A._quote_closure0()));
- _lazyFinal($, "_length2", "$get$_length1", () => A._function6("length", "$string", new A._length_closure1()));
- _lazyFinal($, "_insert0", "$get$_insert0", () => A._function6("insert", "$string, $insert, $index", new A._insert_closure0()));
- _lazyFinal($, "_index2", "$get$_index1", () => A._function6("index", "$string, $substring", new A._index_closure1()));
- _lazyFinal($, "_slice0", "$get$_slice0", () => A._function6("slice", "$string, $start-at, $end-at: -1", new A._slice_closure0()));
- _lazyFinal($, "_toUpperCase0", "$get$_toUpperCase0", () => A._function6("to-upper-case", "$string", new A._toUpperCase_closure0()));
- _lazyFinal($, "_toLowerCase0", "$get$_toLowerCase0", () => A._function6("to-lower-case", "$string", new A._toLowerCase_closure0()));
- _lazyFinal($, "_uniqueId0", "$get$_uniqueId0", () => A._function6("unique-id", "", new A._uniqueId_closure0()));
- _lazyFinal($, "stringClass", "$get$stringClass", () => new A.stringClass_closure().call$0());
- _lazyFinal($, "legacyStringClass", "$get$legacyStringClass", () => {
- var t1 = A.createJSClass("sass.types.String", new A.legacyStringClass_closure());
- A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyStringClass_closure0(), "setValue", new A.legacyStringClass_closure1()], type$.String, type$.Function));
- return t1;
- });
- _lazyFinal($, "_emptyQuoted0", "$get$_emptyQuoted0", () => A.SassString$0("", true));
- _lazyFinal($, "_emptyUnquoted0", "$get$_emptyUnquoted0", () => A.SassString$0("", false));
- _lazyFinal($, "_urlSchemeRegExp", "$get$_urlSchemeRegExp", () => A.RegExp_RegExp("^[a-z0-9+.-]+$", false));
- _lazyFinal($, "_jsThrow0", "$get$_jsThrow", () => new self.Function("error", "throw error;"));
- _lazyFinal($, "_isUndefined", "$get$_isUndefined", () => new self.Function("value", "return value === undefined;"));
- _lazyFinal($, "_noSourceUrl0", "$get$_noSourceUrl0", () => A.Uri_parse("-"));
- _lazyFinal($, "_traces0", "$get$_traces0", () => A.Expando$());
- _lazyFinal($, "valueClass", "$get$valueClass", () => new A.valueClass_closure().call$0());
- })();
- (function nativeSupport() {
- !function() {
- var intern = function(s) {
- var o = {};
- o[s] = 1;
- return Object.keys(hunkHelpers.convertToFastObject(o))[0];
- };
- init.getIsolateTag = function(name) {
- return intern("___dart_" + name + init.isolateTag);
- };
- var tableProperty = "___dart_isolate_tags_";
- var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null));
- var rootProperty = "_ZxYxX";
- for (var i = 0;; i++) {
- var property = intern(rootProperty + "_" + i + "_");
- if (!(property in usedProperties)) {
- usedProperties[property] = 1;
- init.isolateTag = property;
- break;
- }
- }
- init.dispatchPropertyName = init.getIsolateTag("dispatch_record");
- }();
- hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: A.NativeByteBuffer, ArrayBufferView: A.NativeTypedData, DataView: A.NativeByteData, Float32Array: A.NativeFloat32List, Float64Array: A.NativeFloat64List, Int16Array: A.NativeInt16List, Int32Array: A.NativeInt32List, Int8Array: A.NativeInt8List, Uint16Array: A.NativeUint16List, Uint32Array: A.NativeUint32List, Uint8ClampedArray: A.NativeUint8ClampedList, CanvasPixelArray: A.NativeUint8ClampedList, Uint8Array: A.NativeUint8List});
- hunkHelpers.setOrUpdateLeafTags({ArrayBuffer: true, ArrayBufferView: false, DataView: true, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false});
- A.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView";
- A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
- A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
- A.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView";
- A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
- A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
- A.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
- })();
- Function.prototype.call$0 = function() {
- return this();
- };
- Function.prototype.call$1 = function(a) {
- return this(a);
- };
- Function.prototype.call$2 = function(a, b) {
- return this(a, b);
- };
- Function.prototype.call$3$1 = function(a) {
- return this(a);
- };
- Function.prototype.call$2$1 = function(a) {
- return this(a);
- };
- Function.prototype.call$1$1 = function(a) {
- return this(a);
- };
- Function.prototype.call$3 = function(a, b, c) {
- return this(a, b, c);
- };
- Function.prototype.call$4 = function(a, b, c, d) {
- return this(a, b, c, d);
- };
- Function.prototype.call$3$3 = function(a, b, c) {
- return this(a, b, c);
- };
- Function.prototype.call$2$2 = function(a, b) {
- return this(a, b);
- };
- Function.prototype.call$5 = function(a, b, c, d, e) {
- return this(a, b, c, d, e);
- };
- Function.prototype.call$6 = function(a, b, c, d, e, f) {
- return this(a, b, c, d, e, f);
- };
- Function.prototype.call$2$0 = function() {
- return this();
- };
- Function.prototype.call$1$0 = function() {
- return this();
- };
- Function.prototype.call$1$2 = function(a, b) {
- return this(a, b);
- };
- Function.prototype.call$2$3 = function(a, b, c) {
- return this(a, b, c);
- };
- convertAllToFastObject(holders);
- convertToFastObject($);
- (function(callback) {
- if (typeof document === "undefined") {
- callback(null);
- return;
- }
- if (typeof document.currentScript != "undefined") {
- callback(document.currentScript);
- return;
- }
- var scripts = document.scripts;
- function onLoad(event) {
- for (var i = 0; i < scripts.length; ++i) {
- scripts[i].removeEventListener("load", onLoad, false);
- }
- callback(event.target);
- }
- for (var i = 0; i < scripts.length; ++i) {
- scripts[i].addEventListener("load", onLoad, false);
- }
- })(function(currentScript) {
- init.currentScript = currentScript;
- var callMain = A.main2;
- if (typeof dartMainRunner === "function") {
- dartMainRunner(callMain, []);
- } else {
- callMain([]);
- }
- });
- })();
- }
|