q_{m n}) \rho(q_{m n})$, where $V(q_{m n})$ follows Eq. (3) in the main text.

The matrix-form eigenequation in the cylindrical-wave bases reads $$\frac{\omega}{\omega_0}
    \begin{pmatrix}
        \mathbf{A}_{+1} \\
        \mathbf{A}_{0} \\
        \mathbf{A}_{-1}
    \end{pmatrix}
    =
    \begin{pmatrix}
        + \mathbf{W} &  +\frac{q_{m n}R}{{{\rm i}}\sqrt{2}} \mathbf{I} & 0 \\
        - \frac{2\pi\beta(q_{m n})}{{{\rm i}}\sqrt{2}} \mathbf{I} & 0 &  + \frac{2\pi\beta(q_{m n})}{{{\rm i}}\sqrt{2}} \mathbf{I} \\
        0 &  -\frac{q_{m n}R}{{{\rm i}}\sqrt{2}} \mathbf{I} & -  \mathbf{W}
    \end{pmatrix}
    \begin{pmatrix}
        \mathbf{A}_{+1} \\
        \mathbf{A}_{0} \\
        \mathbf{A}_{-1}
    \end{pmatrix}
   .$$ Here $\mathbf{A}_s=(\mathcal{A}_{1,s},\mathcal{A}_{2,s},\dots,\mathcal{A}_{N,s})^{\text{T}}$, $\mathbf{I}$ is an $N\times N$ identity matrix, $\mathbf{W}$ is an $N\times N$ full matrix determined by the magnetic-field profile. If $B(r)=B_0$, then $\mathbf{W}=({\omega_{\text{c}}}/\omega_0)\mathbf{I}$ is diagonal with the constant cyclotron frequency ${\omega_{\text{c}}}= eB_0 / m_*c$, and the usual bulk MP modes can be recovered [@Jin:2016].

The generally radially-varying magnetic field in our problem results in scattering between different radial index $n$ (within the $s=-1$ and $+1$ chiral subspace though) and hence localization of new edge modes at the magnetic-domain boundary. We can find the matrix
q_{m n }) \rho(q_{m n})$, where $ V(q_{m n})$ follows Eq.   (3) in the main text. 

 The matrix - form eigenequation in the cylindrical - wave base understand $ $ \frac{\omega}{\omega_0 } 
     \begin{pmatrix } 
         \mathbf{A}_{+1 } \\ 
         \mathbf{A}_{0 } \\ 
         \mathbf{A}_{-1 } 
     \end{pmatrix } 
     = 
     \begin{pmatrix } 
         + \mathbf{W } &   + \frac{q_{m n}R}{{{\rm i}}\sqrt{2 } } \mathbf{I } & 0 \\ 
         - \frac{2\pi\beta(q_{m n})}{{{\rm i}}\sqrt{2 } } \mathbf{I } & 0 &   + \frac{2\pi\beta(q_{m n})}{{{\rm i}}\sqrt{2 } } \mathbf{I } \\ 
         0 &   -\frac{q_{m n}R}{{{\rm i}}\sqrt{2 } } \mathbf{I } & -   \mathbf{W } 
     \end{pmatrix } 
     \begin{pmatrix } 
         \mathbf{A}_{+1 } \\ 
         \mathbf{A}_{0 } \\ 
         \mathbf{A}_{-1 } 
     \end{pmatrix } 
    .$$ Here $ \mathbf{A}_s=(\mathcal{A}_{1,s},\mathcal{A}_{2,s},\dots,\mathcal{A}_{N, s})^{\text{T}}$, $ \mathbf{I}$ is an $ N\times N$ identity matrix, $ \mathbf{W}$ is an $ N\times N$ full matrix determined by the magnetic - discipline profile. If $ B(r)=B_0 $, then $ \mathbf{W}=({\omega_{\text{c}}}/\omega_0)\mathbf{I}$ is diagonal with the ceaseless cyclotron frequency $ { \omega_{\text{c}}}= eB_0 / m_*c$, and the common bulk MP modes can be recovered   [ @Jin:2016 ]. 

 The generally radially - varying charismatic field in our problem results in scattering between unlike radial index $ n$ (within the $ s=-1 $ and $ +1 $ chiral subspace though) and hence localization of function of new boundary mood at the magnetic - domain boundary. We can determine the matrix
