// G++ MACRO.CPP -STD=C++17
#include <bits/stdc++.h>
typedef long long ll;
const int INF = 1e9;
const int MOD = 1e9+7;
const ll LINF = 1e18;
using namespace std;

#define dump(x)  cout << #x << " = " << (x) << endl;
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define POSSIBLE(n) cout << ((n) ? "POSSIBLE" : "IMPOSSIBLE"  ) << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible"  ) << endl
#define possible(n) cout << ((n) ? "possible" : "impossible"  ) << endl

#define SANKOU(n,a,b) cout << ((n) ? (#a) : (#b) ) << endl

#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) for(int i=0;i<(n);++i)
#define REPR(i,n) for(int i=n;i>=0;i--)

#define FOREACH(x,a) for(auto& (x) : (a) )

#define WFA(d,v) REP(k,v)REP(i,v)REP(j,v)d[i][j]=min(d[i][j],d[i][k]+d[k][j])

#define SCOUT(x) cout<<(x)<<" "
#define ENDL cout<<endl

#define VECCIN(x) for(auto&youso_: (x) )cin>>youso_
#define VECIN2(x,y) REP(i,x.size())cin>>x[i]>>y[i]
#define VECCOUT(x) if(1){for(auto tt=x.begin();tt!=x.end();tt++){if(tt!=x.begin())cout<<" ";cout<<(*tt);}cout<<endl;}

#define ALL(obj) (obj).begin(),(obj).end()

#define EXIST(n,x) (find(ALL(n),x)!=n.end())
#define UNIQUE(obj) sort(ALL( obj )); obj.erase(unique(ALL(obj)),obj.end())
#define EN(x) if(1){cout<<#x<<endl;return 0;}
#define COUT(x) cout<<(x)<<endl
void CINT(){}
template <class Head,class... Tail>
void CINT(Head&& head,Tail&&... tail){
    cin>>head;
    CINT(move(tail)...);
}
#define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__)
#define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__)
#define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__)

template <class T = ll>
T IN(){T x;cin>>x;return (x);}

template <class Head>
void VT(Head head){}
template <class Head,class Seco,class... Tail>
void VT(Head&& head,Seco&& seco,Tail&&... tail){
    seco.resize(head);
    VT(head,move(tail)...);
}
void VT2(){}
template <class Head,class... Tail>
void VT2(Head&& head,Tail&&... tail){
  VECCIN(head);
  VT2(move(tail)...);
}

template <class Head>
void VT3(Head&& head){}
template <class Head,class Seco,class... Tail>
void VT3(Head&& head,Seco&& seco,Tail&&... tail){
  seco[head]=IN();
  VT3(head,move(tail)...);
}

#define VC1(n,...) V __VA_ARGS__;VT(n,__VA_ARGS__);VT2(__VA_ARGS__); //aaabbbccc
#define VC2(n,...) V __VA_ARGS__;VT(n,__VA_ARGS__);REP(i,n)VT3(i,__VA_ARGS__); //abcabcabc

// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision; // cpp_int

#define P pair<ll,ll>
#define V vector<ll>
#define M map<ll,ll>
#define S set<ll>

#define pb(a) push_back(a)
#define mp make_pair

class LazySegmentTree{//遅延セグ木 初期値0で総和を出すやつ
  public:
  LazySegmentTree(ll n,V v);
  void addVal(ll st,ll en,ll val,ll k,ll l,ll r);
  ll calcVal(ll st,ll en,ll k,ll l,ll r);//半開区間 3,6なら3,4,5の総和
  void eval(ll k,ll l,ll r);
  V elements,lazy;
  ll pnum;
};

LazySegmentTree::LazySegmentTree(ll n,V v){
  pnum=1;while(pnum<n)pnum*=2;
  elements=V(pnum*2-1,0);
  lazy=V(pnum*2-1,0);
  
  REP(i,n)
    elements[i+pnum-1] = v[i];
  REPR(i,pnum-2)
    elements[i]=elements[i*2+1]+elements[i*2+2];
}

void LazySegmentTree::addVal(ll st,ll en,ll val,ll k=0,ll l=0,ll r=-1){
  if(r<0)r=pnum;
  eval(k,l,r);
  if(en<=l || r<=st) return ;
  if(st<=l && r<=en){
    lazy[k] += (r-l) * val;
    eval(k,l,r);
  }else{
    addVal(st,en,val,2*k+1,l,(l+r)/2);
    addVal(st,en,val,2*k+2,(l+r)/2,r);
    elements[k]=elements[2*k+1]+elements[2*k+2];
  }
}

void LazySegmentTree::eval(ll k,ll l,ll r){
  if(!lazy[k])return ;
  elements[k]+=lazy[k];
  if(r-l>1){
    lazy[2*k+1]+=lazy[k]/2;
    lazy[2*k+2]+=lazy[k]/2;
  }
  lazy[k]=0;
}

