angular-datatables-v20 20.0.0 → 20.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/lib/fesm2022/angular-datatables.mjs → fesm2022/angular-datatables-v20.mjs} +8 -8
- package/fesm2022/angular-datatables-v20.mjs.map +1 -0
- package/package.json +21 -71
- package/.angular/cache/20.1.0/angular-webpack/65daa0f8064df52205f2e588026866c7db45460f/0.pack +0 -0
- package/.angular/cache/20.1.0/angular-webpack/65daa0f8064df52205f2e588026866c7db45460f/index.pack +0 -0
- package/.angular/cache/20.1.0/babel-webpack/0012666ab9d46ce3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/005245170d6a809e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/02466157c02071a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/02949ac12a679e48.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/030c0ddf38c7c964.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/03400cac921ef95c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/03830d87b17ff3a3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/03d69c7d93289025.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0408951c845cd207.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/04eaeb033969e5fe.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/05528ca6fb0d661f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/05b435cf78824e17.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/06543ac8d6894481.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/077c218f1eb65b2c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/08cb29cbfb3f88cd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/091b18f1f40e4856.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/09462a3542adb955.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/09afdf2641fd04bc.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/09d43d5102c7d424.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0b17d5d2ae99e6d8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0c00e206246cee39.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0c2fa9b8409c06ec.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0d6f8d71f5ea8802.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0eb7ed8eac353807.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/0edcbc95dc7d8f49.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/106d70882da45568.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/10915a557e410679.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1286bc327980d1f1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/13220c4efb3e0d7a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/14ba40ae586daf7b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/14c45dbaf8998f8c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/14dd6bede11094b7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1634559e44da6c73.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/172f80de50a487f8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1858912add0f17cd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/187a7ec7b2d78abf.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/18965baa3fb000a7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1925f1635c9caa6e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1942544ed79f6850.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1ab6eda1333777f1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1be370c47d54f208.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1d5e19d13931bf2c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1e5c73ee1631ad0d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1ec23595d767d52c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1eebc570ddd780d5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1f5581849900af79.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/1f6125b924016d01.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/207f42ce7344d8e5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/20a40f97c48b7098.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2208dcfa7dc7a976.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/233767e1f0773ac7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/23843cbf15f060ac.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/243ee1e3ee28469e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2886c59e2cc4c090.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/288bf00a7759473c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/291276cea2b712ee.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/292c52728a5ab556.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2a471461faad3462.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ac3104e4edbf3c9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2b2bbedddbdf764e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ba7e52d9ea164b1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2c812d19bef086b6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2c8dc30608e43cde.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2d83786f7977fe4a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2dde654f610ff9d8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ed0ff8be47eb552.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/2ed92e7bad47d978.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/32121fb576c45aed.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/343b62eb3f7a52d3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/345157c66408a841.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/35384116e5208ee7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3700cf1bc5fbe6a9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/371dad8bd2a4e103.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/378ead037f8ba0b9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/378f5178404a17b3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/37bf88ed0b3205fd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/38dbae36d6f64215.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3a271f255035b6d7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3b88e6cef8d88a54.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3c57869ed5ceacd3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3c82e4f79e74ccee.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3ca750d36bba20c2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3cf5784a5df0c1ac.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/3d5c3c3536611aa8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/41a4f7ad5cf70285.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/42dede0524864742.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/43e6ae28da88b5b0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4520d0ba2af790b6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/45c93390fd241526.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/473d6795bd3dd4b4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/478e4f68135b3ef1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/47d3a19cc2042b3c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/482b30f0ddae15ae.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4880532085f23e54.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/48ca9259e044310d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/49961540dc409cbd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4b06625bf947efb0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4c328fc20034cc57.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4d101b6daeea9efd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4e10df3ca4861296.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4e1a1d1a75004118.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/4fc5c2de0aa0aca0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/500912330c4f8f96.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5068e8a7c17bfc63.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/50c071b2060d149f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/522c2a523ad4c3e3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/52b22a4170704754.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/531f7490ee796b39.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/555ee869a813b980.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/55c3ed28351788a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/56c6c8fa591806c5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/57a218a0fc1dbbb0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/58ec5c19fd2d039d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/59f3704bfa1ce36c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5e03779d23d4cfb0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5e1ab312f4e19acd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/5ff63af37343fea5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/61d0b03723e01a7c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/61d3a1fe471596b9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6300b6f6d16c5ec3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6356d51cb7af94a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/639f8f3fb49c601e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/63d0a786e2affc3f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/694ddfa0ee04b4e8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/696ce79d8d597778.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6e12a55ff672bfd0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6e32f48fefbbbede.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6e66fef001acdf84.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/6f0cfc15aa53ecb5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/704bf8c666f9e53f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/70f2132b4b30d9f4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/720277d7535677fa.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/721a4855191022e2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/72790756b1612201.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/72d1f6f7252072cf.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/75e1448d5bfa90e7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/76b1dce08831b6f3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/774fe17f320772d1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/77c86503be60062d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/78b6e2101afd2749.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7914ac13a4f614cb.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7952304f3e4b879d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7ac2319ee97edc16.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7ad834e7eb1cf434.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7b14e52c82558257.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7c36ba06d9e4eb30.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7d5164221117c7a4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7e9f9e5400097de6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7ed0439532266fb1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7f2c2e0f9979fbb1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/7f3fa30670f24d88.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/80ab941d9fcf80d7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/819ce6264e0883ac.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/84255d7be077dff8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8426f2fd3a6efd0a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/84ab054d5682f08c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/85227e238ea29ab4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/85b1d09c0b6e37b7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/860a101284cadb63.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8666091d0cbe78c1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/86cdb6979822c14e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/872676761970fc14.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8943a1cb93b53c14.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/89a40bd7cda83705.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8a2da8aecaba1e78.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8bc3f32dce81a26b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8ca4432e1e5d6d8e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8d088fb012ab56e9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8e29a112da8a44f1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8eeec51dc000c75b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/8f3856479799b76b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/900c3bb650e6ba32.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/918c43b8c6821992.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/92f923eabe0abc68.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/94078d1a52fd8ba8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/947b7af316ca192f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/952dc76bb0535502.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9639c3a761341e1a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9819e9b9f75ed550.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/982bf63f3a15dbec.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9872aedb4caea05d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9898aba7144a4867.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/98d67f512c2a6f85.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/98e214a54b446303.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9ad17f0c32de2372.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9badf91f906ea20d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9baed7f84b66a10a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9bee003523d6dde4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9bf413825fc29f8f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9db0135a206239b0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9f29566c0be78d19.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/9ffc4017c3f39454.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a1793f3d6f818ada.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a1ac8b544a45673f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a3152e49d6b91df8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a3330e8bd87e75b3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a46adbe0866b4f50.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a4e97e843808e337.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a5b634bdd3eb03d9.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a5f6b3f09644232d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a63a6ce9d58f1c53.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a70b2210366c6124.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a7f29e2dcda4e8c2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/a9d94d2f3680f588.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/aa2d4f683efbf6c0.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/aa6a791df8ab914e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/abd1cdee8649f63f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ac135990df27ef84.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ac5164ca58e1c076.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ac5b7970f1eb172c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ad659d2c1cca8ad8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ada5b9f0076e93b2.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ae39a3934617ba8a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ae70c040bd645184.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b0ddd26f5dd753d7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b0eb02ac2a3bcde1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b1049c05a94ffeb5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b2984fa59f40fd09.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b2e830ac7ba2195c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b370bc15d48a81fd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b424ea40cc6f76b1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b5a63cd718db5b94.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b61d262cb7b3d8a3.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/b64e4db2db3f845b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bacf8341fedffcca.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bd1cd73503e8f498.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bd2be7f59789d6a5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bda724dde140e142.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bed5b0f75ea3fdf1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/bf1541781679c49f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c06b75731476f374.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c0fccac74d002507.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c15f1fdcd4df34f7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c514070af29e7e40.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c733ad8f144911bf.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c7497c5ab48be082.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c828c1ebec07840f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c853bdafe1561f87.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c8edf4367fe44457.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c91f5b6e57b7d854.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/c95d768acd0a6557.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/cad60b925a39332e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/cccce85813ee08f7.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/cf5d541f91bf2ef5.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d10f45a994eebb91.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d19b9628459e7cab.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d230bf02fb475b47.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d26b6439742fedf6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d3e572827ba0ea3c.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d58e353a6b1b3064.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d5a352d948bb8d3d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d741a5b650472b6b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d780bd279d68f22f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/d7d20580a8767e7a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dc961d2355a41eb1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dca4eb1623c40036.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dd553484f726b4ca.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/de219c27dc4ada1b.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/de30f17241cf33da.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/de7ed0dd55447c20.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/dfd3fbc9eb837ab8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e02f049ed358918e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e0cca04f3d06a6e8.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e102d0d993ca8dd4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e201ee06bad8063a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e22e7eebc908b00d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e32b6e7f2ed18d66.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e525567937cf9853.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e670d9b7834fe48d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e6919a85f59374ff.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e6cf4cb75779296a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e846843347a59ab1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/e8ef44d8620e9c69.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eac7806682b74ff1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eba62857582d4c0a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ebc4e01f6cb28088.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ebd0e66ed0794ce6.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ebf47df371580685.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ec20ee99ca7aa203.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ec32a846bf02be62.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ed62010e049cddca.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eff4d61f5015c709.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/eff8f0a1d27bef19.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/efff5ec656c449b4.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f022f6633a2fa31a.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f03d979bfb303a74.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f1d78a04d3b14b62.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f1f475348625c93f.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f2495f11120f68dd.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f3e3b3a5165a5f5d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f46e0ae8c885ae50.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f494b30f193ca5da.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f4f802d2bfffa86e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f711b9992da9c363.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f810d38830794790.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f91346f33cbb1c66.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/f9201834a2fff34d.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fa6e1713b18c0dc1.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fc59352b42e22266.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fcba4592f339db6e.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fdd2932239f195be.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/fe2fd88635eb7ede.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/feba6e5b80aa2b32.json +0 -1
- package/.angular/cache/20.1.0/babel-webpack/ff5e0454f71fb45c.json +0 -1
- package/.angular/cache/20.1.0/ng-packagr/edf767c561f9d035522773ac2f5e224ff75e3296ee2908a27a8f98705f380801 +0 -1
- package/.angular/cache/20.1.0/ng-packagr/tsbuildinfo/angular-datatables.tsbuildinfo +0 -1
- package/LICENSE +0 -21
- package/README.md +0 -30
- package/angular.json +0 -213
- package/dist/lib/fesm2022/angular-datatables.mjs.map +0 -1
- package/lib/ng-package.prod.json +0 -9
- package/lib/package.json +0 -35
- package/lib/schematics/src/collection.json +0 -11
- package/lib/schematics/src/ng-add/schema.json +0 -41
- package/lib/tsconfig.lib.json +0 -18
- package/lib/tsconfig.lib.prod.json +0 -12
- /package/{dist/lib/index.d.ts → index.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"/**\n * @license Angular v20.1.0\n * (c) 2010-2025 Google LLC. https://angular.io/\n * License: MIT\n */\n\nfunction parseCookieValue(cookieStr, name) {\n name = encodeURIComponent(name);\n for (const cookie of cookieStr.split(';')) {\n const eqIndex = cookie.indexOf('=');\n const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n if (cookieName.trim() === name) {\n return decodeURIComponent(cookieValue);\n }\n }\n return null;\n}\n\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nclass XhrFactory {}\nexport { XhrFactory, parseCookieValue };\n//# sourceMappingURL=xhr.mjs.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { asyncScheduler } from '../scheduler/async';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\nexport function delay(due, scheduler = asyncScheduler) {\n const duration = timer(due, scheduler);\n return delayWhen(() => duration);\n}\n//# sourceMappingURL=delay.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { RouterModule } from '@angular/router';\nimport { WelcomeComponent } from './welcome.component';\nimport { GettingStartedComponent } from './getting-started.component';\nimport { PersonComponent } from './person.component';\nimport { ZeroConfigComponent } from './basic/zero-config.component';\nimport { WithOptionsComponent } from './basic/with-options.component';\nimport { WithAjaxComponent } from './basic/with-ajax.component';\nimport { AngularWayComponent } from './basic/angular-way.component';\nimport { CustomRangeSearchComponent } from './advanced/custom-range-search.component';\nimport { DtInstanceComponent } from './advanced/dt-instance.component';\nimport { IndividualColumnFilteringComponent } from './advanced/individual-column-filtering.component';\nimport { LoadDtOptionsWithPromiseComponent } from './advanced/load-dt-options-with-promise.component';\nimport { RerenderComponent } from './advanced/rerender.component';\nimport { RowClickEventComponent } from './advanced/row-click-event.component';\nimport { MultipleTablesComponent } from './advanced/multiple-tables.component';\nimport { RouterLinkComponent } from './advanced/router-link.component';\nimport { ButtonsExtensionComponent } from './extensions/buttons-extension.component';\nimport { ColreorderExtensionComponent } from './extensions/colreorder-extension.component';\nimport { ResponsiveExtensionComponent } from './extensions/responsive-extension.component';\nimport { SelectExtensionComponent } from './extensions/select-extension.component';\nimport { UsingNgPipeComponent } from './advanced/using-ng-pipe.component';\nimport { FAQComponent } from './f-a-q/f-a-q.component';\nimport { UsingNgTemplateRefComponent } from './advanced/using-ng-template-ref.component';\nimport { MoreHelpComponent } from './more-help/more-help.component';\nimport { WithAjaxCallbackComponent } from './basic/with-ajax-callback/with-ajax-callback.component';\nimport { NewServerSideComponent } from './basic/new-server-side/new-server-side.component';\nimport { FixedColumnsExtensionComponent } from './extensions/fixed-columns-extension.component';\nimport { ServerSideAngularWayComponent } from './basic/server-side-angular-way.component';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nconst routes = [{\n path: '',\n redirectTo: '/welcome',\n pathMatch: 'full'\n}, {\n path: 'welcome',\n component: WelcomeComponent\n}, {\n path: 'getting-started',\n component: GettingStartedComponent\n}, {\n path: 'more-help',\n component: MoreHelpComponent\n}, {\n path: 'person/:id',\n component: PersonComponent\n}, {\n path: 'basic/zero-config',\n component: ZeroConfigComponent\n}, {\n path: 'basic/with-options',\n component: WithOptionsComponent\n}, {\n path: 'basic/with-ajax',\n component: WithAjaxComponent\n}, {\n path: 'basic/with-ajax-callback',\n component: WithAjaxCallbackComponent\n}, {\n path: 'basic/new-server-side',\n component: NewServerSideComponent\n}, {\n path: 'basic/angular-way',\n component: AngularWayComponent\n}, {\n path: 'basic/server-side-angular-way',\n component: ServerSideAngularWayComponent\n}, {\n path: 'advanced/custom-range-search',\n component: CustomRangeSearchComponent\n}, {\n path: 'advanced/dt-instance',\n component: DtInstanceComponent\n}, {\n path: 'advanced/individual-column-filtering',\n component: IndividualColumnFilteringComponent\n}, {\n path: 'advanced/load-dt-options-with-promise',\n component: LoadDtOptionsWithPromiseComponent\n}, {\n path: 'advanced/rerender',\n component: RerenderComponent\n}, {\n path: 'advanced/row-click-event',\n component: RowClickEventComponent\n}, {\n path: 'advanced/multiple-tables',\n component: MultipleTablesComponent\n}, {\n path: 'advanced/router-link',\n component: RouterLinkComponent\n}, {\n path: 'advanced/using-pipe',\n component: UsingNgPipeComponent\n}, {\n path: 'advanced/using-template-ref',\n component: UsingNgTemplateRefComponent\n}, {\n path: 'extensions/buttons',\n component: ButtonsExtensionComponent\n}, {\n path: 'extensions/colreorder',\n component: ColreorderExtensionComponent\n}, {\n path: 'extensions/fixed-columns',\n component: FixedColumnsExtensionComponent\n}, {\n path: 'extensions/responsive',\n component: ResponsiveExtensionComponent\n}, {\n path: 'extensions/select',\n component: SelectExtensionComponent\n}, {\n path: 'faq',\n component: FAQComponent\n}];\nexport let AppRoutingModule = /*#__PURE__*/(() => {\n class AppRoutingModule {\n static #_ = this.ɵfac = function AppRoutingModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || AppRoutingModule)();\n };\n static #_2 = this.ɵmod = /*@__PURE__*/i0.ɵɵdefineNgModule({\n type: AppRoutingModule\n });\n static #_3 = this.ɵinj = /*@__PURE__*/i0.ɵɵdefineInjector({\n imports: [RouterModule.forRoot(routes, {\n useHash: true\n }), RouterModule]\n });\n }\n return AppRoutingModule;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { reduce } from './reduce';\nimport { isFunction } from '../util/isFunction';\nexport function min(comparer) {\n return reduce(isFunction(comparer) ? (x, y) => comparer(x, y) < 0 ? x : y : (x, y) => x < y ? x : y);\n}\n//# sourceMappingURL=min.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import data from '../data/data.json';\nimport * as i0 from \"@angular/core\";\nexport let PersonService = /*#__PURE__*/(() => {\n class PersonService {\n constructor() {}\n getPerson(id) {\n const persons = data.data;\n return persons.find(person => person?.id == parseInt(id));\n }\n static #_ = this.ɵfac = function PersonService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || PersonService)();\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: PersonService,\n factory: PersonService.ɵfac\n });\n }\n return PersonService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function skipUntil(notifier) {\n return operate((source, subscriber) => {\n let taking = false;\n const skipSubscriber = new OperatorSubscriber(subscriber, () => {\n skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe();\n taking = true;\n }, noop);\n innerFrom(notifier).subscribe(skipSubscriber);\n source.subscribe(new OperatorSubscriber(subscriber, value => taking && subscriber.next(value)));\n });\n}\n//# sourceMappingURL=skipUntil.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import * as i0 from \"@angular/core\";\nexport let WelcomeComponent = /*#__PURE__*/(() => {\n class WelcomeComponent {\n constructor() {\n this.installMd = 'assets/docs/welcome/installation.md';\n }\n static #_ = this.ɵfac = function WelcomeComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || WelcomeComponent)();\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: WelcomeComponent,\n selectors: [[\"app-welcome\"]],\n standalone: false,\n decls: 49,\n vars: 1,\n consts: [[1, \"top-banner\", \"section\", \"banner\"], [1, \"container\"], [1, \"row\"], [1, \"col\", \"s12\", \"m9\"], [1, \"header\", \"center-on-small-only\"], [1, \"caption\"], [\"href\", \"https://datatables.net/\"], [3, \"src\"], [1, \"header\"], [1, \"section\"], [1, \"col\", \"s12\", \"m12\", \"l12\"], [1, \"col\", \"s12\", \"m4\", \"feature-item\"], [1, \"material-icons\"]],\n template: function WelcomeComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\", 1)(2, \"div\", 2)(3, \"div\", 3)(4, \"h3\", 4);\n i0.ɵɵtext(5, \"Angular DataTables\");\n i0.ɵɵelementEnd()()()()();\n i0.ɵɵelementStart(6, \"div\", 1)(7, \"p\", 5);\n i0.ɵɵtext(8, \" An Angular2+ library for building complex HTML tables using \");\n i0.ɵɵelementStart(9, \"a\", 6);\n i0.ɵɵtext(10, \"DataTables\");\n i0.ɵɵelementEnd();\n i0.ɵɵtext(11, \" jQuery plug-in. \");\n i0.ɵɵelementEnd();\n i0.ɵɵelement(12, \"markdown\", 7);\n i0.ɵɵelementStart(13, \"h5\", 8);\n i0.ɵɵtext(14, \"Features:\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(15, \"div\", 9)(16, \"div\", 2)(17, \"div\", 10)(18, \"div\", 2)(19, \"div\", 11)(20, \"i\", 12);\n i0.ɵɵtext(21, \"download\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(22, \"h6\");\n i0.ɵɵtext(23, \"Quick Install\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(24, \"div\", 11)(25, \"i\", 12);\n i0.ɵɵtext(26, \"sync_alt\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(27, \"h6\");\n i0.ɵɵtext(28, \"Angular integration\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(29, \"div\", 11)(30, \"i\", 12);\n i0.ɵɵtext(31, \"dns\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(32, \"h6\");\n i0.ɵɵtext(33, \"Large dataset support\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(34, \"div\", 11)(35, \"i\", 12);\n i0.ɵɵtext(36, \"filter_alt\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(37, \"h6\");\n i0.ɵɵtext(38, \"Advanced Data Filter\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(39, \"div\", 11)(40, \"i\", 12);\n i0.ɵɵtext(41, \"extension\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(42, \"h6\");\n i0.ɵɵtext(43, \"Extensions support\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(44, \"div\", 11)(45, \"i\", 12);\n i0.ɵɵtext(46, \"lock_open\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(47, \"h6\");\n i0.ɵɵtext(48, \"MIT\");\n i0.ɵɵelementEnd()()()()()()();\n }\n if (rf & 2) {\n i0.ɵɵadvance(12);\n i0.ɵɵproperty(\"src\", ctx.installMd);\n }\n },\n styles: [\".welcome-btn[_ngcontent-%COMP%]{height:140px;padding:10px}.feature-item[_ngcontent-%COMP%]{text-align:center}.material-icons[_ngcontent-%COMP%]{border-radius:50%;width:80px;height:80px;color:#fff;background-color:#039be5;margin-top:10px;margin-bottom:4px;font-size:3em;line-height:1.8}\"]\n });\n }\n return WelcomeComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(() => {\n const {\n onUnhandledError\n } = config;\n if (onUnhandledError) {\n onUnhandledError(err);\n } else {\n throw err;\n }\n });\n}\n//# sourceMappingURL=reportUnhandledError.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nexport function skipLast(skipCount) {\n return skipCount <= 0 ? identity : operate((source, subscriber) => {\n let ring = new Array(skipCount);\n let seen = 0;\n source.subscribe(new OperatorSubscriber(subscriber, value => {\n const valueIndex = seen++;\n if (valueIndex < skipCount) {\n ring[valueIndex] = value;\n } else {\n const index = valueIndex % skipCount;\n const oldValue = ring[index];\n ring[index] = value;\n subscriber.next(oldValue);\n }\n }));\n return () => {\n ring = null;\n };\n });\n}\n//# sourceMappingURL=skipLast.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { DtVersionService } from './dt-version.service';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"./dt-version.service\";\nexport let GettingStartedComponent = /*#__PURE__*/(() => {\n class GettingStartedComponent {\n constructor(dtVersionService) {\n this.dtVersionService = dtVersionService;\n this.dtVersion = 'v2';\n this.mdV1 = 'assets/docs/get-started-dtv1.md';\n this.md = 'assets/docs/get-started.md';\n }\n ngOnInit() {\n this.dtVersionSubscription$ = this.dtVersionService.versionChanged$.subscribe(v => {\n this.dtVersion = v;\n });\n }\n static #_ = this.ɵfac = function GettingStartedComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || GettingStartedComponent)(i0.ɵɵdirectiveInject(i1.DtVersionService));\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: GettingStartedComponent,\n selectors: [[\"app-getting-started\"]],\n standalone: false,\n decls: 8,\n vars: 1,\n consts: [[1, \"top-banner\", \"section\", \"banner\"], [1, \"container\"], [1, \"row\"], [1, \"col\", \"s12\", \"m9\"], [1, \"header\", \"center-on-small-only\"], [\"id\", \"getting-started-wrapper\", 1, \"container\"], [3, \"src\"]],\n template: function GettingStartedComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\", 1)(2, \"div\", 2)(3, \"div\", 3)(4, \"h3\", 4);\n i0.ɵɵtext(5, \"Installation\");\n i0.ɵɵelementEnd()()()()();\n i0.ɵɵelementStart(6, \"div\", 5);\n i0.ɵɵelement(7, \"markdown\", 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵadvance(7);\n i0.ɵɵproperty(\"src\", ctx.dtVersion == \"v2\" ? ctx.md : ctx.mdV1);\n }\n },\n encapsulation: 2\n });\n }\n return GettingStartedComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { operate } from '../util/lift';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function takeUntil(notifier) {\n return operate((source, subscriber) => {\n innerFrom(notifier).subscribe(new OperatorSubscriber(subscriber, () => subscriber.complete(), noop));\n !subscriber.closed && source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=takeUntil.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"/**\n * marked v15.0.3 - a markdown parser\n * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed)\n * https://github.com/markedjs/marked\n */\n\n/**\n * DO NOT EDIT THIS FILE\n * The code in this file is generated from files in ./src/\n */\n\n/**\n * Gets the original marked default options.\n */\nfunction _getDefaults() {\n return {\n async: false,\n breaks: false,\n extensions: null,\n gfm: true,\n hooks: null,\n pedantic: false,\n renderer: null,\n silent: false,\n tokenizer: null,\n walkTokens: null\n };\n}\nlet _defaults = _getDefaults();\nfunction changeDefaults(newDefaults) {\n _defaults = newDefaults;\n}\nconst noopTest = {\n exec: () => null\n};\nfunction edit(regex, opt = '') {\n let source = typeof regex === 'string' ? regex : regex.source;\n const obj = {\n replace: (name, val) => {\n let valSource = typeof val === 'string' ? val : val.source;\n valSource = valSource.replace(other.caret, '$1');\n source = source.replace(name, valSource);\n return obj;\n },\n getRegex: () => {\n return new RegExp(source, opt);\n }\n };\n return obj;\n}\nconst other = {\n codeRemoveIndent: /^(?: {1,4}| {0,3}\\t)/gm,\n outputLinkReplace: /\\\\([\\[\\]])/g,\n indentCodeCompensation: /^(\\s+)(?:```)/,\n beginningSpace: /^\\s+/,\n endingHash: /#$/,\n startingSpaceChar: /^ /,\n endingSpaceChar: / $/,\n nonSpaceChar: /[^ ]/,\n newLineCharGlobal: /\\n/g,\n tabCharGlobal: /\\t/g,\n multipleSpaceGlobal: /\\s+/g,\n blankLine: /^[ \\t]*$/,\n doubleBlankLine: /\\n[ \\t]*\\n[ \\t]*$/,\n blockquoteStart: /^ {0,3}>/,\n blockquoteSetextReplace: /\\n {0,3}((?:=+|-+) *)(?=\\n|$)/g,\n blockquoteSetextReplace2: /^ {0,3}>[ \\t]?/gm,\n listReplaceTabs: /^\\t+/,\n listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g,\n listIsTask: /^\\[[ xX]\\] /,\n listReplaceTask: /^\\[[ xX]\\] +/,\n anyLine: /\\n.*\\n/,\n hrefBrackets: /^<(.*)>$/,\n tableDelimiter: /[:|]/,\n tableAlignChars: /^\\||\\| *$/g,\n tableRowBlankLine: /\\n[ \\t]*$/,\n tableAlignRight: /^ *-+: *$/,\n tableAlignCenter: /^ *:-+: *$/,\n tableAlignLeft: /^ *:-+ *$/,\n startATag: /^<a /i,\n endATag: /^<\\/a>/i,\n startPreScriptTag: /^<(pre|code|kbd|script)(\\s|>)/i,\n endPreScriptTag: /^<\\/(pre|code|kbd|script)(\\s|>)/i,\n startAngleBracket: /^</,\n endAngleBracket: />$/,\n pedanticHrefTitle: /^([^'\"]*[^\\s])\\s+(['\"])(.*)\\2/,\n unicodeAlphaNumeric: /[\\p{L}\\p{N}]/u,\n escapeTest: /[&<>\"']/,\n escapeReplace: /[&<>\"']/g,\n escapeTestNoEncode: /[<>\"']|&(?!(#\\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\\w+);)/,\n escapeReplaceNoEncode: /[<>\"']|&(?!(#\\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\\w+);)/g,\n unescapeTest: /&(#(?:\\d+)|(?:#x[0-9A-Fa-f]+)|(?:\\w+));?/ig,\n caret: /(^|[^\\[])\\^/g,\n percentDecode: /%25/g,\n findPipe: /\\|/g,\n splitPipe: / \\|/,\n slashPipe: /\\\\\\|/g,\n carriageReturn: /\\r\\n|\\r/g,\n spaceLine: /^ +$/gm,\n notSpaceStart: /^\\S*/,\n endingNewline: /\\n$/,\n listItemRegex: bull => new RegExp(`^( {0,3}${bull})((?:[\\t ][^\\\\n]*)?(?:\\\\n|$))`),\n nextBulletRegex: indent => new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:[*+-]|\\\\d{1,9}[.)])((?:[ \\t][^\\\\n]*)?(?:\\\\n|$))`),\n hrRegex: indent => new RegExp(`^ {0,${Math.min(3, indent - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\\\* *){3,})(?:\\\\n+|$)`),\n fencesBeginRegex: indent => new RegExp(`^ {0,${Math.min(3, indent - 1)}}(?:\\`\\`\\`|~~~)`),\n headingBeginRegex: indent => new RegExp(`^ {0,${Math.min(3, indent - 1)}}#`),\n htmlBeginRegex: indent => new RegExp(`^ {0,${Math.min(3, indent - 1)}}<(?:[a-z].*>|!--)`, 'i')\n};\n/**\n * Block-Level Grammar\n */\nconst newline = /^(?:[ \\t]*(?:\\n|$))+/;\nconst blockCode = /^((?: {4}| {0,3}\\t)[^\\n]+(?:\\n(?:[ \\t]*(?:\\n|$))*)?)+/;\nconst fences = /^ {0,3}(`{3,}(?=[^`\\n]*(?:\\n|$))|~{3,})([^\\n]*)(?:\\n|$)(?:|([\\s\\S]*?)(?:\\n|$))(?: {0,3}\\1[~`]* *(?=\\n|$)|$)/;\nconst hr = /^ {0,3}((?:-[\\t ]*){3,}|(?:_[ \\t]*){3,}|(?:\\*[ \\t]*){3,})(?:\\n+|$)/;\nconst heading = /^ {0,3}(#{1,6})(?=\\s|$)(.*)(?:\\n+|$)/;\nconst bullet = /(?:[*+-]|\\d{1,9}[.)])/;\nconst lheading = edit(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\\n(?!\\s*?\\n|bull |blockCode|fences|blockquote|heading|html))+?)\\n {0,3}(=+|-+) *(?:\\n+|$)/).replace(/bull/g, bullet) // lists can interrupt\n.replace(/blockCode/g, /(?: {4}| {0,3}\\t)/) // indented code blocks can interrupt\n.replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/) // fenced code blocks can interrupt\n.replace(/blockquote/g, / {0,3}>/) // blockquote can interrupt\n.replace(/heading/g, / {0,3}#{1,6}/) // ATX heading can interrupt\n.replace(/html/g, / {0,3}<[^\\n>]+>\\n/) // block html can interrupt\n.getRegex();\nconst _paragraph = /^([^\\n]+(?:\\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\\n)[^\\n]+)*)/;\nconst blockText = /^[^\\n]+/;\nconst _blockLabel = /(?!\\s*\\])(?:\\\\.|[^\\[\\]\\\\])+/;\nconst def = edit(/^ {0,3}\\[(label)\\]: *(?:\\n[ \\t]*)?([^<\\s][^\\s]*|<.*?>)(?:(?: +(?:\\n[ \\t]*)?| *\\n[ \\t]*)(title))? *(?:\\n+|$)/).replace('label', _blockLabel).replace('title', /(?:\"(?:\\\\\"?|[^\"\\\\])*\"|'[^'\\n]*(?:\\n[^'\\n]+)*\\n?'|\\([^()]*\\))/).getRegex();\nconst list = edit(/^( {0,3}bull)([ \\t][^\\n]+?)?(?:\\n|$)/).replace(/bull/g, bullet).getRegex();\nconst _tag = 'address|article|aside|base|basefont|blockquote|body|caption' + '|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption' + '|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe' + '|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option' + '|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title' + '|tr|track|ul';\nconst _comment = /<!--(?:-?>|[\\s\\S]*?(?:-->|$))/;\nconst html = edit('^ {0,3}(?:' // optional indentation\n+ '<(script|pre|style|textarea)[\\\\s>][\\\\s\\\\S]*?(?:</\\\\1>[^\\\\n]*\\\\n+|$)' // (1)\n+ '|comment[^\\\\n]*(\\\\n+|$)' // (2)\n+ '|<\\\\?[\\\\s\\\\S]*?(?:\\\\?>\\\\n*|$)' // (3)\n+ '|<![A-Z][\\\\s\\\\S]*?(?:>\\\\n*|$)' // (4)\n+ '|<!\\\\[CDATA\\\\[[\\\\s\\\\S]*?(?:\\\\]\\\\]>\\\\n*|$)' // (5)\n+ '|</?(tag)(?: +|\\\\n|/?>)[\\\\s\\\\S]*?(?:(?:\\\\n[ \\t]*)+\\\\n|$)' // (6)\n+ '|<(?!script|pre|style|textarea)([a-z][\\\\w-]*)(?:attribute)*? */?>(?=[ \\\\t]*(?:\\\\n|$))[\\\\s\\\\S]*?(?:(?:\\\\n[ \\t]*)+\\\\n|$)' // (7) open tag\n+ '|</(?!script|pre|style|textarea)[a-z][\\\\w-]*\\\\s*>(?=[ \\\\t]*(?:\\\\n|$))[\\\\s\\\\S]*?(?:(?:\\\\n[ \\t]*)+\\\\n|$)' // (7) closing tag\n+ ')', 'i').replace('comment', _comment).replace('tag', _tag).replace('attribute', / +[a-zA-Z:_][\\w.:-]*(?: *= *\"[^\"\\n]*\"| *= *'[^'\\n]*'| *= *[^\\s\"'=<>`]+)?/).getRegex();\nconst paragraph = edit(_paragraph).replace('hr', hr).replace('heading', ' {0,3}#{1,6}(?:\\\\s|$)').replace('|lheading', '') // setext headings don't interrupt commonmark paragraphs\n.replace('|table', '').replace('blockquote', ' {0,3}>').replace('fences', ' {0,3}(?:`{3,}(?=[^`\\\\n]*\\\\n)|~{3,})[^\\\\n]*\\\\n').replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt\n.replace('html', '</?(?:tag)(?: +|\\\\n|/?>)|<(?:script|pre|style|textarea|!--)').replace('tag', _tag) // pars can be interrupted by type (6) html blocks\n.getRegex();\nconst blockquote = edit(/^( {0,3}> ?(paragraph|[^\\n]*)(?:\\n|$))+/).replace('paragraph', paragraph).getRegex();\n/**\n * Normal Block Grammar\n */\nconst blockNormal = {\n blockquote,\n code: blockCode,\n def,\n fences,\n heading,\n hr,\n html,\n lheading,\n list,\n newline,\n paragraph,\n table: noopTest,\n text: blockText\n};\n/**\n * GFM Block Grammar\n */\nconst gfmTable = edit('^ *([^\\\\n ].*)\\\\n' // Header\n+ ' {0,3}((?:\\\\| *)?:?-+:? *(?:\\\\| *:?-+:? *)*(?:\\\\| *)?)' // Align\n+ '(?:\\\\n((?:(?! *\\\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\\\n|$))*)\\\\n*|$)') // Cells\n.replace('hr', hr).replace('heading', ' {0,3}#{1,6}(?:\\\\s|$)').replace('blockquote', ' {0,3}>').replace('code', '(?: {4}| {0,3}\\t)[^\\\\n]').replace('fences', ' {0,3}(?:`{3,}(?=[^`\\\\n]*\\\\n)|~{3,})[^\\\\n]*\\\\n').replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt\n.replace('html', '</?(?:tag)(?: +|\\\\n|/?>)|<(?:script|pre|style|textarea|!--)').replace('tag', _tag) // tables can be interrupted by type (6) html blocks\n.getRegex();\nconst blockGfm = {\n ...blockNormal,\n table: gfmTable,\n paragraph: edit(_paragraph).replace('hr', hr).replace('heading', ' {0,3}#{1,6}(?:\\\\s|$)').replace('|lheading', '') // setext headings don't interrupt commonmark paragraphs\n .replace('table', gfmTable) // interrupt paragraphs with table\n .replace('blockquote', ' {0,3}>').replace('fences', ' {0,3}(?:`{3,}(?=[^`\\\\n]*\\\\n)|~{3,})[^\\\\n]*\\\\n').replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt\n .replace('html', '</?(?:tag)(?: +|\\\\n|/?>)|<(?:script|pre|style|textarea|!--)').replace('tag', _tag) // pars can be interrupted by type (6) html blocks\n .getRegex()\n};\n/**\n * Pedantic grammar (original John Gruber's loose markdown specification)\n */\nconst blockPedantic = {\n ...blockNormal,\n html: edit('^ *(?:comment *(?:\\\\n|\\\\s*$)' + '|<(tag)[\\\\s\\\\S]+?</\\\\1> *(?:\\\\n{2,}|\\\\s*$)' // closed tag\n + '|<tag(?:\"[^\"]*\"|\\'[^\\']*\\'|\\\\s[^\\'\"/>\\\\s]*)*?/?> *(?:\\\\n{2,}|\\\\s*$))').replace('comment', _comment).replace(/tag/g, '(?!(?:' + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub' + '|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)' + '\\\\b)\\\\w+(?!:|[^\\\\w\\\\s@]*@)\\\\b').getRegex(),\n def: /^ *\\[([^\\]]+)\\]: *<?([^\\s>]+)>?(?: +([\"(][^\\n]+[\")]))? *(?:\\n+|$)/,\n heading: /^(#{1,6})(.*)(?:\\n+|$)/,\n fences: noopTest,\n // fences not supported\n lheading: /^(.+?)\\n {0,3}(=+|-+) *(?:\\n+|$)/,\n paragraph: edit(_paragraph).replace('hr', hr).replace('heading', ' *#{1,6} *[^\\n]').replace('lheading', lheading).replace('|table', '').replace('blockquote', ' {0,3}>').replace('|fences', '').replace('|list', '').replace('|html', '').replace('|tag', '').getRegex()\n};\n/**\n * Inline-Level Grammar\n */\nconst escape$1 = /^\\\\([!\"#$%&'()*+,\\-./:;<=>?@\\[\\]\\\\^_`{|}~])/;\nconst inlineCode = /^(`+)([^`]|[^`][\\s\\S]*?[^`])\\1(?!`)/;\nconst br = /^( {2,}|\\\\)\\n(?!\\s*$)/;\nconst inlineText = /^(`+|[^`])(?:(?= {2,}\\n)|[\\s\\S]*?(?:(?=[\\\\<!\\[`*_]|\\b_|$)|[^ ](?= {2,}\\n)))/;\n// list of unicode punctuation marks, plus any missing characters from CommonMark spec\nconst _punctuation = /[\\p{P}\\p{S}]/u;\nconst _punctuationOrSpace = /[\\s\\p{P}\\p{S}]/u;\nconst _notPunctuationOrSpace = /[^\\s\\p{P}\\p{S}]/u;\nconst punctuation = edit(/^((?![*_])punctSpace)/, 'u').replace(/punctSpace/g, _punctuationOrSpace).getRegex();\n// sequences em should skip over [title](link), `code`, <html>\nconst blockSkip = /\\[[^[\\]]*?\\]\\((?:\\\\.|[^\\\\\\(\\)]|\\((?:\\\\.|[^\\\\\\(\\)])*\\))*\\)|`[^`]*?`|<[^<>]*?>/g;\nconst emStrongLDelim = edit(/^(?:\\*+(?:((?!\\*)punct)|[^\\s*]))|^_+(?:((?!_)punct)|([^\\s_]))/, 'u').replace(/punct/g, _punctuation).getRegex();\nconst emStrongRDelimAst = edit('^[^_*]*?__[^_*]*?\\\\*[^_*]*?(?=__)' // Skip orphan inside strong\n+ '|[^*]+(?=[^*])' // Consume to delim\n+ '|(?!\\\\*)punct(\\\\*+)(?=[\\\\s]|$)' // (1) #*** can only be a Right Delimiter\n+ '|notPunctSpace(\\\\*+)(?!\\\\*)(?=punctSpace|$)' // (2) a***#, a*** can only be a Right Delimiter\n+ '|(?!\\\\*)punctSpace(\\\\*+)(?=notPunctSpace)' // (3) #***a, ***a can only be Left Delimiter\n+ '|[\\\\s](\\\\*+)(?!\\\\*)(?=punct)' // (4) ***# can only be Left Delimiter\n+ '|(?!\\\\*)punct(\\\\*+)(?!\\\\*)(?=punct)' // (5) #***# can be either Left or Right Delimiter\n+ '|notPunctSpace(\\\\*+)(?=notPunctSpace)', 'gu') // (6) a***a can be either Left or Right Delimiter\n.replace(/notPunctSpace/g, _notPunctuationOrSpace).replace(/punctSpace/g, _punctuationOrSpace).replace(/punct/g, _punctuation).getRegex();\n// (6) Not allowed for _\nconst emStrongRDelimUnd = edit('^[^_*]*?\\\\*\\\\*[^_*]*?_[^_*]*?(?=\\\\*\\\\*)' // Skip orphan inside strong\n+ '|[^_]+(?=[^_])' // Consume to delim\n+ '|(?!_)punct(_+)(?=[\\\\s]|$)' // (1) #___ can only be a Right Delimiter\n+ '|notPunctSpace(_+)(?!_)(?=punctSpace|$)' // (2) a___#, a___ can only be a Right Delimiter\n+ '|(?!_)punctSpace(_+)(?=notPunctSpace)' // (3) #___a, ___a can only be Left Delimiter\n+ '|[\\\\s](_+)(?!_)(?=punct)' // (4) ___# can only be Left Delimiter\n+ '|(?!_)punct(_+)(?!_)(?=punct)', 'gu') // (5) #___# can be either Left or Right Delimiter\n.replace(/notPunctSpace/g, _notPunctuationOrSpace).replace(/punctSpace/g, _punctuationOrSpace).replace(/punct/g, _punctuation).getRegex();\nconst anyPunctuation = edit(/\\\\(punct)/, 'gu').replace(/punct/g, _punctuation).getRegex();\nconst autolink = edit(/^<(scheme:[^\\s\\x00-\\x1f<>]*|email)>/).replace('scheme', /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace('email', /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex();\nconst _inlineComment = edit(_comment).replace('(?:-->|$)', '-->').getRegex();\nconst tag = edit('^comment' + '|^</[a-zA-Z][\\\\w:-]*\\\\s*>' // self-closing tag\n+ '|^<[a-zA-Z][\\\\w-]*(?:attribute)*?\\\\s*/?>' // open tag\n+ '|^<\\\\?[\\\\s\\\\S]*?\\\\?>' // processing instruction, e.g. <?php ?>\n+ '|^<![a-zA-Z]+\\\\s[\\\\s\\\\S]*?>' // declaration, e.g. <!DOCTYPE html>\n+ '|^<!\\\\[CDATA\\\\[[\\\\s\\\\S]*?\\\\]\\\\]>') // CDATA section\n.replace('comment', _inlineComment).replace('attribute', /\\s+[a-zA-Z:_][\\w.:-]*(?:\\s*=\\s*\"[^\"]*\"|\\s*=\\s*'[^']*'|\\s*=\\s*[^\\s\"'=<>`]+)?/).getRegex();\nconst _inlineLabel = /(?:\\[(?:\\\\.|[^\\[\\]\\\\])*\\]|\\\\.|`[^`]*`|[^\\[\\]\\\\`])*?/;\nconst link = edit(/^!?\\[(label)\\]\\(\\s*(href)(?:\\s+(title))?\\s*\\)/).replace('label', _inlineLabel).replace('href', /<(?:\\\\.|[^\\n<>\\\\])+>|[^\\s\\x00-\\x1f]*/).replace('title', /\"(?:\\\\\"?|[^\"\\\\])*\"|'(?:\\\\'?|[^'\\\\])*'|\\((?:\\\\\\)?|[^)\\\\])*\\)/).getRegex();\nconst reflink = edit(/^!?\\[(label)\\]\\[(ref)\\]/).replace('label', _inlineLabel).replace('ref', _blockLabel).getRegex();\nconst nolink = edit(/^!?\\[(ref)\\](?:\\[\\])?/).replace('ref', _blockLabel).getRegex();\nconst reflinkSearch = edit('reflink|nolink(?!\\\\()', 'g').replace('reflink', reflink).replace('nolink', nolink).getRegex();\n/**\n * Normal Inline Grammar\n */\nconst inlineNormal = {\n _backpedal: noopTest,\n // only used for GFM url\n anyPunctuation,\n autolink,\n blockSkip,\n br,\n code: inlineCode,\n del: noopTest,\n emStrongLDelim,\n emStrongRDelimAst,\n emStrongRDelimUnd,\n escape: escape$1,\n link,\n nolink,\n punctuation,\n reflink,\n reflinkSearch,\n tag,\n text: inlineText,\n url: noopTest\n};\n/**\n * Pedantic Inline Grammar\n */\nconst inlinePedantic = {\n ...inlineNormal,\n link: edit(/^!?\\[(label)\\]\\((.*?)\\)/).replace('label', _inlineLabel).getRegex(),\n reflink: edit(/^!?\\[(label)\\]\\s*\\[([^\\]]*)\\]/).replace('label', _inlineLabel).getRegex()\n};\n/**\n * GFM Inline Grammar\n */\nconst inlineGfm = {\n ...inlineNormal,\n escape: edit(escape$1).replace('])', '~|])').getRegex(),\n url: edit(/^((?:ftp|https?):\\/\\/|www\\.)(?:[a-zA-Z0-9\\-]+\\.?)+[^\\s<]*|^email/, 'i').replace('email', /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),\n _backpedal: /(?:[^?!.,:;*_'\"~()&]+|\\([^)]*\\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'\"~)]+(?!$))+/,\n del: /^(~~?)(?=[^\\s~])((?:\\\\.|[^\\\\])*?(?:\\\\.|[^\\s~\\\\]))\\1(?=[^~]|$)/,\n text: /^([`~]+|[^`~])(?:(?= {2,}\\n)|(?=[a-zA-Z0-9.!#$%&'*+\\/=?_`{\\|}~-]+@)|[\\s\\S]*?(?:(?=[\\\\<!\\[`*~_]|\\b_|https?:\\/\\/|ftp:\\/\\/|www\\.|$)|[^ ](?= {2,}\\n)|[^a-zA-Z0-9.!#$%&'*+\\/=?_`{\\|}~-](?=[a-zA-Z0-9.!#$%&'*+\\/=?_`{\\|}~-]+@)))/\n};\n/**\n * GFM + Line Breaks Inline Grammar\n */\nconst inlineBreaks = {\n ...inlineGfm,\n br: edit(br).replace('{2,}', '*').getRegex(),\n text: edit(inlineGfm.text).replace('\\\\b_', '\\\\b_| {2,}\\\\n').replace(/\\{2,\\}/g, '*').getRegex()\n};\n/**\n * exports\n */\nconst block = {\n normal: blockNormal,\n gfm: blockGfm,\n pedantic: blockPedantic\n};\nconst inline = {\n normal: inlineNormal,\n gfm: inlineGfm,\n breaks: inlineBreaks,\n pedantic: inlinePedantic\n};\n\n/**\n * Helpers\n */\nconst escapeReplacements = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n};\nconst getEscapeReplacement = ch => escapeReplacements[ch];\nfunction escape(html, encode) {\n if (encode) {\n if (other.escapeTest.test(html)) {\n return html.replace(other.escapeReplace, getEscapeReplacement);\n }\n } else {\n if (other.escapeTestNoEncode.test(html)) {\n return html.replace(other.escapeReplaceNoEncode, getEscapeReplacement);\n }\n }\n return html;\n}\nfunction cleanUrl(href) {\n try {\n href = encodeURI(href).replace(other.percentDecode, '%');\n } catch {\n return null;\n }\n return href;\n}\nfunction splitCells(tableRow, count) {\n // ensure that every cell-delimiting pipe has a space\n // before it to distinguish it from an escaped pipe\n const row = tableRow.replace(other.findPipe, (match, offset, str) => {\n let escaped = false;\n let curr = offset;\n while (--curr >= 0 && str[curr] === '\\\\') escaped = !escaped;\n if (escaped) {\n // odd number of slashes means | is escaped\n // so we leave it alone\n return '|';\n } else {\n // add space before unescaped |\n return ' |';\n }\n }),\n cells = row.split(other.splitPipe);\n let i = 0;\n // First/last cell in a row cannot be empty if it has no leading/trailing pipe\n if (!cells[0].trim()) {\n cells.shift();\n }\n if (cells.length > 0 && !cells.at(-1)?.trim()) {\n cells.pop();\n }\n if (count) {\n if (cells.length > count) {\n cells.splice(count);\n } else {\n while (cells.length < count) cells.push('');\n }\n }\n for (; i < cells.length; i++) {\n // leading or trailing whitespace is ignored per the gfm spec\n cells[i] = cells[i].trim().replace(other.slashPipe, '|');\n }\n return cells;\n}\n/**\n * Remove trailing 'c's. Equivalent to str.replace(/c*$/, '').\n * /c*$/ is vulnerable to REDOS.\n *\n * @param str\n * @param c\n * @param invert Remove suffix of non-c chars instead. Default falsey.\n */\nfunction rtrim(str, c, invert) {\n const l = str.length;\n if (l === 0) {\n return '';\n }\n // Length of suffix matching the invert condition.\n let suffLen = 0;\n // Step left until we fail to match the invert condition.\n while (suffLen < l) {\n const currChar = str.charAt(l - suffLen - 1);\n if (currChar === c && !invert) {\n suffLen++;\n } else if (currChar !== c && invert) {\n suffLen++;\n } else {\n break;\n }\n }\n return str.slice(0, l - suffLen);\n}\nfunction findClosingBracket(str, b) {\n if (str.indexOf(b[1]) === -1) {\n return -1;\n }\n let level = 0;\n for (let i = 0; i < str.length; i++) {\n if (str[i] === '\\\\') {\n i++;\n } else if (str[i] === b[0]) {\n level++;\n } else if (str[i] === b[1]) {\n level--;\n if (level < 0) {\n return i;\n }\n }\n }\n return -1;\n}\nfunction outputLink(cap, link, raw, lexer, rules) {\n const href = link.href;\n const title = link.title || null;\n const text = cap[1].replace(rules.other.outputLinkReplace, '$1');\n if (cap[0].charAt(0) !== '!') {\n lexer.state.inLink = true;\n const token = {\n type: 'link',\n raw,\n href,\n title,\n text,\n tokens: lexer.inlineTokens(text)\n };\n lexer.state.inLink = false;\n return token;\n }\n return {\n type: 'image',\n raw,\n href,\n title,\n text\n };\n}\nfunction indentCodeCompensation(raw, text, rules) {\n const matchIndentToCode = raw.match(rules.other.indentCodeCompensation);\n if (matchIndentToCode === null) {\n return text;\n }\n const indentToCode = matchIndentToCode[1];\n return text.split('\\n').map(node => {\n const matchIndentInNode = node.match(rules.other.beginningSpace);\n if (matchIndentInNode === null) {\n return node;\n }\n const [indentInNode] = matchIndentInNode;\n if (indentInNode.length >= indentToCode.length) {\n return node.slice(indentToCode.length);\n }\n return node;\n }).join('\\n');\n}\n/**\n * Tokenizer\n */\nclass _Tokenizer {\n options;\n rules; // set by the lexer\n lexer; // set by the lexer\n constructor(options) {\n this.options = options || _defaults;\n }\n space(src) {\n const cap = this.rules.block.newline.exec(src);\n if (cap && cap[0].length > 0) {\n return {\n type: 'space',\n raw: cap[0]\n };\n }\n }\n code(src) {\n const cap = this.rules.block.code.exec(src);\n if (cap) {\n const text = cap[0].replace(this.rules.other.codeRemoveIndent, '');\n return {\n type: 'code',\n raw: cap[0],\n codeBlockStyle: 'indented',\n text: !this.options.pedantic ? rtrim(text, '\\n') : text\n };\n }\n }\n fences(src) {\n const cap = this.rules.block.fences.exec(src);\n if (cap) {\n const raw = cap[0];\n const text = indentCodeCompensation(raw, cap[3] || '', this.rules);\n return {\n type: 'code',\n raw,\n lang: cap[2] ? cap[2].trim().replace(this.rules.inline.anyPunctuation, '$1') : cap[2],\n text\n };\n }\n }\n heading(src) {\n const cap = this.rules.block.heading.exec(src);\n if (cap) {\n let text = cap[2].trim();\n // remove trailing #s\n if (this.rules.other.endingHash.test(text)) {\n const trimmed = rtrim(text, '#');\n if (this.options.pedantic) {\n text = trimmed.trim();\n } else if (!trimmed || this.rules.other.endingSpaceChar.test(trimmed)) {\n // CommonMark requires space before trailing #s\n text = trimmed.trim();\n }\n }\n return {\n type: 'heading',\n raw: cap[0],\n depth: cap[1].length,\n text,\n tokens: this.lexer.inline(text)\n };\n }\n }\n hr(src) {\n const cap = this.rules.block.hr.exec(src);\n if (cap) {\n return {\n type: 'hr',\n raw: rtrim(cap[0], '\\n')\n };\n }\n }\n blockquote(src) {\n const cap = this.rules.block.blockquote.exec(src);\n if (cap) {\n let lines = rtrim(cap[0], '\\n').split('\\n');\n let raw = '';\n let text = '';\n const tokens = [];\n while (lines.length > 0) {\n let inBlockquote = false;\n const currentLines = [];\n let i;\n for (i = 0; i < lines.length; i++) {\n // get lines up to a continuation\n if (this.rules.other.blockquoteStart.test(lines[i])) {\n currentLines.push(lines[i]);\n inBlockquote = true;\n } else if (!inBlockquote) {\n currentLines.push(lines[i]);\n } else {\n break;\n }\n }\n lines = lines.slice(i);\n const currentRaw = currentLines.join('\\n');\n const currentText = currentRaw\n // precede setext continuation with 4 spaces so it isn't a setext\n .replace(this.rules.other.blockquoteSetextReplace, '\\n $1').replace(this.rules.other.blockquoteSetextReplace2, '');\n raw = raw ? `${raw}\\n${currentRaw}` : currentRaw;\n text = text ? `${text}\\n${currentText}` : currentText;\n // parse blockquote lines as top level tokens\n // merge paragraphs if this is a continuation\n const top = this.lexer.state.top;\n this.lexer.state.top = true;\n this.lexer.blockTokens(currentText, tokens, true);\n this.lexer.state.top = top;\n // if there is no continuation then we are done\n if (lines.length === 0) {\n break;\n }\n const lastToken = tokens.at(-1);\n if (lastToken?.type === 'code') {\n // blockquote continuation cannot be preceded by a code block\n break;\n } else if (lastToken?.type === 'blockquote') {\n // include continuation in nested blockquote\n const oldToken = lastToken;\n const newText = oldToken.raw + '\\n' + lines.join('\\n');\n const newToken = this.blockquote(newText);\n tokens[tokens.length - 1] = newToken;\n raw = raw.substring(0, raw.length - oldToken.raw.length) + newToken.raw;\n text = text.substring(0, text.length - oldToken.text.length) + newToken.text;\n break;\n } else if (lastToken?.type === 'list') {\n // include continuation in nested list\n const oldToken = lastToken;\n const newText = oldToken.raw + '\\n' + lines.join('\\n');\n const newToken = this.list(newText);\n tokens[tokens.length - 1] = newToken;\n raw = raw.substring(0, raw.length - lastToken.raw.length) + newToken.raw;\n text = text.substring(0, text.length - oldToken.raw.length) + newToken.raw;\n lines = newText.substring(tokens.at(-1).raw.length).split('\\n');\n continue;\n }\n }\n return {\n type: 'blockquote',\n raw,\n tokens,\n text\n };\n }\n }\n list(src) {\n let cap = this.rules.block.list.exec(src);\n if (cap) {\n let bull = cap[1].trim();\n const isordered = bull.length > 1;\n const list = {\n type: 'list',\n raw: '',\n ordered: isordered,\n start: isordered ? +bull.slice(0, -1) : '',\n loose: false,\n items: []\n };\n bull = isordered ? `\\\\d{1,9}\\\\${bull.slice(-1)}` : `\\\\${bull}`;\n if (this.options.pedantic) {\n bull = isordered ? bull : '[*+-]';\n }\n // Get next list item\n const itemRegex = this.rules.other.listItemRegex(bull);\n let endsWithBlankLine = false;\n // Check if current bullet point can start a new List Item\n while (src) {\n let endEarly = false;\n let raw = '';\n let itemContents = '';\n if (!(cap = itemRegex.exec(src))) {\n break;\n }\n if (this.rules.block.hr.test(src)) {\n // End list if bullet was actually HR (possibly move into itemRegex?)\n break;\n }\n raw = cap[0];\n src = src.substring(raw.length);\n let line = cap[2].split('\\n', 1)[0].replace(this.rules.other.listReplaceTabs, t => ' '.repeat(3 * t.length));\n let nextLine = src.split('\\n', 1)[0];\n let blankLine = !line.trim();\n let indent = 0;\n if (this.options.pedantic) {\n indent = 2;\n itemContents = line.trimStart();\n } else if (blankLine) {\n indent = cap[1].length + 1;\n } else {\n indent = cap[2].search(this.rules.other.nonSpaceChar); // Find first non-space char\n indent = indent > 4 ? 1 : indent; // Treat indented code blocks (> 4 spaces) as having only 1 indent\n itemContents = line.slice(indent);\n indent += cap[1].length;\n }\n if (blankLine && this.rules.other.blankLine.test(nextLine)) {\n // Items begin with at most one blank line\n raw += nextLine + '\\n';\n src = src.substring(nextLine.length + 1);\n endEarly = true;\n }\n if (!endEarly) {\n const nextBulletRegex = this.rules.other.nextBulletRegex(indent);\n const hrRegex = this.rules.other.hrRegex(indent);\n const fencesBeginRegex = this.rules.other.fencesBeginRegex(indent);\n const headingBeginRegex = this.rules.other.headingBeginRegex(indent);\n const htmlBeginRegex = this.rules.other.htmlBeginRegex(indent);\n // Check if following lines should be included in List Item\n while (src) {\n const rawLine = src.split('\\n', 1)[0];\n let nextLineWithoutTabs;\n nextLine = rawLine;\n // Re-align to follow commonmark nesting rules\n if (this.options.pedantic) {\n nextLine = nextLine.replace(this.rules.other.listReplaceNesting, ' ');\n nextLineWithoutTabs = nextLine;\n } else {\n nextLineWithoutTabs = nextLine.replace(this.rules.other.tabCharGlobal, ' ');\n }\n // End list item if found code fences\n if (fencesBeginRegex.test(nextLine)) {\n break;\n }\n // End list item if found start of new heading\n if (headingBeginRegex.test(nextLine)) {\n break;\n }\n // End list item if found start of html block\n if (htmlBeginRegex.test(nextLine)) {\n break;\n }\n // End list item if found start of new bullet\n if (nextBulletRegex.test(nextLine)) {\n break;\n }\n // Horizontal rule found\n if (hrRegex.test(nextLine)) {\n break;\n }\n if (nextLineWithoutTabs.search(this.rules.other.nonSpaceChar) >= indent || !nextLine.trim()) {\n // Dedent if possible\n itemContents += '\\n' + nextLineWithoutTabs.slice(indent);\n } else {\n // not enough indentation\n if (blankLine) {\n break;\n }\n // paragraph continuation unless last line was a different block level element\n if (line.replace(this.rules.other.tabCharGlobal, ' ').search(this.rules.other.nonSpaceChar) >= 4) {\n // indented code block\n break;\n }\n if (fencesBeginRegex.test(line)) {\n break;\n }\n if (headingBeginRegex.test(line)) {\n break;\n }\n if (hrRegex.test(line)) {\n break;\n }\n itemContents += '\\n' + nextLine;\n }\n if (!blankLine && !nextLine.trim()) {\n // Check if current line is blank\n blankLine = true;\n }\n raw += rawLine + '\\n';\n src = src.substring(rawLine.length + 1);\n line = nextLineWithoutTabs.slice(indent);\n }\n }\n if (!list.loose) {\n // If the previous item ended with a blank line, the list is loose\n if (endsWithBlankLine) {\n list.loose = true;\n } else if (this.rules.other.doubleBlankLine.test(raw)) {\n endsWithBlankLine = true;\n }\n }\n let istask = null;\n let ischecked;\n // Check for task list items\n if (this.options.gfm) {\n istask = this.rules.other.listIsTask.exec(itemContents);\n if (istask) {\n ischecked = istask[0] !== '[ ] ';\n itemContents = itemContents.replace(this.rules.other.listReplaceTask, '');\n }\n }\n list.items.push({\n type: 'list_item',\n raw,\n task: !!istask,\n checked: ischecked,\n loose: false,\n text: itemContents,\n tokens: []\n });\n list.raw += raw;\n }\n // Do not consume newlines at end of final item. Alternatively, make itemRegex *start* with any newlines to simplify/speed up endsWithBlankLine logic\n const lastItem = list.items.at(-1);\n if (lastItem) {\n lastItem.raw = lastItem.raw.trimEnd();\n lastItem.text = lastItem.text.trimEnd();\n }\n list.raw = list.raw.trimEnd();\n // Item child tokens handled here at end because we needed to have the final item to trim it first\n for (let i = 0; i < list.items.length; i++) {\n this.lexer.state.top = false;\n list.items[i].tokens = this.lexer.blockTokens(list.items[i].text, []);\n if (!list.loose) {\n // Check if list should be loose\n const spacers = list.items[i].tokens.filter(t => t.type === 'space');\n const hasMultipleLineBreaks = spacers.length > 0 && spacers.some(t => this.rules.other.anyLine.test(t.raw));\n list.loose = hasMultipleLineBreaks;\n }\n }\n // Set all items to loose if list is loose\n if (list.loose) {\n for (let i = 0; i < list.items.length; i++) {\n list.items[i].loose = true;\n }\n }\n return list;\n }\n }\n html(src) {\n const cap = this.rules.block.html.exec(src);\n if (cap) {\n const token = {\n type: 'html',\n block: true,\n raw: cap[0],\n pre: cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style',\n text: cap[0]\n };\n return token;\n }\n }\n def(src) {\n const cap = this.rules.block.def.exec(src);\n if (cap) {\n const tag = cap[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal, ' ');\n const href = cap[2] ? cap[2].replace(this.rules.other.hrefBrackets, '$1').replace(this.rules.inline.anyPunctuation, '$1') : '';\n const title = cap[3] ? cap[3].substring(1, cap[3].length - 1).replace(this.rules.inline.anyPunctuation, '$1') : cap[3];\n return {\n type: 'def',\n tag,\n raw: cap[0],\n href,\n title\n };\n }\n }\n table(src) {\n const cap = this.rules.block.table.exec(src);\n if (!cap) {\n return;\n }\n if (!this.rules.other.tableDelimiter.test(cap[2])) {\n // delimiter row must have a pipe (|) or colon (:) otherwise it is a setext heading\n return;\n }\n const headers = splitCells(cap[1]);\n const aligns = cap[2].replace(this.rules.other.tableAlignChars, '').split('|');\n const rows = cap[3]?.trim() ? cap[3].replace(this.rules.other.tableRowBlankLine, '').split('\\n') : [];\n const item = {\n type: 'table',\n raw: cap[0],\n header: [],\n align: [],\n rows: []\n };\n if (headers.length !== aligns.length) {\n // header and align columns must be equal, rows can be different.\n return;\n }\n for (const align of aligns) {\n if (this.rules.other.tableAlignRight.test(align)) {\n item.align.push('right');\n } else if (this.rules.other.tableAlignCenter.test(align)) {\n item.align.push('center');\n } else if (this.rules.other.tableAlignLeft.test(align)) {\n item.align.push('left');\n } else {\n item.align.push(null);\n }\n }\n for (let i = 0; i < headers.length; i++) {\n item.header.push({\n text: headers[i],\n tokens: this.lexer.inline(headers[i]),\n header: true,\n align: item.align[i]\n });\n }\n for (const row of rows) {\n item.rows.push(splitCells(row, item.header.length).map((cell, i) => {\n return {\n text: cell,\n tokens: this.lexer.inline(cell),\n header: false,\n align: item.align[i]\n };\n }));\n }\n return item;\n }\n lheading(src) {\n const cap = this.rules.block.lheading.exec(src);\n if (cap) {\n return {\n type: 'heading',\n raw: cap[0],\n depth: cap[2].charAt(0) === '=' ? 1 : 2,\n text: cap[1],\n tokens: this.lexer.inline(cap[1])\n };\n }\n }\n paragraph(src) {\n const cap = this.rules.block.paragraph.exec(src);\n if (cap) {\n const text = cap[1].charAt(cap[1].length - 1) === '\\n' ? cap[1].slice(0, -1) : cap[1];\n return {\n type: 'paragraph',\n raw: cap[0],\n text,\n tokens: this.lexer.inline(text)\n };\n }\n }\n text(src) {\n const cap = this.rules.block.text.exec(src);\n if (cap) {\n return {\n type: 'text',\n raw: cap[0],\n text: cap[0],\n tokens: this.lexer.inline(cap[0])\n };\n }\n }\n escape(src) {\n const cap = this.rules.inline.escape.exec(src);\n if (cap) {\n return {\n type: 'escape',\n raw: cap[0],\n text: cap[1]\n };\n }\n }\n tag(src) {\n const cap = this.rules.inline.tag.exec(src);\n if (cap) {\n if (!this.lexer.state.inLink && this.rules.other.startATag.test(cap[0])) {\n this.lexer.state.inLink = true;\n } else if (this.lexer.state.inLink && this.rules.other.endATag.test(cap[0])) {\n this.lexer.state.inLink = false;\n }\n if (!this.lexer.state.inRawBlock && this.rules.other.startPreScriptTag.test(cap[0])) {\n this.lexer.state.inRawBlock = true;\n } else if (this.lexer.state.inRawBlock && this.rules.other.endPreScriptTag.test(cap[0])) {\n this.lexer.state.inRawBlock = false;\n }\n return {\n type: 'html',\n raw: cap[0],\n inLink: this.lexer.state.inLink,\n inRawBlock: this.lexer.state.inRawBlock,\n block: false,\n text: cap[0]\n };\n }\n }\n link(src) {\n const cap = this.rules.inline.link.exec(src);\n if (cap) {\n const trimmedUrl = cap[2].trim();\n if (!this.options.pedantic && this.rules.other.startAngleBracket.test(trimmedUrl)) {\n // commonmark requires matching angle brackets\n if (!this.rules.other.endAngleBracket.test(trimmedUrl)) {\n return;\n }\n // ending angle bracket cannot be escaped\n const rtrimSlash = rtrim(trimmedUrl.slice(0, -1), '\\\\');\n if ((trimmedUrl.length - rtrimSlash.length) % 2 === 0) {\n return;\n }\n } else {\n // find closing parenthesis\n const lastParenIndex = findClosingBracket(cap[2], '()');\n if (lastParenIndex > -1) {\n const start = cap[0].indexOf('!') === 0 ? 5 : 4;\n const linkLen = start + cap[1].length + lastParenIndex;\n cap[2] = cap[2].substring(0, lastParenIndex);\n cap[0] = cap[0].substring(0, linkLen).trim();\n cap[3] = '';\n }\n }\n let href = cap[2];\n let title = '';\n if (this.options.pedantic) {\n // split pedantic href and title\n const link = this.rules.other.pedanticHrefTitle.exec(href);\n if (link) {\n href = link[1];\n title = link[3];\n }\n } else {\n title = cap[3] ? cap[3].slice(1, -1) : '';\n }\n href = href.trim();\n if (this.rules.other.startAngleBracket.test(href)) {\n if (this.options.pedantic && !this.rules.other.endAngleBracket.test(trimmedUrl)) {\n // pedantic allows starting angle bracket without ending angle bracket\n href = href.slice(1);\n } else {\n href = href.slice(1, -1);\n }\n }\n return outputLink(cap, {\n href: href ? href.replace(this.rules.inline.anyPunctuation, '$1') : href,\n title: title ? title.replace(this.rules.inline.anyPunctuation, '$1') : title\n }, cap[0], this.lexer, this.rules);\n }\n }\n reflink(src, links) {\n let cap;\n if ((cap = this.rules.inline.reflink.exec(src)) || (cap = this.rules.inline.nolink.exec(src))) {\n const linkString = (cap[2] || cap[1]).replace(this.rules.other.multipleSpaceGlobal, ' ');\n const link = links[linkString.toLowerCase()];\n if (!link) {\n const text = cap[0].charAt(0);\n return {\n type: 'text',\n raw: text,\n text\n };\n }\n return outputLink(cap, link, cap[0], this.lexer, this.rules);\n }\n }\n emStrong(src, maskedSrc, prevChar = '') {\n let match = this.rules.inline.emStrongLDelim.exec(src);\n if (!match) return;\n // _ can't be between two alphanumerics. \\p{L}\\p{N} includes non-english alphabet/numbers as well\n if (match[3] && prevChar.match(this.rules.other.unicodeAlphaNumeric)) return;\n const nextChar = match[1] || match[2] || '';\n if (!nextChar || !prevChar || this.rules.inline.punctuation.exec(prevChar)) {\n // unicode Regex counts emoji as 1 char; spread into array for proper count (used multiple times below)\n const lLength = [...match[0]].length - 1;\n let rDelim,\n rLength,\n delimTotal = lLength,\n midDelimTotal = 0;\n const endReg = match[0][0] === '*' ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;\n endReg.lastIndex = 0;\n // Clip maskedSrc to same section of string as src (move to lexer?)\n maskedSrc = maskedSrc.slice(-1 * src.length + lLength);\n while ((match = endReg.exec(maskedSrc)) != null) {\n rDelim = match[1] || match[2] || match[3] || match[4] || match[5] || match[6];\n if (!rDelim) continue; // skip single * in __abc*abc__\n rLength = [...rDelim].length;\n if (match[3] || match[4]) {\n // found another Left Delim\n delimTotal += rLength;\n continue;\n } else if (match[5] || match[6]) {\n // either Left or Right Delim\n if (lLength % 3 && !((lLength + rLength) % 3)) {\n midDelimTotal += rLength;\n continue; // CommonMark Emphasis Rules 9-10\n }\n }\n delimTotal -= rLength;\n if (delimTotal > 0) continue; // Haven't found enough closing delimiters\n // Remove extra characters. *a*** -> *a*\n rLength = Math.min(rLength, rLength + delimTotal + midDelimTotal);\n // char length can be >1 for unicode characters;\n const lastCharLength = [...match[0]][0].length;\n const raw = src.slice(0, lLength + match.index + lastCharLength + rLength);\n // Create `em` if smallest delimiter has odd char count. *a***\n if (Math.min(lLength, rLength) % 2) {\n const text = raw.slice(1, -1);\n return {\n type: 'em',\n raw,\n text,\n tokens: this.lexer.inlineTokens(text)\n };\n }\n // Create 'strong' if smallest delimiter has even char count. **a***\n const text = raw.slice(2, -2);\n return {\n type: 'strong',\n raw,\n text,\n tokens: this.lexer.inlineTokens(text)\n };\n }\n }\n }\n codespan(src) {\n const cap = this.rules.inline.code.exec(src);\n if (cap) {\n let text = cap[2].replace(this.rules.other.newLineCharGlobal, ' ');\n const hasNonSpaceChars = this.rules.other.nonSpaceChar.test(text);\n const hasSpaceCharsOnBothEnds = this.rules.other.startingSpaceChar.test(text) && this.rules.other.endingSpaceChar.test(text);\n if (hasNonSpaceChars && hasSpaceCharsOnBothEnds) {\n text = text.substring(1, text.length - 1);\n }\n return {\n type: 'codespan',\n raw: cap[0],\n text\n };\n }\n }\n br(src) {\n const cap = this.rules.inline.br.exec(src);\n if (cap) {\n return {\n type: 'br',\n raw: cap[0]\n };\n }\n }\n del(src) {\n const cap = this.rules.inline.del.exec(src);\n if (cap) {\n return {\n type: 'del',\n raw: cap[0],\n text: cap[2],\n tokens: this.lexer.inlineTokens(cap[2])\n };\n }\n }\n autolink(src) {\n const cap = this.rules.inline.autolink.exec(src);\n if (cap) {\n let text, href;\n if (cap[2] === '@') {\n text = cap[1];\n href = 'mailto:' + text;\n } else {\n text = cap[1];\n href = text;\n }\n return {\n type: 'link',\n raw: cap[0],\n text,\n href,\n tokens: [{\n type: 'text',\n raw: text,\n text\n }]\n };\n }\n }\n url(src) {\n let cap;\n if (cap = this.rules.inline.url.exec(src)) {\n let text, href;\n if (cap[2] === '@') {\n text = cap[0];\n href = 'mailto:' + text;\n } else {\n // do extended autolink path validation\n let prevCapZero;\n do {\n prevCapZero = cap[0];\n cap[0] = this.rules.inline._backpedal.exec(cap[0])?.[0] ?? '';\n } while (prevCapZero !== cap[0]);\n text = cap[0];\n if (cap[1] === 'www.') {\n href = 'http://' + cap[0];\n } else {\n href = cap[0];\n }\n }\n return {\n type: 'link',\n raw: cap[0],\n text,\n href,\n tokens: [{\n type: 'text',\n raw: text,\n text\n }]\n };\n }\n }\n inlineText(src) {\n const cap = this.rules.inline.text.exec(src);\n if (cap) {\n const escaped = this.lexer.state.inRawBlock;\n return {\n type: 'text',\n raw: cap[0],\n text: cap[0],\n escaped\n };\n }\n }\n}\n\n/**\n * Block Lexer\n */\nclass _Lexer {\n tokens;\n options;\n state;\n tokenizer;\n inlineQueue;\n constructor(options) {\n // TokenList cannot be created in one go\n this.tokens = [];\n this.tokens.links = Object.create(null);\n this.options = options || _defaults;\n this.options.tokenizer = this.options.tokenizer || new _Tokenizer();\n this.tokenizer = this.options.tokenizer;\n this.tokenizer.options = this.options;\n this.tokenizer.lexer = this;\n this.inlineQueue = [];\n this.state = {\n inLink: false,\n inRawBlock: false,\n top: true\n };\n const rules = {\n other,\n block: block.normal,\n inline: inline.normal\n };\n if (this.options.pedantic) {\n rules.block = block.pedantic;\n rules.inline = inline.pedantic;\n } else if (this.options.gfm) {\n rules.block = block.gfm;\n if (this.options.breaks) {\n rules.inline = inline.breaks;\n } else {\n rules.inline = inline.gfm;\n }\n }\n this.tokenizer.rules = rules;\n }\n /**\n * Expose Rules\n */\n static get rules() {\n return {\n block,\n inline\n };\n }\n /**\n * Static Lex Method\n */\n static lex(src, options) {\n const lexer = new _Lexer(options);\n return lexer.lex(src);\n }\n /**\n * Static Lex Inline Method\n */\n static lexInline(src, options) {\n const lexer = new _Lexer(options);\n return lexer.inlineTokens(src);\n }\n /**\n * Preprocessing\n */\n lex(src) {\n src = src.replace(other.carriageReturn, '\\n');\n this.blockTokens(src, this.tokens);\n for (let i = 0; i < this.inlineQueue.length; i++) {\n const next = this.inlineQueue[i];\n this.inlineTokens(next.src, next.tokens);\n }\n this.inlineQueue = [];\n return this.tokens;\n }\n blockTokens(src, tokens = [], lastParagraphClipped = false) {\n if (this.options.pedantic) {\n src = src.replace(other.tabCharGlobal, ' ').replace(other.spaceLine, '');\n }\n while (src) {\n let token;\n if (this.options.extensions?.block?.some(extTokenizer => {\n if (token = extTokenizer.call({\n lexer: this\n }, src, tokens)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n return true;\n }\n return false;\n })) {\n continue;\n }\n // newline\n if (token = this.tokenizer.space(src)) {\n src = src.substring(token.raw.length);\n const lastToken = tokens.at(-1);\n if (token.raw.length === 1 && lastToken !== undefined) {\n // if there's a single \\n as a spacer, it's terminating the last line,\n // so move it there so that we don't get unnecessary paragraph tags\n lastToken.raw += '\\n';\n } else {\n tokens.push(token);\n }\n continue;\n }\n // code\n if (token = this.tokenizer.code(src)) {\n src = src.substring(token.raw.length);\n const lastToken = tokens.at(-1);\n // An indented code block cannot interrupt a paragraph.\n if (lastToken?.type === 'paragraph' || lastToken?.type === 'text') {\n lastToken.raw += '\\n' + token.raw;\n lastToken.text += '\\n' + token.text;\n this.inlineQueue.at(-1).src = lastToken.text;\n } else {\n tokens.push(token);\n }\n continue;\n }\n // fences\n if (token = this.tokenizer.fences(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // heading\n if (token = this.tokenizer.heading(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // hr\n if (token = this.tokenizer.hr(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // blockquote\n if (token = this.tokenizer.blockquote(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // list\n if (token = this.tokenizer.list(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // html\n if (token = this.tokenizer.html(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // def\n if (token = this.tokenizer.def(src)) {\n src = src.substring(token.raw.length);\n const lastToken = tokens.at(-1);\n if (lastToken?.type === 'paragraph' || lastToken?.type === 'text') {\n lastToken.raw += '\\n' + token.raw;\n lastToken.text += '\\n' + token.raw;\n this.inlineQueue.at(-1).src = lastToken.text;\n } else if (!this.tokens.links[token.tag]) {\n this.tokens.links[token.tag] = {\n href: token.href,\n title: token.title\n };\n }\n continue;\n }\n // table (gfm)\n if (token = this.tokenizer.table(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // lheading\n if (token = this.tokenizer.lheading(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // top-level paragraph\n // prevent paragraph consuming extensions by clipping 'src' to extension start\n let cutSrc = src;\n if (this.options.extensions?.startBlock) {\n let startIndex = Infinity;\n const tempSrc = src.slice(1);\n let tempStart;\n this.options.extensions.startBlock.forEach(getStartIndex => {\n tempStart = getStartIndex.call({\n lexer: this\n }, tempSrc);\n if (typeof tempStart === 'number' && tempStart >= 0) {\n startIndex = Math.min(startIndex, tempStart);\n }\n });\n if (startIndex < Infinity && startIndex >= 0) {\n cutSrc = src.substring(0, startIndex + 1);\n }\n }\n if (this.state.top && (token = this.tokenizer.paragraph(cutSrc))) {\n const lastToken = tokens.at(-1);\n if (lastParagraphClipped && lastToken?.type === 'paragraph') {\n lastToken.raw += '\\n' + token.raw;\n lastToken.text += '\\n' + token.text;\n this.inlineQueue.pop();\n this.inlineQueue.at(-1).src = lastToken.text;\n } else {\n tokens.push(token);\n }\n lastParagraphClipped = cutSrc.length !== src.length;\n src = src.substring(token.raw.length);\n continue;\n }\n // text\n if (token = this.tokenizer.text(src)) {\n src = src.substring(token.raw.length);\n const lastToken = tokens.at(-1);\n if (lastToken?.type === 'text') {\n lastToken.raw += '\\n' + token.raw;\n lastToken.text += '\\n' + token.text;\n this.inlineQueue.pop();\n this.inlineQueue.at(-1).src = lastToken.text;\n } else {\n tokens.push(token);\n }\n continue;\n }\n if (src) {\n const errMsg = 'Infinite loop on byte: ' + src.charCodeAt(0);\n if (this.options.silent) {\n console.error(errMsg);\n break;\n } else {\n throw new Error(errMsg);\n }\n }\n }\n this.state.top = true;\n return tokens;\n }\n inline(src, tokens = []) {\n this.inlineQueue.push({\n src,\n tokens\n });\n return tokens;\n }\n /**\n * Lexing/Compiling\n */\n inlineTokens(src, tokens = []) {\n // String with links masked to avoid interference with em and strong\n let maskedSrc = src;\n let match = null;\n // Mask out reflinks\n if (this.tokens.links) {\n const links = Object.keys(this.tokens.links);\n if (links.length > 0) {\n while ((match = this.tokenizer.rules.inline.reflinkSearch.exec(maskedSrc)) != null) {\n if (links.includes(match[0].slice(match[0].lastIndexOf('[') + 1, -1))) {\n maskedSrc = maskedSrc.slice(0, match.index) + '[' + 'a'.repeat(match[0].length - 2) + ']' + maskedSrc.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex);\n }\n }\n }\n }\n // Mask out other blocks\n while ((match = this.tokenizer.rules.inline.blockSkip.exec(maskedSrc)) != null) {\n maskedSrc = maskedSrc.slice(0, match.index) + '[' + 'a'.repeat(match[0].length - 2) + ']' + maskedSrc.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);\n }\n // Mask out escaped characters\n while ((match = this.tokenizer.rules.inline.anyPunctuation.exec(maskedSrc)) != null) {\n maskedSrc = maskedSrc.slice(0, match.index) + '++' + maskedSrc.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);\n }\n let keepPrevChar = false;\n let prevChar = '';\n while (src) {\n if (!keepPrevChar) {\n prevChar = '';\n }\n keepPrevChar = false;\n let token;\n // extensions\n if (this.options.extensions?.inline?.some(extTokenizer => {\n if (token = extTokenizer.call({\n lexer: this\n }, src, tokens)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n return true;\n }\n return false;\n })) {\n continue;\n }\n // escape\n if (token = this.tokenizer.escape(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // tag\n if (token = this.tokenizer.tag(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // link\n if (token = this.tokenizer.link(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // reflink, nolink\n if (token = this.tokenizer.reflink(src, this.tokens.links)) {\n src = src.substring(token.raw.length);\n const lastToken = tokens.at(-1);\n if (token.type === 'text' && lastToken?.type === 'text') {\n lastToken.raw += token.raw;\n lastToken.text += token.text;\n } else {\n tokens.push(token);\n }\n continue;\n }\n // em & strong\n if (token = this.tokenizer.emStrong(src, maskedSrc, prevChar)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // code\n if (token = this.tokenizer.codespan(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // br\n if (token = this.tokenizer.br(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // del (gfm)\n if (token = this.tokenizer.del(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // autolink\n if (token = this.tokenizer.autolink(src)) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // url (gfm)\n if (!this.state.inLink && (token = this.tokenizer.url(src))) {\n src = src.substring(token.raw.length);\n tokens.push(token);\n continue;\n }\n // text\n // prevent inlineText consuming extensions by clipping 'src' to extension start\n let cutSrc = src;\n if (this.options.extensions?.startInline) {\n let startIndex = Infinity;\n const tempSrc = src.slice(1);\n let tempStart;\n this.options.extensions.startInline.forEach(getStartIndex => {\n tempStart = getStartIndex.call({\n lexer: this\n }, tempSrc);\n if (typeof tempStart === 'number' && tempStart >= 0) {\n startIndex = Math.min(startIndex, tempStart);\n }\n });\n if (startIndex < Infinity && startIndex >= 0) {\n cutSrc = src.substring(0, startIndex + 1);\n }\n }\n if (token = this.tokenizer.inlineText(cutSrc)) {\n src = src.substring(token.raw.length);\n if (token.raw.slice(-1) !== '_') {\n // Track prevChar before string of ____ started\n prevChar = token.raw.slice(-1);\n }\n keepPrevChar = true;\n const lastToken = tokens.at(-1);\n if (lastToken?.type === 'text') {\n lastToken.raw += token.raw;\n lastToken.text += token.text;\n } else {\n tokens.push(token);\n }\n continue;\n }\n if (src) {\n const errMsg = 'Infinite loop on byte: ' + src.charCodeAt(0);\n if (this.options.silent) {\n console.error(errMsg);\n break;\n } else {\n throw new Error(errMsg);\n }\n }\n }\n return tokens;\n }\n}\n\n/**\n * Renderer\n */\nclass _Renderer {\n options;\n parser; // set by the parser\n constructor(options) {\n this.options = options || _defaults;\n }\n space(token) {\n return '';\n }\n code({\n text,\n lang,\n escaped\n }) {\n const langString = (lang || '').match(other.notSpaceStart)?.[0];\n const code = text.replace(other.endingNewline, '') + '\\n';\n if (!langString) {\n return '<pre><code>' + (escaped ? code : escape(code, true)) + '</code></pre>\\n';\n }\n return '<pre><code class=\"language-' + escape(langString) + '\">' + (escaped ? code : escape(code, true)) + '</code></pre>\\n';\n }\n blockquote({\n tokens\n }) {\n const body = this.parser.parse(tokens);\n return `<blockquote>\\n${body}</blockquote>\\n`;\n }\n html({\n text\n }) {\n return text;\n }\n heading({\n tokens,\n depth\n }) {\n return `<h${depth}>${this.parser.parseInline(tokens)}</h${depth}>\\n`;\n }\n hr(token) {\n return '<hr>\\n';\n }\n list(token) {\n const ordered = token.ordered;\n const start = token.start;\n let body = '';\n for (let j = 0; j < token.items.length; j++) {\n const item = token.items[j];\n body += this.listitem(item);\n }\n const type = ordered ? 'ol' : 'ul';\n const startAttr = ordered && start !== 1 ? ' start=\"' + start + '\"' : '';\n return '<' + type + startAttr + '>\\n' + body + '</' + type + '>\\n';\n }\n listitem(item) {\n let itemBody = '';\n if (item.task) {\n const checkbox = this.checkbox({\n checked: !!item.checked\n });\n if (item.loose) {\n if (item.tokens[0]?.type === 'paragraph') {\n item.tokens[0].text = checkbox + ' ' + item.tokens[0].text;\n if (item.tokens[0].tokens && item.tokens[0].tokens.length > 0 && item.tokens[0].tokens[0].type === 'text') {\n item.tokens[0].tokens[0].text = checkbox + ' ' + escape(item.tokens[0].tokens[0].text);\n item.tokens[0].tokens[0].escaped = true;\n }\n } else {\n item.tokens.unshift({\n type: 'text',\n raw: checkbox + ' ',\n text: checkbox + ' ',\n escaped: true\n });\n }\n } else {\n itemBody += checkbox + ' ';\n }\n }\n itemBody += this.parser.parse(item.tokens, !!item.loose);\n return `<li>${itemBody}</li>\\n`;\n }\n checkbox({\n checked\n }) {\n return '<input ' + (checked ? 'checked=\"\" ' : '') + 'disabled=\"\" type=\"checkbox\">';\n }\n paragraph({\n tokens\n }) {\n return `<p>${this.parser.parseInline(tokens)}</p>\\n`;\n }\n table(token) {\n let header = '';\n // header\n let cell = '';\n for (let j = 0; j < token.header.length; j++) {\n cell += this.tablecell(token.header[j]);\n }\n header += this.tablerow({\n text: cell\n });\n let body = '';\n for (let j = 0; j < token.rows.length; j++) {\n const row = token.rows[j];\n cell = '';\n for (let k = 0; k < row.length; k++) {\n cell += this.tablecell(row[k]);\n }\n body += this.tablerow({\n text: cell\n });\n }\n if (body) body = `<tbody>${body}</tbody>`;\n return '<table>\\n' + '<thead>\\n' + header + '</thead>\\n' + body + '</table>\\n';\n }\n tablerow({\n text\n }) {\n return `<tr>\\n${text}</tr>\\n`;\n }\n tablecell(token) {\n const content = this.parser.parseInline(token.tokens);\n const type = token.header ? 'th' : 'td';\n const tag = token.align ? `<${type} align=\"${token.align}\">` : `<${type}>`;\n return tag + content + `</${type}>\\n`;\n }\n /**\n * span level renderer\n */\n strong({\n tokens\n }) {\n return `<strong>${this.parser.parseInline(tokens)}</strong>`;\n }\n em({\n tokens\n }) {\n return `<em>${this.parser.parseInline(tokens)}</em>`;\n }\n codespan({\n text\n }) {\n return `<code>${escape(text, true)}</code>`;\n }\n br(token) {\n return '<br>';\n }\n del({\n tokens\n }) {\n return `<del>${this.parser.parseInline(tokens)}</del>`;\n }\n link({\n href,\n title,\n tokens\n }) {\n const text = this.parser.parseInline(tokens);\n const cleanHref = cleanUrl(href);\n if (cleanHref === null) {\n return text;\n }\n href = cleanHref;\n let out = '<a href=\"' + href + '\"';\n if (title) {\n out += ' title=\"' + escape(title) + '\"';\n }\n out += '>' + text + '</a>';\n return out;\n }\n image({\n href,\n title,\n text\n }) {\n const cleanHref = cleanUrl(href);\n if (cleanHref === null) {\n return escape(text);\n }\n href = cleanHref;\n let out = `<img src=\"${href}\" alt=\"${text}\"`;\n if (title) {\n out += ` title=\"${escape(title)}\"`;\n }\n out += '>';\n return out;\n }\n text(token) {\n return 'tokens' in token && token.tokens ? this.parser.parseInline(token.tokens) : 'escaped' in token && token.escaped ? token.text : escape(token.text);\n }\n}\n\n/**\n * TextRenderer\n * returns only the textual part of the token\n */\nclass _TextRenderer {\n // no need for block level renderers\n strong({\n text\n }) {\n return text;\n }\n em({\n text\n }) {\n return text;\n }\n codespan({\n text\n }) {\n return text;\n }\n del({\n text\n }) {\n return text;\n }\n html({\n text\n }) {\n return text;\n }\n text({\n text\n }) {\n return text;\n }\n link({\n text\n }) {\n return '' + text;\n }\n image({\n text\n }) {\n return '' + text;\n }\n br() {\n return '';\n }\n}\n\n/**\n * Parsing & Compiling\n */\nclass _Parser {\n options;\n renderer;\n textRenderer;\n constructor(options) {\n this.options = options || _defaults;\n this.options.renderer = this.options.renderer || new _Renderer();\n this.renderer = this.options.renderer;\n this.renderer.options = this.options;\n this.renderer.parser = this;\n this.textRenderer = new _TextRenderer();\n }\n /**\n * Static Parse Method\n */\n static parse(tokens, options) {\n const parser = new _Parser(options);\n return parser.parse(tokens);\n }\n /**\n * Static Parse Inline Method\n */\n static parseInline(tokens, options) {\n const parser = new _Parser(options);\n return parser.parseInline(tokens);\n }\n /**\n * Parse Loop\n */\n parse(tokens, top = true) {\n let out = '';\n for (let i = 0; i < tokens.length; i++) {\n const anyToken = tokens[i];\n // Run any renderer extensions\n if (this.options.extensions?.renderers?.[anyToken.type]) {\n const genericToken = anyToken;\n const ret = this.options.extensions.renderers[genericToken.type].call({\n parser: this\n }, genericToken);\n if (ret !== false || !['space', 'hr', 'heading', 'code', 'table', 'blockquote', 'list', 'html', 'paragraph', 'text'].includes(genericToken.type)) {\n out += ret || '';\n continue;\n }\n }\n const token = anyToken;\n switch (token.type) {\n case 'space':\n {\n out += this.renderer.space(token);\n continue;\n }\n case 'hr':\n {\n out += this.renderer.hr(token);\n continue;\n }\n case 'heading':\n {\n out += this.renderer.heading(token);\n continue;\n }\n case 'code':\n {\n out += this.renderer.code(token);\n continue;\n }\n case 'table':\n {\n out += this.renderer.table(token);\n continue;\n }\n case 'blockquote':\n {\n out += this.renderer.blockquote(token);\n continue;\n }\n case 'list':\n {\n out += this.renderer.list(token);\n continue;\n }\n case 'html':\n {\n out += this.renderer.html(token);\n continue;\n }\n case 'paragraph':\n {\n out += this.renderer.paragraph(token);\n continue;\n }\n case 'text':\n {\n let textToken = token;\n let body = this.renderer.text(textToken);\n while (i + 1 < tokens.length && tokens[i + 1].type === 'text') {\n textToken = tokens[++i];\n body += '\\n' + this.renderer.text(textToken);\n }\n if (top) {\n out += this.renderer.paragraph({\n type: 'paragraph',\n raw: body,\n text: body,\n tokens: [{\n type: 'text',\n raw: body,\n text: body,\n escaped: true\n }]\n });\n } else {\n out += body;\n }\n continue;\n }\n default:\n {\n const errMsg = 'Token with \"' + token.type + '\" type was not found.';\n if (this.options.silent) {\n console.error(errMsg);\n return '';\n } else {\n throw new Error(errMsg);\n }\n }\n }\n }\n return out;\n }\n /**\n * Parse Inline Tokens\n */\n parseInline(tokens, renderer = this.renderer) {\n let out = '';\n for (let i = 0; i < tokens.length; i++) {\n const anyToken = tokens[i];\n // Run any renderer extensions\n if (this.options.extensions?.renderers?.[anyToken.type]) {\n const ret = this.options.extensions.renderers[anyToken.type].call({\n parser: this\n }, anyToken);\n if (ret !== false || !['escape', 'html', 'link', 'image', 'strong', 'em', 'codespan', 'br', 'del', 'text'].includes(anyToken.type)) {\n out += ret || '';\n continue;\n }\n }\n const token = anyToken;\n switch (token.type) {\n case 'escape':\n {\n out += renderer.text(token);\n break;\n }\n case 'html':\n {\n out += renderer.html(token);\n break;\n }\n case 'link':\n {\n out += renderer.link(token);\n break;\n }\n case 'image':\n {\n out += renderer.image(token);\n break;\n }\n case 'strong':\n {\n out += renderer.strong(token);\n break;\n }\n case 'em':\n {\n out += renderer.em(token);\n break;\n }\n case 'codespan':\n {\n out += renderer.codespan(token);\n break;\n }\n case 'br':\n {\n out += renderer.br(token);\n break;\n }\n case 'del':\n {\n out += renderer.del(token);\n break;\n }\n case 'text':\n {\n out += renderer.text(token);\n break;\n }\n default:\n {\n const errMsg = 'Token with \"' + token.type + '\" type was not found.';\n if (this.options.silent) {\n console.error(errMsg);\n return '';\n } else {\n throw new Error(errMsg);\n }\n }\n }\n }\n return out;\n }\n}\nclass _Hooks {\n options;\n block;\n constructor(options) {\n this.options = options || _defaults;\n }\n static passThroughHooks = new Set(['preprocess', 'postprocess', 'processAllTokens']);\n /**\n * Process markdown before marked\n */\n preprocess(markdown) {\n return markdown;\n }\n /**\n * Process HTML after marked is finished\n */\n postprocess(html) {\n return html;\n }\n /**\n * Process all tokens before walk tokens\n */\n processAllTokens(tokens) {\n return tokens;\n }\n /**\n * Provide function to tokenize markdown\n */\n provideLexer() {\n return this.block ? _Lexer.lex : _Lexer.lexInline;\n }\n /**\n * Provide function to parse tokens\n */\n provideParser() {\n return this.block ? _Parser.parse : _Parser.parseInline;\n }\n}\nclass Marked {\n defaults = _getDefaults();\n options = this.setOptions;\n parse = this.parseMarkdown(true);\n parseInline = this.parseMarkdown(false);\n Parser = _Parser;\n Renderer = _Renderer;\n TextRenderer = _TextRenderer;\n Lexer = _Lexer;\n Tokenizer = _Tokenizer;\n Hooks = _Hooks;\n constructor(...args) {\n this.use(...args);\n }\n /**\n * Run callback for every token\n */\n walkTokens(tokens, callback) {\n let values = [];\n for (const token of tokens) {\n values = values.concat(callback.call(this, token));\n switch (token.type) {\n case 'table':\n {\n const tableToken = token;\n for (const cell of tableToken.header) {\n values = values.concat(this.walkTokens(cell.tokens, callback));\n }\n for (const row of tableToken.rows) {\n for (const cell of row) {\n values = values.concat(this.walkTokens(cell.tokens, callback));\n }\n }\n break;\n }\n case 'list':\n {\n const listToken = token;\n values = values.concat(this.walkTokens(listToken.items, callback));\n break;\n }\n default:\n {\n const genericToken = token;\n if (this.defaults.extensions?.childTokens?.[genericToken.type]) {\n this.defaults.extensions.childTokens[genericToken.type].forEach(childTokens => {\n const tokens = genericToken[childTokens].flat(Infinity);\n values = values.concat(this.walkTokens(tokens, callback));\n });\n } else if (genericToken.tokens) {\n values = values.concat(this.walkTokens(genericToken.tokens, callback));\n }\n }\n }\n }\n return values;\n }\n use(...args) {\n const extensions = this.defaults.extensions || {\n renderers: {},\n childTokens: {}\n };\n args.forEach(pack => {\n // copy options to new object\n const opts = {\n ...pack\n };\n // set async to true if it was set to true before\n opts.async = this.defaults.async || opts.async || false;\n // ==-- Parse \"addon\" extensions --== //\n if (pack.extensions) {\n pack.extensions.forEach(ext => {\n if (!ext.name) {\n throw new Error('extension name required');\n }\n if ('renderer' in ext) {\n // Renderer extensions\n const prevRenderer = extensions.renderers[ext.name];\n if (prevRenderer) {\n // Replace extension with func to run new extension but fall back if false\n extensions.renderers[ext.name] = function (...args) {\n let ret = ext.renderer.apply(this, args);\n if (ret === false) {\n ret = prevRenderer.apply(this, args);\n }\n return ret;\n };\n } else {\n extensions.renderers[ext.name] = ext.renderer;\n }\n }\n if ('tokenizer' in ext) {\n // Tokenizer Extensions\n if (!ext.level || ext.level !== 'block' && ext.level !== 'inline') {\n throw new Error(\"extension level must be 'block' or 'inline'\");\n }\n const extLevel = extensions[ext.level];\n if (extLevel) {\n extLevel.unshift(ext.tokenizer);\n } else {\n extensions[ext.level] = [ext.tokenizer];\n }\n if (ext.start) {\n // Function to check for start of token\n if (ext.level === 'block') {\n if (extensions.startBlock) {\n extensions.startBlock.push(ext.start);\n } else {\n extensions.startBlock = [ext.start];\n }\n } else if (ext.level === 'inline') {\n if (extensions.startInline) {\n extensions.startInline.push(ext.start);\n } else {\n extensions.startInline = [ext.start];\n }\n }\n }\n }\n if ('childTokens' in ext && ext.childTokens) {\n // Child tokens to be visited by walkTokens\n extensions.childTokens[ext.name] = ext.childTokens;\n }\n });\n opts.extensions = extensions;\n }\n // ==-- Parse \"overwrite\" extensions --== //\n if (pack.renderer) {\n const renderer = this.defaults.renderer || new _Renderer(this.defaults);\n for (const prop in pack.renderer) {\n if (!(prop in renderer)) {\n throw new Error(`renderer '${prop}' does not exist`);\n }\n if (['options', 'parser'].includes(prop)) {\n // ignore options property\n continue;\n }\n const rendererProp = prop;\n const rendererFunc = pack.renderer[rendererProp];\n const prevRenderer = renderer[rendererProp];\n // Replace renderer with func to run extension, but fall back if false\n renderer[rendererProp] = (...args) => {\n let ret = rendererFunc.apply(renderer, args);\n if (ret === false) {\n ret = prevRenderer.apply(renderer, args);\n }\n return ret || '';\n };\n }\n opts.renderer = renderer;\n }\n if (pack.tokenizer) {\n const tokenizer = this.defaults.tokenizer || new _Tokenizer(this.defaults);\n for (const prop in pack.tokenizer) {\n if (!(prop in tokenizer)) {\n throw new Error(`tokenizer '${prop}' does not exist`);\n }\n if (['options', 'rules', 'lexer'].includes(prop)) {\n // ignore options, rules, and lexer properties\n continue;\n }\n const tokenizerProp = prop;\n const tokenizerFunc = pack.tokenizer[tokenizerProp];\n const prevTokenizer = tokenizer[tokenizerProp];\n // Replace tokenizer with func to run extension, but fall back if false\n // @ts-expect-error cannot type tokenizer function dynamically\n tokenizer[tokenizerProp] = (...args) => {\n let ret = tokenizerFunc.apply(tokenizer, args);\n if (ret === false) {\n ret = prevTokenizer.apply(tokenizer, args);\n }\n return ret;\n };\n }\n opts.tokenizer = tokenizer;\n }\n // ==-- Parse Hooks extensions --== //\n if (pack.hooks) {\n const hooks = this.defaults.hooks || new _Hooks();\n for (const prop in pack.hooks) {\n if (!(prop in hooks)) {\n throw new Error(`hook '${prop}' does not exist`);\n }\n if (['options', 'block'].includes(prop)) {\n // ignore options and block properties\n continue;\n }\n const hooksProp = prop;\n const hooksFunc = pack.hooks[hooksProp];\n const prevHook = hooks[hooksProp];\n if (_Hooks.passThroughHooks.has(prop)) {\n // @ts-expect-error cannot type hook function dynamically\n hooks[hooksProp] = arg => {\n if (this.defaults.async) {\n return Promise.resolve(hooksFunc.call(hooks, arg)).then(ret => {\n return prevHook.call(hooks, ret);\n });\n }\n const ret = hooksFunc.call(hooks, arg);\n return prevHook.call(hooks, ret);\n };\n } else {\n // @ts-expect-error cannot type hook function dynamically\n hooks[hooksProp] = (...args) => {\n let ret = hooksFunc.apply(hooks, args);\n if (ret === false) {\n ret = prevHook.apply(hooks, args);\n }\n return ret;\n };\n }\n }\n opts.hooks = hooks;\n }\n // ==-- Parse WalkTokens extensions --== //\n if (pack.walkTokens) {\n const walkTokens = this.defaults.walkTokens;\n const packWalktokens = pack.walkTokens;\n opts.walkTokens = function (token) {\n let values = [];\n values.push(packWalktokens.call(this, token));\n if (walkTokens) {\n values = values.concat(walkTokens.call(this, token));\n }\n return values;\n };\n }\n this.defaults = {\n ...this.defaults,\n ...opts\n };\n });\n return this;\n }\n setOptions(opt) {\n this.defaults = {\n ...this.defaults,\n ...opt\n };\n return this;\n }\n lexer(src, options) {\n return _Lexer.lex(src, options ?? this.defaults);\n }\n parser(tokens, options) {\n return _Parser.parse(tokens, options ?? this.defaults);\n }\n parseMarkdown(blockType) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const parse = (src, options) => {\n const origOpt = {\n ...options\n };\n const opt = {\n ...this.defaults,\n ...origOpt\n };\n const throwError = this.onError(!!opt.silent, !!opt.async);\n // throw error if an extension set async to true but parse was called with async: false\n if (this.defaults.async === true && origOpt.async === false) {\n return throwError(new Error('marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.'));\n }\n // throw error in case of non string input\n if (typeof src === 'undefined' || src === null) {\n return throwError(new Error('marked(): input parameter is undefined or null'));\n }\n if (typeof src !== 'string') {\n return throwError(new Error('marked(): input parameter is of type ' + Object.prototype.toString.call(src) + ', string expected'));\n }\n if (opt.hooks) {\n opt.hooks.options = opt;\n opt.hooks.block = blockType;\n }\n const lexer = opt.hooks ? opt.hooks.provideLexer() : blockType ? _Lexer.lex : _Lexer.lexInline;\n const parser = opt.hooks ? opt.hooks.provideParser() : blockType ? _Parser.parse : _Parser.parseInline;\n if (opt.async) {\n return Promise.resolve(opt.hooks ? opt.hooks.preprocess(src) : src).then(src => lexer(src, opt)).then(tokens => opt.hooks ? opt.hooks.processAllTokens(tokens) : tokens).then(tokens => opt.walkTokens ? Promise.all(this.walkTokens(tokens, opt.walkTokens)).then(() => tokens) : tokens).then(tokens => parser(tokens, opt)).then(html => opt.hooks ? opt.hooks.postprocess(html) : html).catch(throwError);\n }\n try {\n if (opt.hooks) {\n src = opt.hooks.preprocess(src);\n }\n let tokens = lexer(src, opt);\n if (opt.hooks) {\n tokens = opt.hooks.processAllTokens(tokens);\n }\n if (opt.walkTokens) {\n this.walkTokens(tokens, opt.walkTokens);\n }\n let html = parser(tokens, opt);\n if (opt.hooks) {\n html = opt.hooks.postprocess(html);\n }\n return html;\n } catch (e) {\n return throwError(e);\n }\n };\n return parse;\n }\n onError(silent, async) {\n return e => {\n e.message += '\\nPlease report this to https://github.com/markedjs/marked.';\n if (silent) {\n const msg = '<p>An error occurred:</p><pre>' + escape(e.message + '', true) + '</pre>';\n if (async) {\n return Promise.resolve(msg);\n }\n return msg;\n }\n if (async) {\n return Promise.reject(e);\n }\n throw e;\n };\n }\n}\nconst markedInstance = new Marked();\nfunction marked(src, opt) {\n return markedInstance.parse(src, opt);\n}\n/**\n * Sets the default options.\n *\n * @param options Hash of options\n */\nmarked.options = marked.setOptions = function (options) {\n markedInstance.setOptions(options);\n marked.defaults = markedInstance.defaults;\n changeDefaults(marked.defaults);\n return marked;\n};\n/**\n * Gets the original marked default options.\n */\nmarked.getDefaults = _getDefaults;\nmarked.defaults = _defaults;\n/**\n * Use Extension\n */\nmarked.use = function (...args) {\n markedInstance.use(...args);\n marked.defaults = markedInstance.defaults;\n changeDefaults(marked.defaults);\n return marked;\n};\n/**\n * Run callback for every token\n */\nmarked.walkTokens = function (tokens, callback) {\n return markedInstance.walkTokens(tokens, callback);\n};\n/**\n * Compiles markdown to HTML without enclosing `p` tag.\n *\n * @param src String of markdown source to be compiled\n * @param options Hash of options\n * @return String of compiled HTML\n */\nmarked.parseInline = markedInstance.parseInline;\n/**\n * Expose\n */\nmarked.Parser = _Parser;\nmarked.parser = _Parser.parse;\nmarked.Renderer = _Renderer;\nmarked.TextRenderer = _TextRenderer;\nmarked.Lexer = _Lexer;\nmarked.lexer = _Lexer.lex;\nmarked.Tokenizer = _Tokenizer;\nmarked.Hooks = _Hooks;\nmarked.parse = marked;\nconst options = marked.options;\nconst setOptions = marked.setOptions;\nconst use = marked.use;\nconst walkTokens = marked.walkTokens;\nconst parseInline = marked.parseInline;\nconst parse = marked;\nconst parser = _Parser.parse;\nconst lexer = _Lexer.lex;\nexport { _Hooks as Hooks, _Lexer as Lexer, Marked, _Parser as Parser, _Renderer as Renderer, _TextRenderer as TextRenderer, _Tokenizer as Tokenizer, _defaults as defaults, _getDefaults as getDefaults, lexer, marked, options, parse, parseInline, parser, setOptions, use, walkTokens };\n//# sourceMappingURL=marked.esm.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"/*! DataTables styling integration\n * ©2018 SpryMedia Ltd - datatables.net/license\n */\n\nimport jQuery from 'jquery';\nimport DataTable from 'datatables.net';\n\n// Allow reassignment of the $ variable\nlet $ = jQuery;\nexport default DataTable;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { combineLatestInit } from '../observable/combineLatest';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { popResultSelector } from '../util/args';\nexport function combineLatest(...args) {\n const resultSelector = popResultSelector(args);\n return resultSelector ? pipe(combineLatest(...args), mapOneOrManyArgs(resultSelector)) : operate((source, subscriber) => {\n combineLatestInit([source, ...argsOrArgArray(args)])(subscriber);\n });\n}\n//# sourceMappingURL=combineLatest.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import _asyncToGenerator from \"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\";\nimport { AsyncPipe, isPlatformBrowser, CommonModule } from '@angular/common';\nimport * as i0 from '@angular/core';\nimport { Component, ChangeDetectionStrategy, InjectionToken, Pipe, PLATFORM_ID, Injectable, Inject, Optional, EventEmitter, Input, Output, SecurityContext, NgModule } from '@angular/core';\nimport { Subject, merge, of, timer } from 'rxjs';\nimport { switchMap, mapTo, distinctUntilChanged, shareReplay, startWith, map, takeUntil, first } from 'rxjs/operators';\nimport { Renderer, marked } from 'marked';\nconst _c0 = [\"*\"];\nexport { Renderer as MarkedRenderer } from 'marked';\nimport * as i1 from '@angular/common/http';\nimport * as i2 from '@angular/platform-browser';\nconst BUTTON_TEXT_COPY = 'Copy';\nconst BUTTON_TEXT_COPIED = 'Copied';\nlet ClipboardButtonComponent = /*#__PURE__*/(() => {\n class ClipboardButtonComponent {\n constructor() {\n this._buttonClick$ = new Subject();\n this.copied$ = this._buttonClick$.pipe(switchMap(() => merge(of(true), timer(3000).pipe(mapTo(false)))), distinctUntilChanged(), shareReplay(1));\n this.copiedText$ = this.copied$.pipe(startWith(false), map(copied => copied ? BUTTON_TEXT_COPIED : BUTTON_TEXT_COPY));\n }\n onCopyToClipboardClick() {\n this._buttonClick$.next();\n }\n static #_ = this.ɵfac = function ClipboardButtonComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || ClipboardButtonComponent)();\n };\n static #_2 = this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: ClipboardButtonComponent,\n selectors: [[\"markdown-clipboard\"]],\n decls: 4,\n vars: 7,\n consts: [[1, \"markdown-clipboard-button\", 3, \"click\"]],\n template: function ClipboardButtonComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵdomElementStart(0, \"button\", 0);\n i0.ɵɵpipe(1, \"async\");\n i0.ɵɵdomListener(\"click\", function ClipboardButtonComponent_Template_button_click_0_listener() {\n return ctx.onCopyToClipboardClick();\n });\n i0.ɵɵtext(2);\n i0.ɵɵpipe(3, \"async\");\n i0.ɵɵdomElementEnd();\n }\n if (rf & 2) {\n i0.ɵɵclassProp(\"copied\", i0.ɵɵpipeBind1(1, 3, ctx.copied$));\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 5, ctx.copiedText$));\n }\n },\n dependencies: [AsyncPipe],\n encapsulation: 2,\n changeDetection: 0\n });\n }\n return ClipboardButtonComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nconst CLIPBOARD_OPTIONS = new InjectionToken('CLIPBOARD_OPTIONS');\n\n/* eslint-disable */\nclass KatexSpecificOptions {}\nlet LanguagePipe = /*#__PURE__*/(() => {\n class LanguagePipe {\n transform(value, language) {\n if (value == null) {\n value = '';\n }\n if (language == null) {\n language = '';\n }\n if (typeof value !== 'string') {\n console.error(`LanguagePipe has been invoked with an invalid value type [${typeof value}]`);\n return value;\n }\n if (typeof language !== 'string') {\n console.error(`LanguagePipe has been invoked with an invalid parameter [${typeof language}]`);\n return value;\n }\n return '```' + language + '\\n' + value + '\\n```';\n }\n static #_ = this.ɵfac = function LanguagePipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || LanguagePipe)();\n };\n static #_2 = this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"language\",\n type: LanguagePipe,\n pure: true\n });\n }\n return LanguagePipe;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nvar PrismPlugin = /*#__PURE__*/function (PrismPlugin) {\n PrismPlugin[\"CommandLine\"] = \"command-line\";\n PrismPlugin[\"LineHighlight\"] = \"line-highlight\";\n PrismPlugin[\"LineNumbers\"] = \"line-numbers\";\n return PrismPlugin;\n}(PrismPlugin || {});\nconst MARKED_EXTENSIONS = new InjectionToken('MARKED_EXTENSIONS');\nconst MARKED_OPTIONS = new InjectionToken('MARKED_OPTIONS');\nconst MERMAID_OPTIONS = new InjectionToken('MERMAID_OPTIONS');\nconst errorJoyPixelsNotLoaded = '[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information';\nconst errorKatexNotLoaded = '[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information';\nconst errorMermaidNotLoaded = '[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information';\nconst errorClipboardNotLoaded = '[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information';\nconst errorClipboardViewContainerRequired = '[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function';\nconst errorSrcWithoutHttpClient = '[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information';\nconst SECURITY_CONTEXT = new InjectionToken('SECURITY_CONTEXT');\nclass ExtendedRenderer extends Renderer {\n constructor() {\n super(...arguments);\n this.ɵNgxMarkdownRendererExtendedForExtensions = false;\n this.ɵNgxMarkdownRendererExtendedForMermaid = false;\n }\n}\nlet MarkdownService = /*#__PURE__*/(() => {\n class MarkdownService {\n get options() {\n return this._options;\n }\n set options(value) {\n this._options = {\n ...this.DEFAULT_MARKED_OPTIONS,\n ...value\n };\n }\n get renderer() {\n return this.options.renderer;\n }\n set renderer(value) {\n this.options.renderer = value;\n }\n constructor(clipboardOptions, extensions, options, mermaidOptions, platform, securityContext, http, sanitizer) {\n this.clipboardOptions = clipboardOptions;\n this.extensions = extensions;\n this.mermaidOptions = mermaidOptions;\n this.platform = platform;\n this.securityContext = securityContext;\n this.http = http;\n this.sanitizer = sanitizer;\n this.DEFAULT_MARKED_OPTIONS = {\n renderer: new Renderer()\n };\n this.DEFAULT_KATEX_OPTIONS = {\n delimiters: [{\n left: '$$',\n right: '$$',\n display: true\n }, {\n left: '$',\n right: '$',\n display: false\n }, {\n left: '\\\\(',\n right: '\\\\)',\n display: false\n }, {\n left: '\\\\begin{equation}',\n right: '\\\\end{equation}',\n display: true\n }, {\n left: '\\\\begin{align}',\n right: '\\\\end{align}',\n display: true\n }, {\n left: '\\\\begin{alignat}',\n right: '\\\\end{alignat}',\n display: true\n }, {\n left: '\\\\begin{gather}',\n right: '\\\\end{gather}',\n display: true\n }, {\n left: '\\\\begin{CD}',\n right: '\\\\end{CD}',\n display: true\n }, {\n left: '\\\\[',\n right: '\\\\]',\n display: true\n }]\n };\n this.DEFAULT_MERMAID_OPTIONS = {\n startOnLoad: false\n };\n this.DEFAULT_CLIPBOARD_OPTIONS = {\n buttonComponent: undefined\n };\n this.DEFAULT_PARSE_OPTIONS = {\n decodeHtml: false,\n inline: false,\n emoji: false,\n mermaid: false,\n markedOptions: undefined,\n disableSanitizer: false\n };\n this.DEFAULT_RENDER_OPTIONS = {\n clipboard: false,\n clipboardOptions: undefined,\n katex: false,\n katexOptions: undefined,\n mermaid: false,\n mermaidOptions: undefined\n };\n this._reload$ = new Subject();\n this.reload$ = this._reload$.asObservable();\n this.options = options;\n }\n parse(markdown, parseOptions = this.DEFAULT_PARSE_OPTIONS) {\n const {\n decodeHtml,\n inline,\n emoji,\n mermaid,\n disableSanitizer\n } = parseOptions;\n const markedOptions = {\n ...this.options,\n ...parseOptions.markedOptions\n };\n const renderer = markedOptions.renderer || this.renderer || new Renderer();\n if (this.extensions) {\n this.renderer = this.extendsRendererForExtensions(renderer);\n }\n if (mermaid) {\n this.renderer = this.extendsRendererForMermaid(renderer);\n }\n const trimmed = this.trimIndentation(markdown);\n const decoded = decodeHtml ? this.decodeHtml(trimmed) : trimmed;\n const emojified = emoji ? this.parseEmoji(decoded) : decoded;\n const marked = this.parseMarked(emojified, markedOptions, inline);\n const sanitized = disableSanitizer ? marked : this.sanitizer.sanitize(this.securityContext, marked);\n return sanitized || '';\n }\n render(element, options = this.DEFAULT_RENDER_OPTIONS, viewContainerRef) {\n const {\n clipboard,\n clipboardOptions,\n katex,\n katexOptions,\n mermaid,\n mermaidOptions\n } = options;\n if (katex) {\n this.renderKatex(element, {\n ...this.DEFAULT_KATEX_OPTIONS,\n ...katexOptions\n });\n }\n if (mermaid) {\n this.renderMermaid(element, {\n ...this.DEFAULT_MERMAID_OPTIONS,\n ...this.mermaidOptions,\n ...mermaidOptions\n });\n }\n if (clipboard) {\n this.renderClipboard(element, viewContainerRef, {\n ...this.DEFAULT_CLIPBOARD_OPTIONS,\n ...this.clipboardOptions,\n ...clipboardOptions\n });\n }\n this.highlight(element);\n }\n reload() {\n this._reload$.next();\n }\n getSource(src) {\n if (!this.http) {\n throw new Error(errorSrcWithoutHttpClient);\n }\n return this.http.get(src, {\n responseType: 'text'\n }).pipe(map(markdown => this.handleExtension(src, markdown)));\n }\n highlight(element) {\n if (!isPlatformBrowser(this.platform)) {\n return;\n }\n if (typeof Prism === 'undefined' || typeof Prism.highlightAllUnder === 'undefined') {\n return;\n }\n if (!element) {\n element = document;\n }\n const noLanguageElements = element.querySelectorAll('pre code:not([class*=\"language-\"])');\n Array.prototype.forEach.call(noLanguageElements, x => x.classList.add('language-none'));\n Prism.highlightAllUnder(element);\n }\n decodeHtml(html) {\n if (!isPlatformBrowser(this.platform)) {\n return html;\n }\n const textarea = document.createElement('textarea');\n textarea.innerHTML = html;\n return textarea.value;\n }\n extendsRendererForExtensions(renderer) {\n const extendedRenderer = renderer;\n if (extendedRenderer.ɵNgxMarkdownRendererExtendedForExtensions === true) {\n return renderer;\n }\n if (this.extensions?.length > 0) {\n marked.use(...this.extensions);\n }\n extendedRenderer.ɵNgxMarkdownRendererExtendedForExtensions = true;\n return renderer;\n }\n extendsRendererForMermaid(renderer) {\n const extendedRenderer = renderer;\n if (extendedRenderer.ɵNgxMarkdownRendererExtendedForMermaid === true) {\n return renderer;\n }\n const defaultCode = renderer.code;\n renderer.code = token => {\n return token.lang === 'mermaid' ? `<div class=\"mermaid\">${token.text}</div>` : defaultCode(token);\n };\n extendedRenderer.ɵNgxMarkdownRendererExtendedForMermaid = true;\n return renderer;\n }\n handleExtension(src, markdown) {\n const urlProtocolIndex = src.lastIndexOf('://');\n const urlWithoutProtocol = urlProtocolIndex > -1 ? src.substring(urlProtocolIndex + 4) : src;\n const lastSlashIndex = urlWithoutProtocol.lastIndexOf('/');\n const lastUrlSegment = lastSlashIndex > -1 ? urlWithoutProtocol.substring(lastSlashIndex + 1).split('?')[0] : '';\n const lastDotIndex = lastUrlSegment.lastIndexOf('.');\n const extension = lastDotIndex > -1 ? lastUrlSegment.substring(lastDotIndex + 1) : '';\n return !!extension && extension !== 'md' ? '```' + extension + '\\n' + markdown + '\\n```' : markdown;\n }\n parseMarked(html, markedOptions, inline = false) {\n if (markedOptions.renderer) {\n // clone renderer and remove extended flags otherwise\n // marked throws an error thinking it is a renderer prop\n const renderer = {\n ...markedOptions.renderer\n };\n delete renderer.ɵNgxMarkdownRendererExtendedForExtensions;\n delete renderer.ɵNgxMarkdownRendererExtendedForMermaid;\n // remove renderer from markedOptions because if renderer is\n // passed to marked.parse method, it will ignore all extensions\n delete markedOptions.renderer;\n marked.use({\n renderer\n });\n }\n return inline ? marked.parseInline(html, markedOptions) : marked.parse(html, markedOptions);\n }\n parseEmoji(html) {\n if (!isPlatformBrowser(this.platform)) {\n return html;\n }\n if (typeof joypixels === 'undefined' || typeof joypixels.shortnameToUnicode === 'undefined') {\n throw new Error(errorJoyPixelsNotLoaded);\n }\n return joypixels.shortnameToUnicode(html);\n }\n renderKatex(element, options) {\n if (!isPlatformBrowser(this.platform)) {\n return;\n }\n if (typeof katex === 'undefined' || typeof renderMathInElement === 'undefined') {\n throw new Error(errorKatexNotLoaded);\n }\n renderMathInElement(element, options);\n }\n renderClipboard(element, viewContainerRef, options) {\n if (!isPlatformBrowser(this.platform)) {\n return;\n }\n if (typeof ClipboardJS === 'undefined') {\n throw new Error(errorClipboardNotLoaded);\n }\n if (!viewContainerRef) {\n throw new Error(errorClipboardViewContainerRequired);\n }\n const {\n buttonComponent,\n buttonTemplate\n } = options;\n // target every <pre> elements\n const preElements = element.querySelectorAll('pre');\n for (let i = 0; i < preElements.length; i++) {\n const preElement = preElements.item(i);\n // create <pre> wrapper element\n const preWrapperElement = document.createElement('div');\n preWrapperElement.style.position = 'relative';\n preElement.parentNode.insertBefore(preWrapperElement, preElement);\n preWrapperElement.appendChild(preElement);\n // create toolbar element\n const toolbarWrapperElement = document.createElement('div');\n toolbarWrapperElement.classList.add('markdown-clipboard-toolbar');\n toolbarWrapperElement.style.position = 'absolute';\n toolbarWrapperElement.style.top = '.5em';\n toolbarWrapperElement.style.right = '.5em';\n toolbarWrapperElement.style.zIndex = '1';\n preWrapperElement.insertAdjacentElement('beforeend', toolbarWrapperElement);\n // register listener to show/hide toolbar\n preWrapperElement.onmouseenter = () => toolbarWrapperElement.classList.add('hover');\n preWrapperElement.onmouseleave = () => toolbarWrapperElement.classList.remove('hover');\n // declare embeddedViewRef holding variable\n let embeddedViewRef;\n // use provided component via input property\n // or provided via ClipboardOptions provider\n if (buttonComponent) {\n const componentRef = viewContainerRef.createComponent(buttonComponent);\n embeddedViewRef = componentRef.hostView;\n componentRef.changeDetectorRef.markForCheck();\n }\n // use provided template via input property\n else if (buttonTemplate) {\n embeddedViewRef = viewContainerRef.createEmbeddedView(buttonTemplate);\n }\n // use default component\n else {\n const componentRef = viewContainerRef.createComponent(ClipboardButtonComponent);\n embeddedViewRef = componentRef.hostView;\n componentRef.changeDetectorRef.markForCheck();\n }\n // declare clipboard instance variable\n let clipboardInstance;\n // attach clipboard.js to root node\n embeddedViewRef.rootNodes.forEach(node => {\n toolbarWrapperElement.appendChild(node);\n clipboardInstance = new ClipboardJS(node, {\n text: () => preElement.innerText\n });\n });\n // destroy clipboard instance when view is destroyed\n embeddedViewRef.onDestroy(() => clipboardInstance.destroy());\n }\n }\n renderMermaid(element, options = this.DEFAULT_MERMAID_OPTIONS) {\n if (!isPlatformBrowser(this.platform)) {\n return;\n }\n if (typeof mermaid === 'undefined' || typeof mermaid.initialize === 'undefined') {\n throw new Error(errorMermaidNotLoaded);\n }\n const mermaidElements = element.querySelectorAll('.mermaid');\n if (mermaidElements.length === 0) {\n return;\n }\n mermaid.initialize(options);\n mermaid.run({\n nodes: mermaidElements\n });\n }\n trimIndentation(markdown) {\n if (!markdown) {\n return '';\n }\n let indentStart;\n return markdown.split('\\n').map(line => {\n let lineIdentStart = indentStart;\n if (line.length > 0) {\n lineIdentStart = isNaN(lineIdentStart) ? line.search(/\\S|$/) : Math.min(line.search(/\\S|$/), lineIdentStart);\n }\n if (isNaN(indentStart)) {\n indentStart = lineIdentStart;\n }\n return lineIdentStart ? line.substring(lineIdentStart) : line;\n }).join('\\n');\n }\n static #_ = this.ɵfac = function MarkdownService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MarkdownService)(i0.ɵɵinject(CLIPBOARD_OPTIONS, 8), i0.ɵɵinject(MARKED_EXTENSIONS, 8), i0.ɵɵinject(MARKED_OPTIONS, 8), i0.ɵɵinject(MERMAID_OPTIONS, 8), i0.ɵɵinject(PLATFORM_ID), i0.ɵɵinject(SECURITY_CONTEXT), i0.ɵɵinject(i1.HttpClient, 8), i0.ɵɵinject(i2.DomSanitizer));\n };\n static #_2 = this.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: MarkdownService,\n factory: MarkdownService.ɵfac\n });\n }\n return MarkdownService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MarkdownComponent = /*#__PURE__*/(() => {\n class MarkdownComponent {\n get disableSanitizer() {\n return this._disableSanitizer;\n }\n set disableSanitizer(value) {\n this._disableSanitizer = this.coerceBooleanProperty(value);\n }\n get inline() {\n return this._inline;\n }\n set inline(value) {\n this._inline = this.coerceBooleanProperty(value);\n }\n // Plugin - clipboard\n get clipboard() {\n return this._clipboard;\n }\n set clipboard(value) {\n this._clipboard = this.coerceBooleanProperty(value);\n }\n // Plugin - emoji\n get emoji() {\n return this._emoji;\n }\n set emoji(value) {\n this._emoji = this.coerceBooleanProperty(value);\n }\n // Plugin - katex\n get katex() {\n return this._katex;\n }\n set katex(value) {\n this._katex = this.coerceBooleanProperty(value);\n }\n // Plugin - mermaid\n get mermaid() {\n return this._mermaid;\n }\n set mermaid(value) {\n this._mermaid = this.coerceBooleanProperty(value);\n }\n // Plugin - lineHighlight\n get lineHighlight() {\n return this._lineHighlight;\n }\n set lineHighlight(value) {\n this._lineHighlight = this.coerceBooleanProperty(value);\n }\n // Plugin - lineNumbers\n get lineNumbers() {\n return this._lineNumbers;\n }\n set lineNumbers(value) {\n this._lineNumbers = this.coerceBooleanProperty(value);\n }\n // Plugin - commandLine\n get commandLine() {\n return this._commandLine;\n }\n set commandLine(value) {\n this._commandLine = this.coerceBooleanProperty(value);\n }\n constructor(element, markdownService, viewContainerRef) {\n this.element = element;\n this.markdownService = markdownService;\n this.viewContainerRef = viewContainerRef;\n // Event emitters\n this.error = new EventEmitter();\n this.load = new EventEmitter();\n this.ready = new EventEmitter();\n this._clipboard = false;\n this._commandLine = false;\n this._disableSanitizer = false;\n this._emoji = false;\n this._inline = false;\n this._katex = false;\n this._lineHighlight = false;\n this._lineNumbers = false;\n this._mermaid = false;\n this.destroyed$ = new Subject();\n }\n ngOnChanges() {\n this.loadContent();\n }\n loadContent() {\n if (this.data != null) {\n this.handleData();\n return;\n }\n if (this.src != null) {\n this.handleSrc();\n return;\n }\n }\n ngAfterViewInit() {\n if (!this.data && !this.src) {\n this.handleTransclusion();\n }\n this.markdownService.reload$.pipe(takeUntil(this.destroyed$)).subscribe(() => this.loadContent());\n }\n ngOnDestroy() {\n this.destroyed$.next();\n this.destroyed$.complete();\n }\n render(_x) {\n var _this = this;\n return _asyncToGenerator(function* (markdown, decodeHtml = false) {\n const parsedOptions = {\n decodeHtml,\n inline: _this.inline,\n emoji: _this.emoji,\n mermaid: _this.mermaid,\n disableSanitizer: _this.disableSanitizer\n };\n const renderOptions = {\n clipboard: _this.clipboard,\n clipboardOptions: _this.getClipboardOptions(),\n katex: _this.katex,\n katexOptions: _this.katexOptions,\n mermaid: _this.mermaid,\n mermaidOptions: _this.mermaidOptions\n };\n const parsed = yield _this.markdownService.parse(markdown, parsedOptions);\n _this.element.nativeElement.innerHTML = parsed;\n _this.handlePlugins();\n _this.markdownService.render(_this.element.nativeElement, renderOptions, _this.viewContainerRef);\n _this.ready.emit();\n }).apply(this, arguments);\n }\n coerceBooleanProperty(value) {\n return value != null && `${String(value)}` !== 'false';\n }\n getClipboardOptions() {\n if (this.clipboardButtonComponent || this.clipboardButtonTemplate) {\n return {\n buttonComponent: this.clipboardButtonComponent,\n buttonTemplate: this.clipboardButtonTemplate\n };\n }\n return undefined;\n }\n handleData() {\n this.render(this.data);\n }\n handleSrc() {\n this.markdownService.getSource(this.src).subscribe({\n next: markdown => {\n this.render(markdown).then(() => {\n this.load.emit(markdown);\n });\n },\n error: error => this.error.emit(error)\n });\n }\n handleTransclusion() {\n this.render(this.element.nativeElement.innerHTML, true);\n }\n handlePlugins() {\n if (this.commandLine) {\n this.setPluginClass(this.element.nativeElement, PrismPlugin.CommandLine);\n this.setPluginOptions(this.element.nativeElement, {\n dataFilterOutput: this.filterOutput,\n dataHost: this.host,\n dataPrompt: this.prompt,\n dataOutput: this.output,\n dataUser: this.user\n });\n }\n if (this.lineHighlight) {\n this.setPluginOptions(this.element.nativeElement, {\n dataLine: this.line,\n dataLineOffset: this.lineOffset\n });\n }\n if (this.lineNumbers) {\n this.setPluginClass(this.element.nativeElement, PrismPlugin.LineNumbers);\n this.setPluginOptions(this.element.nativeElement, {\n dataStart: this.start\n });\n }\n }\n setPluginClass(element, plugin) {\n const preElements = element.querySelectorAll('pre');\n for (let i = 0; i < preElements.length; i++) {\n const classes = plugin instanceof Array ? plugin : [plugin];\n preElements.item(i).classList.add(...classes);\n }\n }\n setPluginOptions(element, options) {\n const preElements = element.querySelectorAll('pre');\n for (let i = 0; i < preElements.length; i++) {\n Object.keys(options).forEach(option => {\n const attributeValue = options[option];\n if (attributeValue) {\n const attributeName = this.toLispCase(option);\n preElements.item(i).setAttribute(attributeName, attributeValue.toString());\n }\n });\n }\n }\n toLispCase(value) {\n const upperChars = value.match(/([A-Z])/g);\n if (!upperChars) {\n return value;\n }\n let str = value.toString();\n for (let i = 0, n = upperChars.length; i < n; i++) {\n str = str.replace(new RegExp(upperChars[i]), '-' + upperChars[i].toLowerCase());\n }\n if (str.slice(0, 1) === '-') {\n str = str.slice(1);\n }\n return str;\n }\n static #_ = this.ɵfac = function MarkdownComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MarkdownComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(MarkdownService), i0.ɵɵdirectiveInject(i0.ViewContainerRef));\n };\n static #_2 = this.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: MarkdownComponent,\n selectors: [[\"markdown\"], [\"\", \"markdown\", \"\"]],\n inputs: {\n data: \"data\",\n src: \"src\",\n disableSanitizer: \"disableSanitizer\",\n inline: \"inline\",\n clipboard: \"clipboard\",\n clipboardButtonComponent: \"clipboardButtonComponent\",\n clipboardButtonTemplate: \"clipboardButtonTemplate\",\n emoji: \"emoji\",\n katex: \"katex\",\n katexOptions: \"katexOptions\",\n mermaid: \"mermaid\",\n mermaidOptions: \"mermaidOptions\",\n lineHighlight: \"lineHighlight\",\n line: \"line\",\n lineOffset: \"lineOffset\",\n lineNumbers: \"lineNumbers\",\n start: \"start\",\n commandLine: \"commandLine\",\n filterOutput: \"filterOutput\",\n host: \"host\",\n prompt: \"prompt\",\n output: \"output\",\n user: \"user\"\n },\n outputs: {\n error: \"error\",\n load: \"load\",\n ready: \"ready\"\n },\n features: [i0.ɵɵNgOnChangesFeature],\n ngContentSelectors: _c0,\n decls: 1,\n vars: 0,\n template: function MarkdownComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵprojectionDef();\n i0.ɵɵprojection(0);\n }\n },\n encapsulation: 2\n });\n }\n return MarkdownComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet MarkdownPipe = /*#__PURE__*/(() => {\n class MarkdownPipe {\n constructor(domSanitizer, elementRef, markdownService, viewContainerRef, zone) {\n this.domSanitizer = domSanitizer;\n this.elementRef = elementRef;\n this.markdownService = markdownService;\n this.viewContainerRef = viewContainerRef;\n this.zone = zone;\n }\n transform(value, options) {\n var _this2 = this;\n return _asyncToGenerator(function* () {\n if (value == null) {\n return '';\n }\n if (typeof value !== 'string') {\n console.error(`MarkdownPipe has been invoked with an invalid value type [${typeof value}]`);\n return value;\n }\n const markdown = yield _this2.markdownService.parse(value, options);\n _this2.zone.onStable.pipe(first()).subscribe(() => _this2.markdownService.render(_this2.elementRef.nativeElement, options, _this2.viewContainerRef));\n return _this2.domSanitizer.bypassSecurityTrustHtml(markdown);\n })();\n }\n static #_ = this.ɵfac = function MarkdownPipe_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MarkdownPipe)(i0.ɵɵdirectiveInject(i2.DomSanitizer, 16), i0.ɵɵdirectiveInject(i0.ElementRef, 16), i0.ɵɵdirectiveInject(MarkdownService, 16), i0.ɵɵdirectiveInject(i0.ViewContainerRef, 16), i0.ɵɵdirectiveInject(i0.NgZone, 16));\n };\n static #_2 = this.ɵpipe = /* @__PURE__ */i0.ɵɵdefinePipe({\n name: \"markdown\",\n type: MarkdownPipe,\n pure: true\n });\n }\n return MarkdownPipe;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nfunction provideMarkdown(markdownModuleConfig) {\n return [MarkdownService, markdownModuleConfig?.loader ?? [], markdownModuleConfig?.clipboardOptions ?? [], markdownModuleConfig?.markedOptions ?? [], markdownModuleConfig?.mermaidOptions ?? [], {\n provide: MARKED_EXTENSIONS,\n useValue: markdownModuleConfig?.markedExtensions ?? []\n }, {\n provide: SECURITY_CONTEXT,\n useValue: markdownModuleConfig?.sanitize ?? SecurityContext.HTML\n }];\n}\n;\n;\nconst sharedDeclarations = [ClipboardButtonComponent, LanguagePipe, MarkdownComponent, MarkdownPipe];\nlet MarkdownModule = /*#__PURE__*/(() => {\n class MarkdownModule {\n static forRoot(markdownModuleConfig) {\n return {\n ngModule: MarkdownModule,\n providers: [provideMarkdown(markdownModuleConfig)]\n };\n }\n static forChild() {\n return {\n ngModule: MarkdownModule\n };\n }\n static #_ = this.ɵfac = function MarkdownModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || MarkdownModule)();\n };\n static #_2 = this.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: MarkdownModule\n });\n static #_3 = this.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n imports: [CommonModule]\n });\n }\n return MarkdownModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { CLIPBOARD_OPTIONS, ClipboardButtonComponent, ExtendedRenderer, KatexSpecificOptions, LanguagePipe, MARKED_EXTENSIONS, MARKED_OPTIONS, MERMAID_OPTIONS, MarkdownComponent, MarkdownModule, MarkdownPipe, MarkdownService, PrismPlugin, SECURITY_CONTEXT, errorClipboardNotLoaded, errorClipboardViewContainerRequired, errorJoyPixelsNotLoaded, errorKatexNotLoaded, errorMermaidNotLoaded, errorSrcWithoutHttpClient, provideMarkdown };\n//# sourceMappingURL=ngx-markdown.mjs.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { EMPTY } from './empty';\nimport { onErrorResumeNext as onErrorResumeNextWith } from '../operators/onErrorResumeNext';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nexport function onErrorResumeNext(...sources) {\n return onErrorResumeNextWith(argsOrArgArray(sources))(EMPTY);\n}\n//# sourceMappingURL=onErrorResumeNext.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"ast":null,"code":"import { asyncScheduler } from '../scheduler/async';\nimport { isValidDate } from '../util/isDate';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createErrorClass } from '../util/createErrorClass';\nimport { OperatorSubscriber } from './OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport const TimeoutError = createErrorClass(_super => function TimeoutErrorImpl(info = null) {\n _super(this);\n this.message = 'Timeout has occurred';\n this.name = 'TimeoutError';\n this.info = info;\n});\nexport function timeout(config, schedulerArg) {\n const {\n first,\n each,\n with: _with = timeoutErrorFactory,\n scheduler = schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler,\n meta = null\n } = isValidDate(config) ? {\n first: config\n } : typeof config === 'number' ? {\n each: config\n } : config;\n if (first == null && each == null) {\n throw new TypeError('No timeout provided.');\n }\n return operate((source, subscriber) => {\n let originalSourceSubscription;\n let timerSubscription;\n let lastValue = null;\n let seen = 0;\n const startTimer = delay => {\n timerSubscription = executeSchedule(subscriber, scheduler, () => {\n try {\n originalSourceSubscription.unsubscribe();\n innerFrom(_with({\n meta,\n lastValue,\n seen\n })).subscribe(subscriber);\n } catch (err) {\n subscriber.error(err);\n }\n }, delay);\n };\n originalSourceSubscription = source.subscribe(new OperatorSubscriber(subscriber, value => {\n timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();\n seen++;\n subscriber.next(lastValue = value);\n each > 0 && startTimer(each);\n }, undefined, undefined, () => {\n if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) {\n timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();\n }\n lastValue = null;\n }));\n startTimer(first != null ? typeof first === 'number' ? first : +first - scheduler.now() : each);\n });\n}\nfunction timeoutErrorFactory(info) {\n throw new TimeoutError(info);\n}\n//# sourceMappingURL=timeout.js.map","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"1de5780c76dfcead754f70d73244c6eae9e144f00e516b9937adb6ee17161284","types":[{"exports":["DataTableDirective","DataTablesModule"],"facadeModuleId":"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/angular-datatables.d.ts","isDynamicEntry":false,"isEntry":true,"isImplicitEntry":false,"moduleIds":["/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/src/models/settings.d.ts","/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/src/angular-datatables.directive.d.ts","/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/src/angular-datatables.module.d.ts","/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/angular-datatables.d.ts"],"name":"angular-datatables.d","type":"chunk","dynamicImports":[],"fileName":"index.d.ts","implicitlyLoadedBefore":[],"importedBindings":{"@angular/core":["PipeTransform","TemplateRef","OnDestroy","OnInit","ElementRef","ViewContainerRef","Renderer2","*"],"rxjs":["Subject"],"datatables.net":["Config","ConfigColumns","Api"],"@angular/common":["*"]},"imports":["@angular/core","rxjs","datatables.net","@angular/common"],"modules":{"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/src/models/settings.d.ts":{"code":"interface ADTSettings extends Config {\n columns?: ADTColumns[];\n}\ninterface ADTColumns extends ConfigColumns {\n /** Define the column's unique identifier */\n id?: string;\n /** Set instance of Angular pipe to transform the data of particular column */\n ngPipeInstance?: PipeTransform;\n /** Define the arguments for the tranform method of the pipe, to change its behavior */\n ngPipeArgs?: any[];\n /** Set `TemplateRef` to transform the data of this column */\n ngTemplateRef?: ADTTemplateRef;\n}\ninterface ADTTemplateRef {\n /** `TemplateRef` to work with */\n ref: TemplateRef<any>;\n /** */\n context?: ADTTemplateRefContext;\n}\ninterface ADTTemplateRefContext {\n captureEvents: Function;\n userData?: any;\n}","originalLength":890,"removedExports":[],"renderedExports":["ADTSettings","ADTColumns","ADTTemplateRef","ADTTemplateRefContext"],"renderedLength":745},"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/src/angular-datatables.directive.d.ts":{"code":"/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\n\ndeclare class DataTableDirective implements OnDestroy, OnInit {\n private el;\n private vcr;\n private renderer;\n /**\n * The DataTable option you pass to configure your table.\n */\n dtOptions: ADTSettings;\n /**\n * This trigger is used if one wants to trigger manually the DT rendering\n * Useful when rendering angular rendered DOM\n */\n dtTrigger: Subject<ADTSettings>;\n /**\n * The DataTable instance built by the jQuery library [DataTables](datatables.net).\n *\n * It's possible to execute the [DataTables APIs](https://datatables.net/reference/api/) with\n * this variable.\n */\n dtInstance: Promise<Api>;\n private dt;\n constructor(el: ElementRef, vcr: ViewContainerRef, renderer: Renderer2);\n ngOnInit(): void;\n ngOnDestroy(): void;\n private displayTable;\n private applyNgPipeTransform;\n private applyNgRefTemplate;\n private getColumnUniqueId;\n static ɵfac: i0.ɵɵFactoryDeclaration<DataTableDirective, never>;\n static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableDirective, \"[datatable]\", never, { \"dtOptions\": { \"alias\": \"dtOptions\"; \"required\": false; }; \"dtTrigger\": { \"alias\": \"dtTrigger\"; \"required\": false; }; }, {}, never, never, false, never>;\n}","originalLength":1701,"removedExports":[],"renderedExports":["DataTableDirective"],"renderedLength":1446},"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/src/angular-datatables.module.d.ts":{"code":"declare class DataTablesModule {\n static ɵfac: i0.ɵɵFactoryDeclaration<DataTablesModule, never>;\n static ɵmod: i0.ɵɵNgModuleDeclaration<DataTablesModule, [typeof DataTableDirective], [typeof i2.CommonModule], [typeof DataTableDirective]>;\n static ɵinj: i0.ɵɵInjectorDeclaration<DataTablesModule>;\n}","originalLength":451,"removedExports":[],"renderedExports":["DataTablesModule"],"renderedLength":307},"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-typings/angular-datatables.d.ts":{"code":null,"originalLength":118,"removedExports":[],"renderedExports":[],"renderedLength":0}},"referencedFiles":[],"code":"import * as i0 from '@angular/core';\nimport { PipeTransform, TemplateRef, OnDestroy, OnInit, ElementRef, ViewContainerRef, Renderer2 } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { Config, ConfigColumns, Api } from 'datatables.net';\nimport * as i2 from '@angular/common';\n\ninterface ADTSettings extends Config {\n columns?: ADTColumns[];\n}\ninterface ADTColumns extends ConfigColumns {\n /** Define the column's unique identifier */\n id?: string;\n /** Set instance of Angular pipe to transform the data of particular column */\n ngPipeInstance?: PipeTransform;\n /** Define the arguments for the tranform method of the pipe, to change its behavior */\n ngPipeArgs?: any[];\n /** Set `TemplateRef` to transform the data of this column */\n ngTemplateRef?: ADTTemplateRef;\n}\ninterface ADTTemplateRef {\n /** `TemplateRef` to work with */\n ref: TemplateRef<any>;\n /** */\n context?: ADTTemplateRefContext;\n}\ninterface ADTTemplateRefContext {\n captureEvents: Function;\n userData?: any;\n}\n\n/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\n\ndeclare class DataTableDirective implements OnDestroy, OnInit {\n private el;\n private vcr;\n private renderer;\n /**\n * The DataTable option you pass to configure your table.\n */\n dtOptions: ADTSettings;\n /**\n * This trigger is used if one wants to trigger manually the DT rendering\n * Useful when rendering angular rendered DOM\n */\n dtTrigger: Subject<ADTSettings>;\n /**\n * The DataTable instance built by the jQuery library [DataTables](datatables.net).\n *\n * It's possible to execute the [DataTables APIs](https://datatables.net/reference/api/) with\n * this variable.\n */\n dtInstance: Promise<Api>;\n private dt;\n constructor(el: ElementRef, vcr: ViewContainerRef, renderer: Renderer2);\n ngOnInit(): void;\n ngOnDestroy(): void;\n private displayTable;\n private applyNgPipeTransform;\n private applyNgRefTemplate;\n private getColumnUniqueId;\n static ɵfac: i0.ɵɵFactoryDeclaration<DataTableDirective, never>;\n static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableDirective, \"[datatable]\", never, { \"dtOptions\": { \"alias\": \"dtOptions\"; \"required\": false; }; \"dtTrigger\": { \"alias\": \"dtTrigger\"; \"required\": false; }; }, {}, never, never, false, never>;\n}\n\ndeclare class DataTablesModule {\n static ɵfac: i0.ɵɵFactoryDeclaration<DataTablesModule, never>;\n static ɵmod: i0.ɵɵNgModuleDeclaration<DataTablesModule, [typeof DataTableDirective], [typeof i2.CommonModule], [typeof DataTableDirective]>;\n static ɵinj: i0.ɵɵInjectorDeclaration<DataTablesModule>;\n}\n\nexport { DataTableDirective, DataTablesModule };\n","map":null,"preliminaryFileName":"index.d.ts","sourcemapFileName":null}],"fesm2022":[{"exports":["DataTableDirective","DataTablesModule"],"facadeModuleId":"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/angular-datatables.js","isDynamicEntry":false,"isEntry":true,"isImplicitEntry":false,"moduleIds":["/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/src/angular-datatables.directive.js","/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/src/angular-datatables.module.js","/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/public_api.js","/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/index.js","/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/angular-datatables.js"],"name":"angular-datatables","type":"chunk","dynamicImports":[],"fileName":"angular-datatables.mjs","implicitlyLoadedBefore":[],"importedBindings":{"@angular/core":["*","Input","Directive","NgModule"],"rxjs":[],"@angular/common":["CommonModule"]},"imports":["@angular/core","rxjs","@angular/common"],"modules":{"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/src/angular-datatables.directive.js":{"code":"/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\nclass DataTableDirective {\n constructor(el, vcr, renderer) {\n this.el = el;\n this.vcr = vcr;\n this.renderer = renderer;\n /**\n * The DataTable option you pass to configure your table.\n */\n this.dtOptions = {};\n }\n ngOnInit() {\n if (this.dtTrigger) {\n this.dtTrigger.subscribe((options) => {\n this.displayTable(options);\n });\n }\n else {\n this.displayTable(null);\n }\n }\n ngOnDestroy() {\n if (this.dtTrigger) {\n this.dtTrigger.unsubscribe();\n }\n if (this.dt) {\n this.dt.destroy(true);\n }\n }\n displayTable(dtOptions) {\n // assign new options if provided\n if (dtOptions) {\n this.dtOptions = dtOptions;\n }\n this.dtInstance = new Promise((resolve, reject) => {\n Promise.resolve(this.dtOptions).then(resolvedDTOptions => {\n // validate object\n const isTableEmpty = Object.keys(resolvedDTOptions).length === 0 && $('tbody tr', this.el.nativeElement).length === 0;\n if (isTableEmpty) {\n reject('Both the table and dtOptions cannot be empty');\n return;\n }\n // Set a column unique\n if (resolvedDTOptions.columns) {\n resolvedDTOptions.columns.forEach(col => {\n if ((col.id ?? '').trim() === '') {\n col.id = this.getColumnUniqueId();\n }\n });\n }\n // Using setTimeout as a \"hack\" to be \"part\" of NgZone\n setTimeout(() => {\n // Assign DT properties here\n let options = {\n rowCallback: (row, data, index) => {\n if (resolvedDTOptions.columns) {\n const columns = resolvedDTOptions.columns;\n this.applyNgPipeTransform(row, columns);\n this.applyNgRefTemplate(row, columns, data);\n }\n // run user specified row callback if provided.\n if (resolvedDTOptions.rowCallback) {\n resolvedDTOptions.rowCallback(row, data, index);\n }\n }\n };\n // merge user's config with ours\n options = Object.assign({}, resolvedDTOptions, options);\n this.dt = $(this.el.nativeElement).DataTable(options);\n resolve(this.dt);\n });\n });\n });\n }\n applyNgPipeTransform(row, columns) {\n // Filter columns with pipe declared\n const colsWithPipe = columns.filter(x => x.ngPipeInstance && !x.ngTemplateRef);\n colsWithPipe.forEach(el => {\n const pipe = el.ngPipeInstance;\n const pipeArgs = el.ngPipeArgs || [];\n // find index of column using `data` attr\n const i = columns.filter(c => c.visible !== false).findIndex(e => e.id === el.id);\n // get <td> element which holds data using index\n const rowFromCol = row.childNodes.item(i);\n // Transform data with Pipe and PipeArgs\n const rowVal = $(rowFromCol).text();\n const rowValAfter = pipe.transform(rowVal, ...pipeArgs);\n // Apply transformed string to <td>\n $(rowFromCol).text(rowValAfter);\n });\n }\n applyNgRefTemplate(row, columns, data) {\n // Filter columns using `ngTemplateRef`\n const colsWithTemplate = columns.filter(x => x.ngTemplateRef && !x.ngPipeInstance);\n colsWithTemplate.forEach(el => {\n const { ref, context } = el.ngTemplateRef;\n // get <td> element which holds data using index\n const i = columns.filter(c => c.visible !== false).findIndex(e => e.id === el.id);\n const cellFromIndex = row.childNodes.item(i);\n // reset cell before applying transform\n $(cellFromIndex).html('');\n // render onto DOM\n // finalize context to be sent to user\n const _context = Object.assign({}, context, context?.userData, {\n adtData: data\n });\n const instance = this.vcr.createEmbeddedView(ref, _context);\n this.renderer.appendChild(cellFromIndex, instance.rootNodes[0]);\n });\n }\n getColumnUniqueId() {\n let result = '';\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n for (let i = 0; i < 6; i++) {\n const randomIndex = Math.floor(Math.random() * characters.length);\n result += characters.charAt(randomIndex);\n }\n return result.trim();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTableDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"20.1.0\", type: DataTableDirective, isStandalone: false, selector: \"[datatable]\", inputs: { dtOptions: \"dtOptions\", dtTrigger: \"dtTrigger\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTableDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[datatable]',\n standalone: false\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.Renderer2 }], propDecorators: { dtOptions: [{\n type: Input\n }], dtTrigger: [{\n type: Input\n }] } });","originalLength":6439,"removedExports":[],"renderedExports":["DataTableDirective"],"renderedLength":6215},"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/src/angular-datatables.module.js":{"code":"/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\nclass DataTablesModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, declarations: [DataTableDirective], imports: [CommonModule], exports: [DataTableDirective] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, imports: [CommonModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n declarations: [DataTableDirective],\n exports: [DataTableDirective]\n }]\n }] });","originalLength":1410,"removedExports":[],"renderedExports":["DataTablesModule"],"renderedLength":1153},"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/public_api.js":{"code":"/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\n/**\n * @module\n * @description\n * Entry point from which you should import all public library APIs.\n */","originalLength":487,"removedExports":[],"renderedExports":[],"renderedLength":307},"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/index.js":{"code":"/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */","originalLength":267,"removedExports":[],"renderedExports":[],"renderedLength":203},"/Applications/XAMPP/xamppfiles/htdocs/bungemtandao/angular-datatables/dist/lib/tmp-esm2022/angular-datatables.js":{"code":"/**\n * Generated bundle index. Do not edit.\n */","originalLength":119,"removedExports":[],"renderedExports":[],"renderedLength":47}},"referencedFiles":[],"code":"import * as i0 from '@angular/core';\nimport { Input, Directive, NgModule } from '@angular/core';\nimport 'rxjs';\nimport { CommonModule } from '@angular/common';\n\n/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\nclass DataTableDirective {\n constructor(el, vcr, renderer) {\n this.el = el;\n this.vcr = vcr;\n this.renderer = renderer;\n /**\n * The DataTable option you pass to configure your table.\n */\n this.dtOptions = {};\n }\n ngOnInit() {\n if (this.dtTrigger) {\n this.dtTrigger.subscribe((options) => {\n this.displayTable(options);\n });\n }\n else {\n this.displayTable(null);\n }\n }\n ngOnDestroy() {\n if (this.dtTrigger) {\n this.dtTrigger.unsubscribe();\n }\n if (this.dt) {\n this.dt.destroy(true);\n }\n }\n displayTable(dtOptions) {\n // assign new options if provided\n if (dtOptions) {\n this.dtOptions = dtOptions;\n }\n this.dtInstance = new Promise((resolve, reject) => {\n Promise.resolve(this.dtOptions).then(resolvedDTOptions => {\n // validate object\n const isTableEmpty = Object.keys(resolvedDTOptions).length === 0 && $('tbody tr', this.el.nativeElement).length === 0;\n if (isTableEmpty) {\n reject('Both the table and dtOptions cannot be empty');\n return;\n }\n // Set a column unique\n if (resolvedDTOptions.columns) {\n resolvedDTOptions.columns.forEach(col => {\n if ((col.id ?? '').trim() === '') {\n col.id = this.getColumnUniqueId();\n }\n });\n }\n // Using setTimeout as a \"hack\" to be \"part\" of NgZone\n setTimeout(() => {\n // Assign DT properties here\n let options = {\n rowCallback: (row, data, index) => {\n if (resolvedDTOptions.columns) {\n const columns = resolvedDTOptions.columns;\n this.applyNgPipeTransform(row, columns);\n this.applyNgRefTemplate(row, columns, data);\n }\n // run user specified row callback if provided.\n if (resolvedDTOptions.rowCallback) {\n resolvedDTOptions.rowCallback(row, data, index);\n }\n }\n };\n // merge user's config with ours\n options = Object.assign({}, resolvedDTOptions, options);\n this.dt = $(this.el.nativeElement).DataTable(options);\n resolve(this.dt);\n });\n });\n });\n }\n applyNgPipeTransform(row, columns) {\n // Filter columns with pipe declared\n const colsWithPipe = columns.filter(x => x.ngPipeInstance && !x.ngTemplateRef);\n colsWithPipe.forEach(el => {\n const pipe = el.ngPipeInstance;\n const pipeArgs = el.ngPipeArgs || [];\n // find index of column using `data` attr\n const i = columns.filter(c => c.visible !== false).findIndex(e => e.id === el.id);\n // get <td> element which holds data using index\n const rowFromCol = row.childNodes.item(i);\n // Transform data with Pipe and PipeArgs\n const rowVal = $(rowFromCol).text();\n const rowValAfter = pipe.transform(rowVal, ...pipeArgs);\n // Apply transformed string to <td>\n $(rowFromCol).text(rowValAfter);\n });\n }\n applyNgRefTemplate(row, columns, data) {\n // Filter columns using `ngTemplateRef`\n const colsWithTemplate = columns.filter(x => x.ngTemplateRef && !x.ngPipeInstance);\n colsWithTemplate.forEach(el => {\n const { ref, context } = el.ngTemplateRef;\n // get <td> element which holds data using index\n const i = columns.filter(c => c.visible !== false).findIndex(e => e.id === el.id);\n const cellFromIndex = row.childNodes.item(i);\n // reset cell before applying transform\n $(cellFromIndex).html('');\n // render onto DOM\n // finalize context to be sent to user\n const _context = Object.assign({}, context, context?.userData, {\n adtData: data\n });\n const instance = this.vcr.createEmbeddedView(ref, _context);\n this.renderer.appendChild(cellFromIndex, instance.rootNodes[0]);\n });\n }\n getColumnUniqueId() {\n let result = '';\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n for (let i = 0; i < 6; i++) {\n const randomIndex = Math.floor(Math.random() * characters.length);\n result += characters.charAt(randomIndex);\n }\n return result.trim();\n }\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTableDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }\n static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: \"14.0.0\", version: \"20.1.0\", type: DataTableDirective, isStandalone: false, selector: \"[datatable]\", inputs: { dtOptions: \"dtOptions\", dtTrigger: \"dtTrigger\" }, ngImport: i0 }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTableDirective, decorators: [{\n type: Directive,\n args: [{\n selector: '[datatable]',\n standalone: false\n }]\n }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.Renderer2 }], propDecorators: { dtOptions: [{\n type: Input\n }], dtTrigger: [{\n type: Input\n }] } });\n\n/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\nclass DataTablesModule {\n static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }\n static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: \"14.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, declarations: [DataTableDirective], imports: [CommonModule], exports: [DataTableDirective] }); }\n static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, imports: [CommonModule] }); }\n}\ni0.ɵɵngDeclareClassMetadata({ minVersion: \"12.0.0\", version: \"20.1.0\", ngImport: i0, type: DataTablesModule, decorators: [{\n type: NgModule,\n args: [{\n imports: [CommonModule],\n declarations: [DataTableDirective],\n exports: [DataTableDirective]\n }]\n }] });\n\n/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\n/**\n * @module\n * @description\n * Entry point from which you should import all public library APIs.\n */\n\n/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DataTableDirective, DataTablesModule };\n//# sourceMappingURL=angular-datatables.mjs.map\n","map":null,"preliminaryFileName":"angular-datatables.mjs","sourcemapFileName":"angular-datatables.mjs.map"},{"fileName":"angular-datatables.mjs.map","names":[],"needsCodeReference":false,"originalFileName":null,"originalFileNames":[],"source":"{\"version\":3,\"file\":\"angular-datatables.mjs\",\"sources\":[\"../../../lib/src/angular-datatables.directive.ts\",\"../../../lib/src/angular-datatables.module.ts\",\"../../../lib/public_api.ts\",\"../../../lib/index.ts\",\"../../../lib/angular-datatables.ts\"],\"sourcesContent\":[\"/**\\n * @license\\n *\\n * Use of this source code is governed by an MIT-style license that can be\\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\\n */\\n\\nimport { Directive, ElementRef, Input, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';\\nimport { Subject } from 'rxjs';\\nimport { ADTSettings, ADTColumns } from './models/settings';\\nimport { Api } from 'datatables.net';\\n\\n@Directive({\\n selector: '[datatable]',\\n standalone: false\\n})\\nexport class DataTableDirective implements OnDestroy, OnInit {\\n /**\\n * The DataTable option you pass to configure your table.\\n */\\n @Input()\\n dtOptions: ADTSettings = {};\\n\\n /**\\n * This trigger is used if one wants to trigger manually the DT rendering\\n * Useful when rendering angular rendered DOM\\n */\\n @Input()\\n dtTrigger!: Subject<ADTSettings>;\\n\\n /**\\n * The DataTable instance built by the jQuery library [DataTables](datatables.net).\\n *\\n * It's possible to execute the [DataTables APIs](https://datatables.net/reference/api/) with\\n * this variable.\\n */\\n dtInstance!: Promise<Api>;\\n\\n // Only used for destroying the table when destroying this directive\\n private dt!: Api;\\n\\n constructor(\\n private el: ElementRef,\\n private vcr: ViewContainerRef,\\n private renderer: Renderer2\\n ) { }\\n\\n ngOnInit(): void {\\n if (this.dtTrigger) {\\n this.dtTrigger.subscribe((options) => {\\n this.displayTable(options);\\n });\\n } else {\\n this.displayTable(null);\\n }\\n }\\n\\n ngOnDestroy(): void {\\n if (this.dtTrigger) {\\n this.dtTrigger.unsubscribe();\\n }\\n if (this.dt) {\\n this.dt.destroy(true);\\n }\\n }\\n\\n private displayTable(dtOptions: ADTSettings | null): void {\\n // assign new options if provided\\n if (dtOptions) {\\n this.dtOptions = dtOptions;\\n }\\n this.dtInstance = new Promise((resolve, reject) => {\\n Promise.resolve(this.dtOptions).then(resolvedDTOptions => {\\n // validate object\\n const isTableEmpty = Object.keys(resolvedDTOptions).length === 0 && $('tbody tr', this.el.nativeElement).length === 0;\\n if (isTableEmpty) {\\n reject('Both the table and dtOptions cannot be empty');\\n return;\\n }\\n\\n // Set a column unique\\n if (resolvedDTOptions.columns) {\\n resolvedDTOptions.columns.forEach(col => {\\n if ((col.id ?? '').trim() === '') {\\n col.id = this.getColumnUniqueId();\\n }\\n });\\n }\\n\\n // Using setTimeout as a \\\"hack\\\" to be \\\"part\\\" of NgZone\\n setTimeout(() => {\\n // Assign DT properties here\\n let options: ADTSettings = {\\n rowCallback: (row, data, index) => {\\n if (resolvedDTOptions.columns) {\\n const columns = resolvedDTOptions.columns;\\n this.applyNgPipeTransform(row, columns);\\n this.applyNgRefTemplate(row, columns, data);\\n }\\n\\n // run user specified row callback if provided.\\n if (resolvedDTOptions.rowCallback) {\\n resolvedDTOptions.rowCallback(row, data, index);\\n }\\n }\\n };\\n // merge user's config with ours\\n options = Object.assign({}, resolvedDTOptions, options);\\n this.dt = $(this.el.nativeElement).DataTable(options);\\n resolve(this.dt);\\n });\\n });\\n });\\n }\\n\\n private applyNgPipeTransform(row: Node, columns: ADTColumns[]): void {\\n // Filter columns with pipe declared\\n const colsWithPipe = columns.filter(x => x.ngPipeInstance && !x.ngTemplateRef);\\n colsWithPipe.forEach(el => {\\n const pipe = el.ngPipeInstance!;\\n const pipeArgs = el.ngPipeArgs || [];\\n // find index of column using `data` attr\\n const i = columns.filter(c => c.visible !== false).findIndex(e => e.id === el.id);\\n // get <td> element which holds data using index\\n const rowFromCol = row.childNodes.item(i);\\n // Transform data with Pipe and PipeArgs\\n const rowVal = $(rowFromCol).text();\\n const rowValAfter = pipe.transform(rowVal, ...pipeArgs);\\n // Apply transformed string to <td>\\n $(rowFromCol).text(rowValAfter);\\n });\\n }\\n\\n private applyNgRefTemplate(row: Node, columns: ADTColumns[], data: Object): void {\\n // Filter columns using `ngTemplateRef`\\n const colsWithTemplate = columns.filter(x => x.ngTemplateRef && !x.ngPipeInstance);\\n colsWithTemplate.forEach(el => {\\n const { ref, context } = el.ngTemplateRef!;\\n // get <td> element which holds data using index\\n const i = columns.filter(c => c.visible !== false).findIndex(e => e.id === el.id);\\n const cellFromIndex = row.childNodes.item(i);\\n // reset cell before applying transform\\n $(cellFromIndex).html('');\\n // render onto DOM\\n // finalize context to be sent to user\\n const _context = Object.assign({}, context, context?.userData, {\\n adtData: data\\n });\\n const instance = this.vcr.createEmbeddedView(ref, _context);\\n this.renderer.appendChild(cellFromIndex, instance.rootNodes[0]);\\n });\\n }\\n\\n private getColumnUniqueId(): string {\\n let result = '';\\n const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\\n\\n for (let i = 0; i < 6; i++) {\\n const randomIndex = Math.floor(Math.random() * characters.length);\\n result += characters.charAt(randomIndex);\\n }\\n\\n return result.trim();\\n }\\n\\n}\\n\",\"/**\\n * @license\\n *\\n * Use of this source code is governed by an MIT-style license that can be\\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\\n */\\n\\nimport { NgModule } from '@angular/core';\\nimport { CommonModule } from '@angular/common';\\nimport { DataTableDirective } from './angular-datatables.directive';\\n\\n@NgModule({\\n imports: [ CommonModule ],\\n declarations: [ DataTableDirective ],\\n exports: [ DataTableDirective ]\\n})\\nexport class DataTablesModule {}\\n\",\"/**\\n * @license\\n *\\n * Use of this source code is governed by an MIT-style license that can be\\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\\n */\\n\\n/**\\n * @module\\n * @description\\n * Entry point from which you should import all public library APIs.\\n */\\nexport { DataTableDirective } from './src/angular-datatables.directive';\\nexport { DataTablesModule } from './src/angular-datatables.module';\\n\",\"/**\\n * @license\\n *\\n * Use of this source code is governed by an MIT-style license that can be\\n * found in the LICENSE file at https://raw.githubusercontent.com/l-lin/angular-datatables/master/LICENSE\\n */\\n\\nexport * from './public_api';\\n\",\"/**\\n * Generated bundle index. Do not edit.\\n */\\n\\nexport * from './index';\\n\"],\"names\":[],\"mappings\":\";;;;;AAAA;;;;;AAKG;MAWU,kBAAkB,CAAA;AAyB7B,IAAA,WAAA,CACU,EAAc,EACd,GAAqB,EACrB,QAAmB,EAAA;QAFnB,IAAA,CAAA,EAAE,GAAF,EAAE;QACF,IAAA,CAAA,GAAG,GAAH,GAAG;QACH,IAAA,CAAA,QAAQ,GAAR,QAAQ;AA3BlB;;AAEG;QAEH,IAAA,CAAA,SAAS,GAAgB,EAAE;;IA0B3B,QAAQ,GAAA;AACN,QAAA,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,OAAO,KAAI;AACnC,gBAAA,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC;AAC5B,aAAC,CAAC;;aACG;AACL,YAAA,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;;;IAI3B,WAAW,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,SAAS,EAAE;AAClB,YAAA,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;;AAE9B,QAAA,IAAI,IAAI,CAAC,EAAE,EAAE;AACX,YAAA,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;;;AAIjB,IAAA,YAAY,CAAC,SAA6B,EAAA;;QAEhD,IAAI,SAAS,EAAE;AACb,YAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;QAE5B,IAAI,CAAC,UAAU,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;AAChD,YAAA,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,iBAAiB,IAAG;;gBAEvD,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,MAAM,KAAK,CAAC;gBACrH,IAAI,YAAY,EAAE;oBAChB,MAAM,CAAC,8CAA8C,CAAC;oBACtD;;;AAIF,gBAAA,IAAI,iBAAiB,CAAC,OAAO,EAAE;AAC7B,oBAAA,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,IAAG;AACtC,wBAAA,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;AAChC,4BAAA,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,iBAAiB,EAAE;;AAErC,qBAAC,CAAC;;;gBAIJ,UAAU,CAAC,MAAK;;AAEd,oBAAA,IAAI,OAAO,GAAgB;wBACzB,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,KAAI;AAChC,4BAAA,IAAI,iBAAiB,CAAC,OAAO,EAAE;AAC7B,gCAAA,MAAM,OAAO,GAAG,iBAAiB,CAAC,OAAO;AACzC,gCAAA,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,OAAO,CAAC;gCACvC,IAAI,CAAC,kBAAkB,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC;;;AAI7C,4BAAA,IAAI,iBAAiB,CAAC,WAAW,EAAE;gCACjC,iBAAiB,CAAC,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC;;;qBAGpD;;oBAED,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,OAAO,CAAC;AACvD,oBAAA,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC;AACrD,oBAAA,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;AAClB,iBAAC,CAAC;AACJ,aAAC,CAAC;AACJ,SAAC,CAAC;;IAGI,oBAAoB,CAAC,GAAS,EAAE,OAAqB,EAAA;;AAE3D,QAAA,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC;AAC9E,QAAA,YAAY,CAAC,OAAO,CAAC,EAAE,IAAG;AACxB,YAAA,MAAM,IAAI,GAAG,EAAE,CAAC,cAAe;AAC/B,YAAA,MAAM,QAAQ,GAAG,EAAE,CAAC,UAAU,IAAI,EAAE;;AAEpC,YAAA,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;;YAEjF,MAAM,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;;YAEzC,MAAM,MAAM,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,EAAE;YACnC,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,GAAG,QAAQ,CAAC;;YAEvD,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;AACjC,SAAC,CAAC;;AAGI,IAAA,kBAAkB,CAAC,GAAS,EAAE,OAAqB,EAAE,IAAY,EAAA;;AAEvE,QAAA,MAAM,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC;AAClF,QAAA,gBAAgB,CAAC,OAAO,CAAC,EAAE,IAAG;YAC5B,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,aAAc;;AAE1C,YAAA,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;YACjF,MAAM,aAAa,GAAG,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;;YAE5C,CAAC,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;;;AAGzB,YAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE;AAC7D,gBAAA,OAAO,EAAE;AACV,aAAA,CAAC;AACF,YAAA,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,EAAE,QAAQ,CAAC;AAC3D,YAAA,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,aAAa,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACjE,SAAC,CAAC;;IAGI,iBAAiB,GAAA;QACvB,IAAI,MAAM,GAAG,EAAE;QACf,MAAM,UAAU,GAAG,gEAAgE;AAEnF,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC1B,YAAA,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC;AACjE,YAAA,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;;AAG1C,QAAA,OAAO,MAAM,CAAC,IAAI,EAAE;;8GAlJX,kBAAkB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,SAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAlB,kBAAkB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,SAAA,EAAA,WAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE;AACf,iBAAA;sIAMC,SAAS,EAAA,CAAA;sBADR;gBAQD,SAAS,EAAA,CAAA;sBADR;;;AC3BH;;;;;AAKG;MAWU,gBAAgB,CAAA;8GAAhB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,CAHX,kBAAkB,CAAA,EAAA,OAAA,EAAA,CADvB,YAAY,aAEZ,kBAAkB,CAAA,EAAA,CAAA,CAAA;AAElB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAJhB,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAIZ,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAL5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAE,YAAY,CAAE;oBACzB,YAAY,EAAE,CAAE,kBAAkB,CAAE;oBACpC,OAAO,EAAE,CAAE,kBAAkB;AAC9B,iBAAA;;;ACfD;;;;;AAKG;AAEH;;;;AAIG;;ACXH;;;;;AAKG;;ACLH;;AAEG;;;;\"}","type":"asset"}]}
|