properties.js 227 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637
  1. "use strict";
  2. // autogenerated - 2026-01-06
  3. // https://www.w3.org/Style/CSS/all-properties.en.html
  4. var external_dependency_parsers_0 = require("../parsers.js");
  5. var backgroundImage_export_parse, backgroundImage_export_definition, backgroundImage_export_property;
  6. const backgroundImage_local_var_property = "background-image";
  7. const backgroundImage_local_var_shorthand = "background";
  8. backgroundImage_export_parse = (v, opt = {}) => {
  9. const {
  10. globalObject
  11. } = opt;
  12. if (v === "") {
  13. return v;
  14. }
  15. const values = external_dependency_parsers_0.splitValue(v, {
  16. delimiter: ","
  17. });
  18. const parsedValues = [];
  19. for (const val of values) {
  20. const value = external_dependency_parsers_0.parsePropertyValue(backgroundImage_local_var_property, val, {
  21. globalObject,
  22. inArray: true
  23. });
  24. if (Array.isArray(value) && value.length === 1) {
  25. const parsedValue = external_dependency_parsers_0.resolveGradientUrlValue(value);
  26. if (!parsedValue) {
  27. return;
  28. }
  29. parsedValues.push(parsedValue);
  30. } else if (typeof value === "string") {
  31. parsedValues.push(value);
  32. } else {
  33. return;
  34. }
  35. }
  36. if (parsedValues.length) {
  37. return parsedValues.join(", ");
  38. }
  39. };
  40. backgroundImage_export_definition = {
  41. set(v) {
  42. v = external_dependency_parsers_0.prepareValue(v);
  43. if (external_dependency_parsers_0.hasVarFunc(v)) {
  44. this._setProperty(backgroundImage_local_var_shorthand, "");
  45. this._setProperty(backgroundImage_local_var_property, v);
  46. } else {
  47. const val = backgroundImage_export_parse(v, {
  48. globalObject: this._global
  49. });
  50. if (typeof val === "string") {
  51. const priority = !this._priorities.get(backgroundImage_local_var_shorthand) && this._priorities.has(backgroundImage_local_var_property) ? this._priorities.get(backgroundImage_local_var_property) : "";
  52. this._setProperty(backgroundImage_local_var_property, val, priority);
  53. }
  54. }
  55. },
  56. get() {
  57. return this.getPropertyValue(backgroundImage_local_var_property);
  58. },
  59. enumerable: true,
  60. configurable: true
  61. };
  62. backgroundImage_export_property = backgroundImage_local_var_property;
  63. var backgroundPosition_export_parse, backgroundPosition_export_definition, backgroundPosition_export_property;
  64. const backgroundPosition_local_var_property = "background-position";
  65. const backgroundPosition_local_var_shorthand = "background";
  66. const backgroundPosition_local_var_keyX = ["left", "right"];
  67. const backgroundPosition_local_var_keyY = ["top", "bottom"];
  68. const backgroundPosition_local_var_keywordsX = ["center", ...backgroundPosition_local_var_keyX];
  69. const backgroundPosition_local_var_keywordsY = ["center", ...backgroundPosition_local_var_keyY];
  70. const backgroundPosition_local_var_keywords = ["center", ...backgroundPosition_local_var_keyX, ...backgroundPosition_local_var_keyY];
  71. backgroundPosition_export_parse = (v, opt = {}) => {
  72. const {
  73. globalObject
  74. } = opt;
  75. if (v === "") {
  76. return v;
  77. }
  78. const {
  79. AST_TYPES
  80. } = external_dependency_parsers_0;
  81. const values = external_dependency_parsers_0.splitValue(v, {
  82. delimiter: ","
  83. });
  84. const parsedValues = [];
  85. for (const val of values) {
  86. const value = external_dependency_parsers_0.parsePropertyValue(backgroundPosition_local_var_property, val, {
  87. globalObject,
  88. inArray: true
  89. });
  90. if (Array.isArray(value) && value.length) {
  91. const [part1, part2, part3, part4] = value;
  92. let parsedValue = "";
  93. switch (value.length) {
  94. case 1:
  95. {
  96. const val1 = part1.type === AST_TYPES.IDENTIFIER ? part1.name : external_dependency_parsers_0.resolveNumericValue([part1], {
  97. type: "length"
  98. });
  99. if (val1) {
  100. if (val1 === "center") {
  101. parsedValue = `${val1} ${val1}`;
  102. } else if (val1 === "top" || val1 === "bottom") {
  103. parsedValue = `center ${val1}`;
  104. } else {
  105. parsedValue = `${val1} center`;
  106. }
  107. }
  108. break;
  109. }
  110. case 2:
  111. {
  112. const val1 = part1.type === AST_TYPES.IDENTIFIER ? part1.name : external_dependency_parsers_0.resolveNumericValue([part1], {
  113. type: "length"
  114. });
  115. const val2 = part2.type === AST_TYPES.IDENTIFIER ? part2.name : external_dependency_parsers_0.resolveNumericValue([part2], {
  116. type: "length"
  117. });
  118. if (val1 && val2) {
  119. if (backgroundPosition_local_var_keywordsX.includes(val1) && backgroundPosition_local_var_keywordsY.includes(val2)) {
  120. parsedValue = `${val1} ${val2}`;
  121. } else if (backgroundPosition_local_var_keywordsY.includes(val1) && backgroundPosition_local_var_keywordsX.includes(val2)) {
  122. parsedValue = `${val2} ${val1}`;
  123. } else if (backgroundPosition_local_var_keywordsX.includes(val1)) {
  124. if (val2 === "center" || !backgroundPosition_local_var_keywordsX.includes(val2)) {
  125. parsedValue = `${val1} ${val2}`;
  126. }
  127. } else if (backgroundPosition_local_var_keywordsY.includes(val2)) {
  128. if (!backgroundPosition_local_var_keywordsY.includes(val1)) {
  129. parsedValue = `${val1} ${val2}`;
  130. }
  131. } else if (!backgroundPosition_local_var_keywordsY.includes(val1) && !backgroundPosition_local_var_keywordsX.includes(val2)) {
  132. parsedValue = `${val1} ${val2}`;
  133. }
  134. }
  135. break;
  136. }
  137. case 3:
  138. {
  139. const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
  140. const val2 = part2.type === AST_TYPES.IDENTIFIER ? part2.name : external_dependency_parsers_0.resolveNumericValue([part2], {
  141. type: "length"
  142. });
  143. const val3 = part3.type === AST_TYPES.IDENTIFIER ? part3.name : external_dependency_parsers_0.resolveNumericValue([part3], {
  144. type: "length"
  145. });
  146. if (val1 && val2 && val3) {
  147. let posX = "";
  148. let offX = "";
  149. let posY = "";
  150. let offY = "";
  151. if (backgroundPosition_local_var_keywordsX.includes(val1)) {
  152. if (backgroundPosition_local_var_keyY.includes(val2)) {
  153. if (!backgroundPosition_local_var_keywords.includes(val3)) {
  154. posX = val1;
  155. posY = val2;
  156. offY = val3;
  157. }
  158. } else if (backgroundPosition_local_var_keyY.includes(val3)) {
  159. if (!backgroundPosition_local_var_keywords.includes(val2)) {
  160. posX = val1;
  161. offX = val2;
  162. posY = val3;
  163. }
  164. }
  165. } else if (backgroundPosition_local_var_keywordsY.includes(val1)) {
  166. if (backgroundPosition_local_var_keyX.includes(val2)) {
  167. if (!backgroundPosition_local_var_keywords.includes(val3)) {
  168. posX = val2;
  169. offX = val3;
  170. posY = val1;
  171. }
  172. } else if (backgroundPosition_local_var_keyX.includes(val3)) {
  173. if (!backgroundPosition_local_var_keywords.includes(val2)) {
  174. posX = val3;
  175. posY = val1;
  176. offY = val2;
  177. }
  178. }
  179. }
  180. if (posX && posY) {
  181. if (offX) {
  182. parsedValue = `${posX} ${offX} ${posY}`;
  183. } else if (offY) {
  184. parsedValue = `${posX} ${posY} ${offY}`;
  185. }
  186. }
  187. }
  188. break;
  189. }
  190. case 4:
  191. {
  192. const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
  193. const val2 = external_dependency_parsers_0.resolveNumericValue([part2], {
  194. type: "length"
  195. });
  196. const val3 = part3.type === AST_TYPES.IDENTIFIER && part3.name;
  197. const val4 = external_dependency_parsers_0.resolveNumericValue([part4], {
  198. type: "length"
  199. });
  200. if (val1 && val2 && val3 && val4) {
  201. let posX = "";
  202. let offX = "";
  203. let posY = "";
  204. let offY = "";
  205. if (backgroundPosition_local_var_keywordsX.includes(val1) && backgroundPosition_local_var_keyY.includes(val3)) {
  206. posX = val1;
  207. offX = val2;
  208. posY = val3;
  209. offY = val4;
  210. } else if (backgroundPosition_local_var_keyX.includes(val1) && backgroundPosition_local_var_keywordsY.includes(val3)) {
  211. posX = val1;
  212. offX = val2;
  213. posY = val3;
  214. offY = val4;
  215. } else if (backgroundPosition_local_var_keyY.includes(val1) && backgroundPosition_local_var_keywordsX.includes(val3)) {
  216. posX = val3;
  217. offX = val4;
  218. posY = val1;
  219. offY = val2;
  220. }
  221. if (posX && offX && posY && offY) {
  222. parsedValue = `${posX} ${offX} ${posY} ${offY}`;
  223. }
  224. }
  225. break;
  226. }
  227. default:
  228. }
  229. if (parsedValue) {
  230. parsedValues.push(parsedValue);
  231. } else {
  232. return;
  233. }
  234. } else if (typeof value === "string") {
  235. parsedValues.push(value);
  236. }
  237. }
  238. if (parsedValues.length) {
  239. return parsedValues.join(", ");
  240. }
  241. };
  242. backgroundPosition_export_definition = {
  243. set(v) {
  244. v = external_dependency_parsers_0.prepareValue(v);
  245. if (external_dependency_parsers_0.hasVarFunc(v)) {
  246. this._setProperty(backgroundPosition_local_var_shorthand, "");
  247. this._setProperty(backgroundPosition_local_var_property, v);
  248. } else {
  249. const val = backgroundPosition_export_parse(v, {
  250. globalObject: this._global
  251. });
  252. if (typeof val === "string") {
  253. const priority = !this._priorities.get(backgroundPosition_local_var_shorthand) && this._priorities.has(backgroundPosition_local_var_property) ? this._priorities.get(backgroundPosition_local_var_property) : "";
  254. this._setProperty(backgroundPosition_local_var_property, val, priority);
  255. }
  256. }
  257. },
  258. get() {
  259. return this.getPropertyValue(backgroundPosition_local_var_property);
  260. },
  261. enumerable: true,
  262. configurable: true
  263. };
  264. backgroundPosition_export_property = backgroundPosition_local_var_property;
  265. var backgroundSize_export_parse, backgroundSize_export_definition, backgroundSize_export_property;
  266. const backgroundSize_local_var_property = "background-size";
  267. const backgroundSize_local_var_shorthand = "background";
  268. backgroundSize_export_parse = (v, opt = {}) => {
  269. const {
  270. globalObject
  271. } = opt;
  272. if (v === "") {
  273. return v;
  274. }
  275. const {
  276. AST_TYPES
  277. } = external_dependency_parsers_0;
  278. const values = external_dependency_parsers_0.splitValue(v, {
  279. delimiter: ","
  280. });
  281. const parsedValues = [];
  282. for (const val of values) {
  283. const value = external_dependency_parsers_0.parsePropertyValue(backgroundSize_local_var_property, val, {
  284. globalObject,
  285. inArray: true
  286. });
  287. if (Array.isArray(value) && value.length) {
  288. if (value.length === 1) {
  289. const [{
  290. isNumber,
  291. name,
  292. type,
  293. value: itemValue
  294. }] = value;
  295. switch (type) {
  296. case AST_TYPES.CALC:
  297. {
  298. if (isNumber) {
  299. return;
  300. }
  301. parsedValues.push(`${name}(${itemValue})`);
  302. break;
  303. }
  304. case AST_TYPES.GLOBAL_KEYWORD:
  305. case AST_TYPES.IDENTIFIER:
  306. {
  307. parsedValues.push(name);
  308. break;
  309. }
  310. default:
  311. {
  312. const parsedValue = external_dependency_parsers_0.resolveNumericValue(value, {
  313. type: "length"
  314. });
  315. if (!parsedValue) {
  316. return;
  317. }
  318. parsedValues.push(parsedValue);
  319. }
  320. }
  321. } else {
  322. const [val1, val2] = value;
  323. const parts = [];
  324. if (val1.type === AST_TYPES.CALC && !val1.isNumber) {
  325. parts.push(`${val1.name}(${val1.value})`);
  326. } else if (val1.type === AST_TYPES.IDENTIFIER) {
  327. parts.push(val1.name);
  328. } else if (val1.type === AST_TYPES.DIMENSION) {
  329. parts.push(`${val1.value}${val1.unit}`);
  330. } else if (val1.type === AST_TYPES.PERCENTAGE) {
  331. parts.push(`${val1.value}%`);
  332. } else {
  333. return;
  334. }
  335. switch (val2.type) {
  336. case AST_TYPES.CALC:
  337. {
  338. if (val2.isNumber) {
  339. return;
  340. }
  341. parts.push(`${val2.name}(${val2.value})`);
  342. break;
  343. }
  344. case AST_TYPES.DIMENSION:
  345. {
  346. parts.push(`${val2.value}${val2.unit}`);
  347. break;
  348. }
  349. case AST_TYPES.IDENTIFIER:
  350. {
  351. if (val2.name !== "auto") {
  352. parts.push(val2.name);
  353. }
  354. break;
  355. }
  356. case AST_TYPES.PERCENTAGE:
  357. {
  358. parts.push(`${val2.value}%`);
  359. break;
  360. }
  361. default:
  362. {
  363. return;
  364. }
  365. }
  366. parsedValues.push(parts.join(" "));
  367. }
  368. } else if (typeof value === "string") {
  369. parsedValues.push(value);
  370. }
  371. }
  372. if (parsedValues.length) {
  373. return parsedValues.join(", ");
  374. }
  375. };
  376. backgroundSize_export_definition = {
  377. set(v) {
  378. v = external_dependency_parsers_0.prepareValue(v);
  379. if (external_dependency_parsers_0.hasVarFunc(v)) {
  380. this._setProperty(backgroundSize_local_var_shorthand, "");
  381. this._setProperty(backgroundSize_local_var_property, v);
  382. } else {
  383. const val = backgroundSize_export_parse(v, {
  384. globalObject: this._global
  385. });
  386. if (typeof val === "string") {
  387. const priority = !this._priorities.get(backgroundSize_local_var_shorthand) && this._priorities.has(backgroundSize_local_var_property) ? this._priorities.get(backgroundSize_local_var_property) : "";
  388. this._setProperty(backgroundSize_local_var_property, val, priority);
  389. }
  390. }
  391. },
  392. get() {
  393. return this.getPropertyValue(backgroundSize_local_var_property);
  394. },
  395. enumerable: true,
  396. configurable: true
  397. };
  398. backgroundSize_export_property = backgroundSize_local_var_property;
  399. var backgroundRepeat_export_parse, backgroundRepeat_export_definition, backgroundRepeat_export_property;
  400. const backgroundRepeat_local_var_property = "background-repeat";
  401. const backgroundRepeat_local_var_shorthand = "background";
  402. backgroundRepeat_export_parse = (v, opt = {}) => {
  403. const {
  404. globalObject
  405. } = opt;
  406. if (v === "") {
  407. return v;
  408. }
  409. const {
  410. AST_TYPES
  411. } = external_dependency_parsers_0;
  412. const values = external_dependency_parsers_0.splitValue(v, {
  413. delimiter: ","
  414. });
  415. const parsedValues = [];
  416. for (const val of values) {
  417. const value = external_dependency_parsers_0.parsePropertyValue(backgroundRepeat_local_var_property, val, {
  418. globalObject,
  419. inArray: true
  420. });
  421. if (Array.isArray(value) && value.length) {
  422. let parsedValue = "";
  423. switch (value.length) {
  424. case 1:
  425. {
  426. const [part1] = value;
  427. const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
  428. if (val1) {
  429. parsedValue = val1;
  430. }
  431. break;
  432. }
  433. case 2:
  434. {
  435. const [part1, part2] = value;
  436. const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
  437. const val2 = part2.type === AST_TYPES.IDENTIFIER && part2.name;
  438. if (val1 && val2) {
  439. if (val1 === "repeat" && val2 === "no-repeat") {
  440. parsedValue = "repeat-x";
  441. } else if (val1 === "no-repeat" && val2 === "repeat") {
  442. parsedValue = "repeat-y";
  443. } else if (val1 === val2) {
  444. parsedValue = val1;
  445. } else {
  446. parsedValue = `${val1} ${val2}`;
  447. }
  448. }
  449. break;
  450. }
  451. default:
  452. }
  453. if (parsedValue) {
  454. parsedValues.push(parsedValue);
  455. } else {
  456. return;
  457. }
  458. } else if (typeof value === "string") {
  459. parsedValues.push(value);
  460. }
  461. }
  462. if (parsedValues.length) {
  463. return parsedValues.join(", ");
  464. }
  465. };
  466. backgroundRepeat_export_definition = {
  467. set(v) {
  468. v = external_dependency_parsers_0.prepareValue(v);
  469. if (external_dependency_parsers_0.hasVarFunc(v)) {
  470. this._setProperty(backgroundRepeat_local_var_shorthand, "");
  471. this._setProperty(backgroundRepeat_local_var_property, v);
  472. } else {
  473. const val = backgroundRepeat_export_parse(v, {
  474. globalObject: this._global
  475. });
  476. if (typeof val === "string") {
  477. const priority = !this._priorities.get(backgroundRepeat_local_var_shorthand) && this._priorities.has(backgroundRepeat_local_var_property) ? this._priorities.get(backgroundRepeat_local_var_property) : "";
  478. this._setProperty(backgroundRepeat_local_var_property, val, priority);
  479. }
  480. }
  481. },
  482. get() {
  483. return this.getPropertyValue(backgroundRepeat_local_var_property);
  484. },
  485. enumerable: true,
  486. configurable: true
  487. };
  488. backgroundRepeat_export_property = backgroundRepeat_local_var_property;
  489. var backgroundOrigin_export_parse, backgroundOrigin_export_definition, backgroundOrigin_export_property;
  490. const backgroundOrigin_local_var_property = "background-origin";
  491. const backgroundOrigin_local_var_shorthand = "background";
  492. backgroundOrigin_export_parse = (v, opt = {}) => {
  493. const {
  494. globalObject
  495. } = opt;
  496. if (v === "") {
  497. return v;
  498. }
  499. const values = external_dependency_parsers_0.splitValue(v, {
  500. delimiter: ","
  501. });
  502. const parsedValues = [];
  503. for (const val of values) {
  504. const value = external_dependency_parsers_0.parsePropertyValue(backgroundOrigin_local_var_property, val, {
  505. globalObject,
  506. inArray: true
  507. });
  508. if (Array.isArray(value) && value.length === 1) {
  509. const parsedValue = external_dependency_parsers_0.resolveKeywordValue(value);
  510. if (!parsedValue) {
  511. return;
  512. }
  513. parsedValues.push(parsedValue);
  514. } else if (typeof value === "string") {
  515. parsedValues.push(value);
  516. }
  517. }
  518. if (parsedValues.length) {
  519. return parsedValues.join(", ");
  520. }
  521. };
  522. backgroundOrigin_export_definition = {
  523. set(v) {
  524. v = external_dependency_parsers_0.prepareValue(v);
  525. if (external_dependency_parsers_0.hasVarFunc(v)) {
  526. this._setProperty(backgroundOrigin_local_var_shorthand, "");
  527. this._setProperty(backgroundOrigin_local_var_property, v);
  528. } else {
  529. const val = backgroundOrigin_export_parse(v, {
  530. globalObject: this._global
  531. });
  532. if (typeof val === "string") {
  533. const priority = !this._priorities.get(backgroundOrigin_local_var_shorthand) && this._priorities.has(backgroundOrigin_local_var_property) ? this._priorities.get(backgroundOrigin_local_var_property) : "";
  534. this._setProperty(backgroundOrigin_local_var_property, val, priority);
  535. }
  536. }
  537. },
  538. get() {
  539. return this.getPropertyValue(backgroundOrigin_local_var_property);
  540. },
  541. enumerable: true,
  542. configurable: true
  543. };
  544. backgroundOrigin_export_property = backgroundOrigin_local_var_property;
  545. var backgroundClip_export_parse, backgroundClip_export_definition, backgroundClip_export_property;
  546. const backgroundClip_local_var_property = "background-clip";
  547. const backgroundClip_local_var_shorthand = "background";
  548. backgroundClip_export_parse = (v, opt = {}) => {
  549. const {
  550. globalObject
  551. } = opt;
  552. if (v === "") {
  553. return v;
  554. }
  555. const values = external_dependency_parsers_0.splitValue(v, {
  556. delimiter: ","
  557. });
  558. const parsedValues = [];
  559. for (const val of values) {
  560. const value = external_dependency_parsers_0.parsePropertyValue(backgroundClip_local_var_property, val, {
  561. globalObject,
  562. inArray: true
  563. });
  564. if (Array.isArray(value) && value.length === 1) {
  565. const parsedValue = external_dependency_parsers_0.resolveKeywordValue(value);
  566. if (!parsedValue) {
  567. return;
  568. }
  569. parsedValues.push(parsedValue);
  570. } else if (typeof value === "string") {
  571. parsedValues.push(value);
  572. }
  573. }
  574. if (parsedValues.length) {
  575. return parsedValues.join(", ");
  576. }
  577. };
  578. backgroundClip_export_definition = {
  579. set(v) {
  580. v = external_dependency_parsers_0.prepareValue(v);
  581. if (external_dependency_parsers_0.hasVarFunc(v)) {
  582. this._setProperty(backgroundClip_local_var_shorthand, "");
  583. this._setProperty(backgroundClip_local_var_property, v);
  584. } else {
  585. const val = backgroundClip_export_parse(v, {
  586. globalObject: this._global
  587. });
  588. if (typeof val === "string") {
  589. const priority = !this._priorities.get(backgroundClip_local_var_shorthand) && this._priorities.has(backgroundClip_local_var_property) ? this._priorities.get(backgroundClip_local_var_property) : "";
  590. this._setProperty(backgroundClip_local_var_property, val, priority);
  591. }
  592. }
  593. },
  594. get() {
  595. return this.getPropertyValue(backgroundClip_local_var_property);
  596. },
  597. enumerable: true,
  598. configurable: true
  599. };
  600. backgroundClip_export_property = backgroundClip_local_var_property;
  601. var backgroundAttachment_export_parse, backgroundAttachment_export_definition, backgroundAttachment_export_property;
  602. const backgroundAttachment_local_var_property = "background-attachment";
  603. const backgroundAttachment_local_var_shorthand = "background";
  604. backgroundAttachment_export_parse = (v, opt = {}) => {
  605. const {
  606. globalObject
  607. } = opt;
  608. if (v === "") {
  609. return v;
  610. }
  611. const values = external_dependency_parsers_0.splitValue(v, {
  612. delimiter: ","
  613. });
  614. const parsedValues = [];
  615. for (const val of values) {
  616. const value = external_dependency_parsers_0.parsePropertyValue(backgroundAttachment_local_var_property, val, {
  617. globalObject,
  618. inArray: true
  619. });
  620. if (Array.isArray(value) && value.length === 1) {
  621. const parsedValue = external_dependency_parsers_0.resolveKeywordValue(value);
  622. if (!parsedValue) {
  623. return;
  624. }
  625. parsedValues.push(parsedValue);
  626. } else if (typeof value === "string") {
  627. parsedValues.push(value);
  628. }
  629. }
  630. if (parsedValues.length) {
  631. return parsedValues.join(", ");
  632. }
  633. };
  634. backgroundAttachment_export_definition = {
  635. set(v) {
  636. v = external_dependency_parsers_0.prepareValue(v);
  637. if (external_dependency_parsers_0.hasVarFunc(v)) {
  638. this._setProperty(backgroundAttachment_local_var_shorthand, "");
  639. this._setProperty(backgroundAttachment_local_var_property, v);
  640. } else {
  641. const val = backgroundAttachment_export_parse(v, {
  642. globalObject: this._global
  643. });
  644. if (typeof val === "string") {
  645. const priority = !this._priorities.get(backgroundAttachment_local_var_shorthand) && this._priorities.has(backgroundAttachment_local_var_property) ? this._priorities.get(backgroundAttachment_local_var_property) : "";
  646. this._setProperty(backgroundAttachment_local_var_property, val, priority);
  647. }
  648. }
  649. },
  650. get() {
  651. return this.getPropertyValue(backgroundAttachment_local_var_property);
  652. },
  653. enumerable: true,
  654. configurable: true
  655. };
  656. backgroundAttachment_export_property = backgroundAttachment_local_var_property;
  657. var backgroundColor_export_parse, backgroundColor_export_definition, backgroundColor_export_property;
  658. const backgroundColor_local_var_property = "background-color";
  659. const backgroundColor_local_var_shorthand = "background";
  660. backgroundColor_export_parse = (v, opt = {}) => {
  661. const {
  662. globalObject
  663. } = opt;
  664. if (v === "") {
  665. return v;
  666. }
  667. const value = external_dependency_parsers_0.parsePropertyValue(backgroundColor_local_var_property, v, {
  668. globalObject,
  669. inArray: true
  670. });
  671. if (Array.isArray(value) && value.length === 1) {
  672. return external_dependency_parsers_0.resolveColorValue(value);
  673. } else if (typeof value === "string") {
  674. return value;
  675. }
  676. };
  677. backgroundColor_export_definition = {
  678. set(v) {
  679. v = external_dependency_parsers_0.prepareValue(v);
  680. if (external_dependency_parsers_0.hasVarFunc(v)) {
  681. this._setProperty(backgroundColor_local_var_shorthand, "");
  682. this._setProperty(backgroundColor_local_var_property, v);
  683. } else {
  684. const val = backgroundColor_export_parse(v, {
  685. globalObject: this._global
  686. });
  687. if (typeof val === "string") {
  688. const priority = !this._priorities.get(backgroundColor_local_var_shorthand) && this._priorities.has(backgroundColor_local_var_property) ? this._priorities.get(backgroundColor_local_var_property) : "";
  689. this._setProperty(backgroundColor_local_var_property, val, priority);
  690. }
  691. }
  692. },
  693. get() {
  694. return this.getPropertyValue(backgroundColor_local_var_property);
  695. },
  696. enumerable: true,
  697. configurable: true
  698. };
  699. backgroundColor_export_property = backgroundColor_local_var_property;
  700. var background_export_initialValues, background_export_shorthandFor, background_export_parse, background_export_definition, background_export_property;
  701. const background_local_var_property = "background";
  702. background_export_initialValues = new Map([[{
  703. parse: backgroundImage_export_parse,
  704. definition: backgroundImage_export_definition,
  705. property: backgroundImage_export_property
  706. }.property, "none"], [{
  707. parse: backgroundPosition_export_parse,
  708. definition: backgroundPosition_export_definition,
  709. property: backgroundPosition_export_property
  710. }.property, "0% 0%"], [{
  711. parse: backgroundSize_export_parse,
  712. definition: backgroundSize_export_definition,
  713. property: backgroundSize_export_property
  714. }.property, "auto"], [{
  715. parse: backgroundRepeat_export_parse,
  716. definition: backgroundRepeat_export_definition,
  717. property: backgroundRepeat_export_property
  718. }.property, "repeat"], [{
  719. parse: backgroundOrigin_export_parse,
  720. definition: backgroundOrigin_export_definition,
  721. property: backgroundOrigin_export_property
  722. }.property, "padding-box"], [{
  723. parse: backgroundClip_export_parse,
  724. definition: backgroundClip_export_definition,
  725. property: backgroundClip_export_property
  726. }.property, "border-box"], [{
  727. parse: backgroundAttachment_export_parse,
  728. definition: backgroundAttachment_export_definition,
  729. property: backgroundAttachment_export_property
  730. }.property, "scroll"], [{
  731. parse: backgroundColor_export_parse,
  732. definition: backgroundColor_export_definition,
  733. property: backgroundColor_export_property
  734. }.property, "transparent"]]);
  735. background_export_shorthandFor = new Map([[{
  736. parse: backgroundImage_export_parse,
  737. definition: backgroundImage_export_definition,
  738. property: backgroundImage_export_property
  739. }.property, {
  740. parse: backgroundImage_export_parse,
  741. definition: backgroundImage_export_definition,
  742. property: backgroundImage_export_property
  743. }], [{
  744. parse: backgroundPosition_export_parse,
  745. definition: backgroundPosition_export_definition,
  746. property: backgroundPosition_export_property
  747. }.property, {
  748. parse: backgroundPosition_export_parse,
  749. definition: backgroundPosition_export_definition,
  750. property: backgroundPosition_export_property
  751. }], [{
  752. parse: backgroundSize_export_parse,
  753. definition: backgroundSize_export_definition,
  754. property: backgroundSize_export_property
  755. }.property, {
  756. parse: backgroundSize_export_parse,
  757. definition: backgroundSize_export_definition,
  758. property: backgroundSize_export_property
  759. }], [{
  760. parse: backgroundRepeat_export_parse,
  761. definition: backgroundRepeat_export_definition,
  762. property: backgroundRepeat_export_property
  763. }.property, {
  764. parse: backgroundRepeat_export_parse,
  765. definition: backgroundRepeat_export_definition,
  766. property: backgroundRepeat_export_property
  767. }], [{
  768. parse: backgroundOrigin_export_parse,
  769. definition: backgroundOrigin_export_definition,
  770. property: backgroundOrigin_export_property
  771. }.property, {
  772. parse: backgroundOrigin_export_parse,
  773. definition: backgroundOrigin_export_definition,
  774. property: backgroundOrigin_export_property
  775. }], [{
  776. parse: backgroundClip_export_parse,
  777. definition: backgroundClip_export_definition,
  778. property: backgroundClip_export_property
  779. }.property, {
  780. parse: backgroundClip_export_parse,
  781. definition: backgroundClip_export_definition,
  782. property: backgroundClip_export_property
  783. }], [{
  784. parse: backgroundAttachment_export_parse,
  785. definition: backgroundAttachment_export_definition,
  786. property: backgroundAttachment_export_property
  787. }.property, {
  788. parse: backgroundAttachment_export_parse,
  789. definition: backgroundAttachment_export_definition,
  790. property: backgroundAttachment_export_property
  791. }], [{
  792. parse: backgroundColor_export_parse,
  793. definition: backgroundColor_export_definition,
  794. property: backgroundColor_export_property
  795. }.property, {
  796. parse: backgroundColor_export_parse,
  797. definition: backgroundColor_export_definition,
  798. property: backgroundColor_export_property
  799. }]]);
  800. background_export_parse = (v, opt = {}) => {
  801. const {
  802. globalObject
  803. } = opt;
  804. if (v === "") {
  805. return v;
  806. } else if (external_dependency_parsers_0.hasCalcFunc(v)) {
  807. v = external_dependency_parsers_0.resolveCalc(v);
  808. }
  809. if (!external_dependency_parsers_0.isValidPropertyValue(background_local_var_property, v)) {
  810. return;
  811. }
  812. const values = external_dependency_parsers_0.splitValue(v, {
  813. delimiter: ","
  814. });
  815. const bgValues = [];
  816. const l = values.length;
  817. for (let i = 0; i < l; i++) {
  818. let bg = {
  819. [{
  820. parse: backgroundImage_export_parse,
  821. definition: backgroundImage_export_definition,
  822. property: backgroundImage_export_property
  823. }.property]: background_export_initialValues.get({
  824. parse: backgroundImage_export_parse,
  825. definition: backgroundImage_export_definition,
  826. property: backgroundImage_export_property
  827. }.property),
  828. [{
  829. parse: backgroundPosition_export_parse,
  830. definition: backgroundPosition_export_definition,
  831. property: backgroundPosition_export_property
  832. }.property]: background_export_initialValues.get({
  833. parse: backgroundPosition_export_parse,
  834. definition: backgroundPosition_export_definition,
  835. property: backgroundPosition_export_property
  836. }.property),
  837. [{
  838. parse: backgroundSize_export_parse,
  839. definition: backgroundSize_export_definition,
  840. property: backgroundSize_export_property
  841. }.property]: background_export_initialValues.get({
  842. parse: backgroundSize_export_parse,
  843. definition: backgroundSize_export_definition,
  844. property: backgroundSize_export_property
  845. }.property),
  846. [{
  847. parse: backgroundRepeat_export_parse,
  848. definition: backgroundRepeat_export_definition,
  849. property: backgroundRepeat_export_property
  850. }.property]: background_export_initialValues.get({
  851. parse: backgroundRepeat_export_parse,
  852. definition: backgroundRepeat_export_definition,
  853. property: backgroundRepeat_export_property
  854. }.property),
  855. [{
  856. parse: backgroundOrigin_export_parse,
  857. definition: backgroundOrigin_export_definition,
  858. property: backgroundOrigin_export_property
  859. }.property]: background_export_initialValues.get({
  860. parse: backgroundOrigin_export_parse,
  861. definition: backgroundOrigin_export_definition,
  862. property: backgroundOrigin_export_property
  863. }.property),
  864. [{
  865. parse: backgroundClip_export_parse,
  866. definition: backgroundClip_export_definition,
  867. property: backgroundClip_export_property
  868. }.property]: background_export_initialValues.get({
  869. parse: backgroundClip_export_parse,
  870. definition: backgroundClip_export_definition,
  871. property: backgroundClip_export_property
  872. }.property),
  873. [{
  874. parse: backgroundAttachment_export_parse,
  875. definition: backgroundAttachment_export_definition,
  876. property: backgroundAttachment_export_property
  877. }.property]: background_export_initialValues.get({
  878. parse: backgroundAttachment_export_parse,
  879. definition: backgroundAttachment_export_definition,
  880. property: backgroundAttachment_export_property
  881. }.property),
  882. [{
  883. parse: backgroundColor_export_parse,
  884. definition: backgroundColor_export_definition,
  885. property: backgroundColor_export_property
  886. }.property]: background_export_initialValues.get({
  887. parse: backgroundColor_export_parse,
  888. definition: backgroundColor_export_definition,
  889. property: backgroundColor_export_property
  890. }.property)
  891. };
  892. if (l > 1 && i !== l - 1) {
  893. bg = {
  894. [{
  895. parse: backgroundImage_export_parse,
  896. definition: backgroundImage_export_definition,
  897. property: backgroundImage_export_property
  898. }.property]: background_export_initialValues.get({
  899. parse: backgroundImage_export_parse,
  900. definition: backgroundImage_export_definition,
  901. property: backgroundImage_export_property
  902. }.property),
  903. [{
  904. parse: backgroundPosition_export_parse,
  905. definition: backgroundPosition_export_definition,
  906. property: backgroundPosition_export_property
  907. }.property]: background_export_initialValues.get({
  908. parse: backgroundPosition_export_parse,
  909. definition: backgroundPosition_export_definition,
  910. property: backgroundPosition_export_property
  911. }.property),
  912. [{
  913. parse: backgroundSize_export_parse,
  914. definition: backgroundSize_export_definition,
  915. property: backgroundSize_export_property
  916. }.property]: background_export_initialValues.get({
  917. parse: backgroundSize_export_parse,
  918. definition: backgroundSize_export_definition,
  919. property: backgroundSize_export_property
  920. }.property),
  921. [{
  922. parse: backgroundRepeat_export_parse,
  923. definition: backgroundRepeat_export_definition,
  924. property: backgroundRepeat_export_property
  925. }.property]: background_export_initialValues.get({
  926. parse: backgroundRepeat_export_parse,
  927. definition: backgroundRepeat_export_definition,
  928. property: backgroundRepeat_export_property
  929. }.property),
  930. [{
  931. parse: backgroundOrigin_export_parse,
  932. definition: backgroundOrigin_export_definition,
  933. property: backgroundOrigin_export_property
  934. }.property]: background_export_initialValues.get({
  935. parse: backgroundOrigin_export_parse,
  936. definition: backgroundOrigin_export_definition,
  937. property: backgroundOrigin_export_property
  938. }.property),
  939. [{
  940. parse: backgroundClip_export_parse,
  941. definition: backgroundClip_export_definition,
  942. property: backgroundClip_export_property
  943. }.property]: background_export_initialValues.get({
  944. parse: backgroundClip_export_parse,
  945. definition: backgroundClip_export_definition,
  946. property: backgroundClip_export_property
  947. }.property),
  948. [{
  949. parse: backgroundAttachment_export_parse,
  950. definition: backgroundAttachment_export_definition,
  951. property: backgroundAttachment_export_property
  952. }.property]: background_export_initialValues.get({
  953. parse: backgroundAttachment_export_parse,
  954. definition: backgroundAttachment_export_definition,
  955. property: backgroundAttachment_export_property
  956. }.property)
  957. };
  958. }
  959. const bgPosition = [];
  960. const bgSize = [];
  961. const bgRepeat = [];
  962. const bgBox = [];
  963. const bgParts = external_dependency_parsers_0.splitValue(values[i], {
  964. delimiter: "/"
  965. });
  966. if (!bgParts.length || bgParts.length > 2) {
  967. return;
  968. }
  969. const [bgPart1, bgPart2 = ""] = bgParts;
  970. const parts1 = external_dependency_parsers_0.splitValue(bgPart1);
  971. for (const part of parts1) {
  972. let partValid = false;
  973. for (const [longhand, value] of background_export_shorthandFor) {
  974. if (external_dependency_parsers_0.isValidPropertyValue(longhand, part)) {
  975. partValid = true;
  976. switch (longhand) {
  977. case {
  978. parse: backgroundClip_export_parse,
  979. definition: backgroundClip_export_definition,
  980. property: backgroundClip_export_property
  981. }.property:
  982. case {
  983. parse: backgroundOrigin_export_parse,
  984. definition: backgroundOrigin_export_definition,
  985. property: backgroundOrigin_export_property
  986. }.property:
  987. {
  988. const parsedValue = value.parse(part, {
  989. globalObject
  990. });
  991. if (parsedValue) {
  992. bgBox.push(parsedValue);
  993. }
  994. break;
  995. }
  996. case {
  997. parse: backgroundColor_export_parse,
  998. definition: backgroundColor_export_definition,
  999. property: backgroundColor_export_property
  1000. }.property:
  1001. {
  1002. if (i !== values.length - 1) {
  1003. return;
  1004. }
  1005. const parsedValue = value.parse(part, {
  1006. globalObject
  1007. });
  1008. if (parsedValue) {
  1009. bg[longhand] = parsedValue;
  1010. }
  1011. break;
  1012. }
  1013. case {
  1014. parse: backgroundPosition_export_parse,
  1015. definition: backgroundPosition_export_definition,
  1016. property: backgroundPosition_export_property
  1017. }.property:
  1018. {
  1019. const parsedValue = value.parse(part, {
  1020. globalObject
  1021. });
  1022. if (parsedValue) {
  1023. bgPosition.push(parsedValue);
  1024. }
  1025. break;
  1026. }
  1027. case {
  1028. parse: backgroundRepeat_export_parse,
  1029. definition: backgroundRepeat_export_definition,
  1030. property: backgroundRepeat_export_property
  1031. }.property:
  1032. {
  1033. const parsedValue = value.parse(part, {
  1034. globalObject
  1035. });
  1036. if (parsedValue) {
  1037. bgRepeat.push(parsedValue);
  1038. }
  1039. break;
  1040. }
  1041. case {
  1042. parse: backgroundSize_export_parse,
  1043. definition: backgroundSize_export_definition,
  1044. property: backgroundSize_export_property
  1045. }.property:
  1046. {
  1047. break;
  1048. }
  1049. default:
  1050. {
  1051. const parsedValue = value.parse(part, {
  1052. globalObject
  1053. });
  1054. if (parsedValue) {
  1055. bg[longhand] = parsedValue;
  1056. }
  1057. }
  1058. }
  1059. }
  1060. }
  1061. if (!partValid) {
  1062. return;
  1063. }
  1064. }
  1065. if (bgPart2) {
  1066. const parts2 = external_dependency_parsers_0.splitValue(bgPart2);
  1067. for (const part of parts2) {
  1068. let partValid = false;
  1069. for (const [longhand, value] of background_export_shorthandFor) {
  1070. if (external_dependency_parsers_0.isValidPropertyValue(longhand, part)) {
  1071. partValid = true;
  1072. switch (longhand) {
  1073. case {
  1074. parse: backgroundClip_export_parse,
  1075. definition: backgroundClip_export_definition,
  1076. property: backgroundClip_export_property
  1077. }.property:
  1078. case {
  1079. parse: backgroundOrigin_export_parse,
  1080. definition: backgroundOrigin_export_definition,
  1081. property: backgroundOrigin_export_property
  1082. }.property:
  1083. {
  1084. const parsedValue = value.parse(part, {
  1085. globalObject
  1086. });
  1087. if (parsedValue) {
  1088. bgBox.push(parsedValue);
  1089. }
  1090. break;
  1091. }
  1092. case {
  1093. parse: backgroundColor_export_parse,
  1094. definition: backgroundColor_export_definition,
  1095. property: backgroundColor_export_property
  1096. }.property:
  1097. {
  1098. if (i !== l - 1) {
  1099. return;
  1100. }
  1101. const parsedValue = value.parse(part, {
  1102. globalObject
  1103. });
  1104. if (parsedValue) {
  1105. bg[longhand] = parsedValue;
  1106. }
  1107. break;
  1108. }
  1109. case {
  1110. parse: backgroundPosition_export_parse,
  1111. definition: backgroundPosition_export_definition,
  1112. property: backgroundPosition_export_property
  1113. }.property:
  1114. {
  1115. break;
  1116. }
  1117. case {
  1118. parse: backgroundRepeat_export_parse,
  1119. definition: backgroundRepeat_export_definition,
  1120. property: backgroundRepeat_export_property
  1121. }.property:
  1122. {
  1123. const parsedValue = value.parse(part, {
  1124. globalObject
  1125. });
  1126. if (parsedValue) {
  1127. bgRepeat.push(parsedValue);
  1128. }
  1129. break;
  1130. }
  1131. case {
  1132. parse: backgroundSize_export_parse,
  1133. definition: backgroundSize_export_definition,
  1134. property: backgroundSize_export_property
  1135. }.property:
  1136. {
  1137. const parsedValue = value.parse(part, {
  1138. globalObject
  1139. });
  1140. if (parsedValue) {
  1141. bgSize.push(parsedValue);
  1142. }
  1143. break;
  1144. }
  1145. default:
  1146. {
  1147. const parsedValue = value.parse(part, {
  1148. globalObject
  1149. });
  1150. if (parsedValue) {
  1151. bg[longhand] = parsedValue;
  1152. }
  1153. }
  1154. }
  1155. }
  1156. }
  1157. if (!partValid) {
  1158. return;
  1159. }
  1160. }
  1161. }
  1162. if (bgPosition.length) {
  1163. const {
  1164. parse: parser
  1165. } = background_export_shorthandFor.get({
  1166. parse: backgroundPosition_export_parse,
  1167. definition: backgroundPosition_export_definition,
  1168. property: backgroundPosition_export_property
  1169. }.property);
  1170. const value = parser(bgPosition.join(" "), {
  1171. globalObject
  1172. });
  1173. if (value) {
  1174. bg[{
  1175. parse: backgroundPosition_export_parse,
  1176. definition: backgroundPosition_export_definition,
  1177. property: backgroundPosition_export_property
  1178. }.property] = value;
  1179. }
  1180. }
  1181. if (bgSize.length) {
  1182. const {
  1183. parse: parser
  1184. } = background_export_shorthandFor.get({
  1185. parse: backgroundSize_export_parse,
  1186. definition: backgroundSize_export_definition,
  1187. property: backgroundSize_export_property
  1188. }.property);
  1189. const value = parser(bgSize.join(" "), {
  1190. globalObject
  1191. });
  1192. if (value) {
  1193. bg[{
  1194. parse: backgroundSize_export_parse,
  1195. definition: backgroundSize_export_definition,
  1196. property: backgroundSize_export_property
  1197. }.property] = value;
  1198. }
  1199. }
  1200. if (bgRepeat.length) {
  1201. const {
  1202. parse: parser
  1203. } = background_export_shorthandFor.get({
  1204. parse: backgroundRepeat_export_parse,
  1205. definition: backgroundRepeat_export_definition,
  1206. property: backgroundRepeat_export_property
  1207. }.property);
  1208. const value = parser(bgRepeat.join(" "), {
  1209. globalObject
  1210. });
  1211. if (value) {
  1212. bg[{
  1213. parse: backgroundRepeat_export_parse,
  1214. definition: backgroundRepeat_export_definition,
  1215. property: backgroundRepeat_export_property
  1216. }.property] = value;
  1217. }
  1218. }
  1219. if (bgBox.length) {
  1220. switch (bgBox.length) {
  1221. case 1:
  1222. {
  1223. const [value] = bgBox;
  1224. bg[{
  1225. parse: backgroundOrigin_export_parse,
  1226. definition: backgroundOrigin_export_definition,
  1227. property: backgroundOrigin_export_property
  1228. }.property] = value;
  1229. bg[{
  1230. parse: backgroundClip_export_parse,
  1231. definition: backgroundClip_export_definition,
  1232. property: backgroundClip_export_property
  1233. }.property] = value;
  1234. break;
  1235. }
  1236. case 2:
  1237. {
  1238. const [value1, value2] = bgBox;
  1239. bg[{
  1240. parse: backgroundOrigin_export_parse,
  1241. definition: backgroundOrigin_export_definition,
  1242. property: backgroundOrigin_export_property
  1243. }.property] = value1;
  1244. bg[{
  1245. parse: backgroundClip_export_parse,
  1246. definition: backgroundClip_export_definition,
  1247. property: backgroundClip_export_property
  1248. }.property] = value2;
  1249. break;
  1250. }
  1251. default:
  1252. {
  1253. return;
  1254. }
  1255. }
  1256. }
  1257. bgValues.push(bg);
  1258. }
  1259. return bgValues;
  1260. };
  1261. background_export_definition = {
  1262. set(v) {
  1263. v = external_dependency_parsers_0.prepareValue(v);
  1264. if (v === "" || external_dependency_parsers_0.hasVarFunc(v)) {
  1265. for (const [key] of background_export_shorthandFor) {
  1266. this._setProperty(key, "");
  1267. }
  1268. this._setProperty(background_local_var_property, v);
  1269. } else {
  1270. const bgValues = background_export_parse(v, {
  1271. globalObject: this._global
  1272. });
  1273. if (!Array.isArray(bgValues)) {
  1274. return;
  1275. }
  1276. const bgMap = new Map([[{
  1277. parse: backgroundImage_export_parse,
  1278. definition: backgroundImage_export_definition,
  1279. property: backgroundImage_export_property
  1280. }.property, []], [{
  1281. parse: backgroundPosition_export_parse,
  1282. definition: backgroundPosition_export_definition,
  1283. property: backgroundPosition_export_property
  1284. }.property, []], [{
  1285. parse: backgroundSize_export_parse,
  1286. definition: backgroundSize_export_definition,
  1287. property: backgroundSize_export_property
  1288. }.property, []], [{
  1289. parse: backgroundRepeat_export_parse,
  1290. definition: backgroundRepeat_export_definition,
  1291. property: backgroundRepeat_export_property
  1292. }.property, []], [{
  1293. parse: backgroundOrigin_export_parse,
  1294. definition: backgroundOrigin_export_definition,
  1295. property: backgroundOrigin_export_property
  1296. }.property, []], [{
  1297. parse: backgroundClip_export_parse,
  1298. definition: backgroundClip_export_definition,
  1299. property: backgroundClip_export_property
  1300. }.property, []], [{
  1301. parse: backgroundAttachment_export_parse,
  1302. definition: backgroundAttachment_export_definition,
  1303. property: backgroundAttachment_export_property
  1304. }.property, []], [{
  1305. parse: backgroundColor_export_parse,
  1306. definition: backgroundColor_export_definition,
  1307. property: backgroundColor_export_property
  1308. }.property, []]]);
  1309. const backgrounds = [];
  1310. for (const bgValue of bgValues) {
  1311. const bg = [];
  1312. for (const [longhand, value] of Object.entries(bgValue)) {
  1313. if (value) {
  1314. const arr = bgMap.get(longhand);
  1315. arr.push(value);
  1316. bgMap.set(longhand, arr);
  1317. if (value !== background_export_initialValues.get(longhand)) {
  1318. if (longhand === {
  1319. parse: backgroundSize_export_parse,
  1320. definition: backgroundSize_export_definition,
  1321. property: backgroundSize_export_property
  1322. }.property) {
  1323. bg.push(`/ ${value}`);
  1324. } else {
  1325. bg.push(value);
  1326. }
  1327. } else if (longhand === {
  1328. parse: backgroundImage_export_parse,
  1329. definition: backgroundImage_export_definition,
  1330. property: backgroundImage_export_property
  1331. }.property) {
  1332. if (v === "none") {
  1333. bg.push(value);
  1334. }
  1335. } else if (longhand === {
  1336. parse: backgroundColor_export_parse,
  1337. definition: backgroundColor_export_definition,
  1338. property: backgroundColor_export_property
  1339. }.property) {
  1340. if (v === "transparent") {
  1341. bg.push(value);
  1342. }
  1343. }
  1344. }
  1345. }
  1346. backgrounds.push(bg.join(" "));
  1347. }
  1348. const priority = this._priorities.get(background_local_var_property) ?? "";
  1349. for (const [longhand, value] of bgMap) {
  1350. this._setProperty(longhand, value.join(", "), priority);
  1351. }
  1352. this._setProperty(background_local_var_property, backgrounds.join(", "), priority);
  1353. }
  1354. },
  1355. get() {
  1356. const v = this.getPropertyValue(background_local_var_property);
  1357. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1358. return v;
  1359. }
  1360. const bgMap = new Map();
  1361. let l = 0;
  1362. for (const [longhand] of background_export_shorthandFor) {
  1363. const val = this.getPropertyValue(longhand);
  1364. if (longhand === {
  1365. parse: backgroundImage_export_parse,
  1366. definition: backgroundImage_export_definition,
  1367. property: backgroundImage_export_property
  1368. }.property) {
  1369. if (val === "none" && v === "none" && this.getPropertyValue({
  1370. parse: backgroundColor_export_parse,
  1371. definition: backgroundColor_export_definition,
  1372. property: backgroundColor_export_property
  1373. }.property) === "transparent") {
  1374. return val;
  1375. }
  1376. if (val !== background_export_initialValues.get(longhand)) {
  1377. const imgValues = external_dependency_parsers_0.splitValue(val, {
  1378. delimiter: ","
  1379. });
  1380. l = imgValues.length;
  1381. bgMap.set(longhand, imgValues);
  1382. }
  1383. } else if (longhand === {
  1384. parse: backgroundColor_export_parse,
  1385. definition: backgroundColor_export_definition,
  1386. property: backgroundColor_export_property
  1387. }.property) {
  1388. if (val !== background_export_initialValues.get(longhand) || v.includes(val)) {
  1389. bgMap.set(longhand, [val]);
  1390. }
  1391. } else if (val !== background_export_initialValues.get(longhand)) {
  1392. bgMap.set(longhand, external_dependency_parsers_0.splitValue(val, {
  1393. delimiter: ","
  1394. }));
  1395. }
  1396. }
  1397. if (l === 0) {
  1398. const bgColArr = bgMap.get({
  1399. parse: backgroundColor_export_parse,
  1400. definition: backgroundColor_export_definition,
  1401. property: backgroundColor_export_property
  1402. }.property);
  1403. const background = bgColArr ? bgColArr[0] : null;
  1404. if (background) {
  1405. return background;
  1406. }
  1407. return "";
  1408. }
  1409. const bgValues = [];
  1410. for (let i = 0; i < l; i++) {
  1411. bgValues[i] = [];
  1412. }
  1413. for (const [longhand, values] of bgMap) {
  1414. for (let i = 0; i < l; i++) {
  1415. switch (longhand) {
  1416. case {
  1417. parse: backgroundColor_export_parse,
  1418. definition: backgroundColor_export_definition,
  1419. property: backgroundColor_export_property
  1420. }.property:
  1421. {
  1422. if (i === l - 1) {
  1423. const value = values[0];
  1424. if (external_dependency_parsers_0.hasVarFunc(value)) {
  1425. return "";
  1426. }
  1427. if (value && value !== background_export_initialValues.get(longhand)) {
  1428. const bgValue = bgValues[i];
  1429. bgValue.push(value);
  1430. }
  1431. }
  1432. break;
  1433. }
  1434. case {
  1435. parse: backgroundSize_export_parse,
  1436. definition: backgroundSize_export_definition,
  1437. property: backgroundSize_export_property
  1438. }.property:
  1439. {
  1440. const value = values[i];
  1441. if (external_dependency_parsers_0.hasVarFunc(value)) {
  1442. return "";
  1443. }
  1444. if (value && value !== background_export_initialValues.get(longhand)) {
  1445. const bgValue = bgValues[i];
  1446. bgValue.push(`/ ${value}`);
  1447. }
  1448. break;
  1449. }
  1450. default:
  1451. {
  1452. const value = values[i];
  1453. if (external_dependency_parsers_0.hasVarFunc(value)) {
  1454. return "";
  1455. }
  1456. if (value && value !== background_export_initialValues.get(longhand)) {
  1457. const bgValue = bgValues[i];
  1458. bgValue.push(value);
  1459. }
  1460. }
  1461. }
  1462. }
  1463. }
  1464. const backgrounds = [];
  1465. for (const bgValue of bgValues) {
  1466. backgrounds.push(bgValue.join(" "));
  1467. }
  1468. return backgrounds.join(", ");
  1469. },
  1470. enumerable: true,
  1471. configurable: true
  1472. };
  1473. background_export_property = background_local_var_property;
  1474. var borderTopWidth_export_parse, borderTopWidth_export_definition, borderTopWidth_export_property;
  1475. const borderTopWidth_local_var_property = "border-top-width";
  1476. const borderTopWidth_local_var_lineShorthand = "border-width";
  1477. const borderTopWidth_local_var_positionShorthand = "border-top";
  1478. const borderTopWidth_local_var_shorthand = "border";
  1479. borderTopWidth_export_parse = (v, opt = {}) => {
  1480. const {
  1481. globalObject
  1482. } = opt;
  1483. if (v === "") {
  1484. return v;
  1485. }
  1486. const value = external_dependency_parsers_0.parsePropertyValue(borderTopWidth_local_var_property, v, {
  1487. globalObject,
  1488. inArray: true
  1489. });
  1490. if (Array.isArray(value) && value.length === 1) {
  1491. return external_dependency_parsers_0.resolveNumericValue(value, {
  1492. min: 0,
  1493. type: "length"
  1494. });
  1495. } else if (typeof value === "string") {
  1496. return value;
  1497. }
  1498. };
  1499. borderTopWidth_export_definition = {
  1500. set(v) {
  1501. v = external_dependency_parsers_0.prepareValue(v);
  1502. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1503. this._borderSetter(borderTopWidth_local_var_property, v, "");
  1504. } else {
  1505. const val = borderTopWidth_export_parse(v, {
  1506. globalObject: this._global
  1507. });
  1508. if (typeof val === "string") {
  1509. const shorthandPriority = this._priorities.get(borderTopWidth_local_var_shorthand);
  1510. const linePriority = this._priorities.get(borderTopWidth_local_var_lineShorthand);
  1511. const positionPriority = this._priorities.get(borderTopWidth_local_var_positionShorthand);
  1512. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderTopWidth_local_var_property) ? this._priorities.get(borderTopWidth_local_var_property) : "";
  1513. this._borderSetter(borderTopWidth_local_var_property, val, priority);
  1514. }
  1515. }
  1516. },
  1517. get() {
  1518. return this.getPropertyValue(borderTopWidth_local_var_property);
  1519. },
  1520. enumerable: true,
  1521. configurable: true
  1522. };
  1523. borderTopWidth_export_property = borderTopWidth_local_var_property;
  1524. var borderRightWidth_export_parse, borderRightWidth_export_definition, borderRightWidth_export_property;
  1525. const borderRightWidth_local_var_property = "border-right-width";
  1526. const borderRightWidth_local_var_lineShorthand = "border-width";
  1527. const borderRightWidth_local_var_positionShorthand = "border-right";
  1528. const borderRightWidth_local_var_shorthand = "border";
  1529. borderRightWidth_export_parse = (v, opt = {}) => {
  1530. const {
  1531. globalObject
  1532. } = opt;
  1533. if (v === "") {
  1534. return v;
  1535. }
  1536. const value = external_dependency_parsers_0.parsePropertyValue(borderRightWidth_local_var_property, v, {
  1537. globalObject,
  1538. inArray: true
  1539. });
  1540. if (Array.isArray(value) && value.length === 1) {
  1541. return external_dependency_parsers_0.resolveNumericValue(value, {
  1542. min: 0,
  1543. type: "length"
  1544. });
  1545. } else if (typeof value === "string") {
  1546. return value;
  1547. }
  1548. };
  1549. borderRightWidth_export_definition = {
  1550. set(v) {
  1551. v = external_dependency_parsers_0.prepareValue(v);
  1552. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1553. this._borderSetter(borderRightWidth_local_var_property, v, "");
  1554. } else {
  1555. const val = borderRightWidth_export_parse(v, {
  1556. globalObject: this._global
  1557. });
  1558. if (typeof val === "string") {
  1559. const shorthandPriority = this._priorities.get(borderRightWidth_local_var_shorthand);
  1560. const linePriority = this._priorities.get(borderRightWidth_local_var_lineShorthand);
  1561. const positionPriority = this._priorities.get(borderRightWidth_local_var_positionShorthand);
  1562. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderRightWidth_local_var_property) ? this._priorities.get(borderRightWidth_local_var_property) : "";
  1563. this._borderSetter(borderRightWidth_local_var_property, val, priority);
  1564. }
  1565. }
  1566. },
  1567. get() {
  1568. return this.getPropertyValue(borderRightWidth_local_var_property);
  1569. },
  1570. enumerable: true,
  1571. configurable: true
  1572. };
  1573. borderRightWidth_export_property = borderRightWidth_local_var_property;
  1574. var borderBottomWidth_export_parse, borderBottomWidth_export_definition, borderBottomWidth_export_property;
  1575. const borderBottomWidth_local_var_property = "border-bottom-width";
  1576. const borderBottomWidth_local_var_lineShorthand = "border-width";
  1577. const borderBottomWidth_local_var_positionShorthand = "border-bottom";
  1578. const borderBottomWidth_local_var_shorthand = "border";
  1579. borderBottomWidth_export_parse = (v, opt = {}) => {
  1580. const {
  1581. globalObject
  1582. } = opt;
  1583. if (v === "") {
  1584. return v;
  1585. }
  1586. const value = external_dependency_parsers_0.parsePropertyValue(borderBottomWidth_local_var_property, v, {
  1587. globalObject,
  1588. inArray: true
  1589. });
  1590. if (Array.isArray(value) && value.length === 1) {
  1591. return external_dependency_parsers_0.resolveNumericValue(value, {
  1592. min: 0,
  1593. type: "length"
  1594. });
  1595. } else if (typeof value === "string") {
  1596. return value;
  1597. }
  1598. };
  1599. borderBottomWidth_export_definition = {
  1600. set(v) {
  1601. v = external_dependency_parsers_0.prepareValue(v);
  1602. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1603. this._borderSetter(borderBottomWidth_local_var_property, v, "");
  1604. } else {
  1605. const val = borderBottomWidth_export_parse(v, {
  1606. globalObject: this._global
  1607. });
  1608. if (typeof val === "string") {
  1609. const shorthandPriority = this._priorities.get(borderBottomWidth_local_var_shorthand);
  1610. const linePriority = this._priorities.get(borderBottomWidth_local_var_lineShorthand);
  1611. const positionPriority = this._priorities.get(borderBottomWidth_local_var_positionShorthand);
  1612. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderBottomWidth_local_var_property) ? this._priorities.get(borderBottomWidth_local_var_property) : "";
  1613. this._borderSetter(borderBottomWidth_local_var_property, val, priority);
  1614. }
  1615. }
  1616. },
  1617. get() {
  1618. return this.getPropertyValue(borderBottomWidth_local_var_property);
  1619. },
  1620. enumerable: true,
  1621. configurable: true
  1622. };
  1623. borderBottomWidth_export_property = borderBottomWidth_local_var_property;
  1624. var borderLeftWidth_export_parse, borderLeftWidth_export_definition, borderLeftWidth_export_property;
  1625. const borderLeftWidth_local_var_property = "border-left-width";
  1626. const borderLeftWidth_local_var_lineShorthand = "border-width";
  1627. const borderLeftWidth_local_var_positionShorthand = "border-left";
  1628. const borderLeftWidth_local_var_shorthand = "border";
  1629. borderLeftWidth_export_parse = (v, opt = {}) => {
  1630. const {
  1631. globalObject
  1632. } = opt;
  1633. if (v === "") {
  1634. return v;
  1635. }
  1636. const value = external_dependency_parsers_0.parsePropertyValue(borderLeftWidth_local_var_property, v, {
  1637. globalObject,
  1638. inArray: true
  1639. });
  1640. if (Array.isArray(value) && value.length === 1) {
  1641. return external_dependency_parsers_0.resolveNumericValue(value, {
  1642. min: 0,
  1643. type: "length"
  1644. });
  1645. } else if (typeof value === "string") {
  1646. return value;
  1647. }
  1648. };
  1649. borderLeftWidth_export_definition = {
  1650. set(v) {
  1651. v = external_dependency_parsers_0.prepareValue(v);
  1652. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1653. this._borderSetter(borderLeftWidth_local_var_property, v, "");
  1654. } else {
  1655. const val = borderLeftWidth_export_parse(v, {
  1656. globalObject: this._global
  1657. });
  1658. if (typeof val === "string") {
  1659. const shorthandPriority = this._priorities.get(borderLeftWidth_local_var_shorthand);
  1660. const linePriority = this._priorities.get(borderLeftWidth_local_var_lineShorthand);
  1661. const positionPriority = this._priorities.get(borderLeftWidth_local_var_positionShorthand);
  1662. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderLeftWidth_local_var_property) ? this._priorities.get(borderLeftWidth_local_var_property) : "";
  1663. this._borderSetter(borderLeftWidth_local_var_property, val, priority);
  1664. }
  1665. }
  1666. },
  1667. get() {
  1668. return this.getPropertyValue(borderLeftWidth_local_var_property);
  1669. },
  1670. enumerable: true,
  1671. configurable: true
  1672. };
  1673. borderLeftWidth_export_property = borderLeftWidth_local_var_property;
  1674. var borderWidth_export_shorthandFor, borderWidth_export_parse, borderWidth_export_definition, borderWidth_export_property;
  1675. const borderWidth_local_var_property = "border-width";
  1676. const borderWidth_local_var_shorthand = "border";
  1677. borderWidth_export_shorthandFor = new Map([[{
  1678. parse: borderTopWidth_export_parse,
  1679. definition: borderTopWidth_export_definition,
  1680. property: borderTopWidth_export_property
  1681. }.property, {
  1682. parse: borderTopWidth_export_parse,
  1683. definition: borderTopWidth_export_definition,
  1684. property: borderTopWidth_export_property
  1685. }], [{
  1686. parse: borderRightWidth_export_parse,
  1687. definition: borderRightWidth_export_definition,
  1688. property: borderRightWidth_export_property
  1689. }.property, {
  1690. parse: borderRightWidth_export_parse,
  1691. definition: borderRightWidth_export_definition,
  1692. property: borderRightWidth_export_property
  1693. }], [{
  1694. parse: borderBottomWidth_export_parse,
  1695. definition: borderBottomWidth_export_definition,
  1696. property: borderBottomWidth_export_property
  1697. }.property, {
  1698. parse: borderBottomWidth_export_parse,
  1699. definition: borderBottomWidth_export_definition,
  1700. property: borderBottomWidth_export_property
  1701. }], [{
  1702. parse: borderLeftWidth_export_parse,
  1703. definition: borderLeftWidth_export_definition,
  1704. property: borderLeftWidth_export_property
  1705. }.property, {
  1706. parse: borderLeftWidth_export_parse,
  1707. definition: borderLeftWidth_export_definition,
  1708. property: borderLeftWidth_export_property
  1709. }]]);
  1710. borderWidth_export_parse = (v, opt = {}) => {
  1711. const {
  1712. globalObject
  1713. } = opt;
  1714. if (v === "") {
  1715. return v;
  1716. }
  1717. const values = external_dependency_parsers_0.parsePropertyValue(borderWidth_local_var_property, v, {
  1718. globalObject,
  1719. inArray: true
  1720. });
  1721. const parsedValues = [];
  1722. if (Array.isArray(values) && values.length) {
  1723. if (values.length > 4) {
  1724. return;
  1725. }
  1726. for (const value of values) {
  1727. const parsedValue = external_dependency_parsers_0.resolveNumericValue([value], {
  1728. length: values.length,
  1729. type: "length"
  1730. });
  1731. if (!parsedValue) {
  1732. return;
  1733. }
  1734. parsedValues.push(parsedValue);
  1735. }
  1736. } else if (typeof values === "string") {
  1737. parsedValues.push(values);
  1738. }
  1739. if (parsedValues.length) {
  1740. switch (parsedValues.length) {
  1741. case 1:
  1742. {
  1743. return parsedValues;
  1744. }
  1745. case 2:
  1746. {
  1747. const [val1, val2] = parsedValues;
  1748. if (val1 === val2) {
  1749. return [val1];
  1750. }
  1751. return parsedValues;
  1752. }
  1753. case 3:
  1754. {
  1755. const [val1, val2, val3] = parsedValues;
  1756. if (val1 === val3) {
  1757. if (val1 === val2) {
  1758. return [val1];
  1759. }
  1760. return [val1, val2];
  1761. }
  1762. return parsedValues;
  1763. }
  1764. case 4:
  1765. {
  1766. const [val1, val2, val3, val4] = parsedValues;
  1767. if (val2 === val4) {
  1768. if (val1 === val3) {
  1769. if (val1 === val2) {
  1770. return [val1];
  1771. }
  1772. return [val1, val2];
  1773. }
  1774. return [val1, val2, val3];
  1775. }
  1776. return parsedValues;
  1777. }
  1778. default:
  1779. }
  1780. }
  1781. };
  1782. borderWidth_export_definition = {
  1783. set(v) {
  1784. v = external_dependency_parsers_0.prepareValue(v);
  1785. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1786. this._borderSetter(borderWidth_local_var_property, v, "");
  1787. } else {
  1788. const val = borderWidth_export_parse(v, {
  1789. globalObject: this._global
  1790. });
  1791. if (Array.isArray(val) || typeof val === "string") {
  1792. const priority = !this._priorities.get(borderWidth_local_var_shorthand) && this._priorities.has(borderWidth_local_var_property) ? this._priorities.get(borderWidth_local_var_property) : "";
  1793. this._borderSetter(borderWidth_local_var_property, val, priority);
  1794. }
  1795. }
  1796. },
  1797. get() {
  1798. return this.getPropertyValue(borderWidth_local_var_property);
  1799. },
  1800. enumerable: true,
  1801. configurable: true
  1802. };
  1803. borderWidth_export_property = borderWidth_local_var_property;
  1804. var borderTopStyle_export_parse, borderTopStyle_export_definition, borderTopStyle_export_property;
  1805. const borderTopStyle_local_var_property = "border-top-style";
  1806. const borderTopStyle_local_var_lineShorthand = "border-style";
  1807. const borderTopStyle_local_var_positionShorthand = "border-top";
  1808. const borderTopStyle_local_var_shorthand = "border";
  1809. borderTopStyle_export_parse = (v, opt = {}) => {
  1810. const {
  1811. globalObject
  1812. } = opt;
  1813. if (v === "") {
  1814. return v;
  1815. }
  1816. const value = external_dependency_parsers_0.parsePropertyValue(borderTopStyle_local_var_property, v, {
  1817. globalObject,
  1818. inArray: true
  1819. });
  1820. if (Array.isArray(value) && value.length === 1) {
  1821. return external_dependency_parsers_0.resolveKeywordValue(value);
  1822. } else if (typeof value === "string") {
  1823. return value;
  1824. }
  1825. };
  1826. borderTopStyle_export_definition = {
  1827. set(v) {
  1828. v = external_dependency_parsers_0.prepareValue(v);
  1829. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1830. this._borderSetter(borderTopStyle_local_var_property, v, "");
  1831. } else {
  1832. const val = borderTopStyle_export_parse(v, {
  1833. globalObject: this._global
  1834. });
  1835. if (typeof val === "string") {
  1836. const shorthandPriority = this._priorities.get(borderTopStyle_local_var_shorthand);
  1837. const linePriority = this._priorities.get(borderTopStyle_local_var_lineShorthand);
  1838. const positionPriority = this._priorities.get(borderTopStyle_local_var_positionShorthand);
  1839. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderTopStyle_local_var_property) ? this._priorities.get(borderTopStyle_local_var_property) : "";
  1840. this._borderSetter(borderTopStyle_local_var_property, val, priority);
  1841. }
  1842. }
  1843. },
  1844. get() {
  1845. return this.getPropertyValue(borderTopStyle_local_var_property);
  1846. },
  1847. enumerable: true,
  1848. configurable: true
  1849. };
  1850. borderTopStyle_export_property = borderTopStyle_local_var_property;
  1851. var borderRightStyle_export_parse, borderRightStyle_export_definition, borderRightStyle_export_property;
  1852. const borderRightStyle_local_var_property = "border-right-style";
  1853. const borderRightStyle_local_var_lineShorthand = "border-style";
  1854. const borderRightStyle_local_var_positionShorthand = "border-right";
  1855. const borderRightStyle_local_var_shorthand = "border";
  1856. borderRightStyle_export_parse = (v, opt = {}) => {
  1857. const {
  1858. globalObject
  1859. } = opt;
  1860. if (v === "") {
  1861. return v;
  1862. }
  1863. const value = external_dependency_parsers_0.parsePropertyValue(borderRightStyle_local_var_property, v, {
  1864. globalObject,
  1865. inArray: true
  1866. });
  1867. if (Array.isArray(value) && value.length === 1) {
  1868. return external_dependency_parsers_0.resolveKeywordValue(value);
  1869. } else if (typeof value === "string") {
  1870. return value;
  1871. }
  1872. };
  1873. borderRightStyle_export_definition = {
  1874. set(v) {
  1875. v = external_dependency_parsers_0.prepareValue(v);
  1876. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1877. this._borderSetter(borderRightStyle_local_var_property, v, "");
  1878. } else {
  1879. const val = borderRightStyle_export_parse(v, {
  1880. globalObject: this._global
  1881. });
  1882. if (typeof val === "string") {
  1883. const shorthandPriority = this._priorities.get(borderRightStyle_local_var_shorthand);
  1884. const linePriority = this._priorities.get(borderRightStyle_local_var_lineShorthand);
  1885. const positionPriority = this._priorities.get(borderRightStyle_local_var_positionShorthand);
  1886. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderRightStyle_local_var_property) ? this._priorities.get(borderRightStyle_local_var_property) : "";
  1887. this._borderSetter(borderRightStyle_local_var_property, val, priority);
  1888. }
  1889. }
  1890. },
  1891. get() {
  1892. return this.getPropertyValue(borderRightStyle_local_var_property);
  1893. },
  1894. enumerable: true,
  1895. configurable: true
  1896. };
  1897. borderRightStyle_export_property = borderRightStyle_local_var_property;
  1898. var borderBottomStyle_export_parse, borderBottomStyle_export_definition, borderBottomStyle_export_property;
  1899. const borderBottomStyle_local_var_property = "border-bottom-style";
  1900. const borderBottomStyle_local_var_lineShorthand = "border-style";
  1901. const borderBottomStyle_local_var_positionShorthand = "border-bottom";
  1902. const borderBottomStyle_local_var_shorthand = "border";
  1903. borderBottomStyle_export_parse = (v, opt = {}) => {
  1904. const {
  1905. globalObject
  1906. } = opt;
  1907. if (v === "") {
  1908. return v;
  1909. }
  1910. const value = external_dependency_parsers_0.parsePropertyValue(borderBottomStyle_local_var_property, v, {
  1911. globalObject,
  1912. inArray: true
  1913. });
  1914. if (Array.isArray(value) && value.length === 1) {
  1915. return external_dependency_parsers_0.resolveKeywordValue(value);
  1916. } else if (typeof value === "string") {
  1917. return value;
  1918. }
  1919. };
  1920. borderBottomStyle_export_definition = {
  1921. set(v) {
  1922. v = external_dependency_parsers_0.prepareValue(v);
  1923. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1924. this._borderSetter(borderBottomStyle_local_var_property, v, "");
  1925. } else {
  1926. const val = borderBottomStyle_export_parse(v, {
  1927. globalObject: this._global
  1928. });
  1929. if (typeof val === "string") {
  1930. const shorthandPriority = this._priorities.get(borderBottomStyle_local_var_shorthand);
  1931. const linePriority = this._priorities.get(borderBottomStyle_local_var_lineShorthand);
  1932. const positionPriority = this._priorities.get(borderBottomStyle_local_var_positionShorthand);
  1933. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderBottomStyle_local_var_property) ? this._priorities.get(borderBottomStyle_local_var_property) : "";
  1934. this._borderSetter(borderBottomStyle_local_var_property, val, priority);
  1935. }
  1936. }
  1937. },
  1938. get() {
  1939. return this.getPropertyValue(borderBottomStyle_local_var_property);
  1940. },
  1941. enumerable: true,
  1942. configurable: true
  1943. };
  1944. borderBottomStyle_export_property = borderBottomStyle_local_var_property;
  1945. var borderLeftStyle_export_parse, borderLeftStyle_export_definition, borderLeftStyle_export_property;
  1946. const borderLeftStyle_local_var_property = "border-left-style";
  1947. const borderLeftStyle_local_var_lineShorthand = "border-style";
  1948. const borderLeftStyle_local_var_positionShorthand = "border-left";
  1949. const borderLeftStyle_local_var_shorthand = "border";
  1950. borderLeftStyle_export_parse = (v, opt = {}) => {
  1951. const {
  1952. globalObject
  1953. } = opt;
  1954. if (v === "") {
  1955. return v;
  1956. }
  1957. const value = external_dependency_parsers_0.parsePropertyValue(borderLeftStyle_local_var_property, v, {
  1958. globalObject,
  1959. inArray: true
  1960. });
  1961. if (Array.isArray(value) && value.length === 1) {
  1962. return external_dependency_parsers_0.resolveKeywordValue(value);
  1963. } else if (typeof value === "string") {
  1964. return value;
  1965. }
  1966. };
  1967. borderLeftStyle_export_definition = {
  1968. set(v) {
  1969. v = external_dependency_parsers_0.prepareValue(v);
  1970. if (external_dependency_parsers_0.hasVarFunc(v)) {
  1971. this._borderSetter(borderLeftStyle_local_var_property, v, "");
  1972. } else {
  1973. const val = borderLeftStyle_export_parse(v, {
  1974. globalObject: this._global
  1975. });
  1976. if (typeof val === "string") {
  1977. const shorthandPriority = this._priorities.get(borderLeftStyle_local_var_shorthand);
  1978. const linePriority = this._priorities.get(borderLeftStyle_local_var_lineShorthand);
  1979. const positionPriority = this._priorities.get(borderLeftStyle_local_var_positionShorthand);
  1980. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderLeftStyle_local_var_property) ? this._priorities.get(borderLeftStyle_local_var_property) : "";
  1981. this._borderSetter(borderLeftStyle_local_var_property, val, priority);
  1982. }
  1983. }
  1984. },
  1985. get() {
  1986. return this.getPropertyValue(borderLeftStyle_local_var_property);
  1987. },
  1988. enumerable: true,
  1989. configurable: true
  1990. };
  1991. borderLeftStyle_export_property = borderLeftStyle_local_var_property;
  1992. var borderStyle_export_shorthandFor, borderStyle_export_parse, borderStyle_export_definition, borderStyle_export_property;
  1993. const borderStyle_local_var_property = "border-style";
  1994. const borderStyle_local_var_shorthand = "border";
  1995. borderStyle_export_shorthandFor = new Map([[{
  1996. parse: borderTopStyle_export_parse,
  1997. definition: borderTopStyle_export_definition,
  1998. property: borderTopStyle_export_property
  1999. }.property, {
  2000. parse: borderTopStyle_export_parse,
  2001. definition: borderTopStyle_export_definition,
  2002. property: borderTopStyle_export_property
  2003. }], [{
  2004. parse: borderRightStyle_export_parse,
  2005. definition: borderRightStyle_export_definition,
  2006. property: borderRightStyle_export_property
  2007. }.property, {
  2008. parse: borderRightStyle_export_parse,
  2009. definition: borderRightStyle_export_definition,
  2010. property: borderRightStyle_export_property
  2011. }], [{
  2012. parse: borderBottomStyle_export_parse,
  2013. definition: borderBottomStyle_export_definition,
  2014. property: borderBottomStyle_export_property
  2015. }.property, {
  2016. parse: borderBottomStyle_export_parse,
  2017. definition: borderBottomStyle_export_definition,
  2018. property: borderBottomStyle_export_property
  2019. }], [{
  2020. parse: borderLeftStyle_export_parse,
  2021. definition: borderLeftStyle_export_definition,
  2022. property: borderLeftStyle_export_property
  2023. }.property, {
  2024. parse: borderLeftStyle_export_parse,
  2025. definition: borderLeftStyle_export_definition,
  2026. property: borderLeftStyle_export_property
  2027. }]]);
  2028. borderStyle_export_parse = (v, opt = {}) => {
  2029. const {
  2030. globalObject
  2031. } = opt;
  2032. if (v === "") {
  2033. return v;
  2034. }
  2035. const values = external_dependency_parsers_0.parsePropertyValue(borderStyle_local_var_property, v, {
  2036. globalObject,
  2037. inArray: true
  2038. });
  2039. const parsedValues = [];
  2040. if (Array.isArray(values) && values.length) {
  2041. if (values.length > 4) {
  2042. return;
  2043. }
  2044. for (const value of values) {
  2045. const parsedValue = external_dependency_parsers_0.resolveKeywordValue([value], {
  2046. length: values.length
  2047. });
  2048. if (!parsedValue) {
  2049. return;
  2050. }
  2051. parsedValues.push(parsedValue);
  2052. }
  2053. } else if (typeof values === "string") {
  2054. parsedValues.push(values);
  2055. }
  2056. if (parsedValues.length) {
  2057. switch (parsedValues.length) {
  2058. case 1:
  2059. {
  2060. return parsedValues;
  2061. }
  2062. case 2:
  2063. {
  2064. const [val1, val2] = parsedValues;
  2065. if (val1 === val2) {
  2066. return [val1];
  2067. }
  2068. return parsedValues;
  2069. }
  2070. case 3:
  2071. {
  2072. const [val1, val2, val3] = parsedValues;
  2073. if (val1 === val3) {
  2074. if (val1 === val2) {
  2075. return [val1];
  2076. }
  2077. return [val1, val2];
  2078. }
  2079. return parsedValues;
  2080. }
  2081. case 4:
  2082. {
  2083. const [val1, val2, val3, val4] = parsedValues;
  2084. if (val2 === val4) {
  2085. if (val1 === val3) {
  2086. if (val1 === val2) {
  2087. return [val1];
  2088. }
  2089. return [val1, val2];
  2090. }
  2091. return [val1, val2, val3];
  2092. }
  2093. return parsedValues;
  2094. }
  2095. default:
  2096. }
  2097. }
  2098. };
  2099. borderStyle_export_definition = {
  2100. set(v) {
  2101. v = external_dependency_parsers_0.prepareValue(v);
  2102. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2103. this._borderSetter(borderStyle_local_var_property, v, "");
  2104. } else {
  2105. const val = borderStyle_export_parse(v, {
  2106. globalObject: this._global
  2107. });
  2108. if (Array.isArray(val) || typeof val === "string") {
  2109. const priority = !this._priorities.get(borderStyle_local_var_shorthand) && this._priorities.has(borderStyle_local_var_property) ? this._priorities.get(borderStyle_local_var_property) : "";
  2110. this._borderSetter(borderStyle_local_var_property, val, priority);
  2111. }
  2112. }
  2113. },
  2114. get() {
  2115. return this.getPropertyValue(borderStyle_local_var_property);
  2116. },
  2117. enumerable: true,
  2118. configurable: true
  2119. };
  2120. borderStyle_export_property = borderStyle_local_var_property;
  2121. var borderTopColor_export_parse, borderTopColor_export_definition, borderTopColor_export_property;
  2122. const borderTopColor_local_var_property = "border-top-color";
  2123. const borderTopColor_local_var_lineShorthand = "border-color";
  2124. const borderTopColor_local_var_positionShorthand = "border-top";
  2125. const borderTopColor_local_var_shorthand = "border";
  2126. borderTopColor_export_parse = (v, opt = {}) => {
  2127. const {
  2128. globalObject
  2129. } = opt;
  2130. if (v === "") {
  2131. return v;
  2132. }
  2133. const value = external_dependency_parsers_0.parsePropertyValue(borderTopColor_local_var_property, v, {
  2134. globalObject,
  2135. inArray: true
  2136. });
  2137. if (Array.isArray(value) && value.length === 1) {
  2138. return external_dependency_parsers_0.resolveColorValue(value);
  2139. } else if (typeof value === "string") {
  2140. return value;
  2141. }
  2142. };
  2143. borderTopColor_export_definition = {
  2144. set(v) {
  2145. v = external_dependency_parsers_0.prepareValue(v);
  2146. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2147. this._borderSetter(borderTopColor_local_var_property, v, "");
  2148. } else {
  2149. const val = borderTopColor_export_parse(v, {
  2150. globalObject: this._global
  2151. });
  2152. if (typeof val === "string") {
  2153. const shorthandPriority = this._priorities.get(borderTopColor_local_var_shorthand);
  2154. const linePriority = this._priorities.get(borderTopColor_local_var_lineShorthand);
  2155. const positionPriority = this._priorities.get(borderTopColor_local_var_positionShorthand);
  2156. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderTopColor_local_var_property) ? this._priorities.get(borderTopColor_local_var_property) : "";
  2157. this._borderSetter(borderTopColor_local_var_property, val, priority);
  2158. }
  2159. }
  2160. },
  2161. get() {
  2162. return this.getPropertyValue(borderTopColor_local_var_property);
  2163. },
  2164. enumerable: true,
  2165. configurable: true
  2166. };
  2167. borderTopColor_export_property = borderTopColor_local_var_property;
  2168. var borderRightColor_export_parse, borderRightColor_export_definition, borderRightColor_export_property;
  2169. const borderRightColor_local_var_property = "border-right-color";
  2170. const borderRightColor_local_var_lineShorthand = "border-color";
  2171. const borderRightColor_local_var_positionShorthand = "border-right";
  2172. const borderRightColor_local_var_shorthand = "border";
  2173. borderRightColor_export_parse = (v, opt = {}) => {
  2174. const {
  2175. globalObject
  2176. } = opt;
  2177. if (v === "") {
  2178. return v;
  2179. }
  2180. const value = external_dependency_parsers_0.parsePropertyValue(borderRightColor_local_var_property, v, {
  2181. globalObject,
  2182. inArray: true
  2183. });
  2184. if (Array.isArray(value) && value.length === 1) {
  2185. return external_dependency_parsers_0.resolveColorValue(value);
  2186. } else if (typeof value === "string") {
  2187. return value;
  2188. }
  2189. };
  2190. borderRightColor_export_definition = {
  2191. set(v) {
  2192. v = external_dependency_parsers_0.prepareValue(v);
  2193. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2194. this._borderSetter(borderRightColor_local_var_property, v, "");
  2195. } else {
  2196. const val = borderRightColor_export_parse(v, {
  2197. globalObject: this._global
  2198. });
  2199. if (typeof val === "string") {
  2200. const shorthandPriority = this._priorities.get(borderRightColor_local_var_shorthand);
  2201. const linePriority = this._priorities.get(borderRightColor_local_var_lineShorthand);
  2202. const positionPriority = this._priorities.get(borderRightColor_local_var_positionShorthand);
  2203. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderRightColor_local_var_property) ? this._priorities.get(borderRightColor_local_var_property) : "";
  2204. this._borderSetter(borderRightColor_local_var_property, val, priority);
  2205. }
  2206. }
  2207. },
  2208. get() {
  2209. return this.getPropertyValue(borderRightColor_local_var_property);
  2210. },
  2211. enumerable: true,
  2212. configurable: true
  2213. };
  2214. borderRightColor_export_property = borderRightColor_local_var_property;
  2215. var borderBottomColor_export_parse, borderBottomColor_export_definition, borderBottomColor_export_property;
  2216. const borderBottomColor_local_var_property = "border-bottom-color";
  2217. const borderBottomColor_local_var_lineShorthand = "border-color";
  2218. const borderBottomColor_local_var_positionShorthand = "border-bottom";
  2219. const borderBottomColor_local_var_shorthand = "border";
  2220. borderBottomColor_export_parse = (v, opt = {}) => {
  2221. const {
  2222. globalObject
  2223. } = opt;
  2224. if (v === "") {
  2225. return v;
  2226. }
  2227. const value = external_dependency_parsers_0.parsePropertyValue(borderBottomColor_local_var_property, v, {
  2228. globalObject,
  2229. inArray: true
  2230. });
  2231. if (Array.isArray(value) && value.length === 1) {
  2232. return external_dependency_parsers_0.resolveColorValue(value);
  2233. } else if (typeof value === "string") {
  2234. return value;
  2235. }
  2236. };
  2237. borderBottomColor_export_definition = {
  2238. set(v) {
  2239. v = external_dependency_parsers_0.prepareValue(v);
  2240. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2241. this._borderSetter(borderBottomColor_local_var_property, v, "");
  2242. } else {
  2243. const val = borderBottomColor_export_parse(v, {
  2244. globalObject: this._global
  2245. });
  2246. if (typeof val === "string") {
  2247. const shorthandPriority = this._priorities.get(borderBottomColor_local_var_shorthand);
  2248. const linePriority = this._priorities.get(borderBottomColor_local_var_lineShorthand);
  2249. const positionPriority = this._priorities.get(borderBottomColor_local_var_positionShorthand);
  2250. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderBottomColor_local_var_property) ? this._priorities.get(borderBottomColor_local_var_property) : "";
  2251. this._borderSetter(borderBottomColor_local_var_property, val, priority);
  2252. }
  2253. }
  2254. },
  2255. get() {
  2256. return this.getPropertyValue(borderBottomColor_local_var_property);
  2257. },
  2258. enumerable: true,
  2259. configurable: true
  2260. };
  2261. borderBottomColor_export_property = borderBottomColor_local_var_property;
  2262. var borderLeftColor_export_parse, borderLeftColor_export_definition, borderLeftColor_export_property;
  2263. const borderLeftColor_local_var_property = "border-left-color";
  2264. const borderLeftColor_local_var_lineShorthand = "border-color";
  2265. const borderLeftColor_local_var_positionShorthand = "border-left";
  2266. const borderLeftColor_local_var_shorthand = "border";
  2267. borderLeftColor_export_parse = (v, opt = {}) => {
  2268. const {
  2269. globalObject
  2270. } = opt;
  2271. if (v === "") {
  2272. return v;
  2273. }
  2274. const value = external_dependency_parsers_0.parsePropertyValue(borderLeftColor_local_var_property, v, {
  2275. globalObject,
  2276. inArray: true
  2277. });
  2278. if (Array.isArray(value) && value.length === 1) {
  2279. return external_dependency_parsers_0.resolveColorValue(value);
  2280. } else if (typeof value === "string") {
  2281. return value;
  2282. }
  2283. };
  2284. borderLeftColor_export_definition = {
  2285. set(v) {
  2286. v = external_dependency_parsers_0.prepareValue(v);
  2287. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2288. this._borderSetter(borderLeftColor_local_var_property, v, "");
  2289. } else {
  2290. const val = borderLeftColor_export_parse(v, {
  2291. globalObject: this._global
  2292. });
  2293. if (typeof val === "string") {
  2294. const shorthandPriority = this._priorities.get(borderLeftColor_local_var_shorthand);
  2295. const linePriority = this._priorities.get(borderLeftColor_local_var_lineShorthand);
  2296. const positionPriority = this._priorities.get(borderLeftColor_local_var_positionShorthand);
  2297. const priority = !(shorthandPriority || linePriority || positionPriority) && this._priorities.has(borderLeftColor_local_var_property) ? this._priorities.get(borderLeftColor_local_var_property) : "";
  2298. this._borderSetter(borderLeftColor_local_var_property, val, priority);
  2299. }
  2300. }
  2301. },
  2302. get() {
  2303. return this.getPropertyValue(borderLeftColor_local_var_property);
  2304. },
  2305. enumerable: true,
  2306. configurable: true
  2307. };
  2308. borderLeftColor_export_property = borderLeftColor_local_var_property;
  2309. var borderColor_export_shorthandFor, borderColor_export_parse, borderColor_export_definition, borderColor_export_property;
  2310. const borderColor_local_var_property = "border-color";
  2311. const borderColor_local_var_shorthand = "border";
  2312. borderColor_export_shorthandFor = new Map([[{
  2313. parse: borderTopColor_export_parse,
  2314. definition: borderTopColor_export_definition,
  2315. property: borderTopColor_export_property
  2316. }.property, {
  2317. parse: borderTopColor_export_parse,
  2318. definition: borderTopColor_export_definition,
  2319. property: borderTopColor_export_property
  2320. }], [{
  2321. parse: borderRightColor_export_parse,
  2322. definition: borderRightColor_export_definition,
  2323. property: borderRightColor_export_property
  2324. }.property, {
  2325. parse: borderRightColor_export_parse,
  2326. definition: borderRightColor_export_definition,
  2327. property: borderRightColor_export_property
  2328. }], [{
  2329. parse: borderBottomColor_export_parse,
  2330. definition: borderBottomColor_export_definition,
  2331. property: borderBottomColor_export_property
  2332. }.property, {
  2333. parse: borderBottomColor_export_parse,
  2334. definition: borderBottomColor_export_definition,
  2335. property: borderBottomColor_export_property
  2336. }], [{
  2337. parse: borderLeftColor_export_parse,
  2338. definition: borderLeftColor_export_definition,
  2339. property: borderLeftColor_export_property
  2340. }.property, {
  2341. parse: borderLeftColor_export_parse,
  2342. definition: borderLeftColor_export_definition,
  2343. property: borderLeftColor_export_property
  2344. }]]);
  2345. borderColor_export_parse = (v, opt = {}) => {
  2346. const {
  2347. globalObject
  2348. } = opt;
  2349. if (v === "") {
  2350. return v;
  2351. }
  2352. const values = external_dependency_parsers_0.parsePropertyValue(borderColor_local_var_property, v, {
  2353. globalObject,
  2354. inArray: true
  2355. });
  2356. const parsedValues = [];
  2357. if (Array.isArray(values) && values.length) {
  2358. if (values.length > 4) {
  2359. return;
  2360. }
  2361. for (const value of values) {
  2362. const parsedValue = external_dependency_parsers_0.resolveColorValue([value], {
  2363. length: values.length
  2364. });
  2365. if (!parsedValue) {
  2366. return;
  2367. }
  2368. parsedValues.push(parsedValue);
  2369. }
  2370. } else if (typeof values === "string") {
  2371. parsedValues.push(values);
  2372. }
  2373. if (parsedValues.length) {
  2374. switch (parsedValues.length) {
  2375. case 1:
  2376. {
  2377. return parsedValues;
  2378. }
  2379. case 2:
  2380. {
  2381. const [val1, val2] = parsedValues;
  2382. if (val1 === val2) {
  2383. return [val1];
  2384. }
  2385. return parsedValues;
  2386. }
  2387. case 3:
  2388. {
  2389. const [val1, val2, val3] = parsedValues;
  2390. if (val1 === val3) {
  2391. if (val1 === val2) {
  2392. return [val1];
  2393. }
  2394. return [val1, val2];
  2395. }
  2396. return parsedValues;
  2397. }
  2398. case 4:
  2399. {
  2400. const [val1, val2, val3, val4] = parsedValues;
  2401. if (val2 === val4) {
  2402. if (val1 === val3) {
  2403. if (val1 === val2) {
  2404. return [val1];
  2405. }
  2406. return [val1, val2];
  2407. }
  2408. return [val1, val2, val3];
  2409. }
  2410. return parsedValues;
  2411. }
  2412. default:
  2413. }
  2414. }
  2415. };
  2416. borderColor_export_definition = {
  2417. set(v) {
  2418. v = external_dependency_parsers_0.prepareValue(v);
  2419. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2420. this._borderSetter(borderColor_local_var_property, v, "");
  2421. } else {
  2422. const val = borderColor_export_parse(v, {
  2423. globalObject: this._global
  2424. });
  2425. if (Array.isArray(val) || typeof val === "string") {
  2426. const priority = !this._priorities.get(borderColor_local_var_shorthand) && this._priorities.has(borderColor_local_var_property) ? this._priorities.get(borderColor_local_var_property) : "";
  2427. this._borderSetter(borderColor_local_var_property, val, priority);
  2428. }
  2429. }
  2430. },
  2431. get() {
  2432. return this.getPropertyValue(borderColor_local_var_property);
  2433. },
  2434. enumerable: true,
  2435. configurable: true
  2436. };
  2437. borderColor_export_property = borderColor_local_var_property;
  2438. var borderTop_export_initialValues, borderTop_export_shorthandFor, borderTop_export_parse, borderTop_export_definition, borderTop_export_property;
  2439. const borderTop_local_var_property = "border-top";
  2440. const borderTop_local_var_shorthand = "border";
  2441. const borderTop_local_var_subProps = {
  2442. width: {
  2443. parse: borderTopWidth_export_parse,
  2444. definition: borderTopWidth_export_definition,
  2445. property: borderTopWidth_export_property
  2446. }.property,
  2447. style: {
  2448. parse: borderTopStyle_export_parse,
  2449. definition: borderTopStyle_export_definition,
  2450. property: borderTopStyle_export_property
  2451. }.property,
  2452. color: {
  2453. parse: borderTopColor_export_parse,
  2454. definition: borderTopColor_export_definition,
  2455. property: borderTopColor_export_property
  2456. }.property
  2457. };
  2458. borderTop_export_initialValues = new Map([[{
  2459. parse: borderTopWidth_export_parse,
  2460. definition: borderTopWidth_export_definition,
  2461. property: borderTopWidth_export_property
  2462. }.property, "medium"], [{
  2463. parse: borderTopStyle_export_parse,
  2464. definition: borderTopStyle_export_definition,
  2465. property: borderTopStyle_export_property
  2466. }.property, "none"], [{
  2467. parse: borderTopColor_export_parse,
  2468. definition: borderTopColor_export_definition,
  2469. property: borderTopColor_export_property
  2470. }.property, "currentcolor"]]);
  2471. borderTop_export_shorthandFor = new Map([[{
  2472. parse: borderTopWidth_export_parse,
  2473. definition: borderTopWidth_export_definition,
  2474. property: borderTopWidth_export_property
  2475. }.property, {
  2476. parse: borderTopWidth_export_parse,
  2477. definition: borderTopWidth_export_definition,
  2478. property: borderTopWidth_export_property
  2479. }], [{
  2480. parse: borderTopStyle_export_parse,
  2481. definition: borderTopStyle_export_definition,
  2482. property: borderTopStyle_export_property
  2483. }.property, {
  2484. parse: borderTopStyle_export_parse,
  2485. definition: borderTopStyle_export_definition,
  2486. property: borderTopStyle_export_property
  2487. }], [{
  2488. parse: borderTopColor_export_parse,
  2489. definition: borderTopColor_export_definition,
  2490. property: borderTopColor_export_property
  2491. }.property, {
  2492. parse: borderTopColor_export_parse,
  2493. definition: borderTopColor_export_definition,
  2494. property: borderTopColor_export_property
  2495. }]]);
  2496. borderTop_export_parse = (v, opt = {}) => {
  2497. const {
  2498. globalObject
  2499. } = opt;
  2500. if (v === "") {
  2501. return v;
  2502. }
  2503. const values = external_dependency_parsers_0.splitValue(v);
  2504. const parsedValues = new Map();
  2505. for (const val of values) {
  2506. const value = external_dependency_parsers_0.parsePropertyValue(borderTop_local_var_property, val, {
  2507. globalObject,
  2508. inArray: true
  2509. });
  2510. if (Array.isArray(value) && value.length === 1) {
  2511. const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderTop_local_var_subProps, parsedValues);
  2512. if (typeof parsedValue === "string") {
  2513. return parsedValue;
  2514. } else if (Array.isArray(parsedValue)) {
  2515. const [key, resolvedVal] = parsedValue;
  2516. parsedValues.set(key, resolvedVal);
  2517. } else {
  2518. return;
  2519. }
  2520. } else {
  2521. return;
  2522. }
  2523. }
  2524. if (parsedValues.size) {
  2525. const keys = borderTop_export_shorthandFor.keys();
  2526. const obj = {
  2527. [{
  2528. parse: borderTopWidth_export_parse,
  2529. definition: borderTopWidth_export_definition,
  2530. property: borderTopWidth_export_property
  2531. }.property]: "medium"
  2532. };
  2533. for (const key of keys) {
  2534. if (parsedValues.has(key)) {
  2535. const parsedValue = parsedValues.get(key);
  2536. if (parsedValue !== borderTop_export_initialValues.get(key)) {
  2537. obj[key] = parsedValues.get(key);
  2538. if (obj[{
  2539. parse: borderTopWidth_export_parse,
  2540. definition: borderTopWidth_export_definition,
  2541. property: borderTopWidth_export_property
  2542. }.property] && obj[{
  2543. parse: borderTopWidth_export_parse,
  2544. definition: borderTopWidth_export_definition,
  2545. property: borderTopWidth_export_property
  2546. }.property] === "medium") {
  2547. delete obj[{
  2548. parse: borderTopWidth_export_parse,
  2549. definition: borderTopWidth_export_definition,
  2550. property: borderTopWidth_export_property
  2551. }.property];
  2552. }
  2553. }
  2554. }
  2555. }
  2556. return obj;
  2557. }
  2558. };
  2559. borderTop_export_definition = {
  2560. set(v) {
  2561. v = external_dependency_parsers_0.prepareValue(v);
  2562. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2563. this._borderSetter(borderTop_local_var_property, v, "");
  2564. } else {
  2565. const val = borderTop_export_parse(v, {
  2566. globalObject: this._global
  2567. });
  2568. if (val || typeof val === "string") {
  2569. const priority = !this._priorities.get(borderTop_local_var_shorthand) && this._priorities.has(borderTop_local_var_property) ? this._priorities.get(borderTop_local_var_property) : "";
  2570. this._borderSetter(borderTop_local_var_property, val, priority);
  2571. }
  2572. }
  2573. },
  2574. get() {
  2575. return this.getPropertyValue(borderTop_local_var_property);
  2576. },
  2577. enumerable: true,
  2578. configurable: true
  2579. };
  2580. borderTop_export_property = borderTop_local_var_property;
  2581. var borderRight_export_initialValues, borderRight_export_shorthandFor, borderRight_export_parse, borderRight_export_definition, borderRight_export_property;
  2582. const borderRight_local_var_property = "border-right";
  2583. const borderRight_local_var_shorthand = "border";
  2584. const borderRight_local_var_subProps = {
  2585. width: {
  2586. parse: borderRightWidth_export_parse,
  2587. definition: borderRightWidth_export_definition,
  2588. property: borderRightWidth_export_property
  2589. }.property,
  2590. style: {
  2591. parse: borderRightStyle_export_parse,
  2592. definition: borderRightStyle_export_definition,
  2593. property: borderRightStyle_export_property
  2594. }.property,
  2595. color: {
  2596. parse: borderRightColor_export_parse,
  2597. definition: borderRightColor_export_definition,
  2598. property: borderRightColor_export_property
  2599. }.property
  2600. };
  2601. borderRight_export_initialValues = new Map([[{
  2602. parse: borderRightWidth_export_parse,
  2603. definition: borderRightWidth_export_definition,
  2604. property: borderRightWidth_export_property
  2605. }.property, "medium"], [{
  2606. parse: borderRightStyle_export_parse,
  2607. definition: borderRightStyle_export_definition,
  2608. property: borderRightStyle_export_property
  2609. }.property, "none"], [{
  2610. parse: borderRightColor_export_parse,
  2611. definition: borderRightColor_export_definition,
  2612. property: borderRightColor_export_property
  2613. }.property, "currentcolor"]]);
  2614. borderRight_export_shorthandFor = new Map([[{
  2615. parse: borderRightWidth_export_parse,
  2616. definition: borderRightWidth_export_definition,
  2617. property: borderRightWidth_export_property
  2618. }.property, {
  2619. parse: borderRightWidth_export_parse,
  2620. definition: borderRightWidth_export_definition,
  2621. property: borderRightWidth_export_property
  2622. }], [{
  2623. parse: borderRightStyle_export_parse,
  2624. definition: borderRightStyle_export_definition,
  2625. property: borderRightStyle_export_property
  2626. }.property, {
  2627. parse: borderRightStyle_export_parse,
  2628. definition: borderRightStyle_export_definition,
  2629. property: borderRightStyle_export_property
  2630. }], [{
  2631. parse: borderRightColor_export_parse,
  2632. definition: borderRightColor_export_definition,
  2633. property: borderRightColor_export_property
  2634. }.property, {
  2635. parse: borderRightColor_export_parse,
  2636. definition: borderRightColor_export_definition,
  2637. property: borderRightColor_export_property
  2638. }]]);
  2639. borderRight_export_parse = (v, opt = {}) => {
  2640. const {
  2641. globalObject
  2642. } = opt;
  2643. if (v === "") {
  2644. return v;
  2645. }
  2646. const values = external_dependency_parsers_0.splitValue(v);
  2647. const parsedValues = new Map();
  2648. for (const val of values) {
  2649. const value = external_dependency_parsers_0.parsePropertyValue(borderRight_local_var_property, val, {
  2650. globalObject,
  2651. inArray: true
  2652. });
  2653. if (Array.isArray(value) && value.length === 1) {
  2654. const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderRight_local_var_subProps, parsedValues);
  2655. if (typeof parsedValue === "string") {
  2656. return parsedValue;
  2657. } else if (Array.isArray(parsedValue)) {
  2658. const [key, resolvedVal] = parsedValue;
  2659. parsedValues.set(key, resolvedVal);
  2660. } else {
  2661. return;
  2662. }
  2663. } else {
  2664. return;
  2665. }
  2666. }
  2667. if (parsedValues.size) {
  2668. const keys = borderRight_export_shorthandFor.keys();
  2669. const obj = {
  2670. [{
  2671. parse: borderRightWidth_export_parse,
  2672. definition: borderRightWidth_export_definition,
  2673. property: borderRightWidth_export_property
  2674. }.property]: "medium"
  2675. };
  2676. for (const key of keys) {
  2677. if (parsedValues.has(key)) {
  2678. const parsedValue = parsedValues.get(key);
  2679. if (parsedValue !== borderRight_export_initialValues.get(key)) {
  2680. obj[key] = parsedValues.get(key);
  2681. if (obj[{
  2682. parse: borderRightWidth_export_parse,
  2683. definition: borderRightWidth_export_definition,
  2684. property: borderRightWidth_export_property
  2685. }.property] && obj[{
  2686. parse: borderRightWidth_export_parse,
  2687. definition: borderRightWidth_export_definition,
  2688. property: borderRightWidth_export_property
  2689. }.property] === "medium") {
  2690. delete obj[{
  2691. parse: borderRightWidth_export_parse,
  2692. definition: borderRightWidth_export_definition,
  2693. property: borderRightWidth_export_property
  2694. }.property];
  2695. }
  2696. }
  2697. }
  2698. }
  2699. return obj;
  2700. }
  2701. };
  2702. borderRight_export_definition = {
  2703. set(v) {
  2704. v = external_dependency_parsers_0.prepareValue(v);
  2705. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2706. this._borderSetter(borderRight_local_var_property, v, "");
  2707. } else {
  2708. const val = borderRight_export_parse(v, {
  2709. globalObject: this._global
  2710. });
  2711. if (val || typeof val === "string") {
  2712. const priority = !this._priorities.get(borderRight_local_var_shorthand) && this._priorities.has(borderRight_local_var_property) ? this._priorities.get(borderRight_local_var_property) : "";
  2713. this._borderSetter(borderRight_local_var_property, val, priority);
  2714. }
  2715. }
  2716. },
  2717. get() {
  2718. return this.getPropertyValue(borderRight_local_var_property);
  2719. },
  2720. enumerable: true,
  2721. configurable: true
  2722. };
  2723. borderRight_export_property = borderRight_local_var_property;
  2724. var borderBottom_export_initialValues, borderBottom_export_shorthandFor, borderBottom_export_parse, borderBottom_export_definition, borderBottom_export_property;
  2725. const borderBottom_local_var_property = "border-bottom";
  2726. const borderBottom_local_var_shorthand = "border";
  2727. const borderBottom_local_var_subProps = {
  2728. width: {
  2729. parse: borderBottomWidth_export_parse,
  2730. definition: borderBottomWidth_export_definition,
  2731. property: borderBottomWidth_export_property
  2732. }.property,
  2733. style: {
  2734. parse: borderBottomStyle_export_parse,
  2735. definition: borderBottomStyle_export_definition,
  2736. property: borderBottomStyle_export_property
  2737. }.property,
  2738. color: {
  2739. parse: borderBottomColor_export_parse,
  2740. definition: borderBottomColor_export_definition,
  2741. property: borderBottomColor_export_property
  2742. }.property
  2743. };
  2744. borderBottom_export_initialValues = new Map([[{
  2745. parse: borderBottomWidth_export_parse,
  2746. definition: borderBottomWidth_export_definition,
  2747. property: borderBottomWidth_export_property
  2748. }.property, "medium"], [{
  2749. parse: borderBottomStyle_export_parse,
  2750. definition: borderBottomStyle_export_definition,
  2751. property: borderBottomStyle_export_property
  2752. }.property, "none"], [{
  2753. parse: borderBottomColor_export_parse,
  2754. definition: borderBottomColor_export_definition,
  2755. property: borderBottomColor_export_property
  2756. }.property, "currentcolor"]]);
  2757. borderBottom_export_shorthandFor = new Map([[{
  2758. parse: borderBottomWidth_export_parse,
  2759. definition: borderBottomWidth_export_definition,
  2760. property: borderBottomWidth_export_property
  2761. }.property, {
  2762. parse: borderBottomWidth_export_parse,
  2763. definition: borderBottomWidth_export_definition,
  2764. property: borderBottomWidth_export_property
  2765. }], [{
  2766. parse: borderBottomStyle_export_parse,
  2767. definition: borderBottomStyle_export_definition,
  2768. property: borderBottomStyle_export_property
  2769. }.property, {
  2770. parse: borderBottomStyle_export_parse,
  2771. definition: borderBottomStyle_export_definition,
  2772. property: borderBottomStyle_export_property
  2773. }], [{
  2774. parse: borderBottomColor_export_parse,
  2775. definition: borderBottomColor_export_definition,
  2776. property: borderBottomColor_export_property
  2777. }.property, {
  2778. parse: borderBottomColor_export_parse,
  2779. definition: borderBottomColor_export_definition,
  2780. property: borderBottomColor_export_property
  2781. }]]);
  2782. borderBottom_export_parse = (v, opt = {}) => {
  2783. const {
  2784. globalObject
  2785. } = opt;
  2786. if (v === "") {
  2787. return v;
  2788. }
  2789. const values = external_dependency_parsers_0.splitValue(v);
  2790. const parsedValues = new Map();
  2791. for (const val of values) {
  2792. const value = external_dependency_parsers_0.parsePropertyValue(borderBottom_local_var_property, val, {
  2793. globalObject,
  2794. inArray: true
  2795. });
  2796. if (Array.isArray(value) && value.length === 1) {
  2797. const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderBottom_local_var_subProps, parsedValues);
  2798. if (typeof parsedValue === "string") {
  2799. return parsedValue;
  2800. } else if (Array.isArray(parsedValue)) {
  2801. const [key, resolvedVal] = parsedValue;
  2802. parsedValues.set(key, resolvedVal);
  2803. } else {
  2804. return;
  2805. }
  2806. } else {
  2807. return;
  2808. }
  2809. }
  2810. if (parsedValues.size) {
  2811. const keys = borderBottom_export_shorthandFor.keys();
  2812. const obj = {
  2813. [{
  2814. parse: borderBottomWidth_export_parse,
  2815. definition: borderBottomWidth_export_definition,
  2816. property: borderBottomWidth_export_property
  2817. }.property]: "medium"
  2818. };
  2819. for (const key of keys) {
  2820. if (parsedValues.has(key)) {
  2821. const parsedValue = parsedValues.get(key);
  2822. if (parsedValue !== borderBottom_export_initialValues.get(key)) {
  2823. obj[key] = parsedValues.get(key);
  2824. if (obj[{
  2825. parse: borderBottomWidth_export_parse,
  2826. definition: borderBottomWidth_export_definition,
  2827. property: borderBottomWidth_export_property
  2828. }.property] && obj[{
  2829. parse: borderBottomWidth_export_parse,
  2830. definition: borderBottomWidth_export_definition,
  2831. property: borderBottomWidth_export_property
  2832. }.property] === "medium") {
  2833. delete obj[{
  2834. parse: borderBottomWidth_export_parse,
  2835. definition: borderBottomWidth_export_definition,
  2836. property: borderBottomWidth_export_property
  2837. }.property];
  2838. }
  2839. }
  2840. }
  2841. }
  2842. return obj;
  2843. }
  2844. };
  2845. borderBottom_export_definition = {
  2846. set(v) {
  2847. v = external_dependency_parsers_0.prepareValue(v);
  2848. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2849. this._borderSetter(borderBottom_local_var_property, v, "");
  2850. } else {
  2851. const val = borderBottom_export_parse(v, {
  2852. globalObject: this._global
  2853. });
  2854. if (val || typeof val === "string") {
  2855. const priority = !this._priorities.get(borderBottom_local_var_shorthand) && this._priorities.has(borderBottom_local_var_property) ? this._priorities.get(borderBottom_local_var_property) : "";
  2856. this._borderSetter(borderBottom_local_var_property, val, priority);
  2857. }
  2858. }
  2859. },
  2860. get() {
  2861. return this.getPropertyValue(borderBottom_local_var_property);
  2862. },
  2863. enumerable: true,
  2864. configurable: true
  2865. };
  2866. borderBottom_export_property = borderBottom_local_var_property;
  2867. var borderLeft_export_initialValues, borderLeft_export_shorthandFor, borderLeft_export_parse, borderLeft_export_definition, borderLeft_export_property;
  2868. const borderLeft_local_var_property = "border-left";
  2869. const borderLeft_local_var_shorthand = "border";
  2870. const borderLeft_local_var_subProps = {
  2871. width: {
  2872. parse: borderLeftWidth_export_parse,
  2873. definition: borderLeftWidth_export_definition,
  2874. property: borderLeftWidth_export_property
  2875. }.property,
  2876. style: {
  2877. parse: borderLeftStyle_export_parse,
  2878. definition: borderLeftStyle_export_definition,
  2879. property: borderLeftStyle_export_property
  2880. }.property,
  2881. color: {
  2882. parse: borderLeftColor_export_parse,
  2883. definition: borderLeftColor_export_definition,
  2884. property: borderLeftColor_export_property
  2885. }.property
  2886. };
  2887. borderLeft_export_initialValues = new Map([[{
  2888. parse: borderLeftWidth_export_parse,
  2889. definition: borderLeftWidth_export_definition,
  2890. property: borderLeftWidth_export_property
  2891. }.property, "medium"], [{
  2892. parse: borderLeftStyle_export_parse,
  2893. definition: borderLeftStyle_export_definition,
  2894. property: borderLeftStyle_export_property
  2895. }.property, "none"], [{
  2896. parse: borderLeftColor_export_parse,
  2897. definition: borderLeftColor_export_definition,
  2898. property: borderLeftColor_export_property
  2899. }.property, "currentcolor"]]);
  2900. borderLeft_export_shorthandFor = new Map([[{
  2901. parse: borderLeftWidth_export_parse,
  2902. definition: borderLeftWidth_export_definition,
  2903. property: borderLeftWidth_export_property
  2904. }.property, {
  2905. parse: borderLeftWidth_export_parse,
  2906. definition: borderLeftWidth_export_definition,
  2907. property: borderLeftWidth_export_property
  2908. }], [{
  2909. parse: borderLeftStyle_export_parse,
  2910. definition: borderLeftStyle_export_definition,
  2911. property: borderLeftStyle_export_property
  2912. }.property, {
  2913. parse: borderLeftStyle_export_parse,
  2914. definition: borderLeftStyle_export_definition,
  2915. property: borderLeftStyle_export_property
  2916. }], [{
  2917. parse: borderLeftColor_export_parse,
  2918. definition: borderLeftColor_export_definition,
  2919. property: borderLeftColor_export_property
  2920. }.property, {
  2921. parse: borderLeftColor_export_parse,
  2922. definition: borderLeftColor_export_definition,
  2923. property: borderLeftColor_export_property
  2924. }]]);
  2925. borderLeft_export_parse = (v, opt = {}) => {
  2926. const {
  2927. globalObject
  2928. } = opt;
  2929. if (v === "") {
  2930. return v;
  2931. }
  2932. const values = external_dependency_parsers_0.splitValue(v);
  2933. const parsedValues = new Map();
  2934. for (const val of values) {
  2935. const value = external_dependency_parsers_0.parsePropertyValue(borderLeft_local_var_property, val, {
  2936. globalObject,
  2937. inArray: true
  2938. });
  2939. if (Array.isArray(value) && value.length === 1) {
  2940. const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, borderLeft_local_var_subProps, parsedValues);
  2941. if (typeof parsedValue === "string") {
  2942. return parsedValue;
  2943. } else if (Array.isArray(parsedValue)) {
  2944. const [key, resolvedVal] = parsedValue;
  2945. parsedValues.set(key, resolvedVal);
  2946. } else {
  2947. return;
  2948. }
  2949. } else {
  2950. return;
  2951. }
  2952. }
  2953. if (parsedValues.size) {
  2954. const keys = borderLeft_export_shorthandFor.keys();
  2955. const obj = {
  2956. [{
  2957. parse: borderLeftWidth_export_parse,
  2958. definition: borderLeftWidth_export_definition,
  2959. property: borderLeftWidth_export_property
  2960. }.property]: "medium"
  2961. };
  2962. for (const key of keys) {
  2963. if (parsedValues.has(key)) {
  2964. const parsedValue = parsedValues.get(key);
  2965. if (parsedValue !== borderLeft_export_initialValues.get(key)) {
  2966. obj[key] = parsedValues.get(key);
  2967. if (obj[{
  2968. parse: borderLeftWidth_export_parse,
  2969. definition: borderLeftWidth_export_definition,
  2970. property: borderLeftWidth_export_property
  2971. }.property] && obj[{
  2972. parse: borderLeftWidth_export_parse,
  2973. definition: borderLeftWidth_export_definition,
  2974. property: borderLeftWidth_export_property
  2975. }.property] === "medium") {
  2976. delete obj[{
  2977. parse: borderLeftWidth_export_parse,
  2978. definition: borderLeftWidth_export_definition,
  2979. property: borderLeftWidth_export_property
  2980. }.property];
  2981. }
  2982. }
  2983. }
  2984. }
  2985. return obj;
  2986. }
  2987. };
  2988. borderLeft_export_definition = {
  2989. set(v) {
  2990. v = external_dependency_parsers_0.prepareValue(v);
  2991. if (external_dependency_parsers_0.hasVarFunc(v)) {
  2992. this._borderSetter(borderLeft_local_var_property, v, "");
  2993. } else {
  2994. const val = borderLeft_export_parse(v, {
  2995. globalObject: this._global
  2996. });
  2997. if (val || typeof val === "string") {
  2998. const priority = !this._priorities.get(borderLeft_local_var_shorthand) && this._priorities.has(borderLeft_local_var_property) ? this._priorities.get(borderLeft_local_var_property) : "";
  2999. this._borderSetter(borderLeft_local_var_property, val, priority);
  3000. }
  3001. }
  3002. },
  3003. get() {
  3004. return this.getPropertyValue(borderLeft_local_var_property);
  3005. },
  3006. enumerable: true,
  3007. configurable: true
  3008. };
  3009. borderLeft_export_property = borderLeft_local_var_property;
  3010. var border_export_initialValues, border_export_shorthandFor, border_export_positionShorthandFor, border_export_parse, border_export_definition, border_export_property;
  3011. const border_local_var_property = "border";
  3012. const border_local_var_subProps = {
  3013. width: {
  3014. shorthandFor: borderWidth_export_shorthandFor,
  3015. parse: borderWidth_export_parse,
  3016. definition: borderWidth_export_definition,
  3017. property: borderWidth_export_property
  3018. }.property,
  3019. style: {
  3020. shorthandFor: borderStyle_export_shorthandFor,
  3021. parse: borderStyle_export_parse,
  3022. definition: borderStyle_export_definition,
  3023. property: borderStyle_export_property
  3024. }.property,
  3025. color: {
  3026. shorthandFor: borderColor_export_shorthandFor,
  3027. parse: borderColor_export_parse,
  3028. definition: borderColor_export_definition,
  3029. property: borderColor_export_property
  3030. }.property
  3031. };
  3032. border_export_initialValues = new Map([[{
  3033. shorthandFor: borderWidth_export_shorthandFor,
  3034. parse: borderWidth_export_parse,
  3035. definition: borderWidth_export_definition,
  3036. property: borderWidth_export_property
  3037. }.property, "medium"], [{
  3038. shorthandFor: borderStyle_export_shorthandFor,
  3039. parse: borderStyle_export_parse,
  3040. definition: borderStyle_export_definition,
  3041. property: borderStyle_export_property
  3042. }.property, "none"], [{
  3043. shorthandFor: borderColor_export_shorthandFor,
  3044. parse: borderColor_export_parse,
  3045. definition: borderColor_export_definition,
  3046. property: borderColor_export_property
  3047. }.property, "currentcolor"]]);
  3048. border_export_shorthandFor = new Map([[{
  3049. shorthandFor: borderWidth_export_shorthandFor,
  3050. parse: borderWidth_export_parse,
  3051. definition: borderWidth_export_definition,
  3052. property: borderWidth_export_property
  3053. }.property, {
  3054. shorthandFor: borderWidth_export_shorthandFor,
  3055. parse: borderWidth_export_parse,
  3056. definition: borderWidth_export_definition,
  3057. property: borderWidth_export_property
  3058. }], [{
  3059. shorthandFor: borderStyle_export_shorthandFor,
  3060. parse: borderStyle_export_parse,
  3061. definition: borderStyle_export_definition,
  3062. property: borderStyle_export_property
  3063. }.property, {
  3064. shorthandFor: borderStyle_export_shorthandFor,
  3065. parse: borderStyle_export_parse,
  3066. definition: borderStyle_export_definition,
  3067. property: borderStyle_export_property
  3068. }], [{
  3069. shorthandFor: borderColor_export_shorthandFor,
  3070. parse: borderColor_export_parse,
  3071. definition: borderColor_export_definition,
  3072. property: borderColor_export_property
  3073. }.property, {
  3074. shorthandFor: borderColor_export_shorthandFor,
  3075. parse: borderColor_export_parse,
  3076. definition: borderColor_export_definition,
  3077. property: borderColor_export_property
  3078. }]]);
  3079. border_export_positionShorthandFor = new Map([[{
  3080. initialValues: borderTop_export_initialValues,
  3081. shorthandFor: borderTop_export_shorthandFor,
  3082. parse: borderTop_export_parse,
  3083. definition: borderTop_export_definition,
  3084. property: borderTop_export_property
  3085. }.property, {
  3086. initialValues: borderTop_export_initialValues,
  3087. shorthandFor: borderTop_export_shorthandFor,
  3088. parse: borderTop_export_parse,
  3089. definition: borderTop_export_definition,
  3090. property: borderTop_export_property
  3091. }], [{
  3092. initialValues: borderRight_export_initialValues,
  3093. shorthandFor: borderRight_export_shorthandFor,
  3094. parse: borderRight_export_parse,
  3095. definition: borderRight_export_definition,
  3096. property: borderRight_export_property
  3097. }.property, {
  3098. initialValues: borderRight_export_initialValues,
  3099. shorthandFor: borderRight_export_shorthandFor,
  3100. parse: borderRight_export_parse,
  3101. definition: borderRight_export_definition,
  3102. property: borderRight_export_property
  3103. }], [{
  3104. initialValues: borderBottom_export_initialValues,
  3105. shorthandFor: borderBottom_export_shorthandFor,
  3106. parse: borderBottom_export_parse,
  3107. definition: borderBottom_export_definition,
  3108. property: borderBottom_export_property
  3109. }.property, {
  3110. initialValues: borderBottom_export_initialValues,
  3111. shorthandFor: borderBottom_export_shorthandFor,
  3112. parse: borderBottom_export_parse,
  3113. definition: borderBottom_export_definition,
  3114. property: borderBottom_export_property
  3115. }], [{
  3116. initialValues: borderLeft_export_initialValues,
  3117. shorthandFor: borderLeft_export_shorthandFor,
  3118. parse: borderLeft_export_parse,
  3119. definition: borderLeft_export_definition,
  3120. property: borderLeft_export_property
  3121. }.property, {
  3122. initialValues: borderLeft_export_initialValues,
  3123. shorthandFor: borderLeft_export_shorthandFor,
  3124. parse: borderLeft_export_parse,
  3125. definition: borderLeft_export_definition,
  3126. property: borderLeft_export_property
  3127. }]]);
  3128. border_export_parse = (v, opt = {}) => {
  3129. const {
  3130. globalObject
  3131. } = opt;
  3132. if (v === "" || external_dependency_parsers_0.hasVarFunc(v)) {
  3133. return v;
  3134. }
  3135. const values = external_dependency_parsers_0.splitValue(v);
  3136. const parsedValues = new Map();
  3137. for (const val of values) {
  3138. const value = external_dependency_parsers_0.parsePropertyValue(border_local_var_property, val, {
  3139. globalObject,
  3140. inArray: true
  3141. });
  3142. if (Array.isArray(value) && value.length === 1) {
  3143. const parsedValue = external_dependency_parsers_0.resolveBorderShorthandValue(value, border_local_var_subProps, parsedValues);
  3144. if (typeof parsedValue === "string") {
  3145. return parsedValue;
  3146. } else if (Array.isArray(parsedValue)) {
  3147. const [key, resolvedVal] = parsedValue;
  3148. parsedValues.set(key, resolvedVal);
  3149. } else {
  3150. return;
  3151. }
  3152. } else {
  3153. return;
  3154. }
  3155. }
  3156. if (parsedValues.size) {
  3157. const keys = border_export_shorthandFor.keys();
  3158. const obj = {
  3159. [{
  3160. shorthandFor: borderWidth_export_shorthandFor,
  3161. parse: borderWidth_export_parse,
  3162. definition: borderWidth_export_definition,
  3163. property: borderWidth_export_property
  3164. }.property]: "medium"
  3165. };
  3166. for (const key of keys) {
  3167. if (parsedValues.has(key)) {
  3168. const parsedValue = parsedValues.get(key);
  3169. if (parsedValue !== border_export_initialValues.get(key)) {
  3170. obj[key] = parsedValues.get(key);
  3171. if (obj[{
  3172. shorthandFor: borderWidth_export_shorthandFor,
  3173. parse: borderWidth_export_parse,
  3174. definition: borderWidth_export_definition,
  3175. property: borderWidth_export_property
  3176. }.property] && obj[{
  3177. shorthandFor: borderWidth_export_shorthandFor,
  3178. parse: borderWidth_export_parse,
  3179. definition: borderWidth_export_definition,
  3180. property: borderWidth_export_property
  3181. }.property] === "medium") {
  3182. delete obj[{
  3183. shorthandFor: borderWidth_export_shorthandFor,
  3184. parse: borderWidth_export_parse,
  3185. definition: borderWidth_export_definition,
  3186. property: borderWidth_export_property
  3187. }.property];
  3188. }
  3189. }
  3190. }
  3191. }
  3192. return obj;
  3193. }
  3194. };
  3195. border_export_definition = {
  3196. set(v) {
  3197. v = external_dependency_parsers_0.prepareValue(v);
  3198. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3199. this._borderSetter(border_local_var_property, v, "");
  3200. } else {
  3201. const val = border_export_parse(v, {
  3202. globalObject: this._global
  3203. });
  3204. if (val || typeof val === "string") {
  3205. const priority = this._priorities.get(border_local_var_property) ?? "";
  3206. this._borderSetter(border_local_var_property, val, priority);
  3207. }
  3208. }
  3209. },
  3210. get() {
  3211. return this.getPropertyValue(border_local_var_property);
  3212. },
  3213. enumerable: true,
  3214. configurable: true
  3215. };
  3216. border_export_property = border_local_var_property;
  3217. var borderCollapse_export_parse, borderCollapse_export_definition, borderCollapse_export_property;
  3218. const borderCollapse_local_var_property = "border-collapse";
  3219. borderCollapse_export_parse = (v, opt = {}) => {
  3220. const {
  3221. globalObject
  3222. } = opt;
  3223. if (v === "") {
  3224. return v;
  3225. }
  3226. const value = external_dependency_parsers_0.parsePropertyValue(borderCollapse_local_var_property, v, {
  3227. globalObject,
  3228. inArray: true
  3229. });
  3230. if (Array.isArray(value) && value.length === 1) {
  3231. return external_dependency_parsers_0.resolveKeywordValue(value);
  3232. } else if (typeof value === "string") {
  3233. return value;
  3234. }
  3235. };
  3236. borderCollapse_export_definition = {
  3237. set(v) {
  3238. v = external_dependency_parsers_0.prepareValue(v);
  3239. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3240. this._setProperty(borderCollapse_local_var_property, v);
  3241. } else {
  3242. const val = borderCollapse_export_parse(v, {
  3243. globalObject: this._global
  3244. });
  3245. if (typeof val === "string") {
  3246. const priority = this._priorities.get(borderCollapse_local_var_property) ?? "";
  3247. this._setProperty(borderCollapse_local_var_property, val, priority);
  3248. }
  3249. }
  3250. },
  3251. get() {
  3252. return this.getPropertyValue(borderCollapse_local_var_property);
  3253. },
  3254. enumerable: true,
  3255. configurable: true
  3256. };
  3257. borderCollapse_export_property = borderCollapse_local_var_property;
  3258. var borderSpacing_export_parse, borderSpacing_export_definition, borderSpacing_export_property;
  3259. const borderSpacing_local_var_property = "border-spacing";
  3260. borderSpacing_export_parse = (v, opt = {}) => {
  3261. const {
  3262. globalObject
  3263. } = opt;
  3264. if (v === "") {
  3265. return v;
  3266. }
  3267. const value = external_dependency_parsers_0.parsePropertyValue(borderSpacing_local_var_property, v, {
  3268. globalObject,
  3269. inArray: true
  3270. });
  3271. if (Array.isArray(value) && value.length) {
  3272. switch (value.length) {
  3273. case 1:
  3274. {
  3275. return external_dependency_parsers_0.resolveNumericValue(value, {
  3276. type: "length"
  3277. });
  3278. }
  3279. case 2:
  3280. {
  3281. const [part1, part2] = value;
  3282. const val1 = external_dependency_parsers_0.resolveNumericValue([part1], {
  3283. type: "length"
  3284. });
  3285. const val2 = external_dependency_parsers_0.resolveNumericValue([part2], {
  3286. type: "length"
  3287. });
  3288. if (val1 && val2) {
  3289. return `${val1} ${val2}`;
  3290. }
  3291. break;
  3292. }
  3293. default:
  3294. }
  3295. } else if (typeof value === "string") {
  3296. return value;
  3297. }
  3298. };
  3299. borderSpacing_export_definition = {
  3300. set(v) {
  3301. v = external_dependency_parsers_0.prepareValue(v);
  3302. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3303. this._setProperty(borderSpacing_local_var_property, v);
  3304. } else {
  3305. const val = borderSpacing_export_parse(v, {
  3306. globalObject: this._global
  3307. });
  3308. if (typeof val === "string") {
  3309. const priority = this._priorities.get(borderSpacing_local_var_property) ?? "";
  3310. this._setProperty(borderSpacing_local_var_property, val, priority);
  3311. }
  3312. }
  3313. },
  3314. get() {
  3315. return this.getPropertyValue(borderSpacing_local_var_property);
  3316. },
  3317. enumerable: true,
  3318. configurable: true
  3319. };
  3320. borderSpacing_export_property = borderSpacing_local_var_property;
  3321. var bottom_export_parse, bottom_export_definition, bottom_export_property;
  3322. const bottom_local_var_property = "bottom";
  3323. bottom_export_parse = (v, opt = {}) => {
  3324. const {
  3325. globalObject
  3326. } = opt;
  3327. if (v === "") {
  3328. return v;
  3329. }
  3330. const value = external_dependency_parsers_0.parsePropertyValue(bottom_local_var_property, v, {
  3331. globalObject,
  3332. inArray: true
  3333. });
  3334. if (Array.isArray(value) && value.length === 1) {
  3335. return external_dependency_parsers_0.resolveNumericValue(value, {
  3336. type: "length"
  3337. });
  3338. } else if (typeof value === "string") {
  3339. return value;
  3340. }
  3341. };
  3342. bottom_export_definition = {
  3343. set(v) {
  3344. v = external_dependency_parsers_0.prepareValue(v);
  3345. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3346. this._setProperty(bottom_local_var_property, v);
  3347. } else {
  3348. const val = bottom_export_parse(v, {
  3349. globalObject: this._global
  3350. });
  3351. if (typeof val === "string") {
  3352. const priority = this._priorities.get(bottom_local_var_property) ?? "";
  3353. this._setProperty(bottom_local_var_property, val, priority);
  3354. }
  3355. }
  3356. },
  3357. get() {
  3358. return this.getPropertyValue(bottom_local_var_property);
  3359. },
  3360. enumerable: true,
  3361. configurable: true
  3362. };
  3363. bottom_export_property = bottom_local_var_property;
  3364. var clear_export_parse, clear_export_definition, clear_export_property;
  3365. const clear_local_var_property = "clear";
  3366. clear_export_parse = (v, opt = {}) => {
  3367. const {
  3368. globalObject
  3369. } = opt;
  3370. if (v === "") {
  3371. return v;
  3372. }
  3373. const value = external_dependency_parsers_0.parsePropertyValue(clear_local_var_property, v, {
  3374. globalObject,
  3375. inArray: true
  3376. });
  3377. if (Array.isArray(value) && value.length === 1) {
  3378. return external_dependency_parsers_0.resolveKeywordValue(value);
  3379. } else if (typeof value === "string") {
  3380. return value;
  3381. }
  3382. };
  3383. clear_export_definition = {
  3384. set(v) {
  3385. v = external_dependency_parsers_0.prepareValue(v);
  3386. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3387. this._setProperty(clear_local_var_property, v);
  3388. } else {
  3389. const val = clear_export_parse(v, {
  3390. globalObject: this._global
  3391. });
  3392. if (typeof val === "string") {
  3393. const priority = this._priorities.get(clear_local_var_property) ?? "";
  3394. this._setProperty(clear_local_var_property, val, priority);
  3395. }
  3396. }
  3397. },
  3398. get() {
  3399. return this.getPropertyValue(clear_local_var_property);
  3400. },
  3401. enumerable: true,
  3402. configurable: true
  3403. };
  3404. clear_export_property = clear_local_var_property;
  3405. var clip_export_parse, clip_export_definition, clip_export_property;
  3406. // deprecated
  3407. // @see https://drafts.csswg.org/css-masking-1/#clip-property
  3408. const clip_local_var_property = "clip";
  3409. clip_export_parse = (v, opt = {}) => {
  3410. const {
  3411. globalObject
  3412. } = opt;
  3413. if (v === "") {
  3414. return v;
  3415. }
  3416. const {
  3417. AST_TYPES
  3418. } = external_dependency_parsers_0;
  3419. const value = external_dependency_parsers_0.parsePropertyValue(clip_local_var_property, v, {
  3420. globalObject,
  3421. inArray: true
  3422. });
  3423. if (Array.isArray(value) && value.length === 1) {
  3424. const [{
  3425. name,
  3426. type,
  3427. value: itemValue
  3428. }] = value;
  3429. switch (type) {
  3430. case AST_TYPES.FUNCTION:
  3431. {
  3432. const values = external_dependency_parsers_0.splitValue(itemValue, {
  3433. delimiter: ","
  3434. });
  3435. const parsedValues = [];
  3436. for (const item of values) {
  3437. const parsedValue = external_dependency_parsers_0.parseCSS(item, {
  3438. context: "value"
  3439. }, true);
  3440. const val = external_dependency_parsers_0.resolveNumericValue(parsedValue.children, {
  3441. type: "length"
  3442. });
  3443. if (val) {
  3444. parsedValues.push(val);
  3445. } else {
  3446. return;
  3447. }
  3448. }
  3449. return `${name}(${parsedValues.join(", ")})`;
  3450. }
  3451. case AST_TYPES.GLOBAL_KEYWORD:
  3452. case AST_TYPES.IDENTIFIER:
  3453. {
  3454. return name;
  3455. }
  3456. default:
  3457. }
  3458. } else if (typeof value === "string") {
  3459. return value;
  3460. }
  3461. };
  3462. clip_export_definition = {
  3463. set(v) {
  3464. v = external_dependency_parsers_0.prepareValue(v);
  3465. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3466. this._setProperty(clip_local_var_property, v);
  3467. } else {
  3468. const val = clip_export_parse(v, {
  3469. globalObject: this._global
  3470. });
  3471. if (typeof val === "string") {
  3472. const priority = this._priorities.get(clip_local_var_property) ?? "";
  3473. this._setProperty(clip_local_var_property, val, priority);
  3474. }
  3475. }
  3476. },
  3477. get() {
  3478. return this.getPropertyValue(clip_local_var_property);
  3479. },
  3480. enumerable: true,
  3481. configurable: true
  3482. };
  3483. clip_export_property = clip_local_var_property;
  3484. var color_export_parse, color_export_definition, color_export_property;
  3485. const color_local_var_property = "color";
  3486. color_export_parse = (v, opt = {}) => {
  3487. const {
  3488. globalObject
  3489. } = opt;
  3490. if (v === "") {
  3491. return v;
  3492. }
  3493. const value = external_dependency_parsers_0.parsePropertyValue(color_local_var_property, v, {
  3494. globalObject,
  3495. inArray: true
  3496. });
  3497. if (Array.isArray(value) && value.length === 1) {
  3498. return external_dependency_parsers_0.resolveColorValue(value);
  3499. } else if (typeof value === "string") {
  3500. return value;
  3501. }
  3502. };
  3503. color_export_definition = {
  3504. set(v) {
  3505. v = external_dependency_parsers_0.prepareValue(v);
  3506. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3507. this._setProperty(color_local_var_property, v);
  3508. } else {
  3509. const val = color_export_parse(v, {
  3510. globalObject: this._global
  3511. });
  3512. if (typeof val === "string") {
  3513. const priority = this._priorities.get(color_local_var_property) ?? "";
  3514. this._setProperty(color_local_var_property, val, priority);
  3515. }
  3516. }
  3517. },
  3518. get() {
  3519. return this.getPropertyValue(color_local_var_property);
  3520. },
  3521. enumerable: true,
  3522. configurable: true
  3523. };
  3524. color_export_property = color_local_var_property;
  3525. var display_export_parse, display_export_definition, display_export_property;
  3526. const display_local_var_property = "display";
  3527. /* keywords */
  3528. const display_local_var_displayOutside = ["block", "inline", "run-in"];
  3529. const display_local_var_displayFlow = ["flow", "flow-root"];
  3530. display_export_parse = (v, opt = {}) => {
  3531. const {
  3532. globalObject
  3533. } = opt;
  3534. if (v === "") {
  3535. return v;
  3536. }
  3537. const {
  3538. AST_TYPES
  3539. } = external_dependency_parsers_0;
  3540. const value = external_dependency_parsers_0.parsePropertyValue(display_local_var_property, v, {
  3541. globalObject,
  3542. inArray: true
  3543. });
  3544. if (Array.isArray(value) && value.length) {
  3545. switch (value.length) {
  3546. case 1:
  3547. {
  3548. const [{
  3549. name,
  3550. type
  3551. }] = value;
  3552. switch (type) {
  3553. case AST_TYPES.GLOBAL_KEYWORD:
  3554. {
  3555. return name;
  3556. }
  3557. case AST_TYPES.IDENTIFIER:
  3558. {
  3559. if (name === "flow") {
  3560. return "block";
  3561. }
  3562. return name;
  3563. }
  3564. default:
  3565. }
  3566. break;
  3567. }
  3568. case 2:
  3569. {
  3570. const [part1, part2] = value;
  3571. const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
  3572. const val2 = part2.type === AST_TYPES.IDENTIFIER && part2.name;
  3573. if (val1 && val2) {
  3574. let outerValue = "";
  3575. let innerValue = "";
  3576. if (val1 === "list-item") {
  3577. outerValue = val2;
  3578. innerValue = val1;
  3579. } else if (val2 === "list-item") {
  3580. outerValue = val1;
  3581. innerValue = val2;
  3582. } else if (display_local_var_displayOutside.includes(val1)) {
  3583. outerValue = val1;
  3584. innerValue = val2;
  3585. } else if (display_local_var_displayOutside.includes(val2)) {
  3586. outerValue = val2;
  3587. innerValue = val1;
  3588. }
  3589. if (innerValue === "list-item") {
  3590. switch (outerValue) {
  3591. case "block":
  3592. case "flow":
  3593. {
  3594. return innerValue;
  3595. }
  3596. case "flow-root":
  3597. case "inline":
  3598. case "run-in":
  3599. {
  3600. return `${outerValue} ${innerValue}`;
  3601. }
  3602. default:
  3603. }
  3604. } else if (outerValue === "block") {
  3605. switch (innerValue) {
  3606. case "flow":
  3607. {
  3608. return outerValue;
  3609. }
  3610. case "flow-root":
  3611. case "flex":
  3612. case "grid":
  3613. case "table":
  3614. {
  3615. return innerValue;
  3616. }
  3617. case "ruby":
  3618. {
  3619. return `${outerValue} ${innerValue}`;
  3620. }
  3621. default:
  3622. }
  3623. } else if (outerValue === "inline") {
  3624. switch (innerValue) {
  3625. case "flow":
  3626. {
  3627. return outerValue;
  3628. }
  3629. case "flow-root":
  3630. {
  3631. return `${outerValue}-block`;
  3632. }
  3633. case "flex":
  3634. case "grid":
  3635. case "table":
  3636. {
  3637. return `${outerValue}-${innerValue}`;
  3638. }
  3639. case "ruby":
  3640. {
  3641. return innerValue;
  3642. }
  3643. default:
  3644. }
  3645. } else if (outerValue === "run-in") {
  3646. switch (innerValue) {
  3647. case "flow":
  3648. {
  3649. return outerValue;
  3650. }
  3651. case "flow-root":
  3652. case "flex":
  3653. case "grid":
  3654. case "table":
  3655. case "ruby":
  3656. {
  3657. return `${outerValue} ${innerValue}`;
  3658. }
  3659. default:
  3660. }
  3661. }
  3662. }
  3663. break;
  3664. }
  3665. case 3:
  3666. {
  3667. const [part1, part2, part3] = value;
  3668. const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
  3669. const val2 = part2.type === AST_TYPES.IDENTIFIER && part2.name;
  3670. const val3 = part3.type === AST_TYPES.IDENTIFIER && part3.name;
  3671. if (val1 && val2 && part3) {
  3672. let outerValue = "";
  3673. let flowValue = "";
  3674. let listItemValue = "";
  3675. if (val1 === "list-item") {
  3676. listItemValue = val1;
  3677. if (display_local_var_displayFlow.includes(val2)) {
  3678. flowValue = val2;
  3679. outerValue = val3;
  3680. } else if (display_local_var_displayFlow.includes(val3)) {
  3681. flowValue = val3;
  3682. outerValue = val2;
  3683. }
  3684. } else if (val2 === "list-item") {
  3685. listItemValue = val2;
  3686. if (display_local_var_displayFlow.includes(val1)) {
  3687. flowValue = val1;
  3688. outerValue = val3;
  3689. } else if (display_local_var_displayFlow.includes(val3)) {
  3690. flowValue = val3;
  3691. outerValue = val1;
  3692. }
  3693. } else if (val3 === "list-item") {
  3694. listItemValue = val3;
  3695. if (display_local_var_displayFlow.includes(val1)) {
  3696. flowValue = val1;
  3697. outerValue = val2;
  3698. } else if (display_local_var_displayFlow.includes(val2)) {
  3699. flowValue = val2;
  3700. outerValue = val1;
  3701. }
  3702. }
  3703. if (outerValue && flowValue && listItemValue) {
  3704. switch (outerValue) {
  3705. case "block":
  3706. {
  3707. if (flowValue === "flow") {
  3708. return listItemValue;
  3709. }
  3710. return `${flowValue} ${listItemValue}`;
  3711. }
  3712. case "inline":
  3713. case "run-in":
  3714. {
  3715. if (flowValue === "flow") {
  3716. return `${outerValue} ${listItemValue}`;
  3717. }
  3718. return `${outerValue} ${flowValue} ${listItemValue}`;
  3719. }
  3720. }
  3721. }
  3722. }
  3723. break;
  3724. }
  3725. default:
  3726. }
  3727. } else if (typeof value === "string") {
  3728. return value;
  3729. }
  3730. };
  3731. display_export_definition = {
  3732. set(v) {
  3733. v = external_dependency_parsers_0.prepareValue(v);
  3734. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3735. this._setProperty(display_local_var_property, v);
  3736. } else {
  3737. const val = display_export_parse(v, {
  3738. globalObject: this._global
  3739. });
  3740. if (typeof val === "string") {
  3741. const priority = this._priorities.get(display_local_var_property) ?? "";
  3742. this._setProperty(display_local_var_property, val, priority);
  3743. }
  3744. }
  3745. },
  3746. get() {
  3747. return this.getPropertyValue(display_local_var_property);
  3748. },
  3749. enumerable: true,
  3750. configurable: true
  3751. };
  3752. display_export_property = display_local_var_property;
  3753. var flexGrow_export_parse, flexGrow_export_definition, flexGrow_export_property;
  3754. const flexGrow_local_var_property = "flex-grow";
  3755. const flexGrow_local_var_shorthand = "flex";
  3756. flexGrow_export_parse = (v, opt = {}) => {
  3757. const {
  3758. globalObject
  3759. } = opt;
  3760. if (v === "") {
  3761. return v;
  3762. }
  3763. const value = external_dependency_parsers_0.parsePropertyValue("flex-grow", v, {
  3764. globalObject,
  3765. inArray: true
  3766. });
  3767. if (Array.isArray(value) && value.length === 1) {
  3768. return external_dependency_parsers_0.resolveNumericValue(value, {
  3769. min: 0
  3770. });
  3771. } else if (typeof value === "string") {
  3772. return value;
  3773. }
  3774. };
  3775. flexGrow_export_definition = {
  3776. set(v) {
  3777. v = external_dependency_parsers_0.prepareValue(v);
  3778. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3779. this._setProperty(flexGrow_local_var_shorthand, "");
  3780. this._setProperty(flexGrow_local_var_property, v);
  3781. } else {
  3782. const val = flexGrow_export_parse(v, {
  3783. globalObject: this._global
  3784. });
  3785. if (typeof val === "string") {
  3786. const priority = !this._priorities.get(flexGrow_local_var_shorthand) && this._priorities.has(flexGrow_local_var_property) ? this._priorities.get(flexGrow_local_var_property) : "";
  3787. this._flexBoxSetter(flexGrow_local_var_property, val, priority, flexGrow_local_var_shorthand);
  3788. }
  3789. }
  3790. },
  3791. get() {
  3792. return this.getPropertyValue(flexGrow_local_var_property);
  3793. },
  3794. enumerable: true,
  3795. configurable: true
  3796. };
  3797. flexGrow_export_property = flexGrow_local_var_property;
  3798. var flexShrink_export_parse, flexShrink_export_definition, flexShrink_export_property;
  3799. const flexShrink_local_var_property = "flex-shrink";
  3800. const flexShrink_local_var_shorthand = "flex";
  3801. flexShrink_export_parse = (v, opt = {}) => {
  3802. const {
  3803. globalObject
  3804. } = opt;
  3805. if (v === "") {
  3806. return v;
  3807. }
  3808. const value = external_dependency_parsers_0.parsePropertyValue(flexShrink_local_var_property, v, {
  3809. globalObject,
  3810. inArray: true
  3811. });
  3812. if (Array.isArray(value) && value.length === 1) {
  3813. return external_dependency_parsers_0.resolveNumericValue(value, {
  3814. min: 0
  3815. });
  3816. } else if (typeof value === "string") {
  3817. return value;
  3818. }
  3819. };
  3820. flexShrink_export_definition = {
  3821. set(v) {
  3822. v = external_dependency_parsers_0.prepareValue(v);
  3823. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3824. this._setProperty(flexShrink_local_var_shorthand, "");
  3825. this._setProperty(flexShrink_local_var_property, v);
  3826. } else {
  3827. const val = flexShrink_export_parse(v, {
  3828. globalObject: this._global
  3829. });
  3830. if (typeof val === "string") {
  3831. const priority = !this._priorities.get(flexShrink_local_var_shorthand) && this._priorities.has(flexShrink_local_var_property) ? this._priorities.get(flexShrink_local_var_property) : "";
  3832. this._flexBoxSetter(flexShrink_local_var_property, val, priority, flexShrink_local_var_shorthand);
  3833. }
  3834. }
  3835. },
  3836. get() {
  3837. return this.getPropertyValue(flexShrink_local_var_property);
  3838. },
  3839. enumerable: true,
  3840. configurable: true
  3841. };
  3842. flexShrink_export_property = flexShrink_local_var_property;
  3843. var flexBasis_export_parse, flexBasis_export_definition, flexBasis_export_property;
  3844. const flexBasis_local_var_property = "flex-basis";
  3845. const flexBasis_local_var_shorthand = "flex";
  3846. flexBasis_export_parse = (v, opt = {}) => {
  3847. const {
  3848. globalObject
  3849. } = opt;
  3850. if (v === "") {
  3851. return v;
  3852. }
  3853. const value = external_dependency_parsers_0.parsePropertyValue(flexBasis_local_var_property, v, {
  3854. globalObject,
  3855. inArray: true
  3856. });
  3857. if (Array.isArray(value) && value.length === 1) {
  3858. return external_dependency_parsers_0.resolveNumericValue(value, {
  3859. type: "length"
  3860. });
  3861. } else if (typeof value === "string") {
  3862. return value;
  3863. }
  3864. };
  3865. flexBasis_export_definition = {
  3866. set(v) {
  3867. v = external_dependency_parsers_0.prepareValue(v);
  3868. if (external_dependency_parsers_0.hasVarFunc(v)) {
  3869. this._setProperty(flexBasis_local_var_shorthand, "");
  3870. this._setProperty(flexBasis_local_var_property, v);
  3871. } else {
  3872. const val = flexBasis_export_parse(v, {
  3873. globalObject: this._global
  3874. });
  3875. if (typeof val === "string") {
  3876. const priority = !this._priorities.get(flexBasis_local_var_shorthand) && this._priorities.has(flexBasis_local_var_property) ? this._priorities.get(flexBasis_local_var_property) : "";
  3877. this._flexBoxSetter(flexBasis_local_var_property, val, priority, flexBasis_local_var_shorthand);
  3878. }
  3879. }
  3880. },
  3881. get() {
  3882. return this.getPropertyValue(flexBasis_local_var_property);
  3883. },
  3884. enumerable: true,
  3885. configurable: true
  3886. };
  3887. flexBasis_export_property = flexBasis_local_var_property;
  3888. var flex_export_initialValues, flex_export_shorthandFor, flex_export_parse, flex_export_definition, flex_export_property;
  3889. const flex_local_var_property = "flex";
  3890. flex_export_initialValues = new Map([[{
  3891. parse: flexGrow_export_parse,
  3892. definition: flexGrow_export_definition,
  3893. property: flexGrow_export_property
  3894. }.property, "0"], [{
  3895. parse: flexShrink_export_parse,
  3896. definition: flexShrink_export_definition,
  3897. property: flexShrink_export_property
  3898. }.property, "1"], [{
  3899. parse: flexBasis_export_parse,
  3900. definition: flexBasis_export_definition,
  3901. property: flexBasis_export_property
  3902. }.property, "auto"]]);
  3903. flex_export_shorthandFor = new Map([[{
  3904. parse: flexGrow_export_parse,
  3905. definition: flexGrow_export_definition,
  3906. property: flexGrow_export_property
  3907. }.property, {
  3908. parse: flexGrow_export_parse,
  3909. definition: flexGrow_export_definition,
  3910. property: flexGrow_export_property
  3911. }], [{
  3912. parse: flexShrink_export_parse,
  3913. definition: flexShrink_export_definition,
  3914. property: flexShrink_export_property
  3915. }.property, {
  3916. parse: flexShrink_export_parse,
  3917. definition: flexShrink_export_definition,
  3918. property: flexShrink_export_property
  3919. }], [{
  3920. parse: flexBasis_export_parse,
  3921. definition: flexBasis_export_definition,
  3922. property: flexBasis_export_property
  3923. }.property, {
  3924. parse: flexBasis_export_parse,
  3925. definition: flexBasis_export_definition,
  3926. property: flexBasis_export_property
  3927. }]]);
  3928. flex_export_parse = (v, opt = {}) => {
  3929. const {
  3930. globalObject
  3931. } = opt;
  3932. if (v === "") {
  3933. return v;
  3934. }
  3935. const {
  3936. AST_TYPES
  3937. } = external_dependency_parsers_0;
  3938. const value = external_dependency_parsers_0.parsePropertyValue(flex_local_var_property, v, {
  3939. globalObject,
  3940. inArray: true
  3941. });
  3942. if (Array.isArray(value) && value.length) {
  3943. const flex = {
  3944. [{
  3945. parse: flexGrow_export_parse,
  3946. definition: flexGrow_export_definition,
  3947. property: flexGrow_export_property
  3948. }.property]: "1",
  3949. [{
  3950. parse: flexShrink_export_parse,
  3951. definition: flexShrink_export_definition,
  3952. property: flexShrink_export_property
  3953. }.property]: "1",
  3954. [{
  3955. parse: flexBasis_export_parse,
  3956. definition: flexBasis_export_definition,
  3957. property: flexBasis_export_property
  3958. }.property]: "0%"
  3959. };
  3960. if (value.length === 1) {
  3961. const [{
  3962. isNumber,
  3963. name,
  3964. type,
  3965. unit,
  3966. value: itemValue
  3967. }] = value;
  3968. switch (type) {
  3969. case AST_TYPES.CALC:
  3970. {
  3971. if (isNumber) {
  3972. flex[{
  3973. parse: flexGrow_export_parse,
  3974. definition: flexGrow_export_definition,
  3975. property: flexGrow_export_property
  3976. }.property] = `${name}(${itemValue})`;
  3977. return flex;
  3978. }
  3979. flex[{
  3980. parse: flexBasis_export_parse,
  3981. definition: flexBasis_export_definition,
  3982. property: flexBasis_export_property
  3983. }.property] = `${name}(${itemValue})`;
  3984. return flex;
  3985. }
  3986. case AST_TYPES.DIMENSION:
  3987. {
  3988. flex[{
  3989. parse: flexBasis_export_parse,
  3990. definition: flexBasis_export_definition,
  3991. property: flexBasis_export_property
  3992. }.property] = `${itemValue}${unit}`;
  3993. return flex;
  3994. }
  3995. case AST_TYPES.GLOBAL_KEYWORD:
  3996. {
  3997. return name;
  3998. }
  3999. case AST_TYPES.IDENTIFIER:
  4000. {
  4001. if (name === "none") {
  4002. return {
  4003. [{
  4004. parse: flexGrow_export_parse,
  4005. definition: flexGrow_export_definition,
  4006. property: flexGrow_export_property
  4007. }.property]: "0",
  4008. [{
  4009. parse: flexShrink_export_parse,
  4010. definition: flexShrink_export_definition,
  4011. property: flexShrink_export_property
  4012. }.property]: "0",
  4013. [{
  4014. parse: flexBasis_export_parse,
  4015. definition: flexBasis_export_definition,
  4016. property: flexBasis_export_property
  4017. }.property]: "auto"
  4018. };
  4019. }
  4020. flex[{
  4021. parse: flexBasis_export_parse,
  4022. definition: flexBasis_export_definition,
  4023. property: flexBasis_export_property
  4024. }.property] = name;
  4025. return flex;
  4026. }
  4027. case AST_TYPES.NUMBER:
  4028. {
  4029. flex[{
  4030. parse: flexGrow_export_parse,
  4031. definition: flexGrow_export_definition,
  4032. property: flexGrow_export_property
  4033. }.property] = itemValue;
  4034. return flex;
  4035. }
  4036. case AST_TYPES.PERCENTAGE:
  4037. {
  4038. flex[{
  4039. parse: flexBasis_export_parse,
  4040. definition: flexBasis_export_definition,
  4041. property: flexBasis_export_property
  4042. }.property] = `${itemValue}%`;
  4043. return flex;
  4044. }
  4045. default:
  4046. }
  4047. } else {
  4048. const [val1, val2, val3] = value;
  4049. if (val1.type === AST_TYPES.CALC && val1.isNumber) {
  4050. flex[{
  4051. parse: flexGrow_export_parse,
  4052. definition: flexGrow_export_definition,
  4053. property: flexGrow_export_property
  4054. }.property] = `${val1.name}(${val1.value})`;
  4055. } else if (val1.type === AST_TYPES.NUMBER) {
  4056. flex[{
  4057. parse: flexGrow_export_parse,
  4058. definition: flexGrow_export_definition,
  4059. property: flexGrow_export_property
  4060. }.property] = val1.value;
  4061. } else {
  4062. return;
  4063. }
  4064. if (val3) {
  4065. if (val2.type === AST_TYPES.CALC && val2.isNumber) {
  4066. flex[{
  4067. parse: flexShrink_export_parse,
  4068. definition: flexShrink_export_definition,
  4069. property: flexShrink_export_property
  4070. }.property] = `${val2.name}(${val2.value})`;
  4071. } else if (val2.type === AST_TYPES.NUMBER) {
  4072. flex[{
  4073. parse: flexShrink_export_parse,
  4074. definition: flexShrink_export_definition,
  4075. property: flexShrink_export_property
  4076. }.property] = val2.value;
  4077. } else {
  4078. return;
  4079. }
  4080. if (val3.type === AST_TYPES.GLOBAL_KEYWORD || val3.type === AST_TYPES.IDENTIFIER) {
  4081. flex[{
  4082. parse: flexBasis_export_parse,
  4083. definition: flexBasis_export_definition,
  4084. property: flexBasis_export_property
  4085. }.property] = val3.name;
  4086. } else if (val3.type === AST_TYPES.CALC && !val3.isNumber) {
  4087. flex[{
  4088. parse: flexBasis_export_parse,
  4089. definition: flexBasis_export_definition,
  4090. property: flexBasis_export_property
  4091. }.property] = `${val3.name}(${val3.value})`;
  4092. } else if (val3.type === AST_TYPES.DIMENSION) {
  4093. flex[{
  4094. parse: flexBasis_export_parse,
  4095. definition: flexBasis_export_definition,
  4096. property: flexBasis_export_property
  4097. }.property] = `${val3.value}${val3.unit}`;
  4098. } else if (val3.type === AST_TYPES.PERCENTAGE) {
  4099. flex[{
  4100. parse: flexBasis_export_parse,
  4101. definition: flexBasis_export_definition,
  4102. property: flexBasis_export_property
  4103. }.property] = `${val3.value}%`;
  4104. } else {
  4105. return;
  4106. }
  4107. } else {
  4108. switch (val2.type) {
  4109. case AST_TYPES.CALC:
  4110. {
  4111. if (val2.isNumber) {
  4112. flex[{
  4113. parse: flexShrink_export_parse,
  4114. definition: flexShrink_export_definition,
  4115. property: flexShrink_export_property
  4116. }.property] = `${val2.name}(${val2.value})`;
  4117. } else {
  4118. flex[{
  4119. parse: flexBasis_export_parse,
  4120. definition: flexBasis_export_definition,
  4121. property: flexBasis_export_property
  4122. }.property] = `${val2.name}(${val2.value})`;
  4123. }
  4124. break;
  4125. }
  4126. case AST_TYPES.DIMENSION:
  4127. {
  4128. flex[{
  4129. parse: flexBasis_export_parse,
  4130. definition: flexBasis_export_definition,
  4131. property: flexBasis_export_property
  4132. }.property] = `${val2.value}${val2.unit}`;
  4133. break;
  4134. }
  4135. case AST_TYPES.NUMBER:
  4136. {
  4137. flex[{
  4138. parse: flexShrink_export_parse,
  4139. definition: flexShrink_export_definition,
  4140. property: flexShrink_export_property
  4141. }.property] = val2.value;
  4142. break;
  4143. }
  4144. case AST_TYPES.PERCENTAGE:
  4145. {
  4146. flex[{
  4147. parse: flexBasis_export_parse,
  4148. definition: flexBasis_export_definition,
  4149. property: flexBasis_export_property
  4150. }.property] = `${val2.value}%`;
  4151. break;
  4152. }
  4153. case AST_TYPES.IDENTIFIER:
  4154. {
  4155. flex[{
  4156. parse: flexBasis_export_parse,
  4157. definition: flexBasis_export_definition,
  4158. property: flexBasis_export_property
  4159. }.property] = val2.name;
  4160. break;
  4161. }
  4162. default:
  4163. {
  4164. return;
  4165. }
  4166. }
  4167. }
  4168. return flex;
  4169. }
  4170. } else if (typeof value === "string") {
  4171. return value;
  4172. }
  4173. };
  4174. flex_export_definition = {
  4175. set(v) {
  4176. v = external_dependency_parsers_0.prepareValue(v);
  4177. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4178. for (const [longhand] of flex_export_shorthandFor) {
  4179. this._setProperty(longhand, "");
  4180. }
  4181. this._setProperty(flex_local_var_property, v);
  4182. } else {
  4183. const val = flex_export_parse(v, {
  4184. globalObject: this._global
  4185. });
  4186. const priority = this._priorities.get(flex_local_var_property) ?? "";
  4187. if (typeof val === "string") {
  4188. for (const [longhand] of flex_export_shorthandFor) {
  4189. this._setProperty(longhand, val, priority);
  4190. }
  4191. this._setProperty(flex_local_var_property, val, priority);
  4192. } else if (val) {
  4193. const values = [];
  4194. for (const [longhand, value] of Object.entries(val)) {
  4195. values.push(value);
  4196. this._setProperty(longhand, value, priority);
  4197. }
  4198. this._setProperty(flex_local_var_property, values.join(" "), priority);
  4199. }
  4200. }
  4201. },
  4202. get() {
  4203. return this.getPropertyValue(flex_local_var_property);
  4204. },
  4205. enumerable: true,
  4206. configurable: true
  4207. };
  4208. flex_export_property = flex_local_var_property;
  4209. var float_export_parse, float_export_definition, float_export_property;
  4210. const float_local_var_property = "float";
  4211. float_export_parse = (v, opt = {}) => {
  4212. const {
  4213. globalObject
  4214. } = opt;
  4215. if (v === "") {
  4216. return v;
  4217. }
  4218. const value = external_dependency_parsers_0.parsePropertyValue(float_local_var_property, v, {
  4219. globalObject,
  4220. inArray: true
  4221. });
  4222. if (Array.isArray(value) && value.length === 1) {
  4223. return external_dependency_parsers_0.resolveKeywordValue(value);
  4224. } else if (typeof value === "string") {
  4225. return value;
  4226. }
  4227. };
  4228. float_export_definition = {
  4229. set(v) {
  4230. v = external_dependency_parsers_0.prepareValue(v);
  4231. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4232. this._setProperty(float_local_var_property, v);
  4233. } else {
  4234. const val = float_export_parse(v, {
  4235. globalObject: this._global
  4236. });
  4237. if (typeof val === "string") {
  4238. const priority = this._priorities.get(float_local_var_property) ?? "";
  4239. this._setProperty(float_local_var_property, val, priority);
  4240. }
  4241. }
  4242. },
  4243. get() {
  4244. return this.getPropertyValue(float_local_var_property);
  4245. },
  4246. enumerable: true,
  4247. configurable: true
  4248. };
  4249. float_export_property = float_local_var_property;
  4250. var floodColor_export_parse, floodColor_export_definition, floodColor_export_property;
  4251. const floodColor_local_var_property = "flood-color";
  4252. floodColor_export_parse = (v, opt = {}) => {
  4253. const {
  4254. globalObject
  4255. } = opt;
  4256. if (v === "") {
  4257. return v;
  4258. }
  4259. const value = external_dependency_parsers_0.parsePropertyValue(floodColor_local_var_property, v, {
  4260. globalObject,
  4261. inArray: true
  4262. });
  4263. if (Array.isArray(value) && value.length === 1) {
  4264. return external_dependency_parsers_0.resolveColorValue(value);
  4265. } else if (typeof value === "string") {
  4266. return value;
  4267. }
  4268. };
  4269. floodColor_export_definition = {
  4270. set(v) {
  4271. v = external_dependency_parsers_0.prepareValue(v);
  4272. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4273. this._setProperty(floodColor_local_var_property, v);
  4274. } else {
  4275. const val = floodColor_export_parse(v, {
  4276. globalObject: this._global
  4277. });
  4278. if (typeof val === "string") {
  4279. const priority = this._priorities.get(floodColor_local_var_property) ?? "";
  4280. this._setProperty(floodColor_local_var_property, val, priority);
  4281. }
  4282. }
  4283. },
  4284. get() {
  4285. return this.getPropertyValue(floodColor_local_var_property);
  4286. },
  4287. enumerable: true,
  4288. configurable: true
  4289. };
  4290. floodColor_export_property = floodColor_local_var_property;
  4291. var fontStyle_export_parse, fontStyle_export_definition, fontStyle_export_property;
  4292. const fontStyle_local_var_property = "font-style";
  4293. const fontStyle_local_var_shorthand = "font";
  4294. fontStyle_export_parse = (v, opt = {}) => {
  4295. const {
  4296. globalObject
  4297. } = opt;
  4298. if (v === "") {
  4299. return v;
  4300. }
  4301. const {
  4302. AST_TYPES
  4303. } = external_dependency_parsers_0;
  4304. const value = external_dependency_parsers_0.parsePropertyValue(fontStyle_local_var_property, v, {
  4305. globalObject,
  4306. inArray: true
  4307. });
  4308. if (Array.isArray(value) && value.length) {
  4309. if (value.length === 1) {
  4310. const [{
  4311. name,
  4312. type
  4313. }] = value;
  4314. switch (type) {
  4315. case AST_TYPES.GLOBAL_KEYWORD:
  4316. case AST_TYPES.IDENTIFIER:
  4317. {
  4318. return name;
  4319. }
  4320. default:
  4321. }
  4322. } else if (value.length === 2) {
  4323. const [part1, part2] = value;
  4324. const val1 = part1.type === AST_TYPES.IDENTIFIER && part1.name;
  4325. const val2 = external_dependency_parsers_0.resolveNumericValue([part2], {
  4326. type: "angle"
  4327. });
  4328. if (val1 && val1 === "oblique" && val2) {
  4329. return `${val1} ${val2}`;
  4330. }
  4331. }
  4332. } else if (typeof value === "string") {
  4333. return value;
  4334. }
  4335. };
  4336. fontStyle_export_definition = {
  4337. set(v) {
  4338. v = external_dependency_parsers_0.prepareValue(v);
  4339. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4340. this._setProperty(fontStyle_local_var_shorthand, "");
  4341. this._setProperty(fontStyle_local_var_property, v);
  4342. } else {
  4343. const val = fontStyle_export_parse(v, {
  4344. globalObject: this._global
  4345. });
  4346. if (typeof val === "string") {
  4347. const priority = !this._priorities.get(fontStyle_local_var_shorthand) && this._priorities.has(fontStyle_local_var_property) ? this._priorities.get(fontStyle_local_var_property) : "";
  4348. this._setProperty(fontStyle_local_var_property, val, priority);
  4349. }
  4350. }
  4351. },
  4352. get() {
  4353. return this.getPropertyValue(fontStyle_local_var_property);
  4354. },
  4355. enumerable: true,
  4356. configurable: true
  4357. };
  4358. fontStyle_export_property = fontStyle_local_var_property;
  4359. var fontVariant_export_parse, fontVariant_export_definition, fontVariant_export_property;
  4360. const fontVariant_local_var_property = "font-variant";
  4361. const fontVariant_local_var_shorthand = "font";
  4362. fontVariant_export_parse = (v, opt = {}) => {
  4363. const {
  4364. globalObject
  4365. } = opt;
  4366. if (v === "") {
  4367. return v;
  4368. }
  4369. const values = external_dependency_parsers_0.splitValue(v);
  4370. const parsedValues = [];
  4371. for (const val of values) {
  4372. const value = external_dependency_parsers_0.parsePropertyValue(fontVariant_local_var_property, val, {
  4373. globalObject,
  4374. inArray: true
  4375. });
  4376. if (Array.isArray(value) && value.length === 1) {
  4377. const parsedValue = external_dependency_parsers_0.resolveFunctionValue(value);
  4378. if (!parsedValue) {
  4379. return;
  4380. }
  4381. parsedValues.push(parsedValue);
  4382. } else if (typeof value === "string") {
  4383. parsedValues.push(value);
  4384. }
  4385. }
  4386. if (parsedValues.length) {
  4387. if (parsedValues.length > 1) {
  4388. if (parsedValues.includes("normal") || parsedValues.includes("none")) {
  4389. return;
  4390. }
  4391. }
  4392. return parsedValues.join(" ");
  4393. }
  4394. };
  4395. fontVariant_export_definition = {
  4396. set(v) {
  4397. v = external_dependency_parsers_0.prepareValue(v);
  4398. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4399. this._setProperty(fontVariant_local_var_shorthand, "");
  4400. this._setProperty(fontVariant_local_var_property, v);
  4401. } else {
  4402. const val = fontVariant_export_parse(v, {
  4403. globalObject: this._global
  4404. });
  4405. if (typeof val === "string") {
  4406. const priority = !this._priorities.get(fontVariant_local_var_shorthand) && this._priorities.has(fontVariant_local_var_property) ? this._priorities.get(fontVariant_local_var_property) : "";
  4407. this._setProperty(fontVariant_local_var_property, val, priority);
  4408. }
  4409. }
  4410. },
  4411. get() {
  4412. return this.getPropertyValue(fontVariant_local_var_property);
  4413. },
  4414. enumerable: true,
  4415. configurable: true
  4416. };
  4417. fontVariant_export_property = fontVariant_local_var_property;
  4418. var fontWeight_export_parse, fontWeight_export_definition, fontWeight_export_property;
  4419. const fontWeight_local_var_property = "font-weight";
  4420. const fontWeight_local_var_shorthand = "font";
  4421. fontWeight_export_parse = (v, opt = {}) => {
  4422. const {
  4423. globalObject
  4424. } = opt;
  4425. if (v === "") {
  4426. return v;
  4427. }
  4428. const value = external_dependency_parsers_0.parsePropertyValue(fontWeight_local_var_property, v, {
  4429. globalObject,
  4430. inArray: true
  4431. });
  4432. if (Array.isArray(value) && value.length === 1) {
  4433. const parsedValue = external_dependency_parsers_0.resolveNumericValue(value, {
  4434. min: 1,
  4435. max: 1000
  4436. });
  4437. if (!parsedValue) {
  4438. return;
  4439. }
  4440. return parsedValue;
  4441. } else if (typeof value === "string") {
  4442. return value;
  4443. }
  4444. };
  4445. fontWeight_export_definition = {
  4446. set(v) {
  4447. v = external_dependency_parsers_0.prepareValue(v);
  4448. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4449. this._setProperty(fontWeight_local_var_shorthand, "");
  4450. this._setProperty(fontWeight_local_var_property, v);
  4451. } else {
  4452. const val = fontWeight_export_parse(v, {
  4453. globalObject: this._global
  4454. });
  4455. if (typeof val === "string") {
  4456. const priority = !this._priorities.get(fontWeight_local_var_shorthand) && this._priorities.has(fontWeight_local_var_property) ? this._priorities.get(fontWeight_local_var_property) : "";
  4457. this._setProperty(fontWeight_local_var_property, val, priority);
  4458. }
  4459. }
  4460. },
  4461. get() {
  4462. return this.getPropertyValue(fontWeight_local_var_property);
  4463. },
  4464. enumerable: true,
  4465. configurable: true
  4466. };
  4467. fontWeight_export_property = fontWeight_local_var_property;
  4468. var fontSize_export_parse, fontSize_export_definition, fontSize_export_property;
  4469. const fontSize_local_var_property = "font-size";
  4470. const fontSize_local_var_shorthand = "font";
  4471. fontSize_export_parse = (v, opt = {}) => {
  4472. const {
  4473. globalObject
  4474. } = opt;
  4475. if (v === "") {
  4476. return v;
  4477. }
  4478. const value = external_dependency_parsers_0.parsePropertyValue(fontSize_local_var_property, v, {
  4479. globalObject,
  4480. inArray: true
  4481. });
  4482. if (Array.isArray(value) && value.length === 1) {
  4483. return external_dependency_parsers_0.resolveNumericValue(value, {
  4484. min: 0,
  4485. type: "length"
  4486. });
  4487. } else if (typeof value === "string") {
  4488. return value;
  4489. }
  4490. };
  4491. fontSize_export_definition = {
  4492. set(v) {
  4493. v = external_dependency_parsers_0.prepareValue(v);
  4494. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4495. this._setProperty(fontSize_local_var_shorthand, "");
  4496. this._setProperty(fontSize_local_var_property, v);
  4497. } else {
  4498. const val = fontSize_export_parse(v, {
  4499. globalObject: this._global
  4500. });
  4501. if (typeof val === "string") {
  4502. const priority = !this._priorities.get(fontSize_local_var_shorthand) && this._priorities.has(fontSize_local_var_property) ? this._priorities.get(fontSize_local_var_property) : "";
  4503. this._setProperty(fontSize_local_var_property, val, priority);
  4504. }
  4505. }
  4506. },
  4507. get() {
  4508. return this.getPropertyValue(fontSize_local_var_property);
  4509. },
  4510. enumerable: true,
  4511. configurable: true
  4512. };
  4513. fontSize_export_property = fontSize_local_var_property;
  4514. var lineHeight_export_parse, lineHeight_export_definition, lineHeight_export_property;
  4515. const lineHeight_local_var_property = "line-height";
  4516. const lineHeight_local_var_shorthand = "font";
  4517. lineHeight_export_parse = (v, opt = {}) => {
  4518. const {
  4519. globalObject
  4520. } = opt;
  4521. if (v === "") {
  4522. return v;
  4523. }
  4524. const value = external_dependency_parsers_0.parsePropertyValue(lineHeight_local_var_property, v, {
  4525. globalObject,
  4526. inArray: true
  4527. });
  4528. if (Array.isArray(value) && value.length === 1) {
  4529. return external_dependency_parsers_0.resolveNumericValue(value, {
  4530. min: 0
  4531. });
  4532. } else if (typeof value === "string") {
  4533. return value;
  4534. }
  4535. };
  4536. lineHeight_export_definition = {
  4537. set(v) {
  4538. v = external_dependency_parsers_0.prepareValue(v);
  4539. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4540. this._setProperty(lineHeight_local_var_shorthand, "");
  4541. this._setProperty(lineHeight_local_var_property, v);
  4542. } else {
  4543. const val = lineHeight_export_parse(v, {
  4544. globalObject: this._global
  4545. });
  4546. if (typeof val === "string") {
  4547. const priority = !this._priorities.get(lineHeight_local_var_shorthand) && this._priorities.has(lineHeight_local_var_property) ? this._priorities.get(lineHeight_local_var_property) : "";
  4548. this._setProperty(lineHeight_local_var_property, val, priority);
  4549. }
  4550. }
  4551. },
  4552. get() {
  4553. return this.getPropertyValue(lineHeight_local_var_property);
  4554. },
  4555. enumerable: true,
  4556. configurable: true
  4557. };
  4558. lineHeight_export_property = lineHeight_local_var_property;
  4559. var fontFamily_export_parse, fontFamily_export_definition, fontFamily_export_property;
  4560. const fontFamily_local_var_property = "font-family";
  4561. const fontFamily_local_var_shorthand = "font";
  4562. fontFamily_export_parse = (v, opt = {}) => {
  4563. const {
  4564. globalObject
  4565. } = opt;
  4566. if (v === "") {
  4567. return v;
  4568. }
  4569. const {
  4570. AST_TYPES
  4571. } = external_dependency_parsers_0;
  4572. const values = external_dependency_parsers_0.splitValue(v, {
  4573. delimiter: ","
  4574. });
  4575. const parsedValues = [];
  4576. for (const val of values) {
  4577. const value = external_dependency_parsers_0.parsePropertyValue(fontFamily_local_var_property, val, {
  4578. globalObject,
  4579. caseSensitive: true,
  4580. inArray: true
  4581. });
  4582. if (Array.isArray(value) && value.length) {
  4583. if (value.length === 1) {
  4584. const [{
  4585. name,
  4586. type,
  4587. value: itemValue
  4588. }] = value;
  4589. switch (type) {
  4590. case AST_TYPES.FUNCTION:
  4591. {
  4592. parsedValues.push(`${name}(${itemValue})`);
  4593. break;
  4594. }
  4595. case AST_TYPES.GLOBAL_KEYWORD:
  4596. case AST_TYPES.IDENTIFIER:
  4597. {
  4598. if (name === "undefined") {
  4599. return;
  4600. }
  4601. parsedValues.push(name);
  4602. break;
  4603. }
  4604. case "String":
  4605. {
  4606. const parsedValue = itemValue.replaceAll("\\", "").replaceAll('"', '\\"');
  4607. parsedValues.push(`"${parsedValue}"`);
  4608. break;
  4609. }
  4610. default:
  4611. {
  4612. return;
  4613. }
  4614. }
  4615. } else {
  4616. const parts = [];
  4617. for (const item of value) {
  4618. const {
  4619. name,
  4620. type
  4621. } = item;
  4622. if (type !== AST_TYPES.IDENTIFIER) {
  4623. return;
  4624. }
  4625. parts.push(name);
  4626. }
  4627. const parsedValue = parts.join(" ").replaceAll("\\", "").replaceAll('"', '\\"');
  4628. parsedValues.push(`"${parsedValue}"`);
  4629. }
  4630. } else if (typeof value === "string") {
  4631. parsedValues.push(value);
  4632. } else {
  4633. return;
  4634. }
  4635. }
  4636. if (parsedValues.length) {
  4637. return parsedValues.join(", ");
  4638. }
  4639. };
  4640. fontFamily_export_definition = {
  4641. set(v) {
  4642. v = external_dependency_parsers_0.prepareValue(v);
  4643. if (external_dependency_parsers_0.hasVarFunc(v)) {
  4644. this._setProperty(fontFamily_local_var_shorthand, "");
  4645. this._setProperty(fontFamily_local_var_property, v);
  4646. } else {
  4647. const val = fontFamily_export_parse(v, {
  4648. globalObject: this._global
  4649. });
  4650. if (typeof val === "string") {
  4651. const priority = !this._priorities.get(fontFamily_local_var_shorthand) && this._priorities.has(fontFamily_local_var_property) ? this._priorities.get(fontFamily_local_var_property) : "";
  4652. this._setProperty(fontFamily_local_var_property, val, priority);
  4653. }
  4654. }
  4655. },
  4656. get() {
  4657. return this.getPropertyValue(fontFamily_local_var_property);
  4658. },
  4659. enumerable: true,
  4660. configurable: true
  4661. };
  4662. fontFamily_export_property = fontFamily_local_var_property;
  4663. var font_export_shorthandFor, font_export_parse, font_export_definition, font_export_property;
  4664. const font_local_var_property = "font";
  4665. font_export_shorthandFor = new Map([[{
  4666. parse: fontStyle_export_parse,
  4667. definition: fontStyle_export_definition,
  4668. property: fontStyle_export_property
  4669. }.property, {
  4670. parse: fontStyle_export_parse,
  4671. definition: fontStyle_export_definition,
  4672. property: fontStyle_export_property
  4673. }], [{
  4674. parse: fontVariant_export_parse,
  4675. definition: fontVariant_export_definition,
  4676. property: fontVariant_export_property
  4677. }.property, {
  4678. parse: fontVariant_export_parse,
  4679. definition: fontVariant_export_definition,
  4680. property: fontVariant_export_property
  4681. }], [{
  4682. parse: fontWeight_export_parse,
  4683. definition: fontWeight_export_definition,
  4684. property: fontWeight_export_property
  4685. }.property, {
  4686. parse: fontWeight_export_parse,
  4687. definition: fontWeight_export_definition,
  4688. property: fontWeight_export_property
  4689. }], [{
  4690. parse: fontSize_export_parse,
  4691. definition: fontSize_export_definition,
  4692. property: fontSize_export_property
  4693. }.property, {
  4694. parse: fontSize_export_parse,
  4695. definition: fontSize_export_definition,
  4696. property: fontSize_export_property
  4697. }], [{
  4698. parse: lineHeight_export_parse,
  4699. definition: lineHeight_export_definition,
  4700. property: lineHeight_export_property
  4701. }.property, {
  4702. parse: lineHeight_export_parse,
  4703. definition: lineHeight_export_definition,
  4704. property: lineHeight_export_property
  4705. }], [{
  4706. parse: fontFamily_export_parse,
  4707. definition: fontFamily_export_definition,
  4708. property: fontFamily_export_property
  4709. }.property, {
  4710. parse: fontFamily_export_parse,
  4711. definition: fontFamily_export_definition,
  4712. property: fontFamily_export_property
  4713. }]]);
  4714. font_export_parse = (v, opt = {}) => {
  4715. const {
  4716. globalObject
  4717. } = opt;
  4718. if (v === "") {
  4719. return v;
  4720. } else if (external_dependency_parsers_0.hasCalcFunc(v)) {
  4721. v = external_dependency_parsers_0.resolveCalc(v);
  4722. }
  4723. if (!external_dependency_parsers_0.isValidPropertyValue(font_local_var_property, v)) {
  4724. return;
  4725. }
  4726. const {
  4727. AST_TYPES
  4728. } = external_dependency_parsers_0;
  4729. const [fontBlock, ...families] = external_dependency_parsers_0.splitValue(v, {
  4730. delimiter: ","
  4731. });
  4732. const [fontBlockA, fontBlockB] = external_dependency_parsers_0.splitValue(fontBlock, {
  4733. delimiter: "/"
  4734. });
  4735. const font = {
  4736. [{
  4737. parse: fontStyle_export_parse,
  4738. definition: fontStyle_export_definition,
  4739. property: fontStyle_export_property
  4740. }.property]: "normal",
  4741. [{
  4742. parse: fontVariant_export_parse,
  4743. definition: fontVariant_export_definition,
  4744. property: fontVariant_export_property
  4745. }.property]: "normal",
  4746. [{
  4747. parse: fontWeight_export_parse,
  4748. definition: fontWeight_export_definition,
  4749. property: fontWeight_export_property
  4750. }.property]: "normal"
  4751. };
  4752. const fontFamilies = new Set();
  4753. if (fontBlockB) {
  4754. const [lineB, ...familiesB] = fontBlockB.trim().split(" ");
  4755. if (!lineB || !familiesB.length) {
  4756. return;
  4757. }
  4758. const lineHeightB = {
  4759. parse: lineHeight_export_parse,
  4760. definition: lineHeight_export_definition,
  4761. property: lineHeight_export_property
  4762. }.parse(lineB, {
  4763. global
  4764. });
  4765. if (typeof lineHeightB !== "string") {
  4766. return;
  4767. }
  4768. const familyB = {
  4769. parse: fontFamily_export_parse,
  4770. definition: fontFamily_export_definition,
  4771. property: fontFamily_export_property
  4772. }.parse(familiesB.join(" "), {
  4773. globalObject,
  4774. caseSensitive: true
  4775. });
  4776. if (typeof familyB === "string") {
  4777. fontFamilies.add(familyB);
  4778. } else {
  4779. return;
  4780. }
  4781. const parts = external_dependency_parsers_0.splitValue(fontBlockA.trim());
  4782. const properties = [{
  4783. parse: fontStyle_export_parse,
  4784. definition: fontStyle_export_definition,
  4785. property: fontStyle_export_property
  4786. }.property, {
  4787. parse: fontVariant_export_parse,
  4788. definition: fontVariant_export_definition,
  4789. property: fontVariant_export_property
  4790. }.property, {
  4791. parse: fontWeight_export_parse,
  4792. definition: fontWeight_export_definition,
  4793. property: fontWeight_export_property
  4794. }.property, {
  4795. parse: fontSize_export_parse,
  4796. definition: fontSize_export_definition,
  4797. property: fontSize_export_property
  4798. }.property];
  4799. for (const part of parts) {
  4800. if (part === "normal") {
  4801. continue;
  4802. } else {
  4803. for (const longhand of properties) {
  4804. switch (longhand) {
  4805. case {
  4806. parse: fontSize_export_parse,
  4807. definition: fontSize_export_definition,
  4808. property: fontSize_export_property
  4809. }.property:
  4810. {
  4811. const parsedValue = {
  4812. parse: fontSize_export_parse,
  4813. definition: fontSize_export_definition,
  4814. property: fontSize_export_property
  4815. }.parse(part, {
  4816. globalObject
  4817. });
  4818. if (typeof parsedValue === "string") {
  4819. font[longhand] = parsedValue;
  4820. }
  4821. break;
  4822. }
  4823. case {
  4824. parse: fontStyle_export_parse,
  4825. definition: fontStyle_export_definition,
  4826. property: fontStyle_export_property
  4827. }.property:
  4828. case {
  4829. parse: fontWeight_export_parse,
  4830. definition: fontWeight_export_definition,
  4831. property: fontWeight_export_property
  4832. }.property:
  4833. {
  4834. if (font[longhand] === "normal") {
  4835. const longhandItem = font_export_shorthandFor.get(longhand);
  4836. const parsedValue = longhandItem.parse(part, {
  4837. globalObject
  4838. });
  4839. if (typeof parsedValue === "string") {
  4840. font[longhand] = parsedValue;
  4841. }
  4842. }
  4843. break;
  4844. }
  4845. case {
  4846. parse: fontVariant_export_parse,
  4847. definition: fontVariant_export_definition,
  4848. property: fontVariant_export_property
  4849. }.property:
  4850. {
  4851. if (font[longhand] === "normal") {
  4852. const parsedValue = {
  4853. parse: fontVariant_export_parse,
  4854. definition: fontVariant_export_definition,
  4855. property: fontVariant_export_property
  4856. }.parse(part, {
  4857. globalObject
  4858. });
  4859. if (typeof parsedValue === "string") {
  4860. if (parsedValue === "small-cap") {
  4861. font[longhand] = parsedValue;
  4862. } else if (parsedValue !== "normal") {
  4863. return;
  4864. }
  4865. }
  4866. }
  4867. break;
  4868. }
  4869. default:
  4870. }
  4871. }
  4872. }
  4873. }
  4874. if (Object.hasOwn(font, {
  4875. parse: fontSize_export_parse,
  4876. definition: fontSize_export_definition,
  4877. property: fontSize_export_property
  4878. }.property)) {
  4879. font[{
  4880. parse: lineHeight_export_parse,
  4881. definition: lineHeight_export_definition,
  4882. property: lineHeight_export_property
  4883. }.property] = lineHeightB;
  4884. } else {
  4885. return;
  4886. }
  4887. } else {
  4888. const revParts = external_dependency_parsers_0.splitValue(fontBlockA.trim()).toReversed();
  4889. if (revParts.length === 1) {
  4890. const [part] = revParts;
  4891. const value = external_dependency_parsers_0.parsePropertyValue(font_local_var_property, part, {
  4892. globalObject,
  4893. inArray: true
  4894. });
  4895. if (Array.isArray(value) && value.length === 1) {
  4896. const [{
  4897. name,
  4898. type
  4899. }] = value;
  4900. if (type === AST_TYPES.GLOBAL_KEYWORD) {
  4901. return {
  4902. [{
  4903. parse: fontStyle_export_parse,
  4904. definition: fontStyle_export_definition,
  4905. property: fontStyle_export_property
  4906. }.property]: name,
  4907. [{
  4908. parse: fontVariant_export_parse,
  4909. definition: fontVariant_export_definition,
  4910. property: fontVariant_export_property
  4911. }.property]: name,
  4912. [{
  4913. parse: fontWeight_export_parse,
  4914. definition: fontWeight_export_definition,
  4915. property: fontWeight_export_property
  4916. }.property]: name,
  4917. [{
  4918. parse: fontSize_export_parse,
  4919. definition: fontSize_export_definition,
  4920. property: fontSize_export_property
  4921. }.property]: name,
  4922. [{
  4923. parse: lineHeight_export_parse,
  4924. definition: lineHeight_export_definition,
  4925. property: lineHeight_export_property
  4926. }.property]: name,
  4927. [{
  4928. parse: fontFamily_export_parse,
  4929. definition: fontFamily_export_definition,
  4930. property: fontFamily_export_property
  4931. }.property]: name
  4932. };
  4933. }
  4934. }
  4935. return;
  4936. }
  4937. const properties = [{
  4938. parse: fontStyle_export_parse,
  4939. definition: fontStyle_export_definition,
  4940. property: fontStyle_export_property
  4941. }.property, {
  4942. parse: fontVariant_export_parse,
  4943. definition: fontVariant_export_definition,
  4944. property: fontVariant_export_property
  4945. }.property, {
  4946. parse: fontWeight_export_parse,
  4947. definition: fontWeight_export_definition,
  4948. property: fontWeight_export_property
  4949. }.property, {
  4950. parse: lineHeight_export_parse,
  4951. definition: lineHeight_export_definition,
  4952. property: lineHeight_export_property
  4953. }.property];
  4954. for (const longhand of properties) {
  4955. font[longhand] = "normal";
  4956. }
  4957. const revFontFamily = [];
  4958. let fontSizeA;
  4959. for (const part of revParts) {
  4960. if (fontSizeA) {
  4961. if (/^normal$/i.test(part)) {
  4962. continue;
  4963. } else {
  4964. for (const longhand of properties) {
  4965. switch (longhand) {
  4966. case {
  4967. parse: fontStyle_export_parse,
  4968. definition: fontStyle_export_definition,
  4969. property: fontStyle_export_property
  4970. }.property:
  4971. case {
  4972. parse: fontWeight_export_parse,
  4973. definition: fontWeight_export_definition,
  4974. property: fontWeight_export_property
  4975. }.property:
  4976. case {
  4977. parse: lineHeight_export_parse,
  4978. definition: lineHeight_export_definition,
  4979. property: lineHeight_export_property
  4980. }.property:
  4981. {
  4982. if (font[longhand] === "normal") {
  4983. const longhandItem = font_export_shorthandFor.get(longhand);
  4984. const parsedValue = longhandItem.parse(part, {
  4985. globalObject
  4986. });
  4987. if (typeof parsedValue === "string") {
  4988. font[longhand] = parsedValue;
  4989. }
  4990. }
  4991. break;
  4992. }
  4993. case {
  4994. parse: fontVariant_export_parse,
  4995. definition: fontVariant_export_definition,
  4996. property: fontVariant_export_property
  4997. }.property:
  4998. {
  4999. if (font[longhand] === "normal") {
  5000. const parsedValue = {
  5001. parse: fontVariant_export_parse,
  5002. definition: fontVariant_export_definition,
  5003. property: fontVariant_export_property
  5004. }.parse(part, {
  5005. globalObject
  5006. });
  5007. if (typeof parsedValue === "string") {
  5008. if (parsedValue === "small-cap") {
  5009. font[longhand] = parsedValue;
  5010. } else if (parsedValue !== "normal") {
  5011. return;
  5012. }
  5013. }
  5014. }
  5015. break;
  5016. }
  5017. default:
  5018. }
  5019. }
  5020. }
  5021. } else {
  5022. const parsedFontSize = {
  5023. parse: fontSize_export_parse,
  5024. definition: fontSize_export_definition,
  5025. property: fontSize_export_property
  5026. }.parse(part, {
  5027. globalObject
  5028. });
  5029. if (typeof parsedFontSize === "string") {
  5030. fontSizeA = parsedFontSize;
  5031. } else {
  5032. const parsedFontFamily = {
  5033. parse: fontFamily_export_parse,
  5034. definition: fontFamily_export_definition,
  5035. property: fontFamily_export_property
  5036. }.parse(part, {
  5037. globalObject,
  5038. caseSensitive: true
  5039. });
  5040. if (typeof parsedFontFamily === "string") {
  5041. revFontFamily.push(parsedFontFamily);
  5042. } else {
  5043. return;
  5044. }
  5045. }
  5046. }
  5047. }
  5048. const family = {
  5049. parse: fontFamily_export_parse,
  5050. definition: fontFamily_export_definition,
  5051. property: fontFamily_export_property
  5052. }.parse(revFontFamily.toReversed().join(" "), {
  5053. globalObject,
  5054. caseSensitive: true
  5055. });
  5056. if (fontSizeA && family) {
  5057. font[{
  5058. parse: fontSize_export_parse,
  5059. definition: fontSize_export_definition,
  5060. property: fontSize_export_property
  5061. }.property] = fontSizeA;
  5062. fontFamilies.add({
  5063. parse: fontFamily_export_parse,
  5064. definition: fontFamily_export_definition,
  5065. property: fontFamily_export_property
  5066. }.parse(family));
  5067. } else {
  5068. return;
  5069. }
  5070. }
  5071. for (const family of families) {
  5072. const parsedFontFamily = {
  5073. parse: fontFamily_export_parse,
  5074. definition: fontFamily_export_definition,
  5075. property: fontFamily_export_property
  5076. }.parse(family, {
  5077. globalObject,
  5078. caseSensitive: true
  5079. });
  5080. if (parsedFontFamily) {
  5081. fontFamilies.add(parsedFontFamily);
  5082. } else {
  5083. return;
  5084. }
  5085. }
  5086. font[{
  5087. parse: fontFamily_export_parse,
  5088. definition: fontFamily_export_definition,
  5089. property: fontFamily_export_property
  5090. }.property] = [...fontFamilies].join(", ");
  5091. return font;
  5092. };
  5093. font_export_definition = {
  5094. set(v) {
  5095. v = external_dependency_parsers_0.prepareValue(v);
  5096. if (v === "" || external_dependency_parsers_0.hasVarFunc(v)) {
  5097. for (const [key] of font_export_shorthandFor) {
  5098. this._setProperty(key, "");
  5099. }
  5100. this._setProperty(font_local_var_property, v);
  5101. } else {
  5102. const obj = font_export_parse(v, {
  5103. globalObject: this._global
  5104. });
  5105. if (!obj) {
  5106. return;
  5107. }
  5108. const priority = this._priorities.get(font_local_var_property) ?? "";
  5109. const str = new Set();
  5110. for (const [key] of font_export_shorthandFor) {
  5111. const val = obj[key];
  5112. if (typeof val === "string") {
  5113. this._setProperty(key, val, priority);
  5114. if (val && val !== "normal" && !str.has(val)) {
  5115. if (key === {
  5116. parse: lineHeight_export_parse,
  5117. definition: lineHeight_export_definition,
  5118. property: lineHeight_export_property
  5119. }.property) {
  5120. str.add(`/ ${val}`);
  5121. } else {
  5122. str.add(val);
  5123. }
  5124. }
  5125. }
  5126. }
  5127. this._setProperty(font_local_var_property, [...str].join(" "), priority);
  5128. }
  5129. },
  5130. get() {
  5131. const val = this.getPropertyValue(font_local_var_property);
  5132. if (external_dependency_parsers_0.hasVarFunc(val)) {
  5133. return val;
  5134. }
  5135. const str = new Set();
  5136. for (const [key] of font_export_shorthandFor) {
  5137. const v = this.getPropertyValue(key);
  5138. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5139. return "";
  5140. }
  5141. if (v && v !== "normal" && !str.has(v)) {
  5142. if (key === {
  5143. parse: lineHeight_export_parse,
  5144. definition: lineHeight_export_definition,
  5145. property: lineHeight_export_property
  5146. }.property) {
  5147. str.add(`/ ${v}`);
  5148. } else {
  5149. str.add(`${v}`);
  5150. }
  5151. }
  5152. }
  5153. return [...str].join(" ");
  5154. },
  5155. enumerable: true,
  5156. configurable: true
  5157. };
  5158. font_export_property = font_local_var_property;
  5159. var height_export_parse, height_export_definition, height_export_property;
  5160. const height_local_var_property = "height";
  5161. height_export_parse = (v, opt = {}) => {
  5162. const {
  5163. globalObject
  5164. } = opt;
  5165. if (v === "") {
  5166. return v;
  5167. }
  5168. const value = external_dependency_parsers_0.parsePropertyValue(height_local_var_property, v, {
  5169. globalObject,
  5170. inArray: true
  5171. });
  5172. if (Array.isArray(value) && value.length === 1) {
  5173. return external_dependency_parsers_0.resolveNumericValue(value, {
  5174. min: 0,
  5175. type: "length"
  5176. });
  5177. } else if (typeof value === "string") {
  5178. return value;
  5179. }
  5180. };
  5181. height_export_definition = {
  5182. set(v) {
  5183. v = external_dependency_parsers_0.prepareValue(v);
  5184. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5185. this._setProperty(height_local_var_property, v);
  5186. } else {
  5187. const val = height_export_parse(v, {
  5188. globalObject: this._global
  5189. });
  5190. if (typeof val === "string") {
  5191. const priority = this._priorities.get(height_local_var_property) ?? "";
  5192. this._setProperty(height_local_var_property, val, priority);
  5193. }
  5194. }
  5195. },
  5196. get() {
  5197. return this.getPropertyValue(height_local_var_property);
  5198. },
  5199. enumerable: true,
  5200. configurable: true
  5201. };
  5202. height_export_property = height_local_var_property;
  5203. var left_export_parse, left_export_definition, left_export_property;
  5204. const left_local_var_property = "left";
  5205. left_export_parse = (v, opt = {}) => {
  5206. const {
  5207. globalObject
  5208. } = opt;
  5209. if (v === "") {
  5210. return v;
  5211. }
  5212. const value = external_dependency_parsers_0.parsePropertyValue(left_local_var_property, v, {
  5213. globalObject,
  5214. inArray: true
  5215. });
  5216. if (Array.isArray(value) && value.length === 1) {
  5217. return external_dependency_parsers_0.resolveNumericValue(value, {
  5218. type: "length"
  5219. });
  5220. } else if (typeof value === "string") {
  5221. return value;
  5222. }
  5223. };
  5224. left_export_definition = {
  5225. set(v) {
  5226. v = external_dependency_parsers_0.prepareValue(v);
  5227. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5228. this._setProperty(left_local_var_property, v);
  5229. } else {
  5230. const val = left_export_parse(v, {
  5231. globalObject: this._global
  5232. });
  5233. if (typeof val === "string") {
  5234. const priority = this._priorities.get(left_local_var_property) ?? "";
  5235. this._setProperty(left_local_var_property, val, priority);
  5236. }
  5237. }
  5238. },
  5239. get() {
  5240. return this.getPropertyValue(left_local_var_property);
  5241. },
  5242. enumerable: true,
  5243. configurable: true
  5244. };
  5245. left_export_property = left_local_var_property;
  5246. var lightingColor_export_parse, lightingColor_export_definition, lightingColor_export_property;
  5247. const lightingColor_local_var_property = "lighting-color";
  5248. lightingColor_export_parse = (v, opt = {}) => {
  5249. const {
  5250. globalObject
  5251. } = opt;
  5252. if (v === "") {
  5253. return v;
  5254. }
  5255. const value = external_dependency_parsers_0.parsePropertyValue(lightingColor_local_var_property, v, {
  5256. globalObject,
  5257. inArray: true
  5258. });
  5259. if (Array.isArray(value) && value.length === 1) {
  5260. return external_dependency_parsers_0.resolveColorValue(value);
  5261. } else if (typeof value === "string") {
  5262. return value;
  5263. }
  5264. };
  5265. lightingColor_export_definition = {
  5266. set(v) {
  5267. v = external_dependency_parsers_0.prepareValue(v);
  5268. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5269. this._setProperty(lightingColor_local_var_property, v);
  5270. } else {
  5271. const val = lightingColor_export_parse(v, {
  5272. globalObject: this._global
  5273. });
  5274. if (typeof val === "string") {
  5275. const priority = this._priorities.get(lightingColor_local_var_property) ?? "";
  5276. this._setProperty(lightingColor_local_var_property, val, priority);
  5277. }
  5278. }
  5279. },
  5280. get() {
  5281. return this.getPropertyValue(lightingColor_local_var_property);
  5282. },
  5283. enumerable: true,
  5284. configurable: true
  5285. };
  5286. lightingColor_export_property = lightingColor_local_var_property;
  5287. var marginTop_export_position, marginTop_export_parse, marginTop_export_definition, marginTop_export_property;
  5288. const marginTop_local_var_property = "margin-top";
  5289. const marginTop_local_var_shorthand = "margin";
  5290. marginTop_export_position = "top";
  5291. marginTop_export_parse = (v, opt = {}) => {
  5292. const {
  5293. globalObject
  5294. } = opt;
  5295. if (v === "") {
  5296. return v;
  5297. }
  5298. const value = external_dependency_parsers_0.parsePropertyValue(marginTop_local_var_property, v, {
  5299. globalObject,
  5300. inArray: true
  5301. });
  5302. if (Array.isArray(value) && value.length === 1) {
  5303. return external_dependency_parsers_0.resolveNumericValue(value, {
  5304. type: "length"
  5305. });
  5306. } else if (typeof value === "string") {
  5307. return value;
  5308. }
  5309. };
  5310. marginTop_export_definition = {
  5311. set(v) {
  5312. v = external_dependency_parsers_0.prepareValue(v);
  5313. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5314. this._setProperty(marginTop_local_var_shorthand, "");
  5315. this._setProperty(marginTop_local_var_property, v);
  5316. } else {
  5317. const val = marginTop_export_parse(v, {
  5318. globalObject: this._global
  5319. });
  5320. if (typeof val === "string") {
  5321. const priority = !this._priorities.get(marginTop_local_var_shorthand) && this._priorities.has(marginTop_local_var_property) ? this._priorities.get(marginTop_local_var_property) : "";
  5322. this._positionLonghandSetter(marginTop_local_var_property, val, priority, marginTop_local_var_shorthand);
  5323. }
  5324. }
  5325. },
  5326. get() {
  5327. return this.getPropertyValue(marginTop_local_var_property);
  5328. },
  5329. enumerable: true,
  5330. configurable: true
  5331. };
  5332. marginTop_export_property = marginTop_local_var_property;
  5333. var marginRight_export_position, marginRight_export_parse, marginRight_export_definition, marginRight_export_property;
  5334. const marginRight_local_var_property = "margin-right";
  5335. const marginRight_local_var_shorthand = "margin";
  5336. marginRight_export_position = "right";
  5337. marginRight_export_parse = (v, opt = {}) => {
  5338. const {
  5339. globalObject
  5340. } = opt;
  5341. if (v === "") {
  5342. return v;
  5343. }
  5344. const value = external_dependency_parsers_0.parsePropertyValue(marginRight_local_var_property, v, {
  5345. globalObject,
  5346. inArray: true
  5347. });
  5348. if (Array.isArray(value) && value.length === 1) {
  5349. return external_dependency_parsers_0.resolveNumericValue(value, {
  5350. type: "length"
  5351. });
  5352. } else if (typeof value === "string") {
  5353. return value;
  5354. }
  5355. };
  5356. marginRight_export_definition = {
  5357. set(v) {
  5358. v = external_dependency_parsers_0.prepareValue(v);
  5359. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5360. this._setProperty(marginRight_local_var_shorthand, "");
  5361. this._setProperty(marginRight_local_var_property, v);
  5362. } else {
  5363. const val = marginRight_export_parse(v, {
  5364. globalObject: this._global
  5365. });
  5366. if (typeof val === "string") {
  5367. const priority = !this._priorities.get(marginRight_local_var_shorthand) && this._priorities.has(marginRight_local_var_property) ? this._priorities.get(marginRight_local_var_property) : "";
  5368. this._positionLonghandSetter(marginRight_local_var_property, val, priority, marginRight_local_var_shorthand);
  5369. }
  5370. }
  5371. },
  5372. get() {
  5373. return this.getPropertyValue(marginRight_local_var_property);
  5374. },
  5375. enumerable: true,
  5376. configurable: true
  5377. };
  5378. marginRight_export_property = marginRight_local_var_property;
  5379. var marginBottom_export_position, marginBottom_export_parse, marginBottom_export_definition, marginBottom_export_property;
  5380. const marginBottom_local_var_property = "margin-bottom";
  5381. const marginBottom_local_var_shorthand = "margin";
  5382. marginBottom_export_position = "bottom";
  5383. marginBottom_export_parse = (v, opt = {}) => {
  5384. const {
  5385. globalObject
  5386. } = opt;
  5387. if (v === "") {
  5388. return v;
  5389. }
  5390. const value = external_dependency_parsers_0.parsePropertyValue(marginBottom_local_var_property, v, {
  5391. globalObject,
  5392. inArray: true
  5393. });
  5394. if (Array.isArray(value) && value.length === 1) {
  5395. return external_dependency_parsers_0.resolveNumericValue(value, {
  5396. type: "length"
  5397. });
  5398. } else if (typeof value === "string") {
  5399. return value;
  5400. }
  5401. };
  5402. marginBottom_export_definition = {
  5403. set(v) {
  5404. v = external_dependency_parsers_0.prepareValue(v);
  5405. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5406. this._setProperty(marginBottom_local_var_shorthand, "");
  5407. this._setProperty(marginBottom_local_var_property, v);
  5408. } else {
  5409. const val = marginBottom_export_parse(v, {
  5410. globalObject: this._global
  5411. });
  5412. if (typeof val === "string") {
  5413. const priority = !this._priorities.get(marginBottom_local_var_shorthand) && this._priorities.has(marginBottom_local_var_property) ? this._priorities.get(marginBottom_local_var_property) : "";
  5414. this._positionLonghandSetter(marginBottom_local_var_property, val, priority, marginBottom_local_var_shorthand);
  5415. }
  5416. }
  5417. },
  5418. get() {
  5419. return this.getPropertyValue(marginBottom_local_var_property);
  5420. },
  5421. enumerable: true,
  5422. configurable: true
  5423. };
  5424. marginBottom_export_property = marginBottom_local_var_property;
  5425. var marginLeft_export_position, marginLeft_export_parse, marginLeft_export_definition, marginLeft_export_property;
  5426. const marginLeft_local_var_property = "margin-left";
  5427. const marginLeft_local_var_shorthand = "margin";
  5428. marginLeft_export_position = "left";
  5429. marginLeft_export_parse = (v, opt = {}) => {
  5430. const {
  5431. globalObject
  5432. } = opt;
  5433. if (v === "") {
  5434. return v;
  5435. }
  5436. const value = external_dependency_parsers_0.parsePropertyValue(marginLeft_local_var_property, v, {
  5437. globalObject,
  5438. inArray: true
  5439. });
  5440. if (Array.isArray(value) && value.length === 1) {
  5441. return external_dependency_parsers_0.resolveNumericValue(value, {
  5442. type: "length"
  5443. });
  5444. } else if (typeof value === "string") {
  5445. return value;
  5446. }
  5447. };
  5448. marginLeft_export_definition = {
  5449. set(v) {
  5450. v = external_dependency_parsers_0.prepareValue(v);
  5451. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5452. this._setProperty(marginLeft_local_var_shorthand, "");
  5453. this._setProperty(marginLeft_local_var_property, v);
  5454. } else {
  5455. const val = marginLeft_export_parse(v, {
  5456. globalObject: this._global
  5457. });
  5458. if (typeof val === "string") {
  5459. const priority = !this._priorities.get(marginLeft_local_var_shorthand) && this._priorities.has(marginLeft_local_var_property) ? this._priorities.get(marginLeft_local_var_property) : "";
  5460. this._positionLonghandSetter(marginLeft_local_var_property, val, priority, marginLeft_local_var_shorthand);
  5461. }
  5462. }
  5463. },
  5464. get() {
  5465. return this.getPropertyValue(marginLeft_local_var_property);
  5466. },
  5467. enumerable: true,
  5468. configurable: true
  5469. };
  5470. marginLeft_export_property = marginLeft_local_var_property;
  5471. var margin_export_position, margin_export_shorthandFor, margin_export_parse, margin_export_definition, margin_export_property;
  5472. const margin_local_var_property = "margin";
  5473. margin_export_position = "edges";
  5474. margin_export_shorthandFor = new Map([[{
  5475. position: marginTop_export_position,
  5476. parse: marginTop_export_parse,
  5477. definition: marginTop_export_definition,
  5478. property: marginTop_export_property
  5479. }.property, {
  5480. position: marginTop_export_position,
  5481. parse: marginTop_export_parse,
  5482. definition: marginTop_export_definition,
  5483. property: marginTop_export_property
  5484. }], [{
  5485. position: marginRight_export_position,
  5486. parse: marginRight_export_parse,
  5487. definition: marginRight_export_definition,
  5488. property: marginRight_export_property
  5489. }.property, {
  5490. position: marginRight_export_position,
  5491. parse: marginRight_export_parse,
  5492. definition: marginRight_export_definition,
  5493. property: marginRight_export_property
  5494. }], [{
  5495. position: marginBottom_export_position,
  5496. parse: marginBottom_export_parse,
  5497. definition: marginBottom_export_definition,
  5498. property: marginBottom_export_property
  5499. }.property, {
  5500. position: marginBottom_export_position,
  5501. parse: marginBottom_export_parse,
  5502. definition: marginBottom_export_definition,
  5503. property: marginBottom_export_property
  5504. }], [{
  5505. position: marginLeft_export_position,
  5506. parse: marginLeft_export_parse,
  5507. definition: marginLeft_export_definition,
  5508. property: marginLeft_export_property
  5509. }.property, {
  5510. position: marginLeft_export_position,
  5511. parse: marginLeft_export_parse,
  5512. definition: marginLeft_export_definition,
  5513. property: marginLeft_export_property
  5514. }]]);
  5515. margin_export_parse = (v, opt = {}) => {
  5516. const {
  5517. globalObject
  5518. } = opt;
  5519. if (v === "") {
  5520. return v;
  5521. }
  5522. const values = external_dependency_parsers_0.parsePropertyValue(margin_local_var_property, v, {
  5523. globalObject,
  5524. inArray: true
  5525. });
  5526. const parsedValues = [];
  5527. if (Array.isArray(values) && values.length) {
  5528. if (values.length > 4) {
  5529. return;
  5530. }
  5531. for (const value of values) {
  5532. const parsedValue = external_dependency_parsers_0.resolveNumericValue([value], {
  5533. length: values.length,
  5534. type: "length"
  5535. });
  5536. if (!parsedValue) {
  5537. return;
  5538. }
  5539. parsedValues.push(parsedValue);
  5540. }
  5541. } else if (typeof values === "string") {
  5542. parsedValues.push(values);
  5543. }
  5544. if (parsedValues.length) {
  5545. return parsedValues;
  5546. }
  5547. };
  5548. margin_export_definition = {
  5549. set(v) {
  5550. v = external_dependency_parsers_0.prepareValue(v);
  5551. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5552. for (const [longhand] of margin_export_shorthandFor) {
  5553. this._setProperty(longhand, "");
  5554. }
  5555. this._setProperty(margin_local_var_property, v);
  5556. } else {
  5557. const val = margin_export_parse(v, {
  5558. globalObject: this._global
  5559. });
  5560. if (Array.isArray(val) || typeof val === "string") {
  5561. const priority = this._priorities.get(margin_local_var_property) ?? "";
  5562. this._positionShorthandSetter(margin_local_var_property, val, priority);
  5563. }
  5564. }
  5565. },
  5566. get() {
  5567. return this.getPropertyValue(margin_local_var_property);
  5568. },
  5569. enumerable: true,
  5570. configurable: true
  5571. };
  5572. margin_export_property = margin_local_var_property;
  5573. var opacity_export_parse, opacity_export_definition, opacity_export_property;
  5574. const opacity_local_var_property = "opacity";
  5575. opacity_export_parse = (v, opt = {}) => {
  5576. const {
  5577. globalObject
  5578. } = opt;
  5579. if (v === "") {
  5580. return v;
  5581. }
  5582. const value = external_dependency_parsers_0.parsePropertyValue(opacity_local_var_property, v, {
  5583. globalObject,
  5584. inArray: true
  5585. });
  5586. if (Array.isArray(value) && value.length === 1) {
  5587. return external_dependency_parsers_0.resolveNumericValue(value, {
  5588. clamp: true
  5589. });
  5590. } else if (typeof value === "string") {
  5591. return value;
  5592. }
  5593. };
  5594. opacity_export_definition = {
  5595. set(v) {
  5596. v = external_dependency_parsers_0.prepareValue(v);
  5597. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5598. this._setProperty(opacity_local_var_property, v);
  5599. } else {
  5600. const val = opacity_export_parse(v, {
  5601. globalObject: this._global
  5602. });
  5603. if (typeof val === "string") {
  5604. const priority = this._priorities.get(opacity_local_var_property) ?? "";
  5605. this._setProperty(opacity_local_var_property, val, priority);
  5606. }
  5607. }
  5608. },
  5609. get() {
  5610. return this.getPropertyValue(opacity_local_var_property);
  5611. },
  5612. enumerable: true,
  5613. configurable: true
  5614. };
  5615. opacity_export_property = opacity_local_var_property;
  5616. var outlineColor_export_parse, outlineColor_export_definition, outlineColor_export_property;
  5617. const outlineColor_local_var_property = "outline-color";
  5618. outlineColor_export_parse = (v, opt = {}) => {
  5619. const {
  5620. globalObject
  5621. } = opt;
  5622. if (v === "") {
  5623. return v;
  5624. }
  5625. const value = external_dependency_parsers_0.parsePropertyValue(outlineColor_local_var_property, v, {
  5626. globalObject,
  5627. inArray: true
  5628. });
  5629. if (Array.isArray(value) && value.length === 1) {
  5630. return external_dependency_parsers_0.resolveColorValue(value);
  5631. } else if (typeof value === "string") {
  5632. return value;
  5633. }
  5634. };
  5635. outlineColor_export_definition = {
  5636. set(v) {
  5637. v = external_dependency_parsers_0.prepareValue(v);
  5638. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5639. this._setProperty(outlineColor_local_var_property, v);
  5640. } else {
  5641. const val = outlineColor_export_parse(v, {
  5642. globalObject: this._global
  5643. });
  5644. if (typeof val === "string") {
  5645. const priority = this._priorities.get(outlineColor_local_var_property) ?? "";
  5646. this._setProperty(outlineColor_local_var_property, val, priority);
  5647. }
  5648. }
  5649. },
  5650. get() {
  5651. return this.getPropertyValue(outlineColor_local_var_property);
  5652. },
  5653. enumerable: true,
  5654. configurable: true
  5655. };
  5656. outlineColor_export_property = outlineColor_local_var_property;
  5657. var paddingTop_export_position, paddingTop_export_parse, paddingTop_export_definition, paddingTop_export_property;
  5658. const paddingTop_local_var_property = "padding-top";
  5659. const paddingTop_local_var_shorthand = "padding";
  5660. paddingTop_export_position = "top";
  5661. paddingTop_export_parse = (v, opt = {}) => {
  5662. const {
  5663. globalObject
  5664. } = opt;
  5665. if (v === "") {
  5666. return v;
  5667. }
  5668. const value = external_dependency_parsers_0.parsePropertyValue(paddingTop_local_var_property, v, {
  5669. globalObject,
  5670. inArray: true
  5671. });
  5672. if (Array.isArray(value) && value.length === 1) {
  5673. return external_dependency_parsers_0.resolveNumericValue(value, {
  5674. min: 0,
  5675. type: "length"
  5676. });
  5677. } else if (typeof value === "string") {
  5678. return value;
  5679. }
  5680. };
  5681. paddingTop_export_definition = {
  5682. set(v) {
  5683. v = external_dependency_parsers_0.prepareValue(v);
  5684. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5685. this._setProperty(paddingTop_local_var_shorthand, "");
  5686. this._setProperty(paddingTop_local_var_property, v);
  5687. } else {
  5688. const val = paddingTop_export_parse(v, {
  5689. globalObject: this._global
  5690. });
  5691. if (typeof val === "string") {
  5692. const priority = !this._priorities.get(paddingTop_local_var_shorthand) && this._priorities.has(paddingTop_local_var_property) ? this._priorities.get(paddingTop_local_var_property) : "";
  5693. this._positionLonghandSetter(paddingTop_local_var_property, val, priority, paddingTop_local_var_shorthand);
  5694. }
  5695. }
  5696. },
  5697. get() {
  5698. return this.getPropertyValue(paddingTop_local_var_property);
  5699. },
  5700. enumerable: true,
  5701. configurable: true
  5702. };
  5703. paddingTop_export_property = paddingTop_local_var_property;
  5704. var paddingRight_export_position, paddingRight_export_parse, paddingRight_export_definition, paddingRight_export_property;
  5705. const paddingRight_local_var_property = "padding-right";
  5706. const paddingRight_local_var_shorthand = "padding";
  5707. paddingRight_export_position = "right";
  5708. paddingRight_export_parse = (v, opt = {}) => {
  5709. const {
  5710. globalObject
  5711. } = opt;
  5712. if (v === "") {
  5713. return v;
  5714. }
  5715. const value = external_dependency_parsers_0.parsePropertyValue(paddingRight_local_var_property, v, {
  5716. globalObject,
  5717. inArray: true
  5718. });
  5719. if (Array.isArray(value) && value.length === 1) {
  5720. return external_dependency_parsers_0.resolveNumericValue(value, {
  5721. min: 0,
  5722. type: "length"
  5723. });
  5724. } else if (typeof value === "string") {
  5725. return value;
  5726. }
  5727. };
  5728. paddingRight_export_definition = {
  5729. set(v) {
  5730. v = external_dependency_parsers_0.prepareValue(v);
  5731. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5732. this._setProperty(paddingRight_local_var_shorthand, "");
  5733. this._setProperty(paddingRight_local_var_property, v);
  5734. } else {
  5735. const val = paddingRight_export_parse(v, {
  5736. globalObject: this._global
  5737. });
  5738. if (typeof val === "string") {
  5739. const priority = !this._priorities.get(paddingRight_local_var_shorthand) && this._priorities.has(paddingRight_local_var_property) ? this._priorities.get(paddingRight_local_var_property) : "";
  5740. this._positionLonghandSetter(paddingRight_local_var_property, val, priority, paddingRight_local_var_shorthand);
  5741. }
  5742. }
  5743. },
  5744. get() {
  5745. return this.getPropertyValue(paddingRight_local_var_property);
  5746. },
  5747. enumerable: true,
  5748. configurable: true
  5749. };
  5750. paddingRight_export_property = paddingRight_local_var_property;
  5751. var paddingBottom_export_position, paddingBottom_export_parse, paddingBottom_export_definition, paddingBottom_export_property;
  5752. const paddingBottom_local_var_property = "padding-bottom";
  5753. const paddingBottom_local_var_shorthand = "padding";
  5754. paddingBottom_export_position = "bottom";
  5755. paddingBottom_export_parse = (v, opt = {}) => {
  5756. const {
  5757. globalObject
  5758. } = opt;
  5759. if (v === "") {
  5760. return v;
  5761. }
  5762. const value = external_dependency_parsers_0.parsePropertyValue(paddingBottom_local_var_property, v, {
  5763. globalObject,
  5764. inArray: true
  5765. });
  5766. if (Array.isArray(value) && value.length === 1) {
  5767. return external_dependency_parsers_0.resolveNumericValue(value, {
  5768. min: 0,
  5769. type: "length"
  5770. });
  5771. } else if (typeof value === "string") {
  5772. return value;
  5773. }
  5774. };
  5775. paddingBottom_export_definition = {
  5776. set(v) {
  5777. v = external_dependency_parsers_0.prepareValue(v);
  5778. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5779. this._setProperty(paddingBottom_local_var_shorthand, "");
  5780. this._setProperty(paddingBottom_local_var_property, v);
  5781. } else {
  5782. const val = paddingBottom_export_parse(v, {
  5783. globalObject: this._global
  5784. });
  5785. if (typeof val === "string") {
  5786. const priority = !this._priorities.get(paddingBottom_local_var_shorthand) && this._priorities.has(paddingBottom_local_var_property) ? this._priorities.get(paddingBottom_local_var_property) : "";
  5787. this._positionLonghandSetter(paddingBottom_local_var_property, val, priority, paddingBottom_local_var_shorthand);
  5788. }
  5789. }
  5790. },
  5791. get() {
  5792. return this.getPropertyValue(paddingBottom_local_var_property);
  5793. },
  5794. enumerable: true,
  5795. configurable: true
  5796. };
  5797. paddingBottom_export_property = paddingBottom_local_var_property;
  5798. var paddingLeft_export_position, paddingLeft_export_parse, paddingLeft_export_definition, paddingLeft_export_property;
  5799. const paddingLeft_local_var_property = "padding-left";
  5800. const paddingLeft_local_var_shorthand = "padding";
  5801. paddingLeft_export_position = "left";
  5802. paddingLeft_export_parse = (v, opt = {}) => {
  5803. const {
  5804. globalObject
  5805. } = opt;
  5806. if (v === "") {
  5807. return v;
  5808. }
  5809. const value = external_dependency_parsers_0.parsePropertyValue(paddingLeft_local_var_property, v, {
  5810. globalObject,
  5811. inArray: true
  5812. });
  5813. if (Array.isArray(value) && value.length === 1) {
  5814. return external_dependency_parsers_0.resolveNumericValue(value, {
  5815. min: 0,
  5816. type: "length"
  5817. });
  5818. } else if (typeof value === "string") {
  5819. return value;
  5820. }
  5821. };
  5822. paddingLeft_export_definition = {
  5823. set(v) {
  5824. v = external_dependency_parsers_0.prepareValue(v);
  5825. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5826. this._setProperty(paddingLeft_local_var_shorthand, "");
  5827. this._setProperty(paddingLeft_local_var_property, v);
  5828. } else {
  5829. const val = paddingLeft_export_parse(v, {
  5830. globalObject: this._global
  5831. });
  5832. if (typeof val === "string") {
  5833. const priority = !this._priorities.get(paddingLeft_local_var_shorthand) && this._priorities.has(paddingLeft_local_var_property) ? this._priorities.get(paddingLeft_local_var_property) : "";
  5834. this._positionLonghandSetter(paddingLeft_local_var_property, val, priority, paddingLeft_local_var_shorthand);
  5835. }
  5836. }
  5837. },
  5838. get() {
  5839. return this.getPropertyValue(paddingLeft_local_var_property);
  5840. },
  5841. enumerable: true,
  5842. configurable: true
  5843. };
  5844. paddingLeft_export_property = paddingLeft_local_var_property;
  5845. var padding_export_position, padding_export_shorthandFor, padding_export_parse, padding_export_definition, padding_export_property;
  5846. const padding_local_var_property = "padding";
  5847. padding_export_position = "edges";
  5848. padding_export_shorthandFor = new Map([[{
  5849. position: paddingTop_export_position,
  5850. parse: paddingTop_export_parse,
  5851. definition: paddingTop_export_definition,
  5852. property: paddingTop_export_property
  5853. }.property, {
  5854. position: paddingTop_export_position,
  5855. parse: paddingTop_export_parse,
  5856. definition: paddingTop_export_definition,
  5857. property: paddingTop_export_property
  5858. }], [{
  5859. position: paddingRight_export_position,
  5860. parse: paddingRight_export_parse,
  5861. definition: paddingRight_export_definition,
  5862. property: paddingRight_export_property
  5863. }.property, {
  5864. position: paddingRight_export_position,
  5865. parse: paddingRight_export_parse,
  5866. definition: paddingRight_export_definition,
  5867. property: paddingRight_export_property
  5868. }], [{
  5869. position: paddingBottom_export_position,
  5870. parse: paddingBottom_export_parse,
  5871. definition: paddingBottom_export_definition,
  5872. property: paddingBottom_export_property
  5873. }.property, {
  5874. position: paddingBottom_export_position,
  5875. parse: paddingBottom_export_parse,
  5876. definition: paddingBottom_export_definition,
  5877. property: paddingBottom_export_property
  5878. }], [{
  5879. position: paddingLeft_export_position,
  5880. parse: paddingLeft_export_parse,
  5881. definition: paddingLeft_export_definition,
  5882. property: paddingLeft_export_property
  5883. }.property, {
  5884. position: paddingLeft_export_position,
  5885. parse: paddingLeft_export_parse,
  5886. definition: paddingLeft_export_definition,
  5887. property: paddingLeft_export_property
  5888. }]]);
  5889. padding_export_parse = (v, opt = {}) => {
  5890. const {
  5891. globalObject
  5892. } = opt;
  5893. if (v === "") {
  5894. return v;
  5895. }
  5896. const values = external_dependency_parsers_0.parsePropertyValue(padding_local_var_property, v, {
  5897. globalObject,
  5898. inArray: true
  5899. });
  5900. const parsedValues = [];
  5901. if (Array.isArray(values) && values.length) {
  5902. if (values.length > 4) {
  5903. return;
  5904. }
  5905. for (const value of values) {
  5906. const parsedValue = external_dependency_parsers_0.resolveNumericValue([value], {
  5907. length: values.length,
  5908. min: 0,
  5909. type: "length"
  5910. });
  5911. if (!parsedValue) {
  5912. return;
  5913. }
  5914. parsedValues.push(parsedValue);
  5915. }
  5916. } else if (typeof values === "string") {
  5917. parsedValues.push(values);
  5918. }
  5919. if (parsedValues.length) {
  5920. return parsedValues;
  5921. }
  5922. };
  5923. padding_export_definition = {
  5924. set(v) {
  5925. v = external_dependency_parsers_0.prepareValue(v);
  5926. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5927. for (const [longhand] of padding_export_shorthandFor) {
  5928. this._setProperty(longhand, "");
  5929. }
  5930. this._setProperty(padding_local_var_property, v);
  5931. } else {
  5932. const val = padding_export_parse(v, {
  5933. globalObject: this._global
  5934. });
  5935. if (Array.isArray(val) || typeof val === "string") {
  5936. const priority = this._priorities.get(padding_local_var_property) ?? "";
  5937. this._positionShorthandSetter(padding_local_var_property, val, priority);
  5938. }
  5939. }
  5940. },
  5941. get() {
  5942. return this.getPropertyValue(padding_local_var_property);
  5943. },
  5944. enumerable: true,
  5945. configurable: true
  5946. };
  5947. padding_export_property = padding_local_var_property;
  5948. var right_export_parse, right_export_definition, right_export_property;
  5949. const right_local_var_property = "right";
  5950. right_export_parse = (v, opt = {}) => {
  5951. const {
  5952. globalObject
  5953. } = opt;
  5954. if (v === "") {
  5955. return v;
  5956. }
  5957. const value = external_dependency_parsers_0.parsePropertyValue(right_local_var_property, v, {
  5958. globalObject,
  5959. inArray: true
  5960. });
  5961. if (Array.isArray(value) && value.length === 1) {
  5962. return external_dependency_parsers_0.resolveNumericValue(value, {
  5963. type: "length"
  5964. });
  5965. } else if (typeof value === "string") {
  5966. return value;
  5967. }
  5968. };
  5969. right_export_definition = {
  5970. set(v) {
  5971. v = external_dependency_parsers_0.prepareValue(v);
  5972. if (external_dependency_parsers_0.hasVarFunc(v)) {
  5973. this._setProperty(right_local_var_property, v);
  5974. } else {
  5975. const val = right_export_parse(v, {
  5976. globalObject: this._global
  5977. });
  5978. if (typeof val === "string") {
  5979. const priority = this._priorities.get(right_local_var_property) ?? "";
  5980. this._setProperty(right_local_var_property, val, priority);
  5981. }
  5982. }
  5983. },
  5984. get() {
  5985. return this.getPropertyValue(right_local_var_property);
  5986. },
  5987. enumerable: true,
  5988. configurable: true
  5989. };
  5990. right_export_property = right_local_var_property;
  5991. var stopColor_export_parse, stopColor_export_definition, stopColor_export_property;
  5992. const stopColor_local_var_property = "stop-color";
  5993. stopColor_export_parse = (v, opt = {}) => {
  5994. const {
  5995. globalObject
  5996. } = opt;
  5997. if (v === "") {
  5998. return v;
  5999. }
  6000. const value = external_dependency_parsers_0.parsePropertyValue(stopColor_local_var_property, v, {
  6001. globalObject,
  6002. inArray: true
  6003. });
  6004. if (Array.isArray(value) && value.length === 1) {
  6005. return external_dependency_parsers_0.resolveColorValue(value);
  6006. } else if (typeof value === "string") {
  6007. return value;
  6008. }
  6009. };
  6010. stopColor_export_definition = {
  6011. set(v) {
  6012. v = external_dependency_parsers_0.prepareValue(v);
  6013. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6014. this._setProperty(stopColor_local_var_property, v);
  6015. } else {
  6016. const val = stopColor_export_parse(v, {
  6017. globalObject: this._global
  6018. });
  6019. if (typeof val === "string") {
  6020. const priority = this._priorities.get(stopColor_local_var_property) ?? "";
  6021. this._setProperty(stopColor_local_var_property, val, priority);
  6022. }
  6023. }
  6024. },
  6025. get() {
  6026. return this.getPropertyValue(stopColor_local_var_property);
  6027. },
  6028. enumerable: true,
  6029. configurable: true
  6030. };
  6031. stopColor_export_property = stopColor_local_var_property;
  6032. var top_export_parse, top_export_definition, top_export_property;
  6033. const top_local_var_property = "top";
  6034. top_export_parse = (v, opt = {}) => {
  6035. const {
  6036. globalObject
  6037. } = opt;
  6038. if (v === "") {
  6039. return v;
  6040. }
  6041. const value = external_dependency_parsers_0.parsePropertyValue(top_local_var_property, v, {
  6042. globalObject,
  6043. inArray: true
  6044. });
  6045. if (Array.isArray(value) && value.length === 1) {
  6046. return external_dependency_parsers_0.resolveNumericValue(value, {
  6047. type: "length"
  6048. });
  6049. } else if (typeof value === "string") {
  6050. return value;
  6051. }
  6052. };
  6053. top_export_definition = {
  6054. set(v) {
  6055. v = external_dependency_parsers_0.prepareValue(v);
  6056. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6057. this._setProperty(top_local_var_property, v);
  6058. } else {
  6059. const val = top_export_parse(v, {
  6060. globalObject: this._global
  6061. });
  6062. if (typeof val === "string") {
  6063. const priority = this._priorities.get(top_local_var_property) ?? "";
  6064. this._setProperty(top_local_var_property, val, priority);
  6065. }
  6066. }
  6067. },
  6068. get() {
  6069. return this.getPropertyValue(top_local_var_property);
  6070. },
  6071. enumerable: true,
  6072. configurable: true
  6073. };
  6074. top_export_property = top_local_var_property;
  6075. var webkitBorderAfterColor_export_parse, webkitBorderAfterColor_export_definition, webkitBorderAfterColor_export_property;
  6076. const webkitBorderAfterColor_local_var_property = "-webkit-border-after-color";
  6077. webkitBorderAfterColor_export_parse = (v, opt = {}) => {
  6078. const {
  6079. globalObject
  6080. } = opt;
  6081. if (v === "") {
  6082. return v;
  6083. }
  6084. const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderAfterColor_local_var_property, v, {
  6085. globalObject,
  6086. inArray: true
  6087. });
  6088. if (Array.isArray(value) && value.length === 1) {
  6089. return external_dependency_parsers_0.resolveColorValue(value);
  6090. } else if (typeof value === "string") {
  6091. return value;
  6092. }
  6093. };
  6094. webkitBorderAfterColor_export_definition = {
  6095. set(v) {
  6096. v = external_dependency_parsers_0.prepareValue(v);
  6097. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6098. this._setProperty(webkitBorderAfterColor_local_var_property, v);
  6099. } else {
  6100. const val = webkitBorderAfterColor_export_parse(v, {
  6101. globalObject: this._global
  6102. });
  6103. if (typeof val === "string") {
  6104. const priority = this._priorities.get(webkitBorderAfterColor_local_var_property) ?? "";
  6105. this._setProperty(webkitBorderAfterColor_local_var_property, val, priority);
  6106. }
  6107. }
  6108. },
  6109. get() {
  6110. return this.getPropertyValue(webkitBorderAfterColor_local_var_property);
  6111. },
  6112. enumerable: true,
  6113. configurable: true
  6114. };
  6115. webkitBorderAfterColor_export_property = webkitBorderAfterColor_local_var_property;
  6116. var webkitBorderBeforeColor_export_parse, webkitBorderBeforeColor_export_definition, webkitBorderBeforeColor_export_property;
  6117. const webkitBorderBeforeColor_local_var_property = "-webkit-border-before-color";
  6118. webkitBorderBeforeColor_export_parse = (v, opt = {}) => {
  6119. const {
  6120. globalObject
  6121. } = opt;
  6122. if (v === "") {
  6123. return v;
  6124. }
  6125. const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderBeforeColor_local_var_property, v, {
  6126. globalObject,
  6127. inArray: true
  6128. });
  6129. if (Array.isArray(value) && value.length === 1) {
  6130. return external_dependency_parsers_0.resolveColorValue(value);
  6131. } else if (typeof value === "string") {
  6132. return value;
  6133. }
  6134. };
  6135. webkitBorderBeforeColor_export_definition = {
  6136. set(v) {
  6137. v = external_dependency_parsers_0.prepareValue(v);
  6138. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6139. this._setProperty(webkitBorderBeforeColor_local_var_property, v);
  6140. } else {
  6141. const val = webkitBorderBeforeColor_export_parse(v, {
  6142. globalObject: this._global
  6143. });
  6144. if (typeof val === "string") {
  6145. const priority = this._priorities.get(webkitBorderBeforeColor_local_var_property) ?? "";
  6146. this._setProperty(webkitBorderBeforeColor_local_var_property, val, priority);
  6147. }
  6148. }
  6149. },
  6150. get() {
  6151. return this.getPropertyValue(webkitBorderBeforeColor_local_var_property);
  6152. },
  6153. enumerable: true,
  6154. configurable: true
  6155. };
  6156. webkitBorderBeforeColor_export_property = webkitBorderBeforeColor_local_var_property;
  6157. var webkitBorderEndColor_export_parse, webkitBorderEndColor_export_definition, webkitBorderEndColor_export_property;
  6158. const webkitBorderEndColor_local_var_property = "-webkit-border-end-color";
  6159. webkitBorderEndColor_export_parse = (v, opt = {}) => {
  6160. const {
  6161. globalObject
  6162. } = opt;
  6163. if (v === "") {
  6164. return v;
  6165. }
  6166. const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderEndColor_local_var_property, v, {
  6167. globalObject,
  6168. inArray: true
  6169. });
  6170. if (Array.isArray(value) && value.length === 1) {
  6171. return external_dependency_parsers_0.resolveColorValue(value);
  6172. } else if (typeof value === "string") {
  6173. return value;
  6174. }
  6175. };
  6176. webkitBorderEndColor_export_definition = {
  6177. set(v) {
  6178. v = external_dependency_parsers_0.prepareValue(v);
  6179. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6180. this._setProperty(webkitBorderEndColor_local_var_property, v);
  6181. } else {
  6182. const val = webkitBorderEndColor_export_parse(v, {
  6183. globalObject: this._global
  6184. });
  6185. if (typeof val === "string") {
  6186. const priority = this._priorities.get(webkitBorderEndColor_local_var_property) ?? "";
  6187. this._setProperty(webkitBorderEndColor_local_var_property, val, priority);
  6188. }
  6189. }
  6190. },
  6191. get() {
  6192. return this.getPropertyValue(webkitBorderEndColor_local_var_property);
  6193. },
  6194. enumerable: true,
  6195. configurable: true
  6196. };
  6197. webkitBorderEndColor_export_property = webkitBorderEndColor_local_var_property;
  6198. var webkitBorderStartColor_export_parse, webkitBorderStartColor_export_definition, webkitBorderStartColor_export_property;
  6199. const webkitBorderStartColor_local_var_property = "-webkit-border-start-color";
  6200. webkitBorderStartColor_export_parse = (v, opt = {}) => {
  6201. const {
  6202. globalObject
  6203. } = opt;
  6204. if (v === "") {
  6205. return v;
  6206. }
  6207. const value = external_dependency_parsers_0.parsePropertyValue(webkitBorderStartColor_local_var_property, v, {
  6208. globalObject,
  6209. inArray: true
  6210. });
  6211. if (Array.isArray(value) && value.length === 1) {
  6212. return external_dependency_parsers_0.resolveColorValue(value);
  6213. } else if (typeof value === "string") {
  6214. return value;
  6215. }
  6216. };
  6217. webkitBorderStartColor_export_definition = {
  6218. set(v) {
  6219. v = external_dependency_parsers_0.prepareValue(v);
  6220. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6221. this._setProperty(webkitBorderStartColor_local_var_property, v);
  6222. } else {
  6223. const val = webkitBorderStartColor_export_parse(v, {
  6224. globalObject: this._global
  6225. });
  6226. if (typeof val === "string") {
  6227. const priority = this._priorities.get(webkitBorderStartColor_local_var_property) ?? "";
  6228. this._setProperty(webkitBorderStartColor_local_var_property, val, priority);
  6229. }
  6230. }
  6231. },
  6232. get() {
  6233. return this.getPropertyValue(webkitBorderStartColor_local_var_property);
  6234. },
  6235. enumerable: true,
  6236. configurable: true
  6237. };
  6238. webkitBorderStartColor_export_property = webkitBorderStartColor_local_var_property;
  6239. var webkitColumnRuleColor_export_parse, webkitColumnRuleColor_export_definition, webkitColumnRuleColor_export_property;
  6240. const webkitColumnRuleColor_local_var_property = "-webkit-column-rule-color";
  6241. webkitColumnRuleColor_export_parse = (v, opt = {}) => {
  6242. const {
  6243. globalObject
  6244. } = opt;
  6245. if (v === "") {
  6246. return v;
  6247. }
  6248. const value = external_dependency_parsers_0.parsePropertyValue(webkitColumnRuleColor_local_var_property, v, {
  6249. globalObject,
  6250. inArray: true
  6251. });
  6252. if (Array.isArray(value) && value.length === 1) {
  6253. return external_dependency_parsers_0.resolveColorValue(value);
  6254. } else if (typeof value === "string") {
  6255. return value;
  6256. }
  6257. };
  6258. webkitColumnRuleColor_export_definition = {
  6259. set(v) {
  6260. v = external_dependency_parsers_0.prepareValue(v);
  6261. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6262. this._setProperty(webkitColumnRuleColor_local_var_property, v);
  6263. } else {
  6264. const val = webkitColumnRuleColor_export_parse(v, {
  6265. globalObject: this._global
  6266. });
  6267. if (typeof val === "string") {
  6268. const priority = this._priorities.get(webkitColumnRuleColor_local_var_property) ?? "";
  6269. this._setProperty(webkitColumnRuleColor_local_var_property, val, priority);
  6270. }
  6271. }
  6272. },
  6273. get() {
  6274. return this.getPropertyValue(webkitColumnRuleColor_local_var_property);
  6275. },
  6276. enumerable: true,
  6277. configurable: true
  6278. };
  6279. webkitColumnRuleColor_export_property = webkitColumnRuleColor_local_var_property;
  6280. var webkitTapHighlightColor_export_parse, webkitTapHighlightColor_export_definition, webkitTapHighlightColor_export_property;
  6281. const webkitTapHighlightColor_local_var_property = "-webkit-tap-highlight-color";
  6282. webkitTapHighlightColor_export_parse = (v, opt = {}) => {
  6283. const {
  6284. globalObject
  6285. } = opt;
  6286. if (v === "") {
  6287. return v;
  6288. }
  6289. const value = external_dependency_parsers_0.parsePropertyValue(webkitTapHighlightColor_local_var_property, v, {
  6290. globalObject,
  6291. inArray: true
  6292. });
  6293. if (Array.isArray(value) && value.length === 1) {
  6294. return external_dependency_parsers_0.resolveColorValue(value);
  6295. } else if (typeof value === "string") {
  6296. return value;
  6297. }
  6298. };
  6299. webkitTapHighlightColor_export_definition = {
  6300. set(v) {
  6301. v = external_dependency_parsers_0.prepareValue(v);
  6302. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6303. this._setProperty(webkitTapHighlightColor_local_var_property, v);
  6304. } else {
  6305. const val = webkitTapHighlightColor_export_parse(v, {
  6306. globalObject: this._global
  6307. });
  6308. if (typeof val === "string") {
  6309. const priority = this._priorities.get(webkitTapHighlightColor_local_var_property) ?? "";
  6310. this._setProperty(webkitTapHighlightColor_local_var_property, val, priority);
  6311. }
  6312. }
  6313. },
  6314. get() {
  6315. return this.getPropertyValue(webkitTapHighlightColor_local_var_property);
  6316. },
  6317. enumerable: true,
  6318. configurable: true
  6319. };
  6320. webkitTapHighlightColor_export_property = webkitTapHighlightColor_local_var_property;
  6321. var webkitTextEmphasisColor_export_parse, webkitTextEmphasisColor_export_definition, webkitTextEmphasisColor_export_property;
  6322. const webkitTextEmphasisColor_local_var_property = "-webkit-text-emphasis-color";
  6323. webkitTextEmphasisColor_export_parse = (v, opt = {}) => {
  6324. const {
  6325. globalObject
  6326. } = opt;
  6327. if (v === "") {
  6328. return v;
  6329. }
  6330. const value = external_dependency_parsers_0.parsePropertyValue(webkitTextEmphasisColor_local_var_property, v, {
  6331. globalObject,
  6332. inArray: true
  6333. });
  6334. if (Array.isArray(value) && value.length === 1) {
  6335. return external_dependency_parsers_0.resolveColorValue(value);
  6336. } else if (typeof value === "string") {
  6337. return value;
  6338. }
  6339. };
  6340. webkitTextEmphasisColor_export_definition = {
  6341. set(v) {
  6342. v = external_dependency_parsers_0.prepareValue(v);
  6343. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6344. this._setProperty(webkitTextEmphasisColor_local_var_property, v);
  6345. } else {
  6346. const val = webkitTextEmphasisColor_export_parse(v, {
  6347. globalObject: this._global
  6348. });
  6349. if (typeof val === "string") {
  6350. const priority = this._priorities.get(webkitTextEmphasisColor_local_var_property) ?? "";
  6351. this._setProperty(webkitTextEmphasisColor_local_var_property, val, priority);
  6352. }
  6353. }
  6354. },
  6355. get() {
  6356. return this.getPropertyValue(webkitTextEmphasisColor_local_var_property);
  6357. },
  6358. enumerable: true,
  6359. configurable: true
  6360. };
  6361. webkitTextEmphasisColor_export_property = webkitTextEmphasisColor_local_var_property;
  6362. var webkitTextFillColor_export_parse, webkitTextFillColor_export_definition, webkitTextFillColor_export_property;
  6363. const webkitTextFillColor_local_var_property = "-webkit-text-fill-color";
  6364. webkitTextFillColor_export_parse = (v, opt = {}) => {
  6365. const {
  6366. globalObject
  6367. } = opt;
  6368. if (v === "") {
  6369. return v;
  6370. }
  6371. const value = external_dependency_parsers_0.parsePropertyValue(webkitTextFillColor_local_var_property, v, {
  6372. globalObject,
  6373. inArray: true
  6374. });
  6375. if (Array.isArray(value) && value.length === 1) {
  6376. return external_dependency_parsers_0.resolveColorValue(value);
  6377. } else if (typeof value === "string") {
  6378. return value;
  6379. }
  6380. };
  6381. webkitTextFillColor_export_definition = {
  6382. set(v) {
  6383. v = external_dependency_parsers_0.prepareValue(v);
  6384. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6385. this._setProperty(webkitTextFillColor_local_var_property, v);
  6386. } else {
  6387. const val = webkitTextFillColor_export_parse(v, {
  6388. globalObject: this._global
  6389. });
  6390. if (typeof val === "string") {
  6391. const priority = this._priorities.get(webkitTextFillColor_local_var_property) ?? "";
  6392. this._setProperty(webkitTextFillColor_local_var_property, val, priority);
  6393. }
  6394. }
  6395. },
  6396. get() {
  6397. return this.getPropertyValue(webkitTextFillColor_local_var_property);
  6398. },
  6399. enumerable: true,
  6400. configurable: true
  6401. };
  6402. webkitTextFillColor_export_property = webkitTextFillColor_local_var_property;
  6403. var webkitTextStrokeColor_export_parse, webkitTextStrokeColor_export_definition, webkitTextStrokeColor_export_property;
  6404. const webkitTextStrokeColor_local_var_property = "-webkit-text-stroke-color";
  6405. webkitTextStrokeColor_export_parse = (v, opt = {}) => {
  6406. const {
  6407. globalObject
  6408. } = opt;
  6409. if (v === "") {
  6410. return v;
  6411. }
  6412. const value = external_dependency_parsers_0.parsePropertyValue(webkitTextStrokeColor_local_var_property, v, {
  6413. globalObject,
  6414. inArray: true
  6415. });
  6416. if (Array.isArray(value) && value.length === 1) {
  6417. return external_dependency_parsers_0.resolveColorValue(value);
  6418. } else if (typeof value === "string") {
  6419. return value;
  6420. }
  6421. };
  6422. webkitTextStrokeColor_export_definition = {
  6423. set(v) {
  6424. v = external_dependency_parsers_0.prepareValue(v);
  6425. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6426. this._setProperty(webkitTextStrokeColor_local_var_property, v);
  6427. } else {
  6428. const val = webkitTextStrokeColor_export_parse(v, {
  6429. globalObject: this._global
  6430. });
  6431. if (typeof val === "string") {
  6432. const priority = this._priorities.get(webkitTextStrokeColor_local_var_property) ?? "";
  6433. this._setProperty(webkitTextStrokeColor_local_var_property, val, priority);
  6434. }
  6435. }
  6436. },
  6437. get() {
  6438. return this.getPropertyValue(webkitTextStrokeColor_local_var_property);
  6439. },
  6440. enumerable: true,
  6441. configurable: true
  6442. };
  6443. webkitTextStrokeColor_export_property = webkitTextStrokeColor_local_var_property;
  6444. var width_export_parse, width_export_definition, width_export_property;
  6445. const width_local_var_property = "width";
  6446. width_export_parse = (v, opt = {}) => {
  6447. const {
  6448. globalObject
  6449. } = opt;
  6450. if (v === "") {
  6451. return v;
  6452. }
  6453. const value = external_dependency_parsers_0.parsePropertyValue(width_local_var_property, v, {
  6454. globalObject,
  6455. inArray: true
  6456. });
  6457. if (Array.isArray(value) && value.length === 1) {
  6458. return external_dependency_parsers_0.resolveNumericValue(value, {
  6459. min: 0,
  6460. type: "length"
  6461. });
  6462. } else if (typeof value === "string") {
  6463. return value;
  6464. }
  6465. };
  6466. width_export_definition = {
  6467. set(v) {
  6468. v = external_dependency_parsers_0.prepareValue(v);
  6469. if (external_dependency_parsers_0.hasVarFunc(v)) {
  6470. this._setProperty(width_local_var_property, v);
  6471. } else {
  6472. const val = width_export_parse(v, {
  6473. globalObject: this._global
  6474. });
  6475. if (typeof val === "string") {
  6476. const priority = this._priorities.get(width_local_var_property) ?? "";
  6477. this._setProperty(width_local_var_property, val, priority);
  6478. }
  6479. }
  6480. },
  6481. get() {
  6482. return this.getPropertyValue(width_local_var_property);
  6483. },
  6484. enumerable: true,
  6485. configurable: true
  6486. };
  6487. width_export_property = width_local_var_property;
  6488. module.exports = {
  6489. backgroundImage: backgroundImage_export_definition,
  6490. "background-image": backgroundImage_export_definition,
  6491. backgroundPosition: backgroundPosition_export_definition,
  6492. "background-position": backgroundPosition_export_definition,
  6493. backgroundSize: backgroundSize_export_definition,
  6494. "background-size": backgroundSize_export_definition,
  6495. backgroundRepeat: backgroundRepeat_export_definition,
  6496. "background-repeat": backgroundRepeat_export_definition,
  6497. backgroundOrigin: backgroundOrigin_export_definition,
  6498. "background-origin": backgroundOrigin_export_definition,
  6499. backgroundClip: backgroundClip_export_definition,
  6500. "background-clip": backgroundClip_export_definition,
  6501. backgroundAttachment: backgroundAttachment_export_definition,
  6502. "background-attachment": backgroundAttachment_export_definition,
  6503. backgroundColor: backgroundColor_export_definition,
  6504. "background-color": backgroundColor_export_definition,
  6505. background: background_export_definition,
  6506. borderTopWidth: borderTopWidth_export_definition,
  6507. "border-top-width": borderTopWidth_export_definition,
  6508. borderRightWidth: borderRightWidth_export_definition,
  6509. "border-right-width": borderRightWidth_export_definition,
  6510. borderBottomWidth: borderBottomWidth_export_definition,
  6511. "border-bottom-width": borderBottomWidth_export_definition,
  6512. borderLeftWidth: borderLeftWidth_export_definition,
  6513. "border-left-width": borderLeftWidth_export_definition,
  6514. borderWidth: borderWidth_export_definition,
  6515. "border-width": borderWidth_export_definition,
  6516. borderTopStyle: borderTopStyle_export_definition,
  6517. "border-top-style": borderTopStyle_export_definition,
  6518. borderRightStyle: borderRightStyle_export_definition,
  6519. "border-right-style": borderRightStyle_export_definition,
  6520. borderBottomStyle: borderBottomStyle_export_definition,
  6521. "border-bottom-style": borderBottomStyle_export_definition,
  6522. borderLeftStyle: borderLeftStyle_export_definition,
  6523. "border-left-style": borderLeftStyle_export_definition,
  6524. borderStyle: borderStyle_export_definition,
  6525. "border-style": borderStyle_export_definition,
  6526. borderTopColor: borderTopColor_export_definition,
  6527. "border-top-color": borderTopColor_export_definition,
  6528. borderRightColor: borderRightColor_export_definition,
  6529. "border-right-color": borderRightColor_export_definition,
  6530. borderBottomColor: borderBottomColor_export_definition,
  6531. "border-bottom-color": borderBottomColor_export_definition,
  6532. borderLeftColor: borderLeftColor_export_definition,
  6533. "border-left-color": borderLeftColor_export_definition,
  6534. borderColor: borderColor_export_definition,
  6535. "border-color": borderColor_export_definition,
  6536. borderTop: borderTop_export_definition,
  6537. "border-top": borderTop_export_definition,
  6538. borderRight: borderRight_export_definition,
  6539. "border-right": borderRight_export_definition,
  6540. borderBottom: borderBottom_export_definition,
  6541. "border-bottom": borderBottom_export_definition,
  6542. borderLeft: borderLeft_export_definition,
  6543. "border-left": borderLeft_export_definition,
  6544. border: border_export_definition,
  6545. borderCollapse: borderCollapse_export_definition,
  6546. "border-collapse": borderCollapse_export_definition,
  6547. borderSpacing: borderSpacing_export_definition,
  6548. "border-spacing": borderSpacing_export_definition,
  6549. bottom: bottom_export_definition,
  6550. clear: clear_export_definition,
  6551. clip: clip_export_definition,
  6552. color: color_export_definition,
  6553. display: display_export_definition,
  6554. flexGrow: flexGrow_export_definition,
  6555. "flex-grow": flexGrow_export_definition,
  6556. flexShrink: flexShrink_export_definition,
  6557. "flex-shrink": flexShrink_export_definition,
  6558. flexBasis: flexBasis_export_definition,
  6559. "flex-basis": flexBasis_export_definition,
  6560. flex: flex_export_definition,
  6561. float: float_export_definition,
  6562. floodColor: floodColor_export_definition,
  6563. "flood-color": floodColor_export_definition,
  6564. fontStyle: fontStyle_export_definition,
  6565. "font-style": fontStyle_export_definition,
  6566. fontVariant: fontVariant_export_definition,
  6567. "font-variant": fontVariant_export_definition,
  6568. fontWeight: fontWeight_export_definition,
  6569. "font-weight": fontWeight_export_definition,
  6570. fontSize: fontSize_export_definition,
  6571. "font-size": fontSize_export_definition,
  6572. lineHeight: lineHeight_export_definition,
  6573. "line-height": lineHeight_export_definition,
  6574. fontFamily: fontFamily_export_definition,
  6575. "font-family": fontFamily_export_definition,
  6576. font: font_export_definition,
  6577. height: height_export_definition,
  6578. left: left_export_definition,
  6579. lightingColor: lightingColor_export_definition,
  6580. "lighting-color": lightingColor_export_definition,
  6581. marginTop: marginTop_export_definition,
  6582. "margin-top": marginTop_export_definition,
  6583. marginRight: marginRight_export_definition,
  6584. "margin-right": marginRight_export_definition,
  6585. marginBottom: marginBottom_export_definition,
  6586. "margin-bottom": marginBottom_export_definition,
  6587. marginLeft: marginLeft_export_definition,
  6588. "margin-left": marginLeft_export_definition,
  6589. margin: margin_export_definition,
  6590. opacity: opacity_export_definition,
  6591. outlineColor: outlineColor_export_definition,
  6592. "outline-color": outlineColor_export_definition,
  6593. paddingTop: paddingTop_export_definition,
  6594. "padding-top": paddingTop_export_definition,
  6595. paddingRight: paddingRight_export_definition,
  6596. "padding-right": paddingRight_export_definition,
  6597. paddingBottom: paddingBottom_export_definition,
  6598. "padding-bottom": paddingBottom_export_definition,
  6599. paddingLeft: paddingLeft_export_definition,
  6600. "padding-left": paddingLeft_export_definition,
  6601. padding: padding_export_definition,
  6602. right: right_export_definition,
  6603. stopColor: stopColor_export_definition,
  6604. "stop-color": stopColor_export_definition,
  6605. top: top_export_definition,
  6606. webkitBorderAfterColor: webkitBorderAfterColor_export_definition,
  6607. "-webkit-border-after-color": webkitBorderAfterColor_export_definition,
  6608. "WebkitBorderAfterColor": webkitBorderAfterColor_export_definition,
  6609. webkitBorderBeforeColor: webkitBorderBeforeColor_export_definition,
  6610. "-webkit-border-before-color": webkitBorderBeforeColor_export_definition,
  6611. "WebkitBorderBeforeColor": webkitBorderBeforeColor_export_definition,
  6612. webkitBorderEndColor: webkitBorderEndColor_export_definition,
  6613. "-webkit-border-end-color": webkitBorderEndColor_export_definition,
  6614. "WebkitBorderEndColor": webkitBorderEndColor_export_definition,
  6615. webkitBorderStartColor: webkitBorderStartColor_export_definition,
  6616. "-webkit-border-start-color": webkitBorderStartColor_export_definition,
  6617. "WebkitBorderStartColor": webkitBorderStartColor_export_definition,
  6618. webkitColumnRuleColor: webkitColumnRuleColor_export_definition,
  6619. "-webkit-column-rule-color": webkitColumnRuleColor_export_definition,
  6620. "WebkitColumnRuleColor": webkitColumnRuleColor_export_definition,
  6621. webkitTapHighlightColor: webkitTapHighlightColor_export_definition,
  6622. "-webkit-tap-highlight-color": webkitTapHighlightColor_export_definition,
  6623. "WebkitTapHighlightColor": webkitTapHighlightColor_export_definition,
  6624. webkitTextEmphasisColor: webkitTextEmphasisColor_export_definition,
  6625. "-webkit-text-emphasis-color": webkitTextEmphasisColor_export_definition,
  6626. "WebkitTextEmphasisColor": webkitTextEmphasisColor_export_definition,
  6627. webkitTextFillColor: webkitTextFillColor_export_definition,
  6628. "-webkit-text-fill-color": webkitTextFillColor_export_definition,
  6629. "WebkitTextFillColor": webkitTextFillColor_export_definition,
  6630. webkitTextStrokeColor: webkitTextStrokeColor_export_definition,
  6631. "-webkit-text-stroke-color": webkitTextStrokeColor_export_definition,
  6632. "WebkitTextStrokeColor": webkitTextStrokeColor_export_definition,
  6633. width: width_export_definition
  6634. };