ll LazySegmentTree::calcVal(ll st,ll en,ll k=0,ll l=0,ll r=-1) {
  if(r<0)r=pnum;
  eval(k,l,r);

  if(en<=l || r<=st)return 0;
  if(st<=l && r<=en)return elements[k];
  ll vl = calcVal(st,en,2*k+1,l,(l+r)/2);
  ll vr = calcVal(st,en,2*k+2,(l+r)/2,r);
  return vl + vr;
}


int main(){
  CIN(n,q);VC2(n-1,a,b);VC2(q,x,y,z);
  vector<V> edges(n);
  REP(i,n-1){
    edges[a[i]].pb(b[i]);
    edges[b[i]].pb(a[i]);
  }
  V flag(n,-1);
  V tour;
  V add;
  V sub;
  V dif(n,-1);
  function<void(ll,ll)> dfs = [&](ll pos,ll dif){
    FOREACH(xx,edges[pos]){
      if(flag[xx]!=-1)continue;
      tour.pb(pos);
      add.pb(tour.size()-1);
      flag[xx]=dif+1;
      dfs(xx,dif+1);
      tour.pb(xx);
      sub.pb(tour.size()-1);
    }
  };
  flag[0]=0;
  dfs(0,0);
  tour.pb(0);
  vector<P> len(n,mp(-1,-1));
  REP(i,tour.size())
    (len[tour[i]].first==-1?len[tour[i]].first:len[tour[i]].second)=i;

  LazySegmentTree adds(add.size(),V(add.size(),0));
  LazySegmentTree subs(sub.size(),V(sub.size(),0));

  ll m = *max_element(ALL(flag));//最大でいくつ先を見るか(木なら最大の深さ…etc)
  ll t = 1;
  for(ll i=1;i<=m;i<<=1)t++;
  t--;
  vector<V> next(n,V(t,-1));
  auto dub = [&]{//ダブリングの下準備
    auto func = [&](ll pos,ll num){
      if(!num){
        P minel = mp(-1,-LINF);
        FOREACH(xx,edges[pos]){
          if(flag[xx]>flag[pos])continue;
          if(minel.second < flag[xx])
            minel = mp(xx,flag[xx]);
        }
        return 1LL*(minel.second==LINF?-1:minel.first);
      }
      return (next[pos][num-1]==-1?-1:next[next[pos][num-1]][num-1]);
    };
    REP(i,t)
      REP(j,n)
        next[j][i]=func(j,i);
  };
  auto calcdub = [&](ll pos,ll num){
    //posからnum個先を計算する
    ll p = pos;
    REP(i,t){
      if(num & 1<<i && p!=-1)
        p = next[p][i];
    }
    return p;
  };
  dub();

  
  /*
  VECCOUT(tour);
  VECCOUT(add);
  VECCOUT(sub);
  */

  REP(i,q){
    if(x[i]){
      if(len[y[i]].second==-1)continue;
      ll st = distance(add.begin(),lower_bound(ALL(add),len[y[i]].first));
      ll en = distance(add.begin(),lower_bound(ALL(add),len[y[i]].second));
      adds.addVal(st,en+1,z[i]);
      st = distance(sub.begin(),lower_bound(ALL(sub),len[y[i]].first));
      en = distance(sub.begin(),lower_bound(ALL(sub),len[y[i]].second));
      subs.addVal(st,en+1,z[i]);

      continue;
    }

    ll yi = y[i];
    ll zi = z[i];
    (flag[yi]<flag[zi]?zi:yi)=calcdub((flag[yi]<flag[zi]?zi:yi),abs(flag[yi]-flag[zi]));
    ll ng=-1;ll ok=flag[yi];
    while(abs(ok-ng)>1){
      ll num = (ok+ng)/2;
      (calcdub(yi,num)==calcdub(zi,num)?ok:ng)=num;
    }
    ll lca = calcdub(yi,ok);

    auto f = [&](ll p1,ll p2){
      ll it1 = distance(add.begin(),lower_bound(ALL(add),len[p1].first));
      ll it2 = distance(add.begin(),lower_bound(ALL(add),len[p2].first));
      ll it3 = distance(sub.begin(),lower_bound(ALL(sub),len[p1].first));
      ll it4 = distance(sub.begin(),lower_bound(ALL(sub),len[p2].first));
      if(it1>it2){swap(it1,it2);swap(it3,it4);}
      ll adcal = adds.calcVal(it1,it2);
      ll subcal = subs.calcVal(it3,it4);
      return adcal-subcal;
    };
    ll f1 = f(y[i],lca);
    ll f2 = f(lca,z[i]);
    //f2でガバってる
    /*
    REP(i,sub.size())
      dump(subs.calcVal(i,i+1));ENDL;
      */
    COUT(f1 + f2);
  }
  
  return 0;
}


Measured memory_bytes: 81316