Paint Proxy

Replace any paint you want!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Paint Proxy
// @namespace    Paint Proxy
// @version      0.1
// @description  Replace any paint you want!
// @author       wealthydev
// @match        *://tankionline.com/play/
// @run-at       document-start
// @license      MIT
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tankionline.com
// @grant        none
// ==/UserScript==

(function() {
    let paints_ = {Yellow:{webp:"610/51510/310/171/30545000607204",rarity:"Common",src:"610/51510/306/262/30665403031674"},White:{webp:"0/0/345/317/30545000607502",rarity:"Common",src:"0/0/346/31/30665403002077"},Violet:{webp:"610/51510/145/53/30545000607357",rarity:"Common",src:"610/51510/143/147/30665402752466"},Red:{webp:"610/51507/325/163/30545000606625",rarity:"Common",src:"610/51507/323/254/30665402716674"},Orange:{webp:"610/51507/145/136/30545000607100",rarity:"Common",src:"610/51507/143/230/30665402661542"},Mustard:{webp:"615/77267/341/375/30660323773566",rarity:"Common",src:"615/77267/340/1/30665402622031"},Metallic:{webp:"0/0/345/311/30545000605127",rarity:"Common",src:"0/0/346/23/30665402552347"},Maroon:{webp:"0/0/345/314/30545000606635",rarity:"Common",src:"0/0/346/26/30665402464532"},Gold:{webp:"610/51507/23/220/30545000606776",rarity:"Common",src:"610/51507/21/304/30665402346630"},Fuchsia:{webp:"610/51506/123/64/30545000607075",rarity:"Common",src:"610/51506/121/154/30665402257565"},Coral:{webp:"610/51505/270/232/30545000607452",rarity:"Common",src:"610/51505/266/323/30665402212314"},Calm:{webp:"615/77267/166/44/30660323745713",rarity:"Common",src:"615/77267/164/54/30665402113242"},Blueness:{webp:"610/51504/137/145/30545000606503",rarity:"Common",src:"610/51504/135/233/30665401712275"},Blue:{webp:"610/51505/40/77/30545000606404",rarity:"Common",src:"610/51505/36/167/30665402033526"},Black:{webp:"0/0/332/373/30545000606672",rarity:"Common",src:"0/0/345/373/30665401773004"},Aquamarine:{webp:"610/51503/310/365/30545000606240",rarity:"Common",src:"610/51503/307/55/30665401622061"},Apple:{webp:"610/51502/260/102/30545000607557",rarity:"Common",src:"610/51502/256/167/30665401302161"},Winter:{webp:"0/114/122/102/30545000607276",rarity:"Uncommon",src:"0/114/122/100/27006222106152"},Wales:{webp:"0/16722/350/357/30545000607000",rarity:"Uncommon",src:"0/16722/350/354/27006221213145"},Vortex:{webp:"0/16722/56/175/30545000606567",rarity:"Uncommon",src:"0/16722/56/160/27006222456766"},Uruguay:{webp:"0/16721/126/71/30545000606647",rarity:"Uncommon",src:"0/16721/126/70/27006222004747"},USA:{webp:"0/16721/126/73/30545000606511",rarity:"Uncommon",src:"0/16721/126/72/27006222033122"},Tunisia:{webp:"544/1033/75/236/30545000607202",rarity:"Uncommon",src:"544/1033/75/237/27006221667405"},Tundra:{webp:"0/114/122/101/30545000606211",rarity:"Uncommon",src:"0/114/122/77/27006221506670"},Taiga:{webp:"0/114/144/24/30545000606313",rarity:"Uncommon",src:"0/114/144/23/27006222217203"},Switzerland:{webp:"0/16721/126/67/30545000606313",rarity:"Uncommon",src:"0/16721/126/66/27006221631660"},Sweden:{webp:"544/1033/66/241/30545000607345",rarity:"Uncommon",src:"544/1033/66/242/27006222601243"},Swash:{webp:"0/114/143/51/30545000607211",rarity:"Uncommon",src:"0/114/143/23/27006222577770"},Swamp:{webp:"0/114/122/52/30545000606151",rarity:"Uncommon",src:"0/114/122/53/27006222460710"},Storm:{webp:"0/114/143/112/30545000606104",rarity:"Uncommon",src:"0/114/143/73/27006221272003"},Spain:{webp:"0/16721/125/207/30545000605530",rarity:"Uncommon",src:"0/16721/125/206/27006221142657"},Serbia:{webp:"544/1033/66/66/30545000605756",rarity:"Uncommon",src:"544/1033/66/67/27006222401466"},Senegal:{webp:"544/1033/65/311/30545000607171",rarity:"Uncommon",src:"544/1033/65/312/27006222166500"},"Saudi Arabia":{webp:"544/1033/65/137/30545000607222",rarity:"Uncommon",src:"544/1033/65/140/27006221511544"},Sandstone:{webp:"0/114/144/26/30545000607301",rarity:"Uncommon",src:"0/114/144/7/27006221241430"},Rustle:{webp:"0/114/143/106/30545000606431",rarity:"Uncommon",src:"0/114/143/67/27006221553372"},Russia:{webp:"0/16721/126/65/30545000607105",rarity:"Uncommon",src:"0/16721/126/64/27006221215215"},Rock:{webp:"0/114/144/27/30545000606312",rarity:"Uncommon",src:"0/114/144/6/27006222130055"},"Red Urban":{webp:"0/16723/6/14/30545000606071",rarity:"Uncommon",src:"0/16723/6/7/27006222201062"},Portugal:{webp:"0/16721/126/63/30545000606254",rarity:"Uncommon",src:"0/16721/126/62/27006221146053"},Poland:{webp:"0/16722/350/356/30545000605703",rarity:"Uncommon",src:"0/16722/350/353/27006221510102"},Picasso:{webp:"0/114/164/75/30545000606717",rarity:"Uncommon",src:"0/114/164/74/27006221724642"},Peru:{webp:"544/1050/246/162/30545000605552",rarity:"Uncommon",src:"544/1050/246/163/27006221736722"},Panama:{webp:"544/1033/64/360/30545000606721",rarity:"Uncommon",src:"544/1033/64/361/27006221563516"},Nigeria:{webp:"0/16721/126/61/30545000606503",rarity:"Uncommon",src:"0/16721/126/60/27006222514632"},Netherlands:{webp:"0/16721/126/57/30545000607311",rarity:"Uncommon",src:"0/16721/126/56/27006221576723"},Needle:{webp:"0/114/164/76/30545000605431",rarity:"Uncommon",src:"0/114/164/73/27006221641671"},Morocco:{webp:"544/1033/64/160/30545000606441",rarity:"Uncommon",src:"544/1033/64/161/27006221373010"},Mexico:{webp:"0/16721/125/227/30545000607442",rarity:"Uncommon",src:"0/16721/125/226/27006221060550"},Mars:{webp:"0/16722/35/5/30545000607042",rarity:"Uncommon",src:"0/16722/35/14/27006221161746"},Marine:{webp:"0/114/114/100/30545000606524",rarity:"Uncommon",src:"0/114/114/117/27006222147205"},Magma:{webp:"0/16722/35/4/30545000607012",rarity:"Uncommon",src:"0/16722/35/13/27006222126710"},Loam:{webp:"0/114/143/107/30545000607441",rarity:"Uncommon",src:"0/114/143/70/27006221307720"},"Korea Republic":{webp:"0/16721/125/221/30545000607375",rarity:"Uncommon",src:"0/16721/125/220/27006221257427"},Japan:{webp:"0/16721/125/213/30545000606641",rarity:"Uncommon",src:"0/16721/125/212/27006222346221"},Jade:{webp:"0/114/164/111/30545000606253",rarity:"Uncommon",src:"0/114/164/72/27006221465341"},"Ivory Coast":{webp:"0/16721/125/225/30545000606564",rarity:"Uncommon",src:"0/16721/125/224/27006221674504"},Italy:{webp:"0/16721/125/211/30545000607513",rarity:"Uncommon",src:"0/16721/125/210/27006222014263"},Iceland:{webp:"0/16722/350/355/30545000606721",rarity:"Uncommon",src:"0/16722/350/352/27006222353264"},"IR Iran":{webp:"0/16721/125/205/30545000607132",rarity:"Uncommon",src:"0/16721/125/204/27006222120136"},Honduras:{webp:"0/16721/125/177/30545000607207",rarity:"Uncommon",src:"0/16721/125/176/27006221546404"},Guerrilla:{webp:"0/16722/56/166/30545000607467",rarity:"Uncommon",src:"0/16722/56/152/27006221620055"},Greece:{webp:"0/16721/125/201/30545000606136",rarity:"Uncommon",src:"0/16721/125/200/27006221464623"},Grasslands:{webp:"0/16723/6/15/30545000606777",rarity:"Uncommon",src:"0/16723/6/10/27006221675320"},Ghana:{webp:"0/16721/125/173/30545000605713",rarity:"Uncommon",src:"0/16721/125/172/27006221307140"},Germany:{webp:"0/16721/125/175/30545000606327",rarity:"Uncommon",src:"0/16721/125/174/27006222535410"},France:{webp:"0/16721/125/171/30545000606654",rarity:"Uncommon",src:"0/16721/125/170/27006221752115"},Fracture:{webp:"0/16722/56/164/30545000607017",rarity:"Uncommon",src:"0/16722/56/150/27006221160055"},Forester:{webp:"0/0/333/1/30545000605414",rarity:"Uncommon",src:"0/0/346/4/27006221360532"},Flora:{webp:"0/0/332/370/30545000607415",rarity:"Uncommon",src:"0/0/346/1/27006222172671"},England:{webp:"0/16721/125/151/30545000607121",rarity:"Uncommon",src:"0/16721/125/150/27006221756432"},Egypt:{webp:"544/1033/63/340/30545000606027",rarity:"Uncommon",src:"544/1033/63/341/27006222504372"},Ecuador:{webp:"0/16721/125/167/30545000606656",rarity:"Uncommon",src:"0/16721/125/165/27006222235063"},Dirty:{webp:"0/114/122/55/30545000606036",rarity:"Uncommon",src:"0/114/122/54/27006222004654"},Denmark:{webp:"544/1032/215/315/30545000606131",rarity:"Uncommon",src:"544/1032/215/327/27006221457743"},Croatia:{webp:"0/16721/125/203/30545000607535",rarity:"Uncommon",src:"0/16721/125/202/27006222447436"},"Costa Rica":{webp:"0/16721/125/223/30545000607440",rarity:"Uncommon",src:"0/16721/125/222/27006221621643"},Corrosion:{webp:"0/114/143/110/30545000606651",rarity:"Uncommon",src:"0/114/143/71/27006221600016"},Confetti:{webp:"0/16722/363/252/30545000606637",rarity:"Uncommon",src:"0/16722/363/263/27006221311216"},Colombia:{webp:"0/16721/125/217/30545000607417",rarity:"Uncommon",src:"0/16721/125/216/27006221401212"},Clay:{webp:"0/114/144/42/30545000607532",rarity:"Uncommon",src:"0/114/144/5/27006222511333"},Chile:{webp:"0/16721/125/166/30545000607360",rarity:"Uncommon",src:"0/16721/125/164/27006222170020"},Cherry:{webp:"0/16722/56/163/30545000607321",rarity:"Uncommon",src:"0/16722/56/147/27006222107011"},Cedar:{webp:"0/114/144/25/30545000607412",rarity:"Uncommon",src:"0/114/144/10/27006222040251"},Cameroon:{webp:"0/16721/125/215/30545000607105",rarity:"Uncommon",src:"0/16721/125/214/27006221426224"},Brazil:{webp:"0/16721/125/163/30545000606642",rarity:"Uncommon",src:"0/16721/125/162/27006221637476"},"Bosnia and Herzegovina":{webp:"0/16721/125/161/30545000606335",rarity:"Uncommon",src:"0/16721/125/160/27006222067320"},Belgium:{webp:"0/16721/125/157/30545000607333",rarity:"Uncommon",src:"0/16721/125/156/27006222477260"},Australia:{webp:"0/16721/125/155/30545000605701",rarity:"Uncommon",src:"0/16721/125/154/27006222445217"},Argentina:{webp:"0/16721/125/153/30545000606432",rarity:"Uncommon",src:"0/16721/125/152/27006222250526"},Algeria:{webp:"0/16721/125/147/30545000606774",rarity:"Uncommon",src:"0/16721/125/146/27006221353167"},Zeus:{webp:"0/114/156/134/30545000606631",rarity:"Rare",src:"0/114/156/131/27006222562045"},Sweater:{webp:"0/16722/356/156/30545000605507",rarity:"Rare",src:"0/16722/356/146/27006221314372"},Sahara:{webp:"0/16722/363/260/30545000607351",rarity:"Rare",src:"0/16722/363/271/27006221167111"},Safari:{webp:"0/114/121/372/30545000607316",rarity:"Rare",src:"0/114/122/37/27006221321716"},Roger:{webp:"0/114/122/11/30545000605726",rarity:"Rare",src:"0/114/122/12/27006222631654"},Rhino:{webp:"0/16722/56/173/30545000606546",rarity:"Rare",src:"0/16722/56/156/27006221113616"},Python:{webp:"0/114/143/153/30545000605516",rarity:"Rare",src:"0/114/143/151/27006222417371"},"Pixel Heart":{webp:"0/16722/356/153/30545000606732",rarity:"Rare",src:"0/16722/356/143/27006221171207"},Night:{webp:"0/16722/356/152/30545000605511",rarity:"Rare",src:"0/16722/356/142/27006221104503"},Nano:{webp:"0/16722/35/6/30545000605574",rarity:"Rare",src:"0/16722/35/15/27006222415677"},Mary:{webp:"0/114/143/152/30545000607222",rarity:"Rare",src:"0/114/143/136/27006222514445"},Lead:{webp:"0/114/164/365/30545000607406",rarity:"Rare",src:"0/114/164/364/27006222435677"},Kaleidoscope:{webp:"0/16722/363/255/30545000606454",rarity:"Rare",src:"0/16722/363/266/27006221340470"},Jeans:{webp:"0/16722/363/254/30545000607354",rarity:"Rare",src:"0/16722/363/265/27006222076140"},Irbis:{webp:"0/114/165/3/30545000606043",rarity:"Rare",src:"0/114/165/2/27006222043031"},Inferno:{webp:"0/114/156/150/30545000606262",rarity:"Rare",src:"0/114/156/133/27006221515471"},"In Love":{webp:"0/16722/62/45/30545000606502",rarity:"Rare",src:"0/16722/62/44/27006221522631"},Hohloma:{webp:"0/114/143/111/30545000605745",rarity:"Rare",src:"0/114/143/72/27006221077354"},Emerald:{webp:"0/114/156/135/30545000607452",rarity:"Rare",src:"0/114/156/132/27006221700047"},Electra:{webp:"0/114/122/7/30545000607561",rarity:"Rare",src:"0/114/122/10/27006222065210"},Dragon:{webp:"0/114/121/371/30545000607115",rarity:"Rare",src:"0/114/121/374/27006222410011"},Chainmail:{webp:"0/16722/35/3/30545000607471",rarity:"Rare",src:"0/16722/35/12/27006221454065"},Blacksmith:{webp:"0/16722/56/162/30545000607212",rarity:"Rare",src:"0/16722/56/146/27006221660131"},Atom:{webp:"0/16722/35/2/30545000606151",rarity:"Rare",src:"0/16722/35/11/27006222260322"},Zombie:{webp:"0/16723/5/160/30545000606574",rarity:"Epic",src:"0/16723/5/161/27006222345270"},Zigzag:{webp:"541/26511/305/134/30545000605663",rarity:"Epic",src:"541/26511/305/135/27006221144374"},Wonderbird:{webp:"554/155644/166/30/30545000606634",rarity:"Epic",src:"554/155644/166/32/27006222147416"},Wildstyle:{webp:"572/166524/245/14/30545000607477",rarity:"Epic",src:"572/166517/256/41/27536075120607"},"White planet":{webp:"554/41254/55/327/30545000606610",rarity:"Epic",src:"554/41254/55/332/27006221646531"},"Walk of Fame":{webp:"571/14366/260/207/30545000606051",rarity:"Epic",src:"571/14366/257/41/27443075527660"},Virus:{webp:"561/61551/166/321/30545000606701",rarity:"Epic",src:"561/61551/166/310/27054332366147"},Tropics:{webp:"565/67400/142/143/30545000606627",rarity:"Epic",src:"565/67400/141/60/27255700060667"},"Timber camo":{webp:"550/121245/254/152/30545000606333",rarity:"Epic",src:"550/121245/254/153/27006222105355"},Thunderball:{webp:"543/66562/241/30/30545000607415",rarity:"Epic",src:"543/66604/144/13/27006221233210"},Tetris:{webp:"564/155045/353/71/30545000607501",rarity:"Epic",src:"564/155045/271/143/27233535362310"},Tarantula:{webp:"552/51367/16/51/30545000607007",rarity:"Epic",src:"552/51375/362/10/27006222560630"},"Sunset camouflage":{webp:"0/16723/66/104/30545000607347",rarity:"Epic",src:"0/16723/66/105/27006221764352"},Sudoku:{webp:"541/26511/305/130/30545000607346",rarity:"Epic",src:"541/26511/305/131/27006222254007"},Strawberry:{webp:"0/16723/135/55/30545000607450",rarity:"Epic",src:"0/16723/135/45/27006221633410"},Steak:{webp:"0/16723/135/61/30545000605403",rarity:"Epic",src:"0/16723/135/50/27006221702565"},"Stained glass":{webp:"543/66577/152/215/30545000607531",rarity:"Epic",src:"543/66610/35/62/27006222635760"},"Squid Fingers":{webp:"555/102576/60/53/30545000607264",rarity:"Epic",src:"555/102576/311/233/27006222566342"},"Speeding Star":{webp:"561/142545/333/20/30545000607511",rarity:"Epic",src:"561/142545/333/17/27070551440731"},Spangles:{webp:"0/16723/23/221/30545000607211",rarity:"Epic",src:"0/16723/23/222/27006222117163"},Sonar:{webp:"564/23012/127/250/30545000606217",rarity:"Epic",src:"564/23012/11/216/27204602406375"},Soda:{webp:"562/104265/346/212/30545000606041",rarity:"Epic",src:"562/104265/346/200/27121057602676"},Snowflake:{webp:"0/16723/44/257/30545000607323",rarity:"Epic",src:"0/16723/44/256/27006222314544"},Skomorokh:{webp:"570/61722/261/211/30545000606611",rarity:"Epic",src:"570/61722/240/131/27414734736616"},Sillicate:{webp:"541/26511/305/132/30545000607365",rarity:"Epic",src:"541/26511/305/133/27006221345511"},"Secret of the aliens":{webp:"0/16723/247/227/30545000607532",rarity:"Epic",src:"0/16723/247/230/27006221277407"},"Scarier Things":{webp:"555/102572/301/267/30545000607222",rarity:"Epic",src:"555/102601/7/347/27006222561064"},Scandinavia:{webp:"0/16723/135/52/30545000606266",rarity:"Epic",src:"0/16723/135/42/27006222376003"},Rust:{webp:"0/16723/135/54/30545000605631",rarity:"Epic",src:"0/16723/135/41/27006222352311"},Ripple:{webp:"541/26511/305/146/30545000606241",rarity:"Epic",src:"541/26511/305/147/27006221262557"},Retrowave:{webp:"572/166517/257/277/30545000607137",rarity:"Epic",src:"572/166517/256/34/27535523727317"},"Red planet":{webp:"554/41253/265/272/30545000605541",rarity:"Epic",src:"554/41253/265/310/27006222340462"},"Red Suit":{webp:"0/16722/316/153/30545000606266",rarity:"Epic",src:"0/16722/316/154/27006221217543"},Question:{webp:"567/37634/331/270/30545000606143",rarity:"Epic",src:"567/37634/262/342/27347747132106"},"Premium paint":{webp:"0/16722/221/71/30545000606135",rarity:"Epic",src:"0/16722/221/70/27006222522100"},"Precious Studs":{webp:"560/100572/177/223/30545000607474",rarity:"Epic",src:"560/100572/177/222/27020213605214"},Potter:{webp:"541/26511/305/140/30545000606324",rarity:"Epic",src:"541/26511/305/141/27006222421437"},"Pop Art":{webp:"541/26511/305/120/30545000605730",rarity:"Epic",src:"541/26511/305/121/27006222043465"},"Play-Doh":{webp:"541/26511/305/142/30545000605600",rarity:"Epic",src:"541/26511/305/143/27006221477713"},"Pink Elephant":{webp:"555/102575/40/125/30545000607003",rarity:"Epic",src:"555/102602/164/217/27006221471504"},Peaks:{webp:"541/26511/305/116/30545000606070",rarity:"Epic",src:"541/26511/305/117/27006221263322"},"Peace, Work, May!":{webp:"571/14353/303/123/30545000606501",rarity:"Epic",src:"571/14353/301/314/27443072741162"},Pajamas:{webp:"0/16723/135/60/30545000607345",rarity:"Epic",src:"0/16723/135/47/27006221120010"},"Paisley Ice":{webp:"541/26511/305/152/30545000605740",rarity:"Epic",src:"541/26511/305/153/27006221473252"},"Packed Stocking":{webp:"557/33761/314/300/30545000606017",rarity:"Epic",src:"557/33757/250/160/27006222523131"},"Orange urchin":{webp:"557/163173/240/65/30545000606670",rarity:"Epic",src:"557/163200/33/215/27006221705441"},Offensive:{webp:"562/44013/24/265/30545000607373",rarity:"Epic",src:"562/44013/24/264/27111020177566"},"Off-road vehicle":{webp:"562/170140/75/64/30545000607136",rarity:"Epic",src:"562/170140/73/302/27136033510003"},Oceania:{webp:"557/163165/361/246/30545000607077",rarity:"Epic",src:"557/163176/52/75/27006221304332"},Obsidian:{webp:"552/51360/121/217/30545000606404",rarity:"Epic",src:"552/51372/12/247/27006221525437"},Oasis:{webp:"571/125007/232/46/30545000607554",rarity:"Epic",src:"571/125007/215/5/27465467435004"},"Nuclear sun":{webp:"562/45076/20/334/30545000605211",rarity:"Epic",src:"562/45076/20/332/27111226640020"},"New Year Gift":{webp:"540/66626/127/277/30545000606522",rarity:"Epic",src:"540/66631/104/104/27006222041041"},Neuron:{webp:"0/16722/356/165/30545000607011",rarity:"Epic",src:"0/16722/356/163/27006222161460"},Moonwalker:{webp:"0/16717/262/246/30545000607112",rarity:"Epic",src:"0/16717/262/247/27006221231453"},Monet:{webp:"541/26511/305/162/30545000606060",rarity:"Epic",src:"541/26511/305/163/27006221250163"},"Mint Candy":{webp:"575/46552/314/267/30545000607413",rarity:"Epic",src:"575/46552/273/254/27652031776223"},Mint:{webp:"0/16723/6/12/30545000606300",rarity:"Epic",src:"0/16723/6/5/27006222204460"},"Miniature Masonry":{webp:"556/16006/24/21/30545000606026",rarity:"Epic",src:"556/15765/240/206/27006221060421"},Megapolis:{webp:"543/66573/106/36/30545000607531",rarity:"Epic",src:"543/66606/66/123/27006221146244"},Masquerade:{webp:"573/100606/272/364/30545000606601",rarity:"Epic",src:"573/100606/271/263/27560141535043"},"Lunar Soil":{webp:"0/16723/135/57/30545000606663",rarity:"Epic",src:"0/16723/135/46/27006221154032"},Lotus:{webp:"541/26511/305/156/30545000606570",rarity:"Epic",src:"541/26511/305/157/27006221203125"},"Log cabin":{webp:"574/31047/146/174/30545000606567",rarity:"Epic",src:"574/31047/144/204/27606211662506"},"Liquid Metal":{webp:"0/16722/363/256/30545000607545",rarity:"Epic",src:"0/16722/363/267/27006222350323"},"Lime burst":{webp:"0/16723/72/3/30545000605227",rarity:"Epic",src:"0/16723/72/4/27006222627444"},Lime:{webp:"0/16722/356/164/30545000605366",rarity:"Epic",src:"0/16722/356/162/27006222160273"},"Lilac petals":{webp:"0/16723/72/5/30545000607210",rarity:"Epic",src:"0/16723/72/6/27006221753263"},Lifesaver:{webp:"554/155643/245/4/30545000607321",rarity:"Epic",src:"554/155643/245/5/27006222241376"},"Kungur Ice Cave":{webp:"541/26511/305/136/30545000607120",rarity:"Epic",src:"541/26511/305/137/27006222257104"},Hypercube:{webp:"541/26511/305/122/30545000607554",rarity:"Epic",src:"541/26511/305/123/27006221265532"},Hallucination:{webp:"541/26511/305/124/30545000606471",rarity:"Epic",src:"541/26511/305/125/27006221134323"},Gucciflage:{webp:"541/26511/305/114/30545000607350",rarity:"Epic",src:"541/26511/305/115/27006222173243"},Griller:{webp:"556/16004/335/357/30545000606227",rarity:"Epic",src:"556/15765/70/16/27006221456716"},"Gift wrap":{webp:"553/3666/304/323/30545000607422",rarity:"Epic",src:"553/3675/64/266/27006221716164"},"Gemetric Blue":{webp:"561/25253/244/146/30545000607514",rarity:"Epic",src:"561/25253/244/145/27045325501417"},Gamer:{webp:"563/112373/41/234/30545000605241",rarity:"Epic",src:"563/112373/23/51/27162476612071"},Frost:{webp:"0/16722/6/317/30545000605535",rarity:"Epic",src:"0/16722/356/150/27006221203600"},"Fire dragon":{webp:"543/66562/107/70/30545000605554",rarity:"Epic",src:"543/66603/325/14/27006221425330"},Feathers:{webp:"543/66561/30/32/30545000607420",rarity:"Epic",src:"543/66602/165/224/27006222065140"},"Falling leaves":{webp:"574/31046/60/77/30545000605327",rarity:"Epic",src:"574/31046/56/214/27606211427470"},Eternity:{webp:"0/16722/232/3/30545000606507",rarity:"Epic",src:"0/16722/232/2/27042003462661"},Ecofriendly:{webp:"563/112371/330/230/30545000607514",rarity:"Epic",src:"563/112371/226/202/27162476315066"},Easter:{webp:"567/130016/222/202/30545000607551",rarity:"Epic",src:"567/130016/167/105/27366564516722"},"Eagle eye":{webp:"564/23020/11/175/30545000606651",rarity:"Epic",src:"564/23017/366/262/27205227064243"},E236:{webp:"543/66557/172/122/30545000605676",rarity:"Epic",src:"543/66601/113/114/27006221672121"},Drought:{webp:"0/16723/6/13/30545000607223",rarity:"Epic",src:"0/16723/6/6/27006222505673"},Domino:{webp:"0/16722/374/162/30545000607555",rarity:"Epic",src:"0/16722/374/164/27006221345672"},"Designer Vibe":{webp:"561/142545/333/16/30545000606417",rarity:"Epic",src:"561/142545/333/15/27070551403070"},"Deep blue pixel":{webp:"557/163174/306/55/30545000605601",rarity:"Epic",src:"557/163200/333/73/27006222051501"},Darts:{webp:"562/44013/24/272/30545000607014",rarity:"Epic",src:"562/44013/24/270/27111020506553"},Crusher:{webp:"552/51356/65/243/30545000607450",rarity:"Epic",src:"552/51375/14/113/27006221716651"},"Creative Engineer":{webp:"561/142545/333/22/30545000607344",rarity:"Epic",src:"561/142547/136/61/27070551514071"},"Condensed milk":{webp:"543/66576/13/145/30545000606216",rarity:"Epic",src:"543/66607/105/12/27006221477510"},"Christmas Eve":{webp:"575/112017/111/35/30545000607441",rarity:"Epic",src:"575/112017/107/100/27662403644070"},"Chill bro!":{webp:"0/16723/227/134/30545000607553",rarity:"Epic",src:"0/16723/227/135/27006222314020"},Cap:{webp:"552/51352/300/305/30545000606046",rarity:"Epic",src:"552/51373/273/336/27006222533350"},Cake:{webp:"562/104265/346/220/30545000606644",rarity:"Epic",src:"562/104266/247/135/27121057777722"},"Blue square":{webp:"543/66560/61/12/30545000606725",rarity:"Epic",src:"543/66601/376/323/27006221623352"},"Blue planet":{webp:"554/41202/220/275/30545000605743",rarity:"Epic",src:"554/41031/240/350/27006222114747"},"Blue marmalade":{webp:"550/121244/103/312/30545000606232",rarity:"Epic",src:"550/121244/103/315/27006221072331"},Blanket:{webp:"575/112017/255/212/30545000605745",rarity:"Epic",src:"575/112017/254/57/27662403726310"},Birdwatcher:{webp:"0/16723/150/166/30545000606125",rarity:"Epic",src:"0/16723/150/167/27006221656231"},Beach:{webp:"572/34561/144/112/30545000607507",rarity:"Epic",src:"572/34561/142/36/27507134261373"},Battleship:{webp:"562/45076/20/331/30545000607557",rarity:"Epic",src:"562/45076/20/327/27111224665461"},"Barricade tape":{webp:"565/67401/231/336/30545000606715",rarity:"Epic",src:"565/67401/230/250/27255700314460"},"Barber Shop":{webp:"0/16723/135/56/30545000607441",rarity:"Epic",src:"0/16723/135/43/27006221404600"},"Babushka's Quilt":{webp:"560/100572/177/217/30545000605764",rarity:"Epic",src:"560/100572/177/216/27020213562773"},BBQ:{webp:"562/104265/346/222/30545000607204",rarity:"Epic",src:"562/104265/346/221/27121060073320"},Azure:{webp:"541/26511/305/160/30545000606602",rarity:"Epic",src:"541/26511/305/161/27006222405127"},"Avant-garde":{webp:"566/65737/330/277/30545000607015",rarity:"Epic",src:"566/65737/174/260/27300443007050"},Arachnid:{webp:"0/16722/363/250/30545000606215",rarity:"Epic",src:"0/16722/363/261/27006221206475"},"And Roll":{webp:"554/155641/323/221/30545000606174",rarity:"Epic",src:"554/155641/323/232/27006221714250"},"All you need is...":{webp:"0/16723/61/230/30545000607427",rarity:"Epic",src:"0/16723/61/231/27006221374725"},"All the Goodies":{webp:"557/33761/2/27/30545000607220",rarity:"Epic",src:"557/33756/273/64/27006221337475"},"Alien Chainmail":{webp:"560/100572/177/233/30545000605732",rarity:"Epic",src:"560/100572/177/232/27020213532655"},"Adam and Eve":{webp:"556/16004/11/231/30545000606470",rarity:"Epic",src:"556/15763/63/224/27006222246213"},"450 Nanometers":{webp:"561/25253/244/150/30545000605763",rarity:"Epic",src:"561/25253/244/147/27045325460615"},lol:{webp:"551/134147/265/133/30545000702562",rarity:"Legendary",json:"551/134147/265/133/30545000702562",src:"551/132461/354/137/27006221251124"},"Visual Disruptor":{webp:"553/1373/221/42/30545000703010",rarity:"Legendary",json:"553/1373/221/42/30545000703010",src:"553/1364/357/16/27006222521372"},Vertigo:{webp:"541/30730/350/166/30545000703066",rarity:"Legendary",json:"541/30730/350/166/30545000703066",src:"541/30734/372/213/27006221242753"},Valour:{webp:"543/174441/145/365/30545000703121",rarity:"Legendary",json:"543/174441/145/365/30545000703121",src:"543/174437/247/40/27006221244761"},"Under the Tree":{webp:"556/131051/14/210/30545000703124",rarity:"Legendary",json:"556/131051/14/210/30545000703124",src:"556/131072/132/233/27006222453416"},"Trapped Inside":{webp:"556/130764/204/367/30545000703020",rarity:"Legendary",json:"556/130764/204/367/30545000703020",src:"556/131022/31/265/27006221105147"},"Touch of chill":{webp:"547/146246/240/15/30545000702733",rarity:"Legendary",json:"547/146246/240/15/30545000702733",src:"547/146221/51/60/27006221444421"},"Tic-tac-toe":{webp:"546/73372/207/102/30545000703037",rarity:"Legendary",json:"546/73372/207/102/30545000703037",src:"546/73403/142/220/27006221330173"},"Tessaract Camo":{webp:"547/116152/46/270/30545000702670",rarity:"Legendary",json:"547/116152/46/270/30545000702670",src:"547/116166/351/53/27006221657440"},Tentacles:{webp:"545/11627/266/127/30545000703110",rarity:"Legendary",json:"545/11627/266/127/30545000703110",src:"545/11640/53/20/27006221673161"},"Tectonic plates":{webp:"562/167566/100/25/30545000703124",rarity:"Legendary",json:"562/167566/100/25/30545000703124",src:"562/167566/77/60/27135735437610"},"Tankoin Tank":{webp:"556/15724/147/2/30545000702723",rarity:"Legendary",json:"556/15724/147/2/30545000702723",src:"556/15723/374/66/27006222550606"},"Synth-pop":{webp:"545/126725/52/245/30545000703102",rarity:"Legendary",json:"545/126725/52/245/30545000703102",src:"545/126733/27/326/27006222233466"},Synesthesia:{webp:"540/64312/120/11/30545000703104",rarity:"Legendary",json:"540/64312/120/11/30545000703104",src:"540/66633/55/221/27006222576001"},Symbiote:{webp:"546/34534/177/323/30545000703013",rarity:"Legendary",json:"546/34534/177/323/30545000703013",src:"546/34534/61/72/27006221606474"},Surf:{webp:"564/23530/371/347/30545000702725",rarity:"Legendary",json:"564/23530/371/347/30545000702725",src:"564/23530/353/164/27204726166310"},Spring:{webp:"551/24636/42/72/30545000702736",rarity:"Legendary",json:"551/24636/42/72/30545000702736",src:"551/24635/26/42/27006221136712"},"Spreading Fast":{webp:"561/142545/333/7/30545000702730",rarity:"Legendary",json:"561/142545/333/7/30545000702730",src:"561/142545/333/6/27070545722177"},Spinner:{webp:"545/11545/202/215/30545000702740",rarity:"Legendary",json:"545/11545/202/215/30545000702740",src:"545/11560/327/27/27006222202266"},Spectrum:{webp:"537/157270/46/364/30545000703055",rarity:"Legendary",json:"537/157270/46/364/30545000703055",src:"537/161126/341/105/27006222025770"},Sparks:{webp:"557/16771/76/362/30545000702646",rarity:"Legendary",json:"557/16771/76/362/30545000702646",src:"557/16767/303/253/27006221503663"},Souls:{webp:"556/15710/337/153/30545000702734",rarity:"Legendary",json:"556/15710/337/153/30545000702734",src:"556/15710/153/1/27006222055570"},"Smoke Screen":{webp:"555/102565/137/303/30545000702617",rarity:"Legendary",json:"555/102565/137/303/30545000702617",src:"555/102566/10/263/27006222330022"},"Silver Bricks":{webp:"547/116412/306/51/30545000702600",rarity:"Legendary",json:"547/116412/306/51/30545000702600",src:"547/116415/163/70/27006222526160"},"Siberian tiger":{webp:"543/66552/155/4/30545000703103",rarity:"Legendary",json:"543/66552/155/4/30545000703103",src:"543/66606/257/72/27006221135122"},"Seventies Fun":{webp:"555/102570/232/331/30545000702756",rarity:"Legendary",json:"555/102570/232/331/30545000702756",src:"555/102571/41/46/27006221160241"},"Secret sauce":{webp:"543/66555/270/12/30545000703027",rarity:"Legendary",json:"543/66555/270/12/30545000703027",src:"543/66607/263/64/27006222205740"},Runes:{webp:"546/5252/111/47/30545000703016",rarity:"Legendary",json:"546/5252/111/47/30545000703016",src:"546/5266/115/372/27006222046566"},"Red smoke":{webp:"576/110301/47/67/30545000703116",rarity:"Legendary",json:"576/110301/47/67/30545000703116",src:"576/110301/22/145/27722060211602"},"Radioactive jelly":{webp:"545/11625/273/0/30545000702626",rarity:"Legendary",json:"545/11625/273/0/30545000702626",src:"545/11635/326/23/27006221116243"},Radar:{webp:"554/67737/67/265/30545000702631",rarity:"Legendary",json:"554/67737/67/265/30545000702631",src:"554/67736/267/363/27006222626613"},"Quantum Camo":{webp:"556/42752/316/204/30545000702731",rarity:"Legendary",json:"556/42752/316/204/30545000702731",src:"556/42751/263/315/27006222270665"},"Prodigy 2.0":{webp:"541/133554/271/134/30545000703047",rarity:"Legendary",json:"541/133554/271/134/30545000703047",src:"541/134056/335/343/27006222515054"},"Pixel Plasma":{webp:"561/142545/333/1/30545000702624",rarity:"Legendary",json:"561/142545/333/1/30545000702624",src:"561/142545/333/0/27070542052722"},Pastila:{webp:"543/130456/16/153/30545000702706",rarity:"Legendary",json:"543/130456/16/153/30545000702706",src:"543/137742/302/13/27006221451300"},PCB:{webp:"564/23104/74/23/30545000702775",rarity:"Legendary",json:"564/23104/74/23/30545000702775",src:"564/23104/51/321/27204621025403"},"Not a lantern":{webp:"554/156330/206/340/30545000702673",rarity:"Legendary",json:"554/156330/206/340/30545000702673",src:"554/156330/206/342/27006222023224"},"Northern Lights":{webp:"552/64132/112/241/30545000702661",rarity:"Legendary",json:"552/64132/112/241/30545000702661",src:"550/121250/255/352/27006222365131"},Nightmare:{webp:"0/16723/263/330/30545000702757",rarity:"Legendary",json:"0/16723/263/330/30545000702757",src:"0/16723/270/215/27006221715734"},Nickel:{webp:"572/100163/50/106/30545000702765",rarity:"Legendary",json:"572/100163/50/106/30545000702765",src:"572/100163/46/345/27520034623546"},"Neon Geometry":{webp:"555/102567/46/351/30545000703107",rarity:"Legendary",json:"555/102567/46/351/30545000703107",src:"555/102567/300/350/27006222207616"},"Nanosuit Armor":{webp:"554/156327/273/11/30545000702627",rarity:"Legendary",json:"554/156327/273/11/30545000702627",src:"554/156327/273/12/27006221406451"},NanoHUD:{webp:"561/25253/244/134/30545000702662",rarity:"Legendary",json:"561/25253/244/134/30545000702662",src:"561/25253/244/133/27045325441716"},"Mount Fuji":{webp:"545/40717/1/211/30545000702576",rarity:"Legendary",json:"545/40717/1/211/30545000702576",src:"545/40721/204/340/27006222237552"},Mosaic:{webp:"541/30732/343/205/30545000702763",rarity:"Legendary",json:"541/30732/343/205/30545000702763",src:"541/30734/350/113/27006222204042"},Monochrome:{webp:"554/41014/330/54/30545000702661",rarity:"Legendary",json:"554/41014/330/54/30545000702661",src:"554/41014/330/72/27006221346332"},Microbiology:{webp:"551/134444/100/316/30545000702740",rarity:"Legendary",json:"551/134444/100/316/30545000702740",src:"551/134443/11/33/27006221573765"},"Meteor shower":{webp:"545/11632/355/205/30545000702623",rarity:"Legendary",json:"545/11632/355/205/30545000702623",src:"545/11637/17/302/27006221255520"},Magnolia:{webp:"543/411/344/275/30545000703017",rarity:"Legendary",json:"543/411/344/275/30545000703017",src:"543/421/60/312/27006222146637"},"Magic Circles":{webp:"556/15667/71/177/30545000703020",rarity:"Legendary",json:"556/15667/71/177/30545000703020",src:"556/15666/277/75/27006221152035"},"Loving Camo":{webp:"560/100572/177/215/30545000703113",rarity:"Legendary",json:"560/100572/177/215/30545000703113",src:"560/100572/177/214/27020213473672"},"Living Armor":{webp:"556/15653/367/46/30545000702625",rarity:"Legendary",json:"556/15653/367/46/30545000702625",src:"556/15653/72/150/27006221261625"},"Lightning storm":{webp:"547/116434/301/110/30545000703076",rarity:"Legendary",json:"547/116434/301/110/30545000703076",src:"547/116435/370/371/27006222240217"},"Light organ":{webp:"562/167535/270/242/30545000702576",rarity:"Legendary",json:"562/167535/270/242/30545000702576",src:"562/167535/267/252/27135727334011"},Liana:{webp:"551/27326/356/365/30545000702651",rarity:"Legendary",json:"551/27326/356/365/30545000702651",src:"551/27326/221/341/27006221265166"},"Lava Lamp":{webp:"547/116313/64/303/30545000702773",rarity:"Legendary",json:"547/116313/64/303/30545000702773",src:"547/116334/23/330/27006222557743"},LEDs:{webp:"545/11623/72/202/30545000702563",rarity:"Legendary",json:"545/11623/72/202/30545000702563",src:"545/11634/266/74/27006221352635"},Katakana:{webp:"565/67302/70/327/30545000702652",rarity:"Legendary",json:"565/67302/70/327/30545000702652",src:"565/67302/67/275/27255660434051"},Kapuljat:{webp:"555/102555/140/111/30545000702643",rarity:"Legendary",json:"555/102555/140/111/30545000702643",src:"555/102557/217/260/27006221663214"},"Jolly Season":{webp:"556/131023/214/327/30545000702613",rarity:"Legendary",json:"556/131023/214/327/30545000702613",src:"556/131050/2/17/27006222041207"},"Integrated circuit":{webp:"570/61724/131/122/30545000703104",rarity:"Legendary",json:"570/61724/131/122/30545000703104",src:"570/61724/113/126/27414734473666"},Honor:{webp:"551/5045/321/233/30545000702742",rarity:"Legendary",json:"551/5045/321/233/30545000702742",src:"551/5072/7/20/27006222160574"},"Holiday lights":{webp:"540/64314/165/347/30545000702727",rarity:"Legendary",json:"540/64314/165/347/30545000702727",src:"540/66764/173/103/27006221166103"},"Heart of Steel":{webp:"560/100572/177/210/30545000703032",rarity:"Legendary",json:"560/100572/177/210/30545000703032",src:"560/100572/177/206/27020211502220"},"Head Ripper":{webp:"561/142545/333/5/30545000703061",rarity:"Legendary",json:"561/142545/333/5/30545000703061",src:"561/142545/333/4/27070543637031"},"Groovy Neon":{webp:"560/100572/177/212/30545000702630",rarity:"Legendary",json:"560/100572/177/212/30545000702630",src:"560/100572/177/211/27020207566142"},"Green Zircon":{webp:"573/10253/222/176/30545000703030",rarity:"Legendary",json:"573/10253/222/176/30545000703030",src:"573/10253/221/41/27542052710643"},"Green Quads":{webp:"561/25253/244/131/30545000703024",rarity:"Legendary",json:"561/25253/244/131/30545000703024",src:"561/25253/244/123/27045322021177"},"Golden Gears":{webp:"552/64012/301/330/30545000702616",rarity:"Legendary",json:"552/64012/301/330/30545000702616",src:"552/64054/13/237/27006221703215"},"Gold alloy":{webp:"562/167562/333/64/30545000703102",rarity:"Legendary",json:"562/167562/333/64/30545000703102",src:"562/167562/332/122/27135734555253"},Glow:{webp:"572/77671/72/102/30545000702752",rarity:"Legendary",json:"572/77671/72/102/30545000702752",src:"572/77671/70/327/27517756234532"},"Glam Croc":{webp:"555/102562/350/355/30545000702767",rarity:"Legendary",json:"555/102562/350/355/30545000702767",src:"555/102563/132/116/27006221451423"},Ginga:{webp:"541/175531/253/310/30545000703021",rarity:"Legendary",json:"541/175531/253/310/30545000703021",src:"541/175531/252/111/27006221151645"},Gears:{webp:"545/11624/376/201/30545000702731",rarity:"Legendary",json:"545/11624/376/201/30545000702731",src:"545/11636/174/162/27006222412272"},Galaxy:{webp:"542/131765/267/114/30545000703051",rarity:"Legendary",json:"542/131765/267/114/30545000703051",src:"542/132027/0/273/27006222067226"},"Galaxian Explosion":{webp:"552/64134/215/32/30545000702555",rarity:"Legendary",json:"552/64134/215/32/30545000702555",src:"552/54561/235/227/27006222573543"},"Funky medicine":{webp:"557/163340/251/240/30545000703000",rarity:"Legendary",json:"557/163340/251/240/30545000703000",src:"557/163350/114/62/27006221671646"},"Frigid Coat":{webp:"557/33664/165/326/30545000703115",rarity:"Legendary",json:"557/33664/165/326/30545000703115",src:"557/33663/377/245/27006221660512"},Flywheel:{webp:"570/61727/1/317/30545000702720",rarity:"Legendary",json:"570/61727/1/317/30545000702720",src:"570/61726/363/237/27414731172757"},"Flowing Metal":{webp:"560/100572/177/176/30545000703102",rarity:"Legendary",json:"560/100572/177/176/30545000703102",src:"560/100572/177/142/27020205723767"},Flow:{webp:"0/16723/161/76/30545000703013",rarity:"Legendary",json:"0/16723/161/76/30545000703013",src:"0/16723/161/100/27006222633303"},"First kiss":{webp:"550/156240/56/163/30545000702653",rarity:"Legendary",json:"550/156240/56/163/30545000702653",src:"550/156234/237/345/27006221375217"},"Fire golem":{webp:"551/27322/41/200/30545000703065",rarity:"Legendary",json:"551/27322/41/200/30545000703065",src:"551/27317/14/120/27006221162655"},"Fidget toy":{webp:"572/14616/222/257/30545000702733",rarity:"Legendary",json:"572/14616/222/257/30545000702733",src:"572/14616/220/173/27503143510501"},Fan:{webp:"562/167467/304/374/30545000702627",rarity:"Legendary",json:"562/167467/304/374/30545000702627",src:"562/167467/303/360/27135715742134"},"Fall leaves":{webp:"545/40715/350/114/30545000702737",rarity:"Legendary",json:"545/40715/350/114/30545000702737",src:"545/40720/116/153/27006221147267"},Electrohive:{webp:"545/126726/262/263/30545000702747",rarity:"Legendary",json:"545/126726/262/263/30545000702747",src:"545/126733/241/226/27006221063660"},"Electric Sheep":{webp:"554/156326/105/21/30545000703014",rarity:"Legendary",json:"554/156326/105/21/30545000703014",src:"554/156326/105/27/27006222422773"},Earthling:{webp:"561/142545/333/11/30545000703122",rarity:"Legendary",json:"561/142545/333/11/30545000703122",src:"561/142545/333/10/27070547604376"},Ducks:{webp:"571/77337/312/323/30545000703116",rarity:"Legendary",json:"571/77337/312/323/30545000703116",src:"571/77337/260/262/27457667731175"},Drive:{webp:"574/6304/6/145/30545000703052",rarity:"Legendary",json:"574/6304/6/145/30545000703052",src:"574/6303/366/322/27602117044003"},"Disco 2.0":{webp:"552/64211/6/276/30545000703071",rarity:"Legendary",json:"552/64211/6/276/30545000703071",src:"550/121247/327/43/27006221125222"},"Digital Borealis":{webp:"557/163227/351/236/30545000703011",rarity:"Legendary",json:"557/163227/351/236/30545000703011",src:"557/163253/364/266/27006221266743"},Diamond:{webp:"551/134444/130/205/30545000702735",rarity:"Legendary",json:"551/134444/130/205/30545000702735",src:"551/134441/174/100/27006221263651"},Cyborg:{webp:"555/125200/352/163/30545000702602",rarity:"Legendary",json:"555/125200/352/163/30545000702602",src:"555/125200/112/312/27006221636176"},"Cucurbita Pepo":{webp:"555/175742/220/260/30545000703126",rarity:"Legendary",json:"555/175742/220/260/30545000703126",src:"555/175756/337/316/27006222621337"},"Craft Scissors":{webp:"565/67335/21/72/30545000702665",rarity:"Legendary",json:"565/67335/21/72/30545000702665",src:"565/67335/20/34/27255667210211"},"Cosmic Blast":{webp:"557/163255/146/46/30545000702654",rarity:"Legendary",json:"557/163255/146/46/30545000702654",src:"557/163277/204/145/27006221444234"},Constellation:{webp:"562/45076/20/322/30545000703021",rarity:"Legendary",json:"562/45076/20/322/30545000703021",src:"562/45076/20/306/27111221217077"},"Chemical Reaction":{webp:"561/25253/244/136/30545000702666",rarity:"Legendary",json:"561/25253/244/136/30545000702666",src:"561/25253/244/135/27045316146637"},"Cathode Ray Tube":{webp:"573/10240/176/221/30545000702774",rarity:"Legendary",json:"573/10240/176/221/30545000702774",src:"573/10240/175/26/27542050076643"},"Carbon stars":{webp:"562/44013/24/263/30545000702757",rarity:"Legendary",json:"562/44013/24/263/30545000702757",src:"562/44013/24/262/27111011363601"},Campfire:{webp:"564/23137/27/324/30545000703000",rarity:"Legendary",json:"564/23137/27/324/30545000703000",src:"564/23137/2/12/27204627601405"},Busted:{webp:"554/41151/147/325/30545000702726",rarity:"Legendary",json:"554/41151/147/325/30545000702726",src:"554/41031/237/135/27006221073201"},"Burst of Light":{webp:"565/67316/327/32/30545000703053",rarity:"Legendary",json:"565/67316/327/32/30545000703053",src:"565/67316/325/375/27255663553153"},Bunny:{webp:"546/137352/112/21/30545000703034",rarity:"Legendary",json:"546/137352/112/21/30545000703034",src:"546/137356/56/326/27006221364671"},"Bubble gum":{webp:"552/64074/371/346/30545000702772",rarity:"Legendary",json:"552/64074/371/346/30545000702772",src:"552/54546/72/26/27006222303074"},"Blue lilac":{webp:"564/23562/66/53/30545000703031",rarity:"Legendary",json:"564/23562/66/53/30545000703031",src:"564/23562/50/216/27204734424620"},"Black Sea":{webp:"572/34572/163/302/30545000703050",rarity:"Legendary",json:"572/34572/163/302/30545000703050",src:"572/34572/161/327/27507136471206"},Beholder:{webp:"544/55142/270/105/30545000702602",rarity:"Legendary",json:"544/55142/270/105/30545000702602",src:"544/55151/301/253/27006221753027"},"Beating Hearts":{webp:"541/65415/164/111/30545000703067",rarity:"Legendary",json:"541/65415/164/111/30545000703067",src:"541/107167/201/42/27006221053354"},"Barbed wire":{webp:"546/137352/162/60/30545000703043",rarity:"Legendary",json:"546/137352/162/60/30545000703043",src:"546/137356/105/55/27006221600612"},"Badger-badger":{webp:"554/41027/222/234/30545000703057",rarity:"Legendary",json:"554/41027/222/234/30545000703057",src:"554/41027/222/240/27006222005546"},"Atmospheric Conditions":{webp:"557/163307/63/346/30545000703072",rarity:"Legendary",json:"557/163307/63/346/30545000703072",src:"557/163337/116/377/27006221612615"},Alloy:{webp:"565/67354/370/377/30545000703126",rarity:"Legendary",json:"565/67354/370/377/30545000703126",src:"565/67354/367/276/27255673174053"},"Alien abduction":{webp:"552/5334/62/6/30545000703062",rarity:"Legendary",json:"552/5334/62/6/30545000703062",src:"552/5401/214/71/27006222503213"},Adversity:{webp:"574/6253/211/221/30545000702603",rarity:"Legendary",json:"574/6253/211/221/30545000702603",src:"574/6253/73/215/27602113553573"},Green:{webp:"0/0/332/376/30545000607534",rarity:"Common",src:"0/0/346/7/30665402406616"},Urban:{webp:"0/114/114/102/30545000606613",rarity:"Uncommon",src:"0/114/114/121/27006222300055"},Savanna:{webp:"0/114/114/101/30545000605636",rarity:"Uncommon",src:"0/114/114/120/27006221763556"},Prodigi:{webp:"0/114/144/43/30545000606434",rarity:"Uncommon",src:"0/114/144/4/27006222571116"},Pixel:{webp:"0/16722/35/7/30545000607016",rarity:"Uncommon",src:"0/16722/35/16/27006222463703"},Moss:{webp:"0/16722/363/257/30545000606463",rarity:"Uncommon",src:"0/16722/363/270/27006221367462"},Digital:{webp:"0/114/122/36/30545000607206",rarity:"Uncommon",src:"0/114/122/35/27006221774672"},Desert:{webp:"0/114/114/77/30545000607076",rarity:"Uncommon",src:"0/114/114/116/27006221345363"},Tiger:{webp:"0/16722/35/10/30545000606657",rarity:"Rare",src:"0/16722/35/17/27006221567326"},Spark:{webp:"0/114/143/50/30545000607560",rarity:"Rare",src:"0/114/143/22/27006222107667"},Space:{webp:"0/16722/356/157/30545000607135",rarity:"Rare",src:"0/16722/356/147/27006221530264"},"Soft Flowers":{webp:"0/16722/356/154/30545000607034",rarity:"Rare",src:"0/16722/356/144/27006221434314"},Sakura:{webp:"0/16722/56/174/30545000607447",rarity:"Rare",src:"0/16722/56/157/27006221534130"},Raccoon:{webp:"0/16722/56/172/30545000607117",rarity:"Rare",src:"0/16722/57/136/27006221370133"},Lumberjack:{webp:"0/16722/56/171/30545000605744",rarity:"Rare",src:"0/16722/56/155/27006222406427"},Lava:{webp:"0/0/345/303/30545000607074",rarity:"Rare",src:"0/0/346/15/27006222002672"},Jaguar:{webp:"0/114/121/370/30545000605222",rarity:"Rare",src:"0/114/121/373/27006222104133"},Invader:{webp:"0/16722/56/170/30545000607075",rarity:"Rare",src:"0/16722/56/154/27006221775651"},Hive:{webp:"0/16722/56/167/30545000606230",rarity:"Rare",src:"0/16722/56/153/27006221251741"},Harlequin:{webp:"0/16722/363/251/30545000607373",rarity:"Rare",src:"0/16722/363/262/27006222163347"},Graffiti:{webp:"0/16722/56/165/30545000606005",rarity:"Rare",src:"0/16722/56/151/27006222315470"},"First Love":{webp:"0/16722/356/155/30545000606424",rarity:"Rare",src:"0/16722/356/145/27006222441570"},Disco:{webp:"0/16722/363/253/30545000605530",rarity:"Rare",src:"0/16722/363/264/27006221275703"},Carbon:{webp:"0/114/122/34/30545000606660",rarity:"Rare",src:"0/114/122/33/27006222457574"},Alien:{webp:"0/114/122/56/30545000607130",rarity:"Rare",src:"0/114/122/76/27006221421046"},Africa:{webp:"0/16722/56/161/30545000606024",rarity:"Rare",src:"0/16722/56/145/27006221320031"},"Wonder fish":{webp:"553/3667/10/45/30545000607020",rarity:"Epic",src:"553/3675/302/156/27006221267177"},Watermelon:{webp:"553/114353/265/331/30545000607504",rarity:"Epic",src:"553/114361/160/155/27006221205313"},Watercolor:{webp:"0/16722/374/163/30545000606327",rarity:"Epic",src:"0/16722/374/165/27006221666021"},"Volcanic eruption":{webp:"566/115234/353/363/30545000607275",rarity:"Epic",src:"566/115233/43/210/27322340127723"},Vector:{webp:"567/37631/253/315/30545000606144",rarity:"Epic",src:"567/37631/141/325/27347746261730"},Vanadium:{webp:"0/16723/135/53/30545000607302",rarity:"Epic",src:"0/16723/135/44/27006222032035"},UFO:{webp:"570/61721/132/221/30545000607374",rarity:"Epic",src:"570/61721/34/177/27414735126051"},Target:{webp:"564/155027/33/210/30545000607531",rarity:"Epic",src:"564/155026/311/101/27233535242303"},"Stylish Tanker":{webp:"561/142545/333/13/30545000607464",rarity:"Epic",src:"561/142545/333/12/27070551362051"},"Steel micro-fibers":{webp:"0/16723/66/102/30545000607351",rarity:"Epic",src:"0/16723/66/103/27006222461555"},"Stars and Flames":{webp:"560/100572/177/225/30545000606727",rarity:"Epic",src:"560/100572/177/224/27020213621647"},"Spring bouquet":{webp:"567/130011/272/263/30545000607320",rarity:"Epic",src:"567/130011/174/233/27366564524713"},Singapore:{webp:"550/121245/75/173/30545000605634",rarity:"Epic",src:"550/121245/75/174/27006221622300"},Sight:{webp:"575/46555/261/256/30545000607503",rarity:"Epic",src:"575/46555/242/41/27652032037172"},Shredded:{webp:"561/25253/244/143/30545000607515",rarity:"Epic",src:"561/25253/244/142/27045325521455"},Retina:{webp:"0/16723/150/164/30545000607111",rarity:"Epic",src:"0/16723/150/165/27006222255511"},"Red marmalade":{webp:"550/121243/76/171/30545000605712",rarity:"Epic",src:"550/121243/76/201/27006221446651"},"Red Marks":{webp:"573/100613/311/12/30545000607551",rarity:"Epic",src:"573/100613/307/367/27560142744157"},Pulsar:{webp:"541/26511/305/126/30545000606145",rarity:"Epic",src:"541/26511/305/127/27006222271152"},Phantom:{webp:"541/26511/305/150/30545000606466",rarity:"Epic",src:"541/26511/305/151/27006222400241"},"Paisley Flame":{webp:"541/26511/305/154/30545000607500",rarity:"Epic",src:"541/26511/305/155/27006221321222"},"POP IT":{webp:"571/125005/351/210/30545000606642",rarity:"Epic",src:"571/125005/261/51/27465467536207"},"Neural network":{webp:"566/65742/34/143/30545000606502",rarity:"Epic",src:"566/65742/2/271/27300443154776"},Lollipop:{webp:"541/26511/305/144/30545000606655",rarity:"Epic",src:"541/26511/305/145/27006222042110"},"Jade Scales":{webp:"553/114352/236/113/30545000606663",rarity:"Epic",src:"553/114364/152/155/27006222417236"},"Golden Star":{webp:"0/16722/356/161/30545000606723",rarity:"Epic",src:"0/16722/356/151/27006222445101"},"Gold digger":{webp:"562/170135/40/121/30545000605246",rarity:"Epic",src:"562/170135/37/100/27136027217677"},Glitch:{webp:"0/16723/135/51/30545000606155",rarity:"Epic",src:"0/16723/135/40/27006222224152"},Gamepad:{webp:"566/115237/243/141/30545000607411",rarity:"Epic",src:"566/115236/353/122/27322340117345"},Charred:{webp:"553/114343/321/275/30545000606063",rarity:"Epic",src:"553/114363/13/372/27006221577644"},Buckwheat:{webp:"561/61476/276/101/30545000607453",rarity:"Epic",src:"561/61476/276/67/27054317755011"},Breeze:{webp:"543/176106/125/337/30545000607363",rarity:"Epic",src:"543/174435/215/332/27006222551734"},"Baubles Galore":{webp:"557/33762/110/27/30545000607131",rarity:"Epic",src:"557/33760/20/363/27006221271365"},"Babushka's Sofa":{webp:"561/25253/244/153/30545000607543",rarity:"Epic",src:"561/25253/244/152/27045325474033"},"Area 52":{webp:"572/34560/262/327/30545000606672",rarity:"Epic",src:"572/34560/260/240/27507134130621"},"Ancient dragon":{webp:"551/134532/12/261/30545000605705",rarity:"Epic",src:"551/134547/244/265/27006221220621"},Amber:{webp:"0/16723/6/11/30545000607421",rarity:"Epic",src:"0/16723/6/4/27006221105565"},"Abstract lines":{webp:"543/66556/373/12/30545000606472",rarity:"Epic",src:"543/66600/306/44/27006221215024"},"X Noir":{webp:"553/1433/50/273/30545000703117",rarity:"Legendary",json:"553/1433/50/273/30545000703117",src:"553/1432/203/174/27006221621075"},"Night City":{webp:"554/175530/367/345/30545000702740",rarity:"Legendary",json:"554/175530/367/345/30545000702740",src:"554/175557/212/17/27006221622445"},Matrix:{webp:"541/26511/305/111/30545000702676",rarity:"Legendary",json:"541/26511/305/111/30545000702676",src:"541/30734/302/362/27006221540354"},"Ice Flurry":{webp:"557/33643/374/221/30545000702640",rarity:"Legendary",json:"557/33643/374/221/30545000702640",src:"557/33643/117/215/27006222232451"},Holo:{webp:"551/27324/333/273/30545000703033",rarity:"Legendary",json:"551/27324/333/273/30545000703033",src:"551/27324/215/231/27006221422007"},"Fried egg":{webp:"574/50102/12/72/30545000702635",rarity:"Legendary",json:"574/50102/12/72/30545000702635",src:"574/50101/372/330/27612512065507"},"Far North":{webp:"551/134444/117/265/30545000703076",rarity:"Legendary",json:"551/134444/117/265/30545000703076",src:"551/134442/20/142/27006222105616"},Eruption:{webp:"543/66554/244/271/30545000703001",rarity:"Legendary",json:"543/66554/244/271/30545000703001",src:"543/66605/321/302/27006221122065"},Cyberpunk:{webp:"552/64200/140/31/30545000702617",rarity:"Legendary",json:"552/64200/140/31/30545000702617",src:"550/121247/107/213/27006221631475"},"Cyber Shuriken":{webp:"561/25253/244/141/30545000703077",rarity:"Legendary",json:"561/25253/244/141/30545000703077",src:"561/25253/244/140/27045320163626"},"Alien Skin":{webp:"553/116602/324/253/30545000703007",rarity:"Legendary",json:"553/116602/324/253/30545000703007",src:"553/116607/12/216/27006221064073"},"Alien Regeneration":{webp:"553/114453/344/45/30545000702657",rarity:"Legendary",json:"553/114453/344/45/30545000702657",src:"553/114521/266/63/27006222543366"},"Alien Nebula":{webp:"553/114524/3/200/30545000703071",rarity:"Legendary",json:"553/114524/3/200/30545000703071",src:"553/114545/63/226/27006222635041"},Turbo:{webp:"606/52064/344/204/30545000607364",rarity:"Special",src:"553/175137/26/346/27006222303222"},Tankitty:{webp:"606/52065/142/77/30545000607033",rarity:"Special",src:"606/52065/140/22/30312415260320"},"Tank-Noir":{webp:"606/52065/333/260/30545000607321",rarity:"Special",src:"606/52065/331/327/30312415355227"},"Llama Tankini":{webp:"606/52064/106/231/30545000606726",rarity:"Special",src:"606/52064/104/300/30312415042577"},"Houston Tankin":{webp:"606/52063/236/45/30545000607205",rarity:"Special",src:"606/52063/234/116/30312414716416"},Acid:{webp:"0/114/155/240/30545000607111",rarity:"Special"},Bronze:{webp:"547/43342/67/352/30545000702735",rarity:"Special",json:"551/27324/333/273/30545000703033"},Champion:{webp:"547/43332/355/140/30545000703025",rarity:"Special",json:"551/27324/333/273/30545000703033"},Gladiator:{webp:"0/16717/155/36/30545000606503",rarity:"Special"},Impulse:{webp:"0/16723/76/251/30545000607010",rarity:"Special"},"Lucky 7":{webp:"0/16717/164/212/30545000606576",rarity:"Special"},Prism:{webp:"542/137051/152/330/30545000606116",rarity:"Special"},Silver:{webp:"547/43341/230/201/30545000703065",rarity:"Special",json:"551/27324/333/273/30545000703033"},Star:{webp:"0/16716/61/176/30545000607433",rarity:"Special"},Veteran:{webp:"0/16717/155/40/30545000605574",rarity:"Special"},"HotY 2020":{webp:"567/115670/43/173/30545000606332",rarity:"Special"},"HotY 2019":{webp:"557/33534/212/63/30545000702645",rarity:"Special",json:"557/33534/212/63/30545000702645"},"HotY 2022":{webp:"605/12470/15/141/30545000606014",rarity:"Special"},Sapphire:{webp:"614/103636/351/117/30620747565203",rarity:"Special"},Mechanic:{webp:"0/1374/271/223/30545000606045",rarity:"Special"},Helper:{webp:"0/16717/307/52/30545000607212",rarity:"Special"},Flame:{webp:"0/1374/276/171/30545000607132",rarity:"Special"},"Flame 2.0":{webp:"562/44013/24/255/30545000703063",rarity:"Special",json:"561/142545/333/5/30545000703061"},Spectator:{webp:"0/16722/171/372/30545000607413",rarity:"Special"},Helios:{webp:"0/16717/221/100/30545000606626",rarity:"Special"},Alligator:{webp:"0/114/163/233/30545000607032",rarity:"Special"},"MP 2023":{webp:"607/26446/13/143/30545000607346",rarity:"Special"},Glide:{webp:"0/16717/164/213/30545000607434",rarity:"Special"},"MP 2017":{webp:"0/16723/257/277/30545000607303",rarity:"Special"},"MP 2015":{webp:"0/16721/212/43/30545000606553",rarity:"Special"},Onyx:{webp:"565/155742/353/315/30545000606410",rarity:"Special"},"Dead tank":{webp:"0/1/316/220/30545000607151",rarity:"Special"},Demon:{webp:"0/16717/303/100/30545000607130",rarity:"Special"},Steam:{webp:"0/16723/140/163/30545000606150",rarity:"Special"},Recruit:{webp:"611/524/240/123/30545000605437",rarity:"Special"},"Oriental Glam":{webp:"557/146531/307/11/30545000605452",rarity:"Special"},Cryo:{webp:"550/75312/11/107/30545000703064",rarity:"Special",json:"550/75312/11/107/30545000703064"},LOL:{webp:"551/134147/265/133/30545000702562",rarity:"Special",json:"551/134147/265/133/30545000702562"},"Alien regeneration":{webp:"553/114453/344/45/30545000702657",rarity:"Special",json:"553/114453/344/45/30545000702657"},"Alien skin":{webp:"553/116602/324/253/30545000703007",rarity:"Special",json:"553/116602/324/253/30545000703007"},"Atomospheric conditions":{webp:"557/163307/63/346/30545000703072",rarity:"Special",json:"557/163307/63/346/30545000703072"},"Beating hearts":{webp:"541/65415/164/111/30545000703067",rarity:"Special",json:"541/65415/164/111/30545000703067"},"Black sea":{webp:"572/34572/163/302/30545000703050",rarity:"Special",json:"572/34572/163/302/30545000703050"},"Burst of light":{webp:"565/67316/327/32/30545000703053",rarity:"Special",json:"565/67316/327/32/30545000703053"},"Cathode ray tube":{webp:"573/10240/176/221/30545000702774",rarity:"Special",json:"573/10240/176/221/30545000702774"},"Chemical reaction":{webp:"561/25253/244/136/30545000702666",rarity:"Special",json:"561/25253/244/136/30545000702666"},"Cosmic blast":{webp:"557/163255/146/46/30545000702654",rarity:"Special",json:"557/163255/146/46/30545000702654"},"Craft scissors":{webp:"565/67335/21/72/30545000702665",rarity:"Special",json:"565/67335/21/72/30545000702665"},"Cucurbita pepo":{webp:"555/175742/220/260/30545000703126",rarity:"Special",json:"555/175742/220/260/30545000703126"},"Cyber shuriken":{webp:"561/25253/244/141/30545000703077",rarity:"Special",json:"561/25253/244/141/30545000703077"},"Digital borealis":{webp:"557/163227/351/236/30545000703011",rarity:"Special",json:"557/163227/351/236/30545000703011"},"Electric sheep":{webp:"554/156326/105/21/30545000703014",rarity:"Special",json:"554/156326/105/21/30545000703014"},"Far north":{webp:"551/134444/117/265/30545000703076",rarity:"Special",json:"551/134444/117/265/30545000703076"},"Flowing metal":{webp:"560/100572/177/176/30545000703102",rarity:"Special",json:"560/100572/177/176/30545000703102"},Thankos:{webp:"552/130137/232/227/30545000702762",rarity:"Special",json:"552/130137/232/227/30545000702762"},Holi:{webp:"551/27323/272/14/30545000703040",rarity:"Special",json:"551/27323/272/14/30545000703040"},"Yellow Bug":{webp:"547/116456/65/230/30545000703111",rarity:"Special",json:"547/116456/65/230/30545000703111"}};
    const paints = Object.keys(paints_);

    const host = document.createElement("div");
    document.body.appendChild(host);
    const root = host.attachShadow({ mode: "open" });

    const style = document.createElement("style");
    style.innerHTML = `
        .mini-box {
            z-index: 999999;
            position: absolute;
            top: 100px;
            left: 100px;
            width: 150px;
            background-color: #f9f9f9;
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,.3);
            cursor: move;
            user-select: none;
            font-family: Arial, sans-serif;
            display: block; /* Started as visible */
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .header label {
            font-size: 16px;
            font-weight: bold;
            color: #000;
        }
        /* Selectors styled like the original 'connect' button/select menu */
        .dropdown {
            position: relative;
            width: 100%;
            background-color: #eee;
            color: #000;
            padding: 4px;
            margin-top: 4px;
            border: 1px solid #999;
            border-radius: 3px;
            cursor: pointer;
            font-size: 12px;
            box-sizing: border-box;
        }
        .dropdown:hover {
            background-color: #fff;
        }
        .dropdown .selected {
            display: flex;
            align-items: center;
            height: 20px;
        }
        .dropdown img {
            width: 16px;
            height: 16px;
            margin-right: 6px;
        }
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background-color: #fff;
            border: 1px solid #999;
            border-radius: 3px;
            max-height: 250px;
            overflow-y: auto;
            display: none;
            z-index: 1001;
        }
        .dropdown-menu div {
            padding: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            color: #000;
        }
        .dropdown-menu div:hover {
            background-color: #0078d7;
            color: #fff;
        }
        .label-small {
            font-size: 10px;
            color: #222;
            margin-top: 6px;
            font-weight: bold;
        }
    `;
    root.appendChild(style);

    const box = document.createElement("div");
    box.className = "mini-box";
    box.id = "box";
    box.innerHTML = `
        <div class="header"><label>paints</label></div>
        <div class="label-small">CURRENT</div>
        <div class="dropdown" id="currentDropdown">
            <div class="selected">Select...</div>
            <div class="dropdown-menu"></div>
        </div>
        <div class="label-small">SWAP</div>
        <div class="dropdown" id="selectedDropdown">
            <div class="selected">Select...</div>
            <div class="dropdown-menu"></div>
        </div>
    `;
    root.appendChild(box);

    let hue = 0;
    setInterval(() => {
        hue = (hue + 1) % 360;
        box.style.backgroundColor = `hsl(${hue}, 100%, 60%)`;
    }, 50);

    let isVisible = true;
    function toggleMenu() {
        isVisible = !isVisible;
        box.style.display = isVisible ? "block" : "none";
    }

    window.addEventListener("keydown", (e) => {
        if (e.keyCode === 118 || e.keyCode === 18 || e.keyCode === 50) {
            e.preventDefault();
            toggleMenu();
        }
    });

    let isDragging = false, offset = [0,0];
    box.addEventListener('mousedown', (e) => {
        if(e.target.closest('.dropdown')) return;
        isDragging = true;
        offset = [box.offsetLeft - e.clientX, box.offsetTop - e.clientY];
    });
    document.addEventListener('mousemove', (e) => {
        if (!isDragging) return;
        box.style.left = (e.clientX + offset[0]) + 'px';
        box.style.top  = (e.clientY + offset[1]) + 'px';
    });
    document.addEventListener('mouseup', () => isDragging = false);

    function setupDropdown(id) {
        const dropdown = root.getElementById(id);
        const menuEl = dropdown.querySelector(".dropdown-menu");
        const selectedEl = dropdown.querySelector(".selected");

        menuEl.innerHTML = paints.map(p => `
            <div data-value="${p}">
                <img src="https://s.eu.tankionline.com/${(paints_[p].src || paints_.Green.src)}/image.webp">
                ${p}
            </div>
        `).join("");

        dropdown.addEventListener("click", (e) => {
            const open = menuEl.style.display === "block";
            root.querySelectorAll('.dropdown-menu').forEach(m => m.style.display = 'none');
            menuEl.style.display = open ? "none" : "block";
            e.stopPropagation();
        });

        menuEl.addEventListener("click", (e) => {
            const item = e.target.closest("div[data-value]");
            if (item) {
                selectedEl.innerHTML = item.innerHTML;
                selectedEl.dataset.value = item.dataset.value;

                const cur = root.getElementById("currentDropdown").querySelector(".selected").dataset.value;
                const sel = root.getElementById("selectedDropdown").querySelector(".selected").dataset.value;
                if (cur && sel) localStorage.setItem("paintEdit", JSON.stringify([cur, sel]));
            }
        });
    }

    window.addEventListener('click', () => root.querySelectorAll('.dropdown-menu').forEach(m => m.style.display = 'none'));
    setupDropdown("currentDropdown");
    setupDropdown("selectedDropdown");

    const saved = localStorage.getItem("paintEdit");
    if (saved) {
        const [s1, s2] = JSON.parse(saved);
        const applySaved = (id, val) => {
            const opt = root.getElementById(id).querySelector(`.dropdown-menu div[data-value="${val}"]`);
            if (opt) {
                const sel = root.getElementById(id).querySelector(".selected");
                sel.innerHTML = opt.innerHTML;
                sel.dataset.value = val;
            }
        };
        applySaved("currentDropdown", s1);
        applySaved("selectedDropdown", s2);
    }

    const fetch_ = window.fetch;
    window.fetch = new Proxy(fetch_, {
        apply: async function(target, thisArg, args) {
            const cur = root.getElementById("currentDropdown").querySelector(".selected").dataset.value;
            const sel = root.getElementById("selectedDropdown").querySelector(".selected").dataset.value;

            if (typeof args[0] === "string" && (args[0].endsWith("image.webp") || args[0].endsWith("frame.json"))) {
                if (cur && sel && paints_[cur] && paints_[sel]) {
                    const find = paints_[cur].webp;
                    const replace = paints_[sel].webp;
                    if (find && args[0].includes(find)) {
                        args[0] = args[0].replace(find, replace);
                    }
                }
            }
            return target.apply(thisArg, args);
        }
    });
})();