@noxsoft/anima 5.1.1 → 6.0.0
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/CHANGELOG.md +40 -0
- package/README.md +2 -2
- package/dist/{APEv2Parser-DV7AH14P.js → APEv2Parser-Dvsbp_2R.js} +3 -3
- package/dist/{AbstractID3Parser-C3RlCr-Y.js → AbstractID3Parser-IB9gxozg.js} +5 -5
- package/dist/{AiffParser-DaFyNU8n.js → AiffParser-R2IhrBzL.js} +4 -4
- package/dist/{AsfParser-CDCRfCXr.js → AsfParser-DJEueUMg.js} +4 -4
- package/dist/{DsdiffParser-BX31LICZ.js → DsdiffParser-DXLYn9tT.js} +4 -4
- package/dist/{DsfParser-C3JBjE-C.js → DsfParser-D2--NF0i.js} +5 -5
- package/dist/{FlacParser-DY4m-7v1.js → FlacParser-8cDAjrth.js} +5 -5
- package/dist/{ID3v1Parser-DL9AGlNt.js → ID3v1Parser-B494XuP9.js} +3 -3
- package/dist/{ID3v2Parser-Mr8o-5GJ.js → ID3v2Parser-DlxcNqv5.js} +4 -4
- package/dist/{ID3v2Token-DQqGh8AB.js → ID3v2Token-CSLSVrSQ.js} +2 -2
- package/dist/{MP4Parser-DkunlEqI.js → MP4Parser-COql2J-w.js} +6 -6
- package/dist/{MatroskaParser-IKjHx0h7.js → MatroskaParser-bNP5wC2F.js} +3 -3
- package/dist/{MpegParser-EecSeRWJ.js → MpegParser-C1gjfYqq.js} +4 -4
- package/dist/{MusepackParser-CkfsAeuE.js → MusepackParser-DBdYf7kV.js} +5 -5
- package/dist/{OggParser-z3QlSd8U.js → OggParser-CxajqbK3.js} +5 -5
- package/dist/{Util-DDVY6AaC.js → Util-BRZxoY1Q.js} +1 -1
- package/dist/{WavPackParser-PimUUBRx.js → WavPackParser-CtH9QFia.js} +4 -4
- package/dist/{WaveParser-B539YtoQ.js → WaveParser-yufLki1G.js} +5 -5
- package/dist/{accounts-CL0JV_xk.js → accounts-B_2nt5Cd.js} +2 -2
- package/dist/{accounts-CYEa4ttU.js → accounts-COxGcLGB.js} +1 -1
- package/dist/{accounts-Bj5MvaDs.js → accounts-DIES085e.js} +11 -11
- package/dist/{accounts-Dyb3ijJm.js → accounts-TUsfghIW.js} +5 -5
- package/dist/{acp-cli-ynoZZhYQ.js → acp-cli-CWgqDQQH.js} +6 -6
- package/dist/{acp-cli-BFAoKBvs.js → acp-cli-D0wfP8-l.js} +16 -16
- package/dist/{active-listener-BWPgtTZp.js → active-listener-BKtsWhsb.js} +4 -4
- package/dist/{active-listener-B7OcwSxK.js → active-listener-D2r8IO7g.js} +4 -4
- package/dist/{agent-DImD77Te.js → agent-CnS0SRpT.js} +93 -236
- package/dist/{agent-B8ciDTm6.js → agent-VRQM14Xp.js} +98 -229
- package/dist/{agent-scope-C9CiVcmh.js → agent-scope-ByIGrCTT.js} +2 -2
- package/dist/{agent-scope-D3HZp64M.js → agent-scope-CXxC8FFX.js} +2 -2
- package/dist/{agent-scope-BHR6uOLT.js → agent-scope-CxBzAozu.js} +2 -2
- package/dist/{agents-DvkZi7oF.js → agents-CvMRplDx.js} +15 -13
- package/dist/{agents.config-J7iEgdW_.js → agents.config-BR5JLtud.js} +1 -1
- package/dist/{anthropic-direct-runner-B12V2Q5H.js → anthropic-direct-runner-BeYCnvZ8.js} +37 -15
- package/dist/{anthropic-direct-runner-CzQb7QkD.js → anthropic-direct-runner-C2Kwju-r.js} +29 -7
- package/dist/{audit-ByHmjh-G.js → audit-B05W5ckN.js} +23 -34
- package/dist/{audit-HJOpXfgY.js → audit-DDz7UOIx.js} +18 -15
- package/dist/{auth-DXrALxdm.js → auth-DsC5pZ_0.js} +2 -2
- package/dist/{prompts-C9IyM74_.js → auth-choice-DY1saszS.js} +12 -107
- package/dist/{auth-choice-i9Z_cli_.js → auth-choice-Dc5TAJwT.js} +10 -9
- package/dist/{auth-health-DmrnGklu.js → auth-health-Cc8-vy8y.js} +1 -1
- package/dist/auth-health-Dhr8p2SD.js +149 -0
- package/dist/{auth-profiles-BF5x9Ej0.js → auth-profiles-Brxz2ojJ.js} +193 -42
- package/dist/{auth-profiles-DjCH4kWT.js → auth-profiles-C-LuhW6c.js} +195 -44
- package/dist/{auth-profiles-PJVsRqf4.js → auth-profiles-DKu7ZUzl.js} +189 -29
- package/dist/{auth-profiles-Da39zGOD.js → auth-profiles-DtWUl1-k.js} +189 -29
- package/dist/{auth-store-Bl6rpC4E.js → auth-store-Bd0GoqEL.js} +3 -3
- package/dist/{auth-store-KnWGteIV.js → auth-store-BpYI9t_y.js} +3 -3
- package/dist/{auth-store-DjcQlyze.js → auth-store-Jvgz2_l1.js} +2 -2
- package/dist/{banner-CjrhpA68.js → banner-DAMtSjUF.js} +1 -1
- package/dist/{bonjour-discovery-QsoaZ8Pr.js → bonjour-discovery-Co-b97Dz.js} +2 -2
- package/dist/build-info.json +3 -3
- package/dist/bundled/boot-md/handler.js +220 -149
- package/dist/bundled/bootstrap-extra-files/handler.js +3 -3
- package/dist/bundled/session-memory/handler.js +22 -22
- package/dist/{call-DHZ76BNg.js → call-B4lhqS6H.js} +3 -3
- package/dist/{call-DQjoz63V.js → call-CDPbPDAr.js} +4 -4
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{catalog-AZNRamJ4.js → catalog-CsXv59Tq.js} +2 -2
- package/dist/{channel-web-9ikdY9RK.js → channel-web-B8mzTSaY.js} +15 -15
- package/dist/{channels-status-issues-DdjvFHx9.js → channels-status-issues-WkG3Tmxk.js} +4 -4
- package/dist/{chrome-HTuFjVWW.js → chrome-B8EnYGj1.js} +9 -9
- package/dist/{chrome-BNggURXT.js → chrome-BaU-H9m7.js} +3 -3
- package/dist/{chrome-CkSIMI7j.js → chrome-DLUBPBPz.js} +2 -2
- package/dist/{chunk-5llVa3wc.js → chunk-B4Kx-ocg.js} +11 -9
- package/dist/{chunk-Dffz_QIs.js → chunk-CFSle8n5.js} +1 -1
- package/dist/{chunk-D3vyM2EQ.js → chunk-Cy0Bj0F3.js} +1 -1
- package/dist/{chunk-DFqo_u5A.js → chunk-DJXDX69U.js} +11 -9
- package/dist/{clack-prompter-QbDK4ABC.js → clack-prompter-0JW5kry0.js} +3 -3
- package/dist/{clack-prompter-DlmPIB0y.js → clack-prompter-fZSmnHda.js} +5 -5
- package/dist/cli/daemon-cli.js +1 -1
- package/dist/{cli-d0H0Bpz9.js → cli-D8exVpuI.js} +30 -29
- package/dist/cli-hcHk5KuP.js +102 -0
- package/dist/{cli-utils-BdkJVXjy.js → cli-utils-D2X_bDLt.js} +9 -1
- package/dist/{cli-utils-DGnL8raH.js → cli-utils-DcDBK4C5.js} +9 -1
- package/dist/{client-D9E5Wwb_.js → client-BWkoTfOH.js} +3 -2
- package/dist/{client-DzIcZx4J.js → client-CfLiulzK.js} +2 -1
- package/dist/{command-registry-Dv064HDc.js → command-registry-D3VhxpWx.js} +21 -12
- package/dist/{commands-NIY0IDXe.js → commands-DE8FNH0v.js} +92 -20
- package/dist/{commands-eY0Ao0wt.js → commands-Mekaw9WG.js} +92 -20
- package/dist/{common-C2wAYEWA.js → common-BCW6hLGI.js} +2 -2
- package/dist/{common-CKoFTq83.js → common-Bf_TG87Y.js} +2 -2
- package/dist/{common-6Fcbzr42.js → common-DT_obM-k.js} +2 -2
- package/dist/{completion-cli-Blp8bILB.js → completion-cli-B3BqQJq9.js} +3 -3
- package/dist/{completion-cli-C-fu_7Kd.js → completion-cli-CepDzeW1.js} +2 -2
- package/dist/{config-Ofh9gKvs.js → config-BrVuTQ8R.js} +14 -2
- package/dist/{config-BfhpauV9.js → config-CweTwOtr.js} +19 -7
- package/dist/{config-DqwH4y-D.js → config-DaD4FsAn.js} +19 -7
- package/dist/{config-D2kCn7yR.js → config-ZYN8tezd.js} +18 -6
- package/dist/{config-cli-BFQDt_5i.js → config-cli-3CaIxSKo.js} +4 -4
- package/dist/config-cli-B6Np85rk.js +15 -0
- package/dist/{config-guard-B1plY6aQ.js → config-guard-C4b2dksv.js} +2 -2
- package/dist/{config-guard-CYlpjNN7.js → config-guard-CWhoBtB3.js} +20 -20
- package/dist/{config-sync-CDUhjDom.js → config-sync-CCVp-tVX.js} +4 -4
- package/dist/{config-sync-CYX9Tzyr.js → config-sync-CMO_5lyl.js} +4 -4
- package/dist/{configure-CJYocuSp.js → configure-D882Bg7c.js} +39 -15
- package/dist/{configure-DLPHJ8nv.js → configure-D88dg6mE.js} +79 -77
- package/dist/{configure-Bbx4y0lr.js → configure-xpjwedvJ.js} +50 -49
- package/dist/{configure-fHta2Meh.js → configure-zXK6UZ51.js} +49 -24
- package/dist/{context-CpsnZLOp.js → context-B5X720Bs.js} +1 -1
- package/dist/{control-service-D1oxSXVg.js → control-service-3CI4vt1h.js} +2 -2
- package/dist/{control-service-CzAfyR4e.js → control-service-5YtMvm7D.js} +5 -5
- package/dist/control-ui/assets/index-C4ejMN5U.js +72 -0
- package/dist/control-ui/assets/index-C4ejMN5U.js.map +1 -0
- package/dist/control-ui/assets/index-CcPNqN3R.css +1 -0
- package/dist/control-ui/assets/index-D7Bf6Say.js +3 -0
- package/dist/control-ui/assets/index-D7Bf6Say.js.map +1 -0
- package/dist/control-ui/assets/index-yhFuaOnc.js +2 -0
- package/dist/control-ui/assets/index-yhFuaOnc.js.map +1 -0
- package/dist/control-ui/assets/observers-V7q9lNYt.js +2 -0
- package/dist/control-ui/assets/observers-V7q9lNYt.js.map +1 -0
- package/dist/control-ui/assets/rrweb-plugin-console-record-sPdhR0i8.js +138 -0
- package/dist/control-ui/assets/rrweb-plugin-console-record-sPdhR0i8.js.map +1 -0
- package/dist/control-ui/assets/rrweb-record-CMVXB7aO.js +129 -0
- package/dist/control-ui/assets/rrweb-record-CMVXB7aO.js.map +1 -0
- package/dist/control-ui/index.html +2 -2
- package/dist/{cron-cli-C4qZZo4e.js → cron-cli-Cht6Itx6.js} +18 -18
- package/dist/{cron-cli-CSivg2i9.js → cron-cli-D9XrF-Gx.js} +8 -8
- package/dist/{daemon-cli-DfxT-pQ4.js → daemon-cli-9zrnYRjh.js} +8 -8
- package/dist/{daemon-cli-KMzjJH_D.js → daemon-cli-CrdPhSxr.js} +15 -15
- package/dist/daemon-cli.js +34 -6
- package/dist/{daemon-runtime-CIE27usH.js → daemon-runtime-BrUj88ZO.js} +2 -2
- package/dist/{daemon-runtime-BfgstLVI.js → daemon-runtime-DCqwraWR.js} +1 -1
- package/dist/{deliver-8r6UbXnC.js → deliver-B-dPbUIs.js} +18 -28
- package/dist/{deliver-ahx1N11n.js → deliver-BKzX3YoN.js} +7 -7
- package/dist/{deliver-DVt8TbK9.js → deliver-C1L5nO0K.js} +3 -3
- package/dist/{deliver-CoQP7nSu.js → deliver-d-CaN0uL.js} +18 -28
- package/dist/deps-DyT32VfN.js +23 -0
- package/dist/{diagnostics-DXeDqA_-.js → diagnostics-Cu9pZAFn.js} +1 -1
- package/dist/{dispatcher-DpSnqIL0.js → dispatcher-BQQugU-7.js} +1 -1
- package/dist/{dispatcher-DzT6jltc.js → dispatcher-DzwzLQRk.js} +2 -2
- package/dist/{dns-cli-D9ka2fZD.js → dns-cli-C8KIX4P3.js} +12 -12
- package/dist/{dns-cli-D2Orvc8E.js → dns-cli-V2bo6vSt.js} +3 -3
- package/dist/{docs-cli-CKfzGqYM.js → docs-cli-Bt-YV3xs.js} +2 -2
- package/dist/{docs-cli-DWYXJd-j.js → docs-cli-D2cVJxjP.js} +7 -7
- package/dist/{doctor-qayl5A-F.js → doctor-DEnSKgHu.js} +21 -21
- package/dist/{doctor-2O2knHXJ.js → doctor-WpKCNZeO.js} +36 -181
- package/dist/{doctor-completion-CaC89XwQ.js → doctor-completion-CPff9UlF.js} +2 -2
- package/dist/{doctor-completion-jbYrRr0H.js → doctor-completion-CypXc1Uo.js} +2 -2
- package/dist/{doctor-config-flow-DA50eWp5.js → doctor-config-flow-Bgl0Cc20.js} +6 -6
- package/dist/{doctor-config-flow-BjfGQ1Br.js → doctor-config-flow-Dxy7RIm0.js} +4 -4
- package/dist/{engine-CKqNpVwE.js → engine-DpbYPop7.js} +6 -6
- package/dist/{engine-BVchKo5_.js → engine-zmn3SOYa.js} +7 -6
- package/dist/entry.js +19 -28
- package/dist/{env-DVJCc7dM.js → env-DlTia1B4.js} +1 -1
- package/dist/{exec-cazBMA02.js → exec-BylR5qWS.js} +1 -1
- package/dist/{exec-gKbUce2p.js → exec-C6tXfeqA.js} +1 -1
- package/dist/{exec-CEFTijVj.js → exec-DUzVF5_D.js} +1 -1
- package/dist/{exec-approvals-cli-BPwW6GIK.js → exec-approvals-cli-CN2WeH7y.js} +20 -20
- package/dist/{exec-approvals-cli-6HndodnP.js → exec-approvals-cli-DYZVBnqS.js} +8 -8
- package/dist/extensionAPI.js +22 -22
- package/dist/format-BCAtE7cT.js +20 -0
- package/dist/{gateway-cli-DAPK-NMP.js → gateway-cli-B_xsx5Nv.js} +104 -101
- package/dist/{gateway-cli-CDg1qmsU.js → gateway-cli-D3VBOA_i.js} +69 -66
- package/dist/{gateway-rpc-CrSglZPE.js → gateway-rpc-Cj_h2sVM.js} +3 -3
- package/dist/{gateway-rpc-BtOX_e53.js → gateway-rpc-CnXMGsxp.js} +3 -3
- package/dist/{gmail-setup-utils-D2uUKNlF.js → gmail-setup-utils-DaJoXV_3.js} +3 -3
- package/dist/{health-BNasz7nv.js → health-C8KCBhuo.js} +8 -8
- package/dist/{health-2sA2ziYt.js → health-CabOEPQ0.js} +13 -13
- package/dist/{health-format-CH6JWH45.js → health-format-D-JJ5_S4.js} +2 -2
- package/dist/{heartbeat-visibility-B2MDtPTL.js → heartbeat-visibility-BjYY-mKG.js} +1 -1
- package/dist/{heartbeat-visibility-DcGQOTXe.js → heartbeat-visibility-ZfNSbFcq.js} +1 -1
- package/dist/{help-format-7YidDC5Z.js → help-format-Dt-I_Mls.js} +1 -1
- package/dist/{hooks-cli-D8SvsiGN.js → hooks-cli-Cs7GUa7G.js} +34 -33
- package/dist/{hooks-cli-Cwe9oz1p.js → hooks-cli-DOs9WZ3K.js} +56 -55
- package/dist/{hooks-status-VvwKn90L.js → hooks-status-DdweuSIj.js} +4 -4
- package/dist/{image-ops-BUy__GHL.js → image-ops-Ct3GueyT.js} +1 -1
- package/dist/index.js +79 -71
- package/dist/{init-B8PBeUpi.js → init-CFndGgTJ.js} +1 -1
- package/dist/{init-DxkAVKP0.js → init-DkBwXNme.js} +1 -1
- package/dist/{installs-sayrGjx1.js → installs-Bi6UipiE.js} +6 -6
- package/dist/{installs-BcnNDR54.js → installs-a4Vz_J08.js} +3 -3
- package/dist/ipv4-DfMwLQ0d.js +14 -0
- package/dist/{lib-D4dE4_XZ.js → lib-6xd5SQjU.js} +20 -20
- package/dist/{lifecycle-core-BerWWP7p.js → lifecycle-core-B8PI1NZJ.js} +3 -3
- package/dist/{links-OhvsEkVw.js → links-DcilUrqq.js} +1 -1
- package/dist/llm-slug-generator.js +23 -23
- package/dist/{loader-CLNb0v_s.js → loader-Bw2wdN4l.js} +159 -3
- package/dist/{loader-Bww_qb65.js → loader-C87TLS4J.js} +159 -3
- package/dist/{logging-DhXRGHWg.js → logging-Chc1Sj6N.js} +1 -1
- package/dist/{login-BovU8kno.js → login-BHnvW9HA.js} +6 -6
- package/dist/{login-BPtmlRRv.js → login-BTOKtSQN.js} +5 -5
- package/dist/{login-C54B66KM.js → login-CrMpAZ0n.js} +4 -4
- package/dist/{login-7Yj2TvMd.js → login-DKkQ3Czu.js} +5 -5
- package/dist/{login-qr-bim3Nkyu.js → login-qr-BGbHImRb.js} +8 -8
- package/dist/{login-qr-pFbvowe5.js → login-qr-CsAVGp00.js} +12 -12
- package/dist/{login-qr-657mh7cI.js → login-qr-DILcBA_q.js} +6 -6
- package/dist/{login-qr-CuwWMetN.js → login-qr-OUAGpDsU.js} +9 -9
- package/dist/{logs-cli-CQStwrGd.js → logs-cli-Bc6IOyHA.js} +8 -8
- package/dist/{logs-cli-De79vyiP.js → logs-cli-BiAJbjnq.js} +15 -15
- package/dist/{manager-B043uMPT.js → manager-BYu34CX3.js} +12 -12
- package/dist/{manager-Cvmm95Pf.js → manager-C6L_DH0O.js} +2 -2
- package/dist/{manager-BtrVJ8Ve.js → manager-D8VCuzru.js} +9 -9
- package/dist/{manager-kdmVqWxk.js → manager-b_aZwo00.js} +12 -12
- package/dist/{manifest-registry-D-DOtLzo.js → manifest-registry-qF960vMH.js} +1 -1
- package/dist/{memory-cli-COl5xoIl.js → memory-cli-B0kKl-9T.js} +7 -7
- package/dist/{memory-cli-691NgCXx.js → memory-cli-DLtBA6r5.js} +11 -11
- package/dist/{message-channel-DZYYDt1_.js → message-channel-CMsexA3K.js} +9 -7
- package/dist/{message-channel-DdOBO6Qm.js → message-channel-DIHHKJhk.js} +8 -6
- package/dist/{migrate-DkBWjPPs.js → migrate-DuohB_ur.js} +3 -3
- package/dist/{migrate-BLjwxe9X.js → migrate-bgeTT_GR.js} +3 -3
- package/dist/{model-auth-DKhjNVHc.js → model-auth-CHB3EySM.js} +10 -5
- package/dist/{model-auth-CxAB4iZ0.js → model-auth-KpsOXKDc.js} +3 -3
- package/dist/model-param-b-C1QDqzQp.js +16 -0
- package/dist/{model-selection-BuMFehML.js → model-selection-CLcoOT3e.js} +25 -7
- package/dist/{model-selection-wCaVeFbb.js → model-selection-CY6r_3wt.js} +25 -7
- package/dist/{model-selection-DFbDH9o2.js → model-selection-DcO3qJOu.js} +24 -6
- package/dist/{model-selection-BPkpXepz.js → model-selection-DjsJGv1R.js} +67 -8
- package/dist/models-BM2_NkMu.js +2707 -0
- package/dist/models-cli-BjY8wA-C.js +272 -0
- package/dist/models-cli-BpjeKsUz.js +2946 -0
- package/dist/{node-cli-Ajhng-5p.js → node-cli-BmuVEJ1C.js} +12 -12
- package/dist/{node-cli-t3N6HE9R.js → node-cli-DU_oREff.js} +27 -27
- package/dist/{node-service-4B-0AjmA.js → node-service-qZXF7T7A.js} +1 -1
- package/dist/{note-De2zPKl3.js → note-iMYVGjpA.js} +2 -2
- package/dist/noxsoft-bootstrap-C4dSx7K_.js +77 -0
- package/dist/noxsoft-bootstrap-CrlkSFzd.js +77 -0
- package/dist/{npm-registry-spec-CFp4OEe4.js → npm-registry-spec-Br4B4I_3.js} +2 -2
- package/dist/{npm-registry-spec-DVDcgWxm.js → npm-registry-spec-jf7Mowdn.js} +1 -1
- package/dist/{onboard-DJ4ON8sf.js → onboard-DM9gULJN.js} +24 -19
- package/dist/{onboard-DbzYS52G.js → onboard-_-D81kAy.js} +19 -15
- package/dist/{onboard-channels-CWMuM-3k.js → onboard-channels-CtT-RN60.js} +8 -8
- package/dist/{onboard-channels-Cqeff8-v.js → onboard-channels-UkphAdCy.js} +4 -4
- package/dist/{onboard-helpers-IeOtcIME.js → onboard-helpers-CFudIoX4.js} +3 -3
- package/dist/{onboard-helpers-DPqXrhma.js → onboard-helpers-CJ3HzoUO.js} +7 -7
- package/dist/{onboarding-SrNptVqc.js → onboarding-BB9PteK8.js} +20 -17
- package/dist/{onboarding-GIx1Wpw0.js → onboarding-Djmm0PEM.js} +27 -23
- package/dist/{orchestrator-COMX8CF2.js → orchestrator-C1nWKIJS.js} +7 -3
- package/dist/{orchestrator-BLXpTTgr.js → orchestrator-C2ypFiPL.js} +6 -3
- package/dist/{outbound-CovlPIFx.js → outbound-Bmft-5um.js} +4 -4
- package/dist/{outbound-Rs0fFC2g.js → outbound-C577aWZp.js} +1 -1
- package/dist/{outbound-DLCmFGfJ.js → outbound-DW2eod1S.js} +4 -4
- package/dist/{outbound-uxBpmALx.js → outbound-fPqdCDR4.js} +4 -4
- package/dist/outbound-send-deps-DVfWC4E8.js +14 -0
- package/dist/outbound-send-deps-T_FgdfgW.js +36 -0
- package/dist/{parse-timeout-DkOL1T_l.js → parse-timeout-C4WLf3Qy.js} +3 -3
- package/dist/{parse-timeout-DlU4ymhF.js → parse-timeout-D4UO8pY_.js} +1 -1
- package/dist/{path-env-CjpH-KWH.js → path-env-DLQPf9qj.js} +2 -2
- package/dist/{paths-DQMKfv60.js → paths-CAQJvbeZ.js} +2 -2
- package/dist/{paths-CLxC7m0Z.js → paths-Q6h5HODL.js} +1 -1
- package/dist/{pi-auth-json-BLdaEAx2.js → pi-auth-json-B_lKNFK6.js} +5 -5
- package/dist/{pi-auth-json-BH7uvkKr.js → pi-auth-json-BmdBnmlZ.js} +8 -9
- package/dist/{pi-auth-json-DjxzPUt3.js → pi-auth-json-DkYqdjrV.js} +2 -2
- package/dist/{pi-auth-json-BLCyhR5p.js → pi-auth-json-WTvcP2gz.js} +9 -8
- package/dist/{pi-embedded-BL-Js-lp.js → pi-embedded-BMbtgOzv.js} +852 -338
- package/dist/{pi-embedded-fZ1QlJ9C.js → pi-embedded-DfbM3fAT.js} +850 -336
- package/dist/{pi-embedded-helpers-B6wVA0hU.js → pi-embedded-helpers-BZ9GspxK.js} +1 -1
- package/dist/{pi-tools.policy-CDgjN_3f.js → pi-tools.policy-D2FusuQa.js} +3 -3
- package/dist/{pi-tools.policy-ox141hP6.js → pi-tools.policy-WdTAfqbV.js} +6 -6
- package/dist/{plugin-auto-enable-Mj7AnofW.js → plugin-auto-enable-CtYcdTju.js} +5 -5
- package/dist/{plugin-auto-enable-OqDAK-ap.js → plugin-auto-enable-DhuD30Je.js} +2 -2
- package/dist/{plugin-registry-DboWDOrG.js → plugin-registry-DePMxn4z.js} +4 -4
- package/dist/{plugin-registry-X7L3BrUu.js → plugin-registry-QTkplP4s.js} +2 -2
- package/dist/plugin-sdk/agents/cli-backends.d.ts +8 -2
- package/dist/plugin-sdk/agents/cli-credentials.d.ts +0 -10
- package/dist/plugin-sdk/agents/cli-runner.d.ts +2 -0
- package/dist/plugin-sdk/agents/defaults.d.ts +2 -2
- package/dist/plugin-sdk/agents/model-auto.d.ts +43 -0
- package/dist/plugin-sdk/agents/model-fallback.d.ts +5 -0
- package/dist/plugin-sdk/agents/model-preference.d.ts +25 -0
- package/dist/plugin-sdk/agents/noxsoft-runner.d.ts +94 -0
- package/dist/plugin-sdk/agents/pi-embedded-runner/run/params.d.ts +6 -3
- package/dist/plugin-sdk/agents/pi-embedded.d.ts +6 -50
- package/dist/plugin-sdk/agents/runner-capabilities.d.ts +2 -0
- package/dist/plugin-sdk/agents/sandbox/constants.d.ts +1 -1
- package/dist/plugin-sdk/auth/noxsoft-auth.d.ts +55 -0
- package/dist/plugin-sdk/channels/registry.d.ts +2 -2
- package/dist/plugin-sdk/cli/deps.d.ts +2 -1
- package/dist/plugin-sdk/cli/outbound-send-deps.d.ts +10 -0
- package/dist/plugin-sdk/commands/agent/types.d.ts +2 -0
- package/dist/plugin-sdk/config/types.agent-defaults.d.ts +14 -0
- package/dist/plugin-sdk/config/types.models.d.ts +1 -1
- package/dist/plugin-sdk/config/zod-schema.agent-defaults.d.ts +13 -0
- package/dist/plugin-sdk/config/zod-schema.agents.d.ts +13 -0
- package/dist/plugin-sdk/config/zod-schema.d.ts +13 -0
- package/dist/plugin-sdk/gateway/protocol/schema/agent.d.ts +1 -0
- package/dist/plugin-sdk/identity/loader.d.ts +1 -0
- package/dist/plugin-sdk/identity/trust-graph.d.ts +32 -0
- package/dist/plugin-sdk/index.js +57 -47
- package/dist/plugin-sdk/utils/message-channel.d.ts +2 -1
- package/dist/{plugins-DnJgmFJR.js → plugins-DYcg0qBW.js} +1 -1
- package/dist/{plugins-cli-C-PA_T5k.js → plugins-cli-Bc9oU1ld.js} +58 -57
- package/dist/{plugins-cli-BraLLKDO.js → plugins-cli-Dv0KQTWo.js} +36 -35
- package/dist/{polls-DuwPgAV7.js → polls-DFISjV7H.js} +5 -5
- package/dist/{ports-B1b1r9Dz.js → ports-DaVrZDUq.js} +2 -2
- package/dist/{ports-BX00e96t.js → ports-q535r1PZ.js} +2 -2
- package/dist/{program-BriwVW7P.js → program-CuwbF8YO.js} +48 -40
- package/dist/{program-context-oXX-h-yI.js → program-context-CxPfy-Wr.js} +51 -35
- package/dist/{progress-B-VBLfHr.js → progress-CVLvQV_t.js} +1 -1
- package/dist/{prompt-style-DU9Vjqe5.js → prompt-style-BI53UVgE.js} +1 -1
- package/dist/{prompts-D6b3zLVO.js → prompts-BmgT_kkv.js} +33 -2
- package/dist/prompts-Bq4QGFQM.js +158 -0
- package/dist/{pw-ai-BV57RRmp.js → pw-ai-CB-zeR7h.js} +5 -5
- package/dist/{pw-ai-BJfL9dGV.js → pw-ai-C_1-7IgH.js} +3 -3
- package/dist/{pw-ai-CTHtrCEC.js → pw-ai-DxNrJcCA.js} +3 -3
- package/dist/{qmd-manager-DJeQYS-r.js → qmd-manager-C_XBZ_bT.js} +5 -5
- package/dist/{qmd-manager-DHQgWjsV.js → qmd-manager-CpNYgSrx.js} +6 -6
- package/dist/{qmd-manager-Cbm03z8H.js → qmd-manager-Q0OSDQ-e.js} +5 -5
- package/dist/{register.agent-BO5BCkbO.js → register.agent-DFQmkIEH.js} +53 -50
- package/dist/{register.agent-BMKeVZeq.js → register.agent-DUjwGw9d.js} +77 -73
- package/dist/{register.anima-BS8nsOpD.js → register.anima-CRFHJu2J.js} +21 -21
- package/dist/{register.anima-DPurDgXW.js → register.anima-CtKNrpE8.js} +21 -21
- package/dist/{register.configure-Di8agIXW.js → register.configure-CSSN07XN.js} +50 -49
- package/dist/register.configure-CnEKV57N.js +107 -0
- package/dist/register.maintenance-CU1A-90-.js +102 -0
- package/dist/{register.maintenance-DjXwK16H.js → register.maintenance-fhcCB7ih.js} +48 -47
- package/dist/register.message-C1a0y2ZR.js +661 -0
- package/dist/register.message-fM0jSKB8.js +659 -0
- package/dist/register.onboard-B7Gavmvt.js +128 -0
- package/dist/{register.onboard-BkUxrYi2.js → register.onboard-BhPlqjFi.js} +50 -49
- package/dist/{register.setup-DyqOWQ2D.js → register.setup-0jPnMgnz.js} +96 -92
- package/dist/{register.setup-DEtz71o0.js → register.setup-CADdQUEN.js} +72 -69
- package/dist/{register.status-health-sessions-DjsEuYmp.js → register.status-health-sessions-Cu5fDT-z.js} +68 -67
- package/dist/{register.status-health-sessions-CXMn5NfF.js → register.status-health-sessions-DdQsABr_.js} +40 -39
- package/dist/{register.subclis-CMlPDwE5.js → register.subclis-CZ91ufCy.js} +28 -21
- package/dist/{reply-DWdVFSBB.js → reply-DtHlnzOx.js} +6658 -6191
- package/dist/{reply-prefix-CRGxza-M.js → reply-prefix-C8dIgJur.js} +1 -1
- package/dist/{reply-prefix-_gr2uQ1Z.js → reply-prefix-DmWGtcH-.js} +1 -1
- package/dist/{routes-ZlpnlJFF.js → routes-CWCAc8uJ.js} +2 -2
- package/dist/{routes-DeDgHj5Y.js → routes-FT0Us8Md.js} +6 -6
- package/dist/{run-GZnwhuUG.js → run-Dfz_7j7t.js} +1256 -166
- package/dist/{run-CXLRGLdR.js → run-DqBQ-bGn.js} +1230 -140
- package/dist/{run-main-Coy6Vx7R.js → run-main-DGDW0fhx.js} +51 -50
- package/dist/{runtime-guard-cBL2D5J8.js → runtime-guard-D14Z_QY6.js} +1 -1
- package/dist/{sandbox-DDOFuJU9.js → sandbox-D-N7M7lp.js} +2 -2
- package/dist/{sandbox-cli-GhcxR1Va.js → sandbox-cli-CQKz2I1X.js} +9 -9
- package/dist/{sandbox-cli-CGJvhJ4L.js → sandbox-cli-DHNFlTo-.js} +23 -23
- package/dist/{sandbox-B8Nza4lP.js → sandbox-pBHlfFdB.js} +6 -6
- package/dist/{security-cli-B7VIDDSL.js → security-cli-Bdi7MuP6.js} +14 -22
- package/dist/{security-cli-gsyz4Wrw.js → security-cli-C3aI09uy.js} +27 -35
- package/dist/{semantic-C3Z-zhNi.js → semantic-9rgWUrz3.js} +1 -1
- package/dist/{semantic-BZw2SVoG.js → semantic-C1UN3bb9.js} +1 -1
- package/dist/{semantic-DCd6zBnV.js → semantic-CQApJNO_.js} +1 -1
- package/dist/{server-context-Dkz4Ce8z.js → server-context-Clykq0XU.js} +1 -1
- package/dist/{server-context-BlJi7pjP.js → server-context-Yx4pgBqJ.js} +7 -7
- package/dist/{server-node-events-yZM_OBSZ.js → server-node-events-BR1aXVlu.js} +55 -53
- package/dist/{server-node-events-BMO931Md.js → server-node-events-Ca797E1d.js} +34 -31
- package/dist/{service-QlHhVsQf.js → service-Dd1DfPia.js} +1 -1
- package/dist/{service-audit-D4xG05j8.js → service-audit-Bwpoc2LD.js} +1 -1
- package/dist/{service-audit-BaoBb09i.js → service-audit-KzOtcw_V.js} +3 -3
- package/dist/{session-BJ9XCJBg.js → session-5YO_H-Ra.js} +1 -1
- package/dist/{session-CB9OL4Ml.js → session-BiA6jrcs.js} +1 -1
- package/dist/session-C7IGnhd1.js +190 -0
- package/dist/{session-KNXzWBht.js → session-CSmfU0D3.js} +1 -1
- package/dist/{session-CqKJvPTq.js → session-DLevr8Vd.js} +5 -5
- package/dist/session-DfsMJNG3.js +190 -0
- package/dist/{session-TAOVpONo.js → session-FmXsucR7.js} +2 -2
- package/dist/{session-cost-usage-BamtB1rn.js → session-cost-usage-BWqR-ik6.js} +1 -1
- package/dist/{sessions-C2th3rm6.js → sessions-BOzeFzuL.js} +12 -22
- package/dist/{sessions-1XK2mH6L.js → sessions-C_3wTmSA.js} +9 -19
- package/dist/{sessions-BrQHxX_o.js → sessions-Dj7_4mkr.js} +4 -4
- package/dist/{settings-cli-_DoMmFH9.js → settings-cli-DxNeu6kx.js} +79 -77
- package/dist/{settings-cli-BVBFgDUd.js → settings-cli-Dytfop1H.js} +50 -49
- package/dist/{setup-token-Dqtgnjxw.js → setup-token-B802CZwe.js} +13 -18
- package/dist/{setup-token-Bcer2kX8.js → setup-token-DYh2QzJ-.js} +29 -34
- package/dist/{shared-Hnu5dChj.js → shared-C-rqLtIT.js} +2 -2
- package/dist/{shell-env-KRrv3dPW.js → shell-env-CMI9f7-7.js} +1 -1
- package/dist/{shell-env-DaSbgZYX.js → shell-env-HkVWMh--.js} +1 -1
- package/dist/{shell-env-PnmcBTp4.js → shell-env-iPnSIi-t.js} +1 -1
- package/dist/{skills-CQoUYlGu.js → skills-4v6-kw0C.js} +3 -3
- package/dist/{skills-cli-DQuLxQUM.js → skills-cli-BoasNTpZ.js} +15 -15
- package/dist/{skills-cli-CNNy0FxN.js → skills-cli-TeAq3fRG.js} +3 -3
- package/dist/{skills-install-2DbC1Yo2.js → skills-install-D6_qpRjW.js} +7 -7
- package/dist/{skills-install-CE6djAWL.js → skills-install-Qw2oU8L8.js} +2 -2
- package/dist/{skills-status-ybjSmiHu.js → skills-status-CvH7AUoY.js} +4 -4
- package/dist/{soul-DFeEGG5h.js → soul-BiIdv3Wp.js} +124 -4
- package/dist/{soul-B7vtVbSs.js → soul-Bt8UNmTq.js} +125 -4
- package/dist/{soul-CwWWw7cs.js → soul-D9k5zulC.js} +2 -2
- package/dist/{soul-Bru-rRjk.js → soul-DQSYs-4l.js} +1 -1
- package/dist/{sqlite-BTcAhNls.js → sqlite-BMMt7osH.js} +2 -2
- package/dist/{sqlite-D_h-b5t2.js → sqlite-CZ1vD4VS.js} +2 -2
- package/dist/{sqlite-CLZ1eR5Q.js → sqlite-CpAJt-JS.js} +1 -1
- package/dist/{start-C6a18wc7.js → start-BqnPia0t.js} +66 -63
- package/dist/start-C3fuLzX0.js +157 -0
- package/dist/{status-DyD7gtoK.js → status-CHGNPonc.js} +26 -44
- package/dist/{status-CUyIggna.js → status-CxF6k_jr.js} +2 -2
- package/dist/{status-CWgHkLTE.js → status-DfZJJqNs.js} +15 -15
- package/dist/{status-DmsznVj5.js → status-tLgozFYL.js} +4 -4
- package/dist/{status.update-CbIRaeaV.js → status.update-B6Tdpk07.js} +2 -2
- package/dist/{status.update-CPACVnCc.js → status.update-E9dSFk_b.js} +1 -1
- package/dist/{subagent-registry-BVrDlKmm.js → subagent-registry-CPtElVX0.js} +834 -367
- package/dist/{subsystem-BMsbqSb4.js → subsystem-BAADN1B8.js} +18 -27
- package/dist/{subsystem-CucjNlOk.js → subsystem-D-Xta-sj.js} +17 -26
- package/dist/{subsystem-BP2l3SHn.js → subsystem-D1AJZPgG.js} +18 -27
- package/dist/{system-cli-BKicxULp.js → system-cli-CP7JrhR0.js} +15 -15
- package/dist/{system-cli-Unb-WFAR.js → system-cli-DoLzi2Sn.js} +8 -8
- package/dist/{systemd-5KGZ3NHE.js → systemd-Bx76sJ3M.js} +2 -2
- package/dist/{systemd-linger-B-uyzDap.js → systemd-linger-BVwGXVS0.js} +2 -2
- package/dist/{systemd-linger-CS_pA1-a.js → systemd-linger-CxGmIy_5.js} +1 -1
- package/dist/{table-CdHBo5d1.js → table-Blmz7glr.js} +2 -2
- package/dist/{tokens-DGhK0fpG.js → tokens-SP2Q7i59.js} +1 -1
- package/dist/{tool-images-CUx-9B7B.js → tool-images-2qproko3.js} +2 -2
- package/dist/{tool-images-Dq55i0mz.js → tool-images-C6cKHTbj.js} +2 -2
- package/dist/{tool-images-J0rGmoDV.js → tool-images-CgDT0Xzv.js} +2 -2
- package/dist/{tui-Bm8FEW0b.js → tui-C2eLfbhA.js} +5 -5
- package/dist/{tui-cli-BGjsxGle.js → tui-cli-BgcbCtgc.js} +12 -12
- package/dist/{tui-cli-TwCYv-a7.js → tui-cli-cLSYBQu9.js} +27 -27
- package/dist/{tui-DtGKiHUr.js → tui-r4qpJhNk.js} +10 -10
- package/dist/{update-Dfi92PZJ.js → update-CqKpX3cX.js} +3 -3
- package/dist/{update-Dle5MRUz.js → update-DA91za97.js} +1 -1
- package/dist/{update-cli-JPLB8AtM.js → update-cli-BuCw75tM.js} +87 -85
- package/dist/{update-cli-4VAEZsrR.js → update-cli-C-er5av6.js} +55 -54
- package/dist/{update-runner-BxdLd4Q8.js → update-runner-czCqHZCu.js} +5 -5
- package/dist/{update-runner-pmlbxeZ-.js → update-runner-kE8AMQt4.js} +1 -1
- package/dist/{utils-B60lF9Wq.js → utils-CLYlhJuc.js} +1 -1
- package/dist/{web-cpPr1Em8.js → web-BHGK5GtV.js} +24 -24
- package/dist/web-CyYunanU.js +65 -0
- package/dist/{web-D8EsFSet.js → web-DvTXV-fo.js} +35 -34
- package/dist/{web-B3O004_b.js → web-so3pGceM.js} +25 -25
- package/dist/{webhooks-cli-Cg0F2mU6.js → webhooks-cli-k3QMf7Rs.js} +4 -4
- package/dist/{webhooks-cli-BsWx7MgH.js → webhooks-cli-vlEfXEKm.js} +12 -12
- package/dist/{whatsapp-actions-gpz6-vPI.js → whatsapp-actions-6fPRKwPV.js} +11 -11
- package/dist/{whatsapp-actions-DJpQVKnT.js → whatsapp-actions-BJn-z76S.js} +17 -17
- package/dist/{whatsapp-actions-tWRWRZ4X.js → whatsapp-actions-C0tlEdLy.js} +5 -5
- package/dist/{whatsapp-actions-9PCfw-Zh.js → whatsapp-actions-Hr-W8vjY.js} +12 -12
- package/dist/{widearea-dns-BDtWuGCY.js → widearea-dns-CHAT20aR.js} +1 -1
- package/dist/{workspace-Cvio8QlZ.js → workspace-BFIZCnGo.js} +1 -1
- package/dist/{ws-log-Bc4grA6W.js → ws-log-CUobU2tD.js} +1 -1
- package/package.json +1 -1
- package/templates/profiles/nox.profile.json5 +5 -5
- package/dist/cli-PD3ygS3H.js +0 -101
- package/dist/config-cli-CgG6CaWK.js +0 -15
- package/dist/control-ui/assets/index-B7CJLRZD.css +0 -1
- package/dist/control-ui/assets/index-DLPYIcs0.js +0 -58
- package/dist/control-ui/assets/index-DLPYIcs0.js.map +0 -1
- package/dist/deps-CMFpRoYp.js +0 -13
- package/dist/models-2GYW4-6h.js +0 -1350
- package/dist/register.configure-Dvg0Vi23.js +0 -105
- package/dist/register.maintenance-CKE15LXK.js +0 -100
- package/dist/register.onboard-Du-u1lcX.js +0 -126
- package/dist/start-C0Uw_pIA.js +0 -154
- package/dist/web-B9-C6C1i.js +0 -64
- /package/dist/{BasicParser-BiEpjka-.js → BasicParser-D4BHCxVb.js} +0 -0
- /package/dist/{agents.config-DibGEnBs.js → agents.config-Br4ULmK0.js} +0 -0
- /package/dist/{archive-BIKRyvqD.js → archive-CNqghdwQ.js} +0 -0
- /package/dist/{archive-5e-Ytlq-.js → archive-D-dHRz-v.js} +0 -0
- /package/dist/{argv-B6vsXQtF.js → argv-nNQ109_K.js} +0 -0
- /package/dist/{auth-store-Vfd6oc1G.js → auth-store-BEfSfCbW.js} +0 -0
- /package/dist/{auto-update-BUbllW1X.js → auto-update-Cvd8YJrT.js} +0 -0
- /package/dist/{auto-update-DdH8fo63.js → auto-update-DO4nHkfM.js} +0 -0
- /package/dist/{brew-Bkf_MwX9.js → brew-DHWnVWm3.js} +0 -0
- /package/dist/{budget-CV0a771W.js → budget-DvjICb0t.js} +0 -0
- /package/dist/{budget-GiXjG9eW.js → budget-e0R5xsU3.js} +0 -0
- /package/dist/{command-options-DfPEZwUK.js → command-options-DtJ8-EC7.js} +0 -0
- /package/dist/{command-options-mgpP-XId.js → command-options-eC-m_qJx.js} +0 -0
- /package/dist/{delivery-queue-DGnDKL02.js → delivery-queue-BKQk1j0k.js} +0 -0
- /package/dist/{delivery-queue-DZ_ibFDu.js → delivery-queue-CExaJXRz.js} +0 -0
- /package/dist/{display-BwSYYxVE.js → display-4p3-O9mP.js} +0 -0
- /package/dist/{display-Dck2kudh.js → display-Bo8pBhMp.js} +0 -0
- /package/dist/{exec-approvals-BJikgQkX.js → exec-approvals-DK5-KCUz.js} +0 -0
- /package/dist/{format-wiLVr0D3.js → format-9DMvWYUJ.js} +0 -0
- /package/dist/{format-duration-C5oKCGwB.js → format-duration-CnGkTPRF.js} +0 -0
- /package/dist/{gmail-setup-utils-CR33Gqfc.js → gmail-setup-utils-BIXtKTpT.js} +0 -0
- /package/dist/{help-format-DJx5Rwy2.js → help-format-ZKxl6UCb.js} +0 -0
- /package/dist/{helpers-8O7IVGO-.js → helpers-CWQnEONe.js} +0 -0
- /package/dist/{hooks-status-DiqubDlK.js → hooks-status-DqfJDvYl.js} +0 -0
- /package/dist/{ipv4-BYbwrpG-.js → ipv4-CExV55ho.js} +0 -0
- /package/dist/{is-main-BnikY3ud.js → is-main-H-hpHkdq.js} +0 -0
- /package/dist/{lib-D1DXSMt_.js → lib-D0_kW-B6.js} +0 -0
- /package/dist/{links-3c7gzW-G.js → links-BjjDMNIq.js} +0 -0
- /package/dist/{logging-Bpf6Cepz.js → logging-DWwOqnTW.js} +0 -0
- /package/dist/{logging-DcXIbpwk.js → logging-_rCcBkls.js} +0 -0
- /package/dist/{model-param-b-BcBBSgiD.js → model-param-b-2KmFir_0.js} +0 -0
- /package/dist/{node-service-BDlDNv3t.js → node-service-cOoW5hLa.js} +0 -0
- /package/dist/{note-BaOKDvcy.js → note-CeLGcHqv.js} +0 -0
- /package/dist/{noxsoft-auth-Bmict45b.js → noxsoft-auth-CE75mBXE.js} +0 -0
- /package/dist/{noxsoft-auth-DpwLJIW0.js → noxsoft-auth-CgCk5707.js} +0 -0
- /package/dist/{pi-model-discovery-ClWISQ3j.js → pi-model-discovery-Bu4Zr7nI.js} +0 -0
- /package/dist/{ports-aNJUI3Mi.js → ports-BGLuwt2Z.js} +0 -0
- /package/dist/{progress-Dj2aBWOI.js → progress-glCgu57m.js} +0 -0
- /package/dist/{qmd-manager-DrDX4o7e.js → qmd-manager-CO795NK4.js} +0 -0
- /package/dist/{queue-B77yV52t.js → queue-DDq0uzy5.js} +0 -0
- /package/dist/{queue-wFYwitx0.js → queue-DtQ5sbyD.js} +0 -0
- /package/dist/{registry-gaRST__4.js → registry-BvymIcVf.js} +0 -0
- /package/dist/{registry-Cv8RtADU.js → registry-DwaHkd_j.js} +0 -0
- /package/dist/{requirements-CEowKaVY.js → requirements-Ct4XnMiK.js} +0 -0
- /package/dist/{skill-scanner-DGoUYV22.js → skill-scanner-5_Y3u6SU.js} +0 -0
- /package/dist/{skill-scanner-FO7SyxAD.js → skill-scanner-Dld2ijVw.js} +0 -0
- /package/dist/{templates-D-h5PNIK.js → templates-4_And8I_.js} +0 -0
- /package/dist/{templates-ndPXOyGA.js → templates-5Z-UIDze.js} +0 -0
- /package/dist/{types-DSS9sywz.js → types-BQk_oAin.js} +0 -0
- /package/dist/{usage-format-BtlQ-77V.js → usage-format-BSa7cHyK.js} +0 -0
- /package/dist/{ws-log-BA9w1cJs.js → ws-log-CG6cvCZW.js} +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
var tt={},nn=Object.defineProperty,on=(e,t,r)=>t in e?nn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>on(e,typeof t!="symbol"?t+"":t,r),Vr,an=Object.defineProperty,ln=(e,t,r)=>t in e?an(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Jr=(e,t,r)=>ln(e,typeof t!="symbol"?t+"":t,r),Y=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Y||{});const Yr={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Qr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},qe={};function un(e){var t,r;const l=(r=(t=globalThis?.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(l&&globalThis[l])return globalThis[l]}function Ar(e){if(qe[e])return qe[e];const t=un(e)||globalThis[e],r=t.prototype,l=e in Yr?Yr[e]:void 0,s=!!(l&&l.every(m=>{var o,p;return!!((p=(o=Object.getOwnPropertyDescriptor(r,m))==null?void 0:o.get)!=null&&p.toString().includes("[native code]"))})),f=e in Qr?Qr[e]:void 0,c=!!(f&&f.every(m=>{var o;return typeof r[m]=="function"&&((o=r[m])==null?void 0:o.toString().includes("[native code]"))}));if(s&&c)return qe[e]=t.prototype,t.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const o=m.contentWindow;if(!o)return t.prototype;const p=o[e].prototype;return document.body.removeChild(m),p?qe[e]=p:r}catch{return r}}const vt={};function we(e,t,r){var l;const s=`${e}.${String(r)}`;if(vt[s])return vt[s].call(t);const f=Ar(e),c=(l=Object.getOwnPropertyDescriptor(f,r))==null?void 0:l.get;return c?(vt[s]=c,c.call(t)):t[r]}const Ct={};function yi(e,t,r){const l=`${e}.${String(r)}`;if(Ct[l])return Ct[l].bind(t);const f=Ar(e)[r];return typeof f!="function"?t[r]:(Ct[l]=f,f.bind(t))}function cn(e){return we("Node",e,"childNodes")}function hn(e){return we("Node",e,"parentNode")}function fn(e){return we("Node",e,"parentElement")}function pn(e){return we("Node",e,"textContent")}function dn(e,t){return yi("Node",e,"contains")(t)}function mn(e){return yi("Node",e,"getRootNode")()}function gn(e){return!e||!("host"in e)?null:we("ShadowRoot",e,"host")}function yn(e){return e.styleSheets}function wn(e){return!e||!("shadowRoot"in e)?null:we("Element",e,"shadowRoot")}function bn(e,t){return we("Element",e,"querySelector")(t)}function Sn(e,t){return we("Element",e,"querySelectorAll")(t)}function vn(){return Ar("MutationObserver").constructor}const K={childNodes:cn,parentNode:hn,parentElement:fn,textContent:pn,contains:dn,getRootNode:mn,host:gn,styleSheets:yn,shadowRoot:wn,querySelector:bn,querySelectorAll:Sn,mutationObserver:vn};function wi(e){return e.nodeType===e.ELEMENT_NODE}function De(e){const t=e&&"host"in e&&"mode"in e&&K.host(e)||null;return!!(t&&"shadowRoot"in t&&K.shadowRoot(t)===e)}function Te(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Cn(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function xn(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Or(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const l=Array.from(t,s=>bi(s,r)).join("");return Cn(l)}catch{return null}}function bi(e,t){if(On(e)){let r;try{r=Or(e.styleSheet)||xn(e)}catch{r=e.cssText}return e.styleSheet.href?it(r,e.styleSheet.href):r}else{let r=e.cssText;return Mn(e)&&e.selectorText.includes(":")&&(r=Rn(r)),t?it(r,t):r}}function Rn(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function On(e){return"styleSheet"in e}function Mn(e){return"selectorText"in e}class Si{constructor(){Jr(this,"idNodeMap",new Map),Jr(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(l=>this.removeNodeFromMap(l))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const l=r.id;this.idNodeMap.set(l,t),this.nodeMetaMap.set(t,r)}replace(t,r){const l=this.getNode(t);if(l){const s=this.nodeMetaMap.get(l);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function En(){return new Si}function rt({element:e,maskInputOptions:t,tagName:r,type:l,value:s,maskInputFn:f}){let c=s||"";const m=l&&Ce(l);return(t[r.toLowerCase()]||m&&t[m])&&(f?c=f(c,e):c="*".repeat(c.length)),c}function Ce(e){return e.toLowerCase()}const Xr="__rrweb_original__";function In(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let l=0;l<e.width;l+=r)for(let s=0;s<e.height;s+=r){const f=t.getImageData,c=Xr in f?f[Xr]:f;if(new Uint32Array(c.call(t,l,s,Math.min(r,e.width-l),Math.min(r,e.height-s)).data.buffer).some(o=>o!==0))return!1}return!0}function st(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ce(t):null}function vi(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}const l=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(l);return s?.[1]??null}function An(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const kn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Nn=/^(?:[a-z+]+:)?\/\//i,Pn=/^www\..*/i,_n=/^(data:)([^,]*),(.*)/i;function it(e,t){return(e||"").replace(kn,(r,l,s,f,c,m)=>{const o=s||c||m,p=l||f||"";if(!o)return r;if(Nn.test(o)||Pn.test(o))return`url(${p}${o}${p})`;if(_n.test(o))return`url(${p}${o}${p})`;if(o[0]==="/")return`url(${p}${An(t)+o}${p})`;const i=t.split("/"),h=o.split("/");i.pop();for(const a of h)a!=="."&&(a===".."?i.pop():i.push(a));return`url(${p}${i.join("/")}${p})`})}function je(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ln(e,t,r=!1){const l=Array.from(t.childNodes),s=[];let f=0;if(l.length>1&&e&&typeof e=="string"){let c=je(e,r);const m=c.length/e.length;for(let o=1;o<l.length;o++)if(l[o].textContent&&typeof l[o].textContent=="string"){const p=je(l[o].textContent,r),i=100;let h=3;for(;h<p.length&&(p[h].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,h),1)!==-1);h++);for(;h<p.length;h++){let a=p.substring(0,h),n=c.split(a),d=-1;if(n.length===2)d=n[0].length;else if(n.length>2&&n[0]===""&&l[o-1].textContent!=="")d=c.indexOf(a,1);else if(n.length===1){if(a=a.substring(0,a.length-1),n=c.split(a),n.length<=1)return s.push(e),s;h=i+1}else h===p.length-1&&(d=c.indexOf(a));if(n.length>=2&&h>i){const u=l[o-1].textContent;if(u&&typeof u=="string"){const g=je(u).length;d=c.indexOf(a,g)}d===-1&&(d=n[0].length)}if(d!==-1){let u=Math.floor(d/m);for(;u>0&&u<e.length;){if(f+=1,f>50*l.length)return s.push(e),s;const g=je(e.substring(0,u),r);if(g.length===d){s.push(e.substring(0,u)),e=e.substring(u),c=c.substring(d);break}else g.length<d?u+=Math.max(1,Math.floor((d-g.length)/m)):u-=Math.max(1,Math.floor((g.length-d)*m))}break}}}}return s.push(e),s}function Dn(e,t){return Ln(e,t).join("/* rr_split */")}const Tn="lightgrey";let Fn=1;const Un=new RegExp("[^a-z0-9-_:]"),Ue=-2;function Ci(){return Fn++}function $n(e){if(e instanceof HTMLFormElement)return"form";const t=Ce(e.tagName);return Un.test(t)?"div":t}let Ee,Kr;const Bn=/^[^ \t\n\r\u000c]+/,zn=/^[, \t\n\r\u000c]+/;function Wn(e,t){if(t.trim()==="")return t;let r=0;function l(f){let c;const m=f.exec(t.substring(r));return m?(c=m[0],r+=c.length,c):""}const s=[];for(;l(zn),!(r>=t.length);){let f=l(Bn);if(f.slice(-1)===",")f=ke(e,f.substring(0,f.length-1)),s.push(f);else{let c="";f=ke(e,f);let m=!1;for(;;){const o=t.charAt(r);if(o===""){s.push((f+c).trim());break}else if(m)o===")"&&(m=!1);else if(o===","){r+=1,s.push((f+c).trim());break}else o==="("&&(m=!0);c+=o,r+=1}}}return s.join(", ")}const Zr=new WeakMap;function ke(e,t){return!t||t.trim()===""?t:kr(e,t)}function qn(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function kr(e,t){let r=Zr.get(e);if(r||(r=e.createElement("a"),Zr.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function xi(e,t,r,l){return l&&(r==="src"||r==="href"&&!(t==="use"&&l[0]==="#")||r==="xlink:href"&&l[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?ke(e,l):r==="srcset"?Wn(e,l):r==="style"?it(l,kr(e)):t==="object"&&r==="data"?ke(e,l):l)}function Ri(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function jn(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let l=e.classList.length;l--;){const s=e.classList[l];if(t.test(s))return!0}if(r)return e.matches(r)}catch{}return!1}function nt(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?nt(K.parentNode(e),t,r):!1;for(let l=e.classList.length;l--;){const s=e.classList[l];if(t.test(s))return!0}return r?nt(K.parentNode(e),t,r):!1}function Oi(e,t,r,l){let s;if(wi(e)){if(s=e,!K.childNodes(s).length)return!1}else{if(K.parentElement(e)===null)return!1;s=K.parentElement(e)}try{if(typeof t=="string"){if(l){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(nt(s,t,l))return!0;if(r){if(l){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function Hn(e,t,r){const l=e.contentWindow;if(!l)return;let s=!1,f;try{f=l.document.readyState}catch{return}if(f!=="complete"){const m=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(m),s=!0,t()});return}const c="about:blank";if(l.location.href!==c||e.src===c||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Gn(e,t,r){let l=!1,s;try{s=e.sheet}catch{return}if(s)return;const f=setTimeout(()=>{l||(t(),l=!0)},r);e.addEventListener("load",()=>{clearTimeout(f),l=!0,t()})}function Vn(e,t){const{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:c,inlineStylesheet:m,maskInputOptions:o={},maskTextFn:p,maskInputFn:i,dataURLOptions:h={},inlineImages:a,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:u=!1,cssCaptured:g=!1,applyBackgroundColorToBlockedElements:v=!1}=t,b=Jn(r,l);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:e.compatMode}:{type:Y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:b};case e.ELEMENT_NODE:return Qn(e,{doc:r,blockClass:s,blockSelector:f,inlineStylesheet:m,maskInputOptions:o,maskInputFn:i,dataURLOptions:h,inlineImages:a,recordCanvas:n,keepIframeSrcFn:d,newlyAddedElement:u,rootId:b,applyBackgroundColorToBlockedElements:v});case e.TEXT_NODE:return Yn(e,{doc:r,needsMask:c,maskTextFn:p,rootId:b,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:b};case e.COMMENT_NODE:return{type:Y.Comment,textContent:K.textContent(e)||"",rootId:b};default:return!1}}function Jn(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Yn(e,t){const{needsMask:r,maskTextFn:l,rootId:s,cssCaptured:f}=t,c=K.parentNode(e),m=c&&c.tagName;let o="";const p=m==="STYLE"?!0:void 0,i=m==="SCRIPT"?!0:void 0;return i?o="SCRIPT_PLACEHOLDER":f||(o=K.textContent(e),p&&o&&(o=it(o,kr(t.doc)))),!p&&!i&&o&&r&&(o=l?l(o,K.parentElement(e)):o.replace(/[\S]/g,"*")),{type:Y.Text,textContent:o||"",rootId:s}}function Qn(e,t){const{doc:r,blockClass:l,blockSelector:s,inlineStylesheet:f,maskInputOptions:c={},maskInputFn:m,dataURLOptions:o={},inlineImages:p,recordCanvas:i,keepIframeSrcFn:h,newlyAddedElement:a=!1,rootId:n,applyBackgroundColorToBlockedElements:d=!1}=t,u=jn(e,l,s),g=$n(e);let v={};const b=e.attributes.length;for(let y=0;y<b;y++){const w=e.attributes[y];Ri(g,w.name,w.value)||(v[w.name]=xi(r,g,Ce(w.name),w.value))}if(g==="link"&&f){const y=Array.from(r.styleSheets).find(C=>C.href===e.href);let w=null;y&&(w=Or(y)),w&&(delete v.rel,delete v.href,v._cssText=w)}if(g==="style"&&e.sheet){let y=Or(e.sheet);y&&(e.childNodes.length>1&&(y=Dn(y,e)),v._cssText=y)}if(g==="input"||g==="textarea"||g==="select"){const y=e.value,w=e.checked;v.type!=="radio"&&v.type!=="checkbox"&&v.type!=="submit"&&v.type!=="button"&&y?v.value=rt({element:e,type:st(e),tagName:g,value:y,maskInputOptions:c,maskInputFn:m}):w&&(v.checked=w)}if(g==="option"&&(e.selected&&!c.select?v.selected=!0:delete v.selected),g==="dialog"&&e.open&&(v.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),g==="canvas"&&i){if(e.__context==="2d")In(e)||(v.rr_dataURL=e.toDataURL(o.type,o.quality));else if(!("__context"in e)){const y=e.toDataURL(o.type,o.quality),w=r.createElement("canvas");w.width=e.width,w.height=e.height;const C=w.toDataURL(o.type,o.quality);y!==C&&(v.rr_dataURL=y)}}if(g==="img"&&p){Ee||(Ee=r.createElement("canvas"),Kr=Ee.getContext("2d"));const y=e,w=y.currentSrc||y.getAttribute("src")||"<unknown-src>",C=y.crossOrigin,x=()=>{y.removeEventListener("load",x);try{Ee.width=y.naturalWidth,Ee.height=y.naturalHeight,Kr.drawImage(y,0,0),v.rr_dataURL=Ee.toDataURL(o.type,o.quality)}catch(E){if(y.crossOrigin!=="anonymous"){y.crossOrigin="anonymous",y.complete&&y.naturalWidth!==0?x():y.addEventListener("load",x);return}else console.warn(`Cannot inline img src=${w}! Error: ${E}`)}y.crossOrigin==="anonymous"&&(C?v.crossOrigin=C:y.removeAttribute("crossorigin"))};y.complete&&y.naturalWidth!==0?x():y.addEventListener("load",x)}if(g==="audio"||g==="video"){const y=v;y.rr_mediaState=e.paused?"paused":"played",y.rr_mediaCurrentTime=e.currentTime,y.rr_mediaPlaybackRate=e.playbackRate,y.rr_mediaMuted=e.muted,y.rr_mediaLoop=e.loop,y.rr_mediaVolume=e.volume}if(a||(e.scrollLeft&&(v.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(v.rr_scrollTop=e.scrollTop)),u){const{width:y,height:w}=e.getBoundingClientRect();v={class:v.class,rr_width:`${y}px`,rr_height:`${w}px`,...d?{rr_background_color:Tn}:{}}}g==="iframe"&&!h(v.src)&&(e.contentDocument||(v.rr_src=v.src),delete v.src);let S;try{customElements.get(g)&&(S=!0)}catch{}return{type:Y.Element,tagName:g,attributes:v,childNodes:[],isSVG:qn(e)||void 0,needBlock:u,rootId:n,isCustom:S}}function q(e){return e==null?"":e.toLowerCase()}function Xn(e,t){if(t.comment&&e.type===Y.Comment)return!0;if(e.type===Y.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&vi(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(q(e.attributes.name).match(/^msapplication-tile(image|color)$/)||q(e.attributes.name)==="application-name"||q(e.attributes.rel)==="icon"||q(e.attributes.rel)==="apple-touch-icon"||q(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&q(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(q(e.attributes.property).match(/^(og|twitter|fb):/)||q(e.attributes.name).match(/^(og|twitter):/)||q(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(q(e.attributes.name)==="robots"||q(e.attributes.name)==="googlebot"||q(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(q(e.attributes.name)==="author"||q(e.attributes.name)==="generator"||q(e.attributes.name)==="framework"||q(e.attributes.name)==="publisher"||q(e.attributes.name)==="progid"||q(e.attributes.property).match(/^article:/)||q(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(q(e.attributes.name)==="google-site-verification"||q(e.attributes.name)==="yandex-verification"||q(e.attributes.name)==="csrf-token"||q(e.attributes.name)==="p:domain_verify"||q(e.attributes.name)==="verify-v1"||q(e.attributes.name)==="verification"||q(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ne(e,t){const{doc:r,mirror:l,blockClass:s,blockSelector:f,maskTextClass:c,maskTextSelector:m,skipChild:o=!1,inlineStylesheet:p=!0,maskInputOptions:i={},maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:d={},inlineImages:u=!1,recordCanvas:g=!1,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S=5e3,onStylesheetLoad:y,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:x=!1,cssCaptured:E=!1,applyBackgroundColorToBlockedElements:A=!1}=t;let{needsMask:O}=t,{preserveWhiteSpace:U=!0}=t;O||(O=Oi(e,c,m,O===void 0));const k=Vn(e,{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:O,inlineStylesheet:p,maskInputOptions:i,maskTextFn:h,maskInputFn:a,dataURLOptions:d,inlineImages:u,recordCanvas:g,keepIframeSrcFn:C,newlyAddedElement:x,cssCaptured:E,applyBackgroundColorToBlockedElements:A});if(!k)return console.warn(e,"not serialized"),null;let R;l.hasNode(e)?R=l.getId(e):Xn(k,n)||!U&&k.type===Y.Text&&!k.textContent.replace(/^\s+|\s+$/gm,"").length?R=Ue:R=Ci();const _=Object.assign(k,{id:R});if(l.add(e,_),R===Ue)return null;v&&v(e);let se=!o;if(_.type===Y.Element){se=se&&!_.needBlock,delete _.needBlock;const P=K.shadowRoot(e);P&&Te(P)&&(_.isShadowHost=!0)}if((_.type===Y.Document||_.type===Y.Element)&&se){n.headWhitespace&&_.type===Y.Element&&_.tagName==="head"&&(U=!1);const P={doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:O,maskTextClass:c,maskTextSelector:m,skipChild:o,inlineStylesheet:p,maskInputOptions:i,maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:d,inlineImages:u,recordCanvas:g,preserveWhiteSpace:U,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:w,keepIframeSrcFn:C,cssCaptured:!1,applyBackgroundColorToBlockedElements:A};if(!(_.type===Y.Element&&_.tagName==="textarea"&&_.attributes.value!==void 0)){_.type===Y.Element&&_.attributes._cssText!==void 0&&typeof _.attributes._cssText=="string"&&(P.cssCaptured=!0);for(const ie of Array.from(K.childNodes(e))){const $=Ne(ie,P);$&&_.childNodes.push($)}}let W=null;if(wi(e)&&(W=K.shadowRoot(e)))for(const ie of Array.from(K.childNodes(W))){const $=Ne(ie,P);$&&(Te(W)&&($.isShadow=!0),_.childNodes.push($))}}const Z=K.parentNode(e);return Z&&De(Z)&&Te(Z)&&(_.isShadow=!0),_.type===Y.Element&&_.tagName==="iframe"&&Hn(e,()=>{const P=e.contentDocument;if(P&&b){const W=Ne(P,{doc:P,mirror:l,blockClass:s,blockSelector:f,needsMask:O,maskTextClass:c,maskTextSelector:m,skipChild:!1,inlineStylesheet:p,maskInputOptions:i,maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:d,inlineImages:u,recordCanvas:g,preserveWhiteSpace:U,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:w,keepIframeSrcFn:C});W&&b(e,W)}},S),_.type===Y.Element&&_.tagName==="link"&&typeof _.attributes.rel=="string"&&(_.attributes.rel==="stylesheet"||_.attributes.rel==="preload"&&typeof _.attributes.href=="string"&&vi(_.attributes.href)==="css")&&Gn(e,()=>{if(y){const P=Ne(e,{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:O,maskTextClass:c,maskTextSelector:m,skipChild:!1,inlineStylesheet:p,maskInputOptions:i,maskTextFn:h,maskInputFn:a,slimDOMOptions:n,dataURLOptions:d,inlineImages:u,recordCanvas:g,preserveWhiteSpace:U,onSerialize:v,onIframeLoad:b,iframeLoadTimeout:S,onStylesheetLoad:y,stylesheetLoadTimeout:w,keepIframeSrcFn:C});P&&y(e,P)}},w),_}function Kn(e,t){const{mirror:r=new Si,blockClass:l="rr-block",blockSelector:s=null,maskTextClass:f="rr-mask",maskTextSelector:c=null,inlineStylesheet:m=!0,inlineImages:o=!1,recordCanvas:p=!1,maskAllInputs:i=!1,maskTextFn:h,maskInputFn:a,slimDOM:n=!1,dataURLOptions:d,preserveWhiteSpace:u,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w=()=>!1,applyBackgroundColorToBlockedElements:C=!1}=t||{};return Ne(e,{doc:e,mirror:r,blockClass:l,blockSelector:s,maskTextClass:f,maskTextSelector:c,skipChild:!1,inlineStylesheet:m,maskInputOptions:i===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:i===!1?{password:!0}:i,maskTextFn:h,maskInputFn:a,slimDOMOptions:n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:n==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:n===!1?{}:n,dataURLOptions:d,inlineImages:o,recordCanvas:p,preserveWhiteSpace:u,onSerialize:g,onIframeLoad:v,iframeLoadTimeout:b,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:C})}function Zn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var He={exports:{}},es;function to(){if(es)return He.exports;es=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return He.exports=t(),He.exports.createColors=t,He.exports}const ro={},so=Object.freeze(Object.defineProperty({__proto__:null,default:ro},Symbol.toStringTag,{value:"Module"})),he=eo(so);var xt,ts;function Nr(){if(ts)return xt;ts=1;let e=to(),t=he;class r extends Error{constructor(s,f,c,m,o,p){super(s),this.name="CssSyntaxError",this.reason=s,o&&(this.file=o),m&&(this.source=m),p&&(this.plugin=p),typeof f<"u"&&typeof c<"u"&&(typeof f=="number"?(this.line=f,this.column=c):(this.line=f.line,this.column=f.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),t&&s&&(f=t(f));let c=f.split(/\r?\n/),m=Math.max(this.line-3,0),o=Math.min(this.line+2,c.length),p=String(o).length,i,h;if(s){let{bold:a,gray:n,red:d}=e.createColors(!0);i=u=>a(d(u)),h=u=>n(u)}else i=h=a=>a;return c.slice(m,o).map((a,n)=>{let d=m+1+n,u=" "+(" "+d).slice(-p)+" | ";if(d===this.line){let g=h(u.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(u)+a+`
|
|
2
|
+
`+g+i("^")}return" "+h(u)+a}).join(`
|
|
3
|
+
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
4
|
+
|
|
5
|
+
`+s+`
|
|
6
|
+
`),this.name+": "+this.message+s}}return xt=r,r.default=r,xt}var Ge={},rs;function Pr(){return rs||(rs=1,Ge.isClean=Symbol("isClean"),Ge.my=Symbol("my")),Ge}var Rt,ss;function Mi(){if(ss)return Rt;ss=1;const e={after:`
|
|
7
|
+
`,beforeClose:`
|
|
8
|
+
`,beforeComment:`
|
|
9
|
+
`,beforeDecl:`
|
|
10
|
+
`,beforeOpen:" ",beforeRule:`
|
|
11
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,f){let c="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?c+=s.raws.afterName:m&&(c+=" "),s.nodes)this.block(s,c+m);else{let o=(s.raws.between||"")+(f?";":"");this.builder(c+m+o,s)}}beforeAfter(s,f){let c;s.type==="decl"?c=this.raw(s,null,"beforeDecl"):s.type==="comment"?c=this.raw(s,null,"beforeComment"):f==="before"?c=this.raw(s,null,"beforeRule"):c=this.raw(s,null,"beforeClose");let m=s.parent,o=0;for(;m&&m.type!=="root";)o+=1,m=m.parent;if(c.includes(`
|
|
12
|
+
`)){let p=this.raw(s,null,"indent");if(p.length)for(let i=0;i<o;i++)c+=p}return c}block(s,f){let c=this.raw(s,"between","beforeOpen");this.builder(f+c+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let c=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let o=s.nodes[m],p=this.raw(o,"before");p&&this.builder(p),this.stringify(o,f!==m||c)}}comment(s){let f=this.raw(s,"left","commentLeft"),c=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+c+"*/",s)}decl(s,f){let c=this.raw(s,"between","colon"),m=s.prop+c+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,c){let m;if(c||(c=f),f&&(m=s.raws[f],typeof m<"u"))return m;let o=s.parent;if(c==="before"&&(!o||o.type==="root"&&o.first===s||o&&o.type==="document"))return"";if(!o)return e[c];let p=s.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[c]<"u")return p.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(s,c);{let i="raw"+t(c);this[i]?m=this[i](p,s):p.walk(h=>{if(m=h.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[c]),p.rawCache[c]=m,m}rawBeforeClose(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return f=c.raws.after,f.includes(`
|
|
13
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let c;return s.walkComments(m=>{if(typeof m.raws.before<"u")return c=m.raws.before,c.includes(`
|
|
14
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(f,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(s,f){let c;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return c=m.raws.before,c.includes(`
|
|
15
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(f,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(s){let f;return s.walk(c=>{if(c.type!=="decl"&&(f=c.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(c=>{if(c.nodes&&(c.parent!==s||s.first!==c)&&typeof c.raws.before<"u")return f=c.raws.before,f.includes(`
|
|
16
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(c=>{if(typeof c.raws.between<"u")return f=c.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length===0&&(f=c.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(c=>{let m=c.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof c.raws.before<"u"){let o=c.raws.before.split(`
|
|
17
|
+
`);return f=o[o.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(f=c.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let c=s[f],m=s.raws[f];return m&&m.value===c?m.raw:c}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Rt=r,r.default=r,Rt}var Ot,is;function ut(){if(is)return Ot;is=1;let e=Mi();function t(r,l){new e(l).stringify(r)}return Ot=t,t.default=t,Ot}var Mt,ns;function ct(){if(ns)return Mt;ns=1;let{isClean:e,my:t}=Pr(),r=Nr(),l=Mi(),s=ut();function f(m,o){let p=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let h=m[i],a=typeof h;i==="parent"&&a==="object"?o&&(p[i]=o):i==="source"?p[i]=h:Array.isArray(h)?p[i]=h.map(n=>f(n,p)):(a==="object"&&h!==null&&(h=f(h)),p[i]=h)}return p}class c{constructor(o={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in o)if(p==="nodes"){this.nodes=[];for(let i of o[p])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[p]=o[p]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let p=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let p in o)this[p]=o[p];return this}before(o){return this.parent.insertBefore(this,o),this}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}clone(o={}){let p=f(this);for(let i in o)p[i]=o[i];return p}cloneAfter(o={}){let p=this.clone(o);return this.parent.insertAfter(this,p),p}cloneBefore(o={}){let p=this.clone(o);return this.parent.insertBefore(this,p),p}error(o,p={}){if(this.source){let{end:i,start:h}=this.rangeBy(p);return this.source.input.error(o,{column:h.column,line:h.line},{column:i.column,line:i.line},p)}return new r(o)}getProxyProcessor(){return{get(o,p){return p==="proxyOf"?o:p==="root"?()=>o.root().toProxy():o[p]},set(o,p,i){return o[p]===i||(o[p]=i,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&o.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let o=this;for(;o=o.parent;)o[e]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o,p){let i=this.source.start;if(o.index)i=this.positionInside(o.index,p);else if(o.word){p=this.toString();let h=p.indexOf(o.word);h!==-1&&(i=this.positionInside(h,p))}return i}positionInside(o,p){let i=p||this.toString(),h=this.source.start.column,a=this.source.start.line;for(let n=0;n<o;n++)i[n]===`
|
|
18
|
+
`?(h=1,a+=1):h+=1;return{column:h,line:a}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o){let p={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(o.word){let h=this.toString(),a=h.indexOf(o.word);a!==-1&&(p=this.positionInside(a,h),i=this.positionInside(a+o.word.length,h))}else o.start?p={column:o.start.column,line:o.start.line}:o.index&&(p=this.positionInside(o.index)),o.end?i={column:o.end.column,line:o.end.line}:typeof o.endIndex=="number"?i=this.positionInside(o.endIndex):o.index&&(i=this.positionInside(o.index+1));return(i.line<p.line||i.line===p.line&&i.column<=p.column)&&(i={column:p.column+1,line:p.line}),{end:i,start:p}}raw(o,p){return new l().raw(this,o,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let p=this,i=!1;for(let h of o)h===this?i=!0:i?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);i||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,p){let i={},h=p==null;p=p||new Map;let a=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let d=this[n];if(Array.isArray(d))i[n]=d.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,p):u);else if(typeof d=="object"&&d.toJSON)i[n]=d.toJSON(null,p);else if(n==="source"){let u=p.get(d.input);u==null&&(u=a,p.set(d.input,a),a++),i[n]={end:d.end,inputId:u,start:d.start}}else i[n]=d}return h&&(i.inputs=[...p.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=s){o.stringify&&(o=o.stringify);let p="";return o(this,i=>{p+=i}),p}warn(o,p,i){let h={node:this};for(let a in i)h[a]=i[a];return o.warn(p,h)}get proxyOf(){return this}}return Mt=c,c.default=c,Mt}var Et,os;function ht(){if(os)return Et;os=1;let e=ct();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Et=t,t.default=t,Et}var It,as;function io(){if(as)return It;as=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return It={nanoid:(l=21)=>{let s="",f=l;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(f=s)=>{let c="",m=f;for(;m--;)c+=l[Math.random()*l.length|0];return c}},It}var At,ls;function Ei(){if(ls)return At;ls=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{existsSync:r,readFileSync:l}=he,{dirname:s,join:f}=he;function c(o){return Buffer?Buffer.from(o,"base64").toString():window.atob(o)}class m{constructor(p,i){if(i.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,a=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(a.test(p)||n.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(i.test(p)||h.test(p))return c(p.substr(RegExp.lastMatch.length));let d=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let i=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=p.lastIndexOf(i.pop()),a=p.indexOf("*/",h);h>-1&&a>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,a)))}loadFile(p){if(this.root=s(p),r(p))return this.mapFile=p,l(p,"utf-8").toString().trim()}loadMap(p,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(p);if(h){let a=this.loadFile(h);if(!a)throw new Error("Unable to load previous source map: "+h.toString());return a}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=f(s(p),h)),this.loadFile(h)}}}startWith(p,i){return p?p.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return At=m,m.default=m,At}var kt,us;function ft(){if(us)return kt;us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{fileURLToPath:r,pathToFileURL:l}=he,{isAbsolute:s,resolve:f}=he,{nanoid:c}=io(),m=he,o=Nr(),p=Ei(),i=Symbol("fromOffsetCache"),h=!!(e&&t),a=!!(f&&s);class n{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!a||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=f(g.from)),a&&h){let v=new p(this.css,g);if(v.text){this.map=v;let b=v.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,v,b={}){let S,y,w;if(g&&typeof g=="object"){let x=g,E=v;if(typeof x.offset=="number"){let A=this.fromOffset(x.offset);g=A.line,v=A.col}else g=x.line,v=x.column;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);y=A.line,w=A.col}else y=E.line,w=E.column}else if(!v){let x=this.fromOffset(g);g=x.line,v=x.col}let C=this.origin(g,v,y,w);return C?S=new o(u,C.endLine===void 0?C.line:{column:C.column,line:C.line},C.endLine===void 0?C.column:{column:C.endColumn,line:C.endLine},C.source,C.file,b.plugin):S=new o(u,y===void 0?g:{column:v,line:g},y===void 0?v:{column:w,line:y},this.css,this.file,b.plugin),S.input={column:v,endColumn:w,endLine:y,line:g,source:this.css},this.file&&(l&&(S.input.url=l(this.file).toString()),S.input.file=this.file),S}fromOffset(u){let g,v;if(this[i])v=this[i];else{let S=this.css.split(`
|
|
19
|
+
`);v=new Array(S.length);let y=0;for(let w=0,C=S.length;w<C;w++)v[w]=y,y+=S[w].length+1;this[i]=v}g=v[v.length-1];let b=0;if(u>=g)b=v.length-1;else{let S=v.length-2,y;for(;b<S;)if(y=b+(S-b>>1),u<v[y])S=y-1;else if(u>=v[y+1])b=y+1;else{b=y;break}}return{col:u-v[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:f(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,v,b){if(!this.map)return!1;let S=this.map.consumer(),y=S.originalPositionFor({column:g,line:u});if(!y.source)return!1;let w;typeof v=="number"&&(w=S.originalPositionFor({column:b,line:v}));let C;s(y.source)?C=l(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let x={column:y.column,endColumn:w&&w.column,endLine:w&&w.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(r)x.file=r(C);else throw new Error("file: protocol is not available in this PostCSS build");let E=S.sourceContentFor(y.source);return E&&(x.source=E),x}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return kt=n,n.default=n,m&&m.registerInput&&m.registerInput(n),kt}var Nt,cs;function Ii(){if(cs)return Nt;cs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{dirname:r,relative:l,resolve:s,sep:f}=he,{pathToFileURL:c}=he,m=ft(),o=!!(e&&t),p=!!(r&&s&&l&&f);class i{constructor(a,n,d,u){this.stringify=a,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let n=`
|
|
20
|
+
`;this.css.includes(`\r
|
|
21
|
+
`)&&(n=`\r
|
|
22
|
+
`),this.css+=n+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let n=this.toUrl(this.path(a.file)),d=a.root||r(a.file),u;this.mapOpts.sourcesContent===!1?(u=new e(a.text),u.sourcesContent&&(u.sourcesContent=null)):u=a.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let n=this.root.nodes.length-1;n>=0;n--)a=this.root.nodes[n],a.type==="comment"&&a.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&o&&this.isMap())return this.generateMap();{let a="";return this.stringify(this.root,n=>{a+=n}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=t.fromSourceMap(a,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let a=1,n=1,d="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(b,S,y)=>{if(this.css+=b,S&&y!=="end"&&(u.generated.line=a,u.generated.column=n-1,S.source&&S.source.start?(u.source=this.sourcePath(S),u.original.line=S.source.start.line,u.original.column=S.source.start.column-1,this.map.addMapping(u)):(u.source=d,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(a+=g.length,v=b.lastIndexOf(`
|
|
23
|
+
`),n=b.length-v):n+=b.length,S&&y!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(u.source=this.sourcePath(S),u.original.line=S.source.end.line,u.original.column=S.source.end.column-1,u.generated.line=a,u.generated.column=n-2,this.map.addMapping(u)):(u.source=d,u.original.line=1,u.original.column=0,u.generated.line=a,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a<"u"&&a!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let n=this.memoizedPaths.get(a);if(n)return n;let d=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=r(s(d,this.mapOpts.annotation)));let u=l(d,a);return this.memoizedPaths.set(a,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let n=a.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let a=new m(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!a[d]){a[d]=!0;let u=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let n=this.memoizedFileURLs.get(a);if(n)return n;if(c){let d=c(a).toString();return this.memoizedFileURLs.set(a,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let n=this.memoizedURLs.get(a);if(n)return n;f==="\\"&&(a=a.replace(/\\/g,"/"));let d=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,d),d}}return Nt=i,Nt}var Pt,hs;function pt(){if(hs)return Pt;hs=1;let e=ct();class t extends e{constructor(l){super(l),this.type="comment"}}return Pt=t,t.default=t,Pt}var _t,fs;function xe(){if(fs)return _t;fs=1;let{isClean:e,my:t}=Pr(),r=ht(),l=pt(),s=ct(),f,c,m,o;function p(a){return a.map(n=>(n.nodes&&(n.nodes=p(n.nodes)),delete n.source,n))}function i(a){if(a[e]=!1,a.proxyOf.nodes)for(let n of a.proxyOf.nodes)i(n)}class h extends s{append(...n){for(let d of n){let u=this.normalize(d,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),u,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(u=this.indexes[d],g=n(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...u)=>n[d](...u.map(g=>typeof g=="function"?(v,b)=>g(v.toProxy(),b):g)):d==="every"||d==="some"?u=>n[d]((g,...v)=>u(g.toProxy(),...v)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(u=>u.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,u){return n[d]===u||(n[d]=u,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let u=this.index(n),g=this.normalize(d,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],u<v&&(this.indexes[b]=v+g.length);return this.markDirty(),this}insertBefore(n,d){let u=this.index(n),g=u===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[u],g).reverse();u=this.index(n);for(let S of v)this.proxyOf.nodes.splice(u,0,S);let b;for(let S in this.indexes)b=this.indexes[S],u<=b&&(this.indexes[S]=b+v.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=p(f(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new c(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let d of n){let u=this.normalize(d,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let u in this.indexes)d=this.indexes[u],d>=n&&(this.indexes[u]=d-1);return this.markDirty(),this}replaceValues(n,d,u){return u||(u=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,u)=>{let g;try{g=n(d,u)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(n)),g})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&n.test(u.name))return d(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===n)return d(u,g)}):(d=n,this.walk((u,g)=>{if(u.type==="atrule")return d(u,g)}))}walkComments(n){return this.walk((d,u)=>{if(d.type==="comment")return n(d,u)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&n.test(u.prop))return d(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===n)return d(u,g)}):(d=n,this.walk((u,g)=>{if(u.type==="decl")return d(u,g)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&n.test(u.selector))return d(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===n)return d(u,g)}):(d=n,this.walk((u,g)=>{if(u.type==="rule")return d(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=a=>{f=a},h.registerRule=a=>{c=a},h.registerAtRule=a=>{m=a},h.registerRoot=a=>{o=a},_t=h,h.default=h,h.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,m.prototype):a.type==="rule"?Object.setPrototypeOf(a,c.prototype):a.type==="decl"?Object.setPrototypeOf(a,r.prototype):a.type==="comment"?Object.setPrototypeOf(a,l.prototype):a.type==="root"&&Object.setPrototypeOf(a,o.prototype),a[t]=!0,a.nodes&&a.nodes.forEach(n=>{h.rebuild(n)})},_t}var Lt,ps;function _r(){if(ps)return Lt;ps=1;let e=xe(),t,r;class l extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},Lt=l,l.default=l,Lt}var Dt,ds;function Ai(){if(ds)return Dt;ds=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Dt=e,e.default=e,Dt}var Tt,ms;function Lr(){if(ms)return Tt;ms=1;let e=Ai();class t{constructor(l,s,f){this.processor=l,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(l,s);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return Tt=t,t.default=t,Tt}var Ft,gs;function no(){if(gs)return Ft;gs=1;const e=39,t=34,r=92,l=47,s=10,f=32,c=12,m=9,o=13,p=91,i=93,h=40,a=41,n=123,d=125,u=59,g=42,v=58,b=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return Ft=function(E,A={}){let O=E.css.valueOf(),U=A.ignoreErrors,k,R,_,se,Z,P,W,ie,$,B,de=O.length,M=0,ne=[],oe=[];function Me(){return M}function me(Q){throw E.error("Unclosed "+Q,M)}function le(){return oe.length===0&&M>=de}function ue(Q){if(oe.length)return oe.pop();if(M>=de)return;let N=Q?Q.ignoreUnclosed:!1;switch(k=O.charCodeAt(M),k){case s:case f:case m:case o:case c:{R=M;do R+=1,k=O.charCodeAt(R);while(k===f||k===s||k===m||k===o||k===c);B=["space",O.slice(M,R)],M=R-1;break}case p:case i:case n:case d:case v:case u:case a:{let X=String.fromCharCode(k);B=[X,X,M];break}case h:{if(ie=ne.length?ne.pop()[1]:"",$=O.charCodeAt(M+1),ie==="url"&&$!==e&&$!==t&&$!==f&&$!==s&&$!==m&&$!==c&&$!==o){R=M;do{if(P=!1,R=O.indexOf(")",R+1),R===-1)if(U||N){R=M;break}else me("bracket");for(W=R;O.charCodeAt(W-1)===r;)W-=1,P=!P}while(P);B=["brackets",O.slice(M,R+1),M,R],M=R}else R=O.indexOf(")",M+1),se=O.slice(M,R+1),R===-1||w.test(se)?B=["(","(",M]:(B=["brackets",se,M,R],M=R);break}case e:case t:{_=k===e?"'":'"',R=M;do{if(P=!1,R=O.indexOf(_,R+1),R===-1)if(U||N){R=M+1;break}else me("string");for(W=R;O.charCodeAt(W-1)===r;)W-=1,P=!P}while(P);B=["string",O.slice(M,R+1),M,R],M=R;break}case b:{S.lastIndex=M+1,S.test(O),S.lastIndex===0?R=O.length-1:R=S.lastIndex-2,B=["at-word",O.slice(M,R+1),M,R],M=R;break}case r:{for(R=M,Z=!0;O.charCodeAt(R+1)===r;)R+=1,Z=!Z;if(k=O.charCodeAt(R+1),Z&&k!==l&&k!==f&&k!==s&&k!==m&&k!==o&&k!==c&&(R+=1,C.test(O.charAt(R)))){for(;C.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===f&&(R+=1)}B=["word",O.slice(M,R+1),M,R],M=R;break}default:{k===l&&O.charCodeAt(M+1)===g?(R=O.indexOf("*/",M+2)+1,R===0&&(U||N?R=O.length:me("comment")),B=["comment",O.slice(M,R+1),M,R],M=R):(y.lastIndex=M+1,y.test(O),y.lastIndex===0?R=O.length-1:R=y.lastIndex-2,B=["word",O.slice(M,R+1),M,R],ne.push(B),M=R);break}}return M++,B}function Se(Q){oe.push(Q)}return{back:Se,endOfFile:le,nextToken:ue,position:Me}},Ft}var Ut,ys;function Dr(){if(ys)return Ut;ys=1;let e=xe();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return Ut=t,t.default=t,e.registerAtRule(t),Ut}var $t,ws;function Be(){if(ws)return $t;ws=1;let e=xe(),t,r;class l extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,c,m){let o=super.normalize(f);if(c){if(m==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let p of o)p.raws.before=c.raws.before}return o}removeChild(f,c){let m=this.index(f);return!c&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},$t=l,l.default=l,e.registerRoot(l),$t}var Bt,bs;function ki(){if(bs)return Bt;bs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
24
|
+
`," "];return e.split(t,r)},split(t,r,l){let s=[],f="",c=!1,m=0,o=!1,p="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:o?h===p&&(o=!1):h==='"'||h==="'"?(o=!0,p=h):h==="("?m+=1:h===")"?m>0&&(m-=1):m===0&&r.includes(h)&&(c=!0),c?(f!==""&&s.push(f.trim()),f="",c=!1):f+=h;return(l||f!=="")&&s.push(f.trim()),s}};return Bt=e,e.default=e,Bt}var zt,Ss;function Tr(){if(Ss)return zt;Ss=1;let e=xe(),t=ki();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,c=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(c)}}return zt=r,r.default=r,e.registerRule(r),zt}var Wt,vs;function oo(){if(vs)return Wt;vs=1;let e=ht(),t=no(),r=pt(),l=Dr(),s=Be(),f=Tr();const c={empty:!0,space:!0};function m(p){for(let i=p.length-1;i>=0;i--){let h=p[i],a=h[3]||h[2];if(a)return a}}class o{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new l;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let a,n,d,u=!1,g=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),a=i[0],a==="("||a==="["?b.push(a==="("?")":"]"):a==="{"&&b.length>0?b.push("}"):a===b[b.length-1]&&b.pop(),b.length===0)if(a===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){g=!0;break}else if(a==="}"){if(v.length>0){for(d=v.length-1,n=v[d];n&&n[0]==="space";)n=v[--d];n&&(h.source.end=this.getPosition(n[3]||n[2]),h.source.end.offset++)}this.end(i);break}else v.push(i);else v.push(i);if(this.tokenizer.endOfFile()){u=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),u&&(i=v[v.length-1],h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(i){let h=this.colon(i);if(h===!1)return;let a=0,n;for(let d=h-1;d>=0&&(n=i[d],!(n[0]!=="space"&&(a+=1,a===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let h=0,a,n,d;for(let[u,g]of i.entries()){if(a=g,n=a[0],n==="("&&(h+=1),n===")"&&(h-=1),h===0&&n===":")if(!d)this.doubleColon(a);else{if(d[0]==="word"&&d[1]==="progid")continue;return u}d=a}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let a=i[1].slice(2,-2);if(/^\s*$/.test(a))h.text="",h.raws.left=a,h.raws.right="";else{let n=a.match(/^(\s*)([^]*\S)(\s*)$/);h.text=n[2],h.raws.left=n[1],h.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let a=new e;this.init(a,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),a.source.end=this.getPosition(n[3]||n[2]||m(i)),a.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),a.raws.before+=i.shift()[1];for(a.source.start=this.getPosition(i[0][2]),a.prop="";i.length;){let b=i[0][0];if(b===":"||b==="space"||b==="comment")break;a.prop+=i.shift()[1]}a.raws.between="";let d;for(;i.length;)if(d=i.shift(),d[0]===":"){a.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),a.raws.between+=d[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let u=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)u.push(i.shift());this.precheckMissedSemicolon(i);for(let b=i.length-1;b>=0;b--){if(d=i[b],d[1].toLowerCase()==="!important"){a.important=!0;let S=this.stringFrom(i,b);S=this.spacesFromEnd(i)+S,S!==" !important"&&(a.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=i.slice(0),y="";for(let w=b;w>0;w--){let C=S[w][0];if(y.trim().indexOf("!")===0&&C!=="space")break;y=S.pop()[1]+y}y.trim().indexOf("!")===0&&(a.important=!0,a.raws.important=y,i=S)}if(d[0]!=="space"&&d[0]!=="comment")break}i.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(a.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(a,"value",u.concat(i),h),a.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new f;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,a=null,n=!1,d=null,u=[],g=i[1].startsWith("--"),v=[],b=i;for(;b;){if(a=b[0],v.push(b),a==="("||a==="[")d||(d=b),u.push(a==="("?")":"]");else if(g&&n&&a==="{")d||(d=b),u.push("}");else if(u.length===0)if(a===";")if(n){this.decl(v,g);return}else break;else if(a==="{"){this.rule(v);return}else if(a==="}"){this.tokenizer.back(v.pop()),h=!0;break}else a===":"&&(n=!0);else a===u[u.length-1]&&(u.pop(),u.length===0&&(d=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),u.length>0&&this.unclosedBracket(d),h&&n){if(!g)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,a,n){let d,u,g=a.length,v="",b=!0,S,y;for(let w=0;w<g;w+=1)d=a[w],u=d[0],u==="space"&&w===g-1&&!n?b=!1:u==="comment"?(y=a[w-1]?a[w-1][0]:"empty",S=a[w+1]?a[w+1][0]:"empty",!c[y]&&!c[S]?v.slice(-1)===","?b=!1:v+=d[1]:b=!1):v+=d[1];if(!b){let w=a.reduce((C,x)=>C+x[1],"");i.raws[h]={raw:w,value:v}}i[h]=v}rule(i){i.pop();let h=new f;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)a=i.pop()[1]+a;return a}spacesAndCommentsFromStart(i){let h,a="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)a+=i.shift()[1];return a}spacesFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],h==="space");)a=i.pop()[1]+a;return a}stringFrom(i,h){let a="";for(let n=h;n<i.length;n++)a+=i[n][1];return i.splice(h,i.length-h),a}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return Wt=o,Wt}var qt,Cs;function Fr(){if(Cs)return qt;Cs=1;let e=xe(),t=oo(),r=ft();function l(s,f){let c=new r(s,f),m=new t(c);try{m.parse()}catch(o){throw o}return m.root}return qt=l,l.default=l,e.registerParse(l),qt}var jt,xs;function Ni(){if(xs)return jt;xs=1;let{isClean:e,my:t}=Pr(),r=Ii(),l=ut(),s=xe(),f=_r(),c=Lr(),m=Fr(),o=Be();const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},a=0;function n(S){return typeof S=="object"&&typeof S.then=="function"}function d(S){let y=!1,w=p[S.type];return S.type==="decl"?y=S.prop.toLowerCase():S.type==="atrule"&&(y=S.name.toLowerCase()),y&&S.append?[w,w+"-"+y,a,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:S.append?[w,a,w+"Exit"]:[w,w+"Exit"]}function u(S){let y;return S.type==="document"?y=["Document",a,"DocumentExit"]:S.type==="root"?y=["Root",a,"RootExit"]:y=d(S),{eventIndex:0,events:y,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(y=>g(y)),S}let v={};class b{constructor(y,w,C){this.stringified=!1,this.processed=!1;let x;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))x=g(w);else if(w instanceof b||w instanceof c)x=g(w.root),w.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let E=m;C.syntax&&(E=C.syntax.parse),C.parser&&(E=C.parser),E.parse&&(E=E.parse);try{x=E(w,C)}catch(A){this.processed=!0,this.error=A}x&&!x[t]&&s.rebuild(x)}this.result=new c(y,x,C),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(E=>typeof E=="object"&&E.prepare?{...E,...E.prepare(this.result)}:E)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let C=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(x){console&&console.error&&console.error(x)}return y}prepareVisitors(){this.listeners={};let y=(w,C,x)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,x])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!i[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[C])if(typeof w[C]=="object")for(let x in w[C])x==="*"?y(w,C,w[C][x]):y(w,C+"-"+x.toLowerCase(),w[C][x]);else typeof w[C]=="function"&&y(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],C=this.runOnRoot(w);if(n(C))try{await C}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[u(y)];for(;w.length>0;){let C=this.visitTick(w);if(n(C))try{await C}catch(x){let E=w[w.length-1].node;throw this.handleError(x,E)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let x=y.nodes.map(E=>C(E,this.helpers));await Promise.all(x)}else await C(y,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return n(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=l;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let x=new r(w,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(n(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[C,x]of y){this.result.lastPlugin=C;let E;try{E=x(w,this.helpers)}catch(A){throw this.handleError(A,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(n(E))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:C,visitors:x}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(x.length>0&&w.visitorIndex<x.length){let[A,O]=x[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===x.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=A;try{return O(C.toProxy(),this.helpers)}catch(U){throw this.handleError(U,C)}}if(w.iterator!==0){let A=w.iterator,O;for(;O=C.nodes[C.indexes[A]];)if(C.indexes[A]+=1,!O[e]){O[e]=!0,y.push(u(O));return}w.iterator=0,delete C.indexes[A]}let E=w.events;for(;w.eventIndex<E.length;){let A=E[w.eventIndex];if(w.eventIndex+=1,A===a){C.nodes&&C.nodes.length&&(C[e]=!0,w.iterator=C.getIterator());return}else if(this.listeners[A]){w.visitors=this.listeners[A];return}}y.pop()}walkSync(y){y[e]=!0;let w=d(y);for(let C of w)if(C===a)y.nodes&&y.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[C];if(x&&this.visitSync(x,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return b.registerPostcss=S=>{v=S},jt=b,b.default=b,o.registerLazyResult(b),f.registerLazyResult(b),jt}var Ht,Rs;function ao(){if(Rs)return Ht;Rs=1;let e=Ii(),t=ut(),r=Fr();const l=Lr();class s{constructor(c,m,o){m=m.toString(),this.stringified=!1,this._processor=c,this._css=m,this._opts=o,this._map=void 0;let p,i=t;this.result=new l(this._processor,p,this._opts),this.result.css=m;let h=this;Object.defineProperty(this.result,"root",{get(){return h.root}});let a=new e(i,p,this._opts,m);if(a.isMap()){let[n,d]=a.generate();n&&(this.result.css=n),d&&(this.result.map=d)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,m){return this.async().then(c,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,m=r;try{c=m(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return Ht=s,s.default=s,Ht}var Gt,Os;function lo(){if(Os)return Gt;Os=1;let e=ao(),t=Ni(),r=_r(),l=Be();class s{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let m=[];for(let o of c)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))m=m.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)m.push(o);else if(typeof o=="function")m.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return m}process(c,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,c,m):new t(this,c,m)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return Gt=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),Gt}var Vt,Ms;function uo(){if(Ms)return Vt;Ms=1;let e=ht(),t=Ei(),r=pt(),l=Dr(),s=ft(),f=Be(),c=Tr();function m(o,p){if(Array.isArray(o))return o.map(a=>m(a));let{inputs:i,...h}=o;if(i){p=[];for(let a of i){let n={...a,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),p.push(n)}}if(h.nodes&&(h.nodes=o.nodes.map(a=>m(a,p))),h.source){let{inputId:a,...n}=h.source;h.source=n,a!=null&&(h.source.input=p[a])}if(h.type==="root")return new f(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new c(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new l(h);throw new Error("Unknown node type: "+o.type)}return Vt=m,m.default=m,Vt}var Jt,Es;function co(){if(Es)return Jt;Es=1;let e=Nr(),t=ht(),r=Ni(),l=xe(),s=lo(),f=ut(),c=uo(),m=_r(),o=Ai(),p=pt(),i=Dr(),h=Lr(),a=ft(),n=Fr(),d=ki(),u=Tr(),g=Be(),v=ct();function b(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new s(S)}return b.plugin=function(y,w){let C=!1;function x(...A){console&&console.warn&&!C&&(C=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),tt.LANG&&tt.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
26
|
+
https://www.w3ctech.com/topic/2226`));let O=w(...A);return O.postcssPlugin=y,O.postcssVersion=new s().version,O}let E;return Object.defineProperty(x,"postcss",{get(){return E||(E=x()),E}}),x.process=function(A,O,U){return b([x(U)]).process(A,O)},x},b.stringify=f,b.parse=n,b.fromJSON=c,b.list=d,b.comment=S=>new p(S),b.atRule=S=>new i(S),b.decl=S=>new t(S),b.rule=S=>new u(S),b.root=S=>new g(S),b.document=S=>new m(S),b.CssSyntaxError=e,b.Declaration=t,b.Container=l,b.Processor=s,b.Document=m,b.Comment=p,b.Warning=o,b.AtRule=i,b.Result=h,b.Input=a,b.Rule=u,b.Root=g,b.Node=v,r.registerPostcss(b),Jt=b,b.default=b,Jt}var ho=co();const j=Zn(ho);j.stringify;j.fromJSON;j.plugin;j.parse;j.list;j.document;j.comment;j.atRule;j.rule;j.decl;j.root;j.CssSyntaxError;j.Declaration;j.Container;j.Processor;j.Document;j.Comment;j.Warning;j.AtRule;j.Result;j.Input;j.Rule;j.Root;j.Node;var fo=Object.defineProperty,po=(e,t,r)=>t in e?fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ae=(e,t,r)=>po(e,typeof t!="symbol"?t+"":t,r);function mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function go(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var Ve={exports:{}},Is;function yo(){if(Is)return Ve.exports;Is=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Ve.exports=t(),Ve.exports.createColors=t,Ve.exports}const wo={},bo=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"})),fe=go(bo);var Yt,As;function Ur(){if(As)return Yt;As=1;let e=yo(),t=fe;class r extends Error{constructor(s,f,c,m,o,p){super(s),this.name="CssSyntaxError",this.reason=s,o&&(this.file=o),m&&(this.source=m),p&&(this.plugin=p),typeof f<"u"&&typeof c<"u"&&(typeof f=="number"?(this.line=f,this.column=c):(this.line=f.line,this.column=f.column,this.endLine=c.line,this.endColumn=c.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),t&&s&&(f=t(f));let c=f.split(/\r?\n/),m=Math.max(this.line-3,0),o=Math.min(this.line+2,c.length),p=String(o).length,i,h;if(s){let{bold:a,gray:n,red:d}=e.createColors(!0);i=u=>a(d(u)),h=u=>n(u)}else i=h=a=>a;return c.slice(m,o).map((a,n)=>{let d=m+1+n,u=" "+(" "+d).slice(-p)+" | ";if(d===this.line){let g=h(u.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+h(u)+a+`
|
|
27
|
+
`+g+i("^")}return" "+h(u)+a}).join(`
|
|
28
|
+
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
29
|
+
|
|
30
|
+
`+s+`
|
|
31
|
+
`),this.name+": "+this.message+s}}return Yt=r,r.default=r,Yt}var Je={},ks;function $r(){return ks||(ks=1,Je.isClean=Symbol("isClean"),Je.my=Symbol("my")),Je}var Qt,Ns;function Pi(){if(Ns)return Qt;Ns=1;const e={after:`
|
|
32
|
+
`,beforeClose:`
|
|
33
|
+
`,beforeComment:`
|
|
34
|
+
`,beforeDecl:`
|
|
35
|
+
`,beforeOpen:" ",beforeRule:`
|
|
36
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,f){let c="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?c+=s.raws.afterName:m&&(c+=" "),s.nodes)this.block(s,c+m);else{let o=(s.raws.between||"")+(f?";":"");this.builder(c+m+o,s)}}beforeAfter(s,f){let c;s.type==="decl"?c=this.raw(s,null,"beforeDecl"):s.type==="comment"?c=this.raw(s,null,"beforeComment"):f==="before"?c=this.raw(s,null,"beforeRule"):c=this.raw(s,null,"beforeClose");let m=s.parent,o=0;for(;m&&m.type!=="root";)o+=1,m=m.parent;if(c.includes(`
|
|
37
|
+
`)){let p=this.raw(s,null,"indent");if(p.length)for(let i=0;i<o;i++)c+=p}return c}block(s,f){let c=this.raw(s,"between","beforeOpen");this.builder(f+c+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let c=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let o=s.nodes[m],p=this.raw(o,"before");p&&this.builder(p),this.stringify(o,f!==m||c)}}comment(s){let f=this.raw(s,"left","commentLeft"),c=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+c+"*/",s)}decl(s,f){let c=this.raw(s,"between","colon"),m=s.prop+c+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,c){let m;if(c||(c=f),f&&(m=s.raws[f],typeof m<"u"))return m;let o=s.parent;if(c==="before"&&(!o||o.type==="root"&&o.first===s||o&&o.type==="document"))return"";if(!o)return e[c];let p=s.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[c]<"u")return p.rawCache[c];if(c==="before"||c==="after")return this.beforeAfter(s,c);{let i="raw"+t(c);this[i]?m=this[i](p,s):p.walk(h=>{if(m=h.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[c]),p.rawCache[c]=m,m}rawBeforeClose(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length>0&&typeof c.raws.after<"u")return f=c.raws.after,f.includes(`
|
|
38
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let c;return s.walkComments(m=>{if(typeof m.raws.before<"u")return c=m.raws.before,c.includes(`
|
|
39
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(f,null,"beforeDecl"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeDecl(s,f){let c;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return c=m.raws.before,c.includes(`
|
|
40
|
+
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),typeof c>"u"?c=this.raw(f,null,"beforeRule"):c&&(c=c.replace(/\S/g,"")),c}rawBeforeOpen(s){let f;return s.walk(c=>{if(c.type!=="decl"&&(f=c.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(c=>{if(c.nodes&&(c.parent!==s||s.first!==c)&&typeof c.raws.before<"u")return f=c.raws.before,f.includes(`
|
|
41
|
+
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(c=>{if(typeof c.raws.between<"u")return f=c.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length===0&&(f=c.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(c=>{let m=c.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof c.raws.before<"u"){let o=c.raws.before.split(`
|
|
42
|
+
`);return f=o[o.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(c=>{if(c.nodes&&c.nodes.length&&c.last.type==="decl"&&(f=c.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let c=s[f],m=s.raws[f];return m&&m.value===c?m.raw:c}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Qt=r,r.default=r,Qt}var Xt,Ps;function dt(){if(Ps)return Xt;Ps=1;let e=Pi();function t(r,l){new e(l).stringify(r)}return Xt=t,t.default=t,Xt}var Kt,_s;function mt(){if(_s)return Kt;_s=1;let{isClean:e,my:t}=$r(),r=Ur(),l=Pi(),s=dt();function f(m,o){let p=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let h=m[i],a=typeof h;i==="parent"&&a==="object"?o&&(p[i]=o):i==="source"?p[i]=h:Array.isArray(h)?p[i]=h.map(n=>f(n,p)):(a==="object"&&h!==null&&(h=f(h)),p[i]=h)}return p}class c{constructor(o={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in o)if(p==="nodes"){this.nodes=[];for(let i of o[p])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[p]=o[p]}addToError(o){if(o.postcssNode=this,o.stack&&this.source&&/\n\s{4}at /.test(o.stack)){let p=this.source;o.stack=o.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return o}after(o){return this.parent.insertAfter(this,o),this}assign(o={}){for(let p in o)this[p]=o[p];return this}before(o){return this.parent.insertBefore(this,o),this}cleanRaws(o){delete this.raws.before,delete this.raws.after,o||delete this.raws.between}clone(o={}){let p=f(this);for(let i in o)p[i]=o[i];return p}cloneAfter(o={}){let p=this.clone(o);return this.parent.insertAfter(this,p),p}cloneBefore(o={}){let p=this.clone(o);return this.parent.insertBefore(this,p),p}error(o,p={}){if(this.source){let{end:i,start:h}=this.rangeBy(p);return this.source.input.error(o,{column:h.column,line:h.line},{column:i.column,line:i.line},p)}return new r(o)}getProxyProcessor(){return{get(o,p){return p==="proxyOf"?o:p==="root"?()=>o.root().toProxy():o[p]},set(o,p,i){return o[p]===i||(o[p]=i,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&o.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let o=this;for(;o=o.parent;)o[e]=!1}}next(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o+1]}positionBy(o,p){let i=this.source.start;if(o.index)i=this.positionInside(o.index,p);else if(o.word){p=this.toString();let h=p.indexOf(o.word);h!==-1&&(i=this.positionInside(h,p))}return i}positionInside(o,p){let i=p||this.toString(),h=this.source.start.column,a=this.source.start.line;for(let n=0;n<o;n++)i[n]===`
|
|
43
|
+
`?(h=1,a+=1):h+=1;return{column:h,line:a}}prev(){if(!this.parent)return;let o=this.parent.index(this);return this.parent.nodes[o-1]}rangeBy(o){let p={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(o.word){let h=this.toString(),a=h.indexOf(o.word);a!==-1&&(p=this.positionInside(a,h),i=this.positionInside(a+o.word.length,h))}else o.start?p={column:o.start.column,line:o.start.line}:o.index&&(p=this.positionInside(o.index)),o.end?i={column:o.end.column,line:o.end.line}:typeof o.endIndex=="number"?i=this.positionInside(o.endIndex):o.index&&(i=this.positionInside(o.index+1));return(i.line<p.line||i.line===p.line&&i.column<=p.column)&&(i={column:p.column+1,line:p.line}),{end:i,start:p}}raw(o,p){return new l().raw(this,o,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...o){if(this.parent){let p=this,i=!1;for(let h of o)h===this?i=!0:i?(this.parent.insertAfter(p,h),p=h):this.parent.insertBefore(p,h);i||this.remove()}return this}root(){let o=this;for(;o.parent&&o.parent.type!=="document";)o=o.parent;return o}toJSON(o,p){let i={},h=p==null;p=p||new Map;let a=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let d=this[n];if(Array.isArray(d))i[n]=d.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,p):u);else if(typeof d=="object"&&d.toJSON)i[n]=d.toJSON(null,p);else if(n==="source"){let u=p.get(d.input);u==null&&(u=a,p.set(d.input,a),a++),i[n]={end:d.end,inputId:u,start:d.start}}else i[n]=d}return h&&(i.inputs=[...p.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(o=s){o.stringify&&(o=o.stringify);let p="";return o(this,i=>{p+=i}),p}warn(o,p,i){let h={node:this};for(let a in i)h[a]=i[a];return o.warn(p,h)}get proxyOf(){return this}}return Kt=c,c.default=c,Kt}var Zt,Ls;function gt(){if(Ls)return Zt;Ls=1;let e=mt();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Zt=t,t.default=t,Zt}var er,Ds;function So(){if(Ds)return er;Ds=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return er={nanoid:(l=21)=>{let s="",f=l;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(f=s)=>{let c="",m=f;for(;m--;)c+=l[Math.random()*l.length|0];return c}},er}var tr,Ts;function _i(){if(Ts)return tr;Ts=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{existsSync:r,readFileSync:l}=fe,{dirname:s,join:f}=fe;function c(o){return Buffer?Buffer.from(o,"base64").toString():window.atob(o)}class m{constructor(p,i){if(i.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let h=i.map?i.map.prev:void 0,a=this.loadMap(i.from,h);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let i=/^data:application\/json;charset=utf-?8;base64,/,h=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(a.test(p)||n.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(i.test(p)||h.test(p))return c(p.substr(RegExp.lastMatch.length));let d=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let i=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let h=p.lastIndexOf(i.pop()),a=p.indexOf("*/",h);h>-1&&a>-1&&(this.annotation=this.getAnnotationURL(p.substring(h,a)))}loadFile(p){if(this.root=s(p),r(p))return this.mapFile=p,l(p,"utf-8").toString().trim()}loadMap(p,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let h=i(p);if(h){let a=this.loadFile(h);if(!a)throw new Error("Unable to load previous source map: "+h.toString());return a}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let h=this.annotation;return p&&(h=f(s(p),h)),this.loadFile(h)}}}startWith(p,i){return p?p.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return tr=m,m.default=m,tr}var rr,Fs;function yt(){if(Fs)return rr;Fs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{fileURLToPath:r,pathToFileURL:l}=fe,{isAbsolute:s,resolve:f}=fe,{nanoid:c}=So(),m=fe,o=Ur(),p=_i(),i=Symbol("fromOffsetCache"),h=!!(e&&t),a=!!(f&&s);class n{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!a||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=f(g.from)),a&&h){let v=new p(this.css,g);if(v.text){this.map=v;let b=v.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+c(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,v,b={}){let S,y,w;if(g&&typeof g=="object"){let x=g,E=v;if(typeof x.offset=="number"){let A=this.fromOffset(x.offset);g=A.line,v=A.col}else g=x.line,v=x.column;if(typeof E.offset=="number"){let A=this.fromOffset(E.offset);y=A.line,w=A.col}else y=E.line,w=E.column}else if(!v){let x=this.fromOffset(g);g=x.line,v=x.col}let C=this.origin(g,v,y,w);return C?S=new o(u,C.endLine===void 0?C.line:{column:C.column,line:C.line},C.endLine===void 0?C.column:{column:C.endColumn,line:C.endLine},C.source,C.file,b.plugin):S=new o(u,y===void 0?g:{column:v,line:g},y===void 0?v:{column:w,line:y},this.css,this.file,b.plugin),S.input={column:v,endColumn:w,endLine:y,line:g,source:this.css},this.file&&(l&&(S.input.url=l(this.file).toString()),S.input.file=this.file),S}fromOffset(u){let g,v;if(this[i])v=this[i];else{let S=this.css.split(`
|
|
44
|
+
`);v=new Array(S.length);let y=0;for(let w=0,C=S.length;w<C;w++)v[w]=y,y+=S[w].length+1;this[i]=v}g=v[v.length-1];let b=0;if(u>=g)b=v.length-1;else{let S=v.length-2,y;for(;b<S;)if(y=b+(S-b>>1),u<v[y])S=y-1;else if(u>=v[y+1])b=y+1;else{b=y;break}}return{col:u-v[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:f(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,v,b){if(!this.map)return!1;let S=this.map.consumer(),y=S.originalPositionFor({column:g,line:u});if(!y.source)return!1;let w;typeof v=="number"&&(w=S.originalPositionFor({column:b,line:v}));let C;s(y.source)?C=l(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let x={column:y.column,endColumn:w&&w.column,endLine:w&&w.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(r)x.file=r(C);else throw new Error("file: protocol is not available in this PostCSS build");let E=S.sourceContentFor(y.source);return E&&(x.source=E),x}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return rr=n,n.default=n,m&&m.registerInput&&m.registerInput(n),rr}var sr,Us;function Li(){if(Us)return sr;Us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{dirname:r,relative:l,resolve:s,sep:f}=fe,{pathToFileURL:c}=fe,m=yt(),o=!!(e&&t),p=!!(r&&s&&l&&f);class i{constructor(a,n,d,u){this.stringify=a,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let n=`
|
|
45
|
+
`;this.css.includes(`\r
|
|
46
|
+
`)&&(n=`\r
|
|
47
|
+
`),this.css+=n+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let n=this.toUrl(this.path(a.file)),d=a.root||r(a.file),u;this.mapOpts.sourcesContent===!1?(u=new e(a.text),u.sourcesContent&&(u.sourcesContent=null)):u=a.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let n=this.root.nodes.length-1;n>=0;n--)a=this.root.nodes[n],a.type==="comment"&&a.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&o&&this.isMap())return this.generateMap();{let a="";return this.stringify(this.root,n=>{a+=n}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=t.fromSourceMap(a,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let a=1,n=1,d="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,v;this.stringify(this.root,(b,S,y)=>{if(this.css+=b,S&&y!=="end"&&(u.generated.line=a,u.generated.column=n-1,S.source&&S.source.start?(u.source=this.sourcePath(S),u.original.line=S.source.start.line,u.original.column=S.source.start.column-1,this.map.addMapping(u)):(u.source=d,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(a+=g.length,v=b.lastIndexOf(`
|
|
48
|
+
`),n=b.length-v):n+=b.length,S&&y!=="start"){let w=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==w.last||w.raws.semicolon)&&(S.source&&S.source.end?(u.source=this.sourcePath(S),u.original.line=S.source.end.line,u.original.column=S.source.end.column-1,u.generated.line=a,u.generated.column=n-2,this.map.addMapping(u)):(u.source=d,u.original.line=1,u.original.column=0,u.generated.line=a,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a<"u"&&a!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let n=this.memoizedPaths.get(a);if(n)return n;let d=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=r(s(d,this.mapOpts.annotation)));let u=l(d,a);return this.memoizedPaths.set(a,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let n=a.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let a=new m(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!a[d]){a[d]=!0;let u=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let n=this.memoizedFileURLs.get(a);if(n)return n;if(c){let d=c(a).toString();return this.memoizedFileURLs.set(a,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let n=this.memoizedURLs.get(a);if(n)return n;f==="\\"&&(a=a.replace(/\\/g,"/"));let d=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,d),d}}return sr=i,sr}var ir,$s;function wt(){if($s)return ir;$s=1;let e=mt();class t extends e{constructor(l){super(l),this.type="comment"}}return ir=t,t.default=t,ir}var nr,Bs;function Re(){if(Bs)return nr;Bs=1;let{isClean:e,my:t}=$r(),r=gt(),l=wt(),s=mt(),f,c,m,o;function p(a){return a.map(n=>(n.nodes&&(n.nodes=p(n.nodes)),delete n.source,n))}function i(a){if(a[e]=!1,a.proxyOf.nodes)for(let n of a.proxyOf.nodes)i(n)}class h extends s{append(...n){for(let d of n){let u=this.normalize(d,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),u,g;for(;this.indexes[d]<this.proxyOf.nodes.length&&(u=this.indexes[d],g=n(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[d]+=1;return delete this.indexes[d],g}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...u)=>n[d](...u.map(g=>typeof g=="function"?(v,b)=>g(v.toProxy(),b):g)):d==="every"||d==="some"?u=>n[d]((g,...v)=>u(g.toProxy(),...v)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(u=>u.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,u){return n[d]===u||(n[d]=u,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let u=this.index(n),g=this.normalize(d,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let v;for(let b in this.indexes)v=this.indexes[b],u<v&&(this.indexes[b]=v+g.length);return this.markDirty(),this}insertBefore(n,d){let u=this.index(n),g=u===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[u],g).reverse();u=this.index(n);for(let S of v)this.proxyOf.nodes.splice(u,0,S);let b;for(let S in this.indexes)b=this.indexes[S],u<=b&&(this.indexes[S]=b+v.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=p(f(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let g of n)g.parent&&g.parent.removeChild(g,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new c(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(g=>(g[t]||h.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&i(g),typeof g.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(g.raws.before=d.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...n){n=n.reverse();for(let d of n){let u=this.normalize(d,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let u in this.indexes)d=this.indexes[u],d>=n&&(this.indexes[u]=d-1);return this.markDirty(),this}replaceValues(n,d,u){return u||(u=d,d={}),this.walkDecls(g=>{d.props&&!d.props.includes(g.prop)||d.fast&&!g.value.includes(d.fast)||(g.value=g.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,u)=>{let g;try{g=n(d,u)}catch(v){throw d.addToError(v)}return g!==!1&&d.walk&&(g=d.walk(n)),g})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&n.test(u.name))return d(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===n)return d(u,g)}):(d=n,this.walk((u,g)=>{if(u.type==="atrule")return d(u,g)}))}walkComments(n){return this.walk((d,u)=>{if(d.type==="comment")return n(d,u)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&n.test(u.prop))return d(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===n)return d(u,g)}):(d=n,this.walk((u,g)=>{if(u.type==="decl")return d(u,g)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&n.test(u.selector))return d(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===n)return d(u,g)}):(d=n,this.walk((u,g)=>{if(u.type==="rule")return d(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return h.registerParse=a=>{f=a},h.registerRule=a=>{c=a},h.registerAtRule=a=>{m=a},h.registerRoot=a=>{o=a},nr=h,h.default=h,h.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,m.prototype):a.type==="rule"?Object.setPrototypeOf(a,c.prototype):a.type==="decl"?Object.setPrototypeOf(a,r.prototype):a.type==="comment"?Object.setPrototypeOf(a,l.prototype):a.type==="root"&&Object.setPrototypeOf(a,o.prototype),a[t]=!0,a.nodes&&a.nodes.forEach(n=>{h.rebuild(n)})},nr}var or,zs;function Br(){if(zs)return or;zs=1;let e=Re(),t,r;class l extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},or=l,l.default=l,or}var ar,Ws;function Di(){if(Ws)return ar;Ws=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ar=e,e.default=e,ar}var lr,qs;function zr(){if(qs)return lr;qs=1;let e=Di();class t{constructor(l,s,f){this.processor=l,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(l,s);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return lr=t,t.default=t,lr}var ur,js;function vo(){if(js)return ur;js=1;const e=39,t=34,r=92,l=47,s=10,f=32,c=12,m=9,o=13,p=91,i=93,h=40,a=41,n=123,d=125,u=59,g=42,v=58,b=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,C=/[\da-f]/i;return ur=function(E,A={}){let O=E.css.valueOf(),U=A.ignoreErrors,k,R,_,se,Z,P,W,ie,$,B,de=O.length,M=0,ne=[],oe=[];function Me(){return M}function me(Q){throw E.error("Unclosed "+Q,M)}function le(){return oe.length===0&&M>=de}function ue(Q){if(oe.length)return oe.pop();if(M>=de)return;let N=Q?Q.ignoreUnclosed:!1;switch(k=O.charCodeAt(M),k){case s:case f:case m:case o:case c:{R=M;do R+=1,k=O.charCodeAt(R);while(k===f||k===s||k===m||k===o||k===c);B=["space",O.slice(M,R)],M=R-1;break}case p:case i:case n:case d:case v:case u:case a:{let X=String.fromCharCode(k);B=[X,X,M];break}case h:{if(ie=ne.length?ne.pop()[1]:"",$=O.charCodeAt(M+1),ie==="url"&&$!==e&&$!==t&&$!==f&&$!==s&&$!==m&&$!==c&&$!==o){R=M;do{if(P=!1,R=O.indexOf(")",R+1),R===-1)if(U||N){R=M;break}else me("bracket");for(W=R;O.charCodeAt(W-1)===r;)W-=1,P=!P}while(P);B=["brackets",O.slice(M,R+1),M,R],M=R}else R=O.indexOf(")",M+1),se=O.slice(M,R+1),R===-1||w.test(se)?B=["(","(",M]:(B=["brackets",se,M,R],M=R);break}case e:case t:{_=k===e?"'":'"',R=M;do{if(P=!1,R=O.indexOf(_,R+1),R===-1)if(U||N){R=M+1;break}else me("string");for(W=R;O.charCodeAt(W-1)===r;)W-=1,P=!P}while(P);B=["string",O.slice(M,R+1),M,R],M=R;break}case b:{S.lastIndex=M+1,S.test(O),S.lastIndex===0?R=O.length-1:R=S.lastIndex-2,B=["at-word",O.slice(M,R+1),M,R],M=R;break}case r:{for(R=M,Z=!0;O.charCodeAt(R+1)===r;)R+=1,Z=!Z;if(k=O.charCodeAt(R+1),Z&&k!==l&&k!==f&&k!==s&&k!==m&&k!==o&&k!==c&&(R+=1,C.test(O.charAt(R)))){for(;C.test(O.charAt(R+1));)R+=1;O.charCodeAt(R+1)===f&&(R+=1)}B=["word",O.slice(M,R+1),M,R],M=R;break}default:{k===l&&O.charCodeAt(M+1)===g?(R=O.indexOf("*/",M+2)+1,R===0&&(U||N?R=O.length:me("comment")),B=["comment",O.slice(M,R+1),M,R],M=R):(y.lastIndex=M+1,y.test(O),y.lastIndex===0?R=O.length-1:R=y.lastIndex-2,B=["word",O.slice(M,R+1),M,R],ne.push(B),M=R);break}}return M++,B}function Se(Q){oe.push(Q)}return{back:Se,endOfFile:le,nextToken:ue,position:Me}},ur}var cr,Hs;function Wr(){if(Hs)return cr;Hs=1;let e=Re();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return cr=t,t.default=t,e.registerAtRule(t),cr}var hr,Gs;function ze(){if(Gs)return hr;Gs=1;let e=Re(),t,r;class l extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,c,m){let o=super.normalize(f);if(c){if(m==="prepend")this.nodes.length>1?c.raws.before=this.nodes[1].raws.before:delete c.raws.before;else if(this.first!==c)for(let p of o)p.raws.before=c.raws.before}return o}removeChild(f,c){let m=this.index(f);return!c&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},hr=l,l.default=l,e.registerRoot(l),hr}var fr,Vs;function Ti(){if(Vs)return fr;Vs=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
49
|
+
`," "];return e.split(t,r)},split(t,r,l){let s=[],f="",c=!1,m=0,o=!1,p="",i=!1;for(let h of t)i?i=!1:h==="\\"?i=!0:o?h===p&&(o=!1):h==='"'||h==="'"?(o=!0,p=h):h==="("?m+=1:h===")"?m>0&&(m-=1):m===0&&r.includes(h)&&(c=!0),c?(f!==""&&s.push(f.trim()),f="",c=!1):f+=h;return(l||f!=="")&&s.push(f.trim()),s}};return fr=e,e.default=e,fr}var pr,Js;function qr(){if(Js)return pr;Js=1;let e=Re(),t=Ti();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,c=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(c)}}return pr=r,r.default=r,e.registerRule(r),pr}var dr,Ys;function Co(){if(Ys)return dr;Ys=1;let e=gt(),t=vo(),r=wt(),l=Wr(),s=ze(),f=qr();const c={empty:!0,space:!0};function m(p){for(let i=p.length-1;i>=0;i--){let h=p[i],a=h[3]||h[2];if(a)return a}}class o{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let h=new l;h.name=i[1].slice(1),h.name===""&&this.unnamedAtrule(h,i),this.init(h,i[2]);let a,n,d,u=!1,g=!1,v=[],b=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),a=i[0],a==="("||a==="["?b.push(a==="("?")":"]"):a==="{"&&b.length>0?b.push("}"):a===b[b.length-1]&&b.pop(),b.length===0)if(a===";"){h.source.end=this.getPosition(i[2]),h.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){g=!0;break}else if(a==="}"){if(v.length>0){for(d=v.length-1,n=v[d];n&&n[0]==="space";)n=v[--d];n&&(h.source.end=this.getPosition(n[3]||n[2]),h.source.end.offset++)}this.end(i);break}else v.push(i);else v.push(i);if(this.tokenizer.endOfFile()){u=!0;break}}h.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(h.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(h,"params",v),u&&(i=v[v.length-1],h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++,this.spaces=h.raws.between,h.raws.between="")):(h.raws.afterName="",h.params=""),g&&(h.nodes=[],this.current=h)}checkMissedSemicolon(i){let h=this.colon(i);if(h===!1)return;let a=0,n;for(let d=h-1;d>=0&&(n=i[d],!(n[0]!=="space"&&(a+=1,a===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let h=0,a,n,d;for(let[u,g]of i.entries()){if(a=g,n=a[0],n==="("&&(h+=1),n===")"&&(h-=1),h===0&&n===":")if(!d)this.doubleColon(a);else{if(d[0]==="word"&&d[1]==="progid")continue;return u}d=a}return!1}comment(i){let h=new r;this.init(h,i[2]),h.source.end=this.getPosition(i[3]||i[2]),h.source.end.offset++;let a=i[1].slice(2,-2);if(/^\s*$/.test(a))h.text="",h.raws.left=a,h.raws.right="";else{let n=a.match(/^(\s*)([^]*\S)(\s*)$/);h.text=n[2],h.raws.left=n[1],h.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,h){let a=new e;this.init(a,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),a.source.end=this.getPosition(n[3]||n[2]||m(i)),a.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),a.raws.before+=i.shift()[1];for(a.source.start=this.getPosition(i[0][2]),a.prop="";i.length;){let b=i[0][0];if(b===":"||b==="space"||b==="comment")break;a.prop+=i.shift()[1]}a.raws.between="";let d;for(;i.length;)if(d=i.shift(),d[0]===":"){a.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),a.raws.between+=d[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let u=[],g;for(;i.length&&(g=i[0][0],!(g!=="space"&&g!=="comment"));)u.push(i.shift());this.precheckMissedSemicolon(i);for(let b=i.length-1;b>=0;b--){if(d=i[b],d[1].toLowerCase()==="!important"){a.important=!0;let S=this.stringFrom(i,b);S=this.spacesFromEnd(i)+S,S!==" !important"&&(a.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=i.slice(0),y="";for(let w=b;w>0;w--){let C=S[w][0];if(y.trim().indexOf("!")===0&&C!=="space")break;y=S.pop()[1]+y}y.trim().indexOf("!")===0&&(a.important=!0,a.raws.important=y,i=S)}if(d[0]!=="space"&&d[0]!=="comment")break}i.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(a.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(a,"value",u.concat(i),h),a.value.includes(":")&&!h&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let h=new f;this.init(h,i[2]),h.selector="",h.raws.between="",this.current=h}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let h=this.current.nodes[this.current.nodes.length-1];h&&h.type==="rule"&&!h.raws.ownSemicolon&&(h.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let h=this.input.fromOffset(i);return{column:h.col,line:h.line,offset:i}}init(i,h){this.current.push(i),i.source={input:this.input,start:this.getPosition(h)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let h=!1,a=null,n=!1,d=null,u=[],g=i[1].startsWith("--"),v=[],b=i;for(;b;){if(a=b[0],v.push(b),a==="("||a==="[")d||(d=b),u.push(a==="("?")":"]");else if(g&&n&&a==="{")d||(d=b),u.push("}");else if(u.length===0)if(a===";")if(n){this.decl(v,g);return}else break;else if(a==="{"){this.rule(v);return}else if(a==="}"){this.tokenizer.back(v.pop()),h=!0;break}else a===":"&&(n=!0);else a===u[u.length-1]&&(u.pop(),u.length===0&&(d=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(h=!0),u.length>0&&this.unclosedBracket(d),h&&n){if(!g)for(;v.length&&(b=v[v.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,g)}else this.unknownWord(v)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,h,a,n){let d,u,g=a.length,v="",b=!0,S,y;for(let w=0;w<g;w+=1)d=a[w],u=d[0],u==="space"&&w===g-1&&!n?b=!1:u==="comment"?(y=a[w-1]?a[w-1][0]:"empty",S=a[w+1]?a[w+1][0]:"empty",!c[y]&&!c[S]?v.slice(-1)===","?b=!1:v+=d[1]:b=!1):v+=d[1];if(!b){let w=a.reduce((C,x)=>C+x[1],"");i.raws[h]={raw:w,value:v}}i[h]=v}rule(i){i.pop();let h=new f;this.init(h,i[0][2]),h.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(h,"selector",i),this.current=h}spacesAndCommentsFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],!(h!=="space"&&h!=="comment"));)a=i.pop()[1]+a;return a}spacesAndCommentsFromStart(i){let h,a="";for(;i.length&&(h=i[0][0],!(h!=="space"&&h!=="comment"));)a+=i.shift()[1];return a}spacesFromEnd(i){let h,a="";for(;i.length&&(h=i[i.length-1][0],h==="space");)a=i.pop()[1]+a;return a}stringFrom(i,h){let a="";for(let n=h;n<i.length;n++)a+=i[n][1];return i.splice(h,i.length-h),a}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,h){throw this.input.error("At-rule without name",{offset:h[2]},{offset:h[2]+h[1].length})}}return dr=o,dr}var mr,Qs;function jr(){if(Qs)return mr;Qs=1;let e=Re(),t=Co(),r=yt();function l(s,f){let c=new r(s,f),m=new t(c);try{m.parse()}catch(o){throw o}return m.root}return mr=l,l.default=l,e.registerParse(l),mr}var gr,Xs;function Fi(){if(Xs)return gr;Xs=1;let{isClean:e,my:t}=$r(),r=Li(),l=dt(),s=Re(),f=Br(),c=zr(),m=jr(),o=ze();const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},a=0;function n(S){return typeof S=="object"&&typeof S.then=="function"}function d(S){let y=!1,w=p[S.type];return S.type==="decl"?y=S.prop.toLowerCase():S.type==="atrule"&&(y=S.name.toLowerCase()),y&&S.append?[w,w+"-"+y,a,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:S.append?[w,a,w+"Exit"]:[w,w+"Exit"]}function u(S){let y;return S.type==="document"?y=["Document",a,"DocumentExit"]:S.type==="root"?y=["Root",a,"RootExit"]:y=d(S),{eventIndex:0,events:y,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(y=>g(y)),S}let v={};class b{constructor(y,w,C){this.stringified=!1,this.processed=!1;let x;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))x=g(w);else if(w instanceof b||w instanceof c)x=g(w.root),w.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let E=m;C.syntax&&(E=C.syntax.parse),C.parser&&(E=C.parser),E.parse&&(E=E.parse);try{x=E(w,C)}catch(A){this.processed=!0,this.error=A}x&&!x[t]&&s.rebuild(x)}this.result=new c(y,x,C),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(E=>typeof E=="object"&&E.prepare?{...E,...E.prepare(this.result)}:E)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let C=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=C.postcssPlugin,y.setMessage()):C.postcssVersion}catch(x){console&&console.error&&console.error(x)}return y}prepareVisitors(){this.listeners={};let y=(w,C,x)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,x])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!i[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[C])if(typeof w[C]=="object")for(let x in w[C])x==="*"?y(w,C,w[C][x]):y(w,C+"-"+x.toLowerCase(),w[C][x]);else typeof w[C]=="function"&&y(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],C=this.runOnRoot(w);if(n(C))try{await C}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[u(y)];for(;w.length>0;){let C=this.visitTick(w);if(n(C))try{await C}catch(x){let E=w[w.length-1].node;throw this.handleError(x,E)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let x=y.nodes.map(E=>C(E,this.helpers));await Promise.all(x)}else await C(y,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>y.Once(C,this.helpers));return n(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=l;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let x=new r(w,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(n(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[C,x]of y){this.result.lastPlugin=C;let E;try{E=x(w,this.helpers)}catch(A){throw this.handleError(A,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(n(E))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:C,visitors:x}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){y.pop();return}if(x.length>0&&w.visitorIndex<x.length){let[A,O]=x[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===x.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=A;try{return O(C.toProxy(),this.helpers)}catch(U){throw this.handleError(U,C)}}if(w.iterator!==0){let A=w.iterator,O;for(;O=C.nodes[C.indexes[A]];)if(C.indexes[A]+=1,!O[e]){O[e]=!0,y.push(u(O));return}w.iterator=0,delete C.indexes[A]}let E=w.events;for(;w.eventIndex<E.length;){let A=E[w.eventIndex];if(w.eventIndex+=1,A===a){C.nodes&&C.nodes.length&&(C[e]=!0,w.iterator=C.getIterator());return}else if(this.listeners[A]){w.visitors=this.listeners[A];return}}y.pop()}walkSync(y){y[e]=!0;let w=d(y);for(let C of w)if(C===a)y.nodes&&y.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[C];if(x&&this.visitSync(x,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return b.registerPostcss=S=>{v=S},gr=b,b.default=b,o.registerLazyResult(b),f.registerLazyResult(b),gr}var yr,Ks;function xo(){if(Ks)return yr;Ks=1;let e=Li(),t=dt(),r=jr();const l=zr();class s{constructor(c,m,o){m=m.toString(),this.stringified=!1,this._processor=c,this._css=m,this._opts=o,this._map=void 0;let p,i=t;this.result=new l(this._processor,p,this._opts),this.result.css=m;let h=this;Object.defineProperty(this.result,"root",{get(){return h.root}});let a=new e(i,p,this._opts,m);if(a.isMap()){let[n,d]=a.generate();n&&(this.result.css=n),d&&(this.result.map=d)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(c){return this.async().catch(c)}finally(c){return this.async().then(c,c)}sync(){if(this.error)throw this.error;return this.result}then(c,m){return this.async().then(c,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let c,m=r;try{c=m(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=c,c}get[Symbol.toStringTag](){return"NoWorkResult"}}return yr=s,s.default=s,yr}var wr,Zs;function Ro(){if(Zs)return wr;Zs=1;let e=xo(),t=Fi(),r=Br(),l=ze();class s{constructor(c=[]){this.version="8.4.38",this.plugins=this.normalize(c)}normalize(c){let m=[];for(let o of c)if(o.postcss===!0?o=o():o.postcss&&(o=o.postcss),typeof o=="object"&&Array.isArray(o.plugins))m=m.concat(o.plugins);else if(typeof o=="object"&&o.postcssPlugin)m.push(o);else if(typeof o=="function")m.push(o);else if(!(typeof o=="object"&&(o.parse||o.stringify)))throw new Error(o+" is not a PostCSS plugin");return m}process(c,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,c,m):new t(this,c,m)}use(c){return this.plugins=this.plugins.concat(this.normalize([c])),this}}return wr=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),wr}var br,ei;function Oo(){if(ei)return br;ei=1;let e=gt(),t=_i(),r=wt(),l=Wr(),s=yt(),f=ze(),c=qr();function m(o,p){if(Array.isArray(o))return o.map(a=>m(a));let{inputs:i,...h}=o;if(i){p=[];for(let a of i){let n={...a,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),p.push(n)}}if(h.nodes&&(h.nodes=o.nodes.map(a=>m(a,p))),h.source){let{inputId:a,...n}=h.source;h.source=n,a!=null&&(h.source.input=p[a])}if(h.type==="root")return new f(h);if(h.type==="decl")return new e(h);if(h.type==="rule")return new c(h);if(h.type==="comment")return new r(h);if(h.type==="atrule")return new l(h);throw new Error("Unknown node type: "+o.type)}return br=m,m.default=m,br}var Sr,ti;function Mo(){if(ti)return Sr;ti=1;let e=Ur(),t=gt(),r=Fi(),l=Re(),s=Ro(),f=dt(),c=Oo(),m=Br(),o=Di(),p=wt(),i=Wr(),h=zr(),a=yt(),n=jr(),d=Ti(),u=qr(),g=ze(),v=mt();function b(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new s(S)}return b.plugin=function(y,w){let C=!1;function x(...A){console&&console.warn&&!C&&(C=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
50
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),tt.LANG&&tt.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
51
|
+
https://www.w3ctech.com/topic/2226`));let O=w(...A);return O.postcssPlugin=y,O.postcssVersion=new s().version,O}let E;return Object.defineProperty(x,"postcss",{get(){return E||(E=x()),E}}),x.process=function(A,O,U){return b([x(U)]).process(A,O)},x},b.stringify=f,b.parse=n,b.fromJSON=c,b.list=d,b.comment=S=>new p(S),b.atRule=S=>new i(S),b.decl=S=>new t(S),b.rule=S=>new u(S),b.root=S=>new g(S),b.document=S=>new m(S),b.CssSyntaxError=e,b.Declaration=t,b.Container=l,b.Processor=s,b.Document=m,b.Comment=p,b.Warning=o,b.AtRule=i,b.Result=h,b.Input=a,b.Rule=u,b.Root=g,b.Node=v,r.registerPostcss(b),Sr=b,b.default=b,Sr}var Eo=Mo();const H=mo(Eo);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;class Hr{constructor(...t){ae(this,"parentElement",null),ae(this,"parentNode",null),ae(this,"ownerDocument"),ae(this,"firstChild",null),ae(this,"lastChild",null),ae(this,"previousSibling",null),ae(this,"nextSibling",null),ae(this,"ELEMENT_NODE",1),ae(this,"TEXT_NODE",3),ae(this,"nodeType"),ae(this,"nodeName"),ae(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof Hr){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const ri={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},si={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ye={};function Io(e){var t,r;const l=(r=(t=globalThis?.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(l&&globalThis[l])return globalThis[l]}function Gr(e){if(Ye[e])return Ye[e];const t=Io(e)||globalThis[e],r=t.prototype,l=e in ri?ri[e]:void 0,s=!!(l&&l.every(m=>{var o,p;return!!((p=(o=Object.getOwnPropertyDescriptor(r,m))==null?void 0:o.get)!=null&&p.toString().includes("[native code]"))})),f=e in si?si[e]:void 0,c=!!(f&&f.every(m=>{var o;return typeof r[m]=="function"&&((o=r[m])==null?void 0:o.toString().includes("[native code]"))}));if(s&&c)return Ye[e]=t.prototype,t.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const o=m.contentWindow;if(!o)return t.prototype;const p=o[e].prototype;return document.body.removeChild(m),p?Ye[e]=p:r}catch{return r}}const vr={};function be(e,t,r){var l;const s=`${e}.${String(r)}`;if(vr[s])return vr[s].call(t);const f=Gr(e),c=(l=Object.getOwnPropertyDescriptor(f,r))==null?void 0:l.get;return c?(vr[s]=c,c.call(t)):t[r]}const Cr={};function Ui(e,t,r){const l=`${e}.${String(r)}`;if(Cr[l])return Cr[l].bind(t);const f=Gr(e)[r];return typeof f!="function"?t[r]:(Cr[l]=f,f.bind(t))}function Ao(e){return be("Node",e,"childNodes")}function ko(e){return be("Node",e,"parentNode")}function No(e){return be("Node",e,"parentElement")}function Po(e){return be("Node",e,"textContent")}function _o(e,t){return Ui("Node",e,"contains")(t)}function Lo(e){return Ui("Node",e,"getRootNode")()}function Do(e){return!e||!("host"in e)?null:be("ShadowRoot",e,"host")}function To(e){return e.styleSheets}function Fo(e){return!e||!("shadowRoot"in e)?null:be("Element",e,"shadowRoot")}function Uo(e,t){return be("Element",e,"querySelector")(t)}function $o(e,t){return be("Element",e,"querySelectorAll")(t)}function $i(){return Gr("MutationObserver").constructor}const L={childNodes:Ao,parentNode:ko,parentElement:No,textContent:Po,contains:_o,getRootNode:Lo,host:Do,styleSheets:To,shadowRoot:Fo,querySelector:Uo,querySelectorAll:$o,mutationObserver:$i};function ee(e,t,r=document){const l={capture:!0,passive:!0};return r.addEventListener(e,t,l),()=>r.removeEventListener(e,t,l)}const Ie=`Please stop import mirror directly. Instead of that,\r
|
|
52
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
53
|
+
or you can use record.mirror to access the mirror instance during recording.`;let ii={map:{},getId(){return console.error(Ie),-1},getNode(){return console.error(Ie),null},removeNodeFromMap(){console.error(Ie)},has(){return console.error(Ie),!1},reset(){console.error(Ie)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ii=new Proxy(ii,{get(e,t,r){return t==="map"&&console.error(Ie),Reflect.get(e,t,r)}}));function $e(e,t,r={}){let l=null,s=0;return function(...f){const c=Date.now();!s&&r.leading===!1&&(s=c);const m=t-(c-s),o=this;m<=0||m>t?(l&&(clearTimeout(l),l=null),s=c,e.apply(o,f)):!l&&r.trailing!==!1&&(l=setTimeout(()=>{s=r.leading===!1?0:Date.now(),l=null,e.apply(o,f)},m))}}function bt(e,t,r,l,s=window){const f=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,l?r:{set(c){setTimeout(()=>{r.set.call(this,c)},0),f&&f.set&&f.set.call(this,c)}}),()=>bt(e,t,f||{},!0)}function Le(e,t,r){try{if(!(t in e))return()=>{};const l=e[t],s=r(l);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:l}})),e[t]=s,()=>{e[t]=l}}catch{return()=>{}}}let ot=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ot=()=>new Date().getTime());function Bi(e){var t,r,l,s;const f=e.document;return{left:f.scrollingElement?f.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:f.documentElement.scrollLeft||f?.body&&((t=L.parentElement(f.body))==null?void 0:t.scrollLeft)||((r=f?.body)==null?void 0:r.scrollLeft)||0,top:f.scrollingElement?f.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:f?.documentElement.scrollTop||f?.body&&((l=L.parentElement(f.body))==null?void 0:l.scrollTop)||((s=f?.body)==null?void 0:s.scrollTop)||0}}function zi(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Wi(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function qi(e){return e?e.nodeType===e.ELEMENT_NODE?e:L.parentElement(e):null}function te(e,t,r,l){if(!e)return!1;const s=qi(e);if(!s)return!1;try{if(typeof t=="string"){if(s.classList.contains(t)||l&&s.closest("."+t)!==null)return!0}else if(nt(s,t,l))return!0}catch{}return!!(r&&(s.matches(r)||l&&s.closest(r)!==null))}function Bo(e,t){return t.getId(e)!==-1}function xr(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Ue}function ji(e,t){if(De(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const l=L.parentNode(e);return l&&l.nodeType===e.DOCUMENT_NODE?!1:l?ji(l,t):!0}function Mr(e){return!!e.changedTouches}function zo(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Hi(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Gi(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Er(e){return e?e instanceof Hr&&"shadowRoot"in e?!!e.shadowRoot:!!L.shadowRoot(e):!1}class Wo{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let l;return r===void 0?l=this.id++:l=r,this.styleIDMap.set(t,l),this.idStyleMap.set(l,t),l}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Vi(e){var t;let r=null;return"getRootNode"in e&&((t=L.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&L.host(L.getRootNode(e))&&(r=L.host(L.getRootNode(e))),r}function qo(e){let t=e,r;for(;r=Vi(t);)t=r;return t}function jo(e){const t=e.ownerDocument;if(!t)return!1;const r=qo(e);return L.contains(t,r)}function Ji(e){const t=e.ownerDocument;return t?L.contains(t,e)||jo(e):!1}var F=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(F||{}),D=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(D||{}),re=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(re||{}),ge=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ge||{}),_e=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(_e||{}),Ae=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ae||{}),Yi=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Yi||{});function ni(e){return"__ln"in e}class Ho{constructor(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let l=0;l<t;l++)r=r?.next||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&ni(t.previousSibling)){const l=t.previousSibling.__ln.next;r.next=l,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,l&&(l.previous=r)}else if(t.nextSibling&&ni(t.nextSibling)&&t.nextSibling.__ln.previous){const l=t.nextSibling.__ln.previous;r.previous=l,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,l&&(l.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){const r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const oi=(e,t)=>`${e}@${t}`;class Go{constructor(){I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),I(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,l=new Ho,s=o=>{let p=o,i=Ue;for(;i===Ue;)p=p&&p.nextSibling,i=p&&this.mirror.getId(p);return i},f=o=>{const p=L.parentNode(o);if(!p||!Ji(o))return;let i=!1;if(o.nodeType===Node.TEXT_NODE){const d=p.tagName;if(d==="TEXTAREA")return;d==="STYLE"&&this.addedSet.has(p)&&(i=!0)}const h=De(p)?this.mirror.getId(Vi(o)):this.mirror.getId(p),a=s(o);if(h===-1||a===-1)return l.addNode(o);const n=Ne(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{Hi(d,this.mirror)&&this.iframeManager.addIframe(d),Gi(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Er(o)&&this.shadowDomManager.addShadowRoot(L.shadowRoot(o),this.doc)},onIframeLoad:(d,u)=>{this.iframeManager.attachIframe(d,u),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,u)=>{this.stylesheetManager.attachLinkElement(d,u)},cssCaptured:i});n&&(t.push({parentId:h,nextId:a,node:n}),r.add(n.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const o of this.movedSet)ai(this.removesSubTreeCache,o,this.mirror)&&!this.movedSet.has(L.parentNode(o))||f(o);for(const o of this.addedSet)!li(this.droppedSet,o)&&!ai(this.removesSubTreeCache,o,this.mirror)||li(this.movedSet,o)?f(o):this.droppedSet.add(o);let c=null;for(;l.length;){let o=null;if(c){const p=this.mirror.getId(L.parentNode(c.value)),i=s(c.value);p!==-1&&i!==-1&&(o=c)}if(!o){let p=l.tail;for(;p;){const i=p;if(p=p.previous,i){const h=this.mirror.getId(L.parentNode(i.value));if(s(i.value)===-1)continue;if(h!==-1){o=i;break}else{const n=i.value,d=L.parentNode(n);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const u=L.host(d);if(this.mirror.getId(u)!==-1){o=i;break}}}}}}if(!o){for(;l.head;)l.removeNode(l.head.value);break}c=o.previous,l.removeNode(o.value),f(o.value)}const m={texts:this.texts.map(o=>{const p=o.node,i=L.parentNode(p);return i&&i.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(i),{id:this.mirror.getId(p),value:o.value}}).filter(o=>!r.has(o.id)).filter(o=>this.mirror.has(o.id)),attributes:this.attributes.map(o=>{const{attributes:p}=o;if(typeof p.style=="string"){const i=JSON.stringify(o.styleDiff),h=JSON.stringify(o._unchangedStyles);i.length<p.style.length&&(i+h).split("var(").length===p.style.split("var(").length&&(p.style=o.styleDiff)}return{id:this.mirror.getId(o.node),attributes:p}}).filter(o=>!r.has(o.id)).filter(o=>this.mirror.has(o.id)),removes:this.removes,adds:t};!m.texts.length&&!m.attributes.length&&!m.removes.length&&!m.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(m))}),I(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));const l=Array.from(L.childNodes(t),s=>L.textContent(s)||"").join("");r.attributes.value=rt({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:st(t),value:l,maskInputFn:this.maskInputFn})}),I(this,"processMutation",t=>{if(!xr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const r=L.textContent(t.target);!te(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Oi(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,qi(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let l=t.attributeName,s=t.target.getAttribute(l);if(l==="value"){const c=st(r);s=rt({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:c,value:s,maskInputFn:this.maskInputFn})}if(te(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;let f=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&l==="src"&&!this.keepIframeSrcFn(s))if(!r.contentDocument)l="rr_src";else return;if(f||(f={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(f),this.attributeMap.set(t.target,f)),l==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Ri(r.tagName,l))if(f.attributes[l]=xi(this.doc,Ce(r.tagName),Ce(l),s),l==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(const m of Array.from(r.style)){const o=r.style.getPropertyValue(m),p=r.style.getPropertyPriority(m);o!==c.style.getPropertyValue(m)||p!==c.style.getPropertyPriority(m)?p===""?f.styleDiff[m]=o:f.styleDiff[m]=[o,p]:f._unchangedStyles[m]=[o,p]}for(const m of Array.from(c.style))r.style.getPropertyValue(m)===""&&(f.styleDiff[m]=!1)}else l==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?f.attributes.rr_open_mode="modal":f.attributes.rr_open_mode="non-modal");break}case"childList":{if(te(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const l=this.mirror.getId(r),s=De(t.target)?this.mirror.getId(L.host(t.target)):this.mirror.getId(t.target);te(t.target,this.blockClass,this.blockSelector,!1)||xr(r,this.mirror,this.slimDOMOptions)||!Bo(r,this.mirror)||(this.addedSet.has(r)?(Ir(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&l===-1||ji(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[oi(l,s)]?Ir(this.movedSet,r):(this.removes.push({parentId:s,id:l,isShadow:De(t.target)&&Te(t.target)?!0:void 0}),Vo(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),I(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(xr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let l=null;r&&this.mirror.hasNode(r)&&(l=this.mirror.getId(r)),l&&l!==-1&&(this.movedMap[oi(this.mirror.getId(t),l)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);te(t,this.blockClass,this.blockSelector,!1)||(L.childNodes(t).forEach(l=>this.genAdds(l)),Er(t)&&L.childNodes(L.shadowRoot(t)).forEach(l=>{this.processedNodeManager.add(l,this),this.genAdds(l,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ir(e,t){e.delete(t),L.childNodes(t).forEach(r=>Ir(e,r))}function Vo(e,t){const r=[e];for(;r.length;){const l=r.pop();t.has(l)||(t.add(l),L.childNodes(l).forEach(s=>r.push(s)))}}function ai(e,t,r){return e.size===0?!1:Jo(e,t)}function Jo(e,t,r){const l=L.parentNode(t);return l?e.has(l):!1}function li(e,t){return e.size===0?!1:Qi(e,t)}function Qi(e,t){const r=L.parentNode(t);return r?e.has(r)?!0:Qi(e,r):!1}let Fe;function Yo(e){Fe=e}function Qo(){Fe=void 0}const T=e=>Fe?((...r)=>{try{return e(...r)}catch(l){if(Fe&&Fe(l)===!0)return;throw l}}):e;function ui(e){return(...t)=>{try{return e(...t)}catch(r){try{r._external_=!0}catch{}throw r}}}const ve=[];function We(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Xi(e,t){const r=new Go;ve.push(r),r.init(e);const l=new($i())(T(r.processMutations.bind(r)));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function Xo({mousemoveCb:e,sampling:t,doc:r,mirror:l}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,f=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let c=[],m;const o=$e(T(h=>{const a=Date.now()-m;e(c.map(n=>(n.timeOffset-=a,n)),h),c=[],m=null}),f),p=T($e(T(h=>{const a=We(h),{clientX:n,clientY:d}=Mr(h)?h.changedTouches[0]:h;m||(m=ot()),c.push({x:n,y:d,id:l.getId(a),timeOffset:ot()-m}),o(typeof DragEvent<"u"&&h instanceof DragEvent?D.Drag:h instanceof MouseEvent?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),i=[ee("mousemove",p,r),ee("touchmove",p,r),ee("drag",p,r)];return T(()=>{i.forEach(h=>h())})}function Ko({mouseInteractionCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:f}){if(f.mouseInteraction===!1)return()=>{};const c=f.mouseInteraction===!0||f.mouseInteraction===void 0?{}:f.mouseInteraction,m=[];let o=null;const p=i=>h=>{const a=We(h);if(te(a,l,s,!0))return;let n=null,d=i;if("pointerType"in h){switch(h.pointerType){case"mouse":n=ge.Mouse;break;case"touch":n=ge.Touch;break;case"pen":n=ge.Pen;break}n===ge.Touch?re[i]===re.MouseDown?d="TouchStart":re[i]===re.MouseUp&&(d="TouchEnd"):ge.Pen}else Mr(h)&&(n=ge.Touch);n!==null?(o=n,(d.startsWith("Touch")&&n===ge.Touch||d.startsWith("Mouse")&&n===ge.Mouse)&&(n=null)):re[i]===re.Click&&(n=o,o=null);const u=Mr(h)?h.changedTouches[0]:h;if(!u)return;const g=r.getId(a),{clientX:v,clientY:b}=u;T(e)({type:re[d],id:g,x:v,y:b,...n!==null&&{pointerType:n}})};return Object.keys(re).filter(i=>Number.isNaN(Number(i))&&!i.endsWith("_Departed")&&c[i]!==!1).forEach(i=>{let h=Ce(i);const a=p(i);if(window.PointerEvent)switch(re[i]){case re.MouseDown:case re.MouseUp:h=h.replace("mouse","pointer");break;case re.TouchStart:case re.TouchEnd:return}m.push(ee(h,a,t))}),T(()=>{m.forEach(i=>i())})}function Ki({scrollCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:f}){const c=T($e(T(m=>{const o=We(m);if(!o||te(o,l,s,!0))return;const p=r.getId(o);if(o===t&&t.defaultView){const i=Bi(t.defaultView);e({id:p,x:i.left,y:i.top})}else e({id:p,x:o.scrollLeft,y:o.scrollTop})}),f.scroll||100));return ee("scroll",c,t)}function Zo({viewportResizeCb:e},{win:t}){let r=-1,l=-1;const s=T($e(T(()=>{const f=zi(),c=Wi();(r!==f||l!==c)&&(e({width:Number(c),height:Number(f)}),r=f,l=c)}),200));return ee("resize",s,t)}const ea=["INPUT","TEXTAREA","SELECT"],ci=new WeakMap;function ta({inputCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,ignoreClass:f,ignoreSelector:c,maskInputOptions:m,maskInputFn:o,sampling:p,userTriggeredOnInput:i}){function h(b){let S=We(b);const y=b.isTrusted,w=S&&S.tagName;if(S&&w==="OPTION"&&(S=L.parentElement(S)),!S||!w||ea.indexOf(w)<0||te(S,l,s,!0)||S.classList.contains(f)||c&&S.matches(c))return;let C=S.value,x=!1;const E=st(S)||"";E==="radio"||E==="checkbox"?x=S.checked:(m[w.toLowerCase()]||m[E])&&(C=rt({element:S,maskInputOptions:m,tagName:w,type:E,value:C,maskInputFn:o})),a(S,i?{text:C,isChecked:x,userTriggered:y}:{text:C,isChecked:x});const A=S.name;E==="radio"&&A&&x&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach(O=>{if(O!==S){const U=O.value;a(O,i?{text:U,isChecked:!x,userTriggered:!1}:{text:U,isChecked:!x})}})}function a(b,S){const y=ci.get(b);if(!y||y.text!==S.text||y.isChecked!==S.isChecked){ci.set(b,S);const w=r.getId(b);T(e)({...S,id:w})}}const d=(p.input==="last"?["change"]:["input","change"]).map(b=>ee(b,T(h),t)),u=t.defaultView;if(!u)return()=>{d.forEach(b=>b())};const g=u.Object.getOwnPropertyDescriptor(u.HTMLInputElement.prototype,"value"),v=[[u.HTMLInputElement.prototype,"value"],[u.HTMLInputElement.prototype,"checked"],[u.HTMLSelectElement.prototype,"value"],[u.HTMLTextAreaElement.prototype,"value"],[u.HTMLSelectElement.prototype,"selectedIndex"],[u.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&d.push(...v.map(b=>bt(b[0],b[1],{set(){T(h)({target:this,isTrusted:!1})}},!1,u))),T(()=>{d.forEach(b=>b())})}function at(e){const t=[];function r(l,s){if(Qe("CSSGroupingRule")&&l.parentRule instanceof CSSGroupingRule||Qe("CSSMediaRule")&&l.parentRule instanceof CSSMediaRule||Qe("CSSSupportsRule")&&l.parentRule instanceof CSSSupportsRule||Qe("CSSConditionRule")&&l.parentRule instanceof CSSConditionRule){const c=Array.from(l.parentRule.cssRules).indexOf(l);s.unshift(c)}else if(l.parentStyleSheet){const c=Array.from(l.parentStyleSheet.cssRules).indexOf(l);s.unshift(c)}return s}return r(e,t)}function ye(e,t,r){let l,s;return e?(e.ownerNode?l=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:l}):{}}function ra({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:l}){if(!l.CSSStyleSheet||!l.CSSStyleSheet.prototype)return()=>{};const s=l.CSSStyleSheet.prototype.insertRule;l.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:T((i,h,a)=>{const[n,d]=a,{id:u,styleId:g}=ye(h,t,r.styleMirror);return(u&&u!==-1||g&&g!==-1)&&e({id:u,styleId:g,adds:[{rule:n,index:d}]}),ui(()=>i.apply(h,a))()})}),l.CSSStyleSheet.prototype.addRule=function(i,h,a=this.cssRules.length){const n=`${i} { ${h} }`;return l.CSSStyleSheet.prototype.insertRule.apply(this,[n,a])};const f=l.CSSStyleSheet.prototype.deleteRule;l.CSSStyleSheet.prototype.deleteRule=new Proxy(f,{apply:T((i,h,a)=>{const[n]=a,{id:d,styleId:u}=ye(h,t,r.styleMirror);return(d&&d!==-1||u&&u!==-1)&&e({id:d,styleId:u,removes:[{index:n}]}),ui(()=>i.apply(h,a))()})}),l.CSSStyleSheet.prototype.removeRule=function(i){return l.CSSStyleSheet.prototype.deleteRule.apply(this,[i])};let c;l.CSSStyleSheet.prototype.replace&&(c=l.CSSStyleSheet.prototype.replace,l.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:T((i,h,a)=>{const[n]=a,{id:d,styleId:u}=ye(h,t,r.styleMirror);return(d&&d!==-1||u&&u!==-1)&&e({id:d,styleId:u,replace:n}),i.apply(h,a)})}));let m;l.CSSStyleSheet.prototype.replaceSync&&(m=l.CSSStyleSheet.prototype.replaceSync,l.CSSStyleSheet.prototype.replaceSync=new Proxy(m,{apply:T((i,h,a)=>{const[n]=a,{id:d,styleId:u}=ye(h,t,r.styleMirror);return(d&&d!==-1||u&&u!==-1)&&e({id:d,styleId:u,replaceSync:n}),i.apply(h,a)})}));const o={};Xe("CSSGroupingRule")?o.CSSGroupingRule=l.CSSGroupingRule:(Xe("CSSMediaRule")&&(o.CSSMediaRule=l.CSSMediaRule),Xe("CSSConditionRule")&&(o.CSSConditionRule=l.CSSConditionRule),Xe("CSSSupportsRule")&&(o.CSSSupportsRule=l.CSSSupportsRule));const p={};return Object.entries(o).forEach(([i,h])=>{p[i]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=new Proxy(p[i].insertRule,{apply:T((a,n,d)=>{const[u,g]=d,{id:v,styleId:b}=ye(n.parentStyleSheet,t,r.styleMirror);return(v&&v!==-1||b&&b!==-1)&&e({id:v,styleId:b,adds:[{rule:u,index:[...at(n),g||0]}]}),a.apply(n,d)})}),h.prototype.deleteRule=new Proxy(p[i].deleteRule,{apply:T((a,n,d)=>{const[u]=d,{id:g,styleId:v}=ye(n.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||v&&v!==-1)&&e({id:g,styleId:v,removes:[{index:[...at(n),u]}]}),a.apply(n,d)})})}),T(()=>{l.CSSStyleSheet.prototype.insertRule=s,l.CSSStyleSheet.prototype.deleteRule=f,c&&(l.CSSStyleSheet.prototype.replace=c),m&&(l.CSSStyleSheet.prototype.replaceSync=m),Object.entries(o).forEach(([i,h])=>{h.prototype.insertRule=p[i].insertRule,h.prototype.deleteRule=p[i].deleteRule})})}function Zi({mirror:e,stylesheetManager:t},r){var l,s,f;let c=null;r.nodeName==="#document"?c=e.getId(r):c=e.getId(L.host(r));const m=r.nodeName==="#document"?(l=r.defaultView)==null?void 0:l.Document:(f=(s=r.ownerDocument)==null?void 0:s.defaultView)==null?void 0:f.ShadowRoot,o=m?.prototype?Object.getOwnPropertyDescriptor(m?.prototype,"adoptedStyleSheets"):void 0;return c===null||c===-1||!m||!o?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var p;return(p=o.get)==null?void 0:p.call(this)},set(p){var i;const h=(i=o.set)==null?void 0:i.call(this,p);if(c!==null&&c!==-1)try{t.adoptStyleSheets(p,c)}catch{}return h}}),T(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function sa({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:l},{win:s}){const f=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(f,{apply:T((m,o,p)=>{var i;const[h,a,n]=p;if(r.has(h))return f.apply(o,[h,a,n]);const{id:d,styleId:u}=ye((i=o.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(d&&d!==-1||u&&u!==-1)&&e({id:d,styleId:u,set:{property:h,value:a,priority:n},index:at(o.parentRule)}),m.apply(o,p)})});const c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:T((m,o,p)=>{var i;const[h]=p;if(r.has(h))return c.apply(o,[h]);const{id:a,styleId:n}=ye((i=o.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(a&&a!==-1||n&&n!==-1)&&e({id:a,styleId:n,remove:{property:h},index:at(o.parentRule)}),m.apply(o,p)})}),T(()=>{s.CSSStyleDeclaration.prototype.setProperty=f,s.CSSStyleDeclaration.prototype.removeProperty=c})}function ia({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:l,sampling:s,doc:f}){const c=T(o=>$e(T(p=>{const i=We(p);if(!i||te(i,t,r,!0))return;const{currentTime:h,volume:a,muted:n,playbackRate:d,loop:u}=i;e({type:o,id:l.getId(i),currentTime:h,volume:a,muted:n,playbackRate:d,loop:u})}),s.media||500)),m=[ee("play",c(Ae.Play),f),ee("pause",c(Ae.Pause),f),ee("seeked",c(Ae.Seeked),f),ee("volumechange",c(Ae.VolumeChange),f),ee("ratechange",c(Ae.RateChange),f)];return T(()=>{m.forEach(o=>o())})}function na({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const l=[],s=new WeakMap,f=r.FontFace;r.FontFace=function(o,p,i){const h=new f(o,p,i);return s.set(h,{family:o,buffer:typeof p!="string",descriptors:i,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),h};const c=Le(t.fonts,"add",function(m){return function(o){return setTimeout(T(()=>{const p=s.get(o);p&&(e(p),s.delete(o))}),0),m.apply(this,[o])}});return l.push(()=>{r.FontFace=f}),l.push(c),T(()=>{l.forEach(m=>m())})}function oa(e){const{doc:t,mirror:r,blockClass:l,blockSelector:s,selectionCb:f}=e;let c=!0;const m=T(()=>{const o=t.getSelection();if(!o||c&&o?.isCollapsed)return;c=o.isCollapsed||!1;const p=[],i=o.rangeCount||0;for(let h=0;h<i;h++){const a=o.getRangeAt(h),{startContainer:n,startOffset:d,endContainer:u,endOffset:g}=a;te(n,l,s,!0)||te(u,l,s,!0)||p.push({start:r.getId(n),startOffset:d,end:r.getId(u),endOffset:g})}f({ranges:p})});return m(),ee("selectionchange",m)}function aa({doc:e,customElementCb:t}){const r=e.defaultView;return!r||!r.customElements?()=>{}:Le(r.customElements,"define",function(s){return function(f,c,m){try{t({define:{name:f}})}catch{console.warn(`Custom element callback failed for ${f}`)}return s.apply(this,[f,c,m])}})}function la(e,t){const{mutationCb:r,mousemoveCb:l,mouseInteractionCb:s,scrollCb:f,viewportResizeCb:c,inputCb:m,mediaInteractionCb:o,styleSheetRuleCb:p,styleDeclarationCb:i,canvasMutationCb:h,fontCb:a,selectionCb:n,customElementCb:d}=e;e.mutationCb=(...u)=>{t.mutation&&t.mutation(...u),r(...u)},e.mousemoveCb=(...u)=>{t.mousemove&&t.mousemove(...u),l(...u)},e.mouseInteractionCb=(...u)=>{t.mouseInteraction&&t.mouseInteraction(...u),s(...u)},e.scrollCb=(...u)=>{t.scroll&&t.scroll(...u),f(...u)},e.viewportResizeCb=(...u)=>{t.viewportResize&&t.viewportResize(...u),c(...u)},e.inputCb=(...u)=>{t.input&&t.input(...u),m(...u)},e.mediaInteractionCb=(...u)=>{t.mediaInteaction&&t.mediaInteaction(...u),o(...u)},e.styleSheetRuleCb=(...u)=>{t.styleSheetRule&&t.styleSheetRule(...u),p(...u)},e.styleDeclarationCb=(...u)=>{t.styleDeclaration&&t.styleDeclaration(...u),i(...u)},e.canvasMutationCb=(...u)=>{t.canvasMutation&&t.canvasMutation(...u),h(...u)},e.fontCb=(...u)=>{t.font&&t.font(...u),a(...u)},e.selectionCb=(...u)=>{t.selection&&t.selection(...u),n(...u)},e.customElementCb=(...u)=>{t.customElement&&t.customElement(...u),d(...u)}}function ua(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};la(e,t);let l;e.recordDOM&&(l=Xi(e,e.doc));const s=Xo(e),f=Ko(e),c=Ki(e),m=Zo(e,{win:r}),o=ta(e),p=ia(e);let i=()=>{},h=()=>{},a=()=>{},n=()=>{};e.recordDOM&&(i=ra(e,{win:r}),h=Zi(e,e.doc),a=sa(e,{win:r}),e.collectFonts&&(n=na(e)));const d=oa(e),u=aa(e),g=[];for(const v of e.plugins)g.push(v.observer(v.callback,r,v.options));return T(()=>{ve.forEach(v=>v.reset()),l?.disconnect(),s(),f(),c(),m(),o(),p(),i(),h(),a(),n(),d(),u(),g.forEach(v=>v())})}function Qe(e){return typeof window[e]<"u"}function Xe(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class hi{constructor(t){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,l,s){const f=l||this.getIdToRemoteIdMap(t),c=s||this.getRemoteIdToIdMap(t);let m=f.get(r);return m||(m=this.generateIdFn(),f.set(r,m),c.set(m,r)),m}getIds(t,r){const l=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return r.map(f=>this.getId(t,f,l,s))}getRemoteId(t,r,l){const s=l||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const f=s.get(r);return f||-1}getRemoteIds(t,r){const l=this.getRemoteIdToIdMap(t);return r.map(s=>this.getRemoteId(t,s,l))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class ca{constructor(t){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new hi(Ci)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new hi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var l,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((l=t.contentWindow)==null||l.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const f=this.transformCrossOriginEvent(s,r.data.event);f&&this.wrappedEmit(f,r.data.isCheckout)}transformCrossOriginEvent(t,r){var l;switch(r.type){case F.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:F.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case F.Meta:case F.Load:case F.DomContentLoaded:return!1;case F.Plugin:return r;case F.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case F.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const f=this.crossOriginIframeRootIdMap.get(t);f&&this.patchRootIdOnNode(s.node,f)}),r.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),r.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),r.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,t,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(l=r.data.styles)==null||l.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),r}}return!1}replace(t,r,l,s){for(const f of s)!Array.isArray(r[f])&&typeof r[f]!="number"||(Array.isArray(r[f])?r[f]=t.getIds(l,r[f]):r[f]=t.getId(l,r[f]));return r}replaceIds(t,r,l){return this.replace(this.crossOriginIframeMirror,t,r,l)}replaceStyleIds(t,r,l){return this.replace(this.crossOriginIframeStyleMirror,t,r,l)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(l=>{this.replaceIdOnNode(l,r)})}patchRootIdOnNode(t,r){t.type!==Yi.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(l=>{this.patchRootIdOnNode(l,r)})}}class ha{constructor(t){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Te(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const l=Xi({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>l.disconnect()),this.restoreHandlers.push(Ki({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(L.host(t))),this.restoreHandlers.push(Zi({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const l=this;this.restoreHandlers.push(Le(t.prototype,"attachShadow",function(s){return function(f){const c=s.call(this,f),m=L.shadowRoot(this);return m&&Ji(this)&&l.addShadowRoot(m,r),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ke=0;Ke<Pe.length;Ke++)fa[Pe.charCodeAt(Ke)]=Ke;var pa=function(e){var t=new Uint8Array(e),r,l=t.length,s="";for(r=0;r<l;r+=3)s+=Pe[t[r]>>2],s+=Pe[(t[r]&3)<<4|t[r+1]>>4],s+=Pe[(t[r+1]&15)<<2|t[r+2]>>6],s+=Pe[t[r+2]&63];return l%3===2?s=s.substring(0,s.length-1)+"=":l%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const fi=new Map;function da(e,t){let r=fi.get(e);return r||(r=new Map,fi.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const en=(e,t,r)=>{if(!e||!(rn(e,t)||typeof e=="object"))return;const l=e.constructor.name,s=da(r,l);let f=s.indexOf(e);return f===-1&&(f=s.length,s.push(e)),f};function Ze(e,t,r){if(e instanceof Array)return e.map(l=>Ze(l,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const l=e.constructor.name,s=pa(e);return{rr_type:l,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ze(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const l=e.constructor.name,{src:s}=e;return{rr_type:l,src:s}}else if(e instanceof HTMLCanvasElement){const l="HTMLImageElement",s=e.toDataURL();return{rr_type:l,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ze(e.data,t,r),e.width,e.height]};if(rn(e,t)||typeof e=="object"){const l=e.constructor.name,s=en(e,t,r);return{rr_type:l,index:s}}}}return e}const tn=(e,t,r)=>e.map(l=>Ze(l,t,r)),rn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function ma(e,t,r,l){const s=[],f=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const c of f)try{if(typeof t.CanvasRenderingContext2D.prototype[c]!="function")continue;const m=Le(t.CanvasRenderingContext2D.prototype,c,function(o){return function(...p){return te(this.canvas,r,l,!0)||setTimeout(()=>{const i=tn(p,t,this);e(this.canvas,{type:_e["2D"],property:c,args:i})},0),o.apply(this,p)}});s.push(m)}catch{const m=bt(t.CanvasRenderingContext2D.prototype,c,{set(o){e(this.canvas,{type:_e["2D"],property:c,args:[o],setter:!0})}});s.push(m)}return()=>{s.forEach(c=>c())}}function ga(e){return e==="experimental-webgl"?"webgl":e}function pi(e,t,r,l){const s=[];try{const f=Le(e.HTMLCanvasElement.prototype,"getContext",function(c){return function(m,...o){if(!te(this,t,r,!0)){const p=ga(m);if("__context"in this||(this.__context=p),l&&["webgl","webgl2"].includes(p))if(o[0]&&typeof o[0]=="object"){const i=o[0];i.preserveDrawingBuffer||(i.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return c.apply(this,[m,...o])}});s.push(f)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(f=>f())}}function di(e,t,r,l,s,f){const c=[],m=Object.getOwnPropertyNames(e);for(const o of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if(typeof e[o]!="function")continue;const p=Le(e,o,function(i){return function(...h){const a=i.apply(this,h);if(en(a,f,this),"tagName"in this.canvas&&!te(this.canvas,l,s,!0)){const n=tn(h,f,this),d={type:t,property:o,args:n};r(this.canvas,d)}return a}});c.push(p)}catch{const p=bt(e,o,{set(i){r(this.canvas,{type:t,property:o,args:[i],setter:!0})}});c.push(p)}return c}function ya(e,t,r,l){const s=[];return s.push(...di(t.WebGLRenderingContext.prototype,_e.WebGL,e,r,l,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...di(t.WebGL2RenderingContext.prototype,_e.WebGL2,e,r,l,t)),()=>{s.forEach(f=>f())}}const sn=`(function() {
|
|
54
|
+
"use strict";
|
|
55
|
+
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
56
|
+
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
57
|
+
for (var i = 0; i < chars.length; i++) {
|
|
58
|
+
lookup[chars.charCodeAt(i)] = i;
|
|
59
|
+
}
|
|
60
|
+
var encode = function(arraybuffer) {
|
|
61
|
+
var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
|
|
62
|
+
for (i2 = 0; i2 < len; i2 += 3) {
|
|
63
|
+
base64 += chars[bytes[i2] >> 2];
|
|
64
|
+
base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
|
|
65
|
+
base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
|
|
66
|
+
base64 += chars[bytes[i2 + 2] & 63];
|
|
67
|
+
}
|
|
68
|
+
if (len % 3 === 2) {
|
|
69
|
+
base64 = base64.substring(0, base64.length - 1) + "=";
|
|
70
|
+
} else if (len % 3 === 1) {
|
|
71
|
+
base64 = base64.substring(0, base64.length - 2) + "==";
|
|
72
|
+
}
|
|
73
|
+
return base64;
|
|
74
|
+
};
|
|
75
|
+
const lastBlobMap = /* @__PURE__ */ new Map();
|
|
76
|
+
const transparentBlobMap = /* @__PURE__ */ new Map();
|
|
77
|
+
async function getTransparentBlobFor(width, height, dataURLOptions) {
|
|
78
|
+
const id = \`\${width}-\${height}\`;
|
|
79
|
+
if ("OffscreenCanvas" in globalThis) {
|
|
80
|
+
if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
|
|
81
|
+
const offscreen = new OffscreenCanvas(width, height);
|
|
82
|
+
offscreen.getContext("2d");
|
|
83
|
+
const blob = await offscreen.convertToBlob(dataURLOptions);
|
|
84
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
85
|
+
const base64 = encode(arrayBuffer);
|
|
86
|
+
transparentBlobMap.set(id, base64);
|
|
87
|
+
return base64;
|
|
88
|
+
} else {
|
|
89
|
+
return "";
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const worker = self;
|
|
93
|
+
worker.onmessage = async function(e) {
|
|
94
|
+
if ("OffscreenCanvas" in globalThis) {
|
|
95
|
+
const { id, bitmap, width, height, dataURLOptions } = e.data;
|
|
96
|
+
const transparentBase64 = getTransparentBlobFor(
|
|
97
|
+
width,
|
|
98
|
+
height,
|
|
99
|
+
dataURLOptions
|
|
100
|
+
);
|
|
101
|
+
const offscreen = new OffscreenCanvas(width, height);
|
|
102
|
+
const ctx = offscreen.getContext("2d");
|
|
103
|
+
ctx.drawImage(bitmap, 0, 0);
|
|
104
|
+
bitmap.close();
|
|
105
|
+
const blob = await offscreen.convertToBlob(dataURLOptions);
|
|
106
|
+
const type = blob.type;
|
|
107
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
108
|
+
const base64 = encode(arrayBuffer);
|
|
109
|
+
if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
|
|
110
|
+
lastBlobMap.set(id, base64);
|
|
111
|
+
return worker.postMessage({ id });
|
|
112
|
+
}
|
|
113
|
+
if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
|
|
114
|
+
worker.postMessage({
|
|
115
|
+
id,
|
|
116
|
+
type,
|
|
117
|
+
base64,
|
|
118
|
+
width,
|
|
119
|
+
height
|
|
120
|
+
});
|
|
121
|
+
lastBlobMap.set(id, base64);
|
|
122
|
+
} else {
|
|
123
|
+
return worker.postMessage({ id: e.data.id });
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
})();
|
|
127
|
+
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
128
|
+
`,mi=typeof self<"u"&&self.Blob&&new Blob([sn],{type:"text/javascript;charset=utf-8"});function wa(e){let t;try{if(t=mi&&(self.URL||self.webkitURL).createObjectURL(mi),!t)throw"";const r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(sn),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class ba{constructor(t){I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",(o,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(o)||this.pendingCanvasMutations.set(o,[]),this.pendingCanvasMutations.get(o).push(p)});const{sampling:r="all",win:l,blockClass:s,blockSelector:f,recordCanvas:c,dataURLOptions:m}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,c&&r==="all"&&this.initCanvasMutationObserver(l,s,f),c&&typeof r=="number"&&this.initCanvasFPSObserver(r,l,s,f,{dataURLOptions:m})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,l,s,f){const c=pi(r,l,s,!0),m=new Map,o=new wa;o.onmessage=d=>{const{id:u}=d.data;if(m.set(u,!1),!("base64"in d.data))return;const{base64:g,type:v,width:b,height:S}=d.data;this.mutationCb({id:u,type:_e["2D"],commands:[{property:"clearRect",args:[0,0,b,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:g}],type:v}]},0,0]}]})};const p=1e3/t;let i=0,h;const a=()=>{const d=[];return r.document.querySelectorAll("canvas").forEach(u=>{te(u,l,s,!0)||d.push(u)}),d},n=d=>{if(i&&d-i<p){h=requestAnimationFrame(n);return}i=d,a().forEach(async u=>{var g;const v=this.mirror.getId(u);if(m.get(v)||u.width===0||u.height===0)return;if(m.set(v,!0),["webgl","webgl2"].includes(u.__context)){const S=u.getContext(u.__context);((g=S?.getContextAttributes())==null?void 0:g.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}const b=await createImageBitmap(u);o.postMessage({id:v,bitmap:b,width:u.width,height:u.height,dataURLOptions:f.dataURLOptions},[b])}),h=requestAnimationFrame(n)};h=requestAnimationFrame(n),this.resetObservers=()=>{c(),cancelAnimationFrame(h)}}initCanvasMutationObserver(t,r,l){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=pi(t,r,l,!1),f=ma(this.processMutation.bind(this),t,r,l),c=ya(this.processMutation.bind(this),t,r,l);this.resetObservers=()=>{s(),f(),c()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const l=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,l)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const l=this.pendingCanvasMutations.get(t);if(!l||r===-1)return;const s=l.map(c=>{const{type:m,...o}=c;return o}),{type:f}=l[0];this.mutationCb({id:r,type:f,commands:s}),this.pendingCanvasMutations.delete(t)}}class Sa{constructor(t){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new Wo),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const l={id:r,styleIds:[]},s=[];for(const f of t){let c;this.styleMirror.has(f)?c=this.styleMirror.getId(f):(c=this.styleMirror.add(f),s.push({styleId:c,rules:Array.from(f.rules||CSSRule,(m,o)=>({rule:bi(m,f.href),index:o}))})),l.styleIds.push(c)}s.length>0&&(l.styles=s),this.adoptedStyleSheetCb(l)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class va{constructor(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}inOtherBuffer(t,r){const l=this.nodeMap.get(t);return l&&Array.from(l).some(s=>s!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}}let J,et,Rr,lt=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Vr=e.contentWindow)==null?void 0:Vr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ce=En();function Oe(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:l,blockClass:s="rr-block",blockSelector:f=null,ignoreClass:c="rr-ignore",ignoreSelector:m=null,maskTextClass:o="rr-mask",maskTextSelector:p=null,inlineStylesheet:i=!0,maskAllInputs:h,maskInputOptions:a,slimDOMOptions:n,maskInputFn:d,maskTextFn:u,hooks:g,packFn:v,sampling:b={},dataURLOptions:S={},mousemoveWait:y,recordDOM:w=!0,recordCanvas:C=!1,recordCrossOriginIframes:x=!1,recordAfter:E=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:A=!1,collectFonts:O=!1,inlineImages:U=!1,plugins:k,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:_=new Set([]),errorHandler:se,applyBackgroundColorToBlockedElements:Z=!1}=e;Yo(se);const P=x?window.parent===window:!0;let W=!1;if(!P)try{window.parent.document&&(W=!1)}catch{W=!0}if(P&&!t)throw new Error("emit function is required");if(!P&&!W)return()=>{};y!==void 0&&b.mousemove===void 0&&(b.mousemove=y),ce.reset();const ie=h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:a!==void 0?a:{password:!0},$=n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:n==="all",headMetaDescKeywords:n==="all",headTitleMutations:n==="all"}:n||{};zo();let B,de=0;const M=N=>{for(const X of k||[])X.eventProcessor&&(N=X.eventProcessor(N));return v&&!W&&(N=v(N)),N};J=(N,X)=>{var G;const V=N;if(V.timestamp=ot(),(G=ve[0])!=null&&G.isFrozen()&&V.type!==F.FullSnapshot&&!(V.type===F.IncrementalSnapshot&&V.data.source===D.Mutation)&&ve.forEach(pe=>pe.unfreeze()),P)t?.(M(V),X);else if(W){const pe={type:"rrweb",event:M(V),origin:window.location.origin,isCheckout:X};window.parent.postMessage(pe,"*")}if(V.type===F.FullSnapshot)B=V,de=0;else if(V.type===F.IncrementalSnapshot){if(V.data.source===D.Mutation&&V.data.isAttachIframe)return;de++;const pe=l&&de>=l,z=r&&V.timestamp-B.timestamp>r;(pe||z)&&et(!0)}};const ne=N=>{J({type:F.IncrementalSnapshot,data:{source:D.Mutation,...N}})},oe=N=>J({type:F.IncrementalSnapshot,data:{source:D.Scroll,...N}}),Me=N=>J({type:F.IncrementalSnapshot,data:{source:D.CanvasMutation,...N}}),me=N=>J({type:F.IncrementalSnapshot,data:{source:D.AdoptedStyleSheet,...N}}),le=new Sa({mutationCb:ne,adoptedStyleSheetCb:me}),ue=new ca({mirror:ce,mutationCb:ne,stylesheetManager:le,recordCrossOriginIframes:x,wrappedEmit:J});for(const N of k||[])N.getMirror&&N.getMirror({nodeMirror:ce,crossOriginIframeMirror:ue.crossOriginIframeMirror,crossOriginIframeStyleMirror:ue.crossOriginIframeStyleMirror});const Se=new va;Rr=new ba({recordCanvas:C,mutationCb:Me,win:window,blockClass:s,blockSelector:f,mirror:ce,sampling:b.canvas,dataURLOptions:S});const Q=new ha({mutationCb:ne,scrollCb:oe,bypassOptions:{blockClass:s,blockSelector:f,maskTextClass:o,maskTextSelector:p,inlineStylesheet:i,maskInputOptions:ie,dataURLOptions:S,maskTextFn:u,maskInputFn:d,recordCanvas:C,inlineImages:U,sampling:b,slimDOMOptions:$,iframeManager:ue,stylesheetManager:le,canvasManager:Rr,keepIframeSrcFn:R,processedNodeManager:Se},mirror:ce});et=(N=!1)=>{if(!w)return;J({type:F.Meta,data:{href:window.location.href,width:Wi(),height:zi()}},N),le.reset(),Q.init(),ve.forEach(G=>G.lock());const X=Kn(document,{mirror:ce,blockClass:s,blockSelector:f,maskTextClass:o,maskTextSelector:p,inlineStylesheet:i,maskAllInputs:ie,maskTextFn:u,maskInputFn:d,slimDOM:$,dataURLOptions:S,recordCanvas:C,inlineImages:U,applyBackgroundColorToBlockedElements:Z,onSerialize:G=>{Hi(G,ce)&&ue.addIframe(G),Gi(G,ce)&&le.trackLinkElement(G),Er(G)&&Q.addShadowRoot(L.shadowRoot(G),document)},onIframeLoad:(G,V)=>{ue.attachIframe(G,V),Q.observeAttachShadow(G)},onStylesheetLoad:(G,V)=>{le.attachLinkElement(G,V)},keepIframeSrcFn:R});if(!X)return console.warn("Failed to snapshot the document");J({type:F.FullSnapshot,data:{node:X,initialOffset:Bi(window)}},N),ve.forEach(G=>G.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))};try{const N=[],X=V=>{var pe;return T(ua)({mutationCb:ne,mousemoveCb:(z,St)=>J({type:F.IncrementalSnapshot,data:{source:St,positions:z}}),mouseInteractionCb:z=>J({type:F.IncrementalSnapshot,data:{source:D.MouseInteraction,...z}}),scrollCb:oe,viewportResizeCb:z=>J({type:F.IncrementalSnapshot,data:{source:D.ViewportResize,...z}}),inputCb:z=>J({type:F.IncrementalSnapshot,data:{source:D.Input,...z}}),mediaInteractionCb:z=>J({type:F.IncrementalSnapshot,data:{source:D.MediaInteraction,...z}}),styleSheetRuleCb:z=>J({type:F.IncrementalSnapshot,data:{source:D.StyleSheetRule,...z}}),styleDeclarationCb:z=>J({type:F.IncrementalSnapshot,data:{source:D.StyleDeclaration,...z}}),canvasMutationCb:Me,fontCb:z=>J({type:F.IncrementalSnapshot,data:{source:D.Font,...z}}),selectionCb:z=>{J({type:F.IncrementalSnapshot,data:{source:D.Selection,...z}})},customElementCb:z=>{J({type:F.IncrementalSnapshot,data:{source:D.CustomElement,...z}})},blockClass:s,ignoreClass:c,ignoreSelector:m,maskTextClass:o,maskTextSelector:p,maskInputOptions:ie,inlineStylesheet:i,sampling:b,recordDOM:w,recordCanvas:C,inlineImages:U,userTriggeredOnInput:A,collectFonts:O,doc:V,maskInputFn:d,maskTextFn:u,keepIframeSrcFn:R,blockSelector:f,slimDOMOptions:$,dataURLOptions:S,mirror:ce,iframeManager:ue,stylesheetManager:le,shadowDomManager:Q,processedNodeManager:Se,canvasManager:Rr,ignoreCSSAttributes:_,plugins:((pe=k?.filter(z=>z.observer))==null?void 0:pe.map(z=>({observer:z.observer,options:z.options,callback:St=>J({type:F.Plugin,data:{plugin:z.name,payload:St}})})))||[]},g)};ue.addLoadListener(V=>{try{N.push(X(V.contentDocument))}catch(pe){console.warn(pe)}});const G=()=>{et(),N.push(X(document)),lt=!0};return document.readyState==="interactive"||document.readyState==="complete"?G():(N.push(ee("DOMContentLoaded",()=>{J({type:F.DomContentLoaded,data:{}}),E==="DOMContentLoaded"&&G()})),N.push(ee("load",()=>{J({type:F.Load,data:{}}),E==="load"&&G()},window))),()=>{N.forEach(V=>V()),Se.destroy(),lt=!1,Qo()}}catch(N){console.warn(N)}}Oe.addCustomEvent=(e,t)=>{if(!lt)throw new Error("please add custom event after start recording");J({type:F.Custom,data:{tag:e,payload:t}})};Oe.freezePage=()=>{ve.forEach(e=>e.freeze())};Oe.takeFullSnapshot=e=>{if(!lt)throw new Error("please take full snapshot after start recording");et(e)};Oe.mirror=ce;var gi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(gi||(gi={}));const{addCustomEvent:Ca}=Oe,{freezePage:xa}=Oe,{takeFullSnapshot:Ra}=Oe;export{Oe as record};
|
|
129
|
+
//# sourceMappingURL=rrweb-record-CMVXB7aO.js.map
|