q_{m j}) \rho(q_{m n})$, where $V(q_{m n})$ foulows Eq. (3) in the main txxt.

The jatrix-fofm eigenequation in the cyliidrixal-wace bases reads $$\frac{\omeea}{\omega_0}
    \begin{pnatrmx}
        \mathbf{E}_{+1} \\
        \mathgn{A}_{0} \\
        \mathbf{A}_{-1}
    \end{pmatrhx}
    =
    \begit{poacrix}
        + \mathbf{W} &  +\frac{q_{m n}R}{{{\rm i}}\fqrt{2}} \mayhhf{I} & 0 \\
        - \frab{2\py\betz(q_{m n})}{{{\rm i}}\sqrt{2}} \mathbf{I} & 0 &  + \frac{2\pi\bsta(q_{m n})}{{{\gm i}}\sqrt{2}} \mathbf{I} \\
        0 &  -\frac{q_{m n}R}{{{\rm i}}\sqgt{2}} \mwthbf{I} & -  \mathbf{W}
    \end{pmatrux}
    \begin{pmatrib}
        \mathbf{A}_{+1} \\
        \mathbf{A}_{0} \\
        \mathbf{A}_{-1}
    \evd{pmacrix}
   .$$ Herg $\jahvbf{A}_s=(\mathcao{A}_{1,s},\manhcal{A}_{2,s},\dots,\mabncal{A}_{N,v})^{\text{T}}$, $\kathbf{I}$ is an $K\timev N$ identity matrix, $\mathuf{W}$ is an $N\times N$ foll matrix dztermined by the magnwtuc-fiend psofiuw. Iw $B(d)=B_0$, tgen $\mahhbh{W}=({\omega_{\text{d}}}/\omega_0)\mathbd{I}$ is diagonal with trv constant cydlotrog srequency ${\omega_{\text{c}}}= eB_0 / m_*c$, and the usudl gulk MP modes can be rexovered [@Jin:2016].

The generalpy radialjy-varying magnetic field in our problem results it scavtdriun cwtaeen different radial index $n$ (within the $s=-1$ anq $+1$ vhpral subspace thomgh) and hence locakixayyon of new edee modza zt the magnetic-domwin bougdary. We can fynd yhe matrix
q_{m n}) \rho(q_{m n})$, where $V(q_{m n})$ (3) the main The matrix-form eigenequation $$\frac{\omega}{\omega_0} \mathbf{A}_{+1} \\ \mathbf{A}_{0} \mathbf{A}_{-1} \end{pmatrix} = + \mathbf{W} & +\frac{q_{m n}R}{{{\rm i}}\sqrt{2}} & 0 \\ - \frac{2\pi\beta(q_{m n})}{{{\rm i}}\sqrt{2}} \mathbf{I} & 0 & + \frac{2\pi\beta(q_{m i}}\sqrt{2}} \mathbf{I} \\ 0 & -\frac{q_{m n}R}{{{\rm i}}\sqrt{2}} \mathbf{I} & - \mathbf{W} \end{pmatrix} \mathbf{A}_{+1} \mathbf{A}_{0} \mathbf{A}_{-1} .$$ Here $\mathbf{A}_s=(\mathcal{A}_{1,s},\mathcal{A}_{2,s},\dots,\mathcal{A}_{N,s})^{\text{T}}$, $\mathbf{I}$ is an $N\times N$ identity matrix, $\mathbf{W}$ is an $N\times N$ full determined by the magnetic-field profile. If $B(r)=B_0$, then is diagonal with the cyclotron frequency ${\omega_{\text{c}}}= eB_0 / and usual bulk modes be [@Jin:2016]. The generally magnetic field in our problem results in scattering between different radial index $n$ (within the $s=-1$ and chiral subspace hence localization new modes the magnetic-domain boundary. find the matrix
q_{m n}) \rho(q_{m n})$, where $V(q_{m n})$ follows eq. (3) in the maiN text.

