/* ---------- The standard POP (#240) ---------- Big networks run one design everywhere. A new POP gets the standard routers at once, while the box is still idle (no maintenance window): the model if it is unlocked and affordable, then the extra routers as cash allows. */ // What the standard adds to a fresh POP, priced the way popStdApply pays for it, so it can be on the button (#261). function popStdQuote(){const d=S.popStd;if(!d||pzOn())return null;const g=techOk('rg',d.g,RG[d.g].lvl)?d.g:0; let cost=g?Math.max(0,Math.round(RG[g].cost*hwMul('rt')*techMul(RG[g].lvl))-tradeIn(0,1)):0;for(let n=1;n=swapCost(city,d.g)){spend(swapCost(city,d.g));p.rgen=d.g;}else miss=true;} while((p.routers||1)${tr('pop_std.standard_for_new_pops')}${d?`${d.rt} × ${esc(RG[d.g].n)}`:tr('pop_std.none')}
${same?'':btn(tr('pop_std.make_this_the_standard'),'popStdSet',{city:c},'ghost sm')}${d?btn(tr('pop_std.clear'),'popStdClear',{},'ghost sm'):''}
`;}