A compound of Formula: or a pharmaceutically acceptable salt thereof, wherein each of A 4 and A 5 is independently N or C-R 15, each R 15 is independently -H or an optionally substituted C 1-6 alkyl; each D is independently N or CH; wherein ring A is: wherein each of R 1 and R 2 is independently halo, -H, -OH, -CN, -CF 3, -C 1-6 alkyl, or a 3-6 membered cycloaliphatic; or wherein each of R 1 and R 2 is independently halo, -H, -OH, -CN, -CF 3, -C 1-6 alkyl, or a 3-6 membered cycloaliphatic, or R 1 and R 2 together with the atoms to which they are attached form a 5-6 membered cycloalkyl, wherein the cycloalkyl is optionally substituted with 1-2 of R 6; each of R 1 and R 2 is independently halo, -H, -OH, -CN, -CF 3, -C 1-6 alkyl, or a 3-6 membered cycloaliphatic, or R 1 and R 2 together with the atoms to which they are attached form a 5-6 membered cycloalkyl fused to ring C, wherein the cycloalkyl is optionally substituted with 1-2 of R 6, wherein each R 6 is independently -H, halo, or C 1-3 alkyl; R 3 is C 1-6 alkyl; X Y is wherein Ring B is phenyl, or a 5-6 membered monocyclic heteroaryl having 1-2 nitrogen atoms, or a 7-10 membered fused bicyclic heterocycle having 2-3 nitrogen atoms, wherein at least one of the rings of the bicyclic heterocycle is partially or fully unsaturated, and ring D is absent or an optionally substituted 4-7 membered heterocycle having at least 1 nitrogen atom and optionally 2 additional heteroatoms independently selected from N, O, or S; L is a bivalent C 1-20 alkyl group, wherein one or more methylene units of the C 1-20 alkyl group is optionally and independently replaced by -C -, -C -, - CO-, -OC -, -O-, -N(R')-, -S-, -N(R')C -, bivalent mono- or bicyclic heterocycloalkyl, bivalent mono- or bicyclic cycloalkyl, bivalent mono- or bicyclic aryl, or bivalent mono- or bicyclic heteroaryl, wherein each of the bivalent heterocycloalkyl, cycloalkyl, aryl, and heteroaryl are optionally substituted; and Z is or wherein ring E is phenyl or a 5-6 membered heteroaryl having at least 1 heteroatom independently selected from N or S; each of A 1, A 2, and A 3 is independently -C(R B)= or -N=; B is -C(R C)= or -N=; W is -C(R D) 2 - or -C -; R A is -H, -CH 3, or -F; each R B is independently-H, halo, -OH, -C 1-4 alkyl, or -C 1-4 alkoxy; R C is -H, halo, or C 1-4 alkyl; and each R D is independently-H or -C 1-3 alkyl; and r is 1, 2, or 3. each of A 4 and A 5 is independently N or C-R 15, each R 15 is independently -H or an optionally substituted C 1-6 alkyl; each D is independently N or CH; wherein ring A is: wherein each of R 1 and R 2 is independently halo, -H, -OH, -CN, -CF 3, -C 1-6 alkyl, or a 3-6 membered cycloaliphatic; or wherein each of R 1 and R 2 is independently halo, -H, -OH, -CN, -CF 3, -C 1-6 alkyl, or a 3-6 membered cycloaliphatic, or R 1 and R 2 together with the atoms to which they are attached form a 5-6 membered cycloalkyl, wherein the cycloalkyl is optionally substituted with 1-2 of R 6; each of R 1 and R 2 is independently halo, -H, -OH, -CN, -CF 3, -C 1-6 alkyl, or a 3-6 membered cycloaliphatic, or R 1 and R 2 together with the atoms to which they are attached form a 5-6 membered cycloalkyl fused to ring C, wherein the cycloalkyl is optionally substituted with 1-2 of R 6, wherein each R 6 is independently -H, halo, or C 1-3 alkyl; R 3 is C 1-6 alkyl; X Y is wherein Ring B is phenyl, or a 5-6 membered monocyclic heteroaryl having 1-2 nitrogen atoms, or a 7-10 membered fused bicyclic heterocycle having 2-3 nitrogen atoms, wherein at least one of the rings of the bicyclic heterocycle is partially or fully unsaturated, and ring D is absent or an optionally substituted 4-7 membered heterocycle having at least 1 nitrogen atom and optionally 2 additional heteroatoms independently selected from N, O, or S; L is a bivalent C 1-20 alkyl group, wherein one or more methylene units of the C 1-20 alkyl group is optionally and independently replaced by -C -, -C -, - CO-, -OC -, -O-, -N(R')-, -S-, -N(R')C -, bivalent mono- or bicyclic heterocycloalkyl, bivalent mono- or bicyclic cycloalkyl, bivalent mono- or bicyclic aryl, or bivalent mono- or bicyclic heteroaryl, wherein each of the bivalent heterocycloalkyl, cycloalkyl, aryl, and heteroaryl are optionally substituted; and Z is or wherein ring E is phenyl or a 5-6 membered heteroaryl having at least 1 heteroatom independently selected from N or S; each of A 1, A 2, and A 3 is independently -C(R B)= or -N=; B is -C(R C)= or -N=; W is -C(R D) 2 - or -C -; R A is -H, -CH 3, or -F; each R B is independently-H, halo, -OH, -C 1-4 alkyl, or -C 1-4 alkoxy; R C is -H, halo, or C 1-4 alkyl; and each R D is independently-H or -C 1-3 alkyl; and r is 1, 2, or 3. ring E is phenyl or a 5-6 membered heteroaryl having at least 1 heteroatom independently selected from N or S; each of A 1, A 2, and A 3 is independently -C(R B)= or -N=; B is -C(R C)= or -N=; W is -C(R D) 2 - or -C -; R A is -H, -CH 3, or -F; each R B is independently-H, halo, -OH, -C 1-4 alkyl, or -C 1-4 alkoxy; R C is -H, halo, or C 1-4 alkyl; and each R D is independently-H or -C 1-3 alkyl; and r is 1, 2, or 3.