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

85 lines
58 KiB

--[[
GetDetailedItemLevelInfo Polyfill, v 1.0
by Erorus for The Undermine Journal
https://theunderminejournal.com/
Based on these "specs" for a GetDetailedItemLevelInfo function coming in 7.1
https://www.reddit.com/r/woweconomy/comments/50hp5d/warning_be_careful_flipping/d74olsy
Pass in an itemstring/link to GetDetailedItemLevelInfo
Returns effectiveItemLevel, previewItemLevel, baseItemLevel
This should use the in-game function if it already exists,
otherwise it'll define a function that does what *I think* the official function would do.
]]
local addonName, addonTable = ...
local bonusLevelBoost = {[15]=4,[44]=1,[171]=2,[448]=2,[449]=3,[450]=4,[451]=-3,[497]=50,[499]=1,[526]=1,[527]=2,[545]=2,[546]=1,[547]=1,[558]=1,[559]=2,[560]=1,[561]=1,[562]=1,[566]=1,[567]=2,[571]=1,[575]=4,[576]=6,[577]=2,[591]=4,[592]=5,[593]=3,[594]=3,[595]=2,[596]=-4,[597]=-3,[598]=-2,[599]=-1,[609]=8,[617]=4,[618]=6,[619]=4,[620]=6,[622]=1,[623]=2,[624]=3,[625]=4,[626]=5,[627]=6,[628]=7,[629]=8,[630]=9,[631]=10,[632]=11,[633]=12,[634]=13,[635]=14,[636]=15,[637]=16,[638]=17,[639]=18,[640]=19,[641]=20,[644]=4,[646]=6,[648]=5,[651]=3,[665]=3,[666]=0,[667]=1,[668]=2,[669]=3,[670]=1,[671]=2,[672]=3,[673]=4,[674]=5,[675]=6,[676]=7,[677]=8,[678]=9,[679]=10,[680]=20,[681]=22,[682]=24,[694]=15,[695]=30,[696]=45,[697]=60,[698]=75,[699]=100,[700]=5,[701]=10,[702]=3,[703]=6,[704]=12,[706]=30,[707]=15,[708]=2,[709]=4,[710]=14,[754]=1,[755]=2,[756]=3,[757]=5,[758]=6,[759]=7,[760]=8,[761]=2,[762]=3,[763]=4,[764]=6,[765]=7,[766]=8,[769]=5,[1372]=-100,[1373]=-99,[1374]=-98,[1375]=-97,[1376]=-96,[1377]=-95,[1378]=-94,[1379]=-93,[1380]=-92,[1381]=-91,[1382]=-90,[1383]=-89,[1384]=-88,[1385]=-87,[1386]=-86,[1387]=-85,[1388]=-84,[1389]=-83,[1390]=-82,[1391]=-81,[1392]=-80,[1393]=-79,[1394]=-78,[1395]=-77,[1396]=-76,[1397]=-75,[1398]=-74,[1399]=-73,[1400]=-72,[1401]=-71,[1402]=-70,[1403]=-69,[1404]=-68,[1405]=-67,[1406]=-66,[1407]=-65,[1408]=-64,[1409]=-63,[1410]=-62,[1411]=-61,[1412]=-60,[1413]=-59,[1414]=-58,[1415]=-57,[1416]=-56,[1417]=-55,[1418]=-54,[1419]=-53,[1420]=-52,[1421]=-51,[1422]=-50,[1423]=-49,[1424]=-48,[1425]=-47,[1426]=-46,[1427]=-45,[1428]=-44,[1429]=-43,[1430]=-42,[1431]=-41,[1432]=-40,[1433]=-39,[1434]=-38,[1435]=-37,[1436]=-36,[1437]=-35,[1438]=-34,[1439]=-33,[1440]=-32,[1441]=-31,[1442]=-30,[1443]=-29,[1444]=-28,[1445]=-27,[1446]=-26,[1447]=-25,[1448]=-24,[1449]=-23,[1450]=-22,[1451]=-21,[1452]=-20,[1453]=-19,[1454]=-18,[1455]=-17,[1456]=-16,[1457]=-15,[1458]=-14,[1459]=-13,[1460]=-12,[1461]=-11,[1462]=-10,[1463]=-9,[1464]=-8,[1465]=-7,[1466]=-6,[1467]=-5,[1468]=-4,[1469]=-3,[1470]=-2,[1471]=-1,[1472]=0,[1473]=1,[1474]=2,[1475]=3,[1476]=4,[1477]=5,[1478]=6,[1479]=7,[1480]=8,[1481]=9,[1482]=10,[1483]=11,[1484]=12,[1485]=13,[1486]=14,[1487]=15,[1488]=16,[1489]=17,[1490]=18,[1491]=19,[1492]=20,[1493]=21,[1494]=22,[1495]=23,[1496]=24,[1497]=25,[1498]=26,[1499]=27,[1500]=28,[1501]=29,[1502]=30,[1503]=31,[1504]=32,[1505]=33,[1506]=34,[1507]=35,[1508]=36,[1509]=37,[1510]=38,[1511]=39,[1512]=40,[1513]=41,[1514]=42,[1515]=43,[1516]=44,[1517]=45,[1518]=46,[1519]=47,[1520]=48,[1521]=49,[1522]=50,[1523]=51,[1524]=52,[1525]=53,[1526]=54,[1527]=55,[1528]=56,[1529]=57,[1530]=58,[1531]=59,[1532]=60,[1533]=61,[1534]=62,[1535]=63,[1536]=64,[1537]=65,[1538]=66,[1539]=67,[1540]=68,[1541]=69,[1542]=70,[1543]=71,[1544]=72,[1545]=73,[1546]=74,[1547]=75,[1548]=76,[1549]=77,[1550]=78,[1551]=79,[1552]=80,[1553]=81,[1554]=82,[1555]=83,[1556]=84,[1557]=85,[1558]=86,[1559]=87,[1560]=88,[1561]=89,[1562]=90,[1563]=91,[1564]=92,[1565]=93,[1566]=94,[1567]=95,[1568]=96,[1569]=97,[1570]=98,[1571]=99,[1572]=100,[1573]=101,[1574]=102,[1575]=103,[1576]=104,[1577]=105,[1578]=106,[1579]=107,[1580]=108,[1581]=109,[1582]=110,[1583]=111,[1584]=112,[1585]=113,[1586]=114,[1587]=115,[1588]=116,[1589]=117,[1590]=118,[1591]=119,[1592]=120,[1593]=121,[1594]=122,[1595]=123,[1596]=124,[1597]=125,[1598]=126,[1599]=127,[1600]=128,[1601]=129,[1602]=130,[1603]=131,[1604]=132,[1605]=133,[1606]=134,[1607]=135,[1608]=136,[1609]=137,[1610]=138,[1611]=139,[1612]=140,[1613]=141,[1614]=142,[1615]=143,[1616]=144,[1617]=145,[1618]=146,[1619]=147,[1620]=148,[1621]=149,[1622]=150,[1623]=151,[1624]=152,[1625]=153,[1626]=154,[1627]=155,[1628]=156,[1629]=157,[1630]=158,[1631]=159,[1632]=160,[1633]=161,[1634]=162,[1635]=163,[1636]=164,[1637]=165,[1638]=166,[1639]=167,[1640]=168,[1641]=169,[1642]=170,[1643]=171,[1644]=172,[1645]=173,[1646]=174,[1647]=175,[1648]=176,[1649]=177,[1650]=178,[1651]=179,[1652]=180,[1653]=181,[1654]=182,[1655]=183,[1656]=184,[1657]=185,[1658]=186,[1659]=187,[1660]=188,[1661]=189,[1662]=190,[1663]=191,[1664]=192,[1665]=193,[1666]=194,[1667]=195,[1668]=196,[1669]=197,[1670]=198,[1671]=199,[1672]=200,[1800]=24,[1810]=140,[1817]=2,[1818]=4,[1819]=3,[1820]=5,[2829]=-400,[2830]=-399,[2831]=-398,[2832]=-397,[2833]=-396,[2834]=-395,[2835]=-394,[2836]=-393,[2837]=-392,[2838]=-391,[2839]=-390,[2840]=-389,[2841]=-388,[2842]=-387,[2843]=-386,[2844]=-385,[2845]=-384,[2846]=-383,[2847]=-382,[2848]=-381,[2849]=-380,[2850]=-379,[2851]=-378,[2852]=-377,[2853]=-376,[2854]=-375,[2855]=-374,[2856]=-373,[2857]=-372,[2858]=-371,[2859]=-370,[2860]=-369,[2861]=-368,[2862]=-367,[2863]=-366,[2864]=-365,[2865]=-364,[2866]=-363,[2867]=-362,[2868]=-361,[2869]=-360,[2870]=-359,[2871]=-358,[2872]=-357,[2873]=-356,[2874]=-355,[2875]=-354,[2876]=-353,[2877]=-352,[2878]=-351,[2879]=-350,[2880]=-349,[2881]=-348,[2882]=-347,[2883]=-346,[2884]=-345,[2885]=-344,[2886]=-343,[2887]=-342,[2888]=-341,[2889]=-340,[2890]=-339,[2891]=-338,[2892]=-337,[2893]=-336,[2894]=-335,[2895]=-334,[2896]=-333,[2897]=-332,[2898]=-331,[2899]=-330,[2900]=-329,[2901]=-328,[2902]=-327,[2903]=-326,[2904]=-325,[2905]=-324,[2906]=-323,[2907]=-322,[2908]=-321,[2909]=-320,[2910]=-319,[2911]=-318,[2912]=-317,[2913]=-316,[2914]=-315,[2915]=-314,[2916]=-313,[2917]=-312,[2918]=-311,[2919]=-310,[2920]=-309,[2921]=-308,[2922]=-307,[2923]=-306,[2924]=-305,[2925]=-304,[2926]=-303,[2927]=-302,[2928]=-301,[2929]=-300,[2930]=-299,[2931]=-298,[2932]=-297,[2933]=-296,[2934]=-295,[2935]=-294,[2936]=-293,[2937]=-292,[2938]=-291,[2939]=-290,[2940]=-289,[2941]=-288,[2942]=-287,[2943]=-286,[2944]=-285,[2945]=-284,[2946]=-283,[2947]=-282,[2948]=-281,[2949]=-280,[2950]=-279,[2951]=-278,[2952]=-277,[2953]=-276,[2954]=-275,[2955]=-274,[2956]=-273,[2957]=-272,[2958]=-271,[2959]=-270,[2960]=-269,[2961]=-268,[2962]=-267,[2963]=-266,[2964]=-265,[2965]=-264,[2966]=-263,[2967]=-262,[2968]=-261,[2969]=-260,[2970]=-259,[2971]=-258,[2972]=-257,[2973]=-256,[2974]=-255,[2975]=-254,[2976]=-253,[2977]=-252,[2978]=-251,[2979]=-250,[2980]=-249,[2981]=-248,[2982]=-247,[2983]=-246,[2984]=-245,[2985]=-244,[2986]=-243,[2987]=-242,[2988]=-241,[2989]=-240,[2990]=-239,[2991]=-238,[2992]=-237,[2993]=-236,[2994]=-235,[2995]=-234,[2996]=-233,[2997]=-232,[2998]=-231,[2999]=-230,[3000]=-229,[3001]=-228,[3002]=-227,[3003]=-226,[3004]=-225,[3005]=-224,[3006]=-223,[3007]=-222,[3008]=-221,[3009]=-220,[3010]=-219,[3011]=-218,[3012]=-217,[3013]=-216,[3014]=-215,[3015]=-214,[3016]=-213,[3017]=-212,[3018]=-211,[3019]=-210,[3020]=-209,[3021]=-208,[3022]=-207,[3023]=-206,[3024]=-205,[3025]=-204,[3026]=-203,[3027]=-202,[3028]=-201,[3029]=-200,[3030]=-199,[3031]=-198,[3032]=-197,[3033]=-196,[3034]=-195,[3035]=-194,[3036]=-193,[3037]=-192,[3038]=-191,[3039]=-190,[3040]=-189,[3041]=-188,[3042]=-187,[3043]=-186,[3044]=-185,[3045]=-184,[3046]=-183,[3047]=-182,[3048]=-181,[3049]=-180,[3050]=-179,[3051]=-178,[3052]=-177,[3053]=-176,[3054]=-175,[3055]=-174,[3056]=-173,[3057]=-172,[3058]=-171,[3059]=-170,[3060]=-169,[3061]=-168,[3062]=-167,[3063]=-166,[3064]=-165,[3065]=-164,[3066]=-163,[3067]=-162,[3068]=-161,[3069]=-160,[3070]=-159,[3071]=-158,[3072]=-157,[3073]=-156,[3074]=-155,[3075]=-154,[3076]=-153,[3077]=-152,[3078]=-151,[3079]=-150,[3080]=-149,[3081]=-148,[3082]=-147,[3083]=-146,[3084]=-145,[3085]=-144,[3086]=-143,[3087]=-142,[3088]=-141,[3089]=-140,[3090]=-139,[3091]=-138,[3092]=-137,[3093]=-136,[3094]=-135,[3095]=-134,[3096]=-133,[3097]=-132,[3098]=-131,[3099]=-130,[3100]=-129,[3101]=-128,[3102]=-127,[3103]=-126,[3104]=-125,[3105]=-124,[3106]=-123,[3107]=-122,[3108]=-121,[3109]=-120,[3110]=-119,[3111]=-118,[3112]=-117,[3113]=-116,[3114]=-115,[3115]=-114,[3116]=-113,[3117]=-112,[3118]=-111,[3119]=-110,[3120]=-109,[3121]=-108,[3122]=-107,[3123]=-106,[3124]=-105,[3125]=-104,[3126]=-103,[3127]=-102,[3128]=-101,[3130]=201,[3131]=202,[3132]=203,[3133]=204,[3134]=205,[3135]=206,[3136]=207,[3137]=208,[3138]=209,[3139]=210,[3140]=211,[3141]=212,[3142]=213,[3143]=214,[3144]=215,[3145]=216,[3146]=217,[3147]=218,[3148]=219,[3149]=220,[3150]=221,[3151]=222,[3152]=223,[3153]=224,[3154]=225,[3155]=226,[3156]=227,[3157]=228,[3158]=229,[3159]=230,[3160]=231,[3161]=232,[3162]=233,[3163]=234,[3164]=235,[3165]=236,[3166]=237,[3167]=238,[3168]=239,[3169]=240,[3170]=241,[3171]=242,[3172]=243,[3173]=244,[3174]=245,[3175]=246,[3176]=247,[3177]=248,[3178]=249,[3179]=250,[3180]=251,[3181]=252,[3182]=253,[3183]=254,[3184]=255,[3185]=256,[3186]=257,[3187]=258,[3188]=259,[3189]=260,[3190]=261,[3191]=262,[3192]=263,[3193]=264,[3194]=265,[3195]=266,[3196]=267,[3197]=268,[3198]=269,[3199]=270,[3200]=271,[3201]=272,[3202]=273,[3203]=274,[3204]=275,[3205]=276,[3206]=277,[3207]=278,[3208]=279,[3209]=280,[3210]=281,[3211]=282,[3212]=283,[3213]=284,[3214]=285,[3215]=286,[3216]=287,[3217]=288,[3218]=289,[3219]=290,[3220]=291,[3221]=292,[3222]=293,[3223]=294,[3224]=295,[3225]=296,[3226]=297,[3227]=298,[3228]=299,[3229]=300,[3230]=301,[3231]=302,[3232]=303,[3233]=304,[3234]=305,[3235]=306,[3236]=307,[3237]=308,[3238]=309,[3239]=310,[3240]=311,[3241]=312,[3242]=313,[3243]=314,[3244]=315,[3245]=316,[3246]=317,[3247]=318,[3248]=319,[3249]=320,[3250]=321,[3251]=322,[3252]=323,[3253]=324,[3254]=325,[3255]=326,[3256]=327,[3257]=328,[3258]=329,[3259]=330,[3260]=331,[3261]=332,[3262]=333,[3263]=334,[3264]=335,[3265]=336,[3266]=337,[3267]=338,[3268]=339,[3269]=340,[3270]=341,[3271]=342,[3272]=343,[3273]=344,[3274]=345,[3275]=346,[3276]=347,[3277]=348,[3278]=349,[3279]=350,[3280]=351,[3281]=352,[3282]=353,[3283]=354,[3284]=355,[3285]=356,[3286]=357,[3287]=358,[3288]=359,[3289]=360,[3290]=361,[3291]=362,[3292]=363,[3293]=364,[3294]=365,[3295]=366,[3296]=367,[3297]=368,[3298]=369,[3299]=370,[3300]=371,[3301]=372,[3302]=373,[3303]=374,[3304]=375,[3305]=376,[3306]=377,[3307]=378,[3308]=379,[3309]=380,[3310]=381,[3311]=382,[3312]=383,[3313]=384,[3314]=385,[3315]=386,[3316]=387,[3317]=388,[3318]=389,[3319]=390,[3320]=391,[3321]=392,[3322]=393,[3323]=394,[3324]=395,[3325]=396,[3326]=397,[3327]=398,[3328]=399,[3329]=400,[3330]=3,[3331]=1,[3332]=6,[3333]=7,[3334]=8,[3340]=2,[3381]=0,[3382]=1,[3383]=2,[3384]=4,[3393]=4,[3438]=8,[3439]=11,[3440]=14,[3455]=30,[3492]=2,[3493]=26,[3494]=34,[3526]=16,[3530]=3,[3570]=6,[3571]=90,[3586]=45,[3587]=6,[3588]=9,[3593]=1,[3594]=2,[3595]=3,[3598]=0,[3599]=1,[3600]=2,[3601]=3,[3602]=4,[3603]=5,[3604]=6,[3605]=7,[3606]=8,[3607]=9,[3608]=10,[3630]=9,[3824]=-1,[3825]=1,[3826]=2,[3827]=3,[4213]=0,[4232]=15,[4775]=5,[4797]=-30,[4926]=8,[4928]=10,[4929]=0,[4930]=0,[4931]=0,[4936]=0,[4948]=-20,[4949]=-10,[4950]=0,[5117]=-15,[5118]=-5,[5375]=25,[5814]=0,[5846]=1,[5847]=2,[5848]=3,[5849]=4,[5850]=5,[5851]=6,[5852]=7,[5853]=8,[5854]=9,[5855]=10,[5856]=11,[5857]=12,[5858]=13,[5859]=14,[5860]=15,[5861]=16,[5862]=17,[5863]=18,[5864]=19,[5865]=20,[5866]=21,[5867]=22,[5868]=23,[5869]=24,[5870]=25,[5871]=26,[5872]=27,[5873]=28,[5874]=29,[5875]=30,[5876]=31,[5877]=32,[5878]=33,[5879]=34,[5880]=35,[5881]=36,[5882]=37,[5883]=38,[5884]=39,[5885]=40,[5886]=41,[5887]=42,[5888]=43,[5889]=44,[5890]=45,[5891]=46,[5892]=47,[5893]=48,[5894]=49,[5895]=50,[5896]=51,[5897]=52,[5898]=53,[5899]=54,[5900]=55,[5901]=56,[5902]=57,[5903]=58,[5904]=59,[5905]=60,[5906]=61,[5907]=62,[5908]=63,[5909]=64,[5910]=65,[5911]=66,[5912]=67,[5913]=68,[5914]=69,[5915]=70,[5916]=71,[5917]=72,[5918]=73,[5919]=74,[5920]=75,[5921]=76,[5922]=77,[5923]=78,[5924]=79,[5925]=80,[5926]=81,[5927]=82,[5928]=83,[5929]=84,[5930]=85,[5931]=86,[5932]=87,[5933]=88,[5934]=89,[5935]=90,[5936]=91,[5937]=92,[5938]=93,[5939]=94,[5940]=95,[5941]=96,[5942]=97,[5943]=98,[5944]=99,[5945]=100,[5946]=101,[5947]=102,[5948]=103,[5949]=104,[5950]=105,[5951]=106,[5952]=107,[5953]=108,[5954]=109,[5955]=110,[5956]=111,[5957]=112,[5958]=113,[5959]=114,[5960]=115,[5961]=116,[5962]=117,[5963]=118,[5964]=119,[5965]=120,[5966]=121,[5967]=122,[5968]=123,[5969]=124,[5970]=125,[5971]=126,[5972]=127,[5973]=128,[5974]=129,[5975]=130,[5976]=131,[5977]=132,[5978]=133,[5979]=134,[5980]=135,[5981]=136,[5982]=137,[5983]=138,[5984]=139,[5985]=140,[5986]=141,[5987]=142,[5988]=143,[5989]=144,[5990]=145,[5991]=146,[5992]=147,[5993]=148,[5994]=149,[5995]=150,[5996]=151,[5997]=152,[5998]=153,[5999]=154,[6000]=155,[6001]=156,[6002]=157,[6003]=158,[6004]=159,[6005]=160,[6006]=161,[6007]=162,[6008]=163,[6009]=164,[6010]=165,[6011]=166,[6012]=167,[6013]=168,[6014]=169,[6015]=170,[6016]=171,[6017]=172,[6018]=173,[6019]=174,[6020]=175,[6021]=176,[6022]=177,[6023]=178,[6024]=179,[6025]=180,[6026]=181,[6027]=182,[6028]=183,[6029]=184,[6030]=185,[6031]=186,[6032]=187,[6033]=188,[6034]=189,[6035]=190,[6036]=191,[6037]=192,[6038]=193,[6039]=194,[6040]=195,[6041]=196,[6042]=197,[6043]=198,[6044]=199,[6045]=200,[6046]=201,[6047]=202,[6048]=203,[6049]=204,[6050]=205,[6051]=206,[6052]=207,[6053]=208,[6054]=209,[6055]=210,[6056]=211,[6057]=212,[6058]=213,[6059]=214,[6060]=215,[6061]=216,[6062]=217,[6063]=218,[6064]=219,[6065]=220,[6066]=221,[6067]=222,[6068]=223,[6069]=224,[6070]=225,[6071]=226,[6072]=227,[6073]=228,[6074]=229,[6075]=230,[6076]=231,[6077]=232,[6078]=233,[6079]=234,[6080]=235,[6081]=236,[6082]=237,[6083]=238,[6084]=239,[6085]=240,[6086]=241,[6087]=242,[6088]=243,[6089]=244,[6090]=245,[6091]=246,[6092]=247,[6093]=248,[6094]=249,[6095]=250,[6096]=251,[6097]=252,[6098]=253,[6099]=254,[6100]=255,[6101]=256,[6102]=257,[6103]=258,[6104]=259,[6105]=260,[6106]=261,[6107]=262,[6108]=263,[6109]=264,[6110]=265,[6111]=266,[6112]=267,[6113]=268,[6114]=269,[6115]=270,[6116]=271,[6117]=272,[6118]=273,[6119]=274,[6120]=275,[6121]=276,[6122]=277,[6123]=278,[6124]=279,[6125]=280,[6126]=281,[6127]=282,[6128]=283,[6129]=284,[6130]=285,[6131]=286,[6132]=287,[6133]=288,[6134]=289,[6135]=290,[6136]=291,[6137]=292,[6138]=293,[6139]=294,[6140]=295,[6141]=296,[6142]=297,[6143]=298,[6144]=299,[6145]=300,[6146]=301,[6147]=302,[6148]=303,[6149]=304,[6150]=305,[6151]=306,[6152]=307,[6153]=308,[6154]=309,[6155]=310,[6156]=311,[6157]=312,[6158]=313,[6159]=314,[6160]=315,[6161]=316,[6162]=317,[6163]=318,[6164]=319,[6165]=320,[6166]=321,[6167]=322,[6168]=323,[6169]=324,[6170]=325,[6171]=326,[6172]=327,[6173]=328,[6174]=329,[6175]=330,[6176]=331,[6177]=332,[6178]=333,[6179]=334,[6180]=335,[6181]=336,[6182]=337,[6183]=338,[6184]=339,[6185]=340,[6186]=341,[6187]=342,[6188]=343,[6189]=344,[6190]=345,[6191]=346,[6192]=347,[6193]=348,[6194]=349,[6195]=350,[6196]=351,[6197]=352,[6198]=353,[6199]=354,[6200]=355,[6201]=356,[6202]=357,[6203]=358,[6204]=359,[6205]=360,[6206]=361,[6207]=362,[6208]=363,[6209]=364,[6210]=365,[6211]=366,[6212]=367,[6213]=368,[6214]=369,[6215]=370,[6216]=371,[6217]=372,[6218]=373,[6219]=374,[6220]=375,[6221]=376,[6222]=377,[6223]=378,[6224]=379,[6225]=380,[6226]=381,[6227]=382,[6228]=383,[6229]=384,[6230]=385,[6231]=386,[6232]=387,[6233]=388,[6234]=389,[6235]=390,[6236]=391,[6237]=392,[6238]=393,[6239]=394,[6240]=395,[6241]=396,[6242]=397,[6243]=398,[6244]=399,[6245]=400,[6273]=2,[6274]=4,[6275]=6,[6276]=8,[6277]=10,[6278]=12,[6279]=14,[6280]=16,[6281]=18,[6282]=20,[6283]=22,[6284]=24,[6285]=26,[6286]=30,[6316]=0,[6577]=30,[6580]=30,[6581]=30,[6582]=30,[6583]=30,[6584]=30,[6585]=30,[6586]=30,[6587]=30,[6588]=30,[6589]=30,[6590]=30,[6591]=30,[6592]=30,[6593]=30,[6594]=30,[6595]=30,[6596]=30,[6597]=30,[6598]=30,[6599]=30,[6600]=30,[6601]=30,[6602]=30,[6603]=30,[6665]=40,[6666]=60,[6667]=150,[6668]=162,}
local bonusPreviewLevel = {[1726]=845,[1727]=865,[1798]=705,[1799]=720,[1801]=690,[1805]=865,[1806]=880,[1807]=850,[1824]=0,[1825]=0,[1826]=825,[3379]=835,[3394]=0,[3395]=0,[3396]=0,[3397]=0,[3399]=840,[3410]=870,[3411]=870,[3412]=875,[3413]=875,[3414]=880,[3415]=880,[3416]=885,[3417]=885,[3418]=890,[3427]=805,[3428]=840,[3432]=0,[3437]=830,[3443]=870,[3444]=885,[3445]=900,[3446]=855,[3449]=850,[3450]=860,[3451]=865,[3452]=855,[3453]=860,[3454]=875,[3457]=810,[3460]=810,[3461]=815,[3462]=855,[3463]=865,[3464]=875,[3465]=885,[3466]=860,[3467]=860,[3468]=875,[3469]=890,[3470]=845,[3473]=0,[3474]=0,[3476]=870,[3477]=875,[3478]=880,[3479]=890,[3480]=900,[3481]=880,[3482]=815,[3483]=820,[3484]=825,[3485]=830,[3486]=835,[3487]=820,[3488]=825,[3489]=830,[3490]=835,[3491]=840,[3505]=850,[3506]=865,[3507]=880,[3508]=895,[3509]=895,[3510]=895,[3514]=875,[3515]=880,[3516]=890,[3517]=895,[3518]=905,[3519]=910,[3520]=860,[3521]=865,[3534]=900,[3535]=905,[3536]=910,[3561]=870,[3562]=885,[3563]=900,[3564]=855,[3565]=810,[3566]=810,[3567]=810,[3568]=810,[3572]=0,[3575]=855,[3576]=855,[3577]=855,[3579]=810,[3580]=810,[3581]=810,[3582]=810,[3583]=810,[3584]=810,[3610]=870,[3611]=885,[3612]=900,[3613]=855,[3614]=860,[5119]=0,[5479]=0,}
local bonusLevelCurve = {[615]=2794,[645]=3157,[656]=3157,[664]=1648,[692]=1617,[767]=1558,[768]=1688,[1723]=1746,[1724]=1748,[1725]=1749,[1729]=1751,[1730]=1752,[1731]=1753,[1732]=1648,[1733]=1758,[1734]=1759,[1735]=1759,[1736]=1756,[1737]=1757,[1738]=1757,[1739]=1760,[1740]=1761,[1741]=1761,[1788]=1787,[1789]=1788,[1790]=1789,[1791]=1790,[1792]=1756,[1793]=1760,[1794]=1758,[1795]=5449,[1796]=1824,[1812]=2002,[3342]=2202,[3380]=2196,[3387]=2208,[3388]=2209,[3389]=2210,[3398]=2247,[3448]=2466,[3502]=2794,[3578]=3039,[3585]=3157,[3589]=3170,[3590]=3171,[3596]=2794,[3621]=4801,[3622]=3171,[3623]=4242,[3624]=4243,[3625]=4244,[3626]=4245,[3627]=4246,[3628]=4242,[3631]=5063,[3632]=3039,[3633]=5063,[3634]=5063,[3635]=5063,[3636]=5063,[3637]=5063,[3638]=5063,[3639]=5063,[3640]=5063,[3641]=5063,[3642]=5063,[3643]=5063,[3644]=5063,[3645]=5063,[3646]=5063,[3647]=5063,[3648]=5063,[3649]=5063,[3650]=5063,[3651]=5063,[3652]=5063,[3653]=5063,[3654]=5063,[3655]=5063,[3656]=5063,[3657]=5063,[3658]=5063,[3659]=5063,[3660]=5063,[3661]=5063,[3662]=5063,[3663]=5063,[3664]=5063,[3665]=5063,[3666]=5063,[3667]=5063,[3668]=5063,[3669]=5063,[3670]=5063,[3671]=5063,[3672]=5063,[3673]=5063,[3674]=5063,[3675]=5063,[3676]=5063,[3677]=5063,[3678]=5063,[3679]=5063,[3680]=5063,[3681]=5063,[3682]=5063,[3683]=5063,[3684]=5063,[3685]=5063,[3686]=5063,[3687]=5063,[3688]=5063,[3689]=5063,[3690]=5063,[3691]=5063,[3692]=5063,[3693]=5063,[3694]=5063,[3695]=5063,[3696]=5063,[3697]=5063,[3698]=5063,[3699]=5063,[3700]=5063,[3701]=5063,[3702]=5063,[3703]=5063,[3704]=5063,[3705]=5063,[3706]=5063,[3707]=5063,[3708]=5063,[3709]=5063,[3710]=5063,[3711]=5063,[3712]=5064,[3713]=5064,[3714]=5064,[3715]=5064,[3716]=5064,[3717]=5064,[3718]=5064,[3719]=5064,[3720]=5064,[3721]=5064,[3722]=5064,[3723]=5064,[3724]=5064,[3725]=5064,[3726]=5064,[3727]=5064,[3728]=5064,[3729]=5064,[3730]=5064,[3731]=5064,[3732]=5064,[3733]=5064,[3734]=5064,[3735]=5064,[3736]=5064,[3737]=5064,[3738]=5064,[3739]=5064,[3740]=5064,[3741]=5064,[3742]=5064,[3743]=5064,[3744]=5064,[3745]=5064,[3746]=5064,[3747]=5064,[3748]=5064,[3749]=5064,[3750]=5064,[3751]=5064,[3752]=5064,[3753]=5064,[3754]=5064,[3755]=5064,[3756]=5064,[3757]=5064,[3758]=5064,[3759]=5064,[3760]=5064,[3761]=5064,[3762]=5064,[3763]=5064,[3764]=5064,[3765]=5064,[3766]=5064,[3767]=5064,[3768]=5064,[3769]=5064,[3770]=5064,[3771]=5064,[3772]=5064,[3773]=5064,[3774]=5064,[3775]=5064,[3776]=5064,[3777]=17258,[3778]=5064,[3779]=5064,[3780]=5064,[3781]=5064,[3782]=5064,[3783]=5064,[3784]=5064,[3785]=5064,[3786]=5064,[3787]=5064,[3788]=5064,[3789]=5064,[3790]=5064,[3791]=5063,[3792]=5064,[3793]=5063,[3794]=5063,[3795]=5063,[3796]=5063,[3797]=5063,[3798]=5063,[3799]=5063,[3800]=5063,[3801]=5063,[3802]=5063,[3803]=5063,[3804]=5086,[3805]=5086,[3806]=5086,[3807]=5091,[3808]=5100,[3809]=5099,[3810]=5098,[3811]=5097,[3812]=5096,[3813]=5095,[3814]=5094,[3815]=5093,[3816]=5092,[3817]=5101,[3818]=5102,[3819]=5103,[3820]=5086,[3821]=5086,[3823]=5086,[3828]=5234,[3829]=5235,[3830]=5236,[3831]=5237,[3832]=5238,[3833]=5239,[3834]=5240,[3835]=5241,[3836]=5242,[3837]=5243,[3838]=5244,[3839]=5245,[3840]=5273,[3841]=5274,[3842]=5278,[3843]=5282,[3844]=5286,[3845]=5292,[3846]=5296,[3847]=5300,[3848]=5304,[3849]=5277,[3850]=5281,[3851]=6033,[3852]=5291,[3853]=5295,[3854]=5299,[3855]=6093,[3856]=5307,[3857]=5246,[3858]=5247,[3859]=5248,[3860]=5249,[3861]=5250,[3862]=5251,[3863]=5252,[3864]=5253,[3865]=5254,[3866]=5255,[3867]=5256,[3868]=5257,[3869]=5258,[3870]=5276,[3871]=5280,[3872]=6035,[3873]=6036,[3874]=5294,[3875]=5298,[3876]=6091,[3877]=5306,[3878]=5259,[3879]=5260,[3880]=5261,[3881]=5262,[3882]=5263,[3883]=5264,[3884]=5265,[3885]=5266,[3886]=5267,[3887]=5268,[3888]=5270,[3889]=5271,[3890]=5272,[3891]=5275,[3892]=5279,[3893]=5283,[3894]=5289,[3895]=5293,[3896]=5297,[3897]=5301,[3898]=5305,[3899]=5309,[3900]=5310,[3901]=5312,[3902]=5313,[3903]=5314,[3904]=5315,[3905]=5318,[3906]=5319,[3907]=5320,[3908]=5321,[3909]=5322,[3910]=5323,[3911]=5324,[3912]=6029,[3913]=5326,[3914]=5327,[3915]=5328,[3916]=6153,[3917]=5330,[3918]=5331,[3919]=5332,[3920]=5333,[3921]=5334,[3922]=5335,[3923]=5336,[3924]=5337,[3925]=5338,[3926]=5339,[3927]=5340,[3928]=5341,[3929]=5342,[3930]=5343,[3931]=5344,[3932]=5345,[3933]=6031,[3934]=5347,[3935]=5348,[3936]=5349,[3937]=6083,[3938]=5351,[3939]=5352,[3940]=5353,[3941]=5311,[3942]=5316,[3943]=5354,[3944]=5355,[3945]=5356,[3946]=5357,[3947]=5358,[3948]=5359,[3949]=5360,[3950]=5361,[3951]=5362,[3952]=5363,[3953]=5364,[3954]=5365,[3955]=5366,[3956]=6025,[3957]=6134,[3958]=5369,[3959]=5370,[3960]=6151,[3961]=5372,[3962]=5373,[3963]=5374,[3964]=5375,[3965]=5376,[3966]=5377,[3967]=5378,[3968]=5379,[3969]=5380,[3970]=5381,[3971]=5382,[3972]=5383,[3973]=5384,[3974]=5385,[3975]=5386,[3976]=5387,[3977]=6027,[3978]=5389,[3979]=5390,[3980]=5391,[3981]=6152,[3982]=5393,[3998]=5449,[3999]=5449,[4000]=5451,[4001]=5448,[4002]=5451,[4003]=5448,[4004]=5448,[4005]=5449,[4006]=5451,[4007]=5448,[4008]=5449,[4009]=5451,[4010]=5448,[4011]=5449,[4012]=5451,[4013]=5448,[4014]=5449,[4015]=5451,[4016]=5448,[4017]=5449,[4018]=5451,[4019]=5448,[4020]=5449,[4021]=5451,[4022]=5448,[4023]=5449,[4024]=5451,[4025]=5448,[4026]=5449,[4027]=5451,[4028]=5448,[4029]=5449,[4030]=5451,[4031]=5448,[4032]=5449,[4033]=5451,[4034]=5448,[4035]=5449,[4036]=5451,[4037]=5448,[4038]=5449,[4039]=5451,[4040]=5448,[4041]=5451,[4042]=5448,[4043]=5449,[4044]=5451,[4045]=5448,[4046]=5449,[4047]=5451,[4048]=5448,[4049]=5449,[4050]=5451,[4051]=5448,[4052]=5449,[4053]=5451,[4054]=5449,[4055]=5448,[4056]=5449,[4057]=5451,[4058]=5448,[4059]=5449,[4060]=5451,[4061]=5448,[4062]=5449,[4063]=5451,[4064]=5448,[4065]=5449,[4066]=5451,[4067]=5448,[4068]=5449,[4069]=5451,[4070]=5448,[4071]=5449,[4072]=5451,[4074]=5449,[4075]=5448,[4076]=5448,[4077]=5449,[4079]=5448,[4080]=5449,[4082]=5448,[4083]=5449,[4085]=5448,[4086]=5449,[4088]=5448,[4089]=5449,[4090]=5448,[4091]=5449,[4092]=5448,[4093]=5449,[4094]=5448,[4095]=5449,[4096]=5448,[4097]=5449,[4098]=5448,[4099]=5449,[4100]=5448,[4101]=5449,[4102]=5448,[4103]=5449,[4104]=5448,[4105]=5449,[4106]=5448,[4107]=5449,[4108]=5448,[4109]=5449,[4110]=5448,[4111]=5449,[4112]=5448,[4113]=5449,[4114]=5448,[4115]=5449,[4116]=5448,[4117]=5449,[4118]=5448,[4119]=5449,[4120]=5448,[4121]=5449,[4122]=5448,[4123]=5449,[4124]=5448,[4125]=5449,[4126]=5448,[4127]=5449,[4128]=5448,[4129]=5449,[4130]=5448,[4131]=5449,[4132]=5448,[4133]=5449,[4134]=5448,[4135]=5449,[4136]=5448,[4137]=5449,[4138]=5448,[4139]=5449,[4140]=5448,[4141]=5449,[4142]=5449,[4143]=5448,[4144]=5715,[4145]=5715,[4146]=5448,[4147]=5449,[4148]=5448,[4149]=5449,[4150]=5715,[4151]=5715,[4152]=5448,[4153]=5449,[4154]=5448,[4155]=5449,[4156]=5448,[4157]=5449,[4158]=5448,[4159]=5449,[4160]=5715,[4161]=5715,[4162]=5448,[4163]=5449,[4164]=5448,[4165]=5449,[4166]=5448,[4167]=5449,[4168]=5448,[4169]=5449,[4170]=5448,[4171]=5449,[4172]=5448,[4173]=5449,[4174]=5448,[4175]=5449,[4176]=5448,[4177]=5449,[4178]=5448,[4179]=5449,[4180]=5448,[4181]=5449,[4182]=5448,[4183]=5449,[4184]=5448,[4185]=5449,[4186]=5448,[4187]=5449,[4188]=5448,[4189]=5449,[4190]=5448,[4191]=5449,[4192]=5448,[4193]=5449,[4194]=5452,[4195]=5453,[4196]=5454,[4198]=5456,[4199]=5457,[4200]=5458,[4201]=5459,[4202]=5461,[4204]=5462,[4205]=5086,[4206]=5086,[4207]=5086,[4208]=5086,[4209]=5086,[4210]=5086,[4211]=5086,[4212]=17256,[4214]=5553,[4215]=5554,[4216]=5555,[4217]=5556,[4218]=5557,[4219]=5558,[4220]=5559,[4221]=5560,[4222]=5561,[4223]=5562,[4224]=5563,[4225]=5564,[4226]=5565,[4227]=5566,[4228]=5567,[4229]=5568,[4233]=5086,[4234]=5086,[4235]=5064,[4236]=5714,[4237]=5715,[4238]=5449,[4239]=5449,[4240]=5730,[4241]=5449,[4242]=5449,[4243]=5449,[4244]=5449,[4246]=5857,[4247]=5362,[4248]=5361,[4249]=5364,[4250]=5365,[4251]=5366,[4252]=5367,[4253]=6134,[4254]=6133,[4255]=5370,[4256]=6134,[4257]=6132,[4258]=5382,[4259]=5383,[4260]=5979,[4261]=5385,[4262]=5386,[4263]=5387,[4264]=5388,[4265]=5389,[4266]=6137,[4267]=5391,[4268]=5319,[4269]=5320,[4270]=5980,[4271]=5322,[4272]=5340,[4273]=5341,[4274]=5981,[4275]=5343,[4276]=5243,[4277]=5244,[4278]=6108,[4279]=5993,[4280]=5255,[4281]=5256,[4282]=6109,[4283]=5994,[4284]=5326,[4285]=6139,[4286]=5347,[4287]=6142,[4288]=5291,[4289]=6145,[4290]=5290,[4291]=6149,[4292]=5323,[4293]=5324,[4294]=5325,[4295]=5326,[4296]=6140,[4297]=5328,[4298]=5344,[4299]=5345,[4300]=5346,[4301]=5347,[4302]=6143,[4303]=5349,[4304]=5277,[4305]=5291,[4306]=5285,[4307]=6146,[4308]=5299,[4309]=5281,[4310]=5276,[4311]=5280,[4312]=5284,[4313]=5290,[4314]=6150,[4315]=5298,[4316]=6136,[4317]=5389,[4318]=5086,[4319]=5086,[4320]=5064,[4321]=5086,[4322]=5064,[4323]=5086,[4324]=5086,[4325]=5064,[4326]=5086,[4327]=5086,[4328]=5064,[4329]=5086,[4330]=5086,[4331]=5064,[4332]=5086,[4333]=5086,[4334]=5064,[4335]=5086,[4336]=5086,[4337]=5064,[4338]=5086,[4493]=6045,[4503]=6089,[4738]=6101,[4739]=6102,[4740]=6103,[4741]=5459,[4742]=5448,[4743]=5448,[4744]=5448,[4745]=5448,[4746]=5448,[4747]=5448,[4748]=5448,[4749]=5448,[4750]=6104,[4751]=6105,[4752]=6106,[4753]=6107,[4755]=6131,[4756]=6132,[4757]=6135,[4758]=6136,[4759]=6138,[4760]=6139,[4761]=6141,[4762]=6142,[4763]=6144,[4764]=6145,[4765]=6147,[4766]=6148,[4767]=6149,[4768]=6171,[4769]=6172,[4770]=6173,[4771]=6174,[4772]=6175,[4773]=6176,[4774]=6177,[4776]=5449,[4787]=6241,[4788]=6239,[4789]=6240,[4790]=6243,[4791]=6242,[4792]=6244,[4793]=6247,[4794]=6245,[4795]=6246,[4796]=6321,[4804]=6611,[4805]=6612,[4806]=6613,[4807]=6614,[4808]=6693,[4809]=6694,[4810]=6695,[4811]=6242,[4812]=6242,[4813]=6245,[4814]=6240,[4815]=6244,[4816]=6246,[4821]=6226,[4937]=7117,[4938]=7118,[4939]=7119,[4940]=7120,[4941]=7121,[4942]=7122,[4943]=7123,[4944]=7124,[4945]=7125,[4990]=1748,[5036]=1748,[5130]=8388,[5131]=8389,[5132]=8390,[5133]=8391,[5134]=8388,[5261]=8539,[5262]=8595,[5372]=8796,[5384]=8939,[5385]=8940,[5463]=9252,[5470]=9346,[5471]=9347,[5472]=9348,[5473]=9348,[5474]=9350,[5475]=9352,[5476]=9353,[5477]=9354,[5483]=5064,[5484]=5086,[5485]=5086,[5486]=5086,[5487]=5086,[5488]=5064,[5489]=5086,[5490]=5086,[5491]=5064,[5492]=5086,[5493]=5086,[5494]=5064,[5495]=5086,[5496]=5086,[5497]=5064,[5498]=5086,[5499]=5086,[5500]=5064,[5501]=5086,[5502]=5086,[5503]=5086,[5504]=5086,[5505]=5086,[5506]=5086,[5507]=5086,[5508]=5086,[5509]=5086,[5510]=5459,[5511]=5064,[5512]=5086,[5513]=5086,[5514]=5086,[5515]=5086,[5516]=5064,[5517]=5086,[5518]=5086,[5519]=5064,[5520]=5086,[5521]=5086,[5522]=5064,[5523]=5086,[5524]=5086,[5525]=5064,[5526]=5086,[5528]=5086,[5529]=5086,[5530]=5086,[5531]=5086,[5532]=5086,[5533]=5086,[5534]=5086,[5535]=5086,[5536]=5064,[5537]=5086,[5538]=5086,[5539]=5064,[5540]=5086,[5541]=5086,[5542]=5064,[5543]=5086,[5544]=5086,[5545]=5064,[5546]=5086,[5547]=5086,[5548]=5064,[5549]=5086,[5550]=5086,[5551]=5064,[5552]=5086,[5553]=5086,[5554]=5064,[5555]=5086,[5556]=5086,[5557]=5064,[5558]=5086,[5559]=5086,[5560]=5086,[5561]=5086,[5562]=5086,[5563]=5086,[5564]=5086,[5565]=5086,[5566]=5086,[5567]=5086,[5568]=5086,[5569]=5086,[5570]=5086,[5571]=5086,[5572]=5086,[5573]=5064,[5574]=5086,[5575]=5086,[5576]=5064,[5577]=5086,[5578]=5086,[5579]=5064,[5580]=5086,[5581]=5086,[5582]=5064,[5583]=5086,[5584]=5086,[5585]=5064,[5586]=5086,[5587]=5086,[5588]=5064,[5589]=5086,[5590]=5086,[5591]=5064,[5592]=5086,[5593]=5086,[5594]=5086,[5595]=5086,[5596]=5086,[5597]=5086,[5598]=5086,[5599]=5086,[5600]=5086,[5601]=5086,[5602]=5086,[5603]=5086,[5604]=5086,[5605]=5086,[5606]=5086,[5607]=5086,[5608]=5086,[5609]=5086,[5610]=5064,[5611]=5086,[5612]=5086,[5613]=5064,[5614]=5086,[5615]=5086,[5616]=5064,[5617]=5086,[5618]=5086,[5619]=5064,[5620]=5086,[5621]=5086,[5622]=5064,[5623]=5086,[5624]=5086,[5625]=5064,[5626]=5086,[5627]=5086,[5628]=5064,[5629]=5086,[5630]=5086,[5631]=5064,[5632]=5086,[5633]=5086,[5634]=5064,[5635]=5086,[5636]=5086,[5637]=5064,[5638]=5086,[5639]=5086,[5640]=5064,[5641]=5086,[5642]=5086,[5643]=5064,[5644]=5086,[5645]=5086,[5646]=5064,[5647]=5086,[5648]=5086,[5649]=5064,[5650]=5086,[5651]=5086,[5652]=5064,[5653]=5086,[5654]=5086,[5655]=5086,[5656]=5064,[5657]=5086,[5658]=5064,[5659]=5086,[5660]=5086,[5661]=5064,[5662]=5086,[5663]=5086,[5664]=5064,[5665]=5086,[5666]=5086,[5667]=5064,[5668]=5086,[5669]=5086,[5670]=5064,[5671]=5086,[5672]=5086,[5673]=5064,[5674]=5086,[5675]=5086,[5676]=5064,[5677]=5086,[5678]=5086,[5679]=5064,[5680]=5086,[5681]=5086,[5682]=5064,[5683]=5086,[5684]=5086,[5685]=5064,[5686]=5086,[5687]=5086,[5688]=5064,[5689]=5086,[5690]=5086,[5691]=5064,[5692]=5086,[5693]=5086,[5694]=5064,[5695]=5086,[5696]=5086,[5697]=5064,[5698]=5086,[5699]=5086,[5700]=5064,[5701]=5086,[5702]=5086,[5703]=5064,[5704]=5086,[5705]=5086,[5706]=5064,[5707]=5086,[5708]=5086,[5709]=5064,[5710]=5086,[5711]=5086,[5712]=5064,[5713]=5086,[5714]=5086,[5715]=5064,[5716]=5086,[5717]=5086,[5718]=5086,[5719]=5064,[5720]=5086,[5721]=5064,[5722]=5086,[5723]=5086,[5724]=5064,[5725]=5086,[5726]=5086,[5727]=5064,[5728]=5086,[5729]=5086,[5730]=5064,[5731]=5086,[5732]=5086,[5733]=5064,[5734]=5086,[5735]=5086,[5736]=5064,[5737]=5086,[5738]=5086,[5739]=5064,[5740]=5086,[5741]=5086,[5742]=5064,[5743]=5086,[5744]=5086,[5745]=5064,[5746]=5086,[5747]=5086,[5748]=5064,[5749]=5086,[5750]=5086,[5751]=5064,[5752]=5086,[5753]=5086,[5754]=5064,[5755]=5086,[5756]=5086,[5757]=5086,[5758]=5086,[5759]=5086,[5760]=5086,[5761]=5086,[5762]=5086,[5763]=5086,[5764]=5086,[5765]=5086,[5766]=5086,[5767]=5086,[5768]=5086,[5769]=5086,[5770]=5086,[5771]=5086,[5772]=5086,[5773]=5086,[5774]=5086,[5775]=5064,[5776]=5086,[5777]=5086,[5778]=5064,[5779]=5086,[5780]=5086,[5781]=5064,[5782]=5086,[6310]=12326,[6311]=12327,[6312]=12328,[6313]=12329,[6314]=12330,[6315]=12330,[6353]=13596,[6354]=13597,[6355]=13598,[6356]=13599,[6416]=14096,[6423]=14301,[6424]=14301,[6425]=14302,[6426]=14303,[6427]=14304,[6428]=14305,[6429]=14306,[6430]=14307,[6431]=14308,[6432]=14309,[6499]=16570,[6500]=5449,[6651]=0,[6654]=16520,[6655]=16522,[6656]=16525,[6657]=16526,[6658]=16527,[6659]=16528,[6660]=16529,[6661]=16530,[6662]=16559,[6663]=16569,[6664]=16570,[6682]=5064,[6683]=5086,[6691]=5064,[6694]=5086,[6695]=6244,[6696]=6246,[6697]=5064,[6700]=5086,[6703]=5086,[6706]=16666,[6707]=16667,[6708]=16668,[6709]=5451,[6710]=5449,[6711]=16698,[6712]=5448,[6713]=16709,[6751]=16980,[6752]=16981,[6753]=16982,[6754]=16983,[6755]=16984,[6756]=16985,[6757]=5448,[6759]=5448,[6760]=5449,[6761]=17171,[6762]=17172,[6763]=17173,[6764]=17176,[6765]=17177,[6770]=17261,[6771]=17262,[6772]=17263,[6802]=17287,[6803]=17288,[6804]=17289,[6813]=5063,[6815]=17437,[6816]=17458,[6817]=17459,[6818]=17460,[6819]=17458,[6820]=17459,[6821]=17460,[6822]=5449,[6825]=16520,[6826]=17762,[6884]=19994,[6885]=19995,[6886]=19996,[6887]=19997,[6888]=19998,[6889]=19999,[6890]=20000,[6891]=20001,[6892]=20002,[6893]=20003,[6901]=16666,[6902]=16668,[6903]=21218,[6907]=17978,[6908]=17967,[6909]=17980,[6910]=17979,[6911]=17968,[6912]=17969,[6913]=17982,[6914]=17981,[6938]=18850,[7019]=20148,[7127]=17860,[7129]=16698,[7144]=21132,[7164]=21758,[7165]=21762,[7166]=21760,[7167]=21762,[7168]=21757,[7169]=21758,[7170]=21763,[7171]=21761,[7172]=21763,[7173]=16668,[7174]=21821,[7175]=19958,[7176]=19968,[7177]=19978,[7178]=19988,[7179]=19993,[7180]=19998,[7181]=20000,[7182]=20003,[7183]=22068,[7185]=21821,[7191]=22118,[7192]=16667,[7202]=5452,[7215]=23307,[7217]=17262,[7223]=24126,[7224]=24160,[7238]=24243,[7239]=24244,[7240]=24245,[7241]=24323,[7247]=24823,[7250]=24868,[7452]=25740,[7453]=25741,[7461]=25832,[7464]=25919,[7465]=25920,}
local curvePoints = {[1558]={{32,36},{39,43},{40,44},{42,47},{43,48},{44,49},},[1617]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},},[1648]={{32,36},{39,44},{40,45},{42,47},{43,49},{44,50},},[1688]={{32,36},{39,45},{40,45},{42,48},{43,49},{44,50},},[1746]={{1,3},{25,31},{26,31},{27,32},{28,33},{31,37},{32,37},{39,45},{40,45},{42,48},{43,49},{44,50},{45,50},{46,50},{49,56},{50,56},{51,90},{59,138},{60,138},{70,138},},[1748]={{1,6},{25,31},{26,32},{27,33},{28,34},{31,38},{32,39},{39,46},{40,47},{42,50},{43,50},{44,50},{45,50},{46,51},{49,57},{50,57},{51,98},{59,146},{60,146},{70,146},},[1749]={{1,11},{25,32},{26,33},{27,33},{28,35},{31,40},{32,40},{39,48},{40,49},{42,50},{43,50},{44,50},{45,50},{46,52},{49,58},{50,58},{51,110},{59,158},{60,158},{70,158},},[1751]={{650,0},{689,0},{690,1},{691,0},{850,0},},[1752]={{650,0},{809,0},{810,1},{811,0},{850,0},},[1753]={{37,1},{40,6},{44,12},{45,12},{47,18},},[1756]={{32,37},{39,46},{40,46},{42,49},{43,50},{44,50},},[1757]={{32,39},{39,47},{40,48},{42,50},{43,50},{44,50},},[1758]={{32,37},{39,45},{40,46},{42,48},{43,50},{44,50},},[1759]={{32,39},{39,47},{40,48},{42,50},{43,50},{44,50},},[1760]={{32,37},{39,46},{40,47},{42,50},{43,50},{44,50},},[1761]={{32,39},{39,48},{40,49},{42,50},{43,50},{44,50},},[1787]={{1,5},{3,5},{17,22},},[1788]={{1,5},{3,6},{17,24},},[1789]={{1,5},{3,8},{17,25},},[1790]={{1,5},{3,5},{24,29},},[1824]={{39,42},{39,44},{40,44},{44,49},},[2002]={{39,44},{40,44},{44,49},},[2196]={{1,5},{3,5},{24,28},{24,29},{26,30},{27,32},{30,35},{32,37},{33,37},{35,39},{35,40},{38,43},{39,43},{39,44},{40,44},},[2202]={{39,44},{40,44},{44,47},},[2208]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,45},{45,45},},[2209]={{1,5},{3,8},{24,29},{24,30},{26,32},{27,33},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,46},{45,46},},[2210]={{1,5},{3,12},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{39,45},{40,46},{45,46},},[2247]={{38,39},{39,47},{44,50},},[2466]={{1,5},{3,5},{24,28},{24,29},{26,30},{27,32},{30,35},{32,37},{33,37},{35,39},{35,40},{38,43},{39,43},{39,44},{40,44},{44,48},{45,50},},[2794]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},},[3039]={{1,5},{5,5},{10,11},{23,28},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,45},{45,50},{50,58},{51,75},{60,144},},[3157]={{1,5},{3,9},{24,29},{24,30},{26,32},{27,33},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,44},{40,47},{44,50},{45,50},},[3170]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},},[3171]={{1,5},{3,9},{24,29},{24,30},{26,32},{27,33},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,44},{40,47},{44,50},{45,50},},[4242]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},},[4243]={{1,5},{3,9},{24,29},{24,30},{26,32},{27,33},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,44},{40,47},{44,50},{45,50},},[4244]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},},[4245]={{1,5},{3,9},{24,29},{24,30},{26,32},{27,33},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,44},{40,47},{44,50},{45,52},},[4246]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},},[4801]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},},[5063]={{1,1},{25,30},{26,30},{27,31},{28,32},{31,35},{32,36},{39,43},{40,44},{42,47},{43,48},{44,49},{45,50},{46,51},{49,58},{50,58},{70,58},},[5064]={{1,3},{25,31},{26,31},{27,32},{28,33},{31,37},{32,37},{39,45},{40,46},{42,48},{43,50},{44,50},{45,50},{46,52},{49,58},{50,58},{70,58},},[5086]={{1,6},{25,31},{26,32},{27,33},{28,34},{31,38},{32,39},{39,47},{40,48},{42,50},{43,50},{44,50},{45,50},{46,52},{49,59},{50,59},{70,59},},[5091]={{1,1},{120,1},},[5092]={{1,24},{120,24},},[5093]={{1,22},{120,22},},[5094]={{1,21},{120,21},},[5095]={{1,19},{120,19},},[5096]={{1,16},{120,16},},[5097]={{1,13},{120,13},},[5098]={{1,9},{120,9},},[5099]={{1,5},{120,5},},[5100]={{1,3},{120,3},},[5101]={{1,26},{120,26},},[5102]={{1,29},{120,29},},[5103]={{1,29},{120,29},},[5234]={{1,5},{120,5},},[5235]={{1,6},{120,6},},[5236]={{1,9},{120,9},},[5237]={{1,11},{120,11},},[5238]={{1,15},{120,15},},[5239]={{1,18},{120,18},},[5240]={{1,20},{120,20},},[5241]={{1,22},{120,22},},[5242]={{1,24},{120,24},},[5243]={{1,25},{120,25},},[5244]={{1,27},{120,27},},[5245]={{1,29},{120,29},},[5246]={{1,5},{120,5},},[5247]={{1,7},{120,7},},[5248]={{1,11},{120,11},},[5249]={{1,14},{120,14},},[5250]={{1,17},{120,17},},[5251]={{1,19},{120,19},},[5252]={{1,21},{120,21},},[5253]={{1,23},{120,23},},[5254]={{1,25},{120,25},},[5255]={{1,27},{120,27},},[5256]={{1,28},{120,28},},[5257]={{1,29},{120,29},},[5258]={{1,31},{120,31},},[5259]={{1,2},{120,2},},[5260]={{1,4},{120,4},},[5261]={{1,6},{120,6},},[5262]={{1,11},{120,11},},[5263]={{1,14},{120,14},},[5264]={{1,18},{120,18},},[5265]={{1,19},{120,19},},[5266]={{1,21},{120,21},},[5267]={{1,23},{120,23},},[5268]={{1,25},{120,25},},[5270]={{1,27},{120,27},},[5271]={{1,29},{120,29},},[5272]={{1,29},{120,29},},[5273]={{1,30},{120,30},},[5274]={{1,32},{120,32},},[5275]={{1,32},{120,32},},[5276]={{1,32},{120,32},},[5277]={{1,32},{120,32},},[5278]={{1,32},{120,32},},[5279]={{1,32},{120,32},},[5280]={{1,33},{120,33},},[5281]={{1,33},{120,33},},[5282]={{1,33},{31,33},{31,35},{120,35},},[5283]={{1,35},{31,35},{120,35},},[5284]={{1,35},{120,35},},[5285]={{1,35},{120,35},},[5286]={{1,35},{33,35},{120,35},},[5289]={{1,35},{33,35},{34,35},{120,35},},[5290]={{1,37},{120,37},},[5291]={{1,37},{120,37},},[5292]={{1,35},{120,35},},[5293]={{1,35},{120,35},},[5294]={{1,40},{120,40},},[5295]={{1,39},{120,39},},[5296]={{1,36},{120,36},},[5297]={{1,37},{120,37},},[5298]={{1,42},{120,42},},[5299]={{1,42},{120,42},},[5300]={{1,37},{120,37},},[5301]={{1,37},{120,37},},[5304]={{1,37},{120,37},},[5305]={{1,37},{120,37},},[5306]={{1,49},{120,49},},[5307]={{1,49},{120,49},},[5309]={{1,6},{120,6},},[5310]={{1,11},{120,11},},[5311]={{1,14},{120,14},},[5312]={{1,18},{120,18},},[5313]={{1,19},{120,19},},[5314]={{1,21},{120,21},},[5315]={{1,23},{120,23},},[5316]={{1,25},{120,25},},[5318]={{1,27},{120,27},},[5319]={{1,28},{120,28},},[5320]={{1,29},{120,29},},[5321]={{1,31},{120,31},},[5322]={{1,32},{120,32},},[5323]={{1,34},{120,34},},[5324]={{1,35},{120,35},},[5325]={{1,36},{120,36},},[5326]={{1,38},{120,38},},[5327]={{1,42},{120,42},},[5328]={{1,44},{120,44},},[5330]={{1,50},{120,50},},[5331]={{1,8},{120,8},},[5332]={{1,12},{120,12},},[5333]={{1,16},{120,16},},[5334]={{1,18},{120,18},},[5335]={{1,20},{120,20},},[5336]={{1,22},{120,22},},[5337]={{1,24},{120,24},},[5338]={{1,26},{120,26},},[5339]={{1,28},{120,28},},[5340]={{1,29},{120,29},},[5341]={{1,29},{120,29},},[5342]={{1,31},{120,31},},[5343]={{1,32},{120,32},},[5344]={{1,34},{120,34},},[5345]={{1,35},{120,35},},[5346]={{1,36},{120,36},},[5347]={{1,38},{120,38},},[5348]={{1,42},{120,42},},[5349]={{1,44},{120,44},},[5351]={{1,50},{120,50},},[5352]={{1,12},{120,12},},[5353]={{1,16},{120,16},},[5354]={{1,18},{120,18},},[5355]={{1,20},{120,20},},[5356]={{1,22},{120,22},},[5357]={{1,24},{120,24},},[5358]={{1,26},{120,26},},[5359]={{1,28},{120,28},},[5360]={{1,29},{120,29},},[5361]={{1,29},{120,29},},[5362]={{1,29},{120,29},},[5363]={{1,32},{120,32},},[5364]={{1,32},{120,32},},[5365]={{1,35},{120,35},},[5366]={{1,35},{120,35},},[5367]={{1,36},{120,36},},[5369]={{1,43},{120,43},},[5370]={{1,44},{120,44},},[5372]={{1,50},{120,50},},[5373]={{1,13},{120,13},},[5374]={{1,16},{120,16},},[5375]={{1,19},{120,19},},[5376]={{1,21},{120,21},},[5377]={{1,22},{120,22},},[5378]={{1,24},{120,24},},[5379]={{1,26},{120,26},},[5380]={{1,28},{120,28},},[5381]={{1,29},{120,29},},[5382]={{1,29},{120,29},},[5383]={{1,29},{120,29},},[5384]={{1,32},{120,32},},[5385]={{1,33},{120,33},},[5386]={{1,35},{120,35},},[5387]={{1,35},{120,35},},[5388]={{1,37},{120,37},},[5389]={{1,39},{120,39},},[5390]={{1,43},{120,43},},[5391]={{1,44},{120,44},},[5393]={{1,50},{120,50},},[5448]={{1,6},{25,31},{26,32},{27,33},{28,34},{31,38},{32,39},{39,47},{40,48},{43,50},{44,50},{45,50},{46,52},{49,58},{50,58},{70,58},},[5449]={{1,3},{25,31},{26,31},{27,32},{28,33},{31,37},{32,37},{39,45},{40,46},{43,49},{44,50},{45,50},{46,51},{49,57},{50,57},{70,57},},[5451]={{1,1},{25,30},{26,30},{27,31},{28,32},{31,35},{32,36},{39,43},{40,44},{43,47},{44,48},{45,50},{46,50},{49,56},{50,56},{70,56},},[5452]={{1,33},{200,33},},[5453]={{1,32},{120,32},},[5454]={{1,37},{100,37},},[5456]={{1,41},{80,41},},[5457]={{1,39},{120,39},},[5458]={{1,42},{100,42},},[5459]={{1,43},{100,43},},[5461]={{1,47},{100,47},},[5462]={{1,48},{100,48},},[5553]={{1,56},{120,56},},[5554]={{1,60},{120,60},},[5555]={{1,57},{120,57},},[5556]={{1,60},{120,60},},[5557]={{1,39},{120,39},},[5558]={{1,39},{120,39},},[5559]={{1,39},{120,39},},[5560]={{1,39},{120,39},},[5561]={{1,54},{120,54},},[5562]={{1,60},{120,60},},[5563]={{1,56},{120,56},},[5564]={{1,60},{120,60},},[5565]={{1,53},{120,53},},[5566]={{1,59},{120,59},},[5567]={{1,54},{120,54},},[5568]={{1,60},{120,60},},[5714]={{1,42},{80,42},},[5715]={{1,42},{100,42},},[5730]={{1,43},{120,43},},[5857]={{1,29},{120,29},},[5979]={{1,29},{120,29},},[5980]={{1,29},{120,29},},[5981]={{1,29},{120,29},},[5993]={{1,29},{120,29},},[5994]={{1,29},{120,29},},[6025]={{1,35},{120,35},},[6027]={{1,35},{120,35},},[6029]={{1,35},{120,35},},[6031]={{1,35},{120,35},},[6033]={{1,34},{120,34},},[6035]={{1,35},{120,35},},[6036]={{1,35},{120,35},},[6045]={{1,35},{120,35},},[6083]={{1,44},{120,44},},[6089]={{1,44},{120,44},},[6091]={{1,44},{120,44},},[6093]={{1,44},{120,44},},[6101]={{1,33},{120,33},},[6102]={{1,33},{200,33},},[6103]={{1,34},{100,34},},[6104]={{1,48},{100,48},},[6105]={{1,49},{100,49},},[6106]={{1,38},{100,38},},[6107]={{1,38},{120,38},},[6108]={{1,29},{120,29},},[6109]={{1,29},{120,29},},[6131]={{1,37},{120,37},},[6132]={{1,39},{120,39},},[6133]={{1,39},{120,39},},[6134]={{1,38},{120,38},},[6135]={{1,37},{120,37},},[6136]={{1,39},{120,39},},[6137]={{1,39},{120,39},},[6138]={{1,36},{120,36},},[6139]={{1,39},{120,39},},[6140]={{1,39},{120,39},},[6141]={{1,37},{120,37},},[6142]={{1,39},{120,39},},[6143]={{1,39},{120,39},},[6144]={{1,35},{120,35},},[6145]={{1,37},{120,37},},[6146]={{1,39},{120,39},},[6147]={{1,39},{120,39},},[6148]={{1,36},{120,36},},[6149]={{1,38},{120,38},},[6150]={{1,39},{120,39},},[6151]={{1,44},{120,44},},[6152]={{1,44},{120,44},},[6153]={{1,44},{120,44},},[6171]={{1,3},{120,3},},[6172]={{1,5},{120,5},},[6173]={{1,8},{120,8},},[6174]={{1,3},{120,3},},[6175]={{1,6},{120,6},},[6176]={{1,9},{120,9},},[6177]={{1,14},{120,14},},[6226]={{44,50},{45,50},{49,57},{50,57},},[6239]={{5,5},{45,50},{49,58},},[6240]={{5,5},{45,50},{49,59},},[6241]={{5,5},{45,50},{49,58},},[6242]={{1,4},{25,31},{26,31},{27,32},{28,33},{31,37},{32,38},{39,46},{40,46},{42,49},{43,50},{44,50},{45,50},{46,52},{49,58},{50,58},{70,58},},[6243]={{1,1},{25,30},{26,30},{27,31},{28,33},{31,36},{32,36},{39,44},{40,45},{42,47},{43,49},{44,50},{45,50},{46,51},{49,58},{50,58},{70,58},},[6244]={{1,7},{25,32},{26,32},{27,33},{28,34},{31,39},{32,39},{39,47},{40,48},{42,50},{43,50},{44,50},{45,50},{46,53},{49,59},{50,59},{70,59},},[6245]={{1,4},{25,31},{26,31},{27,32},{28,34},{31,38},{32,39},{39,46},{40,47},{42,50},{43,50},{44,50},{45,50},{46,53},{49,59},{50,59},{70,59},},[6246]={{1,8},{25,32},{26,32},{27,33},{28,35},{31,40},{32,40},{39,48},{40,49},{42,50},{43,50},{44,50},{45,50},{46,53},{49,59},{50,59},{70,59},},[6247]={{1,2},{25,30},{26,30},{27,31},{28,33},{31,37},{32,37},{39,45},{40,45},{42,48},{43,49},{44,50},{45,50},{46,52},{49,58},{50,58},{70,58},},[6321]={{45,50},{49,56},{50,56},},[6611]={{40,60},{80,60},},[6612]={{40,60},{80,60},},[6613]={{40,66},{80,66},},[6614]={{40,60},{80,60},},[6693]={{40,60},{80,60},},[6694]={{40,60},{80,60},},[6695]={{40,60},{80,60},},[7117]={{40,60},{80,60},},[7118]={{40,60},{80,60},},[7119]={{40,60},{80,60},},[7120]={{40,60},{80,60},},[7121]={{40,60},{80,60},},[7122]={{40,60},{80,60},},[7123]={{40,60},{80,60},},[7124]={{40,60},{80,60},},[7125]={{40,66},{80,66},},[8388]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,60},},[8389]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,50},{45,51},{49,60},{50,60},},[8390]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,60},},[8391]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,51},{45,52},{49,60},{50,60},},[8539]={{0,40},{120,40},},[8595]={{1,201},{60,240.592},},[8796]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},{49,58},{50,60},},[8939]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{50,60},},[8940]={{1,8},{3,8},{24,30},{26,32},{27,33},{30,36},{32,38},{33,38},{35,40},{35,42},{38,45},{39,45},{40,45},{40,47},{44,50},{45,50},{50,60},},[9252]={{1,5},{3,5},{33,29},{50,60},},[9346]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{50,64},},[9347]={{1,8},{3,8},{24,30},{26,32},{27,33},{30,36},{32,38},{33,38},{35,40},{35,42},{38,45},{39,45},{40,45},{40,47},{44,50},{45,50},{50,68},},[9348]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,60},},[9350]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,50},{45,51},{49,60},{50,62},},[9352]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,66},},[9353]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,51},{45,52},{49,60},{50,70},},[9354]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},{49,58},{50,60},},[12326]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,51},{45,52},{49,60},{50,82},},[12327]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,78},},[12328]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},{49,58},{50,64},},[12329]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,50},{45,51},{49,60},{50,74},},[12330]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,70},},[13596]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{50,72},},[13597]={{1,8},{3,8},{24,30},{26,32},{27,33},{30,36},{32,38},{33,38},{35,40},{35,42},{38,45},{39,45},{40,45},{40,47},{44,50},{45,50},{50,76},},[13598]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{50,80},},[13599]={{1,8},{3,8},{24,30},{26,32},{27,33},{30,36},{32,38},{33,38},{35,40},{35,42},{38,45},{39,45},{40,45},{40,47},{44,50},{45,50},{50,85},},[14096]={{1,5},{5,5},{10,11},{23,28},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,44},{39,44},{40,45},{45,50},{50,58},{51,75},{56,114},{60,138},},[14301]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,82},},[14302]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,50},{45,51},{49,60},{50,90},},[14303]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{49,59},{50,100},},[14304]={{1,5},{3,11},{24,30},{26,32},{27,33},{30,37},{32,39},{33,39},{35,41},{35,43},{38,45},{39,46},{40,46},{40,48},{44,50},{45,51},{45,52},{49,60},{50,105},},[14305]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},{49,58},{50,76},},[14306]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{50,85},},[14307]={{1,8},{3,8},{24,30},{26,32},{27,33},{30,36},{32,38},{33,38},{35,40},{35,42},{38,45},{39,45},{40,45},{40,47},{44,50},{45,50},{50,95},},[14308]={{1,8},{3,8},{24,30},{26,32},{27,33},{30,36},{32,38},{33,38},{35,40},{35,42},{38,45},{39,45},{40,45},{40,47},{44,50},{45,50},{50,105},},[14309]={{1,5},{3,5},{24,29},{26,31},{27,32},{30,35},{32,37},{33,37},{35,39},{35,41},{38,43},{39,44},{40,44},{40,46},{44,50},{45,50},{50,105},},[16520]={{1,5},{10,5},{11,13},{15,13},{16,20},{18,20},{19,22},{20,22},{21,24},{23,24},{24,28},{25,28},{26,30},{28,30},{29,33},{30,33},{31,35},{33,35},{34,37},{35,37},{36,39},{38,39},{39,42},{40,42},{41,45},{43,45},{44,48},{45,48},{46,50},{48,50},{49,57},},[16522]={{1,7},{10,7},{11,15},{15,15},{16,21},{18,21},{19,24},{20,24},{21,25},{23,25},{24,29},{25,29},{26,30},{28,30},{29,34},{30,34},{31,36},{33,36},{34,38},{35,38},{36,40},{38,40},{39,43},{40,43},{41,45},{43,45},{44,49},{45,49},{46,51},{48,51},{49,57},},[16525]={{1,4},{10,4},{11,11},{15,11},{16,19},{18,19},{19,21},{20,21},{21,23},{23,23},{24,27},{25,27},{26,30},{28,30},{29,33},{30,33},{31,34},{33,34},{34,37},{35,37},{36,39},{38,39},{39,42},{40,42},{41,44},{43,44},{44,47},{45,47},{46,50},{48,50},{49,56},},[16526]={{1,5},{10,5},{11,12},{15,12},{16,20},{18,20},{19,22},{20,22},{21,24},{23,24},{24,27},{25,27},{26,30},{28,30},{29,33},{30,33},{31,35},{33,35},{34,37},{35,37},{36,39},{38,39},{39,42},{40,42},{41,44},{43,44},{44,48},{45,48},{46,50},{48,50},{49,56},},[16527]={{1,12},{10,12},{11,18},{15,18},{16,24},{18,24},{19,26},{20,26},{21,28},{23,28},{24,30},{25,30},{26,31},{28,31},{29,34},{30,34},{31,37},{33,37},{34,40},{35,40},{36,42},{38,42},{39,45},{40,45},{41,47},{43,47},{44,50},{45,50},{46,52},{48,52},{49,58},},[16528]={{1,14},{10,14},{11,19},{15,19},{16,24},{18,24},{19,27},{20,27},{21,28},{23,28},{24,30},{25,30},{26,31},{28,31},{29,35},{30,35},{31,38},{33,38},{34,40},{35,40},{36,42},{38,42},{39,45},{40,45},{41,47},{43,47},{44,50},{45,50},{46,52},{48,52},{49,58},},[16529]={{1,17},{10,17},{11,21},{15,21},{16,26},{18,26},{19,28},{20,28},{21,30},{23,30},{24,31},{25,31},{26,32},{28,32},{29,36},{30,36},{31,39},{33,39},{34,41},{35,41},{36,43},{38,43},{39,46},{40,46},{41,49},{43,49},{44,50},{45,50},{46,52},{48,52},{49,58},},[16530]={{1,18},{10,18},{11,21},{15,21},{16,27},{18,27},{19,29},{20,29},{21,30},{23,30},{24,31},{25,31},{26,32},{28,32},{29,36},{30,36},{31,39},{33,39},{34,42},{35,42},{36,44},{38,44},{39,47},{40,47},{41,49},{43,49},{44,50},{45,50},{46,52},{48,52},{49,58},},[16559]={{1,75},{75,75},},[16569]={{1,5},{10,5},{11,13},{15,13},{16,20},{18,20},{19,22},{20,22},{21,24},{23,24},{24,28},{25,28},{26,30},{28,30},{29,33},{30,33},{31,35},{33,35},{34,37},{35,37},{36,39},{38,39},{39,42},{40,42},{41,45},{43,45},{44,48},{45,48},{46,50},{48,50},{49,57},},[16570]={{1,5},{10,5},{11,12},{15,12},{16,20},{18,20},{19,22},{20,22},{21,24},{23,24},{24,27},{25,27},{26,30},{28,30},{29,33},{30,33},{31,35},{33,35},{34,37},{35,37},{36,39},{38,39},{39,42},{40,42},{41,44},{43,44},{44,48},{45,48},{46,50},{48,50},{49,56},},[16666]={{45,83},{48,83},{50,92},{59,146},{60,146},{70,146},},[16667]={{45,75},{48,75},{50,84},{59,138},{60,138},{70,138},},[16668]={{45,95},{48,95},{50,104},{59,158},{60,158},{70,158},},[16698]={{0,6},{13,6},},[16709]={{1,2},{2,2},{22,24},{39,49},{40,50},{41,51},{42,52},{43,53},{45,55},{48,58},{49,59},{50,60},{51,82},{56,129},{59,150},{60,150},{70,150},},[16980]={{0,24},{100,24},},[16981]={{0,26},{100,26},},[16982]={{0,22},{100,22},},[16983]={{0,21},{100,21},},[16984]={{0,19},{100,19},},[16985]={{0,16},{100,16},},[17171]={{1,90},{120,90},},[17172]={{1,108},{108,108},},[17173]={{1,120},{120,120},},[17176]={{1,33},{100,33},},[17177]={{1,32},{100,32},},[17256]={{0,46},{70,46},},[17258]={{0,42},{70,42},},[17261]={{45,75},{48,75},{50,84},{59,138},{60,138},{70,138},},[17262]={{45,83},{48,83},{50,92},{59,146},{60,146},{70,146},},[17263]={{45,95},{48,95},{50,104},{59,158},{60,158},{70,158},},[17287]={{45,75},{48,75},{50,84},{59,138},{60,138},{70,138},},[17288]={{45,83},{48,83},{50,92},{59,146},{60,146},{70,146},},[17289]={{45,95},{48,95},{50,104},{59,158},{60,158},{70,158},},[17437]={{0,20},{1,20},},[17458]={{1,2},{2,2},{22,24},{39,49},{40,50},{41,51},{42,52},{43,53},{45,55},{48,58},{49,59},{50,59},{51,59},{56,59},{59,59},{60,59},{70,59},},[17459]={{1,4},{2,5},{7,13},{10,19},{16,24},{33,49},{34,50},{35,51},{36,52},{37,53},{39,55},{42,58},{43,59},{44,60},{49,65},{51,65},{56,65},{59,65},{60,65},{70,65},},[17460]={{1,6},{2,7},{4,13},{10,24},{27,49},{28,50},{29,51},{30,52},{31,53},{33,55},{36,58},{37,59},{38,60},{49,71},{51,71},{56,71},{59,71},{60,71},{70,71},},[17762]={{50,50},{70,70},},[17860]={{45,158},{70,158},},[17967]={{1,81},{52,81},{53,95},{55,95},{56,113},{58,113},{59,131},{60,131},{61,131},{70,131},},[17968]={{1,176},{52,176},{53,176},{55,176},{56,176},{58,176},{59,176},{60,176},{61,176},{70,176},},[17969]={{1,176},{52,176},{53,176},{55,176},{56,176},{58,176},{59,176},{60,176},{61,176},{70,176},},[17978]={{1,80},{52,80},{53,93},{55,93},{56,111},{58,111},{59,129},{60,129},{61,129},{70,129},},[17979]={{1,75},{52,75},{53,90},{55,90},{56,108},{58,108},{59,126},{60,126},{61,138},{70,138},},[17980]={{1,70},{52,70},{53,84},{55,84},{56,102},{58,102},{59,120},{60,120},{61,132},{70,132},},[17981]={{1,190},{52,190},{53,190},{55,190},{56,190},{58,190},{59,190},{60,190},{61,190},{70,190},},[17982]={{1,190},{52,190},{53,190},{55,190},{56,190},{58,190},{59,190},{60,190},{61,190},{70,190},},[18850]={{1,138},{138,138},},[19958]={{0,19},{1,19},},[19968]={{0,28},{1,28},},[19978]={{0,39},{1,39},},[19988]={{0,48},{1,48},},[19993]={{0,54},{1,54},},[19994]={{0,109},{1,109},},[19995]={{0,99},},[19996]={{0,129},{1,129},},[19997]={{0,111},},[19998]={{0,117},},[19999]={{0,150},{1,150},},[20000]={{0,129},},[20001]={{0,165},{1,165},},[20002]={{0,165},{1,165},},[20003]={{0,151},},[20148]={{1,160},{160,160},},[21132]={{48,85},{50,91},{51,96},{52,103},{55,121},{56,128},{57,134},{58,146},{59,150},{60,154},},[21218]={{45,146},{70,146},},[21757]={{1,5},{25,33},{26,33},{27,34},{28,35},{31,39},{32,39},{39,47},{40,48},{42,50},{43,52},{44,52},{45,52},{46,54},{49,60},{50,60},{70,60},},[21758]={{1,8},{25,33},{26,34},{27,35},{28,36},{31,40},{32,41},{39,49},{40,50},{42,52},{43,52},{44,52},{45,52},{46,54},{49,61},{50,61},{70,61},},[21760]={{1,6},{25,33},{26,33},{27,34},{28,35},{31,39},{32,40},{39,48},{40,48},{42,51},{43,52},{44,52},{45,52},{46,54},{49,60},{50,60},{70,60},},[21761]={{1,6},{25,33},{26,33},{27,34},{28,36},{31,40},{32,41},{39,48},{40,49},{42,52},{43,52},{44,52},{45,52},{46,55},{49,61},{50,61},{70,61},},[21762]={{1,9},{25,34},{26,34},{27,35},{28,36},{31,41},{32,41},{39,49},{40,50},{42,52},{43,52},{44,52},{45,52},{46,55},{49,61},{50,61},{70,61},},[21763]={{1,10},{25,34},{26,34},{27,35},{28,37},{31,42},{32,42},{39,50},{40,51},{42,52},{43,52},{44,52},{45,52},{46,55},{49,61},{50,61},{70,61},},[21821]={{0,168},},[22068]={{0,200},},[22118]={{1,3},{25,31},{26,31},{27,32},{28,33},{31,37},{32,37},{39,45},{40,46},{43,49},{44,50},{45,50},{46,51},{49,57},{50,57},{51,88},{60,158},},[23307]={{50,226},{60,226},},[24126]={{1,150},{150,150},},[24160]={{0,87},},[24243]={{0,164},{1,164},},[24244]={{0,181},{1,181},},[24245]={{0,200},{1,200},},[24323]={{1,180},{180,180},},[24823]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},{49,58},{50,76},{51,90},{59,138},{60,138},},[24868]={{50,233},{60,233},},[25740]={{1,160},{59,160},{61,160},{70,160},},[25741]={{1,163},{59,163},{60,163},{61,163},{70,163},},[25832]={{0,230},},[25919]={{1,3},{25,31},{26,31},{27,32},{28,33},{31,37},{32,37},{39,45},{40,46},{43,49},{44,50},{45,50},{46,51},{49,57},{50,57},{51,88},{59,146},{60,184},},[25920]={{1,5},{3,5},{24,29},{24,30},{26,32},{27,33},{30,35},{30,36},{32,37},{33,38},{35,39},{35,42},{38,44},{39,44},{40,44},{40,45},{44,49},{45,50},{49,58},{50,76},{51,90},{59,138},{60,164},},}
local function round(num)
return floor(num + 0.5)
end
local function GetCurvePoint(curveId, point)
local curve = curvePoints[curveId]
if not curve then
return nil
end
local lastKey, lastValue = curve[1][1], curve[1][2]
if lastKey > point then
return lastValue
end
for x = 1,#curve,1 do
if point == curve[x][1] then
return curve[x][2]
end
if point < curve[x][1] then
return round((curve[x][2] - lastValue) / (curve[x][1] - lastKey) * (point - lastKey) + lastValue)
end
lastKey = curve[x][1]
lastValue = curve[x][2]
end
return lastValue
end
addonTable.GetDetailedItemLevelInfo = function(item)
local _, link, _, origLevel = GetItemInfo(item)
if not link then
return nil, nil, nil
end
local itemString = string.match(link, "item[%-?%d:]+")
local itemStringParts = { strsplit(":", itemString) }
local numBonuses = tonumber(itemStringParts[14],10) or 0
if numBonuses == 0 then
return origLevel, nil, origLevel
end
local effectiveLevel, previewLevel, curve
effectiveLevel = origLevel
previewLevel = 0
for y = 1,numBonuses,1 do
local bonus = tonumber(itemStringParts[14+y],10) or 0
origLevel = origLevel - (bonusLevelBoost[bonus] or 0)
previewLevel = bonusPreviewLevel[bonus] or previewLevel
curve = bonusLevelCurve[bonus] or curve
end
if curve and itemStringParts[12] == "512" then
effectiveLevel = GetCurvePoint(curve, tonumber(itemStringParts[15+numBonuses],10)) or effectiveLevel
end
return effectiveLevel, previewLevel, origLevel
end