const i={8:777,12:5265,21:5316,48:728,50:9490,56:9487,68:1562,79:1607,88:1889,90:2351,93:8854,94:8843,102:2430,107:1128,111:1608,115:1567,116:9483,117:890,118:9518,135:7435,137:745,150:8490,151:763,152:8493,160:2342,167:9190,171:1736,174:2357,177:8480,185:3182,190:3184,195:3078,197:8887,202:3211,204:3117,205:3104,209:3115,210:3106,214:3113,215:3109,219:3111,220:5402,222:7456,223:4832,224:9443,226:6168,230:6499,231:7460,234:4503,235:9711,236:9700,241:9611,242:9609,243:9608,245:9612,246:9610,247:9606,557:9702,558:9701,559:9703,80015:9596,80016:9597,80017:9598,80018:9654,80019:9653,15847:8463},a=new Map;let r={};const c=new Map;function f(e){return e.descid!==void 0?e.descid+1:e.id+1}async function S(e){const[o,s,l]=await Promise.all([e.json("data/spelllist.json").catch(()=>[]),e.json("data/spell-overrides.json").catch(()=>({})),e.json("data/skills.json").catch(()=>({}))]);a.clear();for(const n of o)a.set(f(n),{icon:n.icon,xicon:n.xicon});r=s,c.clear();for(const[n,t]of Object.entries(l))t.buffIcon&&c.set(Number(n),{icon:t.buffIcon,label:t.buffString})}const u={248:10143,249:10149,250:10141,251:10138,252:10151,253:10145,278:10141,269:11748,270:11757,271:11753,272:11758,284:13417,285:13423,286:13427,287:13440};function d(e){const o=r[e]?.icon;if(o)return o;const s=a.get(e);return s?.xicon??s?.icon??i[e]??u[e]??null}function I(e){return r[e]?.buffIcon??c.get(e)?.icon??i[e]??d(e)}const L={decreaseWeight:14,decayPotion:71,silence:64,venomResist:104,weakness:47,disease:56,dressEvasion:111,berserkers:55,naturesTouch:158,windShackle:167,eraseMagic:153,additionalFire:176,elementalFallDown:133,elementalFire:171,strikerGale:174,soulOfFlame:175,polluteWater:173,concentration:206,insight:216,panic:217,mortalBody:191,horrorOfDeath:193,fear:188,patience:211,guardBreak:183,dragonSkin:181,statusFruit:20079},p={resistMagic:129,clearMind:137,resistElemental:138,elementalProtection:147};export{p as E,L as U,d as a,S as l,I as r,f as s};
