
    F j                     "    S SK Jr  S\SS4S jrg)   )StateInlinestatereturnNc                    Sn[        U R                  5      nS=p4X2:  Ga  U R                  U   R                  S:  a  US-  nXR                  U   l        U R                  U   R                  S:  a  US-  nU R                  U   R                  S:X  a  US-   U:  a  U R                  US-      R                  S:X  a  U R                  U   R
                  /nUS-  nX2:  an  U R                  U   R                  S:X  aQ  UR                  U R                  U   R
                  5        US-  nX2:  a  U R                  U   R                  S:X  a  MQ  U R                  US-
     nSR                  U5      Ul        Xl        X`R                  U'   US-  nGMy  X4:w  a  U R                  U   U R                  U'   US-  nUS-  nX2:  a  GM  X4:w  a  U R                  US2	 gg)a  
Clean up tokens after emphasis and strikethrough postprocessing:
merge adjacent text nodes into one and re-calculate all token levels

This is necessary because initially emphasis delimiter markers (``*, _, ~``)
are treated as their own separate text tokens. Then emphasis rule either
leaves them as text (needed to merge with adjacent text) or turns them
into opening/closing tags (which messes up levels inside).
    r   text N)lentokensnestingleveltypecontentappendjoin)r   r   maximumcurrlastpartsmergeds          x/root/GenerationalWealth/GenerationalWealth/venv/lib/python3.13/site-packages/markdown_it/rules_inline/fragments_join.pyfragments_joinr      s    E%,,GOD
. <<%%)QJE#(T <<%%)QJE LL##v-q7"TAX&++v5 \\$'//0EAID.U\\$%7%<%<%FU\\$/778	 .U\\$%7%<%<%F \\$(+FWWU^FN L!'LLAID<!&d!3ELL		C .F |LL     )state_inliner   r    r   r   <module>r      s    %2 + 2 $ 2 r   