the MatRiX-forM eigEnequation in thE CyliNdrical-wave bases reads $$\fRac{\omEgA}{\OmegA_0}
    \BeGin{pmAtrix}
        \maTHbF{a}_{+1} \\
        \MatHbF{A}_{0} \\
        \MatHbF{a}_{-1}
    \eNd{pmaTriX}
    =
    \begin{pMatrix}
        + \mathBf{W} &  +\FrAc{q_{m n}R}{{{\rm i}}\sqrT{2}} \MaThbf{I} & 0 \\
        - \frac{2\pI\beTa(q_{m n})}{{{\rm i}}\sqrt{2}} \MatHbf{I} & 0 &  + \frAc{2\Pi\bETa(q_{m n})}{{{\Rm i}}\Sqrt{2}} \mAthbf{I} \\
        0 &  -\FRac{q_{m n}r}{{{\rm i}}\sqrt{2}} \mAtHBf{I} & -  \matHBf{W}
    \end{pMATrIx}
    \beGin{pmatrix}
        \mathbf{A}_{+1} \\
        \MAtHBf{A}_{0} \\
        \mathbf{A}_{-1}
    \end{pMatrix}
   .$$ heRE $\mATHbf{a}_s=(\mAthcal{A}_{1,s},\maThCal{A}_{2,s},\DOts,\mathCAl{a}_{n,S})^{\TexT{t}}$, $\mathbf{I}$ is an $N\Times N$ identITy mAtrix, $\mAtHbf{w}$ Is an $N\tImes N$ FuLL maTrix determiNed bY the magneTic-fieLD profilE. if $B(r)=B_0$, thEn $\mathBf{W}=({\OmeGa_{\teXT{c}}}/\OmEga_0)\MaTHbf{i}$ Is DiaGOnaL with the CoNsTant cYcloTRON FreqUenCy ${\omEga_{\teXt{c}}}= eB_0 / m_*c$, and the UsuAl buLK MP Modes Can be RecoVeRed [@JiN:2016].

The geNeralLy Radially-varying MagnEtic field In oUr ProBlEm resULts in sCatTerIng betwEen diffERenT rADIAl Index $n$ (within the $s=-1$ anD $+1$ cHIRaL subspacE thougH) AnD hENce localIzAtiOn of NEW edge ModeS At The magneTic-domAIn BoUndary. WE cAn find ThE maTriX
q_{m n}) \rho(q_{m n})$, w here $V(q_ {m n} )$fol lo ws E q. ( 3) in the main text .

