@anoki/fse-ui 2.3.0-RC14 → 2.3.0-RC17
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/components/ui/Accordion/GenericAccordion/GenericAccordion.css +1 -1
- package/dist/components/ui/AggregationItemCard/AggregationItemCard.css +1 -1
- package/dist/components/ui/CardFaqCTA/CardFaqCTA.css +1 -1
- package/dist/components/ui/EditorialWidget/EditorialWidget.css +1 -1
- package/dist/components/ui/Tags/Tags.css +1 -1
- package/dist/components/ui/VerticalCardStepper/VerticalCardStepper.css +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs115.js.map +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs120.js.map +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs129.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs344.js +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs484.js +1 -1
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs502.js +1 -27
- package/dist/index.cjs502.js.map +1 -1
- package/dist/index.cjs503.js +1 -1
- package/dist/index.cjs504.js +1 -1
- package/dist/index.cjs504.js.map +1 -1
- package/dist/index.cjs505.js +1 -1
- package/dist/index.cjs505.js.map +1 -1
- package/dist/index.cjs506.js +1 -1
- package/dist/index.cjs506.js.map +1 -1
- package/dist/index.cjs507.js +27 -1
- package/dist/index.cjs507.js.map +1 -1
- package/dist/index.cjs508.js +1 -1
- package/dist/index.cjs508.js.map +1 -1
- package/dist/index.cjs509.js +1 -1
- package/dist/index.cjs509.js.map +1 -1
- package/dist/index.cjs512.js +1 -1
- package/dist/index.cjs512.js.map +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs514.js.map +1 -1
- package/dist/index.cjs515.js +1 -1
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs518.js +2 -0
- package/dist/index.cjs518.js.map +1 -0
- package/dist/{index.cjs524.js → index.cjs519.js} +1 -1
- package/dist/{index.cjs524.js.map → index.cjs519.js.map} +1 -1
- package/dist/{index.cjs523.js → index.cjs520.js} +1 -1
- package/dist/{index.cjs523.js.map → index.cjs520.js.map} +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs521.js.map +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs522.js.map +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs526.js.map +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs527.js.map +1 -1
- package/dist/index.cjs528.js +1 -1
- package/dist/index.cjs528.js.map +1 -1
- package/dist/index.cjs529.js +1 -1
- package/dist/index.cjs529.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs530.js.map +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs531.js.map +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs532.js.map +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs533.js.map +1 -1
- package/dist/index.cjs534.js +1 -1
- package/dist/index.cjs534.js.map +1 -1
- package/dist/index.cjs535.js +1 -1
- package/dist/index.cjs535.js.map +1 -1
- package/dist/index.cjs536.js +2 -0
- package/dist/index.cjs536.js.map +1 -0
- package/dist/index.cjs537.js +2 -0
- package/dist/index.cjs537.js.map +1 -0
- package/dist/index.cjs538.js +2 -0
- package/dist/index.cjs538.js.map +1 -0
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs539.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs540.js.map +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs541.js.map +1 -1
- package/dist/{index.cjs548.js → index.cjs545.js} +1 -1
- package/dist/{index.cjs548.js.map → index.cjs545.js.map} +1 -1
- package/dist/{index.cjs549.js → index.cjs546.js} +2 -2
- package/dist/{index.cjs549.js.map → index.cjs546.js.map} +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs554.js.map +1 -1
- package/dist/index.cjs564.js +2 -0
- package/dist/index.cjs564.js.map +1 -0
- package/dist/index.cjs568.js +1 -1
- package/dist/index.cjs568.js.map +1 -1
- package/dist/index.cjs569.js +2 -0
- package/dist/index.cjs569.js.map +1 -0
- package/dist/index.cjs570.js +2 -0
- package/dist/index.cjs570.js.map +1 -0
- package/dist/index.cjs571.js +1 -1
- package/dist/index.cjs571.js.map +1 -1
- package/dist/index.cjs572.js +1 -1
- package/dist/index.cjs572.js.map +1 -1
- package/dist/index.cjs573.js +1 -1
- package/dist/index.cjs573.js.map +1 -1
- package/dist/index.cjs574.js +1 -1
- package/dist/index.cjs574.js.map +1 -1
- package/dist/index.cjs575.js +1 -1
- package/dist/index.cjs575.js.map +1 -1
- package/dist/index.cjs576.js +1 -1
- package/dist/index.cjs576.js.map +1 -1
- package/dist/index.cjs577.js +1 -1
- package/dist/index.cjs577.js.map +1 -1
- package/dist/index.cjs578.js +1 -1
- package/dist/index.cjs578.js.map +1 -1
- package/dist/index.cjs579.js +1 -1
- package/dist/index.cjs579.js.map +1 -1
- package/dist/index.cjs580.js +1 -1
- package/dist/index.cjs580.js.map +1 -1
- package/dist/index.cjs581.js +1 -1
- package/dist/index.cjs581.js.map +1 -1
- package/dist/index.cjs582.js +1 -1
- package/dist/index.cjs582.js.map +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs583.js.map +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +1 -1
- package/dist/index.cjs585.js.map +1 -1
- package/dist/index.cjs586.js +1 -1
- package/dist/index.cjs586.js.map +1 -1
- package/dist/index.cjs587.js +1 -1
- package/dist/index.cjs587.js.map +1 -1
- package/dist/index.cjs588.js +1 -1
- package/dist/index.cjs588.js.map +1 -1
- package/dist/index.cjs589.js +1 -1
- package/dist/index.cjs589.js.map +1 -1
- package/dist/index.cjs590.js +1 -1
- package/dist/index.cjs590.js.map +1 -1
- package/dist/index.cjs591.js +1 -1
- package/dist/index.cjs591.js.map +1 -1
- package/dist/index.cjs592.js +1 -1
- package/dist/index.cjs592.js.map +1 -1
- package/dist/index.cjs593.js +1 -1
- package/dist/index.cjs593.js.map +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs594.js.map +1 -1
- package/dist/index.cjs595.js +1 -1
- package/dist/index.cjs595.js.map +1 -1
- package/dist/index.cjs596.js +1 -1
- package/dist/index.cjs596.js.map +1 -1
- package/dist/index.cjs597.js +1 -1
- package/dist/index.cjs597.js.map +1 -1
- package/dist/index.cjs598.js +1 -1
- package/dist/index.cjs598.js.map +1 -1
- package/dist/index.cjs599.js +1 -1
- package/dist/index.cjs599.js.map +1 -1
- package/dist/index.cjs600.js +1 -1
- package/dist/index.cjs600.js.map +1 -1
- package/dist/index.cjs601.js +1 -1
- package/dist/index.cjs601.js.map +1 -1
- package/dist/index.cjs602.js +1 -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 +1 -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 +1 -1
- package/dist/index.cjs607.js.map +1 -1
- package/dist/index.cjs608.js +1 -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.cjs612.js +1 -1
- package/dist/index.cjs612.js.map +1 -1
- package/dist/index.cjs613.js +1 -2
- package/dist/index.cjs613.js.map +1 -1
- package/dist/index.cjs614.js +2 -8
- package/dist/index.cjs614.js.map +1 -1
- package/dist/index.cjs615.js +8 -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 -6
- package/dist/index.cjs617.js.map +1 -1
- package/dist/index.cjs618.js +6 -1
- package/dist/index.cjs618.js.map +1 -1
- package/dist/index.cjs619.js +1 -2
- package/dist/index.cjs619.js.map +1 -1
- package/dist/index.cjs620.js +2 -3
- package/dist/index.cjs620.js.map +1 -1
- package/dist/index.cjs621.js +4 -0
- package/dist/index.cjs621.js.map +1 -0
- 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.cjs638.js +1 -1
- package/dist/index.cjs642.js +1 -1
- package/dist/index.cjs655.js +1 -1
- package/dist/index.cjs658.js +1 -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.cjs666.js +1 -1
- package/dist/index.cjs667.js +1 -1
- package/dist/index.cjs668.js +1 -1
- package/dist/index.cjs669.js +1 -1
- package/dist/index.cjs670.js +1 -1
- package/dist/index.cjs675.js +1 -1
- package/dist/index.cjs676.js +1 -1
- package/dist/index.cjs679.js +1 -1
- package/dist/index.cjs680.js +1 -1
- package/dist/index.cjs681.js +1 -1
- package/dist/index.cjs683.js +1 -1
- package/dist/index.cjs684.js +1 -1
- package/dist/index.cjs685.js +1 -1
- package/dist/index.cjs689.js +1 -1
- package/dist/index.cjs691.js +1 -1
- package/dist/index.cjs691.js.map +1 -1
- package/dist/index.cjs692.js +1 -1
- package/dist/index.cjs692.js.map +1 -1
- package/dist/index.cjs693.js +1 -1
- package/dist/index.cjs693.js.map +1 -1
- package/dist/index.cjs694.js +1 -4
- package/dist/index.cjs694.js.map +1 -1
- package/dist/index.cjs695.js +1 -1
- package/dist/index.cjs695.js.map +1 -1
- package/dist/index.cjs696.js +1 -1
- package/dist/index.cjs696.js.map +1 -1
- package/dist/index.cjs697.js +1 -1
- package/dist/index.cjs697.js.map +1 -1
- package/dist/index.cjs698.js +1 -1
- package/dist/index.cjs698.js.map +1 -1
- package/dist/index.cjs699.js +1 -1
- package/dist/index.cjs699.js.map +1 -1
- package/dist/index.cjs700.js +1 -1
- package/dist/index.cjs700.js.map +1 -1
- package/dist/index.cjs701.js +1 -6
- package/dist/index.cjs701.js.map +1 -1
- package/dist/index.cjs702.js +1 -1
- package/dist/index.cjs702.js.map +1 -1
- package/dist/index.cjs703.js +1 -12
- package/dist/index.cjs703.js.map +1 -1
- package/dist/index.cjs704.js +1 -1
- package/dist/index.cjs704.js.map +1 -1
- package/dist/index.cjs705.js +1 -1
- package/dist/index.cjs705.js.map +1 -1
- package/dist/index.cjs706.js +1 -1
- package/dist/index.cjs706.js.map +1 -1
- package/dist/index.cjs707.js +1 -1
- package/dist/index.cjs707.js.map +1 -1
- package/dist/index.cjs708.js +1 -1
- package/dist/index.cjs708.js.map +1 -1
- package/dist/index.cjs709.js +1 -1
- package/dist/index.cjs709.js.map +1 -1
- package/dist/index.cjs710.js +1 -1
- package/dist/index.cjs710.js.map +1 -1
- package/dist/index.cjs711.js +1 -1
- package/dist/index.cjs711.js.map +1 -1
- package/dist/index.cjs712.js +1 -1
- package/dist/index.cjs712.js.map +1 -1
- package/dist/index.cjs713.js +1 -2
- package/dist/index.cjs713.js.map +1 -1
- package/dist/index.cjs714.js +1 -1
- package/dist/index.cjs714.js.map +1 -1
- package/dist/index.cjs715.js +1 -1
- package/dist/index.cjs715.js.map +1 -1
- package/dist/index.cjs716.js +1 -1
- package/dist/index.cjs716.js.map +1 -1
- package/dist/index.cjs717.js +1 -1
- package/dist/index.cjs717.js.map +1 -1
- package/dist/index.cjs718.js +1 -1
- package/dist/index.cjs718.js.map +1 -1
- package/dist/index.cjs719.js +1 -1
- package/dist/index.cjs719.js.map +1 -1
- package/dist/index.cjs720.js +1 -1
- package/dist/index.cjs720.js.map +1 -1
- package/dist/index.cjs721.js +1 -1
- package/dist/index.cjs721.js.map +1 -1
- package/dist/index.cjs722.js +1 -1
- package/dist/index.cjs722.js.map +1 -1
- package/dist/index.cjs723.js +1 -1
- package/dist/index.cjs723.js.map +1 -1
- package/dist/index.cjs724.js +1 -1
- package/dist/index.cjs724.js.map +1 -1
- package/dist/index.cjs725.js +6 -1
- package/dist/index.cjs725.js.map +1 -1
- package/dist/index.cjs726.js +1 -1
- package/dist/index.cjs726.js.map +1 -1
- package/dist/index.cjs727.js +12 -1
- package/dist/index.cjs727.js.map +1 -1
- package/dist/index.cjs728.js +1 -1
- package/dist/index.cjs728.js.map +1 -1
- package/dist/index.cjs729.js +1 -1
- package/dist/index.cjs729.js.map +1 -1
- package/dist/index.cjs730.js +1 -1
- package/dist/index.cjs730.js.map +1 -1
- package/dist/index.cjs731.js +1 -1
- package/dist/index.cjs731.js.map +1 -1
- package/dist/index.cjs732.js +1 -1
- package/dist/index.cjs732.js.map +1 -1
- package/dist/index.cjs733.js +1 -1
- package/dist/index.cjs733.js.map +1 -1
- package/dist/index.cjs734.js +1 -1
- package/dist/index.cjs734.js.map +1 -1
- package/dist/index.cjs735.js +1 -1
- package/dist/index.cjs735.js.map +1 -1
- package/dist/index.cjs736.js +1 -1
- package/dist/index.cjs736.js.map +1 -1
- package/dist/index.cjs737.js +2 -1
- package/dist/index.cjs737.js.map +1 -1
- package/dist/index.cjs738.js +1 -1
- package/dist/index.cjs738.js.map +1 -1
- package/dist/index.cjs739.js +1 -1
- package/dist/index.cjs739.js.map +1 -1
- package/dist/index.cjs740.js +1 -1
- package/dist/index.cjs740.js.map +1 -1
- package/dist/index.cjs741.js +1 -1
- package/dist/index.cjs741.js.map +1 -1
- package/dist/index.cjs742.js +1 -1
- package/dist/index.cjs742.js.map +1 -1
- package/dist/index.cjs743.js +1 -1
- package/dist/index.cjs743.js.map +1 -1
- package/dist/index.cjs744.js +1 -1
- package/dist/index.cjs744.js.map +1 -1
- package/dist/index.cjs745.js +1 -1
- package/dist/index.cjs745.js.map +1 -1
- package/dist/index.cjs746.js +1 -1
- package/dist/index.cjs746.js.map +1 -1
- package/dist/index.cjs747.js +4 -1
- package/dist/index.cjs747.js.map +1 -1
- package/dist/index.cjs748.js +1 -1
- package/dist/index.cjs748.js.map +1 -1
- package/dist/index.cjs749.js +1 -1
- package/dist/index.cjs750.js +1 -1
- package/dist/index.cjs750.js.map +1 -1
- package/dist/index.cjs751.js +1 -1
- package/dist/index.cjs751.js.map +1 -1
- package/dist/index.cjs753.js +5 -1
- package/dist/index.cjs753.js.map +1 -1
- package/dist/index.cjs754.js +1 -1
- package/dist/index.cjs754.js.map +1 -1
- package/dist/index.cjs755.js +1 -1
- package/dist/index.cjs755.js.map +1 -1
- package/dist/index.cjs756.js +1 -1
- package/dist/index.cjs756.js.map +1 -1
- package/dist/index.cjs757.js +1 -1
- package/dist/index.cjs757.js.map +1 -1
- package/dist/index.cjs758.js +1 -1
- package/dist/index.cjs758.js.map +1 -1
- package/dist/index.cjs759.js +1 -1
- package/dist/index.cjs759.js.map +1 -1
- package/dist/index.cjs760.js +1 -1
- package/dist/index.cjs760.js.map +1 -1
- package/dist/index.cjs761.js +1 -1
- package/dist/index.cjs761.js.map +1 -1
- package/dist/index.cjs762.js +1 -1
- package/dist/index.cjs762.js.map +1 -1
- package/dist/index.cjs763.js +1 -1
- package/dist/index.cjs763.js.map +1 -1
- package/dist/index.cjs764.js +1 -1
- package/dist/index.cjs764.js.map +1 -1
- package/dist/index.cjs765.js +1 -1
- package/dist/index.cjs765.js.map +1 -1
- package/dist/index.cjs766.js +1 -38
- package/dist/index.cjs766.js.map +1 -1
- package/dist/index.cjs767.js +1 -1
- package/dist/index.cjs767.js.map +1 -1
- package/dist/index.cjs768.js +1 -1
- package/dist/index.cjs768.js.map +1 -1
- package/dist/index.cjs769.js +1 -1
- package/dist/index.cjs769.js.map +1 -1
- package/dist/index.cjs770.js +1 -1
- package/dist/index.cjs770.js.map +1 -1
- package/dist/index.cjs771.js +1 -5
- package/dist/index.cjs771.js.map +1 -1
- package/dist/index.cjs772.js +1 -1
- package/dist/index.cjs772.js.map +1 -1
- package/dist/index.cjs773.js +1 -1
- package/dist/index.cjs773.js.map +1 -1
- package/dist/index.cjs774.js +1 -1
- package/dist/index.cjs774.js.map +1 -1
- package/dist/index.cjs775.js +1 -1
- package/dist/index.cjs775.js.map +1 -1
- package/dist/index.cjs776.js +1 -1
- package/dist/index.cjs776.js.map +1 -1
- package/dist/index.cjs777.js +1 -1
- package/dist/index.cjs777.js.map +1 -1
- package/dist/index.cjs778.js +1 -1
- package/dist/index.cjs778.js.map +1 -1
- package/dist/index.cjs779.js +38 -1
- package/dist/index.cjs779.js.map +1 -1
- package/dist/index.cjs780.js +1 -1
- package/dist/index.cjs780.js.map +1 -1
- package/dist/index.cjs781.js +1 -1
- package/dist/index.cjs781.js.map +1 -1
- package/dist/index.cjs782.js +1 -1
- package/dist/index.cjs782.js.map +1 -1
- package/dist/index.cjs783.js +1 -1
- package/dist/index.cjs783.js.map +1 -1
- package/dist/index.cjs785.js +1 -1
- package/dist/index.cjs785.js.map +1 -1
- package/dist/index.cjs786.js +1 -1
- package/dist/index.cjs786.js.map +1 -1
- package/dist/index.cjs788.js +1 -1
- package/dist/index.cjs788.js.map +1 -1
- package/dist/index.cjs789.js +1 -1
- package/dist/index.cjs789.js.map +1 -1
- package/dist/index.cjs790.js +1 -1
- package/dist/index.cjs790.js.map +1 -1
- package/dist/index.cjs791.js +1 -1
- package/dist/index.cjs791.js.map +1 -1
- package/dist/index.cjs792.js +1 -1
- package/dist/index.cjs792.js.map +1 -1
- package/dist/index.cjs793.js +1 -1
- package/dist/index.cjs793.js.map +1 -1
- package/dist/index.cjs794.js +1 -1
- package/dist/index.cjs794.js.map +1 -1
- package/dist/index.cjs795.js +1 -1
- package/dist/index.cjs795.js.map +1 -1
- package/dist/index.cjs796.js +1 -1
- package/dist/index.cjs796.js.map +1 -1
- package/dist/index.cjs797.js +1 -1
- package/dist/index.cjs797.js.map +1 -1
- package/dist/index.cjs802.js +1 -1
- package/dist/index.cjs802.js.map +1 -1
- package/dist/index.cjs803.js +1 -1
- package/dist/index.cjs803.js.map +1 -1
- package/dist/index.cjs804.js +1 -1
- package/dist/index.cjs804.js.map +1 -1
- package/dist/index.cjs805.js +1 -1
- package/dist/index.cjs805.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.es115.js +1 -1
- package/dist/index.es115.js.map +1 -1
- package/dist/index.es120.js +20 -13
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es129.js +33 -30
- package/dist/index.es129.js.map +1 -1
- package/dist/index.es226.js +20 -16
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es233.js +24 -26
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es269.js +1 -1
- package/dist/index.es277.js +2 -2
- package/dist/index.es288.js +1 -1
- package/dist/index.es289.js +2 -2
- package/dist/index.es290.js +2 -2
- package/dist/index.es291.js +3 -3
- package/dist/index.es318.js +1 -1
- package/dist/index.es320.js +1 -1
- package/dist/index.es321.js +1 -1
- package/dist/index.es322.js +1 -1
- package/dist/index.es334.js +4 -4
- package/dist/index.es344.js +14 -14
- package/dist/index.es370.js +8 -8
- package/dist/index.es423.js +7 -7
- package/dist/index.es431.js +1 -1
- package/dist/index.es452.js +6 -6
- package/dist/index.es453.js +2 -2
- package/dist/index.es484.js +7 -7
- package/dist/index.es489.js +8 -8
- package/dist/index.es49.js +12 -12
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es50.js +17 -16
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es502.js +5 -3692
- package/dist/index.es502.js.map +1 -1
- package/dist/index.es503.js +5 -26
- package/dist/index.es503.js.map +1 -1
- package/dist/index.es504.js +2034 -2
- package/dist/index.es504.js.map +1 -1
- package/dist/index.es505.js +60 -5
- package/dist/index.es505.js.map +1 -1
- package/dist/index.es506.js +190 -5
- package/dist/index.es506.js.map +1 -1
- package/dist/index.es507.js +3681 -2023
- package/dist/index.es507.js.map +1 -1
- package/dist/index.es508.js +24 -58
- package/dist/index.es508.js.map +1 -1
- package/dist/index.es509.js +2 -190
- package/dist/index.es509.js.map +1 -1
- package/dist/index.es512.js +131 -8
- package/dist/index.es512.js.map +1 -1
- package/dist/index.es513.js +1 -1
- package/dist/index.es514.js +9 -3
- package/dist/index.es514.js.map +1 -1
- package/dist/index.es515.js +2 -131
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es518.js +3 -0
- package/dist/index.es518.js.map +1 -0
- package/dist/{index.es524.js → index.es519.js} +1 -1
- package/dist/{index.es524.js.map → index.es519.js.map} +1 -1
- package/dist/{index.es523.js → index.es520.js} +1 -1
- package/dist/{index.es523.js.map → index.es520.js.map} +1 -1
- package/dist/index.es521.js +9 -2
- package/dist/index.es521.js.map +1 -1
- package/dist/index.es522.js +56 -6
- package/dist/index.es522.js.map +1 -1
- package/dist/index.es526.js +20 -51
- package/dist/index.es526.js.map +1 -1
- package/dist/index.es527.js +2 -125
- package/dist/index.es527.js.map +1 -1
- package/dist/index.es528.js +54 -134
- package/dist/index.es528.js.map +1 -1
- package/dist/index.es529.js +220 -14
- package/dist/index.es529.js.map +1 -1
- package/dist/index.es53.js +1 -1
- package/dist/index.es530.js +71 -66
- package/dist/index.es530.js.map +1 -1
- package/dist/index.es531.js +2 -34
- package/dist/index.es531.js.map +1 -1
- package/dist/index.es532.js +10 -14
- package/dist/index.es532.js.map +1 -1
- package/dist/index.es533.js +52 -9
- package/dist/index.es533.js.map +1 -1
- package/dist/index.es534.js +122 -47
- package/dist/index.es534.js.map +1 -1
- package/dist/index.es535.js +129 -51
- package/dist/index.es535.js.map +1 -1
- package/dist/index.es536.js +17 -0
- package/dist/index.es536.js.map +1 -0
- package/dist/index.es537.js +72 -0
- package/dist/index.es537.js.map +1 -0
- package/dist/index.es538.js +37 -0
- package/dist/index.es538.js.map +1 -0
- package/dist/index.es539.js +13 -19
- package/dist/index.es539.js.map +1 -1
- package/dist/index.es54.js +1 -1
- package/dist/index.es540.js +9 -2
- package/dist/index.es540.js.map +1 -1
- package/dist/index.es541.js +50 -55
- package/dist/index.es541.js.map +1 -1
- package/dist/{index.es548.js → index.es545.js} +1 -1
- package/dist/{index.es548.js.map → index.es545.js.map} +1 -1
- package/dist/{index.es549.js → index.es546.js} +2 -2
- package/dist/{index.es549.js.map → index.es546.js.map} +1 -1
- package/dist/index.es554.js +617 -78
- package/dist/index.es554.js.map +1 -1
- package/dist/index.es564.js +8 -0
- package/dist/index.es564.js.map +1 -0
- package/dist/index.es568.js +2 -622
- package/dist/index.es568.js.map +1 -1
- package/dist/index.es569.js +9 -0
- package/dist/index.es569.js.map +1 -0
- package/dist/index.es570.js +17 -0
- package/dist/index.es570.js.map +1 -0
- package/dist/index.es571.js +5 -4
- package/dist/index.es571.js.map +1 -1
- package/dist/index.es572.js +6 -2
- package/dist/index.es572.js.map +1 -1
- package/dist/index.es573.js +3 -3
- package/dist/index.es573.js.map +1 -1
- package/dist/index.es574.js +4 -12
- package/dist/index.es574.js.map +1 -1
- package/dist/index.es575.js +5 -5
- package/dist/index.es575.js.map +1 -1
- package/dist/index.es576.js +3 -3
- package/dist/index.es576.js.map +1 -1
- package/dist/index.es577.js +1 -1
- package/dist/index.es577.js.map +1 -1
- package/dist/index.es578.js +3 -3
- package/dist/index.es578.js.map +1 -1
- package/dist/index.es579.js +3 -3
- package/dist/index.es579.js.map +1 -1
- package/dist/index.es580.js +3 -3
- package/dist/index.es580.js.map +1 -1
- package/dist/index.es581.js +1 -1
- package/dist/index.es581.js.map +1 -1
- package/dist/index.es582.js +3 -3
- package/dist/index.es582.js.map +1 -1
- package/dist/index.es583.js +1 -1
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es584.js +3 -3
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +5 -5
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es586.js +8 -4
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es587.js +3 -3
- package/dist/index.es587.js.map +1 -1
- package/dist/index.es588.js +1 -1
- package/dist/index.es588.js.map +1 -1
- package/dist/index.es589.js +3 -3
- package/dist/index.es589.js.map +1 -1
- package/dist/index.es590.js +4 -8
- package/dist/index.es590.js.map +1 -1
- package/dist/index.es591.js +3 -3
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +10 -5
- package/dist/index.es592.js.map +1 -1
- package/dist/index.es593.js +3 -3
- package/dist/index.es593.js.map +1 -1
- package/dist/index.es594.js +3 -3
- package/dist/index.es594.js.map +1 -1
- package/dist/index.es595.js +3 -3
- package/dist/index.es595.js.map +1 -1
- package/dist/index.es596.js +5 -10
- package/dist/index.es596.js.map +1 -1
- package/dist/index.es597.js +1 -1
- package/dist/index.es597.js.map +1 -1
- package/dist/index.es598.js +3 -3
- package/dist/index.es598.js.map +1 -1
- package/dist/index.es599.js +10 -4
- package/dist/index.es599.js.map +1 -1
- package/dist/index.es600.js +1 -1
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es601.js +3 -3
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +8 -5
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +14 -9
- package/dist/index.es603.js.map +1 -1
- package/dist/index.es604.js +10 -5
- package/dist/index.es604.js.map +1 -1
- package/dist/index.es605.js +2 -6
- package/dist/index.es605.js.map +1 -1
- package/dist/index.es606.js +82 -8
- package/dist/index.es606.js.map +1 -1
- package/dist/index.es607.js +4 -17
- package/dist/index.es607.js.map +1 -1
- package/dist/index.es608.js +10 -10
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es609.js +12 -2
- package/dist/index.es609.js.map +1 -1
- package/dist/index.es612.js +36 -6
- package/dist/index.es612.js.map +1 -1
- package/dist/index.es613.js +5 -553
- package/dist/index.es613.js.map +1 -1
- package/dist/index.es614.js +527 -687
- package/dist/index.es614.js.map +1 -1
- package/dist/index.es615.js +708 -64
- package/dist/index.es615.js.map +1 -1
- package/dist/index.es616.js +69 -8
- package/dist/index.es616.js.map +1 -1
- package/dist/index.es617.js +8 -20
- package/dist/index.es617.js.map +1 -1
- package/dist/index.es618.js +20 -76
- package/dist/index.es618.js.map +1 -1
- package/dist/index.es619.js +75 -67
- package/dist/index.es619.js.map +1 -1
- package/dist/index.es620.js +68 -49
- package/dist/index.es620.js.map +1 -1
- package/dist/index.es621.js +53 -0
- package/dist/index.es621.js.map +1 -0
- package/dist/index.es622.js +46 -2
- package/dist/index.es622.js.map +1 -1
- package/dist/index.es623.js +14 -2
- package/dist/index.es623.js.map +1 -1
- package/dist/index.es624.js +219 -2
- package/dist/index.es624.js.map +1 -1
- package/dist/index.es625.js +181 -2
- package/dist/index.es625.js.map +1 -1
- package/dist/index.es626.js +2 -2
- package/dist/index.es627.js +2 -2
- package/dist/index.es628.js +2 -2
- package/dist/index.es629.js +2 -2
- package/dist/index.es631.js +2 -2
- package/dist/index.es632.js +2 -2
- package/dist/index.es633.js +2 -2
- package/dist/index.es634.js +2 -2
- package/dist/index.es635.js +2 -2
- package/dist/index.es636.js +2 -2
- package/dist/index.es637.js +2 -2
- package/dist/index.es638.js +2 -2
- package/dist/index.es639.js +2 -2
- package/dist/index.es640.js +2 -2
- package/dist/index.es642.js +2 -2
- package/dist/index.es643.js +2 -2
- package/dist/index.es644.js +2 -2
- package/dist/index.es645.js +2 -2
- package/dist/index.es646.js +2 -2
- package/dist/index.es647.js +2 -2
- package/dist/index.es649.js +2 -2
- package/dist/index.es652.js +2 -2
- package/dist/index.es653.js +2 -2
- package/dist/index.es654.js +2 -2
- package/dist/index.es655.js +2 -2
- package/dist/index.es656.js +2 -2
- package/dist/index.es657.js +2 -2
- package/dist/index.es658.js +2 -25
- package/dist/index.es658.js.map +1 -1
- package/dist/index.es659.js +2 -29
- package/dist/index.es659.js.map +1 -1
- package/dist/index.es660.js +2 -5
- package/dist/index.es660.js.map +1 -1
- package/dist/index.es661.js +2 -46
- package/dist/index.es661.js.map +1 -1
- package/dist/index.es662.js +23 -12
- package/dist/index.es662.js.map +1 -1
- package/dist/index.es663.js +27 -217
- package/dist/index.es663.js.map +1 -1
- package/dist/index.es664.js +5 -181
- package/dist/index.es664.js.map +1 -1
- package/dist/index.es666.js +2 -2
- package/dist/index.es667.js +2 -2
- package/dist/index.es668.js +2 -2
- package/dist/index.es669.js +1 -1
- package/dist/index.es670.js +8 -8
- package/dist/index.es675.js +1 -1
- package/dist/index.es676.js +2 -2
- package/dist/index.es679.js +1 -1
- package/dist/index.es680.js +3 -3
- package/dist/index.es681.js +3 -3
- package/dist/index.es683.js +2 -2
- package/dist/index.es684.js +1 -1
- package/dist/index.es685.js +1 -1
- package/dist/index.es689.js +1 -1
- package/dist/index.es691.js +230 -5
- package/dist/index.es691.js.map +1 -1
- package/dist/index.es692.js +22 -3
- package/dist/index.es692.js.map +1 -1
- package/dist/index.es693.js +397 -20
- package/dist/index.es693.js.map +1 -1
- package/dist/index.es694.js +5 -113
- package/dist/index.es694.js.map +1 -1
- package/dist/index.es695.js +16 -16
- package/dist/index.es695.js.map +1 -1
- package/dist/index.es696.js +13 -6
- package/dist/index.es696.js.map +1 -1
- package/dist/index.es697.js +35 -10
- package/dist/index.es697.js.map +1 -1
- package/dist/index.es698.js +5 -4
- package/dist/index.es698.js.map +1 -1
- package/dist/index.es699.js +2 -90
- package/dist/index.es699.js.map +1 -1
- package/dist/index.es700.js +3 -18
- package/dist/index.es700.js.map +1 -1
- package/dist/index.es701.js +6 -179
- package/dist/index.es701.js.map +1 -1
- package/dist/index.es702.js +6 -10
- package/dist/index.es702.js.map +1 -1
- package/dist/index.es703.js +5 -194
- package/dist/index.es703.js.map +1 -1
- package/dist/index.es704.js +32 -320
- package/dist/index.es704.js.map +1 -1
- package/dist/index.es705.js +238 -88
- package/dist/index.es705.js.map +1 -1
- package/dist/index.es706.js +4 -2
- package/dist/index.es706.js.map +1 -1
- package/dist/index.es707.js +4 -224
- package/dist/index.es707.js.map +1 -1
- package/dist/index.es708.js +10 -2
- package/dist/index.es708.js.map +1 -1
- package/dist/index.es709.js +52 -353
- package/dist/index.es709.js.map +1 -1
- package/dist/index.es710.js +8 -2
- package/dist/index.es710.js.map +1 -1
- package/dist/index.es711.js +6 -2
- package/dist/index.es711.js.map +1 -1
- package/dist/index.es712.js +532 -2
- package/dist/index.es712.js.map +1 -1
- package/dist/index.es713.js +14 -34
- package/dist/index.es713.js.map +1 -1
- package/dist/index.es714.js +2 -46
- package/dist/index.es714.js.map +1 -1
- package/dist/index.es715.js +35 -57
- package/dist/index.es715.js.map +1 -1
- package/dist/index.es716.js +2 -61
- package/dist/index.es716.js.map +1 -1
- package/dist/index.es717.js +260 -61
- package/dist/index.es717.js.map +1 -1
- package/dist/index.es718.js +3 -52
- package/dist/index.es718.js.map +1 -1
- package/dist/index.es719.js +30 -90
- package/dist/index.es719.js.map +1 -1
- package/dist/index.es720.js +6 -5
- package/dist/index.es720.js.map +1 -1
- package/dist/index.es721.js +11 -16
- package/dist/index.es721.js.map +1 -1
- package/dist/index.es722.js +4 -13
- package/dist/index.es722.js.map +1 -1
- package/dist/index.es723.js +86 -32
- package/dist/index.es723.js.map +1 -1
- package/dist/index.es724.js +18 -5
- package/dist/index.es724.js.map +1 -1
- package/dist/index.es725.js +180 -2
- package/dist/index.es725.js.map +1 -1
- package/dist/index.es726.js +10 -3
- package/dist/index.es726.js.map +1 -1
- package/dist/index.es727.js +193 -6
- package/dist/index.es727.js.map +1 -1
- package/dist/index.es728.js +320 -6
- package/dist/index.es728.js.map +1 -1
- package/dist/index.es729.js +92 -5
- package/dist/index.es729.js.map +1 -1
- package/dist/index.es730.js +2 -32
- package/dist/index.es730.js.map +1 -1
- package/dist/index.es731.js +218 -235
- package/dist/index.es731.js.map +1 -1
- package/dist/index.es732.js +2 -4
- package/dist/index.es732.js.map +1 -1
- package/dist/index.es733.js +356 -4
- package/dist/index.es733.js.map +1 -1
- package/dist/index.es734.js +2 -10
- package/dist/index.es734.js.map +1 -1
- package/dist/index.es735.js +2 -56
- package/dist/index.es735.js.map +1 -1
- package/dist/index.es736.js +2 -8
- package/dist/index.es736.js.map +1 -1
- package/dist/index.es737.js +33 -5
- package/dist/index.es737.js.map +1 -1
- package/dist/index.es738.js +45 -531
- package/dist/index.es738.js.map +1 -1
- package/dist/index.es739.js +59 -14
- package/dist/index.es739.js.map +1 -1
- package/dist/index.es740.js +61 -2
- package/dist/index.es740.js.map +1 -1
- package/dist/index.es741.js +71 -35
- package/dist/index.es741.js.map +1 -1
- package/dist/index.es742.js +52 -2
- package/dist/index.es742.js.map +1 -1
- package/dist/index.es743.js +80 -262
- package/dist/index.es743.js.map +1 -1
- package/dist/index.es744.js +5 -3
- package/dist/index.es744.js.map +1 -1
- package/dist/index.es745.js +3 -30
- package/dist/index.es745.js.map +1 -1
- package/dist/index.es746.js +20 -226
- package/dist/index.es746.js.map +1 -1
- package/dist/index.es747.js +110 -19
- package/dist/index.es747.js.map +1 -1
- package/dist/index.es748.js +14 -399
- package/dist/index.es748.js.map +1 -1
- package/dist/index.es749.js +2 -2
- package/dist/index.es750.js +2 -2
- package/dist/index.es750.js.map +1 -1
- package/dist/index.es751.js +2 -2
- package/dist/index.es751.js.map +1 -1
- package/dist/index.es753.js +40 -2
- package/dist/index.es753.js.map +1 -1
- package/dist/index.es754.js +2 -11
- package/dist/index.es754.js.map +1 -1
- package/dist/index.es755.js +4 -10
- package/dist/index.es755.js.map +1 -1
- package/dist/index.es756.js +6 -54
- package/dist/index.es756.js.map +1 -1
- package/dist/index.es757.js +16 -2
- package/dist/index.es757.js.map +1 -1
- package/dist/index.es758.js +2 -2
- package/dist/index.es758.js.map +1 -1
- package/dist/index.es759.js +2 -145
- package/dist/index.es759.js.map +1 -1
- package/dist/index.es760.js +2 -2
- package/dist/index.es760.js.map +1 -1
- package/dist/index.es761.js +2 -2
- package/dist/index.es761.js.map +1 -1
- package/dist/index.es762.js +2 -2
- package/dist/index.es762.js.map +1 -1
- package/dist/index.es763.js +3 -2
- package/dist/index.es763.js.map +1 -1
- package/dist/index.es764.js +3 -2
- package/dist/index.es764.js.map +1 -1
- package/dist/index.es765.js +4 -2
- package/dist/index.es765.js.map +1 -1
- package/dist/index.es766.js +2 -69
- package/dist/index.es766.js.map +1 -1
- package/dist/index.es767.js +11 -9
- package/dist/index.es767.js.map +1 -1
- package/dist/index.es768.js +11 -14
- package/dist/index.es768.js.map +1 -1
- package/dist/index.es769.js +53 -65
- package/dist/index.es769.js.map +1 -1
- package/dist/index.es770.js +2 -65
- package/dist/index.es770.js.map +1 -1
- package/dist/index.es771.js +2 -40
- package/dist/index.es771.js.map +1 -1
- package/dist/index.es772.js +145 -2
- package/dist/index.es772.js.map +1 -1
- package/dist/index.es773.js +2 -5
- package/dist/index.es773.js.map +1 -1
- package/dist/index.es774.js +2 -2
- package/dist/index.es774.js.map +1 -1
- package/dist/index.es775.js +2 -2
- package/dist/index.es775.js.map +1 -1
- package/dist/index.es776.js +2 -2
- package/dist/index.es776.js.map +1 -1
- package/dist/index.es777.js +2 -6
- package/dist/index.es777.js.map +1 -1
- package/dist/index.es778.js +2 -16
- package/dist/index.es778.js.map +1 -1
- package/dist/index.es779.js +69 -2
- package/dist/index.es779.js.map +1 -1
- package/dist/index.es780.js +9 -2
- package/dist/index.es780.js.map +1 -1
- package/dist/index.es781.js +14 -3
- package/dist/index.es781.js.map +1 -1
- package/dist/index.es782.js +66 -3
- package/dist/index.es782.js.map +1 -1
- package/dist/index.es783.js +64 -3
- package/dist/index.es783.js.map +1 -1
- package/dist/index.es784.js +2 -2
- package/dist/index.es785.js +2 -88
- package/dist/index.es785.js.map +1 -1
- package/dist/index.es786.js +2 -108
- package/dist/index.es786.js.map +1 -1
- package/dist/index.es787.js +2 -2
- package/dist/index.es788.js +88 -2
- package/dist/index.es788.js.map +1 -1
- package/dist/index.es789.js +108 -2
- package/dist/index.es789.js.map +1 -1
- package/dist/index.es790.js +529 -3
- package/dist/index.es790.js.map +1 -1
- package/dist/index.es791.js +125 -22
- package/dist/index.es791.js.map +1 -1
- package/dist/index.es792.js +133 -3
- package/dist/index.es792.js.map +1 -1
- package/dist/index.es793.js +4 -3
- package/dist/index.es793.js.map +1 -1
- package/dist/index.es794.js +3 -2
- package/dist/index.es794.js.map +1 -1
- package/dist/index.es795.js +2 -530
- package/dist/index.es795.js.map +1 -1
- package/dist/index.es796.js +3 -125
- package/dist/index.es796.js.map +1 -1
- package/dist/index.es797.js +22 -133
- package/dist/index.es797.js.map +1 -1
- package/dist/index.es802.js +11 -21
- package/dist/index.es802.js.map +1 -1
- package/dist/index.es803.js +26 -11
- package/dist/index.es803.js.map +1 -1
- package/dist/index.es804.js +4 -27
- package/dist/index.es804.js.map +1 -1
- package/dist/index.es805.js +22 -4
- package/dist/index.es805.js.map +1 -1
- package/dist/sections/Documents/Documents.css +1 -1
- package/dist/sections/FaqSections/FaqSections.css +1 -1
- package/dist/sections/Insights/Insights.css +1 -1
- package/package.json +1 -1
- package/dist/index.cjs525.js +0 -2
- package/dist/index.cjs525.js.map +0 -1
- package/dist/index.cjs542.js +0 -2
- package/dist/index.cjs542.js.map +0 -1
- package/dist/index.cjs543.js +0 -2
- package/dist/index.cjs543.js.map +0 -1
- package/dist/index.cjs544.js +0 -2
- package/dist/index.cjs544.js.map +0 -1
- package/dist/index.cjs555.js +0 -2
- package/dist/index.cjs555.js.map +0 -1
- package/dist/index.cjs556.js +0 -2
- package/dist/index.cjs556.js.map +0 -1
- package/dist/index.cjs557.js +0 -2
- package/dist/index.cjs557.js.map +0 -1
- package/dist/index.cjs611.js +0 -2
- package/dist/index.cjs611.js.map +0 -1
- package/dist/index.es525.js +0 -14
- package/dist/index.es525.js.map +0 -1
- package/dist/index.es542.js +0 -223
- package/dist/index.es542.js.map +0 -1
- package/dist/index.es543.js +0 -77
- package/dist/index.es543.js.map +0 -1
- package/dist/index.es544.js +0 -5
- package/dist/index.es544.js.map +0 -1
- package/dist/index.es555.js +0 -7
- package/dist/index.es555.js.map +0 -1
- package/dist/index.es556.js +0 -14
- package/dist/index.es556.js.map +0 -1
- package/dist/index.es557.js +0 -15
- package/dist/index.es557.js.map +0 -1
- package/dist/index.es611.js +0 -39
- package/dist/index.es611.js.map +0 -1
- /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
package/dist/index.cjs733.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs733.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.js"],"sourcesContent":["function a(r){const{m:t,mx:m,my:o,mt:p,mr:n,mb:s,ml:e,...i}=r;return{m:t,mx:m,my:o,mt:p,mr:n,mb:s,ml:e,rest:i}}export{a as extractMarginProps};\n//# sourceMappingURL=extract-margin-props.js.map\n"],"names":["a","r","m","o","p","n","s","e","i"],"mappings":"gFAAA,SAASA,EAAEC,EAAE,CAAC,KAAK,CAAC,EAAE,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,CAAC,EAAEP,EAAE,MAAM,CAAC,EAAE,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,GAAGC,EAAE,KAAKC,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs733.js","sources":["../node_modules/domhandler/lib/node.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cloneNode = exports.hasChildren = exports.isDocument = exports.isDirective = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = exports.Element = exports.Document = exports.CDATA = exports.NodeWithChildren = exports.ProcessingInstruction = exports.Comment = exports.Text = exports.DataNode = exports.Node = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nvar Node = /** @class */ (function () {\n function Node() {\n /** Parent of the node */\n this.parent = null;\n /** Previous sibling */\n this.prev = null;\n /** Next sibling */\n this.next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n this.startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n this.endIndex = null;\n }\n Object.defineProperty(Node.prototype, \"parentNode\", {\n // Read-write aliases for properties\n /**\n * Same as {@link parent}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.parent;\n },\n set: function (parent) {\n this.parent = parent;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"previousSibling\", {\n /**\n * Same as {@link prev}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.prev;\n },\n set: function (prev) {\n this.prev = prev;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"nextSibling\", {\n /**\n * Same as {@link next}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.next;\n },\n set: function (next) {\n this.next = next;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Clone this node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n Node.prototype.cloneNode = function (recursive) {\n if (recursive === void 0) { recursive = false; }\n return cloneNode(this, recursive);\n };\n return Node;\n}());\nexports.Node = Node;\n/**\n * A node that contains some data.\n */\nvar DataNode = /** @class */ (function (_super) {\n __extends(DataNode, _super);\n /**\n * @param data The content of the data node\n */\n function DataNode(data) {\n var _this = _super.call(this) || this;\n _this.data = data;\n return _this;\n }\n Object.defineProperty(DataNode.prototype, \"nodeValue\", {\n /**\n * Same as {@link data}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.data;\n },\n set: function (data) {\n this.data = data;\n },\n enumerable: false,\n configurable: true\n });\n return DataNode;\n}(Node));\nexports.DataNode = DataNode;\n/**\n * Text within the document.\n */\nvar Text = /** @class */ (function (_super) {\n __extends(Text, _super);\n function Text() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Text;\n return _this;\n }\n Object.defineProperty(Text.prototype, \"nodeType\", {\n get: function () {\n return 3;\n },\n enumerable: false,\n configurable: true\n });\n return Text;\n}(DataNode));\nexports.Text = Text;\n/**\n * Comments within the document.\n */\nvar Comment = /** @class */ (function (_super) {\n __extends(Comment, _super);\n function Comment() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Comment;\n return _this;\n }\n Object.defineProperty(Comment.prototype, \"nodeType\", {\n get: function () {\n return 8;\n },\n enumerable: false,\n configurable: true\n });\n return Comment;\n}(DataNode));\nexports.Comment = Comment;\n/**\n * Processing instructions, including doc types.\n */\nvar ProcessingInstruction = /** @class */ (function (_super) {\n __extends(ProcessingInstruction, _super);\n function ProcessingInstruction(name, data) {\n var _this = _super.call(this, data) || this;\n _this.name = name;\n _this.type = domelementtype_1.ElementType.Directive;\n return _this;\n }\n Object.defineProperty(ProcessingInstruction.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n return ProcessingInstruction;\n}(DataNode));\nexports.ProcessingInstruction = ProcessingInstruction;\n/**\n * A `Node` that can have children.\n */\nvar NodeWithChildren = /** @class */ (function (_super) {\n __extends(NodeWithChildren, _super);\n /**\n * @param children Children of the node. Only certain node types can have children.\n */\n function NodeWithChildren(children) {\n var _this = _super.call(this) || this;\n _this.children = children;\n return _this;\n }\n Object.defineProperty(NodeWithChildren.prototype, \"firstChild\", {\n // Aliases\n /** First child of the node. */\n get: function () {\n var _a;\n return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"lastChild\", {\n /** Last child of the node. */\n get: function () {\n return this.children.length > 0\n ? this.children[this.children.length - 1]\n : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"childNodes\", {\n /**\n * Same as {@link children}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.children;\n },\n set: function (children) {\n this.children = children;\n },\n enumerable: false,\n configurable: true\n });\n return NodeWithChildren;\n}(Node));\nexports.NodeWithChildren = NodeWithChildren;\nvar CDATA = /** @class */ (function (_super) {\n __extends(CDATA, _super);\n function CDATA() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.CDATA;\n return _this;\n }\n Object.defineProperty(CDATA.prototype, \"nodeType\", {\n get: function () {\n return 4;\n },\n enumerable: false,\n configurable: true\n });\n return CDATA;\n}(NodeWithChildren));\nexports.CDATA = CDATA;\n/**\n * The root node of the document.\n */\nvar Document = /** @class */ (function (_super) {\n __extends(Document, _super);\n function Document() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Root;\n return _this;\n }\n Object.defineProperty(Document.prototype, \"nodeType\", {\n get: function () {\n return 9;\n },\n enumerable: false,\n configurable: true\n });\n return Document;\n}(NodeWithChildren));\nexports.Document = Document;\n/**\n * An element within the DOM.\n */\nvar Element = /** @class */ (function (_super) {\n __extends(Element, _super);\n /**\n * @param name Name of the tag, eg. `div`, `span`.\n * @param attribs Object mapping attribute names to attribute values.\n * @param children Children of the node.\n */\n function Element(name, attribs, children, type) {\n if (children === void 0) { children = []; }\n if (type === void 0) { type = name === \"script\"\n ? domelementtype_1.ElementType.Script\n : name === \"style\"\n ? domelementtype_1.ElementType.Style\n : domelementtype_1.ElementType.Tag; }\n var _this = _super.call(this, children) || this;\n _this.name = name;\n _this.attribs = attribs;\n _this.type = type;\n return _this;\n }\n Object.defineProperty(Element.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"tagName\", {\n // DOM Level 1 aliases\n /**\n * Same as {@link name}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.name;\n },\n set: function (name) {\n this.name = name;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"attributes\", {\n get: function () {\n var _this = this;\n return Object.keys(this.attribs).map(function (name) {\n var _a, _b;\n return ({\n name: name,\n value: _this.attribs[name],\n namespace: (_a = _this[\"x-attribsNamespace\"]) === null || _a === void 0 ? void 0 : _a[name],\n prefix: (_b = _this[\"x-attribsPrefix\"]) === null || _b === void 0 ? void 0 : _b[name],\n });\n });\n },\n enumerable: false,\n configurable: true\n });\n return Element;\n}(NodeWithChildren));\nexports.Element = Element;\n/**\n * @param node Node to check.\n * @returns `true` if the node is a `Element`, `false` otherwise.\n */\nfunction isTag(node) {\n return (0, domelementtype_1.isTag)(node);\n}\nexports.isTag = isTag;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `CDATA`, `false` otherwise.\n */\nfunction isCDATA(node) {\n return node.type === domelementtype_1.ElementType.CDATA;\n}\nexports.isCDATA = isCDATA;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Text`, `false` otherwise.\n */\nfunction isText(node) {\n return node.type === domelementtype_1.ElementType.Text;\n}\nexports.isText = isText;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Comment`, `false` otherwise.\n */\nfunction isComment(node) {\n return node.type === domelementtype_1.ElementType.Comment;\n}\nexports.isComment = isComment;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDirective(node) {\n return node.type === domelementtype_1.ElementType.Directive;\n}\nexports.isDirective = isDirective;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDocument(node) {\n return node.type === domelementtype_1.ElementType.Root;\n}\nexports.isDocument = isDocument;\n/**\n * @param node Node to check.\n * @returns `true` if the node has children, `false` otherwise.\n */\nfunction hasChildren(node) {\n return Object.prototype.hasOwnProperty.call(node, \"children\");\n}\nexports.hasChildren = hasChildren;\n/**\n * Clone a node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\nfunction cloneNode(node, recursive) {\n if (recursive === void 0) { recursive = false; }\n var result;\n if (isText(node)) {\n result = new Text(node.data);\n }\n else if (isComment(node)) {\n result = new Comment(node.data);\n }\n else if (isTag(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_1 = new Element(node.name, __assign({}, node.attribs), children);\n children.forEach(function (child) { return (child.parent = clone_1); });\n if (node.namespace != null) {\n clone_1.namespace = node.namespace;\n }\n if (node[\"x-attribsNamespace\"]) {\n clone_1[\"x-attribsNamespace\"] = __assign({}, node[\"x-attribsNamespace\"]);\n }\n if (node[\"x-attribsPrefix\"]) {\n clone_1[\"x-attribsPrefix\"] = __assign({}, node[\"x-attribsPrefix\"]);\n }\n result = clone_1;\n }\n else if (isCDATA(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_2 = new CDATA(children);\n children.forEach(function (child) { return (child.parent = clone_2); });\n result = clone_2;\n }\n else if (isDocument(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_3 = new Document(children);\n children.forEach(function (child) { return (child.parent = clone_3); });\n if (node[\"x-mode\"]) {\n clone_3[\"x-mode\"] = node[\"x-mode\"];\n }\n result = clone_3;\n }\n else if (isDirective(node)) {\n var instruction = new ProcessingInstruction(node.name, node.data);\n if (node[\"x-name\"] != null) {\n instruction[\"x-name\"] = node[\"x-name\"];\n instruction[\"x-publicId\"] = node[\"x-publicId\"];\n instruction[\"x-systemId\"] = node[\"x-systemId\"];\n }\n result = instruction;\n }\n else {\n throw new Error(\"Not implemented yet: \".concat(node.type));\n }\n result.startIndex = node.startIndex;\n result.endIndex = node.endIndex;\n if (node.sourceCodeLocation != null) {\n result.sourceCodeLocation = node.sourceCodeLocation;\n }\n return result;\n}\nexports.cloneNode = cloneNode;\nfunction cloneChildren(childs) {\n var children = childs.map(function (child) { return cloneNode(child, true); });\n for (var i = 1; i < children.length; i++) {\n children[i].prev = children[i - 1];\n children[i - 1].next = children[i];\n }\n return children;\n}\n"],"names":["__extends","this","extendStatics","d","b","p","__","__assign","t","s","i","n","node","domelementtype_1","require$$0","Node","parent","prev","next","recursive","cloneNode","DataNode","_super","data","_this","Text","Comment","ProcessingInstruction","name","NodeWithChildren","children","_a","CDATA","Document","Element","attribs","type","_b","isTag","isCDATA","isText","isComment","isDirective","isDocument","hasChildren","result","cloneChildren","clone_1","child","clone_2","clone_3","instruction","childs"],"mappings":"mMACA,IAAIA,EAAaC,EAAAA,WAAQA,EAAAA,UAAK,YAAe,UAAY,CACrD,IAAIC,EAAgB,SAAUC,EAAGC,EAAG,CAChC,OAAAF,EAAgB,OAAO,gBAClB,CAAE,UAAW,CAAA,aAAgB,OAAS,SAAUC,EAAGC,EAAG,CAAED,EAAE,UAAYC,CAAE,GACzE,SAAUD,EAAGC,EAAG,CAAE,QAASC,KAAKD,EAAO,OAAO,UAAU,eAAe,KAAKA,EAAGC,CAAC,IAAGF,EAAEE,CAAC,EAAID,EAAEC,CAAC,EAAE,EAC5FH,EAAcC,EAAGC,CAAC,CACjC,EACI,OAAO,SAAUD,EAAGC,EAAG,CACnB,GAAI,OAAOA,GAAM,YAAcA,IAAM,KACjC,MAAM,IAAI,UAAU,uBAAyB,OAAOA,CAAC,EAAI,+BAA+B,EAC5FF,EAAcC,EAAGC,CAAC,EAClB,SAASE,GAAK,CAAE,KAAK,YAAcH,CAAE,CACrCA,EAAE,UAAYC,IAAM,KAAO,OAAO,OAAOA,CAAC,GAAKE,EAAG,UAAYF,EAAE,UAAW,IAAIE,EACvF,CACA,GAAC,EACGC,EAAYN,EAAAA,WAAQA,EAAAA,UAAK,UAAa,UAAY,CAClD,OAAAM,EAAW,OAAO,Q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B,EAASH,CAAQ,EACnCA,EAAS,QAAQ,SAAUkB,EAAO,CAAE,OAAQA,EAAM,OAASE,EAAW,EAClEtC,EAAK,QAAQ,IACbsC,EAAQ,QAAQ,EAAItC,EAAK,QAAQ,GAErCiC,EAASK,CACjB,SACaR,EAAY9B,CAAI,EAAG,CACxB,IAAIuC,EAAc,IAAIxB,EAAsBf,EAAK,KAAMA,EAAK,IAAI,EAC5DA,EAAK,QAAQ,GAAK,OAClBuC,EAAY,QAAQ,EAAIvC,EAAK,QAAQ,EACrCuC,EAAY,YAAY,EAAIvC,EAAK,YAAY,EAC7CuC,EAAY,YAAY,EAAIvC,EAAK,YAAY,GAEjDiC,EAASM,CACjB,KAEQ,OAAM,IAAI,MAAM,wBAAwB,OAAOvC,EAAK,IAAI,CAAC,EAE7D,OAAAiC,EAAO,WAAajC,EAAK,WACzBiC,EAAO,SAAWjC,EAAK,SACnBA,EAAK,oBAAsB,OAC3BiC,EAAO,mBAAqBjC,EAAK,oBAE9BiC,CACX,CACAjC,EAAAA,UAAA,UAAoBQ,EACpB,SAAS0B,EAAcM,EAAQ,CAE3B,QADItB,EAAWsB,EAAO,IAAI,SAAUJ,EAAO,CAAE,OAAO5B,EAAU4B,EAAO,EAAI,EAAI,EACpEtC,EAAI,EAAGA,EAAIoB,EAAS,OAAQpB,IACjCoB,EAASpB,CAAC,EAAE,KAAOoB,EAASpB,EAAI,CAAC,EACjCoB,EAASpB,EAAI,CAAC,EAAE,KAAOoB,EAASpB,CAAC,EAErC,OAAOoB,CACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs734.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={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs734.js.map
|
package/dist/index.cjs734.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs734.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs734.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs735.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={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs735.js.map
|
package/dist/index.cjs735.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs735.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs735.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs736.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={};exports.__exports=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs736.js.map
|
package/dist/index.cjs736.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs736.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs736.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs737.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs771.js"),T=require("./index.cjs667.js"),o=require("./index.cjs772.js"),y=require("./index.cjs669.js");var s;function g(){if(s)return t.__exports;s=1;var f=t.__exports&&t.__exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(t.__exports,"__esModule",{value:!0}),t.__exports.getOuterHTML=a,t.__exports.getInnerHTML=p,t.__exports.getText=i,t.__exports.textContent=n,t.__exports.innerText=u;var e=T.__require(),l=f(o.__require()),x=y.__require();function a(r,_){return(0,l.default)(r,_)}function p(r,_){return(0,e.hasChildren)(r)?r.children.map(function(c){return a(c,_)}).join(""):""}function i(r){return Array.isArray(r)?r.map(i).join(""):(0,e.isTag)(r)?r.name==="br"?`
|
|
2
|
+
`:i(r.children):(0,e.isCDATA)(r)?i(r.children):(0,e.isText)(r)?r.data:""}function n(r){return Array.isArray(r)?r.map(n).join(""):(0,e.hasChildren)(r)&&!(0,e.isComment)(r)?n(r.children):(0,e.isText)(r)?r.data:""}function u(r){return Array.isArray(r)?r.map(u).join(""):(0,e.hasChildren)(r)&&(r.type===x.ElementType.Tag||(0,e.isCDATA)(r))?u(r.children):(0,e.isText)(r)?r.data:""}return t.__exports}exports.__require=g;
|
|
2
3
|
//# sourceMappingURL=index.cjs737.js.map
|
package/dist/index.cjs737.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs737.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs737.js","sources":["../node_modules/domutils/lib/stringify.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getOuterHTML = getOuterHTML;\nexports.getInnerHTML = getInnerHTML;\nexports.getText = getText;\nexports.textContent = textContent;\nexports.innerText = innerText;\nvar domhandler_1 = require(\"domhandler\");\nvar dom_serializer_1 = __importDefault(require(\"dom-serializer\"));\nvar domelementtype_1 = require(\"domelementtype\");\n/**\n * @category Stringify\n * @deprecated Use the `dom-serializer` module directly.\n * @param node Node to get the outer HTML of.\n * @param options Options for serialization.\n * @returns `node`'s outer HTML.\n */\nfunction getOuterHTML(node, options) {\n return (0, dom_serializer_1.default)(node, options);\n}\n/**\n * @category Stringify\n * @deprecated Use the `dom-serializer` module directly.\n * @param node Node to get the inner HTML of.\n * @param options Options for serialization.\n * @returns `node`'s inner HTML.\n */\nfunction getInnerHTML(node, options) {\n return (0, domhandler_1.hasChildren)(node)\n ? node.children.map(function (node) { return getOuterHTML(node, options); }).join(\"\")\n : \"\";\n}\n/**\n * Get a node's inner text. Same as `textContent`, but inserts newlines for `<br>` tags. Ignores comments.\n *\n * @category Stringify\n * @deprecated Use `textContent` instead.\n * @param node Node to get the inner text of.\n * @returns `node`'s inner text.\n */\nfunction getText(node) {\n if (Array.isArray(node))\n return node.map(getText).join(\"\");\n if ((0, domhandler_1.isTag)(node))\n return node.name === \"br\" ? \"\\n\" : getText(node.children);\n if ((0, domhandler_1.isCDATA)(node))\n return getText(node.children);\n if ((0, domhandler_1.isText)(node))\n return node.data;\n return \"\";\n}\n/**\n * Get a node's text content. Ignores comments.\n *\n * @category Stringify\n * @param node Node to get the text content of.\n * @returns `node`'s text content.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent}\n */\nfunction textContent(node) {\n if (Array.isArray(node))\n return node.map(textContent).join(\"\");\n if ((0, domhandler_1.hasChildren)(node) && !(0, domhandler_1.isComment)(node)) {\n return textContent(node.children);\n }\n if ((0, domhandler_1.isText)(node))\n return node.data;\n return \"\";\n}\n/**\n * Get a node's inner text, ignoring `<script>` and `<style>` tags. Ignores comments.\n *\n * @category Stringify\n * @param node Node to get the inner text of.\n * @returns `node`'s inner text.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Node/innerText}\n */\nfunction innerText(node) {\n if (Array.isArray(node))\n return node.map(innerText).join(\"\");\n if ((0, domhandler_1.hasChildren)(node) && (node.type === domelementtype_1.ElementType.Tag || (0, domhandler_1.isCDATA)(node))) {\n return innerText(node.children);\n }\n if ((0, domhandler_1.isText)(node))\n return node.data;\n return \"\";\n}\n//# sourceMappingURL=stringify.js.map"],"names":["__importDefault","this","mod","stringify","getOuterHTML","getInnerHTML","getText","textContent","innerText","domhandler_1","require$$0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AK,KACT,EACX,CASA,SAASN,EAAUM,EAAM,CACrB,OAAI,MAAM,QAAQA,CAAI,EACXA,EAAK,IAAIN,CAAS,EAAE,KAAK,EAAE,KAC9BC,EAAa,aAAaK,CAAI,IAAMA,EAAK,OAASF,EAAiB,YAAY,QAAWH,EAAa,SAASK,CAAI,GACjHN,EAAUM,EAAK,QAAQ,KAE1BL,EAAa,QAAQK,CAAI,EACtBA,EAAK,KACT,EACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs738.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const le=require("react"),j=require("./index.cjs531.js"),N=require("./index.cjs530.js"),se=require("./index.cjs524.js"),T=require("./index.cjs523.js"),g=require("./index.cjs556.js"),ce=require("./index.cjs662.js"),ie=require("./index.cjs555.js"),ae=require("./index.cjs792.js"),E=require("./index.cjs522.js"),m=require("./index.cjs266.js");function ue(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const s=ue(le);function de(e,o){return s.useReducer((r,n)=>o[r][n]??r,e)}var Y="ScrollArea",[K]=se.createContextScope(Y),[fe,v]=K(Y),V=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,type:n="hover",dir:t,scrollHideDelay:l=600,...c}=e,[i,a]=s.useState(null),[f,u]=s.useState(null),[h,d]=s.useState(null),[b,S]=s.useState(null),[A,M]=s.useState(null),[R,_]=s.useState(0),[X,L]=s.useState(0),[D,y]=s.useState(!1),[H,O]=s.useState(!1),p=T.useComposedRefs(o,P=>a(P)),x=ce.useDirection(t);return m.jsxRuntimeExports.jsx(fe,{scope:r,type:n,dir:x,scrollHideDelay:l,scrollArea:i,viewport:f,onViewportChange:u,content:h,onContentChange:d,scrollbarX:b,onScrollbarXChange:S,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:A,onScrollbarYChange:M,scrollbarYEnabled:H,onScrollbarYEnabledChange:O,onCornerWidthChange:_,onCornerHeightChange:L,children:m.jsxRuntimeExports.jsx(j.Primitive.div,{dir:x,...c,ref:p,style:{position:"relative","--radix-scroll-area-corner-width":R+"px","--radix-scroll-area-corner-height":X+"px",...e.style}})})});V.displayName=Y;var Q="ScrollAreaViewport",U=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,children:n,nonce:t,...l}=e,c=v(Q,r),i=s.useRef(null),a=T.useComposedRefs(o,i,c.onViewportChange);return m.jsxRuntimeExports.jsxs(m.jsxRuntimeExports.Fragment,{children:[m.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),m.jsxRuntimeExports.jsx(j.Primitive.div,{"data-radix-scroll-area-viewport":"",...l,ref:a,style:{overflowX:c.scrollbarXEnabled?"scroll":"hidden",overflowY:c.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsxRuntimeExports.jsx("div",{ref:c.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});U.displayName=Q;var w="ScrollAreaScrollbar",q=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=v(w,e.__scopeScrollArea),{onScrollbarXEnabledChange:l,onScrollbarYEnabledChange:c}=t,i=e.orientation==="horizontal";return s.useEffect(()=>(i?l(!0):c(!0),()=>{i?l(!1):c(!1)}),[i,l,c]),t.type==="hover"?m.jsxRuntimeExports.jsx(he,{...n,ref:o,forceMount:r}):t.type==="scroll"?m.jsxRuntimeExports.jsx(me,{...n,ref:o,forceMount:r}):t.type==="auto"?m.jsxRuntimeExports.jsx(Z,{...n,ref:o,forceMount:r}):t.type==="always"?m.jsxRuntimeExports.jsx(B,{...n,ref:o}):null});q.displayName=w;var he=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=v(w,e.__scopeScrollArea),[l,c]=s.useState(!1);return s.useEffect(()=>{const i=t.scrollArea;let a=0;if(i){const f=()=>{window.clearTimeout(a),c(!0)},u=()=>{a=window.setTimeout(()=>c(!1),t.scrollHideDelay)};return i.addEventListener("pointerenter",f),i.addEventListener("pointerleave",u),()=>{window.clearTimeout(a),i.removeEventListener("pointerenter",f),i.removeEventListener("pointerleave",u)}}},[t.scrollArea,t.scrollHideDelay]),m.jsxRuntimeExports.jsx(N.Presence,{present:r||l,children:m.jsxRuntimeExports.jsx(Z,{"data-state":l?"visible":"hidden",...n,ref:o})})}),me=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=v(w,e.__scopeScrollArea),l=e.orientation==="horizontal",c=I(()=>a("SCROLL_END"),100),[i,a]=de("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return s.useEffect(()=>{if(i==="idle"){const f=window.setTimeout(()=>a("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(f)}},[i,t.scrollHideDelay,a]),s.useEffect(()=>{const f=t.viewport,u=l?"scrollLeft":"scrollTop";if(f){let h=f[u];const d=()=>{const b=f[u];h!==b&&(a("SCROLL"),c()),h=b};return f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[t.viewport,l,a,c]),m.jsxRuntimeExports.jsx(N.Presence,{present:r||i!=="hidden",children:m.jsxRuntimeExports.jsx(B,{"data-state":i==="hidden"?"hidden":"visible",...n,ref:o,onPointerEnter:E.composeEventHandlers(e.onPointerEnter,()=>a("POINTER_ENTER")),onPointerLeave:E.composeEventHandlers(e.onPointerLeave,()=>a("POINTER_LEAVE"))})})}),Z=s.forwardRef((e,o)=>{const r=v(w,e.__scopeScrollArea),{forceMount:n,...t}=e,[l,c]=s.useState(!1),i=e.orientation==="horizontal",a=I(()=>{if(r.viewport){const f=r.viewport.offsetWidth<r.viewport.scrollWidth,u=r.viewport.offsetHeight<r.viewport.scrollHeight;c(i?f:u)}},10);return C(r.viewport,a),C(r.content,a),m.jsxRuntimeExports.jsx(N.Presence,{present:n||l,children:m.jsxRuntimeExports.jsx(B,{"data-state":l?"visible":"hidden",...t,ref:o})})}),B=s.forwardRef((e,o)=>{const{orientation:r="vertical",...n}=e,t=v(w,e.__scopeScrollArea),l=s.useRef(null),c=s.useRef(0),[i,a]=s.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),f=te(i.viewport,i.content),u={...n,sizes:i,onSizesChange:a,hasThumb:f>0&&f<1,onThumbChange:d=>l.current=d,onThumbPointerUp:()=>c.current=0,onThumbPointerDown:d=>c.current=d};function h(d,b){return we(d,c.current,i,b)}return r==="horizontal"?m.jsxRuntimeExports.jsx(be,{...u,ref:o,onThumbPositionChange:()=>{if(t.viewport&&l.current){const d=t.viewport.scrollLeft,b=J(d,i,t.dir);l.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:d=>{t.viewport&&(t.viewport.scrollLeft=d)},onDragScroll:d=>{t.viewport&&(t.viewport.scrollLeft=h(d,t.dir))}}):r==="vertical"?m.jsxRuntimeExports.jsx(pe,{...u,ref:o,onThumbPositionChange:()=>{if(t.viewport&&l.current){const d=t.viewport.scrollTop,b=J(d,i);l.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:d=>{t.viewport&&(t.viewport.scrollTop=d)},onDragScroll:d=>{t.viewport&&(t.viewport.scrollTop=h(d))}}):null}),be=s.forwardRef((e,o)=>{const{sizes:r,onSizesChange:n,...t}=e,l=v(w,e.__scopeScrollArea),[c,i]=s.useState(),a=s.useRef(null),f=T.useComposedRefs(o,a,l.onScrollbarXChange);return s.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),m.jsxRuntimeExports.jsx(re,{"data-orientation":"horizontal",...t,ref:f,sizes:r,style:{bottom:0,left:l.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:l.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":k(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,h)=>{if(l.viewport){const d=l.viewport.scrollLeft+u.deltaX;e.onWheelScroll(d),ne(d,h)&&u.preventDefault()}},onResize:()=>{a.current&&l.viewport&&c&&n({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:a.current.clientWidth,paddingStart:z(c.paddingLeft),paddingEnd:z(c.paddingRight)}})}})}),pe=s.forwardRef((e,o)=>{const{sizes:r,onSizesChange:n,...t}=e,l=v(w,e.__scopeScrollArea),[c,i]=s.useState(),a=s.useRef(null),f=T.useComposedRefs(o,a,l.onScrollbarYChange);return s.useEffect(()=>{a.current&&i(getComputedStyle(a.current))},[a]),m.jsxRuntimeExports.jsx(re,{"data-orientation":"vertical",...t,ref:f,sizes:r,style:{top:0,right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":k(r)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,h)=>{if(l.viewport){const d=l.viewport.scrollTop+u.deltaY;e.onWheelScroll(d),ne(d,h)&&u.preventDefault()}},onResize:()=>{a.current&&l.viewport&&c&&n({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:a.current.clientHeight,paddingStart:z(c.paddingTop),paddingEnd:z(c.paddingBottom)}})}})}),[Se,ee]=K(w),re=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:t,onThumbChange:l,onThumbPointerUp:c,onThumbPointerDown:i,onThumbPositionChange:a,onDragScroll:f,onWheelScroll:u,onResize:h,...d}=e,b=v(w,r),[S,A]=s.useState(null),M=T.useComposedRefs(o,p=>A(p)),R=s.useRef(null),_=s.useRef(""),X=b.viewport,L=n.content-n.viewport,D=g.useCallbackRef(u),y=g.useCallbackRef(a),H=I(h,10);function O(p){if(R.current){const x=p.clientX-R.current.left,P=p.clientY-R.current.top;f({x,y:P})}}return s.useEffect(()=>{const p=x=>{const P=x.target;(S==null?void 0:S.contains(P))&&D(x,L)};return document.addEventListener("wheel",p,{passive:!1}),()=>document.removeEventListener("wheel",p,{passive:!1})},[X,S,L,D]),s.useEffect(y,[n,y]),C(S,H),C(b.content,H),m.jsxRuntimeExports.jsx(Se,{scope:r,scrollbar:S,hasThumb:t,onThumbChange:g.useCallbackRef(l),onThumbPointerUp:g.useCallbackRef(c),onThumbPositionChange:y,onThumbPointerDown:g.useCallbackRef(i),children:m.jsxRuntimeExports.jsx(j.Primitive.div,{...d,ref:M,style:{position:"absolute",...d.style},onPointerDown:E.composeEventHandlers(e.onPointerDown,p=>{p.button===0&&(p.target.setPointerCapture(p.pointerId),R.current=S.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),O(p))}),onPointerMove:E.composeEventHandlers(e.onPointerMove,O),onPointerUp:E.composeEventHandlers(e.onPointerUp,p=>{const x=p.target;x.hasPointerCapture(p.pointerId)&&x.releasePointerCapture(p.pointerId),document.body.style.webkitUserSelect=_.current,b.viewport&&(b.viewport.style.scrollBehavior=""),R.current=null})})})}),W="ScrollAreaThumb",F=s.forwardRef((e,o)=>{const{forceMount:r,...n}=e,t=ee(W,e.__scopeScrollArea);return m.jsxRuntimeExports.jsx(N.Presence,{present:r||t.hasThumb,children:m.jsxRuntimeExports.jsx(ve,{ref:o,...n})})}),ve=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,style:n,...t}=e,l=v(W,r),c=ee(W,r),{onThumbPositionChange:i}=c,a=T.useComposedRefs(o,h=>c.onThumbChange(h)),f=s.useRef(void 0),u=I(()=>{f.current&&(f.current(),f.current=void 0)},100);return s.useEffect(()=>{const h=l.viewport;if(h){const d=()=>{if(u(),!f.current){const b=Re(h,i);f.current=b,i()}};return i(),h.addEventListener("scroll",d),()=>h.removeEventListener("scroll",d)}},[l.viewport,u,i]),m.jsxRuntimeExports.jsx(j.Primitive.div,{"data-state":c.hasThumb?"visible":"hidden",...t,ref:a,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:E.composeEventHandlers(e.onPointerDownCapture,h=>{const b=h.target.getBoundingClientRect(),S=h.clientX-b.left,A=h.clientY-b.top;c.onThumbPointerDown({x:S,y:A})}),onPointerUp:E.composeEventHandlers(e.onPointerUp,c.onThumbPointerUp)})});F.displayName=W;var $="ScrollAreaCorner",G=s.forwardRef((e,o)=>{const r=v($,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?m.jsxRuntimeExports.jsx(xe,{...e,ref:o}):null});G.displayName=$;var xe=s.forwardRef((e,o)=>{const{__scopeScrollArea:r,...n}=e,t=v($,r),[l,c]=s.useState(0),[i,a]=s.useState(0),f=!!(l&&i);return C(t.scrollbarX,()=>{var h;const u=((h=t.scrollbarX)==null?void 0:h.offsetHeight)||0;t.onCornerHeightChange(u),a(u)}),C(t.scrollbarY,()=>{var h;const u=((h=t.scrollbarY)==null?void 0:h.offsetWidth)||0;t.onCornerWidthChange(u),c(u)}),f?m.jsxRuntimeExports.jsx(j.Primitive.div,{...n,ref:o,style:{width:l,height:i,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function z(e){return e?parseInt(e,10):0}function te(e,o){const r=e/o;return isNaN(r)?0:r}function k(e){const o=te(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*o;return Math.max(n,18)}function we(e,o,r,n="ltr"){const t=k(r),l=t/2,c=o||l,i=t-c,a=r.scrollbar.paddingStart+c,f=r.scrollbar.size-r.scrollbar.paddingEnd-i,u=r.content-r.viewport,h=n==="ltr"?[0,u]:[u*-1,0];return oe([a,f],h)(e)}function J(e,o,r="ltr"){const n=k(o),t=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,l=o.scrollbar.size-t,c=o.content-o.viewport,i=l-n,a=r==="ltr"?[0,c]:[c*-1,0],f=ae.clamp(e,a);return oe([0,c],[0,i])(f)}function oe(e,o){return r=>{if(e[0]===e[1]||o[0]===o[1])return o[0];const n=(o[1]-o[0])/(e[1]-e[0]);return o[0]+n*(r-e[0])}}function ne(e,o){return e>0&&e<o}var Re=(e,o=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return(function t(){const l={left:e.scrollLeft,top:e.scrollTop},c=r.left!==l.left,i=r.top!==l.top;(c||i)&&o(),r=l,n=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(n)};function I(e,o){const r=g.useCallbackRef(e),n=s.useRef(0);return s.useEffect(()=>()=>window.clearTimeout(n.current),[]),s.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,o)},[r,o])}function C(e,o){const r=g.useCallbackRef(o);ie.useLayoutEffect(()=>{let n=0;if(e){const t=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return t.observe(e),()=>{window.cancelAnimationFrame(n),t.unobserve(e)}}},[e,r])}var ge=V,Ee=U,Pe=q,Ce=F,Te=G;exports.Corner=Te;exports.Root=ge;exports.ScrollArea=V;exports.ScrollAreaCorner=G;exports.ScrollAreaScrollbar=q;exports.ScrollAreaThumb=F;exports.ScrollAreaViewport=U;exports.Scrollbar=Pe;exports.Thumb=Ce;exports.Viewport=Ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs773.js"),d=require("./index.cjs667.js");var p;function f(){if(p)return n.__exports;p=1,Object.defineProperty(n.__exports,"__esModule",{value:!0}),n.__exports.getChildren=s,n.__exports.getParent=o,n.__exports.getSiblings=v,n.__exports.getAttributeValue=g,n.__exports.hasAttrib=b,n.__exports.getName=x,n.__exports.nextElementSibling=c,n.__exports.prevElementSibling=h;var a=d.__require();function s(e){return(0,a.hasChildren)(e)?e.children:[]}function o(e){return e.parent||null}function v(e){var t,r,_=o(e);if(_!=null)return s(_);for(var l=[e],i=e.prev,u=e.next;i!=null;)l.unshift(i),t=i,i=t.prev;for(;u!=null;)l.push(u),r=u,u=r.next;return l}function g(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}function b(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function x(e){return e.name}function c(e){for(var t,r=e.next;r!==null&&!(0,a.isTag)(r);)t=r,r=t.next;return r}function h(e){for(var t,r=e.prev;r!==null&&!(0,a.isTag)(r);)t=r,r=t.prev;return r}return n.__exports}exports.__require=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs738.js.map
|
package/dist/index.cjs738.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs738.js","sources":["../node_modules/@radix-ui/react-scroll-area/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/scroll-area.tsx\nimport * as React2 from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { clamp } from \"@radix-ui/number\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\n\n// src/use-state-machine.ts\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/scroll-area.tsx\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar SCROLL_AREA_NAME = \"ScrollArea\";\nvar [createScrollAreaContext, createScrollAreaScope] = createContextScope(SCROLL_AREA_NAME);\nvar [ScrollAreaProvider, useScrollAreaContext] = createScrollAreaContext(SCROLL_AREA_NAME);\nvar ScrollArea = React2.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeScrollArea,\n type = \"hover\",\n dir,\n scrollHideDelay = 600,\n ...scrollAreaProps\n } = props;\n const [scrollArea, setScrollArea] = React2.useState(null);\n const [viewport, setViewport] = React2.useState(null);\n const [content, setContent] = React2.useState(null);\n const [scrollbarX, setScrollbarX] = React2.useState(null);\n const [scrollbarY, setScrollbarY] = React2.useState(null);\n const [cornerWidth, setCornerWidth] = React2.useState(0);\n const [cornerHeight, setCornerHeight] = React2.useState(0);\n const [scrollbarXEnabled, setScrollbarXEnabled] = React2.useState(false);\n const [scrollbarYEnabled, setScrollbarYEnabled] = React2.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setScrollArea(node));\n const direction = useDirection(dir);\n return /* @__PURE__ */ jsx(\n ScrollAreaProvider,\n {\n scope: __scopeScrollArea,\n type,\n dir: direction,\n scrollHideDelay,\n scrollArea,\n viewport,\n onViewportChange: setViewport,\n content,\n onContentChange: setContent,\n scrollbarX,\n onScrollbarXChange: setScrollbarX,\n scrollbarXEnabled,\n onScrollbarXEnabledChange: setScrollbarXEnabled,\n scrollbarY,\n onScrollbarYChange: setScrollbarY,\n scrollbarYEnabled,\n onScrollbarYEnabledChange: setScrollbarYEnabled,\n onCornerWidthChange: setCornerWidth,\n onCornerHeightChange: setCornerHeight,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n dir: direction,\n ...scrollAreaProps,\n ref: composedRefs,\n style: {\n position: \"relative\",\n // Pass corner sizes as CSS vars to reduce re-renders of context consumers\n [\"--radix-scroll-area-corner-width\"]: cornerWidth + \"px\",\n [\"--radix-scroll-area-corner-height\"]: cornerHeight + \"px\",\n ...props.style\n }\n }\n )\n }\n );\n }\n);\nScrollArea.displayName = SCROLL_AREA_NAME;\nvar VIEWPORT_NAME = \"ScrollAreaViewport\";\nvar ScrollAreaViewport = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, children, nonce, ...viewportProps } = props;\n const context = useScrollAreaContext(VIEWPORT_NAME, __scopeScrollArea);\n const ref = React2.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`\n },\n nonce\n }\n ),\n /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-scroll-area-viewport\": \"\",\n ...viewportProps,\n ref: composedRefs,\n style: {\n /**\n * We don't support `visible` because the intention is to have at least one scrollbar\n * if this component is used and `visible` will behave like `auto` in that case\n * https://developer.mozilla.org/en-US/docs/Web/CSS/overflow#description\n *\n * We don't handle `auto` because the intention is for the native implementation\n * to be hidden if using this component. We just want to ensure the node is scrollable\n * so could have used either `scroll` or `auto` here. We picked `scroll` to prevent\n * the browser from having to work out whether to render native scrollbars or not,\n * we tell it to with the intention of hiding them in CSS.\n */\n overflowX: context.scrollbarXEnabled ? \"scroll\" : \"hidden\",\n overflowY: context.scrollbarYEnabled ? \"scroll\" : \"hidden\",\n ...props.style\n },\n children: /* @__PURE__ */ jsx(\"div\", { ref: context.onContentChange, style: { minWidth: \"100%\", display: \"table\" }, children })\n }\n )\n ] });\n }\n);\nScrollAreaViewport.displayName = VIEWPORT_NAME;\nvar SCROLLBAR_NAME = \"ScrollAreaScrollbar\";\nvar ScrollAreaScrollbar = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { onScrollbarXEnabledChange, onScrollbarYEnabledChange } = context;\n const isHorizontal = props.orientation === \"horizontal\";\n React2.useEffect(() => {\n isHorizontal ? onScrollbarXEnabledChange(true) : onScrollbarYEnabledChange(true);\n return () => {\n isHorizontal ? onScrollbarXEnabledChange(false) : onScrollbarYEnabledChange(false);\n };\n }, [isHorizontal, onScrollbarXEnabledChange, onScrollbarYEnabledChange]);\n return context.type === \"hover\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarHover, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"scroll\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarScroll, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"auto\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarAuto, { ...scrollbarProps, ref: forwardedRef, forceMount }) : context.type === \"always\" ? /* @__PURE__ */ jsx(ScrollAreaScrollbarVisible, { ...scrollbarProps, ref: forwardedRef }) : null;\n }\n);\nScrollAreaScrollbar.displayName = SCROLLBAR_NAME;\nvar ScrollAreaScrollbarHover = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [visible, setVisible] = React2.useState(false);\n React2.useEffect(() => {\n const scrollArea = context.scrollArea;\n let hideTimer = 0;\n if (scrollArea) {\n const handlePointerEnter = () => {\n window.clearTimeout(hideTimer);\n setVisible(true);\n };\n const handlePointerLeave = () => {\n hideTimer = window.setTimeout(() => setVisible(false), context.scrollHideDelay);\n };\n scrollArea.addEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.addEventListener(\"pointerleave\", handlePointerLeave);\n return () => {\n window.clearTimeout(hideTimer);\n scrollArea.removeEventListener(\"pointerenter\", handlePointerEnter);\n scrollArea.removeEventListener(\"pointerleave\", handlePointerLeave);\n };\n }\n }, [context.scrollArea, context.scrollHideDelay]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarAuto,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarScroll = React2.forwardRef((props, forwardedRef) => {\n const { forceMount, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const isHorizontal = props.orientation === \"horizontal\";\n const debounceScrollEnd = useDebounceCallback(() => send(\"SCROLL_END\"), 100);\n const [state, send] = useStateMachine(\"hidden\", {\n hidden: {\n SCROLL: \"scrolling\"\n },\n scrolling: {\n SCROLL_END: \"idle\",\n POINTER_ENTER: \"interacting\"\n },\n interacting: {\n SCROLL: \"interacting\",\n POINTER_LEAVE: \"idle\"\n },\n idle: {\n HIDE: \"hidden\",\n SCROLL: \"scrolling\",\n POINTER_ENTER: \"interacting\"\n }\n });\n React2.useEffect(() => {\n if (state === \"idle\") {\n const hideTimer = window.setTimeout(() => send(\"HIDE\"), context.scrollHideDelay);\n return () => window.clearTimeout(hideTimer);\n }\n }, [state, context.scrollHideDelay, send]);\n React2.useEffect(() => {\n const viewport = context.viewport;\n const scrollDirection = isHorizontal ? \"scrollLeft\" : \"scrollTop\";\n if (viewport) {\n let prevScrollPos = viewport[scrollDirection];\n const handleScroll = () => {\n const scrollPos = viewport[scrollDirection];\n const hasScrollInDirectionChanged = prevScrollPos !== scrollPos;\n if (hasScrollInDirectionChanged) {\n send(\"SCROLL\");\n debounceScrollEnd();\n }\n prevScrollPos = scrollPos;\n };\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [context.viewport, isHorizontal, send, debounceScrollEnd]);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || state !== \"hidden\", children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": state === \"hidden\" ? \"hidden\" : \"visible\",\n ...scrollbarProps,\n ref: forwardedRef,\n onPointerEnter: composeEventHandlers(props.onPointerEnter, () => send(\"POINTER_ENTER\")),\n onPointerLeave: composeEventHandlers(props.onPointerLeave, () => send(\"POINTER_LEAVE\"))\n }\n ) });\n});\nvar ScrollAreaScrollbarAuto = React2.forwardRef((props, forwardedRef) => {\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const { forceMount, ...scrollbarProps } = props;\n const [visible, setVisible] = React2.useState(false);\n const isHorizontal = props.orientation === \"horizontal\";\n const handleResize = useDebounceCallback(() => {\n if (context.viewport) {\n const isOverflowX = context.viewport.offsetWidth < context.viewport.scrollWidth;\n const isOverflowY = context.viewport.offsetHeight < context.viewport.scrollHeight;\n setVisible(isHorizontal ? isOverflowX : isOverflowY);\n }\n }, 10);\n useResizeObserver(context.viewport, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || visible, children: /* @__PURE__ */ jsx(\n ScrollAreaScrollbarVisible,\n {\n \"data-state\": visible ? \"visible\" : \"hidden\",\n ...scrollbarProps,\n ref: forwardedRef\n }\n ) });\n});\nvar ScrollAreaScrollbarVisible = React2.forwardRef((props, forwardedRef) => {\n const { orientation = \"vertical\", ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const thumbRef = React2.useRef(null);\n const pointerOffsetRef = React2.useRef(0);\n const [sizes, setSizes] = React2.useState({\n content: 0,\n viewport: 0,\n scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }\n });\n const thumbRatio = getThumbRatio(sizes.viewport, sizes.content);\n const commonProps = {\n ...scrollbarProps,\n sizes,\n onSizesChange: setSizes,\n hasThumb: Boolean(thumbRatio > 0 && thumbRatio < 1),\n onThumbChange: (thumb) => thumbRef.current = thumb,\n onThumbPointerUp: () => pointerOffsetRef.current = 0,\n onThumbPointerDown: (pointerPos) => pointerOffsetRef.current = pointerPos\n };\n function getScrollPosition(pointerPos, dir) {\n return getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes, dir);\n }\n if (orientation === \"horizontal\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarX,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollLeft;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes, context.dir);\n thumbRef.current.style.transform = `translate3d(${offset}px, 0, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollLeft = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) {\n context.viewport.scrollLeft = getScrollPosition(pointerPos, context.dir);\n }\n }\n }\n );\n }\n if (orientation === \"vertical\") {\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarY,\n {\n ...commonProps,\n ref: forwardedRef,\n onThumbPositionChange: () => {\n if (context.viewport && thumbRef.current) {\n const scrollPos = context.viewport.scrollTop;\n const offset = getThumbOffsetFromScroll(scrollPos, sizes);\n thumbRef.current.style.transform = `translate3d(0, ${offset}px, 0)`;\n }\n },\n onWheelScroll: (scrollPos) => {\n if (context.viewport) context.viewport.scrollTop = scrollPos;\n },\n onDragScroll: (pointerPos) => {\n if (context.viewport) context.viewport.scrollTop = getScrollPosition(pointerPos);\n }\n }\n );\n }\n return null;\n});\nvar ScrollAreaScrollbarX = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarXChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"horizontal\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n bottom: 0,\n left: context.dir === \"rtl\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n right: context.dir === \"ltr\" ? \"var(--radix-scroll-area-corner-width)\" : 0,\n [\"--radix-scroll-area-thumb-width\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.x),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.x),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollLeft + event.deltaX;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollWidth,\n viewport: context.viewport.offsetWidth,\n scrollbar: {\n size: ref.current.clientWidth,\n paddingStart: toInt(computedStyle.paddingLeft),\n paddingEnd: toInt(computedStyle.paddingRight)\n }\n });\n }\n }\n }\n );\n});\nvar ScrollAreaScrollbarY = React2.forwardRef((props, forwardedRef) => {\n const { sizes, onSizesChange, ...scrollbarProps } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, props.__scopeScrollArea);\n const [computedStyle, setComputedStyle] = React2.useState();\n const ref = React2.useRef(null);\n const composeRefs = useComposedRefs(forwardedRef, ref, context.onScrollbarYChange);\n React2.useEffect(() => {\n if (ref.current) setComputedStyle(getComputedStyle(ref.current));\n }, [ref]);\n return /* @__PURE__ */ jsx(\n ScrollAreaScrollbarImpl,\n {\n \"data-orientation\": \"vertical\",\n ...scrollbarProps,\n ref: composeRefs,\n sizes,\n style: {\n top: 0,\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: \"var(--radix-scroll-area-corner-height)\",\n [\"--radix-scroll-area-thumb-height\"]: getThumbSize(sizes) + \"px\",\n ...props.style\n },\n onThumbPointerDown: (pointerPos) => props.onThumbPointerDown(pointerPos.y),\n onDragScroll: (pointerPos) => props.onDragScroll(pointerPos.y),\n onWheelScroll: (event, maxScrollPos) => {\n if (context.viewport) {\n const scrollPos = context.viewport.scrollTop + event.deltaY;\n props.onWheelScroll(scrollPos);\n if (isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos)) {\n event.preventDefault();\n }\n }\n },\n onResize: () => {\n if (ref.current && context.viewport && computedStyle) {\n onSizesChange({\n content: context.viewport.scrollHeight,\n viewport: context.viewport.offsetHeight,\n scrollbar: {\n size: ref.current.clientHeight,\n paddingStart: toInt(computedStyle.paddingTop),\n paddingEnd: toInt(computedStyle.paddingBottom)\n }\n });\n }\n }\n }\n );\n});\nvar [ScrollbarProvider, useScrollbarContext] = createScrollAreaContext(SCROLLBAR_NAME);\nvar ScrollAreaScrollbarImpl = React2.forwardRef((props, forwardedRef) => {\n const {\n __scopeScrollArea,\n sizes,\n hasThumb,\n onThumbChange,\n onThumbPointerUp,\n onThumbPointerDown,\n onThumbPositionChange,\n onDragScroll,\n onWheelScroll,\n onResize,\n ...scrollbarProps\n } = props;\n const context = useScrollAreaContext(SCROLLBAR_NAME, __scopeScrollArea);\n const [scrollbar, setScrollbar] = React2.useState(null);\n const composeRefs = useComposedRefs(forwardedRef, (node) => setScrollbar(node));\n const rectRef = React2.useRef(null);\n const prevWebkitUserSelectRef = React2.useRef(\"\");\n const viewport = context.viewport;\n const maxScrollPos = sizes.content - sizes.viewport;\n const handleWheelScroll = useCallbackRef(onWheelScroll);\n const handleThumbPositionChange = useCallbackRef(onThumbPositionChange);\n const handleResize = useDebounceCallback(onResize, 10);\n function handleDragScroll(event) {\n if (rectRef.current) {\n const x = event.clientX - rectRef.current.left;\n const y = event.clientY - rectRef.current.top;\n onDragScroll({ x, y });\n }\n }\n React2.useEffect(() => {\n const handleWheel = (event) => {\n const element = event.target;\n const isScrollbarWheel = scrollbar?.contains(element);\n if (isScrollbarWheel) handleWheelScroll(event, maxScrollPos);\n };\n document.addEventListener(\"wheel\", handleWheel, { passive: false });\n return () => document.removeEventListener(\"wheel\", handleWheel, { passive: false });\n }, [viewport, scrollbar, maxScrollPos, handleWheelScroll]);\n React2.useEffect(handleThumbPositionChange, [sizes, handleThumbPositionChange]);\n useResizeObserver(scrollbar, handleResize);\n useResizeObserver(context.content, handleResize);\n return /* @__PURE__ */ jsx(\n ScrollbarProvider,\n {\n scope: __scopeScrollArea,\n scrollbar,\n hasThumb,\n onThumbChange: useCallbackRef(onThumbChange),\n onThumbPointerUp: useCallbackRef(onThumbPointerUp),\n onThumbPositionChange: handleThumbPositionChange,\n onThumbPointerDown: useCallbackRef(onThumbPointerDown),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...scrollbarProps,\n ref: composeRefs,\n style: { position: \"absolute\", ...scrollbarProps.style },\n onPointerDown: composeEventHandlers(props.onPointerDown, (event) => {\n const mainPointer = 0;\n if (event.button === mainPointer) {\n const element = event.target;\n element.setPointerCapture(event.pointerId);\n rectRef.current = scrollbar.getBoundingClientRect();\n prevWebkitUserSelectRef.current = document.body.style.webkitUserSelect;\n document.body.style.webkitUserSelect = \"none\";\n if (context.viewport) context.viewport.style.scrollBehavior = \"auto\";\n handleDragScroll(event);\n }\n }),\n onPointerMove: composeEventHandlers(props.onPointerMove, handleDragScroll),\n onPointerUp: composeEventHandlers(props.onPointerUp, (event) => {\n const element = event.target;\n if (element.hasPointerCapture(event.pointerId)) {\n element.releasePointerCapture(event.pointerId);\n }\n document.body.style.webkitUserSelect = prevWebkitUserSelectRef.current;\n if (context.viewport) context.viewport.style.scrollBehavior = \"\";\n rectRef.current = null;\n })\n }\n )\n }\n );\n});\nvar THUMB_NAME = \"ScrollAreaThumb\";\nvar ScrollAreaThumb = React2.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...thumbProps } = props;\n const scrollbarContext = useScrollbarContext(THUMB_NAME, props.__scopeScrollArea);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || scrollbarContext.hasThumb, children: /* @__PURE__ */ jsx(ScrollAreaThumbImpl, { ref: forwardedRef, ...thumbProps }) });\n }\n);\nvar ScrollAreaThumbImpl = React2.forwardRef(\n (props, forwardedRef) => {\n const { __scopeScrollArea, style, ...thumbProps } = props;\n const scrollAreaContext = useScrollAreaContext(THUMB_NAME, __scopeScrollArea);\n const scrollbarContext = useScrollbarContext(THUMB_NAME, __scopeScrollArea);\n const { onThumbPositionChange } = scrollbarContext;\n const composedRef = useComposedRefs(\n forwardedRef,\n (node) => scrollbarContext.onThumbChange(node)\n );\n const removeUnlinkedScrollListenerRef = React2.useRef(void 0);\n const debounceScrollEnd = useDebounceCallback(() => {\n if (removeUnlinkedScrollListenerRef.current) {\n removeUnlinkedScrollListenerRef.current();\n removeUnlinkedScrollListenerRef.current = void 0;\n }\n }, 100);\n React2.useEffect(() => {\n const viewport = scrollAreaContext.viewport;\n if (viewport) {\n const handleScroll = () => {\n debounceScrollEnd();\n if (!removeUnlinkedScrollListenerRef.current) {\n const listener = addUnlinkedScrollListener(viewport, onThumbPositionChange);\n removeUnlinkedScrollListenerRef.current = listener;\n onThumbPositionChange();\n }\n };\n onThumbPositionChange();\n viewport.addEventListener(\"scroll\", handleScroll);\n return () => viewport.removeEventListener(\"scroll\", handleScroll);\n }\n }, [scrollAreaContext.viewport, debounceScrollEnd, onThumbPositionChange]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": scrollbarContext.hasThumb ? \"visible\" : \"hidden\",\n ...thumbProps,\n ref: composedRef,\n style: {\n width: \"var(--radix-scroll-area-thumb-width)\",\n height: \"var(--radix-scroll-area-thumb-height)\",\n ...style\n },\n onPointerDownCapture: composeEventHandlers(props.onPointerDownCapture, (event) => {\n const thumb = event.target;\n const thumbRect = thumb.getBoundingClientRect();\n const x = event.clientX - thumbRect.left;\n const y = event.clientY - thumbRect.top;\n scrollbarContext.onThumbPointerDown({ x, y });\n }),\n onPointerUp: composeEventHandlers(props.onPointerUp, scrollbarContext.onThumbPointerUp)\n }\n );\n }\n);\nScrollAreaThumb.displayName = THUMB_NAME;\nvar CORNER_NAME = \"ScrollAreaCorner\";\nvar ScrollAreaCorner = React2.forwardRef(\n (props, forwardedRef) => {\n const context = useScrollAreaContext(CORNER_NAME, props.__scopeScrollArea);\n const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);\n const hasCorner = context.type !== \"scroll\" && hasBothScrollbarsVisible;\n return hasCorner ? /* @__PURE__ */ jsx(ScrollAreaCornerImpl, { ...props, ref: forwardedRef }) : null;\n }\n);\nScrollAreaCorner.displayName = CORNER_NAME;\nvar ScrollAreaCornerImpl = React2.forwardRef((props, forwardedRef) => {\n const { __scopeScrollArea, ...cornerProps } = props;\n const context = useScrollAreaContext(CORNER_NAME, __scopeScrollArea);\n const [width, setWidth] = React2.useState(0);\n const [height, setHeight] = React2.useState(0);\n const hasSize = Boolean(width && height);\n useResizeObserver(context.scrollbarX, () => {\n const height2 = context.scrollbarX?.offsetHeight || 0;\n context.onCornerHeightChange(height2);\n setHeight(height2);\n });\n useResizeObserver(context.scrollbarY, () => {\n const width2 = context.scrollbarY?.offsetWidth || 0;\n context.onCornerWidthChange(width2);\n setWidth(width2);\n });\n return hasSize ? /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...cornerProps,\n ref: forwardedRef,\n style: {\n width,\n height,\n position: \"absolute\",\n right: context.dir === \"ltr\" ? 0 : void 0,\n left: context.dir === \"rtl\" ? 0 : void 0,\n bottom: 0,\n ...props.style\n }\n }\n ) : null;\n});\nfunction toInt(value) {\n return value ? parseInt(value, 10) : 0;\n}\nfunction getThumbRatio(viewportSize, contentSize) {\n const ratio = viewportSize / contentSize;\n return isNaN(ratio) ? 0 : ratio;\n}\nfunction getThumbSize(sizes) {\n const ratio = getThumbRatio(sizes.viewport, sizes.content);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const thumbSize = (sizes.scrollbar.size - scrollbarPadding) * ratio;\n return Math.max(thumbSize, 18);\n}\nfunction getScrollPositionFromPointer(pointerPos, pointerOffset, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const thumbCenter = thumbSizePx / 2;\n const offset = pointerOffset || thumbCenter;\n const thumbOffsetFromEnd = thumbSizePx - offset;\n const minPointerPos = sizes.scrollbar.paddingStart + offset;\n const maxPointerPos = sizes.scrollbar.size - sizes.scrollbar.paddingEnd - thumbOffsetFromEnd;\n const maxScrollPos = sizes.content - sizes.viewport;\n const scrollRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const interpolate = linearScale([minPointerPos, maxPointerPos], scrollRange);\n return interpolate(pointerPos);\n}\nfunction getThumbOffsetFromScroll(scrollPos, sizes, dir = \"ltr\") {\n const thumbSizePx = getThumbSize(sizes);\n const scrollbarPadding = sizes.scrollbar.paddingStart + sizes.scrollbar.paddingEnd;\n const scrollbar = sizes.scrollbar.size - scrollbarPadding;\n const maxScrollPos = sizes.content - sizes.viewport;\n const maxThumbPos = scrollbar - thumbSizePx;\n const scrollClampRange = dir === \"ltr\" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];\n const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange);\n const interpolate = linearScale([0, maxScrollPos], [0, maxThumbPos]);\n return interpolate(scrollWithoutMomentum);\n}\nfunction linearScale(input, output) {\n return (value) => {\n if (input[0] === input[1] || output[0] === output[1]) return output[0];\n const ratio = (output[1] - output[0]) / (input[1] - input[0]);\n return output[0] + ratio * (value - input[0]);\n };\n}\nfunction isScrollingWithinScrollbarBounds(scrollPos, maxScrollPos) {\n return scrollPos > 0 && scrollPos < maxScrollPos;\n}\nvar addUnlinkedScrollListener = (node, handler = () => {\n}) => {\n let prevPosition = { left: node.scrollLeft, top: node.scrollTop };\n let rAF = 0;\n (function loop() {\n const position = { left: node.scrollLeft, top: node.scrollTop };\n const isHorizontalScroll = prevPosition.left !== position.left;\n const isVerticalScroll = prevPosition.top !== position.top;\n if (isHorizontalScroll || isVerticalScroll) handler();\n prevPosition = position;\n rAF = window.requestAnimationFrame(loop);\n })();\n return () => window.cancelAnimationFrame(rAF);\n};\nfunction useDebounceCallback(callback, delay) {\n const handleCallback = useCallbackRef(callback);\n const debounceTimerRef = React2.useRef(0);\n React2.useEffect(() => () => window.clearTimeout(debounceTimerRef.current), []);\n return React2.useCallback(() => {\n window.clearTimeout(debounceTimerRef.current);\n debounceTimerRef.current = window.setTimeout(handleCallback, delay);\n }, [handleCallback, delay]);\n}\nfunction useResizeObserver(element, onResize) {\n const handleResize = useCallbackRef(onResize);\n useLayoutEffect(() => {\n let rAF = 0;\n if (element) {\n const resizeObserver = new ResizeObserver(() => {\n cancelAnimationFrame(rAF);\n rAF = window.requestAnimationFrame(handleResize);\n });\n resizeObserver.observe(element);\n return () => {\n window.cancelAnimationFrame(rAF);\n resizeObserver.unobserve(element);\n };\n }\n }, [element, handleResize]);\n}\nvar Root = ScrollArea;\nvar Viewport = ScrollAreaViewport;\nvar Scrollbar = ScrollAreaScrollbar;\nvar Thumb = ScrollAreaThumb;\nvar Corner = ScrollAreaCorner;\nexport {\n Corner,\n Root,\n ScrollArea,\n ScrollAreaCorner,\n ScrollAreaScrollbar,\n ScrollAreaThumb,\n ScrollAreaViewport,\n Scrollbar,\n Thumb,\n Viewport,\n createScrollAreaScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","SCROLL_AREA_NAME","createScrollAreaContext","createContextScope","ScrollAreaProvider","useScrollAreaContext","ScrollArea","React2","props","forwardedRef","__scopeScrollArea","type","dir","scrollHideDelay","scrollAreaProps","scrollArea","setScrollArea","viewport","setViewport","content","setContent","scrollbarX","setScrollbarX","scrollbarY","setScrollbarY","cornerWidth","setCornerWidth","cornerHeight","setCornerHeight","scrollbarXEnabled","setScrollbarXEnabled","scrollbarYEnabled","setScrollbarYEnabled","composedRefs","useComposedRefs","node","direction","useDirection","jsx","Primitive","VIEWPORT_NAME","ScrollAreaViewport","children","nonce","viewportProps","context","ref","jsxs","Fragment","SCROLLBAR_NAME","ScrollAreaScrollbar","forceMount","scrollbarProps","onScrollbarXEnabledChange","onScrollbarYEnabledChange","isHorizontal","ScrollAreaScrollbarHover","ScrollAreaScrollbarScroll","ScrollAreaScrollbarAuto","ScrollAreaScrollbarVisible","visible","setVisible","hideTimer","handlePointerEnter","handlePointerLeave","Presence","debounceScrollEnd","useDebounceCallback","send","scrollDirection","prevScrollPos","handleScroll","scrollPos","composeEventHandlers","handleResize","isOverflowX","isOverflowY","useResizeObserver","orientation","thumbRef","pointerOffsetRef","sizes","setSizes","thumbRatio","getThumbRatio","commonProps","thumb","pointerPos","getScrollPosition","getScrollPositionFromPointer","ScrollAreaScrollbarX","offset","getThumbOffsetFromScroll","ScrollAreaScrollbarY","onSizesChange","computedStyle","setComputedStyle","composeRefs","ScrollAreaScrollbarImpl","getThumbSize","maxScrollPos","isScrollingWithinScrollbarBounds","toInt","ScrollbarProvider","useScrollbarContext","hasThumb","onThumbChange","onThumbPointerUp","onThumbPointerDown","onThumbPositionChange","onDragScroll","onWheelScroll","onResize","scrollbar","setScrollbar","rectRef","prevWebkitUserSelectRef","handleWheelScroll","useCallbackRef","handleThumbPositionChange","handleDragScroll","y","handleWheel","element","THUMB_NAME","ScrollAreaThumb","thumbProps","scrollbarContext","ScrollAreaThumbImpl","style","scrollAreaContext","composedRef","removeUnlinkedScrollListenerRef","listener","addUnlinkedScrollListener","thumbRect","x","CORNER_NAME","ScrollAreaCorner","hasBothScrollbarsVisible","ScrollAreaCornerImpl","cornerProps","width","setWidth","height","setHeight","hasSize","height2","_a","width2","value","viewportSize","contentSize","ratio","scrollbarPadding","thumbSize","pointerOffset","thumbSizePx","thumbCenter","thumbOffsetFromEnd","minPointerPos","maxPointerPos","scrollRange","linearScale","maxThumbPos","scrollClampRange","scrollWithoutMomentum","clamp","input","output","handler","prevPosition","rAF","loop","position","isHorizontalScroll","isVerticalScroll","callback","delay","handleCallback","debounceTimerRef","useLayoutEffect","resizeObserver","Root","Viewport","Scrollbar","Thumb","Corner"],"mappings":"isBAgBA,SAASA,GAAgBC,EAAcC,EAAS,CAC9C,OAAOC,EAAM,WAAW,CAACC,EAAOC,IACZH,EAAQE,CAAK,EAAEC,CAAK,GAClBD,EACnBH,CAAY,CACjB,CAIA,IAAIK,EAAmB,aACnB,CAACC,CAA8C,EAAIC,GAAAA,mBAAmBF,CAAgB,EACtF,CAACG,GAAoBC,CAAoB,EAAIH,EAAwBD,CAAgB,EACrFK,EAAaC,EAAO,WACtB,CAACC,EAAOC,IAAiB,CACvB,KAAM,CACJ,kBAAAC,EACA,KAAAC,EAAO,QACP,IAAAC,EACA,gBAAAC,EAAkB,IAClB,GAAGC,CACT,EAAQN,EACE,CAACO,EAAYC,CAAa,EAAIT,EAAO,SAAS,IAAI,EAClD,CAACU,EAAUC,CAAW,EAAIX,EAAO,SAAS,IAAI,EAC9C,CAACY,EAASC,CAAU,EAAIb,EAAO,SAAS,IAAI,EAC5C,CAACc,EAAYC,CAAa,EAAIf,EAAO,SAAS,IAAI,EAClD,CAACgB,EAAYC,CAAa,EAAIjB,EAAO,SAAS,IAAI,EAClD,CAACkB,EAAaC,CAAc,EAAInB,EAAO,SAAS,CAAC,EACjD,CAACoB,EAAcC,CAAe,EAAIrB,EAAO,SAAS,CAAC,EACnD,CAACsB,EAAmBC,CAAoB,EAAIvB,EAAO,SAAS,EAAK,EACjE,CAACwB,EAAmBC,CAAoB,EAAIzB,EAAO,SAAS,EAAK,EACjE0B,EAAeC,EAAAA,gBAAgBzB,EAAe0B,GAASnB,EAAcmB,CAAI,CAAC,EAC1EC,EAAYC,GAAAA,aAAazB,CAAG,EAClC,OAAuB0B,EAAAA,kBAAAA,IACrBlC,GACA,CACE,MAAOM,EACP,KAAAC,EACA,IAAKyB,EACL,gBAAAvB,EACA,WAAAE,EACA,SAA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B,OAAO,EAC5CA,EAAiB,QAAU,OAAO,WAAWD,EAAgBD,CAAK,CACpE,EAAG,CAACC,EAAgBD,CAAK,CAAC,CAC5B,CACA,SAASrG,EAAkB8C,EAASX,EAAU,CAC5C,MAAMtC,EAAe4C,EAAAA,eAAeN,CAAQ,EAC5CqE,GAAAA,gBAAgB,IAAM,CACpB,IAAIT,EAAM,EACV,GAAIjD,EAAS,CACX,MAAM2D,EAAiB,IAAI,eAAe,IAAM,CAC9C,qBAAqBV,CAAG,EACxBA,EAAM,OAAO,sBAAsBlG,CAAY,CACjD,CAAC,EACD,OAAA4G,EAAe,QAAQ3D,CAAO,EACvB,IAAM,CACX,OAAO,qBAAqBiD,CAAG,EAC/BU,EAAe,UAAU3D,CAAO,CAClC,CACF,CACF,EAAG,CAACA,EAASjD,CAAY,CAAC,CAC5B,CACG,IAAC6G,GAAOjL,EACPkL,GAAW/I,EACXgJ,GAAYvI,EACZwI,GAAQ7D,EACR8D,GAASjD","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs738.js","sources":["../node_modules/domutils/lib/traversal.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getChildren = getChildren;\nexports.getParent = getParent;\nexports.getSiblings = getSiblings;\nexports.getAttributeValue = getAttributeValue;\nexports.hasAttrib = hasAttrib;\nexports.getName = getName;\nexports.nextElementSibling = nextElementSibling;\nexports.prevElementSibling = prevElementSibling;\nvar domhandler_1 = require(\"domhandler\");\n/**\n * Get a node's children.\n *\n * @category Traversal\n * @param elem Node to get the children of.\n * @returns `elem`'s children, or an empty array.\n */\nfunction getChildren(elem) {\n return (0, domhandler_1.hasChildren)(elem) ? elem.children : [];\n}\n/**\n * Get a node's parent.\n *\n * @category Traversal\n * @param elem Node to get the parent of.\n * @returns `elem`'s parent node, or `null` if `elem` is a root node.\n */\nfunction getParent(elem) {\n return elem.parent || null;\n}\n/**\n * Gets an elements siblings, including the element itself.\n *\n * Attempts to get the children through the element's parent first. If we don't\n * have a parent (the element is a root node), we walk the element's `prev` &\n * `next` to get all remaining nodes.\n *\n * @category Traversal\n * @param elem Element to get the siblings of.\n * @returns `elem`'s siblings, including `elem`.\n */\nfunction getSiblings(elem) {\n var _a, _b;\n var parent = getParent(elem);\n if (parent != null)\n return getChildren(parent);\n var siblings = [elem];\n var prev = elem.prev, next = elem.next;\n while (prev != null) {\n siblings.unshift(prev);\n (_a = prev, prev = _a.prev);\n }\n while (next != null) {\n siblings.push(next);\n (_b = next, next = _b.next);\n }\n return siblings;\n}\n/**\n * Gets an attribute from an element.\n *\n * @category Traversal\n * @param elem Element to check.\n * @param name Attribute name to retrieve.\n * @returns The element's attribute value, or `undefined`.\n */\nfunction getAttributeValue(elem, name) {\n var _a;\n return (_a = elem.attribs) === null || _a === void 0 ? void 0 : _a[name];\n}\n/**\n * Checks whether an element has an attribute.\n *\n * @category Traversal\n * @param elem Element to check.\n * @param name Attribute name to look for.\n * @returns Returns whether `elem` has the attribute `name`.\n */\nfunction hasAttrib(elem, name) {\n return (elem.attribs != null &&\n Object.prototype.hasOwnProperty.call(elem.attribs, name) &&\n elem.attribs[name] != null);\n}\n/**\n * Get the tag name of an element.\n *\n * @category Traversal\n * @param elem The element to get the name for.\n * @returns The tag name of `elem`.\n */\nfunction getName(elem) {\n return elem.name;\n}\n/**\n * Returns the next element sibling of a node.\n *\n * @category Traversal\n * @param elem The element to get the next sibling of.\n * @returns `elem`'s next sibling that is a tag, or `null` if there is no next\n * sibling.\n */\nfunction nextElementSibling(elem) {\n var _a;\n var next = elem.next;\n while (next !== null && !(0, domhandler_1.isTag)(next))\n (_a = next, next = _a.next);\n return next;\n}\n/**\n * Returns the previous element sibling of a node.\n *\n * @category Traversal\n * @param elem The element to get the previous sibling of.\n * @returns `elem`'s previous sibling that is a tag, or `null` if there is no\n * previous sibling.\n */\nfunction prevElementSibling(elem) {\n var _a;\n var prev = elem.prev;\n while (prev !== null && !(0, domhandler_1.isTag)(prev))\n (_a = prev, prev = _a.prev);\n return prev;\n}\n//# sourceMappingURL=traversal.js.map"],"names":["traversal","getChildren","getParent","getSiblings","getAttributeValue","hasAttrib","getName","nextElementSibling","prevElementSibling","domhandler_1","require$$0","elem","_a","_b","parent","siblings","prev","next","name"],"mappings":"mMACA,OAAO,eAAeA,EAAAA,UAAS,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAAA,UAAA,YAAsBC,EACtBD,EAAAA,UAAA,UAAoBE,EACpBF,EAAAA,UAAA,YAAsBG,EACtBH,EAAAA,UAAA,kBAA4BI,EAC5BJ,EAAAA,UAAA,UAAoBK,EACpBL,EAAAA,UAAA,QAAkBM,EAClBN,EAAAA,UAAA,mBAA6BO,EAC7BP,EAAAA,UAAA,mBAA6BQ,EAC7B,IAAIC,EAAeC,EAAAA,UAAA,EAQnB,SAAST,EAAYU,EAAM,CACvB,SAAWF,EAAa,aAAaE,CAAI,EAAIA,EAAK,SAAW,CAAA,CACjE,CAQA,SAAST,EAAUS,EAAM,CACrB,OAAOA,EAAK,QAAU,IAC1B,CAYA,SAASR,EAAYQ,EAAM,CACvB,IAAIC,EAAIC,EACJC,EAASZ,EAAUS,CAAI,EAC3B,GAAIG,GAAU,KACV,OAAOb,EAAYa,CAAM,EAG7B,QAFIC,EAAW,CAACJ,CAAI,EAChBK,EAAOL,EAAK,KAAMM,EAAON,EAAK,KAC3BK,GAAQ,MACXD,EAAS,QAAQC,CAAI,EACpBJ,EAAKI,EAAMA,EAAOJ,EAAG,KAE1B,KAAOK,GAAQ,MACXF,EAAS,KAAKE,CAAI,EACjBJ,EAAKI,EAAMA,EAAOJ,EAAG,KAE1B,OAAOE,CACX,CASA,SAASX,EAAkBO,EAAMO,EAAM,CACnC,IAAIN,EACJ,OAAQA,EAAKD,EAAK,WAAa,MAAQC,IAAO,OAAS,OAASA,EAAGM,CAAI,CAC3E,CASA,SAASb,EAAUM,EAAMO,EAAM,CAC3B,OAAQP,EAAK,SAAW,MACpB,OAAO,UAAU,eAAe,KAAKA,EAAK,QAASO,CAAI,GACvDP,EAAK,QAAQO,CAAI,GAAK,IAC9B,CAQA,SAASZ,EAAQK,EAAM,CACnB,OAAOA,EAAK,IAChB,CASA,SAASJ,EAAmBI,EAAM,CAG9B,QAFIC,EACAK,EAAON,EAAK,KACTM,IAAS,MAAQ,IAAKR,EAAa,OAAOQ,CAAI,GAChDL,EAAKK,EAAMA,EAAOL,EAAG,KAC1B,OAAOK,CACX,CASA,SAAST,EAAmBG,EAAM,CAG9B,QAFIC,EACAI,EAAOL,EAAK,KACTK,IAAS,MAAQ,IAAKP,EAAa,OAAOO,CAAI,GAChDJ,EAAKI,EAAMA,EAAOJ,EAAG,KAC1B,OAAOI,CACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs739.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.cjs774.js");var v;function d(){if(v)return p.__exports;v=1,Object.defineProperty(p.__exports,"__esModule",{value:!0}),p.__exports.removeElement=a,p.__exports.replaceElement=f,p.__exports.appendChild=o,p.__exports.append=x,p.__exports.prependChild=_,p.__exports.prepend=s;function a(n){if(n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),n.parent){var r=n.parent.children,e=r.lastIndexOf(n);e>=0&&r.splice(e,1)}n.next=null,n.prev=null,n.parent=null}function f(n,r){var e=r.prev=n.prev;e&&(e.next=r);var t=r.next=n.next;t&&(t.prev=r);var i=r.parent=n.parent;if(i){var u=i.children;u[u.lastIndexOf(n)]=r,n.parent=null}}function o(n,r){if(a(r),r.next=null,r.parent=n,n.children.push(r)>1){var e=n.children[n.children.length-2];e.next=r,r.prev=e}else r.prev=null}function x(n,r){a(r);var e=n.parent,t=n.next;if(r.next=t,r.prev=n,n.next=r,r.parent=e,t){if(t.prev=r,e){var i=e.children;i.splice(i.lastIndexOf(t),0,r)}}else e&&e.children.push(r)}function _(n,r){if(a(r),r.parent=n,r.prev=null,n.children.unshift(r)!==1){var e=n.children[1];e.prev=r,r.next=e}else r.next=null}function s(n,r){a(r);var e=n.parent;if(e){var t=e.children;t.splice(t.indexOf(n),0,r)}n.prev&&(n.prev.next=r),r.parent=e,r.prev=n.prev,r.next=n,n.prev=r}return p.__exports}exports.__require=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs739.js.map
|
package/dist/index.cjs739.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs739.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs739.js","sources":["../node_modules/domutils/lib/manipulation.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.removeElement = removeElement;\nexports.replaceElement = replaceElement;\nexports.appendChild = appendChild;\nexports.append = append;\nexports.prependChild = prependChild;\nexports.prepend = prepend;\n/**\n * Remove an element from the dom\n *\n * @category Manipulation\n * @param elem The element to be removed\n */\nfunction removeElement(elem) {\n if (elem.prev)\n elem.prev.next = elem.next;\n if (elem.next)\n elem.next.prev = elem.prev;\n if (elem.parent) {\n var childs = elem.parent.children;\n var childsIndex = childs.lastIndexOf(elem);\n if (childsIndex >= 0) {\n childs.splice(childsIndex, 1);\n }\n }\n elem.next = null;\n elem.prev = null;\n elem.parent = null;\n}\n/**\n * Replace an element in the dom\n *\n * @category Manipulation\n * @param elem The element to be replaced\n * @param replacement The element to be added\n */\nfunction replaceElement(elem, replacement) {\n var prev = (replacement.prev = elem.prev);\n if (prev) {\n prev.next = replacement;\n }\n var next = (replacement.next = elem.next);\n if (next) {\n next.prev = replacement;\n }\n var parent = (replacement.parent = elem.parent);\n if (parent) {\n var childs = parent.children;\n childs[childs.lastIndexOf(elem)] = replacement;\n elem.parent = null;\n }\n}\n/**\n * Append a child to an element.\n *\n * @category Manipulation\n * @param parent The element to append to.\n * @param child The element to be added as a child.\n */\nfunction appendChild(parent, child) {\n removeElement(child);\n child.next = null;\n child.parent = parent;\n if (parent.children.push(child) > 1) {\n var sibling = parent.children[parent.children.length - 2];\n sibling.next = child;\n child.prev = sibling;\n }\n else {\n child.prev = null;\n }\n}\n/**\n * Append an element after another.\n *\n * @category Manipulation\n * @param elem The element to append after.\n * @param next The element be added.\n */\nfunction append(elem, next) {\n removeElement(next);\n var parent = elem.parent;\n var currNext = elem.next;\n next.next = currNext;\n next.prev = elem;\n elem.next = next;\n next.parent = parent;\n if (currNext) {\n currNext.prev = next;\n if (parent) {\n var childs = parent.children;\n childs.splice(childs.lastIndexOf(currNext), 0, next);\n }\n }\n else if (parent) {\n parent.children.push(next);\n }\n}\n/**\n * Prepend a child to an element.\n *\n * @category Manipulation\n * @param parent The element to prepend before.\n * @param child The element to be added as a child.\n */\nfunction prependChild(parent, child) {\n removeElement(child);\n child.parent = parent;\n child.prev = null;\n if (parent.children.unshift(child) !== 1) {\n var sibling = parent.children[1];\n sibling.prev = child;\n child.next = sibling;\n }\n else {\n child.next = null;\n }\n}\n/**\n * Prepend an element before another.\n *\n * @category Manipulation\n * @param elem The element to prepend before.\n * @param prev The element be added.\n */\nfunction prepend(elem, prev) {\n removeElement(prev);\n var parent = elem.parent;\n if (parent) {\n var childs = parent.children;\n childs.splice(childs.indexOf(elem), 0, prev);\n }\n if (elem.prev) {\n elem.prev.next = prev;\n }\n prev.parent = parent;\n prev.prev = elem.prev;\n prev.next = elem;\n elem.prev = prev;\n}\n//# sourceMappingURL=manipulation.js.map"],"names":["manipulation","removeElement","replaceElement","appendChild","append","prependChild","prepend","elem","childs","childsIndex","replacement","prev","next","parent","child","sibling","currNext"],"mappings":"oKACA,OAAO,eAAeA,EAAAA,UAAS,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAAA,UAAA,cAAwBC,EACxBD,EAAAA,UAAA,eAAyBE,EACzBF,EAAAA,UAAA,YAAsBG,EACtBH,EAAAA,UAAA,OAAiBI,EACjBJ,EAAAA,U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AO,YAAYQ,CAAQ,EAAG,EAAGJ,CAAI,CAC/D,OAEaC,GACLA,EAAO,SAAS,KAAKD,CAAI,CAEjC,CAQA,SAASP,EAAaQ,EAAQC,EAAO,CAIjC,GAHAb,EAAca,CAAK,EACnBA,EAAM,OAASD,EACfC,EAAM,KAAO,KACTD,EAAO,SAAS,QAAQC,CAAK,IAAM,EAAG,CACtC,IAAIC,EAAUF,EAAO,SAAS,CAAC,EAC/BE,EAAQ,KAAOD,EACfA,EAAM,KAAOC,CACrB,MAEQD,EAAM,KAAO,IAErB,CAQA,SAASR,EAAQC,EAAMI,EAAM,CACzBV,EAAcU,CAAI,EAClB,IAAIE,EAASN,EAAK,OAClB,GAAIM,EAAQ,CACR,IAAIL,EAASK,EAAO,SACpBL,EAAO,OAAOA,EAAO,QAAQD,CAAI,EAAG,EAAGI,CAAI,CACnD,CACQJ,EAAK,OACLA,EAAK,KAAK,KAAOI,GAErBA,EAAK,OAASE,EACdF,EAAK,KAAOJ,EAAK,KACjBI,EAAK,KAAOJ,EACZA,EAAK,KAAOI,CAChB","x_google_ignoreList":[0]}
|
package/dist/index.cjs740.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs775.js"),g=require("./index.cjs667.js");var d;function x(){if(d)return u.__exports;d=1,Object.defineProperty(u.__exports,"__esModule",{value:!0}),u.__exports.filter=o,u.__exports.find=l,u.__exports.findOneChild=v,u.__exports.findOne=_,u.__exports.existsOne=c,u.__exports.findAll=y;var h=g.__require();function o(e,r,n,t){return n===void 0&&(n=!0),t===void 0&&(t=1/0),l(e,Array.isArray(r)?r:[r],n,t)}function l(e,r,n,t){for(var f=[],i=[Array.isArray(r)?r:[r]],a=[0];;){if(a[0]>=i[0].length){if(a.length===1)return f;i.shift(),a.shift();continue}var s=i[0][a[0]++];if(e(s)&&(f.push(s),--t<=0))return f;n&&(0,h.hasChildren)(s)&&s.children.length>0&&(a.unshift(0),i.unshift(s.children))}}function v(e,r){return r.find(e)}function _(e,r,n){n===void 0&&(n=!0);for(var t=Array.isArray(r)?r:[r],f=0;f<t.length;f++){var i=t[f];if((0,h.isTag)(i)&&e(i))return i;if(n&&(0,h.hasChildren)(i)&&i.children.length>0){var a=_(e,i.children,!0);if(a)return a}}return null}function c(e,r){return(Array.isArray(r)?r:[r]).some(function(n){return(0,h.isTag)(n)&&e(n)||(0,h.hasChildren)(n)&&c(e,n.children)})}function y(e,r){for(var n=[],t=[Array.isArray(r)?r:[r]],f=[0];;){if(f[0]>=t[0].length){if(t.length===1)return n;t.shift(),f.shift();continue}var i=t[0][f[0]++];(0,h.isTag)(i)&&e(i)&&n.push(i),(0,h.hasChildren)(i)&&i.children.length>0&&(f.unshift(0),t.unshift(i.children))}}return u.__exports}exports.__require=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs740.js.map
|
package/dist/index.cjs740.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs740.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs740.js","sources":["../node_modules/domutils/lib/querying.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.filter = filter;\nexports.find = find;\nexports.findOneChild = findOneChild;\nexports.findOne = findOne;\nexports.existsOne = existsOne;\nexports.findAll = findAll;\nvar domhandler_1 = require(\"domhandler\");\n/**\n * Search a node and its children for nodes passing a test function. If `node` is not an array, it will be wrapped in one.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param node Node to search. Will be included in the result set if it matches.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes passing `test`.\n */\nfunction filter(test, node, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return find(test, Array.isArray(node) ? node : [node], recurse, limit);\n}\n/**\n * Search an array of nodes and their children for nodes passing a test function.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes passing `test`.\n */\nfunction find(test, nodes, recurse, limit) {\n var result = [];\n /** Stack of the arrays we are looking at. */\n var nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];\n /** Stack of the indices within the arrays. */\n var indexStack = [0];\n for (;;) {\n // First, check if the current array has any more elements to look at.\n if (indexStack[0] >= nodeStack[0].length) {\n // If we have no more arrays to look at, we are done.\n if (indexStack.length === 1) {\n return result;\n }\n // Otherwise, remove the current array from the stack.\n nodeStack.shift();\n indexStack.shift();\n // Loop back to the start to continue with the next array.\n continue;\n }\n var elem = nodeStack[0][indexStack[0]++];\n if (test(elem)) {\n result.push(elem);\n if (--limit <= 0)\n return result;\n }\n if (recurse && (0, domhandler_1.hasChildren)(elem) && elem.children.length > 0) {\n /*\n * Add the children to the stack. We are depth-first, so this is\n * the next array we look at.\n */\n indexStack.unshift(0);\n nodeStack.unshift(elem.children);\n }\n }\n}\n/**\n * Finds the first element inside of an array that matches a test function. This is an alias for `Array.prototype.find`.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns The first node in the array that passes `test`.\n * @deprecated Use `Array.prototype.find` directly.\n */\nfunction findOneChild(test, nodes) {\n return nodes.find(test);\n}\n/**\n * Finds one element in a tree that passes a test.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Node or array of nodes to search.\n * @param recurse Also consider child nodes.\n * @returns The first node that passes `test`.\n */\nfunction findOne(test, nodes, recurse) {\n if (recurse === void 0) { recurse = true; }\n var searchedNodes = Array.isArray(nodes) ? nodes : [nodes];\n for (var i = 0; i < searchedNodes.length; i++) {\n var node = searchedNodes[i];\n if ((0, domhandler_1.isTag)(node) && test(node)) {\n return node;\n }\n if (recurse && (0, domhandler_1.hasChildren)(node) && node.children.length > 0) {\n var found = findOne(test, node.children, true);\n if (found)\n return found;\n }\n }\n return null;\n}\n/**\n * Checks if a tree of nodes contains at least one node passing a test.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns Whether a tree of nodes contains at least one node passing the test.\n */\nfunction existsOne(test, nodes) {\n return (Array.isArray(nodes) ? nodes : [nodes]).some(function (node) {\n return ((0, domhandler_1.isTag)(node) && test(node)) ||\n ((0, domhandler_1.hasChildren)(node) && existsOne(test, node.children));\n });\n}\n/**\n * Search an array of nodes and their children for elements passing a test function.\n *\n * Same as `find`, but limited to elements and with less options, leading to reduced complexity.\n *\n * @category Querying\n * @param test Function to test nodes on.\n * @param nodes Array of nodes to search.\n * @returns All nodes passing `test`.\n */\nfunction findAll(test, nodes) {\n var result = [];\n var nodeStack = [Array.isArray(nodes) ? nodes : [nodes]];\n var indexStack = [0];\n for (;;) {\n if (indexStack[0] >= nodeStack[0].length) {\n if (nodeStack.length === 1) {\n return result;\n }\n // Otherwise, remove the current array from the stack.\n nodeStack.shift();\n indexStack.shift();\n // Loop back to the start to continue with the next array.\n continue;\n }\n var elem = nodeStack[0][indexStack[0]++];\n if ((0, domhandler_1.isTag)(elem) && test(elem))\n result.push(elem);\n if ((0, domhandler_1.hasChildren)(elem) && elem.children.length > 0) {\n indexStack.unshift(0);\n nodeStack.unshift(elem.children);\n }\n }\n}\n//# sourceMappingURL=querying.js.map"],"names":["querying","filter","find","findOneChild","findOne","existsOne","findAll","domhandler_1","require$$0","test","node","recurse","limit","nodes","result","nodeStack","indexStack","elem","searchedNodes","i","found"],"mappings":"mMACA,OAAO,eAAeA,EAAAA,UAAS,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAAA,UAAA,OAAiBC,EACjBD,EAAAA,UAAA,KAAeE,EACfF,EAAAA,UAAA,aAAuBG,EACvBH,EAAAA,UAAA,QAAkBI,EAClBJ,EAAAA,UAAA,UAAoBK,EACpBL,EAAAA,UAAA,QAAkBM,EACl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AK,SAAS,OAAS,EAAG,CAC5E,IAAIU,EAAQhB,EAAQK,EAAMC,EAAK,SAAU,EAAI,EAC7C,GAAIU,EACA,OAAOA,CACvB,CACA,CACI,OAAO,IACX,CASA,SAASf,EAAUI,EAAMI,EAAO,CAC5B,OAAQ,MAAM,QAAQA,CAAK,EAAIA,EAAQ,CAACA,CAAK,GAAG,KAAK,SAAUH,EAAM,CACjE,SAAYH,EAAa,OAAOG,CAAI,GAAKD,EAAKC,CAAI,MACzCH,EAAa,aAAaG,CAAI,GAAKL,EAAUI,EAAMC,EAAK,QAAQ,CACjF,CAAK,CACL,CAWA,SAASJ,EAAQG,EAAMI,EAAO,CAI1B,QAHIC,EAAS,CAAA,EACTC,EAAY,CAAC,MAAM,QAAQF,CAAK,EAAIA,EAAQ,CAACA,CAAK,CAAC,EACnDG,EAAa,CAAC,CAAC,IACV,CACL,GAAIA,EAAW,CAAC,GAAKD,EAAU,CAAC,EAAE,OAAQ,CACtC,GAAIA,EAAU,SAAW,EACrB,OAAOD,EAGXC,EAAU,MAAK,EACfC,EAAW,MAAK,EAEhB,QACZ,CACQ,IAAIC,EAAOF,EAAU,CAAC,EAAEC,EAAW,CAAC,GAAG,KAC/BT,EAAa,OAAOU,CAAI,GAAKR,EAAKQ,CAAI,GAC1CH,EAAO,KAAKG,CAAI,KACZV,EAAa,aAAaU,CAAI,GAAKA,EAAK,SAAS,OAAS,IAC9DD,EAAW,QAAQ,CAAC,EACpBD,EAAU,QAAQE,EAAK,QAAQ,EAE3C,CACA","x_google_ignoreList":[0]}
|
package/dist/index.cjs741.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"});const i=require("./index.cjs776.js"),x=require("./index.cjs667.js"),E=require("./index.cjs740.js");var _;function q(){if(_)return i.__exports;_=1,Object.defineProperty(i.__exports,"__esModule",{value:!0}),i.__exports.testElement=y,i.__exports.getElements=p,i.__exports.getElementById=d,i.__exports.getElementsByTagName=l,i.__exports.getElementsByClassName=v,i.__exports.getElementsByTagType=T;var u=x.__require(),o=E.__require(),f={tag_name:function(e){return typeof e=="function"?function(t){return(0,u.isTag)(t)&&e(t.name)}:e==="*"?u.isTag:function(t){return(0,u.isTag)(t)&&t.name===e}},tag_type:function(e){return typeof e=="function"?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return typeof e=="function"?function(t){return(0,u.isText)(t)&&e(t.data)}:function(t){return(0,u.isText)(t)&&t.data===e}}};function a(e,t){return typeof t=="function"?function(n){return(0,u.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,u.isTag)(n)&&n.attribs[e]===t}}function g(e,t){return function(n){return e(n)||t(n)}}function s(e){var t=Object.keys(e).map(function(n){var r=e[n];return Object.prototype.hasOwnProperty.call(f,n)?f[n](r):a(n,r)});return t.length===0?null:t.reduce(g)}function y(e,t){var n=s(e);return n?n(t):!0}function p(e,t,n,r){r===void 0&&(r=1/0);var c=s(e);return c?(0,o.filter)(c,t,n,r):[]}function d(e,t,n){return n===void 0&&(n=!0),Array.isArray(t)||(t=[t]),(0,o.findOne)(a("id",e),t,n)}function l(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,o.filter)(f.tag_name(e),t,n,r)}function v(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,o.filter)(a("class",e),t,n,r)}function T(e,t,n,r){return n===void 0&&(n=!0),r===void 0&&(r=1/0),(0,o.filter)(f.tag_type(e),t,n,r)}return i.__exports}exports.__require=q;
|
|
2
2
|
//# sourceMappingURL=index.cjs741.js.map
|
package/dist/index.cjs741.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs741.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs741.js","sources":["../node_modules/domutils/lib/legacy.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.testElement = testElement;\nexports.getElements = getElements;\nexports.getElementById = getElementById;\nexports.getElementsByTagName = getElementsByTagName;\nexports.getElementsByClassName = getElementsByClassName;\nexports.getElementsByTagType = getElementsByTagType;\nvar domhandler_1 = require(\"domhandler\");\nvar querying_js_1 = require(\"./querying.js\");\n/**\n * A map of functions to check nodes against.\n */\nvar Checks = {\n tag_name: function (name) {\n if (typeof name === \"function\") {\n return function (elem) { return (0, domhandler_1.isTag)(elem) && name(elem.name); };\n }\n else if (name === \"*\") {\n return domhandler_1.isTag;\n }\n return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.name === name; };\n },\n tag_type: function (type) {\n if (typeof type === \"function\") {\n return function (elem) { return type(elem.type); };\n }\n return function (elem) { return elem.type === type; };\n },\n tag_contains: function (data) {\n if (typeof data === \"function\") {\n return function (elem) { return (0, domhandler_1.isText)(elem) && data(elem.data); };\n }\n return function (elem) { return (0, domhandler_1.isText)(elem) && elem.data === data; };\n },\n};\n/**\n * Returns a function to check whether a node has an attribute with a particular\n * value.\n *\n * @param attrib Attribute to check.\n * @param value Attribute value to look for.\n * @returns A function to check whether the a node has an attribute with a\n * particular value.\n */\nfunction getAttribCheck(attrib, value) {\n if (typeof value === \"function\") {\n return function (elem) { return (0, domhandler_1.isTag)(elem) && value(elem.attribs[attrib]); };\n }\n return function (elem) { return (0, domhandler_1.isTag)(elem) && elem.attribs[attrib] === value; };\n}\n/**\n * Returns a function that returns `true` if either of the input functions\n * returns `true` for a node.\n *\n * @param a First function to combine.\n * @param b Second function to combine.\n * @returns A function taking a node and returning `true` if either of the input\n * functions returns `true` for the node.\n */\nfunction combineFuncs(a, b) {\n return function (elem) { return a(elem) || b(elem); };\n}\n/**\n * Returns a function that executes all checks in `options` and returns `true`\n * if any of them match a node.\n *\n * @param options An object describing nodes to look for.\n * @returns A function that executes all checks in `options` and returns `true`\n * if any of them match a node.\n */\nfunction compileTest(options) {\n var funcs = Object.keys(options).map(function (key) {\n var value = options[key];\n return Object.prototype.hasOwnProperty.call(Checks, key)\n ? Checks[key](value)\n : getAttribCheck(key, value);\n });\n return funcs.length === 0 ? null : funcs.reduce(combineFuncs);\n}\n/**\n * Checks whether a node matches the description in `options`.\n *\n * @category Legacy Query Functions\n * @param options An object describing nodes to look for.\n * @param node The element to test.\n * @returns Whether the element matches the description in `options`.\n */\nfunction testElement(options, node) {\n var test = compileTest(options);\n return test ? test(node) : true;\n}\n/**\n * Returns all nodes that match `options`.\n *\n * @category Legacy Query Functions\n * @param options An object describing nodes to look for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes that match `options`.\n */\nfunction getElements(options, nodes, recurse, limit) {\n if (limit === void 0) { limit = Infinity; }\n var test = compileTest(options);\n return test ? (0, querying_js_1.filter)(test, nodes, recurse, limit) : [];\n}\n/**\n * Returns the node with the supplied ID.\n *\n * @category Legacy Query Functions\n * @param id The unique ID attribute value to look for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @returns The node with the supplied ID.\n */\nfunction getElementById(id, nodes, recurse) {\n if (recurse === void 0) { recurse = true; }\n if (!Array.isArray(nodes))\n nodes = [nodes];\n return (0, querying_js_1.findOne)(getAttribCheck(\"id\", id), nodes, recurse);\n}\n/**\n * Returns all nodes with the supplied `tagName`.\n *\n * @category Legacy Query Functions\n * @param tagName Tag name to search for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes with the supplied `tagName`.\n */\nfunction getElementsByTagName(tagName, nodes, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return (0, querying_js_1.filter)(Checks[\"tag_name\"](tagName), nodes, recurse, limit);\n}\n/**\n * Returns all nodes with the supplied `className`.\n *\n * @category Legacy Query Functions\n * @param className Class name to search for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes with the supplied `className`.\n */\nfunction getElementsByClassName(className, nodes, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return (0, querying_js_1.filter)(getAttribCheck(\"class\", className), nodes, recurse, limit);\n}\n/**\n * Returns all nodes with the supplied `type`.\n *\n * @category Legacy Query Functions\n * @param type Element type to look for.\n * @param nodes Nodes to search through.\n * @param recurse Also consider child nodes.\n * @param limit Maximum number of nodes to return.\n * @returns All nodes with the supplied `type`.\n */\nfunction getElementsByTagType(type, nodes, recurse, limit) {\n if (recurse === void 0) { recurse = true; }\n if (limit === void 0) { limit = Infinity; }\n return (0, querying_js_1.filter)(Checks[\"tag_type\"](type), nodes, recurse, limit);\n}\n//# sourceMappingURL=legacy.js.map"],"names":["legacy","testElement","getElements","getElementById","getElementsByTagName","getElementsByClassName","getElementsByTagType","domhandler_1","require$$0","querying_js_1","require$$1","Checks","name","elem","type","data","getAttribCheck","attrib","value","combineFuncs","a","b","compileTest","options","funcs","key","node","test","nodes","recurse","limit","id","tagName","className"],"mappings":"kOACA,OAAO,eAAeA,EAAAA,UAAS,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAAA,UAAA,YAAsBC,EACtBD,EAAAA,UAAA,YAAsBE,EACtBF,EAAAA,UAAA,eAAyBG,EACzBH,EAAAA,UAAA,qBAA+BI,EAC/BJ,EAAAA,UAAA,uBAAiCK,EACjCL,EAAAA,UAAA,qBAA+BM,EAC/B,IAAIC,EAAeC,EAAAA,UAAA,EACfC,EAAgBC,EAAAA,UAAA,EAIhBC,EAAS,CACT,SAAU,SAAUC,EAAM,CACtB,OAAI,OAAOA,GAAS,WACT,SAAUC,EAAM,CAAE,SAAWN,EAAa,OAAOM,CAAI,GAAKD,EAAKC,EAAK,IAAI,CAAE,EAE5ED,IAAS,IACPL,EAAa,MAEjB,SAAUM,EAAM,CAAE,SAAWN,EAAa,OAAOM,CAAI,GAAKA,EAAK,OAASD,CA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AO,CAC7CA,IAAU,SAAUA,EAAQ,KAChC,IAAIH,EAAOL,EAAYC,CAAO,EAC9B,OAAOI,KAAWlB,EAAc,QAAQkB,EAAMC,EAAOC,EAASC,CAAK,EAAI,CAAA,CAC3E,CAUA,SAAS3B,EAAe4B,EAAIH,EAAOC,EAAS,CACxC,OAAIA,IAAY,SAAUA,EAAU,IAC/B,MAAM,QAAQD,CAAK,IACpBA,EAAQ,CAACA,CAAK,MACPnB,EAAc,SAASO,EAAe,KAAMe,CAAE,EAAGH,EAAOC,CAAO,CAC9E,CAWA,SAASzB,EAAqB4B,EAASJ,EAAOC,EAASC,EAAO,CAC1D,OAAID,IAAY,SAAUA,EAAU,IAChCC,IAAU,SAAUA,EAAQ,QACrBrB,EAAc,QAAQE,EAAO,SAAYqB,CAAO,EAAGJ,EAAOC,EAASC,CAAK,CACvF,CAWA,SAASzB,EAAuB4B,EAAWL,EAAOC,EAASC,EAAO,CAC9D,OAAID,IAAY,SAAUA,EAAU,IAChCC,IAAU,SAAUA,EAAQ,QACrBrB,EAAc,QAAQO,EAAe,QAASiB,CAAS,EAAGL,EAAOC,EAASC,CAAK,CAC9F,CAWA,SAASxB,EAAqBQ,EAAMc,EAAOC,EAASC,EAAO,CACvD,OAAID,IAAY,SAAUA,EAAU,IAChCC,IAAU,SAAUA,EAAQ,QACrBrB,EAAc,QAAQE,EAAO,SAAYG,CAAI,EAAGc,EAAOC,EAASC,CAAK,CACpF","x_google_ignoreList":[0]}
|
package/dist/index.cjs742.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs777.js"),E=require("./index.cjs667.js");var p;function x(){if(p)return l.__exports;p=1,Object.defineProperty(l.__exports,"__esModule",{value:!0}),l.__exports.DocumentPosition=void 0,l.__exports.removeSubsets=v,l.__exports.compareDocumentPosition=_,l.__exports.uniqueSort=s;var f=E.__require();function v(r){for(var e=r.length;--e>=0;){var i=r[e];if(e>0&&r.lastIndexOf(i,e-1)>=0){r.splice(e,1);continue}for(var t=i.parent;t;t=t.parent)if(r.includes(t)){r.splice(e,1);break}}return r}var u;(function(r){r[r.DISCONNECTED=1]="DISCONNECTED",r[r.PRECEDING=2]="PRECEDING",r[r.FOLLOWING=4]="FOLLOWING",r[r.CONTAINS=8]="CONTAINS",r[r.CONTAINED_BY=16]="CONTAINED_BY"})(u||(l.__exports.DocumentPosition=u={}));function _(r,e){var i=[],t=[];if(r===e)return 0;for(var a=(0,f.hasChildren)(r)?r:r.parent;a;)i.unshift(a),a=a.parent;for(a=(0,f.hasChildren)(e)?e:e.parent;a;)t.unshift(a),a=a.parent;for(var I=Math.min(i.length,t.length),n=0;n<I&&i[n]===t[n];)n++;if(n===0)return u.DISCONNECTED;var N=i[n-1],O=N.children,h=i[n],C=t[n];return O.indexOf(h)>O.indexOf(C)?N===e?u.FOLLOWING|u.CONTAINED_BY:u.FOLLOWING:N===r?u.PRECEDING|u.CONTAINS:u.PRECEDING}function s(r){return r=r.filter(function(e,i,t){return!t.includes(e,i+1)}),r.sort(function(e,i){var t=_(e,i);return t&u.PRECEDING?-1:t&u.FOLLOWING?1:0}),r}return l.__exports}exports.__require=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs742.js.map
|
package/dist/index.cjs742.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs742.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs742.js","sources":["../node_modules/domutils/lib/helpers.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DocumentPosition = void 0;\nexports.removeSubsets = removeSubsets;\nexports.compareDocumentPosition = compareDocumentPosition;\nexports.uniqueSort = uniqueSort;\nvar domhandler_1 = require(\"domhandler\");\n/**\n * Given an array of nodes, remove any member that is contained by another\n * member.\n *\n * @category Helpers\n * @param nodes Nodes to filter.\n * @returns Remaining nodes that aren't contained by other nodes.\n */\nfunction removeSubsets(nodes) {\n var idx = nodes.length;\n /*\n * Check if each node (or one of its ancestors) is already contained in the\n * array.\n */\n while (--idx >= 0) {\n var node = nodes[idx];\n /*\n * Remove the node if it is not unique.\n * We are going through the array from the end, so we only\n * have to check nodes that preceed the node under consideration in the array.\n */\n if (idx > 0 && nodes.lastIndexOf(node, idx - 1) >= 0) {\n nodes.splice(idx, 1);\n continue;\n }\n for (var ancestor = node.parent; ancestor; ancestor = ancestor.parent) {\n if (nodes.includes(ancestor)) {\n nodes.splice(idx, 1);\n break;\n }\n }\n }\n return nodes;\n}\n/**\n * @category Helpers\n * @see {@link http://dom.spec.whatwg.org/#dom-node-comparedocumentposition}\n */\nvar DocumentPosition;\n(function (DocumentPosition) {\n DocumentPosition[DocumentPosition[\"DISCONNECTED\"] = 1] = \"DISCONNECTED\";\n DocumentPosition[DocumentPosition[\"PRECEDING\"] = 2] = \"PRECEDING\";\n DocumentPosition[DocumentPosition[\"FOLLOWING\"] = 4] = \"FOLLOWING\";\n DocumentPosition[DocumentPosition[\"CONTAINS\"] = 8] = \"CONTAINS\";\n DocumentPosition[DocumentPosition[\"CONTAINED_BY\"] = 16] = \"CONTAINED_BY\";\n})(DocumentPosition || (exports.DocumentPosition = DocumentPosition = {}));\n/**\n * Compare the position of one node against another node in any other document,\n * returning a bitmask with the values from {@link DocumentPosition}.\n *\n * Document order:\n * > There is an ordering, document order, defined on all the nodes in the\n * > document corresponding to the order in which the first character of the\n * > XML representation of each node occurs in the XML representation of the\n * > document after expansion of general entities. Thus, the document element\n * > node will be the first node. Element nodes occur before their children.\n * > Thus, document order orders element nodes in order of the occurrence of\n * > their start-tag in the XML (after expansion of entities). The attribute\n * > nodes of an element occur after the element and before its children. The\n * > relative order of attribute nodes is implementation-dependent.\n *\n * Source:\n * http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order\n *\n * @category Helpers\n * @param nodeA The first node to use in the comparison\n * @param nodeB The second node to use in the comparison\n * @returns A bitmask describing the input nodes' relative position.\n *\n * See http://dom.spec.whatwg.org/#dom-node-comparedocumentposition for\n * a description of these values.\n */\nfunction compareDocumentPosition(nodeA, nodeB) {\n var aParents = [];\n var bParents = [];\n if (nodeA === nodeB) {\n return 0;\n }\n var current = (0, domhandler_1.hasChildren)(nodeA) ? nodeA : nodeA.parent;\n while (current) {\n aParents.unshift(current);\n current = current.parent;\n }\n current = (0, domhandler_1.hasChildren)(nodeB) ? nodeB : nodeB.parent;\n while (current) {\n bParents.unshift(current);\n current = current.parent;\n }\n var maxIdx = Math.min(aParents.length, bParents.length);\n var idx = 0;\n while (idx < maxIdx && aParents[idx] === bParents[idx]) {\n idx++;\n }\n if (idx === 0) {\n return DocumentPosition.DISCONNECTED;\n }\n var sharedParent = aParents[idx - 1];\n var siblings = sharedParent.children;\n var aSibling = aParents[idx];\n var bSibling = bParents[idx];\n if (siblings.indexOf(aSibling) > siblings.indexOf(bSibling)) {\n if (sharedParent === nodeB) {\n return DocumentPosition.FOLLOWING | DocumentPosition.CONTAINED_BY;\n }\n return DocumentPosition.FOLLOWING;\n }\n if (sharedParent === nodeA) {\n return DocumentPosition.PRECEDING | DocumentPosition.CONTAINS;\n }\n return DocumentPosition.PRECEDING;\n}\n/**\n * Sort an array of nodes based on their relative position in the document,\n * removing any duplicate nodes. If the array contains nodes that do not belong\n * to the same document, sort order is unspecified.\n *\n * @category Helpers\n * @param nodes Array of DOM nodes.\n * @returns Collection of unique nodes, sorted in document order.\n */\nfunction uniqueSort(nodes) {\n nodes = nodes.filter(function (node, i, arr) { return !arr.includes(node, i + 1); });\n nodes.sort(function (a, b) {\n var relative = compareDocumentPosition(a, b);\n if (relative & DocumentPosition.PRECEDING) {\n return -1;\n }\n else if (relative & DocumentPosition.FOLLOWING) {\n return 1;\n }\n return 0;\n });\n return nodes;\n}\n//# sourceMappingURL=helpers.js.map"],"names":["helpers","removeSubsets","compareDocumentPosition","uniqueSort","domhandler_1","require$$0","nodes","idx","node","ancestor","DocumentPosition","nodeA","nodeB","aParents","bParents","current","maxIdx","sharedParent","siblings","aSibling","bSibling","arr","a","b","relative"],"mappings":"mMACA,OAAO,eAAeA,EAAAA,UAAS,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAAA,UAAA,iBAA2B,OAC3BA,EAAAA,UAAA,cAAwBC,EACxBD,EAAAA,UAAA,wBAAkCE,EAClCF,EAAAA,UAAA,WAAqBG,EACrB,IAAIC,EAAeC,EAAAA,UAAA,EASnB,SAASJ,EAAcK,EAAO,CAM1B,QALIC,EAAMD,EAAM,OAKT,EAAEC,GAAO,GAAG,CACf,IAAIC,EAAOF,EAAMC,CAAG,EAMpB,GAAIA,EAAM,GAAKD,EAAM,YAAYE,EAAMD,EAAM,CAAC,GAAK,EAAG,CAClDD,EAAM,OAAOC,EAAK,CAAC,EACnB,QACZ,CACQ,QAASE,EAAWD,EAAK,OAAQC,EAAUA,EAAWA,EAAS,OAC3D,GAAIH,EAAM,SAASG,CAAQ,EAAG,CAC1BH,EAAM,OAAOC,EAAK,CAAC,EACnB,KAChB,CAEA,CACI,OAAOD,CACX,CAKA,IAAII,GACH,SAAUA,EAAkB,CACzBA,EAAiBA,EAAiB,aAAkB,CAAC,EAAI,eACzDA,EAAiBA,EAAiB,UAAe,CAAC,EAAI,YACtDA,EAAiBA,EAAiB,UAAe,CAAC,EAAI,YACtDA,EAAiBA,EAAiB,SAAc,CAAC,EAAI,WACrDA,EAAiBA,EAAiB,aAAkB,EAAE,EAAI,cAC9D,GAAGA,IAAqBV,EAAAA,UAAA,iBAA2BU,EAAmB,CAAA,EAAG,EA2BzE,SAASR,EAAwBS,EAAOC,EAAO,CAC3C,IAAIC,EAAW,CAAA,EACXC,EAAW,CAAA,EACf,GAAIH,IAAUC,EACV,MAAO,GAGX,QADIG,KAAcX,EAAa,aAAaO,CAAK,EAAIA,EAAQA,EAAM,OAC5DI,GACHF,EAAS,QAAQE,CAAO,EACxBA,EAAUA,EAAQ,OAGtB,IADAA,KAAcX,EAAa,aAAaQ,CAAK,EAAIA,EAAQA,EAAM,OACxDG,GACHD,EAAS,QAAQC,CAAO,EACxBA,EAAUA,EAAQ,OAItB,QAFIC,EAAS,KAAK,IAAIH,EAAS,OAAQC,EAAS,MAAM,EAClDP,EAAM,EACHA,EAAMS,GAAUH,EAASN,CAAG,IAAMO,EAASP,CAAG,GACjDA,IAEJ,GAAIA,IAAQ,EACR,OAAOG,EAAiB,aAE5B,IAAIO,EAAeJ,EAASN,EAAM,CAAC,EAC/BW,EAAWD,EAAa,SACxBE,EAAWN,EAASN,CAAG,EACvBa,EAAWN,EAASP,CAAG,EAC3B,OAAIW,EAAS,QAAQC,CAAQ,EAAID,EAAS,QAAQE,CAAQ,EAClDH,IAAiBL,EACVF,EAAiB,UAAYA,EAAiB,aAElDA,EAAiB,UAExBO,IAAiBN,EACVD,EAAiB,UAAYA,EAAiB,SAElDA,EAAiB,SAC5B,CAUA,SAASP,EAAWG,EAAO,CACvB,OAAAA,EAAQA,EAAM,OAAO,SAAUE,EAAM,EAAGa,EAAK,CAAE,MAAO,CAACA,EAAI,SAASb,EAAM,EAAI,CAAC,CAAE,CAAE,EACnFF,EAAM,KAAK,SAAUgB,EAAGC,EAAG,CACvB,IAAIC,EAAWtB,EAAwBoB,EAAGC,CAAC,EAC3C,OAAIC,EAAWd,EAAiB,UACrB,GAEFc,EAAWd,EAAiB,UAC1B,EAEJ,CACf,CAAK,EACMJ,CACX","x_google_ignoreList":[0]}
|
package/dist/index.cjs743.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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.cjs778.js"),B=require("./index.cjs737.js"),T=require("./index.cjs741.js");var _;function w(){if(_)return m.__exports;_=1,Object.defineProperty(m.__exports,"__esModule",{value:!0}),m.__exports.getFeed=D;var b=B.__require(),v=T.__require();function D(r){var t=c(F,r);return t?t.name==="feed"?k(t):q(t):null}function k(r){var t,e=r.children,i={type:"atom",items:(0,v.getElementsByTagName)("entry",e).map(function(s){var d,a=s.children,o={media:p(a)};l(o,"id","id",a),l(o,"title","title",a);var g=(d=c("link",a))===null||d===void 0?void 0:d.attribs.href;g&&(o.link=g);var h=f("summary",a)||f("content",a);h&&(o.description=h);var y=f("updated",a);return y&&(o.pubDate=new Date(y)),o})};l(i,"id","id",e),l(i,"title","title",e);var n=(t=c("link",e))===null||t===void 0?void 0:t.attribs.href;n&&(i.link=n),l(i,"description","subtitle",e);var u=f("updated",e);return u&&(i.updated=new Date(u)),l(i,"author","email",e,!0),i}function q(r){var t,e,i=(e=(t=c("channel",r.children))===null||t===void 0?void 0:t.children)!==null&&e!==void 0?e:[],n={type:r.name.substr(0,3),id:"",items:(0,v.getElementsByTagName)("item",r.children).map(function(s){var d=s.children,a={media:p(d)};l(a,"id","guid",d),l(a,"title","title",d),l(a,"link","link",d),l(a,"description","description",d);var o=f("pubDate",d)||f("dc:date",d);return o&&(a.pubDate=new Date(o)),a})};l(n,"title","title",i),l(n,"link","link",i),l(n,"description","description",i);var u=f("lastBuildDate",i);return u&&(n.updated=new Date(u)),l(n,"author","managingEditor",i,!0),n}var x=["url","type","lang"],E=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function p(r){return(0,v.getElementsByTagName)("media:content",r).map(function(t){for(var e=t.attribs,i={medium:e.medium,isDefault:!!e.isDefault},n=0,u=x;n<u.length;n++){var s=u[n];e[s]&&(i[s]=e[s])}for(var d=0,a=E;d<a.length;d++){var s=a[d];e[s]&&(i[s]=parseInt(e[s],10))}return e.expression&&(i.expression=e.expression),i})}function c(r,t){return(0,v.getElementsByTagName)(r,t,!0,1)[0]}function f(r,t,e){return e===void 0&&(e=!1),(0,b.textContent)((0,v.getElementsByTagName)(r,t,e,1)).trim()}function l(r,t,e,i,n){n===void 0&&(n=!1);var u=f(e,i,n);u&&(r[t]=u)}function F(r){return r==="rss"||r==="feed"||r==="rdf:RDF"}return m.__exports}exports.__require=w;
|
|
2
2
|
//# sourceMappingURL=index.cjs743.js.map
|