@anoki/fse-ui 2.2.0-RC2 → 2.2.0-RC3
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/index.cjs146.js +1 -1
- package/dist/index.cjs146.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs362.js +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/{index.cjs455.js → index.cjs448.js} +1 -1
- package/dist/index.cjs448.js.map +1 -0
- package/dist/{index.cjs456.js → index.cjs449.js} +1 -1
- package/dist/{index.cjs456.js.map → index.cjs449.js.map} +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/{index.cjs465.js → index.cjs471.js} +2 -2
- package/dist/{index.cjs465.js.map → index.cjs471.js.map} +1 -1
- package/dist/index.cjs472.js +2 -0
- package/dist/index.cjs472.js.map +1 -0
- package/dist/index.cjs473.js +2 -0
- package/dist/index.cjs473.js.map +1 -0
- package/dist/index.cjs474.js +2 -0
- package/dist/index.cjs474.js.map +1 -0
- package/dist/index.cjs475.js +2 -0
- package/dist/index.cjs475.js.map +1 -0
- package/dist/index.cjs476.js +2 -0
- package/dist/index.cjs476.js.map +1 -0
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs482.js +2 -0
- package/dist/index.cjs482.js.map +1 -0
- package/dist/{index.cjs493.js → index.cjs484.js} +2 -2
- package/dist/{index.cjs493.js.map → index.cjs484.js.map} +1 -1
- package/dist/{index.cjs494.js → index.cjs485.js} +2 -2
- package/dist/{index.cjs494.js.map → index.cjs485.js.map} +1 -1
- package/dist/{index.cjs495.js → index.cjs486.js} +2 -2
- package/dist/{index.cjs495.js.map → index.cjs486.js.map} +1 -1
- package/dist/index.cjs500.js +1 -1
- package/dist/index.cjs500.js.map +1 -1
- package/dist/index.cjs503.js +2 -0
- package/dist/index.cjs503.js.map +1 -0
- package/dist/index.cjs542.js +2 -0
- package/dist/index.cjs542.js.map +1 -0
- package/dist/index.cjs545.js +27 -2
- package/dist/index.cjs545.js.map +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs546.js.map +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs547.js.map +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs548.js.map +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs549.js.map +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs550.js.map +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs551.js.map +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs552.js.map +1 -1
- package/dist/index.cjs553.js +1 -1
- package/dist/index.cjs553.js.map +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs554.js.map +1 -1
- package/dist/index.cjs555.js +1 -1
- package/dist/index.cjs555.js.map +1 -1
- package/dist/index.cjs556.js +1 -1
- package/dist/index.cjs556.js.map +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/index.cjs557.js.map +1 -1
- package/dist/index.cjs558.js +1 -27
- package/dist/index.cjs558.js.map +1 -1
- package/dist/index.cjs559.js +1 -1
- package/dist/index.cjs559.js.map +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/index.cjs560.js.map +1 -1
- package/dist/index.cjs598.js +1 -1
- package/dist/index.cjs599.js +1 -1
- package/dist/index.cjs600.js +1 -1
- package/dist/index.cjs600.js.map +1 -1
- package/dist/index.cjs601.js +2 -1
- package/dist/index.cjs601.js.map +1 -1
- package/dist/index.cjs602.js +8 -1
- package/dist/index.cjs602.js.map +1 -1
- package/dist/index.cjs603.js +1 -1
- package/dist/index.cjs603.js.map +1 -1
- package/dist/index.cjs604.js +1 -1
- package/dist/index.cjs604.js.map +1 -1
- package/dist/index.cjs605.js +6 -1
- package/dist/index.cjs605.js.map +1 -1
- package/dist/index.cjs606.js +1 -1
- package/dist/index.cjs606.js.map +1 -1
- package/dist/index.cjs607.js +2 -1
- package/dist/index.cjs607.js.map +1 -1
- package/dist/index.cjs608.js +3 -1
- package/dist/index.cjs608.js.map +1 -1
- package/dist/index.cjs609.js +1 -1
- package/dist/index.cjs609.js.map +1 -1
- package/dist/index.cjs610.js +1 -1
- package/dist/index.cjs610.js.map +1 -1
- package/dist/index.cjs611.js +1 -1
- package/dist/index.cjs611.js.map +1 -1
- package/dist/index.cjs612.js +1 -1
- package/dist/index.cjs612.js.map +1 -1
- package/dist/index.cjs613.js +1 -1
- package/dist/index.cjs613.js.map +1 -1
- package/dist/index.cjs614.js +1 -1
- package/dist/index.cjs614.js.map +1 -1
- package/dist/index.cjs615.js +1 -1
- package/dist/index.cjs615.js.map +1 -1
- package/dist/index.cjs616.js +1 -1
- package/dist/index.cjs616.js.map +1 -1
- package/dist/index.cjs617.js +1 -1
- package/dist/index.cjs617.js.map +1 -1
- package/dist/index.cjs618.js +1 -1
- package/dist/index.cjs618.js.map +1 -1
- package/dist/index.cjs619.js +1 -1
- package/dist/index.cjs619.js.map +1 -1
- package/dist/index.cjs620.js +1 -1
- package/dist/index.cjs620.js.map +1 -1
- package/dist/index.cjs621.js +1 -1
- package/dist/index.cjs621.js.map +1 -1
- package/dist/index.cjs622.js +1 -1
- package/dist/index.cjs622.js.map +1 -1
- package/dist/index.cjs623.js +1 -1
- package/dist/index.cjs623.js.map +1 -1
- package/dist/index.cjs624.js +1 -1
- package/dist/index.cjs624.js.map +1 -1
- package/dist/index.cjs625.js +1 -1
- package/dist/index.cjs625.js.map +1 -1
- package/dist/index.cjs626.js +1 -1
- package/dist/index.cjs626.js.map +1 -1
- package/dist/index.cjs627.js +1 -1
- package/dist/index.cjs627.js.map +1 -1
- package/dist/index.cjs628.js +1 -1
- package/dist/index.cjs628.js.map +1 -1
- package/dist/index.cjs629.js +1 -1
- package/dist/index.cjs629.js.map +1 -1
- package/dist/index.cjs630.js +1 -1
- package/dist/index.cjs630.js.map +1 -1
- package/dist/index.cjs631.js +1 -1
- package/dist/index.cjs631.js.map +1 -1
- package/dist/index.cjs632.js +1 -1
- package/dist/index.cjs632.js.map +1 -1
- package/dist/index.cjs633.js +1 -4
- package/dist/index.cjs633.js.map +1 -1
- package/dist/index.cjs634.js +1 -1
- package/dist/index.cjs634.js.map +1 -1
- package/dist/index.cjs635.js +1 -5
- package/dist/index.cjs635.js.map +1 -1
- package/dist/index.cjs636.js +1 -1
- package/dist/index.cjs636.js.map +1 -1
- package/dist/index.cjs637.js +1 -1
- package/dist/index.cjs637.js.map +1 -1
- package/dist/index.cjs638.js +1 -1
- package/dist/index.cjs638.js.map +1 -1
- package/dist/index.cjs639.js +1 -1
- package/dist/index.cjs639.js.map +1 -1
- package/dist/index.cjs640.js +1 -1
- package/dist/index.cjs640.js.map +1 -1
- package/dist/index.cjs641.js +1 -1
- package/dist/index.cjs641.js.map +1 -1
- package/dist/index.cjs642.js +1 -1
- package/dist/index.cjs642.js.map +1 -1
- package/dist/index.cjs643.js +1 -1
- package/dist/index.cjs643.js.map +1 -1
- package/dist/index.cjs644.js +1 -1
- package/dist/index.cjs644.js.map +1 -1
- package/dist/index.cjs645.js +1 -1
- package/dist/index.cjs645.js.map +1 -1
- package/dist/index.cjs646.js +1 -1
- package/dist/index.cjs646.js.map +1 -1
- package/dist/index.cjs647.js +1 -1
- package/dist/index.cjs647.js.map +1 -1
- package/dist/index.cjs648.js +1 -1
- package/dist/index.cjs648.js.map +1 -1
- package/dist/index.cjs649.js +1 -38
- package/dist/index.cjs649.js.map +1 -1
- package/dist/index.cjs650.js +7 -1
- package/dist/index.cjs650.js.map +1 -1
- package/dist/index.cjs651.js +1 -1
- package/dist/index.cjs651.js.map +1 -1
- package/dist/index.cjs652.js +1 -1
- package/dist/index.cjs652.js.map +1 -1
- package/dist/index.cjs653.js +1 -1
- package/dist/index.cjs653.js.map +1 -1
- package/dist/index.cjs654.js +2 -1
- package/dist/index.cjs654.js.map +1 -1
- package/dist/index.cjs655.js +1 -1
- package/dist/index.cjs655.js.map +1 -1
- package/dist/index.cjs656.js +2 -1
- package/dist/index.cjs656.js.map +1 -1
- package/dist/index.cjs657.js +3 -1
- package/dist/index.cjs657.js.map +1 -1
- package/dist/index.cjs658.js +4 -1
- package/dist/index.cjs658.js.map +1 -1
- package/dist/index.cjs659.js +1 -1
- package/dist/index.cjs659.js.map +1 -1
- package/dist/index.cjs660.js +1 -1
- package/dist/index.cjs660.js.map +1 -1
- package/dist/index.cjs661.js +1 -1
- package/dist/index.cjs661.js.map +1 -1
- package/dist/index.cjs662.js +1 -1
- package/dist/index.cjs662.js.map +1 -1
- package/dist/index.cjs663.js +1 -1
- package/dist/index.cjs663.js.map +1 -1
- package/dist/index.cjs664.js +1 -1
- package/dist/index.cjs664.js.map +1 -1
- package/dist/index.cjs665.js +2 -0
- package/dist/index.cjs665.js.map +1 -0
- package/dist/index.cjs666.js +2 -0
- package/dist/index.cjs666.js.map +1 -0
- package/dist/index.cjs667.js +2 -0
- package/dist/index.cjs667.js.map +1 -0
- package/dist/index.cjs668.js +5 -0
- package/dist/index.cjs668.js.map +1 -0
- package/dist/index.cjs669.js +2 -0
- package/dist/index.cjs669.js.map +1 -0
- package/dist/index.cjs670.js +2 -0
- package/dist/index.cjs670.js.map +1 -0
- package/dist/index.cjs671.js +2 -0
- package/dist/index.cjs671.js.map +1 -0
- package/dist/index.cjs672.js +2 -0
- package/dist/index.cjs672.js.map +1 -0
- package/dist/index.cjs673.js +2 -0
- package/dist/index.cjs673.js.map +1 -0
- package/dist/index.cjs674.js +2 -0
- package/dist/index.cjs674.js.map +1 -0
- package/dist/index.cjs675.js +2 -0
- package/dist/index.cjs675.js.map +1 -0
- package/dist/index.cjs676.js +2 -0
- package/dist/index.cjs676.js.map +1 -0
- package/dist/index.cjs677.js +3 -0
- package/dist/index.cjs677.js.map +1 -0
- package/dist/index.cjs678.js +2 -0
- package/dist/index.cjs678.js.map +1 -0
- package/dist/index.cjs679.js +2 -0
- package/dist/index.cjs679.js.map +1 -0
- package/dist/index.cjs680.js +2 -0
- package/dist/index.cjs680.js.map +1 -0
- package/dist/index.cjs681.js +2 -0
- package/dist/index.cjs681.js.map +1 -0
- package/dist/index.cjs682.js +2 -0
- package/dist/index.cjs682.js.map +1 -0
- package/dist/index.cjs683.js +2 -0
- package/dist/index.cjs683.js.map +1 -0
- package/dist/index.cjs684.js +2 -0
- package/dist/index.cjs684.js.map +1 -0
- package/dist/index.cjs685.js +2 -0
- package/dist/index.cjs685.js.map +1 -0
- package/dist/index.cjs686.js +2 -0
- package/dist/index.cjs686.js.map +1 -0
- package/dist/index.cjs687.js +2 -0
- package/dist/index.cjs687.js.map +1 -0
- package/dist/index.cjs688.js +2 -0
- package/dist/index.cjs688.js.map +1 -0
- package/dist/index.cjs689.js +6 -0
- package/dist/index.cjs689.js.map +1 -0
- package/dist/index.cjs690.js +2 -0
- package/dist/index.cjs690.js.map +1 -0
- package/dist/index.cjs691.js +13 -0
- package/dist/index.cjs691.js.map +1 -0
- package/dist/index.cjs692.js +2 -0
- package/dist/index.cjs692.js.map +1 -0
- package/dist/index.cjs693.js +2 -0
- package/dist/index.cjs693.js.map +1 -0
- package/dist/index.cjs694.js +6 -0
- package/dist/index.cjs694.js.map +1 -0
- package/dist/index.cjs695.js +2 -0
- package/dist/index.cjs695.js.map +1 -0
- package/dist/index.cjs696.js +2 -0
- package/dist/index.cjs696.js.map +1 -0
- package/dist/index.cjs697.js +2 -0
- package/dist/index.cjs697.js.map +1 -0
- package/dist/index.cjs698.js +2 -0
- package/dist/index.cjs698.js.map +1 -0
- package/dist/index.cjs699.js +2 -0
- package/dist/index.cjs699.js.map +1 -0
- package/dist/index.cjs700.js +2 -0
- package/dist/index.cjs700.js.map +1 -0
- package/dist/index.cjs701.js +2 -0
- package/dist/index.cjs701.js.map +1 -0
- package/dist/index.cjs702.js +2 -0
- package/dist/index.cjs702.js.map +1 -0
- package/dist/index.cjs703.js +2 -0
- package/dist/index.cjs703.js.map +1 -0
- package/dist/index.cjs704.js +2 -0
- package/dist/index.cjs704.js.map +1 -0
- package/dist/index.cjs705.js +2 -0
- package/dist/index.cjs705.js.map +1 -0
- package/dist/index.cjs706.js +2 -0
- package/dist/index.cjs706.js.map +1 -0
- package/dist/index.cjs707.js +2 -0
- package/dist/index.cjs707.js.map +1 -0
- package/dist/index.cjs708.js +39 -0
- package/dist/index.cjs708.js.map +1 -0
- package/dist/index.cjs709.js +2 -0
- package/dist/index.cjs709.js.map +1 -0
- package/dist/index.cjs710.js +2 -0
- package/dist/index.cjs710.js.map +1 -0
- package/dist/index.cjs711.js +2 -0
- package/dist/index.cjs711.js.map +1 -0
- package/dist/index.cjs712.js +2 -0
- package/dist/index.cjs712.js.map +1 -0
- package/dist/index.cjs713.js +2 -0
- package/dist/index.cjs713.js.map +1 -0
- package/dist/index.cjs714.js +2 -0
- package/dist/index.cjs714.js.map +1 -0
- package/dist/index.cjs715.js +2 -0
- package/dist/index.cjs715.js.map +1 -0
- package/dist/index.cjs716.js +2 -0
- package/dist/index.cjs716.js.map +1 -0
- package/dist/index.cjs717.js +2 -0
- package/dist/index.cjs717.js.map +1 -0
- package/dist/index.cjs718.js +2 -0
- package/dist/index.cjs718.js.map +1 -0
- package/dist/index.cjs719.js +2 -0
- package/dist/index.cjs719.js.map +1 -0
- package/dist/index.cjs720.js +2 -0
- package/dist/index.cjs720.js.map +1 -0
- package/dist/index.cjs721.js +2 -0
- package/dist/index.cjs721.js.map +1 -0
- package/dist/index.cjs722.js +2 -0
- package/dist/index.cjs722.js.map +1 -0
- package/dist/index.cjs723.js +2 -0
- package/dist/index.cjs723.js.map +1 -0
- package/dist/index.cjs724.js +2 -0
- package/dist/index.cjs724.js.map +1 -0
- package/dist/index.cjs725.js +2 -0
- package/dist/index.cjs725.js.map +1 -0
- package/dist/index.cjs726.js +2 -0
- package/dist/index.cjs726.js.map +1 -0
- package/dist/index.cjs727.js +2 -0
- package/dist/index.cjs727.js.map +1 -0
- package/dist/index.cjs728.js +2 -0
- package/dist/index.cjs728.js.map +1 -0
- package/dist/index.cjs729.js +2 -0
- package/dist/index.cjs729.js.map +1 -0
- package/dist/index.cjs730.js +2 -0
- package/dist/index.cjs730.js.map +1 -0
- package/dist/index.cjs731.js +2 -0
- package/dist/index.cjs731.js.map +1 -0
- package/dist/index.cjs732.js +2 -0
- package/dist/index.cjs732.js.map +1 -0
- package/dist/index.cjs733.js +2 -0
- package/dist/index.cjs733.js.map +1 -0
- package/dist/index.cjs734.js +2 -0
- package/dist/index.cjs734.js.map +1 -0
- package/dist/index.cjs735.js +2 -0
- package/dist/index.cjs735.js.map +1 -0
- package/dist/index.cjs736.js +2 -0
- package/dist/index.cjs736.js.map +1 -0
- package/dist/index.cjs737.js +2 -0
- package/dist/index.cjs737.js.map +1 -0
- package/dist/index.cjs738.js +2 -0
- package/dist/index.cjs738.js.map +1 -0
- package/dist/index.cjs739.js +2 -0
- package/dist/index.cjs739.js.map +1 -0
- package/dist/index.cjs740.js +2 -0
- package/dist/index.cjs740.js.map +1 -0
- package/dist/index.cjs741.js +2 -0
- package/dist/index.cjs741.js.map +1 -0
- package/dist/index.cjs742.js +2 -0
- package/dist/index.cjs742.js.map +1 -0
- package/dist/index.cjs743.js +2 -0
- package/dist/index.cjs743.js.map +1 -0
- package/dist/index.cjs744.js +2 -0
- package/dist/index.cjs744.js.map +1 -0
- package/dist/index.cjs745.js +2 -0
- package/dist/index.cjs745.js.map +1 -0
- package/dist/index.cjs746.js +2 -0
- package/dist/index.cjs746.js.map +1 -0
- package/dist/index.cjs747.js +2 -0
- package/dist/index.cjs747.js.map +1 -0
- package/dist/index.cjs748.js +2 -0
- package/dist/index.cjs748.js.map +1 -0
- package/dist/index.cjs749.js +2 -0
- package/dist/index.cjs749.js.map +1 -0
- package/dist/index.cjs750.js +2 -0
- package/dist/index.cjs750.js.map +1 -0
- package/dist/index.cjs751.js +2 -0
- package/dist/index.cjs751.js.map +1 -0
- package/dist/index.cjs752.js +2 -0
- package/dist/index.cjs752.js.map +1 -0
- package/dist/index.cjs753.js +2 -0
- package/dist/index.cjs753.js.map +1 -0
- package/dist/index.cjs754.js +2 -0
- package/dist/index.cjs754.js.map +1 -0
- package/dist/index.cjs755.js +2 -0
- package/dist/index.cjs755.js.map +1 -0
- package/dist/index.cjs756.js +2 -0
- package/dist/index.cjs756.js.map +1 -0
- package/dist/index.cjs757.js +2 -0
- package/dist/index.cjs757.js.map +1 -0
- package/dist/index.cjs758.js +2 -0
- package/dist/index.cjs758.js.map +1 -0
- package/dist/index.cjs759.js +2 -0
- package/dist/index.cjs759.js.map +1 -0
- package/dist/index.cjs760.js +2 -0
- package/dist/index.cjs760.js.map +1 -0
- package/dist/index.cjs761.js +2 -0
- package/dist/index.cjs761.js.map +1 -0
- package/dist/index.cjs762.js +2 -0
- package/dist/index.cjs762.js.map +1 -0
- package/dist/index.es146.js +9 -11
- package/dist/index.es146.js.map +1 -1
- package/dist/index.es238.js +1 -1
- package/dist/index.es249.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es252.js +1 -1
- package/dist/index.es263.js +4 -4
- package/dist/index.es268.js +1 -1
- package/dist/index.es272.js +14 -14
- package/dist/index.es297.js +8 -8
- package/dist/index.es310.js +3 -3
- package/dist/index.es311.js +2 -2
- package/dist/index.es312.js +3 -3
- package/dist/index.es353.js +7 -7
- package/dist/index.es362.js +1 -1
- package/dist/index.es381.js +6 -6
- package/dist/index.es382.js +2 -2
- package/dist/index.es405.js +7 -7
- package/dist/index.es410.js +8 -8
- package/dist/index.es419.js +1 -1
- package/dist/index.es427.js +19 -5
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es433.js +3 -3
- package/dist/index.es447.js +20 -14
- package/dist/index.es447.js.map +1 -1
- package/dist/{index.es455.js → index.es448.js} +1 -1
- package/dist/index.es448.js.map +1 -0
- package/dist/{index.es456.js → index.es449.js} +1 -1
- package/dist/{index.es456.js.map → index.es449.js.map} +1 -1
- package/dist/index.es450.js +212 -66
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +72 -25
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +25 -6
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +2 -57
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +14 -20
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es460.js +68 -2
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +26 -10
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +6 -51
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +52 -120
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es466.js +13 -67
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +10 -33
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +50 -13
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +124 -8
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +133 -48
- package/dist/index.es470.js.map +1 -1
- package/dist/{index.es465.js → index.es471.js} +3 -3
- package/dist/{index.es465.js.map → index.es471.js.map} +1 -1
- package/dist/index.es472.js +72 -0
- package/dist/index.es472.js.map +1 -0
- package/dist/index.es473.js +37 -0
- package/dist/index.es473.js.map +1 -0
- package/dist/index.es474.js +18 -0
- package/dist/index.es474.js.map +1 -0
- package/dist/index.es475.js +12 -0
- package/dist/index.es475.js.map +1 -0
- package/dist/index.es476.js +53 -0
- package/dist/index.es476.js.map +1 -0
- package/dist/index.es481.js +5 -24
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es482.js +28 -0
- package/dist/index.es482.js.map +1 -0
- package/dist/{index.es493.js → index.es484.js} +3 -3
- package/dist/{index.es493.js.map → index.es484.js.map} +1 -1
- package/dist/{index.es494.js → index.es485.js} +3 -3
- package/dist/{index.es494.js.map → index.es485.js.map} +1 -1
- package/dist/{index.es495.js → index.es486.js} +2 -2
- package/dist/{index.es495.js.map → index.es486.js.map} +1 -1
- package/dist/index.es500.js +621 -4
- package/dist/index.es500.js.map +1 -1
- package/dist/index.es503.js +8 -0
- package/dist/index.es503.js.map +1 -0
- package/dist/index.es542.js +37 -0
- package/dist/index.es542.js.map +1 -0
- package/dist/index.es545.js +3654 -516
- package/dist/index.es545.js.map +1 -1
- package/dist/index.es546.js +2 -4
- package/dist/index.es546.js.map +1 -1
- package/dist/index.es547.js +4 -11
- package/dist/index.es547.js.map +1 -1
- package/dist/index.es548.js +9 -10
- package/dist/index.es548.js.map +1 -1
- package/dist/index.es549.js +11 -9
- package/dist/index.es549.js.map +1 -1
- package/dist/index.es550.js +5 -184
- package/dist/index.es550.js.map +1 -1
- package/dist/index.es551.js +5 -4
- package/dist/index.es551.js.map +1 -1
- package/dist/index.es552.js +8 -131
- package/dist/index.es552.js.map +1 -1
- package/dist/index.es553.js +180 -42
- package/dist/index.es553.js.map +1 -1
- package/dist/index.es554.js +3 -13
- package/dist/index.es554.js.map +1 -1
- package/dist/index.es555.js +127 -213
- package/dist/index.es555.js.map +1 -1
- package/dist/index.es556.js +2 -183
- package/dist/index.es556.js.map +1 -1
- package/dist/index.es557.js +44 -32
- package/dist/index.es557.js.map +1 -1
- package/dist/index.es558.js +13 -3674
- package/dist/index.es558.js.map +1 -1
- package/dist/index.es559.js +219 -2
- package/dist/index.es559.js.map +1 -1
- package/dist/index.es560.js +183 -2
- package/dist/index.es560.js.map +1 -1
- package/dist/index.es598.js +3 -3
- package/dist/index.es599.js +3 -3
- package/dist/index.es600.js +5 -205
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es601.js +536 -21
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +683 -387
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +70 -5
- package/dist/index.es603.js.map +1 -1
- package/dist/index.es604.js +9 -16
- package/dist/index.es604.js.map +1 -1
- package/dist/index.es605.js +21 -13
- package/dist/index.es605.js.map +1 -1
- package/dist/index.es606.js +74 -33
- package/dist/index.es606.js.map +1 -1
- package/dist/index.es607.js +69 -5
- package/dist/index.es607.js.map +1 -1
- package/dist/index.es608.js +50 -2
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es609.js +83 -3
- package/dist/index.es609.js.map +1 -1
- package/dist/index.es610.js +205 -6
- package/dist/index.es610.js.map +1 -1
- package/dist/index.es611.js +22 -6
- package/dist/index.es611.js.map +1 -1
- package/dist/index.es612.js +400 -5
- package/dist/index.es612.js.map +1 -1
- package/dist/index.es613.js +5 -32
- package/dist/index.es613.js.map +1 -1
- package/dist/index.es614.js +16 -242
- package/dist/index.es614.js.map +1 -1
- package/dist/index.es615.js +13 -4
- package/dist/index.es615.js.map +1 -1
- package/dist/index.es616.js +35 -4
- package/dist/index.es616.js.map +1 -1
- package/dist/index.es617.js +5 -10
- package/dist/index.es617.js.map +1 -1
- package/dist/index.es618.js +2 -56
- package/dist/index.es618.js.map +1 -1
- package/dist/index.es619.js +3 -8
- package/dist/index.es619.js.map +1 -1
- package/dist/index.es620.js +6 -5
- package/dist/index.es620.js.map +1 -1
- package/dist/index.es621.js +5 -531
- package/dist/index.es621.js.map +1 -1
- package/dist/index.es622.js +5 -14
- package/dist/index.es622.js.map +1 -1
- package/dist/index.es623.js +32 -2
- package/dist/index.es623.js.map +1 -1
- package/dist/index.es624.js +240 -35
- package/dist/index.es624.js.map +1 -1
- package/dist/index.es625.js +4 -2
- package/dist/index.es625.js.map +1 -1
- package/dist/index.es626.js +4 -271
- package/dist/index.es626.js.map +1 -1
- package/dist/index.es627.js +10 -3
- package/dist/index.es627.js.map +1 -1
- package/dist/index.es628.js +55 -29
- package/dist/index.es628.js.map +1 -1
- package/dist/index.es629.js +7 -82
- package/dist/index.es629.js.map +1 -1
- package/dist/index.es630.js +6 -5
- package/dist/index.es630.js.map +1 -1
- package/dist/index.es631.js +532 -3
- package/dist/index.es631.js.map +1 -1
- package/dist/index.es632.js +14 -24
- package/dist/index.es632.js.map +1 -1
- package/dist/index.es633.js +2 -110
- package/dist/index.es633.js.map +1 -1
- package/dist/index.es634.js +36 -15
- package/dist/index.es634.js.map +1 -1
- package/dist/index.es635.js +2 -40
- package/dist/index.es635.js.map +1 -1
- package/dist/index.es636.js +272 -2
- package/dist/index.es636.js.map +1 -1
- package/dist/index.es637.js +3 -5
- package/dist/index.es637.js.map +1 -1
- package/dist/index.es638.js +30 -16
- package/dist/index.es638.js.map +1 -1
- package/dist/index.es639.js +2 -6
- package/dist/index.es639.js.map +1 -1
- package/dist/index.es640.js +258 -2
- package/dist/index.es640.js.map +1 -1
- package/dist/index.es641.js +85 -2
- package/dist/index.es641.js.map +1 -1
- package/dist/index.es642.js +341 -2
- package/dist/index.es642.js.map +1 -1
- package/dist/index.es643.js +16 -2
- package/dist/index.es643.js.map +1 -1
- package/dist/index.es644.js +41 -2
- package/dist/index.es644.js.map +1 -1
- package/dist/index.es645.js +2 -3
- package/dist/index.es645.js.map +1 -1
- package/dist/index.es646.js +2 -2
- package/dist/index.es646.js.map +1 -1
- package/dist/index.es647.js +19 -3
- package/dist/index.es647.js.map +1 -1
- package/dist/index.es648.js +12 -63
- package/dist/index.es648.js.map +1 -1
- package/dist/index.es649.js +218 -66
- package/dist/index.es649.js.map +1 -1
- package/dist/index.es650.js +54 -9
- package/dist/index.es650.js.map +1 -1
- package/dist/index.es651.js +16 -13
- package/dist/index.es651.js.map +1 -1
- package/dist/index.es652.js +20 -65
- package/dist/index.es652.js.map +1 -1
- package/dist/index.es653.js +43 -3
- package/dist/index.es653.js.map +1 -1
- package/dist/index.es654.js +122 -510
- package/dist/index.es654.js.map +1 -1
- package/dist/index.es655.js +342 -126
- package/dist/index.es655.js.map +1 -1
- package/dist/index.es656.js +20 -131
- package/dist/index.es656.js.map +1 -1
- package/dist/index.es657.js +257 -3
- package/dist/index.es657.js.map +1 -1
- package/dist/index.es658.js +23 -2
- package/dist/index.es658.js.map +1 -1
- package/dist/index.es659.js +40 -3
- package/dist/index.es659.js.map +1 -1
- package/dist/index.es660.js +27 -22
- package/dist/index.es660.js.map +1 -1
- package/dist/index.es661.js +36 -13
- package/dist/index.es661.js.map +1 -1
- package/dist/index.es662.js +21 -27
- package/dist/index.es662.js.map +1 -1
- package/dist/index.es663.js +12 -5
- package/dist/index.es663.js.map +1 -1
- package/dist/index.es664.js +23 -23
- package/dist/index.es664.js.map +1 -1
- package/dist/index.es665.js +8 -0
- package/dist/index.es665.js.map +1 -0
- package/dist/index.es666.js +6 -0
- package/dist/index.es666.js.map +1 -0
- package/dist/index.es667.js +27 -0
- package/dist/index.es667.js.map +1 -0
- package/dist/index.es668.js +113 -0
- package/dist/index.es668.js.map +1 -0
- package/dist/index.es669.js +19 -0
- package/dist/index.es669.js.map +1 -0
- package/dist/index.es670.js +5 -0
- package/dist/index.es670.js.map +1 -0
- package/dist/index.es671.js +228 -0
- package/dist/index.es671.js.map +1 -0
- package/dist/index.es672.js +5 -0
- package/dist/index.es672.js.map +1 -0
- package/dist/index.es673.js +360 -0
- package/dist/index.es673.js.map +1 -0
- package/dist/index.es674.js +5 -0
- package/dist/index.es674.js.map +1 -0
- package/dist/index.es675.js +5 -0
- package/dist/index.es675.js.map +1 -0
- package/dist/index.es676.js +5 -0
- package/dist/index.es676.js.map +1 -0
- package/dist/index.es677.js +37 -0
- package/dist/index.es677.js.map +1 -0
- package/dist/index.es678.js +49 -0
- package/dist/index.es678.js.map +1 -0
- package/dist/index.es679.js +62 -0
- package/dist/index.es679.js.map +1 -0
- package/dist/index.es680.js +64 -0
- package/dist/index.es680.js.map +1 -0
- package/dist/index.es681.js +76 -0
- package/dist/index.es681.js.map +1 -0
- package/dist/index.es682.js +55 -0
- package/dist/index.es682.js.map +1 -0
- package/dist/index.es683.js +93 -0
- package/dist/index.es683.js.map +1 -0
- package/dist/index.es684.js +9 -0
- package/dist/index.es684.js.map +1 -0
- package/dist/index.es685.js +14 -0
- package/dist/index.es685.js.map +1 -0
- package/dist/index.es686.js +7 -0
- package/dist/index.es686.js.map +1 -0
- package/dist/index.es687.js +93 -0
- package/dist/index.es687.js.map +1 -0
- package/dist/index.es688.js +21 -0
- package/dist/index.es688.js.map +1 -0
- package/dist/index.es689.js +172 -0
- package/dist/index.es689.js.map +1 -0
- package/dist/index.es690.js +13 -0
- package/dist/index.es690.js.map +1 -0
- package/dist/index.es691.js +197 -0
- package/dist/index.es691.js.map +1 -0
- package/dist/index.es692.js +323 -0
- package/dist/index.es692.js.map +1 -0
- package/dist/index.es693.js +95 -0
- package/dist/index.es693.js.map +1 -0
- package/dist/index.es694.js +43 -0
- package/dist/index.es694.js.map +1 -0
- package/dist/index.es695.js +5 -0
- package/dist/index.es695.js.map +1 -0
- package/dist/index.es696.js +8 -0
- package/dist/index.es696.js.map +1 -0
- package/dist/index.es697.js +9 -0
- package/dist/index.es697.js.map +1 -0
- package/dist/index.es698.js +19 -0
- package/dist/index.es698.js.map +1 -0
- package/dist/index.es699.js +5 -0
- package/dist/index.es699.js.map +1 -0
- package/dist/index.es700.js +5 -0
- package/dist/index.es700.js.map +1 -0
- package/dist/index.es701.js +5 -0
- package/dist/index.es701.js.map +1 -0
- package/dist/index.es702.js +5 -0
- package/dist/index.es702.js.map +1 -0
- package/dist/index.es703.js +5 -0
- package/dist/index.es703.js.map +1 -0
- package/dist/index.es704.js +6 -0
- package/dist/index.es704.js.map +1 -0
- package/dist/index.es705.js +5 -0
- package/dist/index.es705.js.map +1 -0
- package/dist/index.es706.js +7 -0
- package/dist/index.es706.js.map +1 -0
- package/dist/index.es707.js +68 -0
- package/dist/index.es707.js.map +1 -0
- package/dist/index.es708.js +72 -0
- package/dist/index.es708.js.map +1 -0
- package/dist/index.es709.js +12 -0
- package/dist/index.es709.js.map +1 -0
- package/dist/index.es710.js +17 -0
- package/dist/index.es710.js.map +1 -0
- package/dist/index.es711.js +69 -0
- package/dist/index.es711.js.map +1 -0
- package/dist/index.es712.js +5 -0
- package/dist/index.es712.js.map +1 -0
- package/dist/index.es713.js +148 -0
- package/dist/index.es713.js.map +1 -0
- package/dist/index.es714.js +5 -0
- package/dist/index.es714.js.map +1 -0
- package/dist/index.es715.js +5 -0
- package/dist/index.es715.js.map +1 -0
- package/dist/index.es716.js +5 -0
- package/dist/index.es716.js.map +1 -0
- package/dist/index.es717.js +5 -0
- package/dist/index.es717.js.map +1 -0
- package/dist/index.es718.js +5 -0
- package/dist/index.es718.js.map +1 -0
- package/dist/index.es719.js +5 -0
- package/dist/index.es719.js.map +1 -0
- package/dist/index.es720.js +5 -0
- package/dist/index.es720.js.map +1 -0
- package/dist/index.es721.js +14 -0
- package/dist/index.es721.js.map +1 -0
- package/dist/index.es722.js +14 -0
- package/dist/index.es722.js.map +1 -0
- package/dist/index.es723.js +57 -0
- package/dist/index.es723.js.map +1 -0
- package/dist/index.es724.js +5 -0
- package/dist/index.es724.js.map +1 -0
- package/dist/index.es725.js +5 -0
- package/dist/index.es725.js.map +1 -0
- package/dist/index.es726.js +115 -0
- package/dist/index.es726.js.map +1 -0
- package/dist/index.es727.js +5 -0
- package/dist/index.es727.js.map +1 -0
- package/dist/index.es728.js +5 -0
- package/dist/index.es728.js.map +1 -0
- package/dist/index.es729.js +528 -0
- package/dist/index.es729.js.map +1 -0
- package/dist/index.es730.js +131 -0
- package/dist/index.es730.js.map +1 -0
- package/dist/index.es731.js +137 -0
- package/dist/index.es731.js.map +1 -0
- package/dist/index.es732.js +7 -0
- package/dist/index.es732.js.map +1 -0
- package/dist/index.es733.js +6 -0
- package/dist/index.es733.js.map +1 -0
- package/dist/index.es734.js +5 -0
- package/dist/index.es734.js.map +1 -0
- package/dist/index.es735.js +7 -0
- package/dist/index.es735.js.map +1 -0
- package/dist/index.es736.js +26 -0
- package/dist/index.es736.js.map +1 -0
- package/dist/index.es737.js +5 -0
- package/dist/index.es737.js.map +1 -0
- package/dist/index.es738.js +91 -0
- package/dist/index.es738.js.map +1 -0
- package/dist/index.es739.js +111 -0
- package/dist/index.es739.js.map +1 -0
- package/dist/index.es740.js +5 -0
- package/dist/index.es740.js.map +1 -0
- package/dist/index.es741.js +5 -0
- package/dist/index.es741.js.map +1 -0
- package/dist/index.es742.js +5 -0
- package/dist/index.es742.js.map +1 -0
- package/dist/index.es743.js +16 -0
- package/dist/index.es743.js.map +1 -0
- package/dist/index.es744.js +31 -0
- package/dist/index.es744.js.map +1 -0
- package/dist/index.es745.js +8 -0
- package/dist/index.es745.js.map +1 -0
- package/dist/index.es746.js +5 -0
- package/dist/index.es746.js.map +1 -0
- package/dist/index.es747.js +228 -0
- package/dist/index.es747.js.map +1 -0
- package/dist/index.es748.js +50 -0
- package/dist/index.es748.js.map +1 -0
- package/dist/index.es749.js +52 -0
- package/dist/index.es749.js.map +1 -0
- package/dist/index.es750.js +5 -0
- package/dist/index.es750.js.map +1 -0
- package/dist/index.es751.js +26 -0
- package/dist/index.es751.js.map +1 -0
- package/dist/index.es752.js +5 -0
- package/dist/index.es752.js.map +1 -0
- package/dist/index.es753.js +14 -0
- package/dist/index.es753.js.map +1 -0
- package/dist/index.es754.js +14 -0
- package/dist/index.es754.js.map +1 -0
- package/dist/index.es755.js +57 -0
- package/dist/index.es755.js.map +1 -0
- package/dist/index.es756.js +5 -0
- package/dist/index.es756.js.map +1 -0
- package/dist/index.es757.js +16 -0
- package/dist/index.es757.js.map +1 -0
- package/dist/index.es758.js +5 -0
- package/dist/index.es758.js.map +1 -0
- package/dist/index.es759.js +5 -0
- package/dist/index.es759.js.map +1 -0
- package/dist/index.es760.js +5 -0
- package/dist/index.es760.js.map +1 -0
- package/dist/index.es761.js +5 -0
- package/dist/index.es761.js.map +1 -0
- package/dist/index.es762.js +5 -0
- package/dist/index.es762.js.map +1 -0
- package/dist/sections/Slider/Slider.css +1 -1
- package/package.json +3 -1
- package/dist/index.cjs455.js.map +0 -1
- package/dist/index.cjs457.js +0 -2
- package/dist/index.cjs457.js.map +0 -1
- package/dist/index.cjs458.js +0 -2
- package/dist/index.cjs458.js.map +0 -1
- package/dist/index.cjs459.js +0 -2
- package/dist/index.cjs459.js.map +0 -1
- package/dist/index.cjs464.js +0 -2
- package/dist/index.cjs464.js.map +0 -1
- package/dist/index.cjs477.js +0 -2
- package/dist/index.cjs477.js.map +0 -1
- package/dist/index.cjs480.js +0 -2
- package/dist/index.cjs480.js.map +0 -1
- package/dist/index.cjs497.js +0 -2
- package/dist/index.cjs497.js.map +0 -1
- package/dist/index.cjs544.js +0 -2
- package/dist/index.cjs544.js.map +0 -1
- package/dist/index.es455.js.map +0 -1
- package/dist/index.es457.js +0 -216
- package/dist/index.es457.js.map +0 -1
- package/dist/index.es458.js +0 -77
- package/dist/index.es458.js.map +0 -1
- package/dist/index.es459.js +0 -9
- package/dist/index.es459.js.map +0 -1
- package/dist/index.es464.js +0 -138
- package/dist/index.es464.js.map +0 -1
- package/dist/index.es477.js +0 -18
- package/dist/index.es477.js.map +0 -1
- package/dist/index.es480.js +0 -9
- package/dist/index.es480.js.map +0 -1
- package/dist/index.es497.js +0 -625
- package/dist/index.es497.js.map +0 -1
- package/dist/index.es544.js +0 -9
- package/dist/index.es544.js.map +0 -1
package/dist/index.cjs602.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ue=require("./index.cjs603.js"),ge=require("./index.cjs604.js"),pe=require("./index.cjs605.js"),he=require("./index.cjs606.js"),me=require("./index.cjs607.js"),we=require("./index.cjs608.js");var N,X;function be(){if(X)return N;X=1;const Y=ue.__require(),B=ge.__require(),{isPlainObject:J}=pe.__require(),I=he.__require(),K=me.__require(),{parse:Q}=we.__require(),ee=["img","audio","video","picture","svg","object","map","iframe","embed"],te=["script","style"];function k(d,t){d&&Object.keys(d).forEach(function(w){t(d[w],w)})}function x(d,t){return{}.hasOwnProperty.call(d,t)}function L(d,t){const w=[];return k(d,function(s){t(s)&&w.push(s)}),w}function re(d){for(const t in d)if(x(d,t))return!1;return!0}function ne(d){return d.map(function(t){if(!t.url)throw new Error("URL missing");return t.url+(t.w?` ${t.w}w`:"")+(t.h?` ${t.h}h`:"")+(t.d?` ${t.d}x`:"")}).join(", ")}N=v;const ie=/^[^\0\t\n\f\r /<=>]+$/;function v(d,t,w){if(d==null)return"";typeof d=="number"&&(d=d.toString());let s="",h="";function R(e,n){const r=this;this.tag=e,this.attribs=n||{},this.tagPosition=s.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(g.length){const i=g[g.length-1];i.text+=r.text}},this.updateParentNodeMediaChildren=function(){g.length&&ee.includes(this.tag)&&g[g.length-1].mediaChildren.push(this.tag)}}t=Object.assign({},v.defaults,t),t.parser=Object.assign({},se,t.parser);const q=function(e){return t.allowedTags===!1||(t.allowedTags||[]).indexOf(e)>-1};te.forEach(function(e){q(e)&&!t.allowVulnerableTags&&console.warn(`
|
|
2
|
+
|
|
3
|
+
⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently
|
|
4
|
+
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
5
|
+
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
6
|
+
and ensure you are accounting for this risk.
|
|
7
|
+
|
|
8
|
+
`)});const le=t.nonTextTags||["script","style","textarea","option"];let f,M;t.allowedAttributes&&(f={},M={},k(t.allowedAttributes,function(e,n){f[n]=[];const r=[];e.forEach(function(i){typeof i=="string"&&i.indexOf("*")>=0?r.push(B(i).replace(/\\\*/g,".*")):f[n].push(i)}),r.length&&(M[n]=new RegExp("^("+r.join("|")+")$"))}));const C={},$={},_={};k(t.allowedClasses,function(e,n){if(f&&(x(f,n)||(f[n]=[]),f[n].push("class")),C[n]=e,Array.isArray(e)){const r=[];C[n]=[],_[n]=[],e.forEach(function(i){typeof i=="string"&&i.indexOf("*")>=0?r.push(B(i).replace(/\\\*/g,".*")):i instanceof RegExp?_[n].push(i):C[n].push(i)}),r.length&&($[n]=new RegExp("^("+r.join("|")+")$"))}});const D={};let z;k(t.transformTags,function(e,n){let r;typeof e=="function"?r=e:typeof e=="string"&&(r=v.simpleTransform(e)),n==="*"?z=r:D[n]=r});let m,g,O,E,T,P,H=!1;W();const U=new Y.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&e==="html"&&W(),T){P++;return}const r=new R(e,n);g.push(r);let i=!1;const u=!!r.text;let p;if(x(D,e)&&(p=D[e](e,n),r.attribs=n=p.attribs,p.text!==void 0&&(r.innerText=p.text),e!==p.tagName&&(r.name=e=p.tagName,E[m]=p.tagName)),z&&(p=z(e,n),r.attribs=n=p.attribs,e!==p.tagName&&(r.name=e=p.tagName,E[m]=p.tagName)),(!q(e)||t.disallowedTagsMode==="recursiveEscape"&&!re(O)||t.nestingLimit!=null&&m>=t.nestingLimit)&&(i=!0,O[m]=!0,(t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard")&&le.indexOf(e)!==-1&&(T=!0,P=1)),m++,i){if(t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard"){if(r.innerText&&!u){const c=A(r.innerText);t.textFilter?s+=t.textFilter(c,e):s+=c,H=!0}return}h=s,s=""}s+="<"+e,e==="script"&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),i&&(t.disallowedTagsMode==="escape"||t.disallowedTagsMode==="recursiveEscape")&&t.preserveEscapedAttributes?k(n,function(c,l){s+=" "+l+'="'+A(c||"",!0)+'"'}):(!f||x(f,e)||f["*"])&&k(n,function(c,l){if(!ie.test(l)){delete r.attribs[l];return}if(c===""&&!t.allowedEmptyAttributes.includes(l)&&(t.nonBooleanAttributes.includes(l)||t.nonBooleanAttributes.includes("*"))){delete r.attribs[l];return}let F=!1;if(!f||x(f,e)&&f[e].indexOf(l)!==-1||f["*"]&&f["*"].indexOf(l)!==-1||x(M,e)&&M[e].test(l)||M["*"]&&M["*"].test(l))F=!0;else if(f&&f[e]){for(const o of f[e])if(J(o)&&o.name&&o.name===l){F=!0;let a="";if(o.multiple===!0){const S=c.split(" ");for(const y of S)o.values.indexOf(y)!==-1&&(a===""?a=y:a+=" "+y)}else o.values.indexOf(c)>=0&&(a=c);c=a}}if(F){if(t.allowedSchemesAppliedToAttributes.indexOf(l)!==-1&&G(e,c)){delete r.attribs[l];return}if(e==="script"&&l==="src"){let o=!0;try{const a=V(c);if(t.allowedScriptHostnames||t.allowedScriptDomains){const S=(t.allowedScriptHostnames||[]).find(function(b){return b===a.url.hostname}),y=(t.allowedScriptDomains||[]).find(function(b){return a.url.hostname===b||a.url.hostname.endsWith(`.${b}`)});o=S||y}}catch{o=!1}if(!o){delete r.attribs[l];return}}if(e==="iframe"&&l==="src"){let o=!0;try{const a=V(c);if(a.isRelativeUrl)o=x(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const S=(t.allowedIframeHostnames||[]).find(function(b){return b===a.url.hostname}),y=(t.allowedIframeDomains||[]).find(function(b){return a.url.hostname===b||a.url.hostname.endsWith(`.${b}`)});o=S||y}}catch{o=!1}if(!o){delete r.attribs[l];return}}if(l==="srcset")try{let o=K(c);if(o.forEach(function(a){G("srcset",a.url)&&(a.evil=!0)}),o=L(o,function(a){return!a.evil}),o.length)c=ne(L(o,function(a){return!a.evil})),r.attribs[l]=c;else{delete r.attribs[l];return}}catch{delete r.attribs[l];return}if(l==="class"){const o=C[e],a=C["*"],S=$[e],y=_[e],b=_["*"],de=$["*"],j=[S,de].concat(y,b).filter(function(fe){return fe});if(o&&a?c=Z(c,I(o,a),j):c=Z(c,o||a,j),!c.length){delete r.attribs[l];return}}if(l==="style"){if(t.parseStyleAttributes)try{const o=Q(e+" {"+c+"}",{map:!1}),a=oe(o,t.allowedStyles);if(c=ae(a),c.length===0){delete r.attribs[l];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+e+" {"+c+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete r.attribs[l];return}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}s+=" "+l,c&&c.length?s+='="'+A(c,!0)+'"':t.allowedEmptyAttributes.includes(l)&&(s+='=""')}else delete r.attribs[l]}),t.selfClosing.indexOf(e)!==-1?s+=" />":(s+=">",r.innerText&&!u&&!t.textFilter&&(s+=A(r.innerText),H=!0)),i&&(s=h+A(s),h=""),r.openingTagLength=s.length-r.tagPosition},ontext:function(e){if(T)return;const n=g[g.length-1];let r;if(n&&(r=n.tag,e=n.innerText!==void 0?n.innerText:e),t.disallowedTagsMode==="completelyDiscard"&&!q(r))e="";else if((t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard")&&(r==="script"||r==="style"))s+=e;else if(!H){const i=A(e,!1);t.textFilter?s+=t.textFilter(i,r):s+=i}if(g.length){const i=g[g.length-1];i.text+=e}},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),T)if(P--,!P)T=!1;else return;const r=g.pop();if(!r)return;if(r.tag!==e){g.push(r);return}T=t.enforceHtmlBoundary?e==="html":!1,m--;const i=O[m];if(i){if(delete O[m],t.disallowedTagsMode==="discard"||t.disallowedTagsMode==="completelyDiscard"){r.updateParentNodeText();return}h=s,s=""}if(E[m]&&(e=E[m],delete E[m]),t.exclusiveFilter){const u=t.exclusiveFilter(r);if(u==="excludeTag"){i&&(s=h,h=""),s=s.substring(0,r.tagPosition)+s.substring(r.tagPosition+r.openingTagLength);return}else if(u){s=s.substring(0,r.tagPosition);return}}if(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),t.selfClosing.indexOf(e)!==-1||n&&!q(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){i&&(s=h,h="");return}s+="</"+e+">",i&&(s=h+A(s),h=""),H=!1}},t.parser);return U.write(d),U.end(),s;function W(){s="",m=0,g=[],O={},E={},T=!1,P=0}function A(e,n){return typeof e!="string"&&(e=e+""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function G(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const u=n.indexOf("<!--");if(u===-1)break;const p=n.indexOf("-->",u+4);if(p===-1)break;n=n.substring(0,u)+n.substring(p+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return n.match(/^[/\\]{2}/)?!t.allowProtocolRelative:!1;const i=r[1].toLowerCase();return x(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e].indexOf(i)===-1:!t.allowedSchemes||t.allowedSchemes.indexOf(i)===-1}function V(e){if(e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),e.startsWith("relative:"))throw new Error("relative: exploit attempt");let n="relative://relative-site";for(let u=0;u<100;u++)n+=`/${u}`;const r=new URL(e,n);return{isRelativeUrl:r&&r.hostname==="relative-site"&&r.protocol==="relative:",url:r}}function oe(e,n){if(!n)return e;const r=e.nodes[0];let i;return n[r.selector]&&n["*"]?i=I(n[r.selector],n["*"]):i=n[r.selector]||n["*"],i&&(e.nodes[0].nodes=r.nodes.reduce(ce(i),[])),e}function ae(e){return e.nodes[0].nodes.reduce(function(n,r){return n.push(`${r.prop}:${r.value}${r.important?" !important":""}`),n},[]).join(";")}function ce(e){return function(n,r){return x(e,r.prop)&&e[r.prop].some(function(u){return u.test(r.value)})&&n.push(r),n}}function Z(e,n,r){return n?(e=e.split(/\s+/),e.filter(function(i){return n.indexOf(i)!==-1||r.some(function(u){return u.test(i)})}).join(" ")):e}}const se={decodeEntities:!0};return v.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},v.simpleTransform=function(d,t,w){return w=w===void 0?!0:w,t=t||{},function(s,h){let R;if(w)for(R in t)h[R]=t[R];else h=t;return{tagName:d,attribs:h}}},N}exports.__require=be;
|
|
2
9
|
//# sourceMappingURL=index.cjs602.js.map
|
package/dist/index.cjs602.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs602.js","sources":["../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs"],"sourcesContent":["import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle$1(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If <html> has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n const windowScrollbarX = getWindowScrollBarX(html);\n // <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the\n // visual width of the <html> but this is not considered in the size\n // of `html.clientWidth`.\n if (windowScrollbarX <= 0) {\n const doc = html.ownerDocument;\n const body = doc.body;\n const bodyStyles = getComputedStyle(body);\n const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {\n width -= clippingStableScrollbarWidth;\n }\n } else if (windowScrollbarX <= SCROLLBAR_MAX) {\n // If the <body> scrollbar is on the left, the width needs to be extended\n // by the scrollbar amount so there isn't extra space on the right.\n width += windowScrollbarX;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nconst absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n\n // If the <body> scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n function setLeftRTLScrollbarOffset() {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n setLeftRTLScrollbarOffset();\n }\n }\n if (isFixed && !isOffsetParentAnElement && documentElement) {\n setLeftRTLScrollbarOffset();\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the <html> element as the offsetParent if it's non-static,\n // while Chrome and Safari return the <body> element. The <body> element must\n // be used to perform the correct calculations even if the <html> element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle <iframe>s\n root: root.ownerDocument\n });\n } catch (_e) {\n io = new IntersectionObserver(handleObserve, options);\n }\n io.observe(element);\n }\n refresh(true);\n return cleanup;\n}\n\n/**\n * Automatically updates the position of the floating element when necessary.\n * Should only be called when the floating element is mounted on the DOM or\n * visible on the screen.\n * @returns cleanup function that should be invoked when the floating element is\n * removed from the DOM or hidden from the screen.\n * @see https://floating-ui.com/docs/autoUpdate\n */\nfunction autoUpdate(reference, floating, update, options) {\n if (options === void 0) {\n options = {};\n }\n const {\n ancestorScroll = true,\n ancestorResize = true,\n elementResize = typeof ResizeObserver === 'function',\n layoutShift = typeof IntersectionObserver === 'function',\n animationFrame = false\n } = options;\n const referenceEl = unwrapElement(reference);\n const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.addEventListener('scroll', update, {\n passive: true\n });\n ancestorResize && ancestor.addEventListener('resize', update);\n });\n const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;\n let reobserveFrame = -1;\n let resizeObserver = null;\n if (elementResize) {\n resizeObserver = new ResizeObserver(_ref => {\n let [firstEntry] = _ref;\n if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {\n // Prevent update loops when using the `size` middleware.\n // https://github.com/floating-ui/floating-ui/issues/1740\n resizeObserver.unobserve(floating);\n cancelAnimationFrame(reobserveFrame);\n reobserveFrame = requestAnimationFrame(() => {\n var _resizeObserver;\n (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);\n });\n }\n update();\n });\n if (referenceEl && !animationFrame) {\n resizeObserver.observe(referenceEl);\n }\n resizeObserver.observe(floating);\n }\n let frameId;\n let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;\n if (animationFrame) {\n frameLoop();\n }\n function frameLoop() {\n const nextRefRect = getBoundingClientRect(reference);\n if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {\n update();\n }\n prevRefRect = nextRefRect;\n frameId = requestAnimationFrame(frameLoop);\n }\n update();\n return () => {\n var _resizeObserver2;\n ancestors.forEach(ancestor => {\n ancestorScroll && ancestor.removeEventListener('scroll', update);\n ancestorResize && ancestor.removeEventListener('resize', update);\n });\n cleanupIo == null || cleanupIo();\n (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();\n resizeObserver = null;\n if (animationFrame) {\n cancelAnimationFrame(frameId);\n }\n };\n}\n\n/**\n * Resolves with an object of overflow side offsets that determine how much the\n * element is overflowing a given clipping boundary on each side.\n * - positive = overflowing the boundary by that number of pixels\n * - negative = how many pixels left before it will overflow\n * - 0 = lies flush with the boundary\n * @see https://floating-ui.com/docs/detectOverflow\n */\nconst detectOverflow = detectOverflow$1;\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = offset$1;\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = autoPlacement$1;\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = shift$1;\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = flip$1;\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = size$1;\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = hide$1;\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = arrow$1;\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = inline$1;\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = limitShift$1;\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element\n * next to a given reference element.\n */\nconst computePosition = (reference, floating, options) => {\n // This caches the expensive `getClippingElementAncestors` function so that\n // multiple lifecycle resets re-use the same result. It only lives for a\n // single call. If other functions become expensive, we can add them as well.\n const cache = new Map();\n const mergedOptions = {\n platform,\n ...options\n };\n const platformWithCache = {\n ...mergedOptions.platform,\n _c: cache\n };\n return computePosition$1(reference, floating, {\n ...mergedOptions,\n platform: platformWithCache\n });\n};\n\nexport { arrow, autoPlacement, autoUpdate, computePosition, detectOverflow, flip, hide, inline, limitShift, offset, platform, shift, size };\n"],"names":["getCssDimensions","element","css","getComputedStyle$1","width","height","hasOffset","isHTMLElement","offsetWidth","offsetHeight","shouldFallback","round","unwrapElement","isElement","getScale","domElement","createCoords","rect","$","x","y","noOffsets","getVisualOffsets","win","getWindow","isWebKit","shouldAddVisualOffsets","isFixed","floatingOffsetParent","getBoundingClientRect","includeScale","isFixedStrategy","offsetParent","clientRect","scale","visualOffsets","offsetWin","currentWin","currentIFrame","getFrameElement","iframeScale","iframeRect","left","top","rectToClientRect","getWindowScrollBarX","leftScroll","getNodeScroll","getDocumentElement","getHTMLOffset","documentElement","scroll","htmlRect","convertOffsetParentRelativeRectToViewportRelativeRect","_ref","elements","strategy","topLayer","isTopLayer","offsets","isOffsetParentAnElement","getNodeName","isOverflowElement","offsetRect","htmlOffset","getClientRects","getDocumentRect","html","body","max","SCROLLBAR_MAX","getViewportRect","visualViewport","visualViewportBased","windowScrollbarX","doc","bodyStyles","bodyMarginInline","clippingStableScrollbarWidth","absoluteOrFixed","getInnerBoundingClientRect","getClientRectFromClippingAncestor","clippingAncestor","hasFixedPositionAncestor","stopNode","parentNode","getParentNode","isLastTraversableNode","getClippingElementAncestors","cache","cachedResult","result","getOverflowAncestors","el","currentContainingBlockComputedStyle","elementIsFixed","currentNode","computedStyle","currentNodeIsContaining","isContainingBlock","ancestor","getClippingRect","boundary","rootBoundary","clippingAncestors","firstClippingAncestor","clippingRect","accRect","min","getDimensions","getRectRelativeToOffsetParent","setLeftRTLScrollbarOffset","isStaticPositioned","getTrueOffsetParent","polyfill","rawOffsetParent","getOffsetParent","svgOffsetParent","isTableElement","getContainingBlock","getElementRects","data","getOffsetParentFn","getDimensionsFn","floatingDimensions","isRTL","platform","rectsAreEqual","a","b","observeMove","onMove","io","timeoutId","root","cleanup","_io","refresh","skip","threshold","elementRectForRootMargin","insetTop","floor","insetRight","insetBottom","insetLeft","options","isFirstUpdate","handleObserve","entries","ratio","autoUpdate","reference","floating","update","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","referenceEl","ancestors","cleanupIo","reobserveFrame","resizeObserver","firstEntry","_resizeObserver","frameId","prevRefRect","frameLoop","nextRefRect","_resizeObserver2","offset","offset$1","shift","shift$1","flip","flip$1","size","size$1","hide","hide$1","arrow","arrow$1","limitShift","limitShift$1","computePosition","mergedOptions","platformWithCache","computePosition$1"],"mappings":"mLAKA,SAASA,EAAiBC,EAAS,CACjC,MAAMC,EAAMC,EAAAA,iBAAmBF,CAAO,EAGtC,IAAIG,EAAQ,WAAWF,EAAI,KAAK,GAAK,EACjCG,EAAS,WAAWH,EAAI,MAAM,GAAK,EACvC,MAAMI,EAAYC,EAAAA,cAAcN,CAA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,EAAS,GAC7BS,EAAmBP,IAAmB,MAAQO,EAAiB,WAAU,EAC1EP,EAAiB,KACbL,GACF,qBAAqBQ,CAAO,CAEhC,CACF,CAmBK,MAACK,GAASC,EAAAA,OAeTC,GAAQC,EAAAA,MAQRC,GAAOC,EAAAA,KAQPC,GAAOC,EAAAA,KAOPC,GAAOC,EAAAA,KAOPC,GAAQC,EAAAA,MAYRC,GAAaC,EAAAA,WAMbC,GAAkB,CAAClC,EAAWC,EAAUP,IAAY,CAIxD,MAAMzD,EAAQ,IAAI,IACZkG,EAAgB,CACpB,SAAA7D,EACA,GAAGoB,CACP,EACQ0C,EAAoB,CACxB,GAAGD,EAAc,SACjB,GAAIlG,CACR,EACE,OAAOoG,EAAAA,gBAAkBrC,EAAWC,EAAU,CAC5C,GAAGkC,EACH,SAAUC,CACd,CAAG,CACH","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs602.js","sources":["../node_modules/sanitize-html/index.js"],"sourcesContent":["const htmlparser = require('htmlparser2');\nconst escapeStringRegexp = require('escape-string-regexp');\nconst { isPlainObject } = require('is-plain-object');\nconst deepmerge = require('deepmerge');\nconst parseSrcset = require('parse-srcset');\nconst { parse: postcssParse } = require('postcss');\n// Tags that can conceivably represent stand-alone media.\nconst mediaTags = [\n 'img', 'audio', 'video', 'picture', 'svg',\n 'object', 'map', 'iframe', 'embed'\n];\n// Tags that are inherently vulnerable to being used in XSS attacks.\nconst vulnerableTags = [ 'script', 'style' ];\n\nfunction each(obj, cb) {\n if (obj) {\n Object.keys(obj).forEach(function (key) {\n cb(obj[key], key);\n });\n }\n}\n\n// Avoid false positives with .__proto__, .hasOwnProperty, etc.\nfunction has(obj, key) {\n return ({}).hasOwnProperty.call(obj, key);\n}\n\n// Returns those elements of `a` for which `cb(a)` returns truthy\nfunction filter(a, cb) {\n const n = [];\n each(a, function(v) {\n if (cb(v)) {\n n.push(v);\n }\n });\n return n;\n}\n\nfunction isEmptyObject(obj) {\n for (const key in obj) {\n if (has(obj, key)) {\n return false;\n }\n }\n return true;\n}\n\nfunction stringifySrcset(parsedSrcset) {\n return parsedSrcset.map(function(part) {\n if (!part.url) {\n throw new Error('URL missing');\n }\n\n return (\n part.url +\n (part.w ? ` ${part.w}w` : '') +\n (part.h ? ` ${part.h}h` : '') +\n (part.d ? ` ${part.d}x` : '')\n );\n }).join(', ');\n}\n\nmodule.exports = sanitizeHtml;\n\n// A valid attribute name.\n// We use a tolerant definition based on the set of strings defined by\n// html.spec.whatwg.org/multipage/parsing.html#before-attribute-name-state\n// and html.spec.whatwg.org/multipage/parsing.html#attribute-name-state .\n// The characters accepted are ones which can be appended to the attribute\n// name buffer without triggering a parse error:\n// * unexpected-equals-sign-before-attribute-name\n// * unexpected-null-character\n// * unexpected-character-in-attribute-name\n// We exclude the empty string because it's impossible to get to the after\n// attribute name state with an empty attribute name buffer.\nconst VALID_HTML_ATTRIBUTE_NAME = /^[^\\0\\t\\n\\f\\r /<=>]+$/;\n\n// Ignore the _recursing flag; it's there for recursive\n// invocation as a guard against this exploit:\n// https://github.com/fb55/htmlparser2/issues/105\n\nfunction sanitizeHtml(html, options, _recursing) {\n if (html == null) {\n return '';\n }\n if (typeof html === 'number') {\n html = html.toString();\n }\n\n let result = '';\n // Used for hot swapping the result variable with an empty string in order to \"capture\" the text written to it.\n let tempResult = '';\n\n function Frame(tag, attribs) {\n const that = this;\n this.tag = tag;\n this.attribs = attribs || {};\n this.tagPosition = result.length;\n this.text = ''; // Node inner text\n this.openingTagLength = 0;\n this.mediaChildren = [];\n\n this.updateParentNodeText = function() {\n if (stack.length) {\n const parentFrame = stack[stack.length - 1];\n parentFrame.text += that.text;\n }\n };\n\n this.updateParentNodeMediaChildren = function() {\n if (stack.length && mediaTags.includes(this.tag)) {\n const parentFrame = stack[stack.length - 1];\n parentFrame.mediaChildren.push(this.tag);\n }\n };\n }\n\n options = Object.assign({}, sanitizeHtml.defaults, options);\n options.parser = Object.assign({}, htmlParserDefaults, options.parser);\n\n const tagAllowed = function (name) {\n return options.allowedTags === false || (options.allowedTags || []).indexOf(name) > -1;\n };\n\n // vulnerableTags\n vulnerableTags.forEach(function (tag) {\n if (tagAllowed(tag) && !options.allowVulnerableTags) {\n console.warn(`\\n\\n⚠️ Your \\`allowedTags\\` option includes, \\`${tag}\\`, which is inherently\\nvulnerable to XSS attacks. Please remove it from \\`allowedTags\\`.\\nOr, to disable this warning, add the \\`allowVulnerableTags\\` option\\nand ensure you are accounting for this risk.\\n\\n`);\n }\n });\n\n // Tags that contain something other than HTML, or where discarding\n // the text when the tag is disallowed makes sense for other reasons.\n // If we are not allowing these tags, we should drop their content too.\n // For other tags you would drop the tag but keep its content.\n const nonTextTagsArray = options.nonTextTags || [\n 'script',\n 'style',\n 'textarea',\n 'option'\n ];\n let allowedAttributesMap;\n let allowedAttributesGlobMap;\n if (options.allowedAttributes) {\n allowedAttributesMap = {};\n allowedAttributesGlobMap = {};\n each(options.allowedAttributes, function(attributes, tag) {\n allowedAttributesMap[tag] = [];\n const globRegex = [];\n attributes.forEach(function(obj) {\n if (typeof obj === 'string' && obj.indexOf('*') >= 0) {\n globRegex.push(escapeStringRegexp(obj).replace(/\\\\\\*/g, '.*'));\n } else {\n allowedAttributesMap[tag].push(obj);\n }\n });\n if (globRegex.length) {\n allowedAttributesGlobMap[tag] = new RegExp('^(' + globRegex.join('|') + ')$');\n }\n });\n }\n const allowedClassesMap = {};\n const allowedClassesGlobMap = {};\n const allowedClassesRegexMap = {};\n each(options.allowedClasses, function(classes, tag) {\n // Implicitly allows the class attribute\n if (allowedAttributesMap) {\n if (!has(allowedAttributesMap, tag)) {\n allowedAttributesMap[tag] = [];\n }\n allowedAttributesMap[tag].push('class');\n }\n\n allowedClassesMap[tag] = classes;\n\n if (Array.isArray(classes)) {\n const globRegex = [];\n allowedClassesMap[tag] = [];\n allowedClassesRegexMap[tag] = [];\n classes.forEach(function(obj) {\n if (typeof obj === 'string' && obj.indexOf('*') >= 0) {\n globRegex.push(escapeStringRegexp(obj).replace(/\\\\\\*/g, '.*'));\n } else if (obj instanceof RegExp) {\n allowedClassesRegexMap[tag].push(obj);\n } else {\n allowedClassesMap[tag].push(obj);\n }\n });\n if (globRegex.length) {\n allowedClassesGlobMap[tag] = new RegExp('^(' + globRegex.join('|') + ')$');\n }\n }\n });\n\n const transformTagsMap = {};\n let transformTagsAll;\n each(options.transformTags, function(transform, tag) {\n let transFun;\n if (typeof transform === 'function') {\n transFun = transform;\n } else if (typeof transform === 'string') {\n transFun = sanitizeHtml.simpleTransform(transform);\n }\n if (tag === '*') {\n transformTagsAll = transFun;\n } else {\n transformTagsMap[tag] = transFun;\n }\n });\n\n let depth;\n let stack;\n let skipMap;\n let transformMap;\n let skipText;\n let skipTextDepth;\n let addedText = false;\n\n initializeState();\n\n const parser = new htmlparser.Parser({\n onopentag: function(name, attribs) {\n if (options.onOpenTag) {\n options.onOpenTag(name, attribs);\n }\n\n // If `enforceHtmlBoundary` is `true` and this has found the opening\n // `html` tag, reset the state.\n if (options.enforceHtmlBoundary && name === 'html') {\n initializeState();\n }\n\n if (skipText) {\n skipTextDepth++;\n return;\n }\n const frame = new Frame(name, attribs);\n stack.push(frame);\n\n let skip = false;\n const hasText = !!frame.text;\n let transformedTag;\n if (has(transformTagsMap, name)) {\n transformedTag = transformTagsMap[name](name, attribs);\n\n frame.attribs = attribs = transformedTag.attribs;\n\n if (transformedTag.text !== undefined) {\n frame.innerText = transformedTag.text;\n }\n\n if (name !== transformedTag.tagName) {\n frame.name = name = transformedTag.tagName;\n transformMap[depth] = transformedTag.tagName;\n }\n }\n if (transformTagsAll) {\n transformedTag = transformTagsAll(name, attribs);\n\n frame.attribs = attribs = transformedTag.attribs;\n if (name !== transformedTag.tagName) {\n frame.name = name = transformedTag.tagName;\n transformMap[depth] = transformedTag.tagName;\n }\n }\n\n if (!tagAllowed(name) || (options.disallowedTagsMode === 'recursiveEscape' && !isEmptyObject(skipMap)) || (options.nestingLimit != null && depth >= options.nestingLimit)) {\n skip = true;\n skipMap[depth] = true;\n if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {\n if (nonTextTagsArray.indexOf(name) !== -1) {\n skipText = true;\n skipTextDepth = 1;\n }\n }\n }\n depth++;\n if (skip) {\n if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {\n // We want the contents but not this tag\n if (frame.innerText && !hasText) {\n const escaped = escapeHtml(frame.innerText);\n if (options.textFilter) {\n result += options.textFilter(escaped, name);\n } else {\n result += escaped;\n }\n addedText = true;\n }\n return;\n }\n tempResult = result;\n result = '';\n }\n result += '<' + name;\n\n if (name === 'script') {\n if (options.allowedScriptHostnames || options.allowedScriptDomains) {\n frame.innerText = '';\n }\n }\n\n const isBeingEscaped = skip && (options.disallowedTagsMode === 'escape' || options.disallowedTagsMode === 'recursiveEscape');\n const shouldPreserveEscapedAttributes = isBeingEscaped && options.preserveEscapedAttributes;\n\n if (shouldPreserveEscapedAttributes) {\n each(attribs, function(value, a) {\n result += ' ' + a + '=\"' + escapeHtml((value || ''), true) + '\"';\n });\n } else if (!allowedAttributesMap || has(allowedAttributesMap, name) || allowedAttributesMap['*']) {\n each(attribs, function(value, a) {\n if (!VALID_HTML_ATTRIBUTE_NAME.test(a)) {\n // This prevents part of an attribute name in the output from being\n // interpreted as the end of an attribute, or end of a tag.\n delete frame.attribs[a];\n return;\n }\n // If the value is empty, check if the attribute is in the allowedEmptyAttributes array.\n // If it is not in the allowedEmptyAttributes array, and it is a known non-boolean attribute, delete it\n // List taken from https://html.spec.whatwg.org/multipage/indices.html#attributes-3\n if (value === '' && (!options.allowedEmptyAttributes.includes(a)) &&\n (options.nonBooleanAttributes.includes(a) || options.nonBooleanAttributes.includes('*'))) {\n delete frame.attribs[a];\n return;\n }\n // check allowedAttributesMap for the element and attribute and modify the value\n // as necessary if there are specific values defined.\n let passedAllowedAttributesMapCheck = false;\n if (!allowedAttributesMap ||\n (has(allowedAttributesMap, name) && allowedAttributesMap[name].indexOf(a) !== -1) ||\n (allowedAttributesMap['*'] && allowedAttributesMap['*'].indexOf(a) !== -1) ||\n (has(allowedAttributesGlobMap, name) && allowedAttributesGlobMap[name].test(a)) ||\n (allowedAttributesGlobMap['*'] && allowedAttributesGlobMap['*'].test(a))) {\n passedAllowedAttributesMapCheck = true;\n } else if (allowedAttributesMap && allowedAttributesMap[name]) {\n for (const o of allowedAttributesMap[name]) {\n if (isPlainObject(o) && o.name && (o.name === a)) {\n passedAllowedAttributesMapCheck = true;\n let newValue = '';\n if (o.multiple === true) {\n // verify the values that are allowed\n const splitStrArray = value.split(' ');\n for (const s of splitStrArray) {\n if (o.values.indexOf(s) !== -1) {\n if (newValue === '') {\n newValue = s;\n } else {\n newValue += ' ' + s;\n }\n }\n }\n } else if (o.values.indexOf(value) >= 0) {\n // verified an allowed value matches the entire attribute value\n newValue = value;\n }\n value = newValue;\n }\n }\n }\n if (passedAllowedAttributesMapCheck) {\n if (options.allowedSchemesAppliedToAttributes.indexOf(a) !== -1) {\n if (naughtyHref(name, value)) {\n delete frame.attribs[a];\n return;\n }\n }\n\n if (name === 'script' && a === 'src') {\n\n let allowed = true;\n\n try {\n const parsed = parseUrl(value);\n\n if (options.allowedScriptHostnames || options.allowedScriptDomains) {\n const allowedHostname = (options.allowedScriptHostnames || []).find(function (hostname) {\n return hostname === parsed.url.hostname;\n });\n const allowedDomain = (options.allowedScriptDomains || []).find(function(domain) {\n return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);\n });\n allowed = allowedHostname || allowedDomain;\n }\n } catch (e) {\n allowed = false;\n }\n\n if (!allowed) {\n delete frame.attribs[a];\n return;\n }\n }\n\n if (name === 'iframe' && a === 'src') {\n let allowed = true;\n try {\n const parsed = parseUrl(value);\n\n if (parsed.isRelativeUrl) {\n // default value of allowIframeRelativeUrls is true\n // unless allowedIframeHostnames or allowedIframeDomains specified\n allowed = has(options, 'allowIframeRelativeUrls')\n ? options.allowIframeRelativeUrls\n : (!options.allowedIframeHostnames && !options.allowedIframeDomains);\n } else if (options.allowedIframeHostnames || options.allowedIframeDomains) {\n const allowedHostname = (options.allowedIframeHostnames || []).find(function (hostname) {\n return hostname === parsed.url.hostname;\n });\n const allowedDomain = (options.allowedIframeDomains || []).find(function(domain) {\n return parsed.url.hostname === domain || parsed.url.hostname.endsWith(`.${domain}`);\n });\n allowed = allowedHostname || allowedDomain;\n }\n } catch (e) {\n // Unparseable iframe src\n allowed = false;\n }\n if (!allowed) {\n delete frame.attribs[a];\n return;\n }\n }\n if (a === 'srcset') {\n try {\n let parsed = parseSrcset(value);\n parsed.forEach(function(value) {\n if (naughtyHref('srcset', value.url)) {\n value.evil = true;\n }\n });\n parsed = filter(parsed, function(v) {\n return !v.evil;\n });\n if (!parsed.length) {\n delete frame.attribs[a];\n return;\n } else {\n value = stringifySrcset(filter(parsed, function(v) {\n return !v.evil;\n }));\n frame.attribs[a] = value;\n }\n } catch (e) {\n // Unparseable srcset\n delete frame.attribs[a];\n return;\n }\n }\n if (a === 'class') {\n const allowedSpecificClasses = allowedClassesMap[name];\n const allowedWildcardClasses = allowedClassesMap['*'];\n const allowedSpecificClassesGlob = allowedClassesGlobMap[name];\n const allowedSpecificClassesRegex = allowedClassesRegexMap[name];\n const allowedWildcardClassesRegex = allowedClassesRegexMap['*'];\n const allowedWildcardClassesGlob = allowedClassesGlobMap['*'];\n const allowedClassesGlobs = [\n allowedSpecificClassesGlob,\n allowedWildcardClassesGlob\n ]\n .concat(allowedSpecificClassesRegex, allowedWildcardClassesRegex)\n .filter(function (t) {\n return t;\n });\n if (allowedSpecificClasses && allowedWildcardClasses) {\n value = filterClasses(value, deepmerge(allowedSpecificClasses, allowedWildcardClasses), allowedClassesGlobs);\n } else {\n value = filterClasses(value, allowedSpecificClasses || allowedWildcardClasses, allowedClassesGlobs);\n }\n if (!value.length) {\n delete frame.attribs[a];\n return;\n }\n }\n if (a === 'style') {\n if (options.parseStyleAttributes) {\n try {\n const abstractSyntaxTree = postcssParse(name + ' {' + value + '}', { map: false });\n const filteredAST = filterCss(abstractSyntaxTree, options.allowedStyles);\n\n value = stringifyStyleAttributes(filteredAST);\n\n if (value.length === 0) {\n delete frame.attribs[a];\n return;\n }\n } catch (e) {\n if (typeof window !== 'undefined') {\n console.warn('Failed to parse \"' + name + ' {' + value + '}' + '\", If you\\'re running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547');\n }\n delete frame.attribs[a];\n return;\n }\n } else if (options.allowedStyles) {\n throw new Error('allowedStyles option cannot be used together with parseStyleAttributes: false.');\n }\n }\n result += ' ' + a;\n if (value && value.length) {\n result += '=\"' + escapeHtml(value, true) + '\"';\n } else if (options.allowedEmptyAttributes.includes(a)) {\n result += '=\"\"';\n }\n } else {\n delete frame.attribs[a];\n }\n });\n }\n if (options.selfClosing.indexOf(name) !== -1) {\n result += ' />';\n } else {\n result += '>';\n if (frame.innerText && !hasText && !options.textFilter) {\n result += escapeHtml(frame.innerText);\n addedText = true;\n }\n }\n if (skip) {\n result = tempResult + escapeHtml(result);\n tempResult = '';\n }\n frame.openingTagLength = result.length - frame.tagPosition;\n },\n ontext: function(text) {\n if (skipText) {\n return;\n }\n const lastFrame = stack[stack.length - 1];\n let tag;\n\n if (lastFrame) {\n tag = lastFrame.tag;\n // If inner text was set by transform function then let's use it\n text = lastFrame.innerText !== undefined ? lastFrame.innerText : text;\n }\n\n if (options.disallowedTagsMode === 'completelyDiscard' && !tagAllowed(tag)) {\n text = '';\n } else if ((options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') && ((tag === 'script') || (tag === 'style'))) {\n // htmlparser2 gives us these as-is. Escaping them ruins the content. Allowing\n // script tags is, by definition, game over for XSS protection, so if that's\n // your concern, don't allow them. The same is essentially true for style tags\n // which have their own collection of XSS vectors.\n result += text;\n } else if (!addedText) {\n const escaped = escapeHtml(text, false);\n if (options.textFilter) {\n result += options.textFilter(escaped, tag);\n } else {\n result += escaped;\n }\n }\n if (stack.length) {\n const frame = stack[stack.length - 1];\n frame.text += text;\n }\n },\n onclosetag: function(name, isImplied) {\n if (options.onCloseTag) {\n options.onCloseTag(name, isImplied);\n }\n\n if (skipText) {\n skipTextDepth--;\n if (!skipTextDepth) {\n skipText = false;\n } else {\n return;\n }\n }\n\n const frame = stack.pop();\n if (!frame) {\n // Do not crash on bad markup\n return;\n }\n\n if (frame.tag !== name) {\n // Another case of bad markup.\n // Push to stack, so that it will be used in future closing tags.\n stack.push(frame);\n return;\n }\n\n skipText = options.enforceHtmlBoundary ? name === 'html' : false;\n depth--;\n const skip = skipMap[depth];\n if (skip) {\n delete skipMap[depth];\n if (options.disallowedTagsMode === 'discard' || options.disallowedTagsMode === 'completelyDiscard') {\n frame.updateParentNodeText();\n return;\n }\n tempResult = result;\n result = '';\n }\n\n if (transformMap[depth]) {\n name = transformMap[depth];\n delete transformMap[depth];\n }\n\n if (options.exclusiveFilter) {\n const filterResult = options.exclusiveFilter(frame);\n if (filterResult === 'excludeTag') {\n if (skip) {\n // no longer escaping the tag since it's not added at all\n result = tempResult;\n tempResult = '';\n }\n // remove the opening tag from the result\n result = result.substring(0, frame.tagPosition) + result.substring(frame.tagPosition + frame.openingTagLength);\n return;\n } else if (filterResult) {\n result = result.substring(0, frame.tagPosition);\n return;\n }\n }\n\n frame.updateParentNodeMediaChildren();\n frame.updateParentNodeText();\n\n if (\n // Already output />\n options.selfClosing.indexOf(name) !== -1 ||\n // Escaped tag, closing tag is implied\n (isImplied && !tagAllowed(name) && [ 'escape', 'recursiveEscape' ].indexOf(options.disallowedTagsMode) >= 0)\n ) {\n if (skip) {\n result = tempResult;\n tempResult = '';\n }\n return;\n }\n\n result += '</' + name + '>';\n if (skip) {\n result = tempResult + escapeHtml(result);\n tempResult = '';\n }\n addedText = false;\n }\n }, options.parser);\n parser.write(html);\n parser.end();\n\n return result;\n\n function initializeState() {\n result = '';\n depth = 0;\n stack = [];\n skipMap = {};\n transformMap = {};\n skipText = false;\n skipTextDepth = 0;\n }\n\n function escapeHtml(s, quote) {\n if (typeof (s) !== 'string') {\n s = s + '';\n }\n if (options.parser.decodeEntities) {\n s = s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');\n if (quote) {\n s = s.replace(/\"/g, '"');\n }\n }\n // TODO: this is inadequate because it will pass `&0;`. This approach\n // will not work, each & must be considered with regard to whether it\n // is followed by a 100% syntactically valid entity or not, and escaped\n // if it is not. If this bothers you, don't set parser.decodeEntities\n // to false. (The default is true.)\n s = s.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, '&') // Match ampersands not part of existing HTML entity\n .replace(/</g, '<')\n .replace(/>/g, '>');\n if (quote) {\n s = s.replace(/\"/g, '"');\n }\n return s;\n }\n\n function naughtyHref(name, href) {\n // Browsers ignore character codes of 32 (space) and below in a surprising\n // number of situations. Start reading here:\n // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Embedded_tab\n // eslint-disable-next-line no-control-regex\n href = href.replace(/[\\x00-\\x20]+/g, '');\n // Clobber any comments in URLs, which the browser might\n // interpret inside an XML data island, allowing\n // a javascript: URL to be snuck through\n while (true) {\n const firstIndex = href.indexOf('<!--');\n if (firstIndex === -1) {\n break;\n }\n const lastIndex = href.indexOf('-->', firstIndex + 4);\n if (lastIndex === -1) {\n break;\n }\n href = href.substring(0, firstIndex) + href.substring(lastIndex + 3);\n }\n // Case insensitive so we don't get faked out by JAVASCRIPT #1\n // Allow more characters after the first so we don't get faked\n // out by certain schemes browsers accept\n const matches = href.match(/^([a-zA-Z][a-zA-Z0-9.\\-+]*):/);\n if (!matches) {\n // Protocol-relative URL starting with any combination of '/' and '\\'\n if (href.match(/^[/\\\\]{2}/)) {\n return !options.allowProtocolRelative;\n }\n\n // No scheme\n return false;\n }\n const scheme = matches[1].toLowerCase();\n\n if (has(options.allowedSchemesByTag, name)) {\n return options.allowedSchemesByTag[name].indexOf(scheme) === -1;\n }\n\n return !options.allowedSchemes || options.allowedSchemes.indexOf(scheme) === -1;\n }\n\n function parseUrl(value) {\n value = value.replace(/^(\\w+:)?\\s*[\\\\/]\\s*[\\\\/]/, '$1//');\n if (value.startsWith('relative:')) {\n // An attempt to exploit our workaround for base URLs being\n // mandatory for relative URL validation in the WHATWG\n // URL parser, reject it\n throw new Error('relative: exploit attempt');\n }\n // naughtyHref is in charge of whether protocol relative URLs\n // are cool. Here we are concerned just with allowed hostnames and\n // whether to allow relative URLs.\n //\n // Build a placeholder \"base URL\" against which any reasonable\n // relative URL may be parsed successfully\n let base = 'relative://relative-site';\n for (let i = 0; (i < 100); i++) {\n base += `/${i}`;\n }\n\n const parsed = new URL(value, base);\n\n const isRelativeUrl = parsed && parsed.hostname === 'relative-site' && parsed.protocol === 'relative:';\n return {\n isRelativeUrl,\n url: parsed\n };\n }\n /**\n * Filters user input css properties by allowlisted regex attributes.\n * Modifies the abstractSyntaxTree object.\n *\n * @param {object} abstractSyntaxTree - Object representation of CSS attributes.\n * @property {array[Declaration]} abstractSyntaxTree.nodes[0] - Each object cointains prop and value key, i.e { prop: 'color', value: 'red' }.\n * @param {object} allowedStyles - Keys are properties (i.e color), value is list of permitted regex rules (i.e /green/i).\n * @return {object} - The modified tree.\n */\n function filterCss(abstractSyntaxTree, allowedStyles) {\n if (!allowedStyles) {\n return abstractSyntaxTree;\n }\n\n const astRules = abstractSyntaxTree.nodes[0];\n let selectedRule;\n\n // Merge global and tag-specific styles into new AST.\n if (allowedStyles[astRules.selector] && allowedStyles['*']) {\n selectedRule = deepmerge(\n allowedStyles[astRules.selector],\n allowedStyles['*']\n );\n } else {\n selectedRule = allowedStyles[astRules.selector] || allowedStyles['*'];\n }\n\n if (selectedRule) {\n abstractSyntaxTree.nodes[0].nodes = astRules.nodes.reduce(filterDeclarations(selectedRule), []);\n }\n\n return abstractSyntaxTree;\n }\n\n /**\n * Extracts the style attributes from an AbstractSyntaxTree and formats those\n * values in the inline style attribute format.\n *\n * @param {AbstractSyntaxTree} filteredAST\n * @return {string} - Example: \"color:yellow;text-align:center !important;font-family:helvetica;\"\n */\n function stringifyStyleAttributes(filteredAST) {\n return filteredAST.nodes[0].nodes\n .reduce(function(extractedAttributes, attrObject) {\n extractedAttributes.push(\n `${attrObject.prop}:${attrObject.value}${attrObject.important ? ' !important' : ''}`\n );\n return extractedAttributes;\n }, [])\n .join(';');\n }\n\n /**\n * Filters the existing attributes for the given property. Discards any attributes\n * which don't match the allowlist.\n *\n * @param {object} selectedRule - Example: { color: red, font-family: helvetica }\n * @param {array} allowedDeclarationsList - List of declarations which pass the allowlist.\n * @param {object} attributeObject - Object representing the current css property.\n * @property {string} attributeObject.type - Typically 'declaration'.\n * @property {string} attributeObject.prop - The CSS property, i.e 'color'.\n * @property {string} attributeObject.value - The corresponding value to the css property, i.e 'red'.\n * @return {function} - When used in Array.reduce, will return an array of Declaration objects\n */\n function filterDeclarations(selectedRule) {\n return function (allowedDeclarationsList, attributeObject) {\n // If this property is allowlisted...\n if (has(selectedRule, attributeObject.prop)) {\n const matchesRegex = selectedRule[attributeObject.prop].some(function(regularExpression) {\n return regularExpression.test(attributeObject.value);\n });\n\n if (matchesRegex) {\n allowedDeclarationsList.push(attributeObject);\n }\n }\n return allowedDeclarationsList;\n };\n }\n\n function filterClasses(classes, allowed, allowedGlobs) {\n if (!allowed) {\n // The class attribute is allowed without filtering on this tag\n return classes;\n }\n classes = classes.split(/\\s+/);\n return classes.filter(function(clss) {\n return allowed.indexOf(clss) !== -1 || allowedGlobs.some(function(glob) {\n return glob.test(clss);\n });\n }).join(' ');\n }\n}\n\n// Defaults are accessible to you so that you can use them as a starting point\n// programmatically if you wish\n\nconst htmlParserDefaults = {\n decodeEntities: true\n};\nsanitizeHtml.defaults = {\n allowedTags: [\n // Sections derived from MDN element categories and limited to the more\n // benign categories.\n // https://developer.mozilla.org/en-US/docs/Web/HTML/Element\n // Content sectioning\n 'address', 'article', 'aside', 'footer', 'header',\n 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hgroup',\n 'main', 'nav', 'section',\n // Text content\n 'blockquote', 'dd', 'div', 'dl', 'dt', 'figcaption', 'figure',\n 'hr', 'li', 'menu', 'ol', 'p', 'pre', 'ul',\n // Inline text semantics\n 'a', 'abbr', 'b', 'bdi', 'bdo', 'br', 'cite', 'code', 'data', 'dfn',\n 'em', 'i', 'kbd', 'mark', 'q',\n 'rb', 'rp', 'rt', 'rtc', 'ruby',\n 's', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'time', 'u', 'var', 'wbr',\n // Table content\n 'caption', 'col', 'colgroup', 'table', 'tbody', 'td', 'tfoot', 'th',\n 'thead', 'tr'\n ],\n // Tags that cannot be boolean\n nonBooleanAttributes: [\n 'abbr', 'accept', 'accept-charset', 'accesskey', 'action',\n 'allow', 'alt', 'as', 'autocapitalize', 'autocomplete',\n 'blocking', 'charset', 'cite', 'class', 'color', 'cols',\n 'colspan', 'content', 'contenteditable', 'coords', 'crossorigin',\n 'data', 'datetime', 'decoding', 'dir', 'dirname', 'download',\n 'draggable', 'enctype', 'enterkeyhint', 'fetchpriority', 'for',\n 'form', 'formaction', 'formenctype', 'formmethod', 'formtarget',\n 'headers', 'height', 'hidden', 'high', 'href', 'hreflang',\n 'http-equiv', 'id', 'imagesizes', 'imagesrcset', 'inputmode',\n 'integrity', 'is', 'itemid', 'itemprop', 'itemref', 'itemtype',\n 'kind', 'label', 'lang', 'list', 'loading', 'low', 'max',\n 'maxlength', 'media', 'method', 'min', 'minlength', 'name',\n 'nonce', 'optimum', 'pattern', 'ping', 'placeholder', 'popover',\n 'popovertarget', 'popovertargetaction', 'poster', 'preload',\n 'referrerpolicy', 'rel', 'rows', 'rowspan', 'sandbox', 'scope',\n 'shape', 'size', 'sizes', 'slot', 'span', 'spellcheck', 'src',\n 'srcdoc', 'srclang', 'srcset', 'start', 'step', 'style',\n 'tabindex', 'target', 'title', 'translate', 'type', 'usemap',\n 'value', 'width', 'wrap',\n // Event handlers\n 'onauxclick', 'onafterprint', 'onbeforematch', 'onbeforeprint',\n 'onbeforeunload', 'onbeforetoggle', 'onblur', 'oncancel',\n 'oncanplay', 'oncanplaythrough', 'onchange', 'onclick', 'onclose',\n 'oncontextlost', 'oncontextmenu', 'oncontextrestored', 'oncopy',\n 'oncuechange', 'oncut', 'ondblclick', 'ondrag', 'ondragend',\n 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart',\n 'ondrop', 'ondurationchange', 'onemptied', 'onended',\n 'onerror', 'onfocus', 'onformdata', 'onhashchange', 'oninput',\n 'oninvalid', 'onkeydown', 'onkeypress', 'onkeyup',\n 'onlanguagechange', 'onload', 'onloadeddata', 'onloadedmetadata',\n 'onloadstart', 'onmessage', 'onmessageerror', 'onmousedown',\n 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout',\n 'onmouseover', 'onmouseup', 'onoffline', 'ononline', 'onpagehide',\n 'onpageshow', 'onpaste', 'onpause', 'onplay', 'onplaying',\n 'onpopstate', 'onprogress', 'onratechange', 'onreset', 'onresize',\n 'onrejectionhandled', 'onscroll', 'onscrollend',\n 'onsecuritypolicyviolation', 'onseeked', 'onseeking', 'onselect',\n 'onslotchange', 'onstalled', 'onstorage', 'onsubmit', 'onsuspend',\n 'ontimeupdate', 'ontoggle', 'onunhandledrejection', 'onunload',\n 'onvolumechange', 'onwaiting', 'onwheel'\n ],\n disallowedTagsMode: 'discard',\n allowedAttributes: {\n a: [ 'href', 'name', 'target' ],\n // We don't currently allow img itself by default, but\n // these attributes would make sense if we did.\n img: [ 'src', 'srcset', 'alt', 'title', 'width', 'height', 'loading' ]\n },\n allowedEmptyAttributes: [\n 'alt'\n ],\n // Lots of these won't come up by default because we don't allow them\n selfClosing: [ 'img', 'br', 'hr', 'area', 'base', 'basefont', 'input', 'link', 'meta' ],\n // URL schemes we permit\n allowedSchemes: [ 'http', 'https', 'ftp', 'mailto', 'tel' ],\n allowedSchemesByTag: {},\n allowedSchemesAppliedToAttributes: [ 'href', 'src', 'cite' ],\n allowProtocolRelative: true,\n enforceHtmlBoundary: false,\n parseStyleAttributes: true,\n preserveEscapedAttributes: false\n};\n\nsanitizeHtml.simpleTransform = function(newTagName, newAttribs, merge) {\n merge = (merge === undefined) ? true : merge;\n newAttribs = newAttribs || {};\n\n return function(tagName, attribs) {\n let attrib;\n if (merge) {\n for (attrib in newAttribs) {\n attribs[attrib] = newAttribs[attrib];\n }\n } else {\n attribs = newAttribs;\n }\n\n return {\n tagName: newTagName,\n attribs: attribs\n };\n };\n};\n"],"names":["htmlparser","require$$0","escapeStringRegexp","require$$1","isPlainObject","require$$2","deepmerge","require$$3","parseSrcset","require$$4","postcssParse","require$$5","mediaTags","vulnerableTags","each","obj","cb","key","has","filter","a","n","v","isEmptyObject","stringifySrcset","parsedSrcset","part","sanitizeHtml_1","sanitizeHtml","VALID_HTML_ATTRIBUTE_NAME","html","options","_recursing","result","tempResult","Frame","tag","attribs","that","stack","parentFrame","htmlParserDefaults","tagAllowed","name","nonTextTagsArray","allowedAttributesMap","allowedAttributesGlobMap","attributes","globRegex","allowedClassesMap","allowedClassesGlobMap","allowedClassesRegexMap","classes","transformTagsMap","transformTagsAll","transform","transFun","depth","skipMap","transformMap","skipText","skipTextDepth","addedText","initializeState","parser","frame","skip","hasText","transformedTag","escaped","escapeHtml","value","passedAllowedAttributesMapCheck","newValue","splitStrArray","s","naughtyHref","allowed","parsed","parseUrl","allowedHostname","hostname","allowedDomain","domain","allowedSpecificClasses","allowedWildcardClasses","allowedSpecificClassesGlob","allowedSpecificClassesRegex","allowedWildcardClassesRegex","allowedWildcardClassesGlob","allowedClassesGlobs","t","filterClasses","abstractSyntaxTree","filteredAST","filterCss","stringifyStyleAttributes","text","lastFrame","isImplied","filterResult","quote","href","firstIndex","lastIndex","matches","scheme","base","i","allowedStyles","astRules","selectedRule","filterDeclarations","extractedAttributes","attrObject","allowedDeclarationsList","attributeObject","regularExpression","allowedGlobs","clss","glob","newTagName","newAttribs","merge","tagName","attrib"],"mappings":"8TAAA,MAAMA,EAAaC,G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T,QAASpF,EAEf,CACA","x_google_ignoreList":[0]}
|
package/dist/index.cjs603.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs639.js"),b=require("./index.cjs640.js"),D=require("./index.cjs641.js"),H=require("./index.cjs642.js"),h=require("./index.cjs643.js"),_=require("./index.cjs644.js");var m;function w(){return m||(m=1,(function(t){var v=u.__exports&&u.__exports.__createBinding||(Object.create?(function(e,r,n,a){a===void 0&&(a=n);var i=Object.getOwnPropertyDescriptor(r,n);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(e,a,i)}):(function(e,r,n,a){a===void 0&&(a=n),e[a]=r[n]})),O=u.__exports&&u.__exports.__setModuleDefault||(Object.create?(function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}):function(e,r){e.default=r}),l=u.__exports&&u.__exports.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&v(r,e,n);return O(r,e),r},P=u.__exports&&u.__exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var d=b.__require(),q=b.__require();Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return q.Parser}});var c=D.__require(),f=D.__require();Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return f.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return f.DomHandler}});function o(e,r){var n=new c.DomHandler(void 0,r);return new d.Parser(n,r).end(e),n.root}t.parseDocument=o;function s(e,r){return o(e,r).children}t.parseDOM=s;function g(e,r,n){var a=new c.DomHandler(e,r,n);return new d.Parser(a,r)}t.createDomStream=g;var j=H.__require();Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return P(j).default}}),t.ElementType=l(h.__require());var p=_.__require(),y=_.__require();Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return y.getFeed}});var M={xmlMode:!0};function F(e,r){return r===void 0&&(r=M),(0,p.getFeed)(s(e,r))}t.parseFeed=F,t.DomUtils=l(_.__require())})(u.__exports)),u.__exports}exports.__require=w;
|
|
2
2
|
//# sourceMappingURL=index.cjs603.js.map
|
package/dist/index.cjs603.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs603.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs603.js","sources":["../node_modules/htmlparser2/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomUtils = exports.parseFeed = exports.getFeed = exports.ElementType = exports.Tokenizer = exports.createDomStream = exports.parseDOM = exports.parseDocument = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0;\nvar Parser_js_1 = require(\"./Parser.js\");\nvar Parser_js_2 = require(\"./Parser.js\");\nObject.defineProperty(exports, \"Parser\", { enumerable: true, get: function () { return Parser_js_2.Parser; } });\nvar domhandler_1 = require(\"domhandler\");\nvar domhandler_2 = require(\"domhandler\");\nObject.defineProperty(exports, \"DomHandler\", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });\n// Old name for DomHandler\nObject.defineProperty(exports, \"DefaultHandler\", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });\n// Helper methods\n/**\n * Parses the data, returns the resulting document.\n *\n * @param data The data that should be parsed.\n * @param options Optional options for the parser and DOM builder.\n */\nfunction parseDocument(data, options) {\n var handler = new domhandler_1.DomHandler(undefined, options);\n new Parser_js_1.Parser(handler, options).end(data);\n return handler.root;\n}\nexports.parseDocument = parseDocument;\n/**\n * Parses data, returns an array of the root nodes.\n *\n * Note that the root nodes still have a `Document` node as their parent.\n * Use `parseDocument` to get the `Document` node instead.\n *\n * @param data The data that should be parsed.\n * @param options Optional options for the parser and DOM builder.\n * @deprecated Use `parseDocument` instead.\n */\nfunction parseDOM(data, options) {\n return parseDocument(data, options).children;\n}\nexports.parseDOM = parseDOM;\n/**\n * Creates a parser instance, with an attached DOM handler.\n *\n * @param callback A callback that will be called once parsing has been completed.\n * @param options Optional options for the parser and DOM builder.\n * @param elementCallback An optional callback that will be called every time a tag has been completed inside of the DOM.\n */\nfunction createDomStream(callback, options, elementCallback) {\n var handler = new domhandler_1.DomHandler(callback, options, elementCallback);\n return new Parser_js_1.Parser(handler, options);\n}\nexports.createDomStream = createDomStream;\nvar Tokenizer_js_1 = require(\"./Tokenizer.js\");\nObject.defineProperty(exports, \"Tokenizer\", { enumerable: true, get: function () { return __importDefault(Tokenizer_js_1).default; } });\n/*\n * All of the following exports exist for backwards-compatibility.\n * They should probably be removed eventually.\n */\nexports.ElementType = __importStar(require(\"domelementtype\"));\nvar domutils_1 = require(\"domutils\");\nvar domutils_2 = require(\"domutils\");\nObject.defineProperty(exports, \"getFeed\", { enumerable: true, get: function () { return domutils_2.getFeed; } });\nvar parseFeedDefaultOptions = { xmlMode: true };\n/**\n * Parse a feed.\n *\n * @param feed The feed that should be parsed, as a string.\n * @param options Optionally, options for parsing. When using this, you should set `xmlMode` to `true`.\n */\nfunction parseFeed(feed, options) {\n if (options === void 0) { options = parseFeedDefaultOptions; }\n return (0, domutils_1.getFeed)(parseDOM(feed, options));\n}\nexports.parseFeed = parseFeed;\nexports.DomUtils = __importStar(require(\"domutils\"));\n//# sourceMappingURL=index.js.map"],"names":["__createBinding","this","o","m","k","k2","desc","__setModuleDefault","v","__importStar","mod","result","__importDefault","exports","Parser_js_1","require$$0","Parser_js_2","domhandler_1","require$$1","domhandler_2","parseDocument","data","options","handler","parseDOM","createDomStream","callback","elementCallback","Tokenizer_js_1","require$$2","require$$3","domutils_1","require$$4","domutils_2","parseFeedDefaultOptions","parseFeed","feed"],"mappings":"+TACA,IAAIA,EAAmBC,aAAQA,EAAAA,UAAK,kBAAqB,OAAO,QAAU,SAASC,EAAGC,EAAGC,EAAGC,EAAI,CACxFA,IAAO,SAAWA,EAAKD,GAC3B,IAAIE,EAAO,OAAO,yBAAyBH,EAAGC,CAAC,GAC3C,CAACE,IAAS,QAASA,EAAO,CAACH,EAAE,WAAaG,EAAK,UAAYA,EAAK,iBAClEA,EAAO,CAAE,WAAY,GAAM,IAAK,UAAW,CAAE,OAAOH,EAAEC,CAAC,EAAI,GAE7D,OAAO,eAAeF,EAAGG,EAAIC,CAAI,CACrC,IAAM,SAASJ,EAAGC,EAAGC,EAAGC,EAAI,CACpBA,IAAO,SAAWA,EAAKD,GAC3BF,EAAEG,CAAE,EAAIF,EAAEC,CAAC,CACf,IACIG,EAAsBN,EAAAA,WAAQA,YAAK,qBAAwB,OAAO,QAAU,SAASC,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MC,EAAS,CAClC,IAAIC,EAAU,IAAIN,EAAa,WAAW,OAAWK,CAAO,EAC5D,WAAIR,EAAY,OAAOS,EAASD,CAAO,EAAE,IAAID,CAAI,EAC1CE,EAAQ,IACnB,CACAV,EAAA,cAAwBO,EAWxB,SAASI,EAASH,EAAMC,EAAS,CAC7B,OAAOF,EAAcC,EAAMC,CAAO,EAAE,QACxC,CACAT,EAAA,SAAmBW,EAQnB,SAASC,EAAgBC,EAAUJ,EAASK,EAAiB,CACzD,IAAIJ,EAAU,IAAIN,EAAa,WAAWS,EAAUJ,EAASK,CAAe,EAC5E,OAAO,IAAIb,EAAY,OAAOS,EAASD,CAAO,CAClD,CACAT,EAAA,gBAA0BY,EAC1B,IAAIG,EAAiBC,EAAAA,UAAA,EACrB,OAAO,eAAehB,EAAS,YAAa,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOD,EAAgBgB,CAAc,EAAE,OAAQ,CAAE,CAAE,EAKtIf,EAAA,YAAsBJ,EAAaqB,EAAAA,WAAyB,EAC5D,IAAIC,EAAaC,EAAAA,UAAA,EACbC,EAAaD,EAAAA,UAAA,EACjB,OAAO,eAAenB,EAAS,UAAW,CAAE,WAAY,GAAM,IAAK,UAAY,CAAE,OAAOoB,EAAW,OAAQ,CAAE,CAAE,EAC/G,IAAIC,EAA0B,CAAE,QAAS,EAAI,EAO7C,SAASC,EAAUC,EAAMd,EAAS,CAC9B,OAAIA,IAAY,SAAUA,EAAUY,MACzBH,EAAW,SAASP,EAASY,EAAMd,CAAO,CAAC,CAC1D,CACAT,EAAA,UAAoBsB,EACpBtB,EAAA,SAAmBJ,EAAauB,EAAAA,WAAmB","x_google_ignoreList":[0]}
|
package/dist/index.cjs604.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,t;function i(){return t||(t=1,e=r=>{if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),e}exports.__require=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs604.js.map
|
package/dist/index.cjs604.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs604.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs604.js","sources":["../node_modules/escape-string-regexp/index.js"],"sourcesContent":["'use strict';\n\nmodule.exports = string => {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a \\unnnn escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n};\n"],"names":["escapeStringRegexp","string"],"mappings":"oHAEAA,EAAiBC,GAAU,CAC1B,GAAI,OAAOA,GAAW,SACrB,MAAM,IAAI,UAAU,mBAAmB,EAKxC,OAAOA,EACL,QAAQ,sBAAuB,MAAM,EACrC,QAAQ,KAAM,OAAO,CACxB","x_google_ignoreList":[0]}
|
package/dist/index.cjs605.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs645.js");var o;function s(){if(o)return t.__exports;o=1,Object.defineProperty(t.__exports,"__esModule",{value:!0});/*!
|
|
2
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/function n(e){return Object.prototype.toString.call(e)==="[object Object]"}function u(e){var r,i;return n(e)===!1?!1:(r=e.constructor,r===void 0?!0:(i=r.prototype,!(n(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}return t.__exports.isPlainObject=u,t.__exports}exports.__require=s;
|
|
2
7
|
//# sourceMappingURL=index.cjs605.js.map
|
package/dist/index.cjs605.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs605.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs605.js","sources":["../node_modules/is-plain-object/dist/is-plain-object.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n/*!\n * is-plain-object <https://github.com/jonschlinkert/is-plain-object>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nfunction isObject(o) {\n return Object.prototype.toString.call(o) === '[object Object]';\n}\n\nfunction isPlainObject(o) {\n var ctor,prot;\n\n if (isObject(o) === false) return false;\n\n // If has modified constructor\n ctor = o.constructor;\n if (ctor === undefined) return true;\n\n // If has modified prototype\n prot = ctor.prototype;\n if (isObject(prot) === false) return false;\n\n // If constructor does not have an Object-specific method\n if (prot.hasOwnProperty('isPrototypeOf') === false) {\n return false;\n }\n\n // Most likely a plain Object\n return true;\n}\n\nexports.isPlainObject = isPlainObject;\n"],"names":["isPlainObject_1","isObject","o","isPlainObject","ctor","prot"],"mappings":"oKAEA,OAAO,eAAeA,EAAAA,UAAS,aAAc,CAAE,MAAO,GAAM,EAE5D;AAAA;AAAA;AAAA;AAAA;AAAA,GAOA,SAASC,EAASC,EAAG,CACnB,OAAO,OAAO,UAAU,SAAS,KAAKA,CAAC,IAAM,iBAC/C,CAEA,SAASC,EAAcD,EAAG,CACxB,IAAIE,EAAKC,EAET,OAAIJ,EAASC,CAAC,IAAM,GAAc,IAGlCE,EAAOF,EAAE,YACLE,IAAS,OAAkB,IAG/BC,EAAOD,EAAK,UACR,EAAAH,EAASI,CAAI,IAAM,IAGnBA,EAAK,eAAe,eAAe,IAAM,KAM/C,CAEAL,OAAAA,EAAAA,UAAA,cAAwBG","x_google_ignoreList":[0]}
|
package/dist/index.cjs606.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var f,b;function w(){if(b)return f;b=1;var s=function(r){return o(r)&&!y(r)};function o(e){return!!e&&typeof e=="object"}function y(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||m(e)}var O=typeof Symbol=="function"&&Symbol.for,j=O?Symbol.for("react.element"):60103;function m(e){return e.$$typeof===j}function g(e){return Array.isArray(e)?[]:{}}function a(e,r){return r.clone!==!1&&r.isMergeableObject(e)?u(g(e),e,r):e}function M(e,r,n){return e.concat(r).map(function(c){return a(c,n)})}function A(e,r){if(!r.customMerge)return u;var n=r.customMerge(e);return typeof n=="function"?n:u}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return Object.propertyIsEnumerable.call(e,r)}):[]}function i(e){return Object.keys(e).concat(d(e))}function l(e,r){try{return r in e}catch{return!1}}function E(e,r){return l(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function S(e,r,n){var c={};return n.isMergeableObject(e)&&i(e).forEach(function(t){c[t]=a(e[t],n)}),i(r).forEach(function(t){E(e,t)||(l(e,t)&&n.isMergeableObject(r[t])?c[t]=A(t,n)(e[t],r[t],n):c[t]=a(r[t],n))}),c}function u(e,r,n){n=n||{},n.arrayMerge=n.arrayMerge||M,n.isMergeableObject=n.isMergeableObject||s,n.cloneUnlessOtherwiseSpecified=a;var c=Array.isArray(r),t=Array.isArray(e),h=c===t;return h?c?n.arrayMerge(e,r,n):S(e,r,n):a(r,n)}u.all=function(r,n){if(!Array.isArray(r))throw new Error("first argument should be an array");return r.reduce(function(c,t){return u(c,t,n)},{})};var p=u;return f=p,f}exports.__require=w;
|
|
2
2
|
//# sourceMappingURL=index.cjs606.js.map
|
package/dist/index.cjs606.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs606.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs606.js","sources":["../node_modules/deepmerge/dist/cjs.js"],"sourcesContent":["'use strict';\n\nvar isMergeableObject = function isMergeableObject(value) {\n\treturn isNonNullObject(value)\n\t\t&& !isSpecial(value)\n};\n\nfunction isNonNullObject(value) {\n\treturn !!value && typeof value === 'object'\n}\n\nfunction isSpecial(value) {\n\tvar stringValue = Object.prototype.toString.call(value);\n\n\treturn stringValue === '[object RegExp]'\n\t\t|| stringValue === '[object Date]'\n\t\t|| isReactElement(value)\n}\n\n// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n\treturn value.$$typeof === REACT_ELEMENT_TYPE\n}\n\nfunction emptyTarget(val) {\n\treturn Array.isArray(val) ? [] : {}\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n\treturn (options.clone !== false && options.isMergeableObject(value))\n\t\t? deepmerge(emptyTarget(value), value, options)\n\t\t: value\n}\n\nfunction defaultArrayMerge(target, source, options) {\n\treturn target.concat(source).map(function(element) {\n\t\treturn cloneUnlessOtherwiseSpecified(element, options)\n\t})\n}\n\nfunction getMergeFunction(key, options) {\n\tif (!options.customMerge) {\n\t\treturn deepmerge\n\t}\n\tvar customMerge = options.customMerge(key);\n\treturn typeof customMerge === 'function' ? customMerge : deepmerge\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n\treturn Object.getOwnPropertySymbols\n\t\t? Object.getOwnPropertySymbols(target).filter(function(symbol) {\n\t\t\treturn Object.propertyIsEnumerable.call(target, symbol)\n\t\t})\n\t\t: []\n}\n\nfunction getKeys(target) {\n\treturn Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))\n}\n\nfunction propertyIsOnObject(object, property) {\n\ttry {\n\t\treturn property in object\n\t} catch(_) {\n\t\treturn false\n\t}\n}\n\n// Protects from prototype poisoning and unexpected merging up the prototype chain.\nfunction propertyIsUnsafe(target, key) {\n\treturn propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n\t\t&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n\t\t\t&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n\tvar destination = {};\n\tif (options.isMergeableObject(target)) {\n\t\tgetKeys(target).forEach(function(key) {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n\t\t});\n\t}\n\tgetKeys(source).forEach(function(key) {\n\t\tif (propertyIsUnsafe(target, key)) {\n\t\t\treturn\n\t\t}\n\n\t\tif (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n\t\t\tdestination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n\t\t} else {\n\t\t\tdestination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n\t\t}\n\t});\n\treturn destination\n}\n\nfunction deepmerge(target, source, options) {\n\toptions = options || {};\n\toptions.arrayMerge = options.arrayMerge || defaultArrayMerge;\n\toptions.isMergeableObject = options.isMergeableObject || isMergeableObject;\n\t// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n\t// implementations can use it. The caller may not replace it.\n\toptions.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n\n\tvar sourceIsArray = Array.isArray(source);\n\tvar targetIsArray = Array.isArray(target);\n\tvar sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n\tif (!sourceAndTargetTypesMatch) {\n\t\treturn cloneUnlessOtherwiseSpecified(source, options)\n\t} else if (sourceIsArray) {\n\t\treturn options.arrayMerge(target, source, options)\n\t} else {\n\t\treturn mergeObject(target, source, options)\n\t}\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n\tif (!Array.isArray(array)) {\n\t\tthrow new Error('first argument should be an array')\n\t}\n\n\treturn array.reduce(function(prev, next) {\n\t\treturn deepmerge(prev, next, options)\n\t}, {})\n};\n\nvar deepmerge_1 = deepmerge;\n\nmodule.exports = deepmerge_1;\n"],"names":["isMergeableObject","value","isNonNullObject","isSpecial","stringValue","isReactElement","canUseSymbol","REACT_ELEMENT_TYPE","emptyTarget","val","cloneUnlessOtherwiseSpecified","options","deepmerge","defaultArrayMerge","target","source","element","getMergeFunction","key","customMerge","getEnumerableOwnPropertySymbols","symbol","getKeys","propertyIsOnObject","object","property","propertyIsUnsafe","mergeObject","destination","sourceIsArray","targetIsArray","sourceAndTargetTypesMatch","array","prev","next","deepmerge_1","cjs"],"mappings":"uHAEA,IAAIA,EAAoB,SAA2BC,EAAO,CACzD,OAAOC,EAAgBD,CAAK,GACxB,CAACE,EAAUF,CAAK,CACrB,EAEA,SAASC,EAAgBD,EAAO,CAC/B,MAAO,CAAC,CAACA,GAAS,OAAOA,GAAU,QACpC,CAEA,SAASE,EAAUF,EAAO,CACzB,IAAIG,EAAc,OAAO,UAAU,SAAS,KAAKH,CAAK,EAEtD,OAAOG,IAAgB,mBACnBA,IAAgB,iBAChBC,EAAeJ,CAAK,CACzB,CAGA,IAAIK,EAAe,OAAO,QAAW,YAAc,OAAO,IACtDC,EAAqBD,EAAe,OAAO,IAAI,eAAe,EAAI,MAEtE,SAASD,EAAeJ,EAAO,CAC9B,OAAOA,EAAM,WAAaM,CAC3B,CAEA,SAASC,EAAYC,EAAK,CACzB,OAAO,MAAM,QAAQA,CAAG,EAAI,CAAA,EAAK,CAAA,CAClC,CAEA,SAASC,EAA8BT,EAAOU,EAAS,CACtD,OAAQA,EAAQ,QAAU,IAASA,EAAQ,kBAAkBV,CAAK,EAC/DW,E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AG,GAAKP,EAAQ,kBAAkBI,EAAOG,CAAG,CAAC,EAC3EU,EAAYV,CAAG,EAAID,EAAiBC,EAAKP,CAAO,EAAEG,EAAOI,CAAG,EAAGH,EAAOG,CAAG,EAAGP,CAAO,EAEnFiB,EAAYV,CAAG,EAAIR,EAA8BK,EAAOG,CAAG,EAAGP,CAAO,EAExE,CAAE,EACMiB,CACR,CAEA,SAAShB,EAAUE,EAAQC,EAAQJ,EAAS,CAC3CA,EAAUA,GAAW,CAAA,EACrBA,EAAQ,WAAaA,EAAQ,YAAcE,EAC3CF,EAAQ,kBAAoBA,EAAQ,mBAAqBX,EAGzDW,EAAQ,8BAAgCD,EAExC,IAAImB,EAAgB,MAAM,QAAQd,CAAM,EACpCe,EAAgB,MAAM,QAAQhB,CAAM,EACpCiB,EAA4BF,IAAkBC,EAElD,OAAKC,EAEMF,EACHlB,EAAQ,WAAWG,EAAQC,EAAQJ,CAAO,EAE1CgB,EAAYb,EAAQC,EAAQJ,CAAO,EAJnCD,EAA8BK,EAAQJ,CAAO,CAMtD,CAEAC,EAAU,IAAM,SAAsBoB,EAAOrB,EAAS,CACrD,GAAI,CAAC,MAAM,QAAQqB,CAAK,EACvB,MAAM,IAAI,MAAM,mCAAmC,EAGpD,OAAOA,EAAM,OAAO,SAASC,EAAMC,EAAM,CACxC,OAAOtB,EAAUqB,EAAMC,EAAMvB,CAAO,CACtC,EAAI,CAAA,CAAE,CACN,EAEA,IAAIwB,EAAcvB,EAElB,OAAAwB,EAAiBD","x_google_ignoreList":[0]}
|
package/dist/index.cjs607.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs646.js");var F=m.__module.exports,L;function O(){return L||(L=1,(function(C){(function(o,c){C.exports?C.exports=c():o.parseSrcset=c()})(F,function(){return function(o){function c(r){return r===" "||r===" "||r===`
|
|
2
|
+
`||r==="\f"||r==="\r"}function v(r){var s,i=r.exec(o.substring(l));if(i)return s=i[0],l+=s.length,s}for(var P=o.length,$=/^[ \t\n\r\u000c]+/,D=/^[, \t\n\r\u000c]+/,I=/^[^ \t\n\r\u000c]+/,N=/[,]+$/,b=/^\d+$/,A=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,p,u,e,n,t,l=0,q=[];;){if(v(D),l>=P)return q;p=v(I),u=[],p.slice(-1)===","?(p=p.replace(N,""),d()):E()}function E(){for(v($),e="",n="in descriptor";;){if(t=o.charAt(l),n==="in descriptor")if(c(t))e&&(u.push(e),e="",n="after descriptor");else if(t===","){l+=1,e&&u.push(e),d();return}else if(t==="(")e=e+t,n="in parens";else if(t===""){e&&u.push(e),d();return}else e=e+t;else if(n==="in parens")if(t===")")e=e+t,n="in descriptor";else if(t===""){u.push(e),d();return}else e=e+t;else if(n==="after descriptor"&&!c(t))if(t===""){d();return}else n="in descriptor",l-=1;l+=1}}function d(){var r=!1,s,i,g,S,h={},a,_,f,x,w;for(S=0;S<u.length;S++)a=u[S],_=a[a.length-1],f=a.substring(0,a.length-1),x=parseInt(f,10),w=parseFloat(f),b.test(f)&&_==="w"?((s||i)&&(r=!0),x===0?r=!0:s=x):A.test(f)&&_==="x"?((s||i||g)&&(r=!0),w<0?r=!0:i=w):b.test(f)&&_==="h"?((g||i)&&(r=!0),x===0?r=!0:g=x):r=!0;r?console&&console.log&&console.log("Invalid srcset descriptor found in '"+o+"' at '"+a+"'."):(h.url=p,s&&(h.w=s),i&&(h.d=i),g&&(h.h=g),q.push(h))}}})})(m.__module)),m.__module.exports}exports.__require=O;
|
|
2
3
|
//# sourceMappingURL=index.cjs607.js.map
|
package/dist/index.cjs607.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs607.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/layout.props.js"],"sourcesContent":["import{paddingPropDefs as s}from\"./padding.props.js\";import{heightPropDefs as t}from\"./height.props.js\";import{widthPropDefs as o}from\"./width.props.js\";const r=[\"visible\",\"hidden\",\"clip\",\"scroll\",\"auto\"],i=[\"static\",\"relative\",\"absolute\",\"fixed\",\"sticky\"],e=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"-1\",\"-2\",\"-3\",\"-4\",\"-5\",\"-6\",\"-7\",\"-8\",\"-9\"],p=[\"0\",\"1\"],n=[\"0\",\"1\"],u={...s,...o,...t,position:{type:\"enum\",className:\"rt-r-position\",values:i,responsive:!0},inset:{type:\"enum | string\",className:\"rt-r-inset\",customProperties:[\"--inset\"],values:e,responsive:!0},top:{type:\"enum | string\",className:\"rt-r-top\",customProperties:[\"--top\"],values:e,responsive:!0},right:{type:\"enum | string\",className:\"rt-r-right\",customProperties:[\"--right\"],values:e,responsive:!0},bottom:{type:\"enum | string\",className:\"rt-r-bottom\",customProperties:[\"--bottom\"],values:e,responsive:!0},left:{type:\"enum | string\",className:\"rt-r-left\",customProperties:[\"--left\"],values:e,responsive:!0},overflow:{type:\"enum\",className:\"rt-r-overflow\",values:r,responsive:!0},overflowX:{type:\"enum\",className:\"rt-r-ox\",values:r,responsive:!0},overflowY:{type:\"enum\",className:\"rt-r-oy\",values:r,responsive:!0},flexBasis:{type:\"string\",className:\"rt-r-fb\",customProperties:[\"--flex-basis\"],responsive:!0},flexShrink:{type:\"enum | string\",className:\"rt-r-fs\",customProperties:[\"--flex-shrink\"],values:p,responsive:!0},flexGrow:{type:\"enum | string\",className:\"rt-r-fg\",customProperties:[\"--flex-grow\"],values:n,responsive:!0},gridArea:{type:\"string\",className:\"rt-r-ga\",customProperties:[\"--grid-area\"],responsive:!0},gridColumn:{type:\"string\",className:\"rt-r-gc\",customProperties:[\"--grid-column\"],responsive:!0},gridColumnStart:{type:\"string\",className:\"rt-r-gcs\",customProperties:[\"--grid-column-start\"],responsive:!0},gridColumnEnd:{type:\"string\",className:\"rt-r-gce\",customProperties:[\"--grid-column-end\"],responsive:!0},gridRow:{type:\"string\",className:\"rt-r-gr\",customProperties:[\"--grid-row\"],responsive:!0},gridRowStart:{type:\"string\",className:\"rt-r-grs\",customProperties:[\"--grid-row-start\"],responsive:!0},gridRowEnd:{type:\"string\",className:\"rt-r-gre\",customProperties:[\"--grid-row-end\"],responsive:!0}};export{u as layoutPropDefs};\n//# sourceMappingURL=layout.props.js.map\n"],"names":["s","o","t"],"mappings":"mLAA+J,EAAE,CAAC,UAAU,SAAS,OAAO,SAAS,MAAM,EAAE,EAAE,CAAC,SAAS,WAAW,WAAW,QAAQ,QAAQ,EAAE,EAAE,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE,EAAE,CAAC,GAAGA,EAAAA,gBAAE,GAAGC,EAAAA,cAAE,GAAGC,EAAAA,eAAE,SAAS,CAAC,KAAK,OAAO,UAAU,gBAAgB,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,KAAK,gBAAgB,UAAU,aAAa,iBAAiB,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,IAAI,CAAC,KAAK,gBAAgB,UAAU,WAAW,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,CAAC,KAAK,gBAAgB,UAAU,aAAa,iBAAiB,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,OAAO,CAAC,KAAK,gBAAgB,UAAU,cAAc,iBAAiB,CAAC,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,KAAK,CAAC,KAAK,gBAAgB,UAAU,YAAY,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,CAAC,KAAK,OAAO,UAAU,gBAAgB,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,CAAC,KAAK,OAAO,UAAU,UAAU,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,CAAC,KAAK,OAAO,UAAU,UAAU,OAAO,EAAE,WAAW,EAAE,EAAE,UAAU,CAAC,KAAK,SAAS,UAAU,UAAU,iBAAiB,CAAC,cAAc,EAAE,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,gBAAgB,UAAU,UAAU,iBAAiB,CAAC,eAAe,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,CAAC,KAAK,gBAAgB,UAAU,UAAU,iBAAiB,CAAC,aAAa,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,SAAS,CAAC,KAAK,SAAS,UAAU,UAAU,iBAAiB,CAAC,aAAa,EAAE,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,SAAS,UAAU,UAAU,iBAAiB,CAAC,eAAe,EAAE,WAAW,EAAE,EAAE,gBAAgB,CAAC,KAAK,SAAS,UAAU,WAAW,iBAAiB,CAAC,qBAAqB,EAAE,WAAW,EAAE,EAAE,cAAc,CAAC,KAAK,SAAS,UAAU,WAAW,iBAAiB,CAAC,mBAAmB,EAAE,WAAW,EAAE,EAAE,QAAQ,CAAC,KAAK,SAAS,UAAU,UAAU,iBAAiB,CAAC,YAAY,EAAE,WAAW,EAAE,EAAE,aAAa,CAAC,KAAK,SAAS,UAAU,WAAW,iBAAiB,CAAC,kBAAkB,EAAE,WAAW,EAAE,EAAE,WAAW,CAAC,KAAK,SAAS,UAAU,WAAW,iBAAiB,CAAC,gBAAgB,EAAE,WAAW,EAAE,CAAC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs607.js","sources":["../node_modules/parse-srcset/src/parse-srcset.js"],"sourcesContent":["/**\n * Srcset Parser\n *\n * By Alex Bell | MIT License\n *\n * JS Parser for the string value that appears in markup <img srcset=\"here\">\n *\n * @returns Array [{url: _, d: _, w: _, h:_}, ...]\n *\n * Based super duper closely on the reference algorithm at:\n * https://html.spec.whatwg.org/multipage/embedded-content.html#parse-a-srcset-attribute\n *\n * Most comments are copied in directly from the spec\n * (except for comments in parens).\n */\n\n(function (root, factory) {\n\tif (typeof define === 'function' && define.amd) {\n\t\t// AMD. Register as an anonymous module.\n\t\tdefine([], factory);\n\t} else if (typeof module === 'object' && module.exports) {\n\t\t// Node. Does not work with strict CommonJS, but\n\t\t// only CommonJS-like environments that support module.exports,\n\t\t// like Node.\n\t\tmodule.exports = factory();\n\t} else {\n\t\t// Browser globals (root is window)\n\t\troot.parseSrcset = factory();\n\t}\n}(this, function () {\n\n\t// 1. Let input be the value passed to this algorithm.\n\treturn function (input) {\n\n\t\t// UTILITY FUNCTIONS\n\n\t\t// Manual is faster than RegEx\n\t\t// http://bjorn.tipling.com/state-and-regular-expressions-in-javascript\n\t\t// http://jsperf.com/whitespace-character/5\n\t\tfunction isSpace(c) {\n\t\t\treturn (c === \"\\u0020\" || // space\n\t\t\tc === \"\\u0009\" || // horizontal tab\n\t\t\tc === \"\\u000A\" || // new line\n\t\t\tc === \"\\u000C\" || // form feed\n\t\t\tc === \"\\u000D\"); // carriage return\n\t\t}\n\n\t\tfunction collectCharacters(regEx) {\n\t\t\tvar chars,\n\t\t\t\tmatch = regEx.exec(input.substring(pos));\n\t\t\tif (match) {\n\t\t\t\tchars = match[ 0 ];\n\t\t\t\tpos += chars.length;\n\t\t\t\treturn chars;\n\t\t\t}\n\t\t}\n\n\t\tvar inputLength = input.length,\n\n\t\t\t// (Don't use \\s, to avoid matching non-breaking space)\n\t\t\tregexLeadingSpaces = /^[ \\t\\n\\r\\u000c]+/,\n\t\t\tregexLeadingCommasOrSpaces = /^[, \\t\\n\\r\\u000c]+/,\n\t\t\tregexLeadingNotSpaces = /^[^ \\t\\n\\r\\u000c]+/,\n\t\t\tregexTrailingCommas = /[,]+$/,\n\t\t\tregexNonNegativeInteger = /^\\d+$/,\n\n\t\t\t// ( Positive or negative or unsigned integers or decimals, without or without exponents.\n\t\t\t// Must include at least one digit.\n\t\t\t// According to spec tests any decimal point must be followed by a digit.\n\t\t\t// No leading plus sign is allowed.)\n\t\t\t// https://html.spec.whatwg.org/multipage/infrastructure.html#valid-floating-point-number\n\t\t\tregexFloatingPoint = /^-?(?:[0-9]+|[0-9]*\\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,\n\n\t\t\turl,\n\t\t\tdescriptors,\n\t\t\tcurrentDescriptor,\n\t\t\tstate,\n\t\t\tc,\n\n\t\t\t// 2. Let position be a pointer into input, initially pointing at the start\n\t\t\t// of the string.\n\t\t\tpos = 0,\n\n\t\t\t// 3. Let candidates be an initially empty source set.\n\t\t\tcandidates = [];\n\n\t\t// 4. Splitting loop: Collect a sequence of characters that are space\n\t\t// characters or U+002C COMMA characters. If any U+002C COMMA characters\n\t\t// were collected, that is a parse error.\n\t\twhile (true) {\n\t\t\tcollectCharacters(regexLeadingCommasOrSpaces);\n\n\t\t\t// 5. If position is past the end of input, return candidates and abort these steps.\n\t\t\tif (pos >= inputLength) {\n\t\t\t\treturn candidates; // (we're done, this is the sole return path)\n\t\t\t}\n\n\t\t\t// 6. Collect a sequence of characters that are not space characters,\n\t\t\t// and let that be url.\n\t\t\turl = collectCharacters(regexLeadingNotSpaces);\n\n\t\t\t// 7. Let descriptors be a new empty list.\n\t\t\tdescriptors = [];\n\n\t\t\t// 8. If url ends with a U+002C COMMA character (,), follow these substeps:\n\t\t\t//\t\t(1). Remove all trailing U+002C COMMA characters from url. If this removed\n\t\t\t// more than one character, that is a parse error.\n\t\t\tif (url.slice(-1) === \",\") {\n\t\t\t\turl = url.replace(regexTrailingCommas, \"\");\n\t\t\t\t// (Jump ahead to step 9 to skip tokenization and just push the candidate).\n\t\t\t\tparseDescriptors();\n\n\t\t\t\t//\tOtherwise, follow these substeps:\n\t\t\t} else {\n\t\t\t\ttokenize();\n\t\t\t} // (close else of step 8)\n\n\t\t\t// 16. Return to the step labeled splitting loop.\n\t\t} // (Close of big while loop.)\n\n\t\t/**\n\t\t * Tokenizes descriptor properties prior to parsing\n\t\t * Returns undefined.\n\t\t */\n\t\tfunction tokenize() {\n\n\t\t\t// 8.1. Descriptor tokeniser: Skip whitespace\n\t\t\tcollectCharacters(regexLeadingSpaces);\n\n\t\t\t// 8.2. Let current descriptor be the empty string.\n\t\t\tcurrentDescriptor = \"\";\n\n\t\t\t// 8.3. Let state be in descriptor.\n\t\t\tstate = \"in descriptor\";\n\n\t\t\twhile (true) {\n\n\t\t\t\t// 8.4. Let c be the character at position.\n\t\t\t\tc = input.charAt(pos);\n\n\t\t\t\t// Do the following depending on the value of state.\n\t\t\t\t// For the purpose of this step, \"EOF\" is a special character representing\n\t\t\t\t// that position is past the end of input.\n\n\t\t\t\t// In descriptor\n\t\t\t\tif (state === \"in descriptor\") {\n\t\t\t\t\t// Do the following, depending on the value of c:\n\n\t\t\t\t\t// Space character\n\t\t\t\t\t// If current descriptor is not empty, append current descriptor to\n\t\t\t\t\t// descriptors and let current descriptor be the empty string.\n\t\t\t\t\t// Set state to after descriptor.\n\t\t\t\t\tif (isSpace(c)) {\n\t\t\t\t\t\tif (currentDescriptor) {\n\t\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\t\tcurrentDescriptor = \"\";\n\t\t\t\t\t\t\tstate = \"after descriptor\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// U+002C COMMA (,)\n\t\t\t\t\t\t// Advance position to the next character in input. If current descriptor\n\t\t\t\t\t\t// is not empty, append current descriptor to descriptors. Jump to the step\n\t\t\t\t\t\t// labeled descriptor parser.\n\t\t\t\t\t} else if (c === \",\") {\n\t\t\t\t\t\tpos += 1;\n\t\t\t\t\t\tif (currentDescriptor) {\n\t\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t// U+0028 LEFT PARENTHESIS (()\n\t\t\t\t\t\t// Append c to current descriptor. Set state to in parens.\n\t\t\t\t\t} else if (c === \"\\u0028\") {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t\tstate = \"in parens\";\n\n\t\t\t\t\t\t// EOF\n\t\t\t\t\t\t// If current descriptor is not empty, append current descriptor to\n\t\t\t\t\t\t// descriptors. Jump to the step labeled descriptor parser.\n\t\t\t\t\t} else if (c === \"\") {\n\t\t\t\t\t\tif (currentDescriptor) {\n\t\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t// Anything else\n\t\t\t\t\t\t// Append c to current descriptor.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t}\n\t\t\t\t\t// (end \"in descriptor\"\n\n\t\t\t\t\t// In parens\n\t\t\t\t} else if (state === \"in parens\") {\n\n\t\t\t\t\t// U+0029 RIGHT PARENTHESIS ())\n\t\t\t\t\t// Append c to current descriptor. Set state to in descriptor.\n\t\t\t\t\tif (c === \")\") {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t\tstate = \"in descriptor\";\n\n\t\t\t\t\t\t// EOF\n\t\t\t\t\t\t// Append current descriptor to descriptors. Jump to the step labeled\n\t\t\t\t\t\t// descriptor parser.\n\t\t\t\t\t} else if (c === \"\") {\n\t\t\t\t\t\tdescriptors.push(currentDescriptor);\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t// Anything else\n\t\t\t\t\t\t// Append c to current descriptor.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurrentDescriptor = currentDescriptor + c;\n\t\t\t\t\t}\n\n\t\t\t\t\t// After descriptor\n\t\t\t\t} else if (state === \"after descriptor\") {\n\n\t\t\t\t\t// Do the following, depending on the value of c:\n\t\t\t\t\t// Space character: Stay in this state.\n\t\t\t\t\tif (isSpace(c)) {\n\n\t\t\t\t\t\t// EOF: Jump to the step labeled descriptor parser.\n\t\t\t\t\t} else if (c === \"\") {\n\t\t\t\t\t\tparseDescriptors();\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t\t// Anything else\n\t\t\t\t\t\t// Set state to in descriptor. Set position to the previous character in input.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tstate = \"in descriptor\";\n\t\t\t\t\t\tpos -= 1;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Advance position to the next character in input.\n\t\t\t\tpos += 1;\n\n\t\t\t\t// Repeat this step.\n\t\t\t} // (close while true loop)\n\t\t}\n\n\t\t/**\n\t\t * Adds descriptor properties to a candidate, pushes to the candidates array\n\t\t * @return undefined\n\t\t */\n\t\t// Declared outside of the while loop so that it's only created once.\n\t\tfunction parseDescriptors() {\n\n\t\t\t// 9. Descriptor parser: Let error be no.\n\t\t\tvar pError = false,\n\n\t\t\t\t// 10. Let width be absent.\n\t\t\t\t// 11. Let density be absent.\n\t\t\t\t// 12. Let future-compat-h be absent. (We're implementing it now as h)\n\t\t\t\tw, d, h, i,\n\t\t\t\tcandidate = {},\n\t\t\t\tdesc, lastChar, value, intVal, floatVal;\n\n\t\t\t// 13. For each descriptor in descriptors, run the appropriate set of steps\n\t\t\t// from the following list:\n\t\t\tfor (i = 0 ; i < descriptors.length; i++) {\n\t\t\t\tdesc = descriptors[ i ];\n\n\t\t\t\tlastChar = desc[ desc.length - 1 ];\n\t\t\t\tvalue = desc.substring(0, desc.length - 1);\n\t\t\t\tintVal = parseInt(value, 10);\n\t\t\t\tfloatVal = parseFloat(value);\n\n\t\t\t\t// If the descriptor consists of a valid non-negative integer followed by\n\t\t\t\t// a U+0077 LATIN SMALL LETTER W character\n\t\t\t\tif (regexNonNegativeInteger.test(value) && (lastChar === \"w\")) {\n\n\t\t\t\t\t// If width and density are not both absent, then let error be yes.\n\t\t\t\t\tif (w || d) {pError = true;}\n\n\t\t\t\t\t// Apply the rules for parsing non-negative integers to the descriptor.\n\t\t\t\t\t// If the result is zero, let error be yes.\n\t\t\t\t\t// Otherwise, let width be the result.\n\t\t\t\t\tif (intVal === 0) {pError = true;} else {w = intVal;}\n\n\t\t\t\t\t// If the descriptor consists of a valid floating-point number followed by\n\t\t\t\t\t// a U+0078 LATIN SMALL LETTER X character\n\t\t\t\t} else if (regexFloatingPoint.test(value) && (lastChar === \"x\")) {\n\n\t\t\t\t\t// If width, density and future-compat-h are not all absent, then let error\n\t\t\t\t\t// be yes.\n\t\t\t\t\tif (w || d || h) {pError = true;}\n\n\t\t\t\t\t// Apply the rules for parsing floating-point number values to the descriptor.\n\t\t\t\t\t// If the result is less than zero, let error be yes. Otherwise, let density\n\t\t\t\t\t// be the result.\n\t\t\t\t\tif (floatVal < 0) {pError = true;} else {d = floatVal;}\n\n\t\t\t\t\t// If the descriptor consists of a valid non-negative integer followed by\n\t\t\t\t\t// a U+0068 LATIN SMALL LETTER H character\n\t\t\t\t} else if (regexNonNegativeInteger.test(value) && (lastChar === \"h\")) {\n\n\t\t\t\t\t// If height and density are not both absent, then let error be yes.\n\t\t\t\t\tif (h || d) {pError = true;}\n\n\t\t\t\t\t// Apply the rules for parsing non-negative integers to the descriptor.\n\t\t\t\t\t// If the result is zero, let error be yes. Otherwise, let future-compat-h\n\t\t\t\t\t// be the result.\n\t\t\t\t\tif (intVal === 0) {pError = true;} else {h = intVal;}\n\n\t\t\t\t\t// Anything else, Let error be yes.\n\t\t\t\t} else {pError = true;}\n\t\t\t} // (close step 13 for loop)\n\n\t\t\t// 15. If error is still no, then append a new image source to candidates whose\n\t\t\t// URL is url, associated with a width width if not absent and a pixel\n\t\t\t// density density if not absent. Otherwise, there is a parse error.\n\t\t\tif (!pError) {\n\t\t\t\tcandidate.url = url;\n\t\t\t\tif (w) { candidate.w = w;}\n\t\t\t\tif (d) { candidate.d = d;}\n\t\t\t\tif (h) { candidate.h = h;}\n\t\t\t\tcandidates.push(candidate);\n\t\t\t} else if (console && console.log) {\n\t\t\t\tconsole.log(\"Invalid srcset descriptor found in '\" +\n\t\t\t\t\tinput + \"' at '\" + desc + \"'.\");\n\t\t\t}\n\t\t} // (close parseDescriptors fn)\n\n\t}\n}));\n"],"names":["root","factory","module","this","input","isSpace","c","collectCharacters","regEx","chars","match","pos","inputLength","regexLeadingSpaces","regexLeadingCommasOrSpaces","regexLeadingNotSpaces","regexTrailingCommas","regexNonNegativeInteger","regexFloatingPoint","url","descriptors","currentDescriptor","state","candidates","parseDescriptors","tokenize","pError","w","d","h","i","candidate","desc","lastChar","value","intVal","floatVal"],"mappings":"0LAgBC,SAAUA,EAAMC,EAAS,CAIgBC,EAAO,QAI/CA,EAAA,QAAiBD,EAAO,EAGxBD,EAAK,YAAcC,EAAO,CAE5B,GAAEE,EAAM,UAAY,CAGnB,OAAO,SAAUC,EAAO,CAOvB,SAASC,EAAQC,EAAG,CACnB,OAAQA,IAAM,KACdA,IAAM,KACNA,IAAM;AAAA,GACNA,IAAM,MACNA,IAAM,IACT,CAEE,SAASC,EAAkBC,EAAO,CACjC,IAAIC,EACHC,EAAQF,EAAM,KAAKJ,EAAM,UAAUO,CAAG,CAAC,EACxC,GAAID,EACH,OAAAD,EAAQC,EAAO,CAAC,EAChBC,GAAOF,EAAM,OACNA,CAEX,CAkCE,QAhCIG,EAAcR,EAAM,OAGvBS,EAAqB,oBACrBC,EAA6B,qBAC7BC,EAAwB,qBACxBC,EAAsB,QACtBC,EAA0B,QAO1BC,EAAqB,oDAErBC,EACAC,EACAC,EACAC,EACAhB,EAIAK,EAAM,EAGNY,EAAa,CAAA,IAKD,CAIZ,GAHAhB,EAAkBO,CAA0B,EAGxCH,GAAOC,EACV,OAAOW,EAKRJ,EAAMZ,EAAkBQ,CAAqB,EAG7CK,EAAc,CAAA,EAKVD,EAAI,MAAM,EAAE,IAAM,KACrBA,EAAMA,EAAI,QAAQH,EAAqB,EAAE,E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