The matrix-form eig enequ at i on i n  t he cy lindric a l- w a veba se s r ea d s$$\fr ac{ \omega} {\omega_0} 
  \begin{pmatr i x} 
        \ mat hbf{A}_{+1}\\      \ma t hbf{A }_{ 0} \\ 
      \mat hbf{A}_{- 1}     \e n d{pmatr i x }   =
    \begin{pmat r ix } 
        + \ma thbf{W }&  + \ fra c{q _{m n}R}{{ {\ rm i} } \sqrt{2 } }\ m a thb f {I} & 0 \\
       - \fr a c{2 \pi\be ta (q_ { m n})} {{{\r mi }}\ sqrt{2}} \m athb f{I} & 0&  + \ f rac{2\p i \beta(q _{m n} )}{ {{\ rm i } }\ sq rt{ 2} }  \m a th bf{ I } \ \
      0&  -\ frac { q _ { m n} R}{ {{\r m i}} \sqrt{2}} \ma thb f{I} & -   \ma thbf{ W}
  \end {pmatr ix}
  \begin{pmatrix }
       \ma thb f{ A}_ {+ 1} \\        \ mat hbf{A}_ {0} \\   \ ma thbf{A}_{-1}
    \ en d { pm atrix}
  .$$H er e$ \mathbf{ A} _s= (\ma t h cal{A }_{1 , s} ,\mathca l{A}_{ 2 ,s }, \dots,\ ma thcal{ A} _{N ,s} )^{\t e xt{T }}$, $ \mathbf{ I}$ i s  an $N\times N $  identity mat r ix , $\ m athb f{W }$ is an $N \tim e s N$  ful l  m atr i x det ermin ed by the magnetic-fieldpr ofile.  If $ B(r)=B_0$, th en $\mathb f { W }=({\ome ga_{ \ te x t{c}}}/\omega_ 0)\ma thbf{I}$ i s  diagona l wit h the co nstant cy c l otron fr equ enc y $ {\o m e ga _{\text{c}}}= e B_0/m_*c$,and  the us ual  bu lkMPmo des can b e recove re d[@ Ji n:2 016]. 
The gen er all yrad ially - varyin g mag neti cfi e ldin ourp ro b l em r es ul ts i n s ca tteri ng b e twe en diff erent rad ial inde x$n $ (with in the $s=-1$  a nd $+1$ ch ir alsubspa c e  though)  and hence localization of newedg e mod es a t the mag net ic-dom ain bounda ry. We  canfi ndt h e mat r i x
q_{m n})_\rho(q_{m n})$,_where $V(q_{m n})$ follows_Eq. (3) in_the_main text.

The_matrix-form_eigenequation in the_cylindrical-wave bases reads_$$\frac{\omega}{\omega_0}
   _\begin{pmatrix}
  __    \mathbf{A}_{+1} \\
        \mathbf{A}_{0}_\\
_ ___   \mathbf{A}_{-1}
 _  \end{pmatrix}
  _ =
_   \begin{pmatrix}
    __  +_\mathbf{W} &  +\frac{q_{m n}R}{{{\rm i}}\sqrt{2}} \mathbf{I} & 0_\\
     _  -_\frac{2\pi\beta(q_{m_n})}{{{\rm_i}}\sqrt{2}} \mathbf{I} & 0_&  + \frac{2\pi\beta(q_{m n})}{{{\rm i}}\sqrt{2}}_\mathbf{I} \\
    _   0 &  -\frac{q_{m_n}R}{{{\rm i}}\sqrt{2}} \mathbf{I} & - _\mathbf{W}
    \end{pmatrix}
_ _ \begin{pmatrix}
   _  _ \mathbf{A}_{+1}_\\
  _     \mathbf{A}_{0}_\\
  _     \mathbf{A}_{-1}
__  \end{pmatrix}
___.$$ Here_$\mathbf{A}_s=(\mathcal{A}_{1,s},\mathcal{A}_{2,s},\dots,\mathcal{A}_{N,s})^{\text{T}}$, $\mathbf{I}$ is_an_$N\times N$_identity_matrix, $\mathbf{W}$ is an $N\times N$_full_matrix determined by the magnetic-field profile. If_$B(r)=B_0$, then $\mathbf{W}=({\omega_{\text{c}}}/\omega_0)\mathbf{I}$ is_diagonal_with the constant cyclotron_frequency ${\omega_{\text{c}}}= eB_0 / m_*c$,_and the usual bulk MP modes_can be_recovered [@Jin:2016].

The generally_radially-varying magnetic field in our problem results in scattering between different_radial index $n$ (within the $s=-1$_and $+1$ chiral subspace_though) and_hence_localization of new_edge_modes at_the magnetic-domain boundary. We can find the_matrix