function get_eqdata(a){if("undefined"!=typeof dynjs_eqstore&&"undefined"!=typeof dynjs_eqstore[a])return dynjs_eqstore[a];if("undefined"!=typeof dynjs_equip&&"undefined"!=typeof dynjs_equip[a])return dynjs_equip[a]} function rehover_last_checked(){if(0
'+c.d+"
";else{var b=void 0;const g=new URLSearchParams(window.location.search);g.has("filter")&&(b=g.get("filter"));b="purchase"!=title?"?s=Bazaar&ss=am&screen=modify"+ (b?"&filter="+b:"")+"&eqids[]="+a:null;equipinfo.innerHTML="undefined"==typeof c.n?'
'+(b?''+c.t+"":c.t)+"
"+c.d+"
":'
'+(b?''+c.t+"":c.t)+"
("+c.n+")
"+c.d+"
"}update_iteminfo()}if("sacrifice"==title&&eqitems[a]){c=0;for(f in eqitems[a].s)c+=eqitems[a].s[f].boost;var f='

The selected equipment will be sacrified, and fused with your:

'+fusename+'

This has the following effects and base costs:

';f+="

+"+c+" Base Stat Rolls

";for(let g in eqitems[a].m)if(60201>g||60239"+eqitems[a].m[g]+"x "+itemdata[g].n+" ("+itemdata[g].c+")

";f+="credit_balance?' class="eqred"':"")+">"+number_format(eqitems[a].c)+" Credits

";e("itemlist").innerHTML=f}}}function unhover_equip(a){curr_hover_eqid==a&&(curr_hover_eqid=0,update_iteminfo())} function reset_infopane(){"undefined"!=typeof infotext&&(curr_hover_eqid&&unhover_equip(curr_hover_eqid),void 0!=hoverow&&(hoverow.removeAttribute("data-hover"),hoverow=void 0),equipinfo.innerHTML=infotext,itemlist.innerHTML="")} function update_iteminfo(){if("undefined"!=typeof eqitems){var a=show_items=show_credits=!1,c=single_header=void 0;"repair"==title&&(show_items=!0,a=!document.getElementById("replace_charms").checked,c="Total Repair Cost");"salvage"==title&&(show_items=!0,show_credits=document.getElementById("sell_salvage").checked,eqcredits.style.display=show_credits?"":"none",c="Total Salvage");"itemworld"==title&&(show_items=!0,c="Required Items");"soulbind"==title&&(show_items=!0,c="Required Items");if("sell"== title||"purchase"==title)show_credits=!0;confirm_info=void 0;var b=[],f=[],g=0;for(i=0;i{let l;b[d]=(null!=(l=b[d])?l:0)+eqitems[eqid].m[d]}),show_credits&&(g+=eqitems[eqid].c),"undefined"!=typeof eqitems[eqid].p?(confirm_info=eqitems[eqid].p,confirm_info.eqname=eqitems[eqid].t): "sacrifice"==title&&(confirm_info=eqitems[eqid]));show_items&&0{void 0==b[d]&&(b[d]=0);f[d]=eqitems[curr_hover_eqid].m[d]});var h=[],k=0'+c+":");for(let d in b)a&&61900<=d&&64999>=d||(c=("repair"==title||"soulbind"==title)&&itemdata[d].c"+b[d]+"x"+itemdata[d].n+""+(hide_delta||k||!curr_hover_eqid||void 0==f[d]?"":" ("+(k?"-":"+")+f[d]+")")+""):h.push(""+(curr_hover_eqid?f[d]:b[d])+"x "+itemdata[d].n+""),c&&(block_submit=!0))}show_items&&(itemlist.innerHTML=0"+h.join("")+"":"");show_credits&&(eqcrsum.innerHTML=g+" Credits", eqcrsum.style.color="purchase"==title&&credit_balanceAre you sure you want to make this protected equipment selectable?

"+b+"

"+(f?"

Obtained: "+f+"

":"")+'',confirm_open())} function unprotect_equip(){unprotect_eqid&&(unprotect_rowelem.removeAttribute("data-eqprotect"),++selectable_count,update_multiselector(),e("e"+unprotect_eqid).disabled=!1,select_equip(unprotect_eqid,void 0,unprotect_rowelem),unprotect_eqid=0);confirm_close()} function select_equip(a,c,b){if(e("e"+a).disabled)return!1;if(!multiselect)for(i=0;iselected_count&&(last_clicked_eqid=0);multiselect&&update_multiselector();update_iteminfo();document.getElementById("equipsubmit").disabled= !block_submit&&0 Selected "+selected_count+" of "+selectable_count+" matching equipment available to "+title)} function select_all(){last_clicked_eqid=0;let a=selected_count"+selected_count+"")+"";b=!1;if(confirm_info&&(console.log(JSON.stringify(confirm_info,null,2)),"itemworld"==title&&(a+="\n

"+confirm_info.eqname+'

\n\n\t\n\t\n\t\n\t\n\t\n
World Level:'+confirm_info.iwlvl+"
Battle Rounds:"+confirm_info.rounds+"
Monster LVL:"+confirm_info.monsterlevel+"
Difficulty:"+ confirm_info.diffname+(0
Entry Cost:"+confirm_info.req_worldseeds+" World Seed"+(1==confirm_info.req_worldseeds?"":"s")+" ("+confirm_info.has_worldseeds+")
"),"sacrifice"==title)){a+="\n

"+confirm_info.t+'

\n';let k=[];for(let d in confirm_info.s){let l=confirm_info.s[d].bndid,m=itemdata[l].c"+confirm_info.m[l]+"x "+itemdata[l].n+" ("+itemdata[l].c+")");m&&(b=!0)}a+=k.join("");a+="\n
"+confirm_info.s[d].label+ ""+confirm_info.s[d].value+"+"+confirm_info.s[d].boost+"
";for(let d in confirm_info.m)if(60201>d||60239"+confirm_info.m[d]+"x "+itemdata[d].n+" ("+itemdata[d].c+")

";a+="credit_balance?' class="eqred"':"")+">"+number_format(confirm_info.c)+" Credits

";credit_balanceYou have selected "+(1

"),0You have selected "+(1

"),0You have selected "+(1

")):0You have selected a "+ (0

");a=(b?a+"

You are missing some required resources.

":a+"

Check both safety boxes to continue.

")+('\n\n\t\n\t\t\n\t\t\n\t\t\n\t\n
")}else a+='";e("confirm_body").innerHTML=a;confirm_open()}}function confirm_safety(){e("confirm_button").disabled=e("cfs1").checked&&e("cfs2").checked?"":"disabled"} function recalc_cp(a){var c=parseInt(a.getAttribute("data-cp"));"charmtype"==a.name?(sel_cp_charm=c,sel_charmtype=parseInt(a.value),charmname=a.getAttribute("data-name"),disabled_charm=a.getAttribute("data-disabled"),charm_stats[sel_charmtype]&&(e("eqstats").innerHTML=charm_stats[sel_charmtype])):(sel_cp_pouch=c,sel_pouchtype=parseInt(a.value),pouchname=a.getAttribute("data-name"),disabled_pouch=a.getAttribute("data-disabled"));if(a=sel_charmtype&&(disabled_charm||disabled_pouch)){var b;c=null!=(b= disabled_charm)?b:disabled_pouch;e("cdreason").innerHTML="("+c+")"}else e("cdreason").innerHTML=" ";b=exl_cp+sel_cp_charm+sel_cp_pouch;e("cpreadout").innerHTML="Charm Points: "+b+" / "+max_cp;e("cpreadout").style.color=b>max_cp?"#FF0000":"";can_submit=!a&&(0==sel_charmtype||b<=max_cp)&&(cur_charm_worn||cur_charm_broken||cur_pouch_broken||cur_charmtype!=sel_charmtype||0max_cp&&(e("cdreason").innerHTML= "(Insufficient Charm Points)");b="Attach Charm";!sel_charmtype&&0"+charm_mats[sel_charmtype][a].c+"x"+charm_mats[sel_charmtype][a].n+"");if((!cur_charm_broken||0"+pouch_mats[sel_pouchtype][c].c+"x"+pouch_mats[sel_pouchtype][c].n+"");a=cur_charmtype? "Replace":"Attach";c="attach a new charm";sel_charmtype?(cur_charmtype==sel_charmtype&&(c=cur_charm_worn||cur_charm_broken?"replace the "+(cur_charm_broken?"torn":"worn")+" charm":cur_pouch_broken?"replace the destroyed pouch":"replace the intact pouch",a="Replace"),e("confirm_body").innerHTML="

Are you sure you want to "+c+" in Slot "+charmslot+":

"+charmname+" with a "+pouchname+"

",0by spending the following materials:

'+ b.join("")+"
")):(e("confirm_body").innerHTML="

Are you sure you want to DESTROY the charm and pouch in Slot "+charmslot+"?

",a="Destroy");0The existing charm will be DESTROYED.

"),cur_pouch_broken||(cur_pouchtype!=sel_pouchtype?0The existing pouch will be DESTROYED.

"): 0The existing pouch will be reused.

")));e("confirm_body").innerHTML+='";confirm_open()}}let is_confirm_open=!1,is_confirm_text=!1; function pop_rename(a,c){is_confirm_text=!0;e("confirm_body").innerHTML="

Enter a new customized name for your

"+a+'

Enter a blank name to revert to the default name. Customized names are always removed if the equipment is sold or attached to a MoogleMail.

';confirm_open()} function pop_upgrade(){e("confirm_body").innerHTML='

Are you sure you want to spend the requisite materials and credits to upgrade this equipment? Credits and Cores cannot be refunded.

'+e("upgrmats").innerHTML+'
';confirm_open()} function pop_unequip(){e("confirm_body").innerHTML='

Are you sure you want to force unequip this item from all equipment sets in all personas? This may also unequip other gear that depends on it.

';confirm_open()} function pop_equipwindow(){"undefined"!=typeof last_hover_eqid&&0