@xpert-ai/chatkit-ui 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/{CodeEditor-BMd8uMGB.js → CodeEditor-CkEfOT9Y.js} +1 -1
- package/dist/app/assets/{DocxEditor-hvscWnw3.js → DocxEditor-yTTKzj6U.js} +4 -4
- package/dist/app/assets/{FileChangeReview-B7VqQsRG.js → FileChangeReview-C7gyCK_j.js} +3 -3
- package/dist/app/assets/{PptxEditor-DcI05MK8.js → PptxEditor-BRsbM1NU.js} +3 -3
- package/dist/app/assets/{SpreadsheetEditor-Hb6fJwdq.js → SpreadsheetEditor-DeP_NBKx.js} +1 -1
- package/dist/app/assets/{UTIF-0ZuTiCmi.js → UTIF-Df_VEwu2.js} +1 -1
- package/dist/app/assets/{WorkbenchTerminal-B6mzbO1J.js → WorkbenchTerminal-CyU1b2ua.js} +1 -1
- package/dist/app/assets/{_baseUniq-zNCkWRMr.js → _baseUniq-BItsX9dZ.js} +1 -1
- package/dist/app/assets/{abap-FxzxrGv_.js → abap-CqbAP5VJ.js} +1 -1
- package/dist/app/assets/{abnf-D2EwS92z.js → abnf-chpMxV7i.js} +1 -1
- package/dist/app/assets/{actionscript-DIvGV2CG.js → actionscript-iDizYOyI.js} +1 -1
- package/dist/app/assets/{ada-CXudAkdO.js → ada-BwR_piCn.js} +1 -1
- package/dist/app/assets/{agda-CPKosats.js → agda-DItghU1v.js} +1 -1
- package/dist/app/assets/{al-AB79aqpn.js → al-Cn9iRklY.js} +1 -1
- package/dist/app/assets/{antlr4-D33lkC_v.js → antlr4-BHaybfLu.js} +1 -1
- package/dist/app/assets/{apacheconf-DGA1W1V0.js → apacheconf-7G1Isose.js} +1 -1
- package/dist/app/assets/{apex-DOMf3QQT.js → apex-B2q1-VZ0.js} +1 -1
- package/dist/app/assets/{apl-DIjPkMHh.js → apl-C_Bt1fXt.js} +1 -1
- package/dist/app/assets/{applescript-Tql-0emq.js → applescript-ClCAsCUD.js} +1 -1
- package/dist/app/assets/{aql-DnnhTsbR.js → aql-BHKh6tsA.js} +1 -1
- package/dist/app/assets/{arc-C3DyEbZE.js → arc-B1u5aHAj.js} +1 -1
- package/dist/app/assets/{architectureDiagram-Q4EWVU46-CM8SyLAE.js → architectureDiagram-Q4EWVU46-BwM5Ih-e.js} +1 -1
- package/dist/app/assets/{arduino-DCy67jnp.js → arduino-Cvs7MW6d.js} +1 -1
- package/dist/app/assets/{arff-ChjrA-MP.js → arff-BtQEt-w-.js} +1 -1
- package/dist/app/assets/{asciidoc-CtZoH7c-.js → asciidoc-BWsNKxsy.js} +1 -1
- package/dist/app/assets/{asm6502-BKzW1Pnl.js → asm6502-B3tFsA7S.js} +1 -1
- package/dist/app/assets/{asmatmel-Bk2fugE5.js → asmatmel-DMJIAcxu.js} +1 -1
- package/dist/app/assets/{aspnet-Co_luXPl.js → aspnet-BZjQxYxl.js} +1 -1
- package/dist/app/assets/{autohotkey-WrAoOh8o.js → autohotkey-CcncmCqi.js} +1 -1
- package/dist/app/assets/{autoit-f3t6GtB5.js → autoit-BK9NxDra.js} +1 -1
- package/dist/app/assets/{avisynth-wSIQUVWg.js → avisynth-DPzTZVZd.js} +1 -1
- package/dist/app/assets/{avro-idl-BkrpSKsz.js → avro-idl-C8vSamJL.js} +1 -1
- package/dist/app/assets/{bash-bVgzw1Yx.js → bash-BuICApby.js} +1 -1
- package/dist/app/assets/{basic-BNXe4Ydo.js → basic-CNU-aVUM.js} +1 -1
- package/dist/app/assets/{batch-CB4G1LnU.js → batch-Dh0g3bad.js} +1 -1
- package/dist/app/assets/{bbcode-DxDWYiQ7.js → bbcode-BMnS1Ogt.js} +1 -1
- package/dist/app/assets/{bicep-oVPIz-U_.js → bicep-Dr2QNZIE.js} +1 -1
- package/dist/app/assets/{birb-B2qIZ0Q3.js → birb-BBpAn9_Z.js} +1 -1
- package/dist/app/assets/{bison-ZnRkUusp.js → bison-DyCzjhCr.js} +1 -1
- package/dist/app/assets/{blockDiagram-DXYQGD6D-IGvs0ReR.js → blockDiagram-DXYQGD6D-Da4FDDlD.js} +1 -1
- package/dist/app/assets/{bnf-BGvR1KgO.js → bnf-BjCmHNl7.js} +1 -1
- package/dist/app/assets/{brainfuck-BHWevSod.js → brainfuck-D_ad5ykV.js} +1 -1
- package/dist/app/assets/{brightscript-BMNxpOzO.js → brightscript-BOuFomnC.js} +1 -1
- package/dist/app/assets/{bro-Cy9xesxi.js → bro-bwbGAIPn.js} +1 -1
- package/dist/app/assets/{bsl-BGUzfBpl.js → bsl-Cd0OZu50.js} +1 -1
- package/dist/app/assets/{c-DXwSYCfZ.js → c-C4qH8P7e.js} +1 -1
- package/dist/app/assets/{c4Diagram-AHTNJAMY-DavZ5kER.js → c4Diagram-AHTNJAMY-Dt-tX7hp.js} +1 -1
- package/dist/app/assets/{cfscript-EVB8CcgT.js → cfscript-BtLuAap6.js} +1 -1
- package/dist/app/assets/{chaiscript-gMZkcA9A.js → chaiscript-DfhI4vFK.js} +1 -1
- package/dist/app/assets/channel-CwNVZCQ4.js +1 -0
- package/dist/app/assets/{chunk-4BX2VUAB-C_C-m_br.js → chunk-4BX2VUAB-DErkZghS.js} +1 -1
- package/dist/app/assets/{chunk-4TB4RGXK-CMVYK06B.js → chunk-4TB4RGXK-9syV4RA8.js} +1 -1
- package/dist/app/assets/{chunk-55IACEB6-0kwMzVtH.js → chunk-55IACEB6-CkYTIvmQ.js} +1 -1
- package/dist/app/assets/{chunk-EDXVE4YY-C4_HNDvP.js → chunk-EDXVE4YY-w1lS6MjE.js} +1 -1
- package/dist/app/assets/{chunk-FMBD7UC4-XQBzbmTs.js → chunk-FMBD7UC4-CQae_nTG.js} +1 -1
- package/dist/app/assets/{chunk-OYMX7WX6-BhW-fjK3.js → chunk-OYMX7WX6-DQPwcOqP.js} +1 -1
- package/dist/app/assets/{chunk-QZHKN3VN-CUJJGTFt.js → chunk-QZHKN3VN-CUPf69en.js} +1 -1
- package/dist/app/assets/{chunk-YZCP3GAM-B1dvKRQu.js → chunk-YZCP3GAM-DZ2w0Uo6.js} +1 -1
- package/dist/app/assets/{cil-DhzXB_r0.js → cil-BA-UuYDm.js} +1 -1
- package/dist/app/assets/classDiagram-6PBFFD2Q-BfUAwFzn.js +1 -0
- package/dist/app/assets/classDiagram-v2-HSJHXN6E-BfUAwFzn.js +1 -0
- package/dist/app/assets/{clike-Bp8whLVh.js → clike-CkrJIoXf.js} +1 -1
- package/dist/app/assets/{clojure-DS2n7X9D.js → clojure-De7zisG7.js} +1 -1
- package/dist/app/assets/clone-DmP83D3u.js +1 -0
- package/dist/app/assets/{cmake-C1nCIHl1.js → cmake-Dtpiq6V_.js} +1 -1
- package/dist/app/assets/{cobol-D-aVthhQ.js → cobol-DlKH8b_d.js} +1 -1
- package/dist/app/assets/{coffeescript-BiyiruO-.js → coffeescript-C20eNRop.js} +1 -1
- package/dist/app/assets/{concurnas-BRqgzWKh.js → concurnas-CkwZbl3G.js} +1 -1
- package/dist/app/assets/{coq-Dx6r_1E-.js → coq-BJqm-Vwq.js} +1 -1
- package/dist/app/assets/{core-B9Ndd9Sb.js → core-BeYgHLnP.js} +1 -1
- package/dist/app/assets/{cose-bilkent-S5V4N54A-BIV35Ny_.js → cose-bilkent-S5V4N54A-ZQRpbJ-9.js} +1 -1
- package/dist/app/assets/{cpp-BNAevxHX.js → cpp-CCK-QhpZ.js} +1 -1
- package/dist/app/assets/{crystal-C69D8bsr.js → crystal-D1WMkcyR.js} +1 -1
- package/dist/app/assets/{csharp-DMD3WU2G.js → csharp-CeaNoGzT.js} +1 -1
- package/dist/app/assets/{cshtml-CJzbtnPi.js → cshtml-COTvhMwv.js} +1 -1
- package/dist/app/assets/{csp-CTYsC3im.js → csp-Dtt7oi-z.js} +1 -1
- package/dist/app/assets/{css-4wm7kjkC.js → css-A1NYvfcV.js} +1 -1
- package/dist/app/assets/{css-extras-BgRI9psb.js → css-extras-DSsOd8f_.js} +1 -1
- package/dist/app/assets/{csv-DSLo0eXd.js → csv-BrdkiUQb.js} +1 -1
- package/dist/app/assets/{cypher-B0bKnH-a.js → cypher-MWVOm8yN.js} +1 -1
- package/dist/app/assets/{d-CiBfx57T.js → d-BpOrYr7d.js} +1 -1
- package/dist/app/assets/{dagre-KV5264BT-t8MgsKTV.js → dagre-KV5264BT-BrSuD7-U.js} +1 -1
- package/dist/app/assets/{dart-Cb7rlZ2e.js → dart-C0GBSKHy.js} +1 -1
- package/dist/app/assets/{dataweave-D1owu29v.js → dataweave-BaRmBwDh.js} +1 -1
- package/dist/app/assets/{dax-BF9Ir7-J.js → dax-D9knB6HK.js} +1 -1
- package/dist/app/assets/{dhall-BnQ8k0M9.js → dhall-CRtWuM7k.js} +1 -1
- package/dist/app/assets/{diagram-5BDNPKRD-BDWynrjl.js → diagram-5BDNPKRD-Dg_BPUr3.js} +1 -1
- package/dist/app/assets/{diagram-G4DWMVQ6-MAE_lQOE.js → diagram-G4DWMVQ6-CuNG3uS8.js} +1 -1
- package/dist/app/assets/{diagram-MMDJMWI5-IHJtjsaw.js → diagram-MMDJMWI5-gyjqG3UJ.js} +1 -1
- package/dist/app/assets/{diagram-TYMM5635-Vd0KV2Dg.js → diagram-TYMM5635-BOBArauA.js} +1 -1
- package/dist/app/assets/{diff-BNRQhA_b.js → diff-1jXFAE9-.js} +1 -1
- package/dist/app/assets/{dist-PKZR6RSH-CLGtZTqg.js → dist-PKZR6RSH-CihMZwfS.js} +1 -1
- package/dist/app/assets/{django-zsC7SSCl.js → django-B8Fvwagw.js} +1 -1
- package/dist/app/assets/{dns-zone-file-C3IhsU8v.js → dns-zone-file-eYrA3DMk.js} +1 -1
- package/dist/app/assets/{docker-JEH9Kikw.js → docker-DcwG3M3S.js} +1 -1
- package/dist/app/assets/{dot-C7urzMKu.js → dot-7LgW6Pxt.js} +1 -1
- package/dist/app/assets/{ebnf-BMx_o1k8.js → ebnf-BIBhxWki.js} +1 -1
- package/dist/app/assets/{editorconfig-CW9m_PZG.js → editorconfig-aS9yZiII.js} +1 -1
- package/dist/app/assets/{eiffel-441GzAvA.js → eiffel-CbtB_wg4.js} +1 -1
- package/dist/app/assets/{ejs-DHcmqbA6.js → ejs-CAyJOUgz.js} +1 -1
- package/dist/app/assets/{elixir-CZtkyA_h.js → elixir-CJTRbv1S.js} +1 -1
- package/dist/app/assets/{elm-ChJkcckU.js → elm-rs-d6fza.js} +1 -1
- package/dist/app/assets/{erDiagram-SMLLAGMA-D1dwPtMQ.js → erDiagram-SMLLAGMA-cwYzboAh.js} +1 -1
- package/dist/app/assets/{erb-BdooSGIB.js → erb-CUzxl3q1.js} +1 -1
- package/dist/app/assets/{erlang-Ds-OZylg.js → erlang-B9-MMmZw.js} +1 -1
- package/dist/app/assets/{etlua-BEY70xf6.js → etlua-BolNWEL6.js} +1 -1
- package/dist/app/assets/{excel-formula-DsTqG-tz.js → excel-formula-Dgpq9kjo.js} +1 -1
- package/dist/app/assets/{factor-DdV038qZ.js → factor-BWuJXGFq.js} +1 -1
- package/dist/app/assets/{false-DzLciyDd.js → false-D-oTDaaL.js} +1 -1
- package/dist/app/assets/{firestore-security-rules-DdFk1xxf.js → firestore-security-rules-BraxdQEs.js} +1 -1
- package/dist/app/assets/{flow-DnXddxaF.js → flow-BPYSMfYG.js} +1 -1
- package/dist/app/assets/{flowDiagram-DWJPFMVM-CMl61c9m.js → flowDiagram-DWJPFMVM-DgzkJClR.js} +1 -1
- package/dist/app/assets/{fortran-DosDnVNK.js → fortran-T_iQIE2B.js} +1 -1
- package/dist/app/assets/{fsharp-Wz_WfWqS.js → fsharp-DqD5OmJK.js} +1 -1
- package/dist/app/assets/{ftl-TeerKn0Z.js → ftl-BovgQIrB.js} +1 -1
- package/dist/app/assets/{ganttDiagram-T4ZO3ILL-BeB_sCH7.js → ganttDiagram-T4ZO3ILL-CBzD8A0w.js} +1 -1
- package/dist/app/assets/{gap-BCKVBhy2.js → gap-85TS250G.js} +1 -1
- package/dist/app/assets/{gcode-CVLqDAV3.js → gcode-BW6Qk-5-.js} +1 -1
- package/dist/app/assets/{gdscript-Md3Pew6i.js → gdscript-CLxmTRf5.js} +1 -1
- package/dist/app/assets/{gedcom-vq4c5Mhz.js → gedcom-Cb7Ao7zc.js} +1 -1
- package/dist/app/assets/{gherkin-DLMAVDHb.js → gherkin-BJuAxsMs.js} +1 -1
- package/dist/app/assets/{git-Ddppbzmg.js → git-C2pBzbsu.js} +1 -1
- package/dist/app/assets/{gitGraphDiagram-UUTBAWPF-KMhChbCu.js → gitGraphDiagram-UUTBAWPF-_tqBjJON.js} +1 -1
- package/dist/app/assets/{glsl-BA_4Uw6h.js → glsl-CC9Lx2uz.js} +1 -1
- package/dist/app/assets/{gml-C8mWZW1o.js → gml-Cb4YXigx.js} +1 -1
- package/dist/app/assets/{gn-91bO-la4.js → gn-kQb5aGb5.js} +1 -1
- package/dist/app/assets/{go-CvRVEV_l.js → go-DNAlVb2O.js} +1 -1
- package/dist/app/assets/{go-module-_Icv0nZv.js → go-module-C_VDBUP4.js} +1 -1
- package/dist/app/assets/{graph-DUSo9Sje.js → graph-RvCEEoBA.js} +1 -1
- package/dist/app/assets/{graphql-BW8LUdqC.js → graphql-W05aJ9xQ.js} +1 -1
- package/dist/app/assets/{groovy-ywYXeaQB.js → groovy-DHhMsfeb.js} +1 -1
- package/dist/app/assets/{haml-CSzhwz9e.js → haml-D-E4bZH-.js} +1 -1
- package/dist/app/assets/{handlebars-CTU4xa_2.js → handlebars-CscBBTqv.js} +1 -1
- package/dist/app/assets/{haskell-COx8jem2.js → haskell-zlEk3XCa.js} +1 -1
- package/dist/app/assets/{haxe-4IhqmVsu.js → haxe-DStWUlo8.js} +1 -1
- package/dist/app/assets/{hcl-DL1FUuBN.js → hcl-Cz7FUhgX.js} +1 -1
- package/dist/app/assets/{hlsl-CRyhDjW0.js → hlsl-C_iG3tnK.js} +1 -1
- package/dist/app/assets/{hoon-D8rd1Z96.js → hoon-CP_MZxgs.js} +1 -1
- package/dist/app/assets/{hpkp-C-9xmxq3.js → hpkp-ex07fbEj.js} +1 -1
- package/dist/app/assets/{hsts-CdisgsQe.js → hsts-BPQ_l1UN.js} +1 -1
- package/dist/app/assets/{http-D6DbkYMj.js → http-OrRAX_xg.js} +1 -1
- package/dist/app/assets/{ichigojam-DhDIPquW.js → ichigojam-_EHo3Vus.js} +1 -1
- package/dist/app/assets/{icon-DCWiFL2p.js → icon-D--jckSQ.js} +1 -1
- package/dist/app/assets/{icu-message-format-qlzAVFtk.js → icu-message-format-BLzJeT5b.js} +1 -1
- package/dist/app/assets/{idris-CuifC-Ea.js → idris-m5bn3p8K.js} +1 -1
- package/dist/app/assets/{iecst-DZTSS_Mx.js → iecst-C3iDlseF.js} +1 -1
- package/dist/app/assets/{ignore-HIsAm8c8.js → ignore-jQg1pBvx.js} +1 -1
- package/dist/app/assets/{index-D0YKTBe8.js → index-zFXf25RZ.js} +189 -189
- package/dist/app/assets/{infoDiagram-42DDH7IO-XzzxMfvC.js → infoDiagram-42DDH7IO-Co6iBt5T.js} +1 -1
- package/dist/app/assets/{inform7-CiVe6C4f.js → inform7-D5m58Y4T.js} +1 -1
- package/dist/app/assets/{ini-DbnIcvok.js → ini-U99GmdZD.js} +1 -1
- package/dist/app/assets/{io-BDrIfcxa.js → io-3ii9gOuT.js} +1 -1
- package/dist/app/assets/{ishikawaDiagram-UXIWVN3A-D9s4eo9i.js → ishikawaDiagram-UXIWVN3A-4dAZpmVu.js} +1 -1
- package/dist/app/assets/{j-BGt4pQcu.js → j-DeoVcD4r.js} +1 -1
- package/dist/app/assets/{java-CHPYmuYh.js → java-DhS74ZiS.js} +1 -1
- package/dist/app/assets/{javadoc-BDYK__NB.js → javadoc-D_UUB6dm.js} +1 -1
- package/dist/app/assets/{javadoclike-D6NiEMXI.js → javadoclike-BoEjGF-R.js} +1 -1
- package/dist/app/assets/{javascript-qytty7K5.js → javascript-p3NQWzRq.js} +1 -1
- package/dist/app/assets/{javastacktrace-X-IcFPNl.js → javastacktrace-D4FIcAET.js} +1 -1
- package/dist/app/assets/{jexl-ByKXqTel.js → jexl-DmvRiAUk.js} +1 -1
- package/dist/app/assets/{jolie-TvvsyTgo.js → jolie-B0b5yOXD.js} +1 -1
- package/dist/app/assets/{journeyDiagram-VCZTEJTY-CNdVUup1.js → journeyDiagram-VCZTEJTY-Bor603I6.js} +1 -1
- package/dist/app/assets/{jq-BlWlwz2r.js → jq-DBpc5y5q.js} +1 -1
- package/dist/app/assets/{js-extras-iKDTA1qk.js → js-extras-BitHRC94.js} +1 -1
- package/dist/app/assets/{js-templates-CZgxIp76.js → js-templates-bAbwg7K4.js} +1 -1
- package/dist/app/assets/{jsdoc-Mosrl0Yy.js → jsdoc-CHov7UEh.js} +1 -1
- package/dist/app/assets/{json-Dg8fLZwo.js → json-B-UgUOcv.js} +1 -1
- package/dist/app/assets/{json5-CBfBGp9T.js → json5-CCSh4M_u.js} +1 -1
- package/dist/app/assets/{jsonp-BG40RAdB.js → jsonp-2gpJDalc.js} +1 -1
- package/dist/app/assets/{jsstacktrace-CipEiBvr.js → jsstacktrace-YhInxKZX.js} +1 -1
- package/dist/app/assets/{jsx-ymh1q22x.js → jsx-D1UpiF2P.js} +1 -1
- package/dist/app/assets/{jszip.min-DSgmDoy9.js → jszip.min-Dt-AHYC0.js} +1 -1
- package/dist/app/assets/{julia-vnOiDr5f.js → julia-CyjWo2i8.js} +1 -1
- package/dist/app/assets/{kanban-definition-6JOO6SKY-MGGBnrXG.js → kanban-definition-6JOO6SKY-U-hYiLA-.js} +1 -1
- package/dist/app/assets/{keepalived-hb8WtW0H.js → keepalived-BYriwcGy.js} +1 -1
- package/dist/app/assets/{keyman-DUm3IQsC.js → keyman-34br4hCO.js} +1 -1
- package/dist/app/assets/{kotlin-CdURhZiu.js → kotlin-Bkqpta0R.js} +1 -1
- package/dist/app/assets/{kumir-BjnIsauc.js → kumir-DWXuCeXz.js} +1 -1
- package/dist/app/assets/{kusto-DL2yehMT.js → kusto-0O4e57D9.js} +1 -1
- package/dist/app/assets/{latex-Dug78S0w.js → latex-CMlF4dEe.js} +1 -1
- package/dist/app/assets/{latte-BScBfZxd.js → latte-D1e6h-zD.js} +1 -1
- package/dist/app/assets/{layout-gq0zpE_E.js → layout-eGBUxe5W.js} +1 -1
- package/dist/app/assets/{less-BLwwHp2U.js → less-C13T9UPd.js} +1 -1
- package/dist/app/assets/{lilypond-9n9xTIJ4.js → lilypond-Dn5zAXrr.js} +1 -1
- package/dist/app/assets/{linear-DJDekCN_.js → linear-DgFEqEXs.js} +1 -1
- package/dist/app/assets/{liquid-BbVeJmK_.js → liquid-C-Pt_Vny.js} +1 -1
- package/dist/app/assets/{lisp-CFSGFBAA.js → lisp-BO5glOUn.js} +1 -1
- package/dist/app/assets/{livescript-Cat7VUY0.js → livescript-Dd6zEmXh.js} +1 -1
- package/dist/app/assets/{llvm-BZY36CvO.js → llvm-CYjba539.js} +1 -1
- package/dist/app/assets/{log-Z7bD7Dm2.js → log-a0wt7bko.js} +1 -1
- package/dist/app/assets/{lolcode-BcdEaoXf.js → lolcode-0JFVhyfh.js} +1 -1
- package/dist/app/assets/{lua-CIMWuOWn.js → lua-DRO0x4Co.js} +1 -1
- package/dist/app/assets/{magma-BFW4G9Ie.js → magma-bkMcN84t.js} +1 -1
- package/dist/app/assets/{makefile-6wOxKuUZ.js → makefile-CsXB54hy.js} +1 -1
- package/dist/app/assets/{markdown-B6JNRyIW.js → markdown-Ca3OokvM.js} +1 -1
- package/dist/app/assets/{markup-ClXJVXkw.js → markup-C11HSQJl.js} +1 -1
- package/dist/app/assets/{markup-templating-CJ-wLX4_.js → markup-templating-CWaNNuuv.js} +1 -1
- package/dist/app/assets/{matlab-D_niiE2O.js → matlab-BHxkh0cK.js} +1 -1
- package/dist/app/assets/{maxscript-pus5rJ_0.js → maxscript-CenV4s5A.js} +1 -1
- package/dist/app/assets/{mel-ZdRcVFP0.js → mel-D5b9wd9J.js} +1 -1
- package/dist/app/assets/{mermaid-BDnR9Ohc.js → mermaid-DpwUW522.js} +1 -1
- package/dist/app/assets/{min-BbOq_n6W.js → min-ZXeeloXH.js} +1 -1
- package/dist/app/assets/{mindmap-definition-QFDTVHPH-DpIvQAhR.js → mindmap-definition-QFDTVHPH-DJd5id_i.js} +1 -1
- package/dist/app/assets/{mizar-xsXyQ6rQ.js → mizar-DklHxYKD.js} +1 -1
- package/dist/app/assets/{mongodb-BTgL3ZWT.js → mongodb-BG3ojuXH.js} +1 -1
- package/dist/app/assets/{monkey-F9znNaXb.js → monkey-VpryXw-8.js} +1 -1
- package/dist/app/assets/{moonscript-BVOnwLtu.js → moonscript-D76ynE1M.js} +1 -1
- package/dist/app/assets/{n1ql-CTJLY5PH.js → n1ql-C3IMeS46.js} +1 -1
- package/dist/app/assets/{n4js-DtbwPzA6.js → n4js-Cvjzz6v5.js} +1 -1
- package/dist/app/assets/{nand2tetris-hdl-C53Xsmj_.js → nand2tetris-hdl-CGK2rJb_.js} +1 -1
- package/dist/app/assets/{naniscript-5XkMf0Gg.js → naniscript-z5gCYRIw.js} +1 -1
- package/dist/app/assets/{nasm-BFvvM3DJ.js → nasm-DuSg-eT9.js} +1 -1
- package/dist/app/assets/{neon-ChSQ8_23.js → neon-Djjs3REP.js} +1 -1
- package/dist/app/assets/{nevod-BjKo9A7p.js → nevod-CN5G_5rU.js} +1 -1
- package/dist/app/assets/{nginx-LeCIbnrg.js → nginx-BWWt8A1j.js} +1 -1
- package/dist/app/assets/{nim-4dNKlvi_.js → nim-HOSGhPSy.js} +1 -1
- package/dist/app/assets/{nix-CI3vYyZf.js → nix-D12N_kci.js} +1 -1
- package/dist/app/assets/{nsis-BCXMhWuQ.js → nsis-B1v-kqJf.js} +1 -1
- package/dist/app/assets/{objectivec-CBNQ964u.js → objectivec-Brgm4idR.js} +1 -1
- package/dist/app/assets/{ocaml-CreqCcvn.js → ocaml-7vtyt6C7.js} +1 -1
- package/dist/app/assets/{opencl-U00h5NuL.js → opencl-1Y6L_YpV.js} +1 -1
- package/dist/app/assets/{openqasm-5JmoAEK_.js → openqasm-C3cbIpYJ.js} +1 -1
- package/dist/app/assets/{oz-ByO6sRj5.js → oz-DuJJROqC.js} +1 -1
- package/dist/app/assets/{parigp-BWsCdOUG.js → parigp-CqzuXo0B.js} +1 -1
- package/dist/app/assets/{parser-D1DiUamc.js → parser-DPIFi1zk.js} +1 -1
- package/dist/app/assets/{pascal-BemGcm18.js → pascal-8jBCOys9.js} +1 -1
- package/dist/app/assets/{pascaligo-Co4F9g0w.js → pascaligo-BYAmePB4.js} +1 -1
- package/dist/app/assets/{pcaxis-b_4ajNUm.js → pcaxis-CH_jwvLo.js} +1 -1
- package/dist/app/assets/{peoplecode-CY7MbA6u.js → peoplecode-BCEe26dc.js} +1 -1
- package/dist/app/assets/{perl-CKQA8rPB.js → perl-CfyL0fkk.js} +1 -1
- package/dist/app/assets/{php-C-5V30Sh.js → php-BEdNzSLG.js} +1 -1
- package/dist/app/assets/{php-extras-C9xN5vf_.js → php-extras-Cdo7FfZH.js} +1 -1
- package/dist/app/assets/{phpdoc-CFxW1Wxv.js → phpdoc-5uiCeBAb.js} +1 -1
- package/dist/app/assets/{pieDiagram-DEJITSTG-DgRh7Zap.js → pieDiagram-DEJITSTG-5Xgf1apo.js} +1 -1
- package/dist/app/assets/{plsql-CUKGtN80.js → plsql-CaFGgNQX.js} +1 -1
- package/dist/app/assets/{powerquery-BA3fVcGH.js → powerquery-U6G7w8j2.js} +1 -1
- package/dist/app/assets/{powershell-Y_JLkq70.js → powershell-BEQa27Pd.js} +1 -1
- package/dist/app/assets/{processing-BKwdaseE.js → processing-CPJVmlX3.js} +1 -1
- package/dist/app/assets/{prolog-HM24nA-k.js → prolog-DQ4S2uId.js} +1 -1
- package/dist/app/assets/{promql-OVtibSyw.js → promql-DHu3TLQW.js} +1 -1
- package/dist/app/assets/{properties-Bw8iDk08.js → properties-BEEa0JNa.js} +1 -1
- package/dist/app/assets/{protobuf-DfDNnn1n.js → protobuf-DnIXDpDi.js} +1 -1
- package/dist/app/assets/{psl-C4A_FgBY.js → psl-D6F0X7gI.js} +1 -1
- package/dist/app/assets/{pug-Bbo_gUmT.js → pug-usp0TnS_.js} +1 -1
- package/dist/app/assets/{puppet-DKuYrmko.js → puppet-CCmIBC5o.js} +1 -1
- package/dist/app/assets/{pure-BbBX4Ygi.js → pure-CxW_7PSX.js} +1 -1
- package/dist/app/assets/{purebasic-DDk2f6p7.js → purebasic-CUlLSqEL.js} +1 -1
- package/dist/app/assets/{purescript-DAyc5SMt.js → purescript-DIdsMdqD.js} +1 -1
- package/dist/app/assets/{q-05YeV9ON.js → q-r79YD-RS.js} +1 -1
- package/dist/app/assets/{qml-Bcp3grlx.js → qml-BC7wMM6Q.js} +1 -1
- package/dist/app/assets/{qore-DyXDLOB2.js → qore-WxsAKgCD.js} +1 -1
- package/dist/app/assets/{qsharp-CJerorSH.js → qsharp-D7lLZD3n.js} +1 -1
- package/dist/app/assets/{quadrantDiagram-34T5L4WZ-B8WY1LsE.js → quadrantDiagram-34T5L4WZ-DTIcGAOk.js} +1 -1
- package/dist/app/assets/{r-Bk-EmTE-.js → r-P0CM9urb.js} +1 -1
- package/dist/app/assets/{racket-Bm9RxNSE.js → racket-DVeucTFY.js} +1 -1
- package/dist/app/assets/{reason-ByxYflge.js → reason-BgQvAQAD.js} +1 -1
- package/dist/app/assets/{regex-n3Pg4C2o.js → regex-sqaSbvSv.js} +1 -1
- package/dist/app/assets/{rego-sND5xFsX.js → rego-CJIg56LF.js} +1 -1
- package/dist/app/assets/{renpy-Dw3awaxL.js → renpy-_gDjY0Al.js} +1 -1
- package/dist/app/assets/{requirementDiagram-MS252O5E-C28I-Qs_.js → requirementDiagram-MS252O5E-CE7JMmce.js} +1 -1
- package/dist/app/assets/{rest-DUyjihZy.js → rest-CiU1bgMd.js} +1 -1
- package/dist/app/assets/{rip-DQD1PpI1.js → rip-DggWyO7M.js} +1 -1
- package/dist/app/assets/{roboconf-zgTRBG-b.js → roboconf-CSJ0x616.js} +1 -1
- package/dist/app/assets/{robotframework-DeFCJe2B.js → robotframework-CDF7dCNt.js} +1 -1
- package/dist/app/assets/{ruby-DGxfrUjf.js → ruby-DiJ0PRoD.js} +1 -1
- package/dist/app/assets/{rust-Dw2emRbt.js → rust-BFlAZ4n1.js} +1 -1
- package/dist/app/assets/{sankeyDiagram-XADWPNL6-B0mHlnDH.js → sankeyDiagram-XADWPNL6-C6L2VVck.js} +1 -1
- package/dist/app/assets/{sas-9J3OAgqN.js → sas-Cqi8ANTk.js} +1 -1
- package/dist/app/assets/{sass-BQsiGIZh.js → sass-Fcz-_iW-.js} +1 -1
- package/dist/app/assets/{scala-fVID0vPk.js → scala-CxvM-FLQ.js} +1 -1
- package/dist/app/assets/{scheme-KCB1LwX_.js → scheme-kpBg6tVA.js} +1 -1
- package/dist/app/assets/{scss-BgSYJF8F.js → scss-DXz1iRbh.js} +1 -1
- package/dist/app/assets/{sequenceDiagram-FGHM5R23-D5LSBA72.js → sequenceDiagram-FGHM5R23-x40S7kZo.js} +1 -1
- package/dist/app/assets/{shell-session-DmBypuZB.js → shell-session-DFP85I_o.js} +1 -1
- package/dist/app/assets/{smali-2I2f2uV2.js → smali-B-rVIGx2.js} +1 -1
- package/dist/app/assets/{smalltalk-xmEVtq3b.js → smalltalk-DZhpacIf.js} +1 -1
- package/dist/app/assets/{smarty-DuVe4-fD.js → smarty-BYkPoV7-.js} +1 -1
- package/dist/app/assets/{sml-Bb5jOVPw.js → sml-Bpl2hT9d.js} +1 -1
- package/dist/app/assets/{solidity-7DS3rQ0f.js → solidity-m14I6_Ub.js} +1 -1
- package/dist/app/assets/{solution-file-DpitFDwQ.js → solution-file-lgJK1sXF.js} +1 -1
- package/dist/app/assets/{soy-xa62VSYb.js → soy-CmkNlVMo.js} +1 -1
- package/dist/app/assets/{sparql-nIdLKdzE.js → sparql-C8X9qBCV.js} +1 -1
- package/dist/app/assets/{splunk-spl-DT8vzqTd.js → splunk-spl-D340jzbt.js} +1 -1
- package/dist/app/assets/{sqf-D_J1wPSO.js → sqf-Cy9hNmyR.js} +1 -1
- package/dist/app/assets/{sql-BXPs4lkf.js → sql-BuosKQRc.js} +1 -1
- package/dist/app/assets/{squirrel-Bt2TOoZD.js → squirrel-8Uir-D81.js} +1 -1
- package/dist/app/assets/{stan-bh8Ffooh.js → stan-DwOB-m45.js} +1 -1
- package/dist/app/assets/{stateDiagram-FHFEXIEX-DNkKFWr2.js → stateDiagram-FHFEXIEX-eK4Mr2m1.js} +1 -1
- package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-C3M7UFxa.js +1 -0
- package/dist/app/assets/{stylus-BAUtbs2c.js → stylus-D9o8ycmV.js} +1 -1
- package/dist/app/assets/{swift-l0hP6yV7.js → swift-6P1oJjtu.js} +1 -1
- package/dist/app/assets/{systemd-Btc4Qz3J.js → systemd-CB40GGbI.js} +1 -1
- package/dist/app/assets/{t4-cs-BjAV5Ns6.js → t4-cs-oDtZSVDr.js} +1 -1
- package/dist/app/assets/{t4-templating-0HrVV_I1.js → t4-templating-BNqgqrov.js} +1 -1
- package/dist/app/assets/{t4-vb-CqIBNZ1b.js → t4-vb-Cv8f7UA2.js} +1 -1
- package/dist/app/assets/{tap-B-8X0Drv.js → tap-CbrEfuBB.js} +1 -1
- package/dist/app/assets/{tcl-Dsqf3ZPx.js → tcl-BO7rxJbt.js} +1 -1
- package/dist/app/assets/{textile-DSYQsA-I.js → textile-BTqL4BpR.js} +1 -1
- package/dist/app/assets/{timeline-definition-GMOUNBTQ-CEtXto8g.js → timeline-definition-GMOUNBTQ-Bx9k8UuZ.js} +1 -1
- package/dist/app/assets/{toNumber-BMcN9Ax7.js → toNumber-BHLUnJCk.js} +1 -1
- package/dist/app/assets/{toml-CpRMaMrB.js → toml-KtQBEurb.js} +1 -1
- package/dist/app/assets/{tremor-CGh7Sa_N.js → tremor-Dk70TmsK.js} +1 -1
- package/dist/app/assets/{tt2-DH4IySIU.js → tt2-DnQZgW9E.js} +1 -1
- package/dist/app/assets/{turtle-CCArav6x.js → turtle-D8QBc8HO.js} +1 -1
- package/dist/app/assets/{twig-CMfNIdZ-.js → twig-BOYkX3KT.js} +1 -1
- package/dist/app/assets/{typescript-Bizq75_T.js → typescript-B7MN9vbP.js} +1 -1
- package/dist/app/assets/{typoscript-BKwq_Pv3.js → typoscript-CJp8dvAS.js} +1 -1
- package/dist/app/assets/{unrealscript-C7cPGt_d.js → unrealscript-CgTA2YQi.js} +1 -1
- package/dist/app/assets/{uorazor-Zphes3kf.js → uorazor-APvKotZB.js} +1 -1
- package/dist/app/assets/{uri-BIZ2Bbco.js → uri-D-yR2anw.js} +1 -1
- package/dist/app/assets/{v-4CeCdJxQ.js → v-BDwYNgP_.js} +1 -1
- package/dist/app/assets/{vala-BGjzZngz.js → vala-DgEvv5Sb.js} +1 -1
- package/dist/app/assets/{vbnet-DcGWvrm1.js → vbnet-DN-ptnmb.js} +1 -1
- package/dist/app/assets/{velocity-DLFRqsWq.js → velocity-s30ZYDZQ.js} +1 -1
- package/dist/app/assets/{vennDiagram-DHZGUBPP-iLPwgfwf.js → vennDiagram-DHZGUBPP-DXNVFN6S.js} +1 -1
- package/dist/app/assets/{verilog-VXPCXmmb.js → verilog-BW90SBzF.js} +1 -1
- package/dist/app/assets/{vhdl-OiJgxIIr.js → vhdl-BBFaZHgH.js} +1 -1
- package/dist/app/assets/{vim-UHqZ5huH.js → vim-CB_5_dbu.js} +1 -1
- package/dist/app/assets/{visual-basic-DrmZqU06.js → visual-basic-C7gSM6IL.js} +1 -1
- package/dist/app/assets/{wardley-RL74JXVD-J7Wj2Imv.js → wardley-RL74JXVD-Bc8bssEU.js} +1 -1
- package/dist/app/assets/{wardleyDiagram-NUSXRM2D-BXmwhZ7A.js → wardleyDiagram-NUSXRM2D-ChZrbBkL.js} +1 -1
- package/dist/app/assets/{warpscript-DeTsNI2X.js → warpscript-CTVS4vLW.js} +1 -1
- package/dist/app/assets/{wasm-DRdFvZi2.js → wasm-DrDg6k1Q.js} +1 -1
- package/dist/app/assets/{web-idl-BUn07EHT.js → web-idl-aPR6ivRq.js} +1 -1
- package/dist/app/assets/{wiki-BVI5drcr.js → wiki-DQ0WLnSI.js} +1 -1
- package/dist/app/assets/{wolfram-DbnOY8AT.js → wolfram-DKc_7m0c.js} +1 -1
- package/dist/app/assets/{wren-Buf8bMya.js → wren-BfynSjz-.js} +1 -1
- package/dist/app/assets/{xeora-ngw7GF5O.js → xeora-BG1TDQ7h.js} +1 -1
- package/dist/app/assets/{xml-doc-DaNehWRN.js → xml-doc-BteNMTDL.js} +1 -1
- package/dist/app/assets/{xojo-TxJkqaS8.js → xojo-hLVHJe-j.js} +1 -1
- package/dist/app/assets/{xquery-1o_Sf4Sq.js → xquery-D5eD5vY-.js} +1 -1
- package/dist/app/assets/{xychartDiagram-5P7HB3ND-DJJrUWxd.js → xychartDiagram-5P7HB3ND-DSRp0xPw.js} +1 -1
- package/dist/app/assets/{yaml-CrBHyf9u.js → yaml-D_xQTJJ6.js} +1 -1
- package/dist/app/assets/{yang-g8dRVUhJ.js → yang-QHRqi2r2.js} +1 -1
- package/dist/app/assets/{zig-2EHR4M92.js → zig-CaTmNDOs.js} +1 -1
- package/dist/app/index.html +1 -1
- package/dist/index.cjs +926 -587
- package/dist/index.js +932 -590
- package/package.json +5 -5
- package/dist/app/assets/channel-53ErRBg2.js +0 -1
- package/dist/app/assets/classDiagram-6PBFFD2Q-Cz_aN_Mk.js +0 -1
- package/dist/app/assets/classDiagram-v2-HSJHXN6E-Cz_aN_Mk.js +0 -1
- package/dist/app/assets/clone-B8LwPs5_.js +0 -1
- package/dist/app/assets/stateDiagram-v2-QKLJ7IA2-CVLVuLVv.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-
|
|
2
|
-
import{bC as Xt,aw as Qe,aU as J,aV as p,aS as ee,bD as xn,bE as $n,bF as bn,bG as yn,bH as wn,bI as vn,bJ as Mn,bK as Pn,bL as Sn,bM as Cn,bN as kn,bO as jn,bP as Nn,bQ as An}from"./index-D0YKTBe8.js";const Fn=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],Tn=Xt("image-plus",Fn);const En=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],Dn=Xt("redo-2",En);const Ln=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],Rn=Xt("shapes",Ln);const In=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],zn=Xt("table-2",In);const Bn=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],_n=Xt("type",Bn);const On=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],Xn=Xt("undo-2",On),tn=/<p:timing\b[^>]*\/>|<p:timing\b[^>]*>[\s\S]*?<\/p:timing>/i,Un={appear:{id:1,cls:"entr",sub:0},fade:{id:10,cls:"entr",sub:0},flyIn:{id:2,cls:"entr",sub:4},wipe:{id:22,cls:"entr",sub:1},zoom:{id:23,cls:"entr",sub:16},pulse:{id:26,cls:"emph",sub:0},spin:{id:8,cls:"emph",sub:0},disappear:{id:1,cls:"exit",sub:0},fadeOut:{id:10,cls:"exit",sub:0}},Vn={onClick:"clickEffect",withPrev:"withEffect",afterPrev:"afterEffect"};function Gn(t){const e=tn.exec(t)?.[0],n=new Map;if(!e)return n;const r=/<p:cTn\b([^>]*\bpresetClass="[^"]*"[^>]*)>/gi;let i;for(;i=r.exec(e);){const a=i[1],l=Wn(e,r.lastIndex),s=e.slice(r.lastIndex,l);r.lastIndex=l+8;const o=/<p:spTgt\b[^>]*\bspid="(\d+)"/i.exec(s)?.[1];if(!o||n.has(o))continue;const c=Hn(/\bpresetClass="([^"]*)"/i.exec(a)?.[1]??"entr",Number(/\bpresetID="(\d+)"/i.exec(a)?.[1]??0)),d=/\bnodeType="([^"]*)"/i.exec(a)?.[1],f=d==="withEffect"?"withPrev":d==="afterEffect"?"afterPrev":"onClick",h=Array.from(s.matchAll(/\bdur="(\d+)"/gi),v=>Number(v[1])),y=c==="appear"||c==="disappear"?0:Math.max(500,...h),w=Number(/<p:stCondLst><p:cond delay="(\d+)"/i.exec(s)?.[1]??0);n.set(o,{effect:c,trigger:f,durationMs:y,delayMs:w})}return n}function Wn(t,e){const n=/<p:cTn\b[^>]*?(\/?)>|<\/p:cTn>/gi;n.lastIndex=e;let r=1,i;for(;i=n.exec(t);)if(i[0].toLowerCase()==="</p:ctn>"){if(--r===0)return i.index}else i[1]!=="/"&&r++;return t.length}function Yn(t,e,n){if(!n)return t;const r=t.replace(tn,""),i=e.filter(o=>!o.deleted&&o.animation);if(!i.length)return r;const a=qn(i),l=/<p:transition\b[^>]*\/>|<p:transition\b[^>]*>[\s\S]*?<\/p:transition>/i.exec(r);if(l){const o=l.index+l[0].length;return`${r.slice(0,o)}${a}${r.slice(o)}`}const s=/<p:clrMapOvr\b[^>]*\/>|<p:clrMapOvr\b[^>]*>[\s\S]*?<\/p:clrMapOvr>/i.exec(r);if(s){const o=s.index+s[0].length;return`${r.slice(0,o)}${a}${r.slice(o)}`}return r.replace(/<\/p:sld>/i,`${a}</p:sld>`)}function Hn(t,e){return t==="exit"?e===1?"disappear":"fadeOut":t==="emph"?e===8?"spin":"pulse":e===1?"appear":e===2?"flyIn":e===22?"wipe":e===23?"zoom":"fade"}function qn(t){let e=2;const n=()=>++e,r=t.map((l,s)=>{const o=l.animation,c=Un[o.effect],d=`<p:tgtEl><p:spTgt spid="${je(l)}"/></p:tgtEl>`,f=Math.max(1,Math.round(o.durationMs)),h=Zn(o.effect,f,d,n);return`<p:par><p:cTn id="${n()}" presetID="${c.id}" presetClass="${c.cls}" presetSubtype="${c.sub}" fill="hold" grpId="0" nodeType="${Vn[o.trigger]}"><p:stCondLst><p:cond delay="${Math.max(0,Math.round(o.delayMs))}"/></p:stCondLst><p:childTnLst>${h}</p:childTnLst></p:cTn></p:par><p:bldP spid="${je(l)}" grpId="${s}"/>`}).join(""),i=r.replace(/[\s\S]*?(<p:bldP\b[^>]*\/>)/g,"$1");return'<p:timing><p:tnLst><p:par><p:cTn id="1" dur="indefinite" restart="never" nodeType="tmRoot"><p:childTnLst><p:seq concurrent="1" nextAc="seek"><p:cTn id="2" dur="indefinite" nodeType="mainSeq"><p:childTnLst>'+r.replace(/<p:bldP\b[^>]*\/>/g,"")+`</p:childTnLst></p:cTn><p:prevCondLst><p:cond evt="onPrev" delay="0"><p:tgtEl><p:sldTgt/></p:tgtEl></p:cond></p:prevCondLst><p:nextCondLst><p:cond evt="onNext" delay="0"><p:tgtEl><p:sldTgt/></p:tgtEl></p:cond></p:nextCondLst></p:seq></p:childTnLst></p:cTn></p:par></p:tnLst><p:bldLst>${i}</p:bldLst></p:timing>`}function Zn(t,e,n,r){const i=(a,l=0)=>`<p:set><p:cBhvr><p:cTn id="${r()}" dur="1" fill="hold"><p:stCondLst><p:cond delay="${l}"/></p:stCondLst></p:cTn>${n}<p:attrNameLst><p:attrName>style.visibility</p:attrName></p:attrNameLst></p:cBhvr><p:to><p:strVal val="${a?"visible":"hidden"}"/></p:to></p:set>`;if(t==="appear")return i(!0);if(t==="disappear")return i(!1);if(t==="fade"||t==="fadeOut"){const a=t==="fade"?"in":"out";return`${t==="fade"?i(!0):""}<p:animEffect transition="${a}" filter="fade"><p:cBhvr><p:cTn id="${r()}" dur="${e}"/>${n}</p:cBhvr></p:animEffect>${t==="fadeOut"?i(!1,e-1):""}`}if(t==="zoom"||t==="pulse"){const a=t==="pulse"?' autoRev="1"':"",l=t==="pulse"?'<p:by x="106000" y="106000"/>':'<p:from x="0" y="0"/><p:to x="100000" y="100000"/>';return`${t==="zoom"?i(!0):""}<p:animScale><p:cBhvr><p:cTn id="${r()}" dur="${e}" fill="hold"${a}/>${n}</p:cBhvr>${l}</p:animScale>`}return t==="spin"?`<p:animRot by="21600000"><p:cBhvr><p:cTn id="${r()}" dur="${e}" fill="hold"/>${n}<p:attrNameLst><p:attrName>r</p:attrName></p:attrNameLst></p:cBhvr></p:animRot>`:t==="wipe"?`${i(!0)}<p:animEffect transition="in" filter="wipe(up)"><p:cBhvr><p:cTn id="${r()}" dur="${e}"/>${n}</p:cBhvr></p:animEffect>`:`${i(!0)}<p:anim calcmode="lin" valueType="num"><p:cBhvr additive="base"><p:cTn id="${r()}" dur="${e}" fill="hold"/>${n}<p:attrNameLst><p:attrName>ppt_y</p:attrName></p:attrNameLst></p:cBhvr><p:tavLst><p:tav tm="0"><p:val><p:strVal val="1+#ppt_h/2"/></p:val></p:tav><p:tav tm="100000"><p:val><p:strVal val="#ppt_y"/></p:val></p:tav></p:tavLst></p:anim>`}function je(t){if(t.sourceId)return t.sourceId;const e=Number(t.id.replace(/\D/g,"").slice(-8));return String(Number.isFinite(e)&&e>1?e:Math.floor(Date.now()/1e3)%1e8)}const ut=1e3,ht=600,Ne=[[68,114,196],[237,125,49],[165,165,165],[255,192,0],[91,155,213],[112,173,71]];function ue(t,e,n){const r=x(t,"scaling"),i=Jt(x(r,"min")),a=Jt(x(r,"max")),l=Math.min(...e),s=Math.max(...e),o=Math.max(Math.abs(s-l),Math.abs(s)*.1,1),c=i??(n&&l>=0?0:l-o*.05),d=a??s+o*.05,f=rn(x(t,"majorUnit"),0),h=f>0?f:ve(Math.max(d-c,Number.EPSILON)),y=a??Math.ceil(d/h)*h;return{minimum:c,maximum:y,range:Math.max(Math.abs(y-c),Number.EPSILON),majorUnit:f}}function en(t,e,n,r,i,a){switch(a){case"square":t.push(`<rect x="${e-r}" y="${n-r}" width="${r*2}" height="${r*2}" fill="${T(i)}"/>`);break;case"diamond":t.push(`<polygon points="${e},${n-r} ${e+r},${n} ${e},${n+r} ${e-r},${n}" fill="${T(i)}"/>`);break;case"triangle":case"triangleUp":t.push(`<polygon points="${e},${n-r} ${e+r},${n+r} ${e-r},${n+r}" fill="${T(i)}"/>`);break;case"x":t.push(`<path d="M ${e-r} ${n-r} L ${e+r} ${n+r} M ${e+r} ${n-r} L ${e-r} ${n+r}" stroke="${T(i)}" stroke-width="${Math.max(2,r/2)}"/>`);break;default:t.push(`<circle cx="${e}" cy="${n}" r="${r}" fill="${T(i)}"/>`)}}function nn(t){switch(t){case"dash":case"sysDash":return"12 8";case"dashDot":case"sysDashDot":return"12 6 2 6";case"dot":case"sysDot":return"2 6";case"longDash":case"sysLongDash":return"20 8";default:return""}}function Kn(t,e,n,r,i,a,l,s,o,c,d,f,h){const y=a/Math.max(n,1),w=y*.7,v=o==="stacked"||o==="percentStacked"?w:w/e.length,b=e.map((P,$)=>P.color??Dt($));for(let P=0;P<n;P++){let $=0;e.forEach((C,M)=>{const m=C.values[P]??0,S=r+y*P+(y-w)/2+(o==="stacked"||o==="percentStacked"?0:M*v),F=o==="stacked"||o==="percentStacked"?$:0,B=s(F+m),Y=s(F),H=C.pointColors.get(P)??b[M];t.push(`<rect x="${S}" y="${Math.min(B,Y)}" width="${Math.max(1,v-3)}" height="${Math.max(1,Math.abs(Y-B))}" fill="${T(H)}"/>`),c&&t.push(`<text x="${S+v/2-1.5}" y="${Math.max(f+2,Math.min(B,Y)-9)}" text-anchor="middle" fill="${T(d)}" font-size="${f}">${at(vt(m,h))}</text>`),(o==="stacked"||o==="percentStacked")&&($+=m)})}}function Jn(t,e,n,r,i,a,l,s,o,c,d,f){const h=a/Math.max(n,1);e.forEach((y,w)=>{const v=y.color??Dt(w),b=y.values.slice(0,n).map((P,$)=>`${r+h*($+.5)},${s(P)}`).join(" ");t.push(`<polyline points="${b}" fill="none" stroke="${T(v)}" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>`),y.values.slice(0,n).forEach((P,$)=>{const C=r+h*($+.5),M=s(P);t.push(`<circle cx="${C}" cy="${M}" r="10" fill="${T(v)}"/>`),o&&t.push(`<text x="${C}" y="${Math.max(d+2,M-14)}" text-anchor="middle" fill="${T(c)}" font-size="${d}">${at(vt(P,f))}</text>`)})})}function Qn(t,e,n,r,i,a,l,s,o,c,d,f,h,y){const w=l/Math.max(n,1),v=w*.7,b=o==="stacked"||o==="percentStacked"?v:v/e.length,P=e.map(($,C)=>$.color??Dt(C));for(let $=0;$<n;$++){let C=0;const M=y?$:n-1-$;e.forEach((m,S)=>{const F=m.values[$]??0,B=o==="stacked"||o==="percentStacked"?C:0,Y=s(B),H=s(B+F),D=i+w*M+(w-v)/2+(o==="stacked"||o==="percentStacked"?0:S*b),U=m.pointColors.get($)??P[S];t.push(`<rect x="${Math.min(Y,H)}" y="${D}" width="${Math.max(1,Math.abs(H-Y))}" height="${Math.max(1,b-3)}" fill="${T(U)}"/>`),c&&t.push(`<text x="${Math.max(r+4,Math.max(Y,H)+8)}" y="${D+b/2+f/3}" text-anchor="start" fill="${T(d)}" font-size="${f}">${at(vt(F,h))}</text>`),(o==="stacked"||o==="percentStacked")&&(C+=F)})}}function tr(t,e,n,r,i,a,l,s,o,c,d,f){const h=e.values.map(C=>Math.max(0,C)),y=h.reduce((C,M)=>C+M,0);if(!y)return;const w=n+i/2,v=r+a/2,b=Math.max(20,Math.min(i,a)*.38),P=l?b*.52:0;let $=-Math.PI/2;h.forEach((C,M)=>{const m=C/y*Math.PI*2,S=$+m,F=e.pointColors.get(M)??e.color??Dt(M),B=Vt(w,v,b,$),Y=Vt(w,v,b,S),H=m>Math.PI?1:0,D=P?(()=>{const U=Vt(w,v,P,S),I=Vt(w,v,P,$);return`M ${B.x} ${B.y} A ${b} ${b} 0 ${H} 1 ${Y.x} ${Y.y} L ${U.x} ${U.y} A ${P} ${P} 0 ${H} 0 ${I.x} ${I.y} Z`})():`M ${w} ${v} L ${B.x} ${B.y} A ${b} ${b} 0 ${H} 1 ${Y.x} ${Y.y} Z`;if(t.push(`<path d="${D}" fill="${T(F)}" stroke="${T(Ct(255,255,255))}" stroke-width="2"/>`),s||o){const U=$+m/2,I=Vt(w,v,b*.68,U),V=o?`${(C/y*100).toFixed(1)}%`:vt(C,f);t.push(`<text x="${I.x}" y="${I.y}" text-anchor="middle" fill="${T(c)}" font-size="${d}">${at(V)}</text>`)}$=S})}function Vt(t,e,n,r){return{x:t+Math.cos(r)*n,y:e+Math.sin(r)*n}}function we(t,e,n,r,i,a){if(!x(e,"legend")||n.length<2)return;const s=ut/n.length;n.forEach((o,c)=>{const d=120+c*s,f=o.color??Dt(c);t.push(`<rect x="${d}" y="${a-i+2}" width="${i}" height="${i}" fill="${T(f)}"/>`),t.push(`<text x="${d+i+8}" y="${a+3}" fill="${T(r)}" font-size="${i}">${at(o.name||`Series ${c+1}`)}</text>`)})}function er(t,e,n=!1){const r=Ae(x(x(t,"tx"),"strRef"))[0]??gt(x(x(t,"tx"),"v")),i=n?[]:Ae(x(t,"cat")),a=x(t,n?"yVal":"val"),l=Fe(a),s=n?Fe(x(t,"xVal")):[],o=n&&s.length?l.slice(0,Math.min(l.length,s.length)):l,c=n&&s.length?s.slice(0,o.length):[];if(!n&&!i.length||!o.length)return null;const d=new Map;kt(t,"dPt").forEach(M=>{const m=Number(Z(x(M,"idx"),"val")),S=nt(x(x(M,"spPr"),"solidFill"),e);Number.isFinite(m)&&S&&d.set(m,S)});const f=gt(et(x(t,"val"),"formatCode"))||null,h=gt(et(a,"formatCode"))||null,y=Z(x(x(t,"dLbls"),"numFmt"),"formatCode"),w=Z(x(x(t,"marker"),"symbol"),"val"),v=Number(Z(x(x(t,"marker"),"size"),"val")),b=x(t,"spPr")?x(x(t,"spPr"),"ln"):null,P=Number(Z(b,"w")),$=Number.isFinite(P)?P:null,C=Z(x(b,"prstDash"),"val");return{name:r,categories:i,values:o,xValues:c,color:nr(t,e),pointColors:d,valueFormat:h||f,labelFormat:y,marker:w,markerSize:Number.isFinite(v)?v:null,lineWidth:$!=null?$/12700:null,dash:C}}function nr(t,e){const n=x(t,"spPr");return nt(x(n,"solidFill"),e)??nt(et(n,"solidFill"),e)}function Wt(t){if(!t)return"";const e=x(t,"tx"),n=x(e,"rich"),r=kt(n,"p");return(r.length?r.map(a=>kt(a,"r").map(l=>gt(x(l,"t"))).join("")).join(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-Dt-AHYC0.js","assets/index-zFXf25RZ.js","assets/index-BSvhBhrj.css","assets/_commonjs-dynamic-modules-TDtrdbi3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bC as Xt,aw as Qe,aU as J,aV as p,aS as ee,bD as xn,bE as $n,bF as bn,bG as yn,bH as wn,bI as vn,bJ as Mn,bK as Pn,bL as Sn,bM as Cn,bN as kn,bO as jn,bP as Nn,bQ as An}from"./index-zFXf25RZ.js";const Fn=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],Tn=Xt("image-plus",Fn);const En=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],Dn=Xt("redo-2",En);const Ln=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],Rn=Xt("shapes",Ln);const In=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],zn=Xt("table-2",In);const Bn=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],_n=Xt("type",Bn);const On=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],Xn=Xt("undo-2",On),tn=/<p:timing\b[^>]*\/>|<p:timing\b[^>]*>[\s\S]*?<\/p:timing>/i,Un={appear:{id:1,cls:"entr",sub:0},fade:{id:10,cls:"entr",sub:0},flyIn:{id:2,cls:"entr",sub:4},wipe:{id:22,cls:"entr",sub:1},zoom:{id:23,cls:"entr",sub:16},pulse:{id:26,cls:"emph",sub:0},spin:{id:8,cls:"emph",sub:0},disappear:{id:1,cls:"exit",sub:0},fadeOut:{id:10,cls:"exit",sub:0}},Vn={onClick:"clickEffect",withPrev:"withEffect",afterPrev:"afterEffect"};function Gn(t){const e=tn.exec(t)?.[0],n=new Map;if(!e)return n;const r=/<p:cTn\b([^>]*\bpresetClass="[^"]*"[^>]*)>/gi;let i;for(;i=r.exec(e);){const a=i[1],l=Wn(e,r.lastIndex),s=e.slice(r.lastIndex,l);r.lastIndex=l+8;const o=/<p:spTgt\b[^>]*\bspid="(\d+)"/i.exec(s)?.[1];if(!o||n.has(o))continue;const c=Hn(/\bpresetClass="([^"]*)"/i.exec(a)?.[1]??"entr",Number(/\bpresetID="(\d+)"/i.exec(a)?.[1]??0)),d=/\bnodeType="([^"]*)"/i.exec(a)?.[1],f=d==="withEffect"?"withPrev":d==="afterEffect"?"afterPrev":"onClick",h=Array.from(s.matchAll(/\bdur="(\d+)"/gi),v=>Number(v[1])),y=c==="appear"||c==="disappear"?0:Math.max(500,...h),w=Number(/<p:stCondLst><p:cond delay="(\d+)"/i.exec(s)?.[1]??0);n.set(o,{effect:c,trigger:f,durationMs:y,delayMs:w})}return n}function Wn(t,e){const n=/<p:cTn\b[^>]*?(\/?)>|<\/p:cTn>/gi;n.lastIndex=e;let r=1,i;for(;i=n.exec(t);)if(i[0].toLowerCase()==="</p:ctn>"){if(--r===0)return i.index}else i[1]!=="/"&&r++;return t.length}function Yn(t,e,n){if(!n)return t;const r=t.replace(tn,""),i=e.filter(o=>!o.deleted&&o.animation);if(!i.length)return r;const a=qn(i),l=/<p:transition\b[^>]*\/>|<p:transition\b[^>]*>[\s\S]*?<\/p:transition>/i.exec(r);if(l){const o=l.index+l[0].length;return`${r.slice(0,o)}${a}${r.slice(o)}`}const s=/<p:clrMapOvr\b[^>]*\/>|<p:clrMapOvr\b[^>]*>[\s\S]*?<\/p:clrMapOvr>/i.exec(r);if(s){const o=s.index+s[0].length;return`${r.slice(0,o)}${a}${r.slice(o)}`}return r.replace(/<\/p:sld>/i,`${a}</p:sld>`)}function Hn(t,e){return t==="exit"?e===1?"disappear":"fadeOut":t==="emph"?e===8?"spin":"pulse":e===1?"appear":e===2?"flyIn":e===22?"wipe":e===23?"zoom":"fade"}function qn(t){let e=2;const n=()=>++e,r=t.map((l,s)=>{const o=l.animation,c=Un[o.effect],d=`<p:tgtEl><p:spTgt spid="${je(l)}"/></p:tgtEl>`,f=Math.max(1,Math.round(o.durationMs)),h=Zn(o.effect,f,d,n);return`<p:par><p:cTn id="${n()}" presetID="${c.id}" presetClass="${c.cls}" presetSubtype="${c.sub}" fill="hold" grpId="0" nodeType="${Vn[o.trigger]}"><p:stCondLst><p:cond delay="${Math.max(0,Math.round(o.delayMs))}"/></p:stCondLst><p:childTnLst>${h}</p:childTnLst></p:cTn></p:par><p:bldP spid="${je(l)}" grpId="${s}"/>`}).join(""),i=r.replace(/[\s\S]*?(<p:bldP\b[^>]*\/>)/g,"$1");return'<p:timing><p:tnLst><p:par><p:cTn id="1" dur="indefinite" restart="never" nodeType="tmRoot"><p:childTnLst><p:seq concurrent="1" nextAc="seek"><p:cTn id="2" dur="indefinite" nodeType="mainSeq"><p:childTnLst>'+r.replace(/<p:bldP\b[^>]*\/>/g,"")+`</p:childTnLst></p:cTn><p:prevCondLst><p:cond evt="onPrev" delay="0"><p:tgtEl><p:sldTgt/></p:tgtEl></p:cond></p:prevCondLst><p:nextCondLst><p:cond evt="onNext" delay="0"><p:tgtEl><p:sldTgt/></p:tgtEl></p:cond></p:nextCondLst></p:seq></p:childTnLst></p:cTn></p:par></p:tnLst><p:bldLst>${i}</p:bldLst></p:timing>`}function Zn(t,e,n,r){const i=(a,l=0)=>`<p:set><p:cBhvr><p:cTn id="${r()}" dur="1" fill="hold"><p:stCondLst><p:cond delay="${l}"/></p:stCondLst></p:cTn>${n}<p:attrNameLst><p:attrName>style.visibility</p:attrName></p:attrNameLst></p:cBhvr><p:to><p:strVal val="${a?"visible":"hidden"}"/></p:to></p:set>`;if(t==="appear")return i(!0);if(t==="disappear")return i(!1);if(t==="fade"||t==="fadeOut"){const a=t==="fade"?"in":"out";return`${t==="fade"?i(!0):""}<p:animEffect transition="${a}" filter="fade"><p:cBhvr><p:cTn id="${r()}" dur="${e}"/>${n}</p:cBhvr></p:animEffect>${t==="fadeOut"?i(!1,e-1):""}`}if(t==="zoom"||t==="pulse"){const a=t==="pulse"?' autoRev="1"':"",l=t==="pulse"?'<p:by x="106000" y="106000"/>':'<p:from x="0" y="0"/><p:to x="100000" y="100000"/>';return`${t==="zoom"?i(!0):""}<p:animScale><p:cBhvr><p:cTn id="${r()}" dur="${e}" fill="hold"${a}/>${n}</p:cBhvr>${l}</p:animScale>`}return t==="spin"?`<p:animRot by="21600000"><p:cBhvr><p:cTn id="${r()}" dur="${e}" fill="hold"/>${n}<p:attrNameLst><p:attrName>r</p:attrName></p:attrNameLst></p:cBhvr></p:animRot>`:t==="wipe"?`${i(!0)}<p:animEffect transition="in" filter="wipe(up)"><p:cBhvr><p:cTn id="${r()}" dur="${e}"/>${n}</p:cBhvr></p:animEffect>`:`${i(!0)}<p:anim calcmode="lin" valueType="num"><p:cBhvr additive="base"><p:cTn id="${r()}" dur="${e}" fill="hold"/>${n}<p:attrNameLst><p:attrName>ppt_y</p:attrName></p:attrNameLst></p:cBhvr><p:tavLst><p:tav tm="0"><p:val><p:strVal val="1+#ppt_h/2"/></p:val></p:tav><p:tav tm="100000"><p:val><p:strVal val="#ppt_y"/></p:val></p:tav></p:tavLst></p:anim>`}function je(t){if(t.sourceId)return t.sourceId;const e=Number(t.id.replace(/\D/g,"").slice(-8));return String(Number.isFinite(e)&&e>1?e:Math.floor(Date.now()/1e3)%1e8)}const ut=1e3,ht=600,Ne=[[68,114,196],[237,125,49],[165,165,165],[255,192,0],[91,155,213],[112,173,71]];function ue(t,e,n){const r=x(t,"scaling"),i=Jt(x(r,"min")),a=Jt(x(r,"max")),l=Math.min(...e),s=Math.max(...e),o=Math.max(Math.abs(s-l),Math.abs(s)*.1,1),c=i??(n&&l>=0?0:l-o*.05),d=a??s+o*.05,f=rn(x(t,"majorUnit"),0),h=f>0?f:ve(Math.max(d-c,Number.EPSILON)),y=a??Math.ceil(d/h)*h;return{minimum:c,maximum:y,range:Math.max(Math.abs(y-c),Number.EPSILON),majorUnit:f}}function en(t,e,n,r,i,a){switch(a){case"square":t.push(`<rect x="${e-r}" y="${n-r}" width="${r*2}" height="${r*2}" fill="${T(i)}"/>`);break;case"diamond":t.push(`<polygon points="${e},${n-r} ${e+r},${n} ${e},${n+r} ${e-r},${n}" fill="${T(i)}"/>`);break;case"triangle":case"triangleUp":t.push(`<polygon points="${e},${n-r} ${e+r},${n+r} ${e-r},${n+r}" fill="${T(i)}"/>`);break;case"x":t.push(`<path d="M ${e-r} ${n-r} L ${e+r} ${n+r} M ${e+r} ${n-r} L ${e-r} ${n+r}" stroke="${T(i)}" stroke-width="${Math.max(2,r/2)}"/>`);break;default:t.push(`<circle cx="${e}" cy="${n}" r="${r}" fill="${T(i)}"/>`)}}function nn(t){switch(t){case"dash":case"sysDash":return"12 8";case"dashDot":case"sysDashDot":return"12 6 2 6";case"dot":case"sysDot":return"2 6";case"longDash":case"sysLongDash":return"20 8";default:return""}}function Kn(t,e,n,r,i,a,l,s,o,c,d,f,h){const y=a/Math.max(n,1),w=y*.7,v=o==="stacked"||o==="percentStacked"?w:w/e.length,b=e.map((P,$)=>P.color??Dt($));for(let P=0;P<n;P++){let $=0;e.forEach((C,M)=>{const m=C.values[P]??0,S=r+y*P+(y-w)/2+(o==="stacked"||o==="percentStacked"?0:M*v),F=o==="stacked"||o==="percentStacked"?$:0,B=s(F+m),Y=s(F),H=C.pointColors.get(P)??b[M];t.push(`<rect x="${S}" y="${Math.min(B,Y)}" width="${Math.max(1,v-3)}" height="${Math.max(1,Math.abs(Y-B))}" fill="${T(H)}"/>`),c&&t.push(`<text x="${S+v/2-1.5}" y="${Math.max(f+2,Math.min(B,Y)-9)}" text-anchor="middle" fill="${T(d)}" font-size="${f}">${at(vt(m,h))}</text>`),(o==="stacked"||o==="percentStacked")&&($+=m)})}}function Jn(t,e,n,r,i,a,l,s,o,c,d,f){const h=a/Math.max(n,1);e.forEach((y,w)=>{const v=y.color??Dt(w),b=y.values.slice(0,n).map((P,$)=>`${r+h*($+.5)},${s(P)}`).join(" ");t.push(`<polyline points="${b}" fill="none" stroke="${T(v)}" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>`),y.values.slice(0,n).forEach((P,$)=>{const C=r+h*($+.5),M=s(P);t.push(`<circle cx="${C}" cy="${M}" r="10" fill="${T(v)}"/>`),o&&t.push(`<text x="${C}" y="${Math.max(d+2,M-14)}" text-anchor="middle" fill="${T(c)}" font-size="${d}">${at(vt(P,f))}</text>`)})})}function Qn(t,e,n,r,i,a,l,s,o,c,d,f,h,y){const w=l/Math.max(n,1),v=w*.7,b=o==="stacked"||o==="percentStacked"?v:v/e.length,P=e.map(($,C)=>$.color??Dt(C));for(let $=0;$<n;$++){let C=0;const M=y?$:n-1-$;e.forEach((m,S)=>{const F=m.values[$]??0,B=o==="stacked"||o==="percentStacked"?C:0,Y=s(B),H=s(B+F),D=i+w*M+(w-v)/2+(o==="stacked"||o==="percentStacked"?0:S*b),U=m.pointColors.get($)??P[S];t.push(`<rect x="${Math.min(Y,H)}" y="${D}" width="${Math.max(1,Math.abs(H-Y))}" height="${Math.max(1,b-3)}" fill="${T(U)}"/>`),c&&t.push(`<text x="${Math.max(r+4,Math.max(Y,H)+8)}" y="${D+b/2+f/3}" text-anchor="start" fill="${T(d)}" font-size="${f}">${at(vt(F,h))}</text>`),(o==="stacked"||o==="percentStacked")&&(C+=F)})}}function tr(t,e,n,r,i,a,l,s,o,c,d,f){const h=e.values.map(C=>Math.max(0,C)),y=h.reduce((C,M)=>C+M,0);if(!y)return;const w=n+i/2,v=r+a/2,b=Math.max(20,Math.min(i,a)*.38),P=l?b*.52:0;let $=-Math.PI/2;h.forEach((C,M)=>{const m=C/y*Math.PI*2,S=$+m,F=e.pointColors.get(M)??e.color??Dt(M),B=Vt(w,v,b,$),Y=Vt(w,v,b,S),H=m>Math.PI?1:0,D=P?(()=>{const U=Vt(w,v,P,S),I=Vt(w,v,P,$);return`M ${B.x} ${B.y} A ${b} ${b} 0 ${H} 1 ${Y.x} ${Y.y} L ${U.x} ${U.y} A ${P} ${P} 0 ${H} 0 ${I.x} ${I.y} Z`})():`M ${w} ${v} L ${B.x} ${B.y} A ${b} ${b} 0 ${H} 1 ${Y.x} ${Y.y} Z`;if(t.push(`<path d="${D}" fill="${T(F)}" stroke="${T(Ct(255,255,255))}" stroke-width="2"/>`),s||o){const U=$+m/2,I=Vt(w,v,b*.68,U),V=o?`${(C/y*100).toFixed(1)}%`:vt(C,f);t.push(`<text x="${I.x}" y="${I.y}" text-anchor="middle" fill="${T(c)}" font-size="${d}">${at(V)}</text>`)}$=S})}function Vt(t,e,n,r){return{x:t+Math.cos(r)*n,y:e+Math.sin(r)*n}}function we(t,e,n,r,i,a){if(!x(e,"legend")||n.length<2)return;const s=ut/n.length;n.forEach((o,c)=>{const d=120+c*s,f=o.color??Dt(c);t.push(`<rect x="${d}" y="${a-i+2}" width="${i}" height="${i}" fill="${T(f)}"/>`),t.push(`<text x="${d+i+8}" y="${a+3}" fill="${T(r)}" font-size="${i}">${at(o.name||`Series ${c+1}`)}</text>`)})}function er(t,e,n=!1){const r=Ae(x(x(t,"tx"),"strRef"))[0]??gt(x(x(t,"tx"),"v")),i=n?[]:Ae(x(t,"cat")),a=x(t,n?"yVal":"val"),l=Fe(a),s=n?Fe(x(t,"xVal")):[],o=n&&s.length?l.slice(0,Math.min(l.length,s.length)):l,c=n&&s.length?s.slice(0,o.length):[];if(!n&&!i.length||!o.length)return null;const d=new Map;kt(t,"dPt").forEach(M=>{const m=Number(Z(x(M,"idx"),"val")),S=nt(x(x(M,"spPr"),"solidFill"),e);Number.isFinite(m)&&S&&d.set(m,S)});const f=gt(et(x(t,"val"),"formatCode"))||null,h=gt(et(a,"formatCode"))||null,y=Z(x(x(t,"dLbls"),"numFmt"),"formatCode"),w=Z(x(x(t,"marker"),"symbol"),"val"),v=Number(Z(x(x(t,"marker"),"size"),"val")),b=x(t,"spPr")?x(x(t,"spPr"),"ln"):null,P=Number(Z(b,"w")),$=Number.isFinite(P)?P:null,C=Z(x(b,"prstDash"),"val");return{name:r,categories:i,values:o,xValues:c,color:nr(t,e),pointColors:d,valueFormat:h||f,labelFormat:y,marker:w,markerSize:Number.isFinite(v)?v:null,lineWidth:$!=null?$/12700:null,dash:C}}function nr(t,e){const n=x(t,"spPr");return nt(x(n,"solidFill"),e)??nt(et(n,"solidFill"),e)}function Wt(t){if(!t)return"";const e=x(t,"tx"),n=x(e,"rich"),r=kt(n,"p");return(r.length?r.map(a=>kt(a,"r").map(l=>gt(x(l,"t"))).join("")).join(`
|
|
3
3
|
`):gt(x(e,"v"))).trim()}function Ae(t){const e=t?et(t,"strCache")??x(et(t,"multiLvlStrCache"),"lvl"):null;return kt(e,"pt").sort((n,r)=>Number(Z(n,"idx"))-Number(Z(r,"idx"))).map(n=>gt(x(n,"v")))}function Fe(t){const e=t?et(t,"numCache"):null;return kt(e,"pt").sort((n,r)=>Number(Z(n,"idx"))-Number(Z(r,"idx"))).map(n=>Number(gt(x(n,"v")))).filter(Number.isFinite)}function Kt(t,e,n){const r=n>0?n:ve(e-t),i=[];for(let a=t;a<=e+r*.01&&i.length<10;a+=r)i.push(a);return i.length<2&&i.push(e),i}function ve(t){const e=10**Math.floor(Math.log10(Math.max(t,Number.EPSILON))),n=t/e;return(n>=5?1:n>=2?.5:.2)*e}function vt(t,e=null){if(e?.includes("%")){const r=(e.split(".")[1]?.split("%")[0]??"").replace(/[^0#]/g,"").length;return`${(t*100).toFixed(r)}%`}const n=e?.includes(".")?(e.split(".")[1]??"").replace(/[^0#]/g,"").length:0;return n>0?t.toFixed(n):Number.isInteger(t)?t.toLocaleString():t.toFixed(1).replace(/\.0$/,"")}function Zt(t){return!t||t.trim().toLowerCase()==="general"}function Dt(t){const e=Ne[t%Ne.length];return Ct(e[0],e[1],e[2])}function nt(t,e={}){const n=t?kt(t).find(l=>["srgbClr","schemeClr","sysClr"].includes(Yt(l))):null;if(!n)return null;const r=Z(n,"lastClr")??Z(n,"val");if(!r)return null;const i=/^[0-9a-f]{6}$/i.test(r)?r:e[r]??e[r.toLowerCase()]??e[r==="tx1"?"dk1":r==="bg1"?"lt1":r]??e[r==="tx2"?"dk2":r==="bg2"?"lt2":r]??null;if(!i)return null;const a=i.replace(/^#/,"");return/^[0-9a-f]{6}$/i.test(a)?`#${a}`:null}function Ct(t,e,n){return`#${[t,e,n].map(r=>Math.max(0,Math.min(255,r)).toString(16).padStart(2,"0")).join("")}`}function Ot(t){return Math.round(t*1e3)/1e3}function rr(t){const e=new DOMParser().parseFromString(t,"application/xml");return e.getElementsByTagName("parsererror").length?null:e.documentElement}function x(t,e){return kt(t).find(n=>Yt(n)===e)??null}function kt(t,e){return t?Array.from(t.children).filter(n=>!e||Yt(n)===e):[]}function et(t,e){return t?Yt(t)===e?t:Array.from(t.getElementsByTagName("*")).find(n=>Yt(n)===e)??null:null}function Yt(t){return t?.localName||t?.tagName?.split(":").pop()||""}function Z(t,e){return t?.getAttribute(e)??null}function pe(t,e){return Z(t,e)==="1"||Z(x(t,e),"val")==="1"}function gt(t){return t?.textContent?.trim()??""}function rn(t,e){const n=Number(Z(t,"val")??gt(t));return Number.isFinite(n)?n:e}function Jt(t){if(!t)return null;const e=Z(t,"val")??gt(t);if(!e.trim())return null;const n=Number(e);return Number.isFinite(n)?n:null}function zt(t,e){const n=Number(Z(et(t,"defRPr"),"sz"));return Number.isFinite(n)&&n>0?Math.max(18,Math.min(48,n/100*1.65)):e*1.65}function at(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function T(t){return at(t)}function Me(t){const e=new TextEncoder().encode(t);let n="";for(const r of e)n+=String.fromCharCode(r);return`data:image/svg+xml;base64,${btoa(n)}`}function ir(t,e,n,r,i){const a=et(t,"plotArea"),l=Wt(x(e,"title")),s=kt(a,"valAx"),o=s.find(L=>["b","t"].includes(Z(x(L,"axPos"),"val")??""))??s[1]??null,c=s.find(L=>["l","r"].includes(Z(x(L,"axPos"),"val")??""))??s[0]??null,d=r.map(L=>L.values.map((W,xt)=>({x:L.xValues[xt]??xt+1,y:W,index:xt})).filter(W=>Number.isFinite(W.x)&&Number.isFinite(W.y))),f=d.flatMap(L=>L.map(W=>W.x)),h=d.flatMap(L=>L.map(W=>W.y));if(!f.length||!h.length)return null;const y=ue(o,f,!1),w=ue(c,h,!1),v=nt(x(x(t,"spPr"),"solidFill"),i)??"transparent",b=nt(x(x(a,"spPr"),"solidFill"),i)??v,P=zt(x(o,"txPr"),13.5),$=zt(x(c,"txPr"),13.5),C=nt(et(x(o,"txPr"),"solidFill"),i)??Ct(104,123,117),M=nt(et(x(c,"txPr"),"solidFill"),i)??C,m=Wt(x(o,"title")),S=Wt(x(c,"title")),F=x(n,"dLbls"),B=pe(F,"showVal"),Y=nt(et(x(F,"txPr"),"solidFill"),i)??M,H=zt(x(F,"txPr"),13.5),D=Z(x(o,"numFmt"),"formatCode")??gt(x(o,"numFmt")),U=Z(x(c,"numFmt"),"formatCode")??gt(x(c,"numFmt")),I=r.find(L=>L.valueFormat&&!Zt(L.valueFormat))?.valueFormat??U,V=98,_=34,O=l?58:28,q=88+(m?18:0),N=ut-V-_,X=ht-O-q,R=L=>Ot(V+(L-y.minimum)/y.range*N),ft=L=>Ot(O+X-(L-w.minimum)/w.range*X),tt=Kt(y.minimum,y.maximum,y.majorUnit),mt=Kt(w.minimum,w.maximum,w.majorUnit),ot=nt(et(x(o,"majorGridlines"),"solidFill"),i)??Ct(215,221,213),g=nt(et(x(c,"majorGridlines"),"solidFill"),i)??ot,j=nt(et(x(c,"spPr"),"solidFill"),i)??ot,A=[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${ut} ${ht}" preserveAspectRatio="none">`,`<rect width="${ut}" height="${ht}" fill="${T(v)}"/>`,`<rect x="${V}" y="${O}" width="${N}" height="${X}" fill="${T(b)}"/>`];l&&A.push(`<text x="${ut/2}" y="30" text-anchor="middle" fill="${T(M)}" font-size="26" font-weight="600">${at(l)}</text>`);for(const L of mt){const W=ft(L);A.push(`<line x1="${V}" y1="${W}" x2="${V+N}" y2="${W}" stroke="${T(g)}" stroke-width="2"/>`),A.push(`<text x="${V-10}" y="${W+5}" text-anchor="end" fill="${T(M)}" font-size="${$}">${at(vt(L,U))}</text>`)}for(const L of tt){const W=R(L);A.push(`<line x1="${W}" y1="${O}" x2="${W}" y2="${O+X}" stroke="${T(ot)}" stroke-width="2"/>`),A.push(`<text x="${W}" y="${O+X+28}" text-anchor="middle" fill="${T(C)}" font-size="${P}">${at(vt(L,D))}</text>`)}A.push(`<line x1="${V}" y1="${O+X}" x2="${V+N}" y2="${O+X}" stroke="${T(j)}" stroke-width="2"/>`),A.push(`<line x1="${V}" y1="${O}" x2="${V}" y2="${O+X}" stroke="${T(j)}" stroke-width="2"/>`),m&&A.push(`<text x="${V+N/2}" y="${ht-18}" text-anchor="middle" fill="${T(C)}" font-size="${P}">${at(m)}</text>`),S&&A.push(`<text x="18" y="${O+X/2}" text-anchor="middle" fill="${T(M)}" font-size="${$}" transform="rotate(-90 18 ${O+X/2})">${at(S)}</text>`);const z=Z(x(n,"scatterStyle"),"val")??"lineMarker",rt=z.startsWith("line")||z.startsWith("smooth"),Mt=z!=="line"&&z!=="smooth"&&z!=="none";return r.forEach((L,W)=>{const xt=L.color??Dt(W),Tt=d[W]??[],jt=rt?[...Tt].sort((yt,wt)=>yt.x-wt.x):Tt;if(rt&&jt.length>1){const yt=jt.map(Pt=>`${R(Pt.x)},${ft(Pt.y)}`).join(" "),wt=Math.max(2,(L.lineWidth??1.5)*2),$t=nn(L.dash);A.push(`<polyline points="${yt}" fill="none" stroke="${T(xt)}" stroke-width="${wt}" stroke-linecap="round" stroke-linejoin="round"${$t?` stroke-dasharray="${$t}"`:""}/>`)}const Ut=L.marker?L.marker!=="none":Mt;jt.forEach(yt=>{const wt=R(yt.x),$t=ft(yt.y);Ut&&en(A,wt,$t,Math.max(4,Math.min(12,(L.markerSize??8)*.6)),xt,L.marker),B&&A.push(`<text x="${wt}" y="${Math.max(H+2,$t-12)}" text-anchor="middle" fill="${T(Y)}" font-size="${H}">${at(vt(yt.y,I))}</text>`)})}),we(A,e,r,C,P,O+X+54),A.push("</svg>"),Me(A.join(""))}function or(t,e,n,r,i){const a=et(t,"plotArea"),l=r.find(_=>_.categories.length)?.categories??[],s=l.length;if(s<3)return null;const o=r.flatMap(_=>_.values).filter(Number.isFinite);if(!o.length)return null;const c=x(a,"valAx"),d=ue(c,o,!0),f=Wt(x(e,"title")),h=nt(x(x(t,"spPr"),"solidFill"),i)??"transparent",y=nt(x(x(a,"spPr"),"solidFill"),i)??h,w=zt(x(c,"txPr"),13.5),v=nt(et(x(c,"txPr"),"solidFill"),i)??Ct(104,123,117),b=x(a,"catAx"),P=nt(et(x(b,"txPr"),"solidFill"),i)??v,$=nt(et(x(c,"majorGridlines"),"solidFill"),i)??Ct(215,221,213),C=112,M=112,m=f?58:28,S=82,F=C+(ut-C-M)/2,B=m+(ht-m-S)/2,Y=Math.max(24,Math.min((ut-C-M)/2,(ht-m-S)/2)),H=_=>-Math.PI/2+_/s*Math.PI*2,D=_=>Y*Math.max(0,Math.min(1,(_-d.minimum)/d.range)),U=(_,O)=>{const q=H(_),N=D(O);return{x:Ot(F+Math.cos(q)*N),y:Ot(B+Math.sin(q)*N)}},I=[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${ut} ${ht}" preserveAspectRatio="none">`,`<rect width="${ut}" height="${ht}" fill="${T(h)}"/>`,`<rect x="${C}" y="${m}" width="${ut-C-M}" height="${ht-m-S}" fill="${T(y)}"/>`];f&&I.push(`<text x="${ut/2}" y="30" text-anchor="middle" fill="${T(v)}" font-size="26" font-weight="600">${at(f)}</text>`);for(const _ of Kt(d.minimum,d.maximum,d.majorUnit)){if(_===d.minimum)continue;const O=l.map((N,X)=>{const R=U(X,_);return`${R.x},${R.y}`}).join(" ");I.push(`<polygon points="${O}" fill="none" stroke="${T($)}" stroke-width="2"/>`);const q=U(0,_);I.push(`<text x="${q.x-8}" y="${q.y+5}" text-anchor="end" fill="${T(v)}" font-size="${w}">${at(vt(_,Z(x(c,"numFmt"),"formatCode")))}</text>`)}l.forEach((_,O)=>{const q=U(O,d.maximum);I.push(`<line x1="${F}" y1="${B}" x2="${q.x}" y2="${q.y}" stroke="${T($)}" stroke-width="2"/>`);const N=H(O),X=F+Math.cos(N)*(Y+w*.8),R=B+Math.sin(N)*(Y+w*.8),ft=Math.cos(N)>.25?"start":Math.cos(N)<-.25?"end":"middle",tt=Math.sin(N)>.35?w*.35:Math.sin(N)<-.35?0:w*.12;I.push(`<text x="${X}" y="${R+tt}" text-anchor="${ft}" fill="${T(P)}" font-size="${w}">${at(_)}</text>`)});const V=Z(x(n,"radarStyle"),"val")??"standard";return r.forEach((_,O)=>{const q=_.color??Dt(O),N=l.map((tt,mt)=>{const ot=_.values[mt]??d.minimum,g=U(mt,ot);return`${g.x},${g.y}`}).join(" "),X=Math.max(2,(_.lineWidth??1.5)*2),R=nn(_.dash);I.push(`<polygon points="${N}" fill="${T(q)}" fill-opacity="${V==="filled"?"0.28":"0"}" stroke="${T(q)}" stroke-width="${X}" stroke-linejoin="round"${R?` stroke-dasharray="${R}"`:""}/>`),(_.marker?_.marker!=="none":V==="marker")&&l.forEach((tt,mt)=>{const ot=U(mt,_.values[mt]??d.minimum);en(I,ot.x,ot.y,Math.max(4,Math.min(10,(_.markerSize??7)*.6)),q,_.marker)})}),we(I,e,r,P,w,ht-24),I.push("</svg>"),Me(I.join(""))}async function ar(t,e,n={}){const r=t.file(e);if(!r)return null;const i=await r.async("text"),a=rr(i),l=et(a,"plotArea");if(!l)return null;const s=["barChart","lineChart","areaChart","pieChart","doughnutChart","scatterChart","radarChart"].find(K=>x(l,K));if(!s)return null;const o=x(l,s);if(!o)return null;const c=x(a,"chart"),d=Wt(x(c,"title")),f=s==="scatterChart",h=kt(o,"ser").map(K=>er(K,n,f)).filter(K=>!!K);if(!h.length)return null;if(f)return ir(a,c,o,h,n);if(s==="radarChart")return or(a,c,o,h,n);const y=h.find(K=>K.categories.length)?.categories??[],w=h.flatMap(K=>K.values).filter(Number.isFinite);if(!y.length||!w.length)return null;const v=h[0];if(!v)return null;const b=s==="lineChart"||s==="areaChart",P=s==="pieChart"||s==="doughnutChart",$=s==="barChart"&&Z(x(o,"barDir"),"val")==="bar",C=Z(o,"grouping")??"clustered",M=nt(x(x(a,"spPr"),"solidFill"),n)??"transparent",m=nt(x(x(l,"spPr"),"solidFill"),n)??M,S=x(l,"valAx"),F=x(S,"scaling"),B=Math.min(...w),Y=Math.max(...w),D=Jt(x(F,"min"))??(B>=0?0:B*1.12),U=rn(x(S,"majorUnit"),0),I=Jt(x(F,"max")),V=I??(Y===D?D+Math.max(Math.abs(D)*.1,1):Y+Math.abs(Y-D)*.05),_=U>0?U:ve(V-D),O=I??Math.ceil(V/_)*_,q=Math.max(Math.abs(O-D),Number.EPSILON),N=Z(x(S,"numFmt"),"formatCode")??gt(x(S,"numFmt")),X=Kt(D,O,U),R=$?154:72,ft=24,tt=d?58:24,mt=$?62:74,ot=ut-R-ft,g=ht-tt-mt,j=K=>Ot(tt+g-(K-D)/q*g),A=K=>Ot(R+(K-D)/q*ot),z=x(S,"spPr"),rt=x(S,"majorGridlines"),Mt=nt(et(rt,"solidFill"),n)??nt(et(z,"solidFill"),n)??Ct(215,221,213),L=nt(et(x(S,"txPr"),"solidFill"),n)??Ct(104,123,117),W=x(o,"dLbls"),xt=pe(W,"showVal"),Tt=nt(et(x(W,"txPr"),"solidFill"),n)??Ct(18,61,55),jt=zt(x(W,"txPr"),16),Ut=x(l,"catAx"),yt=Z(x(x(Ut,"scaling"),"orientation"),"val")==="maxMin",wt=nt(et(x(Ut,"txPr"),"solidFill"),n)??L,$t=zt(x(Ut,"txPr"),13.5),Pt=h.find(K=>K.labelFormat&&!Zt(K.labelFormat))?.labelFormat??h.find(K=>K.valueFormat&&!Zt(K.valueFormat))?.valueFormat??(N&&!Zt(N)?N:null),ke=N?.includes("%")&&!N.includes(".")&&Pt?.includes(".")?Pt:N,ct=[`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${ut} ${ht}" preserveAspectRatio="none">`,`<rect width="${ut}" height="${ht}" fill="${T(M)}"/>`,`<rect x="${R}" y="${tt}" width="${ot}" height="${g}" fill="${T(m)}"/>`];d&&ct.push(`<text x="${ut/2}" y="30" text-anchor="middle" fill="${T(L)}" font-size="26" font-weight="600">${at(d)}</text>`);for(const K of P?[]:X)if($){const bt=A(K);ct.push(`<line x1="${bt}" y1="${tt}" x2="${bt}" y2="${tt+g}" stroke="${T(Mt)}" stroke-width="2"/>`),ct.push(`<text x="${bt}" y="${tt+g+28}" text-anchor="middle" fill="${T(L)}" font-size="${$t}">${at(vt(K,ke))}</text>`)}else{const bt=j(K);ct.push(`<line x1="${R}" y1="${bt}" x2="${R+ot}" y2="${bt}" stroke="${T(Mt)}" stroke-width="2"/>`),ct.push(`<text x="${R-10}" y="${bt+5}" text-anchor="end" fill="${T(L)}" font-size="${$t}">${at(vt(K,ke))}</text>`)}P?tr(ct,v,R,tt,ot,g,s==="doughnutChart",xt,pe(W,"showPercent"),Tt,jt,Pt):$?Qn(ct,h,y.length,R,tt,ot,g,A,C,xt,Tt,jt,Pt,yt):b?Jn(ct,h,y.length,R,tt,ot,g,j,xt,Tt,jt,Pt):Kn(ct,h,y.length,R,tt,ot,g,j,C,xt,Tt,jt,Pt);const mn=g/Math.max(y.length,1);return y.forEach((K,bt)=>{if(!P)if($){const re=yt?bt:y.length-1-bt,gn=tt+mn*(re+.5);ct.push(`<text x="${R-12}" y="${gn+5}" text-anchor="end" fill="${T(wt)}" font-size="${$t}">${at(K)}</text>`)}else{const re=R+ot/Math.max(y.length,1)*(bt+.5);ct.push(`<text x="${re}" y="${tt+g+30}" text-anchor="middle" fill="${T(wt)}" font-size="${$t}">${at(K)}</text>`)}}),P||ct.push(`<line x1="${R}" y1="${tt+g}" x2="${R+ot}" y2="${tt+g}" stroke="${T(Mt)}" stroke-width="2"/>`),we(ct,c,h,wt,$t,tt+g+($?48:54)),ct.push("</svg>"),Me(ct.join(""))}const sr="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide",lr="application/vnd.openxmlformats-officedocument.presentationml.slide+xml";async function cr(t,e,n,r){const i="ppt/presentation.xml",a="ppt/_rels/presentation.xml.rels",l=await Ee(t,i),s=await Ee(t,a),o=fe(l),c=fe(s),d=Te(o,"sldIdLst")[0];if(!d)throw new Error("Presentation package does not contain a slide list.");const f=Te(o,"sldSz")[0];f&&n&&r&&(f.setAttribute("cx",String(Math.round(n))),f.setAttribute("cy",String(Math.round(r))));const h=me(c,"Relationship"),y=new Map,w=new Map;for(const m of h){const S=m.getAttribute("Id"),F=m.getAttribute("Target");if(!S||!F||m.getAttribute("TargetMode")==="External")continue;const B=pr(i,F);y.set(S,B),B.startsWith("ppt/slides/")&&w.set(B,m)}const v=new Map;for(const m of me(d,"sldId")){const S=m.getAttribute("r:id"),F=S?y.get(S):null;F&&v.set(F,Number(m.getAttribute("id")??0))}const b=new Set(e.map(m=>m.path)),P=[...w.keys()].filter(m=>!b.has(m));for(const m of P)w.get(m)?.remove(),t.remove(m),t.remove(Qt(m));let $=Math.max(0,...h.map(m=>ur(m.getAttribute("Id"))))+1;for(const m of e){if(w.has(m.path))continue;const S=c.ownerDocument.createElementNS(c.namespaceURI,"Relationship");S.setAttribute("Id",`rId${$++}`),S.setAttribute("Type",sr),S.setAttribute("Target",m.path.replace(/^ppt\//,"")),c.appendChild(S),w.set(m.path,S)}let C=Math.max(255,...v.values())+1;d.replaceChildren();const M=o.lookupNamespaceURI("r")??"r";for(const m of e){const S=w.get(m.path)?.getAttribute("Id");if(!S)throw new Error(`Presentation relationship is missing for ${m.path}.`);const F=o.ownerDocument.createElementNS(d.namespaceURI,"p:sldId");F.setAttribute("id",String(v.get(m.path)||C++)),F.setAttributeNS(M,"r:id",S),d.appendChild(F)}t.file(i,he(o)),t.file(a,he(c)),await dr(t,b)}function Qt(t){const e=t.split("/"),n=e.pop();return`${e.join("/")}/_rels/${n}.rels`}async function dr(t,e){const n=t.file("[Content_Types].xml");if(!n)return;const r=fe(await n.async("text")),i=new Map;for(const a of me(r,"Override")){const l=a.getAttribute("PartName")?.replace(/^\//,"");l?.startsWith("ppt/slides/")&&(e.has(l)?i.set(l,a):a.remove())}for(const a of e){if(i.has(a))continue;const l=r.ownerDocument.createElementNS(r.namespaceURI,"Override");l.setAttribute("PartName",`/${a}`),l.setAttribute("ContentType",lr),r.appendChild(l)}t.file("[Content_Types].xml",he(r))}function fe(t){const e=new DOMParser().parseFromString(t,"application/xml");if(e.getElementsByTagName("parsererror").length)throw new Error("Invalid Office XML.");return e.documentElement}function he(t){return new XMLSerializer().serializeToString(t)}function me(t,e){return Array.from(t.children).filter(n=>on(n)===e)}function Te(t,e){return Array.from(t.getElementsByTagName("*")).filter(n=>on(n)===e)}function on(t){return t.localName||t.tagName.split(":").pop()||""}function ur(t){const e=t?.match(/^rId(\d+)$/i);return e?Number(e[1]):0}function pr(t,e){if(e.startsWith("/"))return e.replace(/^\/+/,"").split("/").filter(Boolean).join("/");const n=t.split("/");n.pop();for(const r of e.split("/"))!r||r==="."||(r===".."?n.pop():n.push(r));return n.join("/")}async function Ee(t,e){const n=t.file(e);if(!n)throw new Error(`Presentation package is missing ${e}.`);return n.async("text")}const an=9525;function De(t,e,n="none",r=!1,i=null,a=!1,l=!1,s=!1,o=!1){const c=new Set(e.filter(b=>b.deleted&&b.sourceId).map(b=>b.sourceId));let d=t.replace(/<p:(sp|pic|cxnSp|graphicFrame)\b[\s\S]*?<\/p:\1>/gi,b=>{const P=b.match(/<p:cNvPr\b[^>]*\bid="([^"]+)"/i)?.[1];return P&&c.has(P)?"":b});const f=new Map(e.filter(b=>b.editable).map(b=>[b.sourceId??b.id,b]));d=d.replace(/<p:(sp|pic|cxnSp|graphicFrame)\b[\s\S]*?<\/p:\1>/gi,b=>{const P=b.match(/<p:cNvPr\b[^>]*\bid="([^"]+)"/i)?.[1],$=P?f.get(P):null;if(!$||$.deleted)return b;let C=hr(b,$);return $.shapeStyleDirty&&(C=mr(C,$)),$.kind==="table"&&$.tableDirty&&$.table&&(C=gr(C,$)),C}),d=d.replace(/<p:sp\b[^>]*>[\s\S]*?<\/p:sp>/gi,b=>{const P=b.match(/<p:cNvPr\b[^>]*\bid="([^"]+)"/i)?.[1],$=P?f.get(P):null;if(!$||$.deleted)return b;const M=$.text!==($.sourceText??"")?Cr(b,$):b;return $.formatDirty?Nr(M,$):M});const h=e.filter(b=>b.created&&!b.deleted).map(wr).join(""),y=h?d.replace(/<\/p:spTree>/i,`${h}</p:spTree>`):d,w=xr(y,e),v=$r(br(w,n,r),i,a);return Yn(yr(v,l,s),e,o)}function fr(){return'<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr></p:spTree></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sld>'}function Et(t){const e=Number(t.replace(/\D/g,"").slice(-8));return String(Number.isFinite(e)&&e>1?e:Math.floor(Date.now()/1e3)%1e8)}function hr(t,e){return t.replace(/<(a|p):xfrm\b[^>]*>[\s\S]*?<\/\1:xfrm>/i,(n,r)=>`<${r}:xfrm${Ht(e)}><a:off x="${Math.round(e.x)}" y="${Math.round(e.y)}"/><a:ext cx="${Math.max(1,Math.round(e.width))}" cy="${Math.max(1,Math.round(e.height))}"/></${r}:xfrm>`)}function mr(t,e){return t.replace(/(<p:spPr\b[^>]*>)([\s\S]*?)(<\/p:spPr>)/i,(n,r,i,a)=>{const l=i.search(/<a:ln\b/i),s=l>=0?i.slice(0,l):i,o=l>=0?i.slice(l):"",c=s.replace(/<a:(noFill|solidFill|gradFill|blipFill|pattFill|grpFill)\b[^>]*(?:\/>|>[\s\S]*?<\/a:\1>)/gi,""),d=e.fill?`<a:solidFill><a:srgbClr val="${e.fill.replace("#","").slice(-6)}"/></a:solidFill>`:"<a:noFill/>",f=Pe(e),h=o.replace(/<a:ln\b[^>]*(?:\/>|>[\s\S]*?<\/a:ln>)/i,"");return`${r}${c}${d}${f}${h}${a}`})}function gr(t,e){const n=e.table?.rows.flat()??[];let r=0;return t.replace(/<a:tc\b[^>]*>[\s\S]*?<\/a:tc>/gi,i=>{const a=n[r++];if(!a)return i;let l=0;const s=i.replace(/(<a:t\b[^>]*>)[\s\S]*?(<\/a:t>)/gi,(o,c,d)=>`${c}${l++===0?pt(a.text):""}${d}`);return l?s:s.replace(/<\/a:p>/i,`<a:r><a:t>${pt(a.text)}</a:t></a:r></a:p>`)})}function xr(t,e){const n=Ar(t),r=ze(ze(n,"cSld"),"spTree");if(!r)return t;const i=dn(r).filter(o=>["sp","pic","cxnSp","graphicFrame"].includes(Se(o))),a=new Map(i.map(o=>[Fr(o),o])),l=e.filter(o=>o.editable&&!o.deleted).map(o=>a.get(o.sourceId??Et(o.id))).filter(o=>!!o);if(l.length<2)return t;const s=i.at(-1)?.nextSibling??null;for(const o of l)o.remove();for(const o of l)r.insertBefore(o,s);return new XMLSerializer().serializeToString(n)}function $r(t,e,n){if(!n||!e)return t;const r=t.replace(/<p:bg\b[^>]*(?:\/>|>[\s\S]*?<\/p:bg>)/gi,""),a=`<p:bg><p:bgPr><a:solidFill><a:srgbClr val="${e.replace("#","").slice(-6)}"/></a:solidFill><a:effectLst/></p:bgPr></p:bg>`;return r.replace(/(<p:cSld\b[^>]*>)/i,`$1${a}`)}function br(t,e,n){if(!n)return t;const r=/<mc:AlternateContent\b[^>]*>\s*<mc:Choice\b[^>]*>\s*<p:transition\b[\s\S]*?<\/mc:AlternateContent>/gi,i=t.replace(r,"").replace(/<p:transition\b[^>]*(?:\/>|>[\s\S]*?<\/p:transition>)/gi,"");if(!e||e==="none")return i;const l=e==="morph"?'<mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice xmlns:p159="http://schemas.microsoft.com/office/powerpoint/2015/main" Requires="p159"><p:transition><p159:morph option="byObject"/></p:transition></mc:Choice><mc:Fallback><p:transition><p:fade/></p:transition></mc:Fallback></mc:AlternateContent>':`<p:transition spd="med">${{fade:"<p:fade/>",push:'<p:push dir="u"/>',wipe:'<p:wipe dir="l"/>',split:'<p:split orient="horz" dir="out"/>',circle:"<p:circle/>",cover:'<p:cover dir="l"/>',pull:'<p:pull dir="l"/>',dissolve:"<p:dissolve/>",zoom:"<p:zoom/>",random:"<p:random/>"}[e]}</p:transition>`,s=i.search(/<p:timing\b/i);return s>=0?`${i.slice(0,s)}${l}${i.slice(s)}`:i.replace(/<\/p:sld>/i,`${l}</p:sld>`)}function yr(t,e,n){return n?t.replace(/<p:sld\b[^>]*>/i,r=>{const i=r.replace(/\s+show="[^"]*"/i,"");return e?`${i.slice(0,-1)} show="0">`:i}):t}function wr(t){if(t.kind==="image"&&t.imagePath&&t.imageRelId)return Mr(t);if(t.kind==="table"&&t.table)return Pr(t);if(t.kind==="line")return vr(t);const e=Et(t.id),n=`<a:xfrm${Ht(t)}><a:off x="${Math.round(t.x)}" y="${Math.round(t.y)}"/><a:ext cx="${Math.max(1,Math.round(t.width))}" cy="${Math.max(1,Math.round(t.height))}"/></a:xfrm>`,r=sn(t),i=t.fill?`<a:solidFill><a:srgbClr val="${t.fill.replace("#","").slice(-6)}"/></a:solidFill>`:"<a:noFill/>",a=Pe(t),l=`<p:txBody><a:bodyPr anchor="${t.verticalAlign==="middle"?"ctr":t.verticalAlign==="bottom"?"b":"t"}" wrap="${t.wrap?"square":"none"}" lIns="${t.margin.left}" rIns="${t.margin.right}" tIns="${t.margin.top}" bIns="${t.margin.bottom}"/><a:lstStyle/>${ln(t)}</p:txBody>`;return`<p:sp><p:nvSpPr><p:cNvPr id="${e}" name="${pt(t.name||e)}"/><p:cNvSpPr/><p:nvPr/></p:nvSpPr><p:spPr>${n}${r}${i}${a}</p:spPr>${l}</p:sp>`}function vr(t){const e=Et(t.id),n=`<a:xfrm${Ht(t)}><a:off x="${Math.round(t.x)}" y="${Math.round(t.y)}"/><a:ext cx="${Math.max(1,Math.round(t.width))}" cy="${Math.max(1,Math.round(t.height))}"/></a:xfrm>`;return`<p:cxnSp><p:nvCxnSpPr><p:cNvPr id="${e}" name="${pt(t.name||e)}"/><p:cNvCxnSpPr/><p:nvPr/></p:nvCxnSpPr><p:spPr>${n}${sn(t)}${Pe(t)}</p:spPr></p:cxnSp>`}function sn(t){if(t.geometry==="none")return"";const e=Object.entries(t.geometryAdjust??{}).map(([r,i])=>`<a:gd name="${pt(r)}" fmla="val ${Math.round(i)}"/>`).join(""),n=e?`<a:avLst>${e}</a:avLst>`:"<a:avLst/>";return`<a:prstGeom prst="${pt(t.geometry==="roundRect"?"roundRect":t.geometry)}">${n}</a:prstGeom>`}function Mr(t){const e=Et(t.id),n=t.editorKind==="ink"?' descr="xpert:ink"':"";return`<p:pic><p:nvPicPr><p:cNvPr id="${e}" name="${pt(t.name||e)}"${n}/><p:cNvPicPr preferRelativeResize="0"/><p:nvPr/></p:nvPicPr><p:blipFill><a:blip r:embed="${t.imageRelId}"/><a:stretch><a:fillRect/></a:stretch></p:blipFill><p:spPr><a:xfrm${Ht(t)}><a:off x="${Math.round(t.x)}" y="${Math.round(t.y)}"/><a:ext cx="${Math.round(t.width)}" cy="${Math.round(t.height)}"/></a:xfrm><a:prstGeom prst="rect"/></p:spPr></p:pic>`}function Pr(t){const e=Et(t.id),n=t.table?.columns??[],r=t.table?.rows??[],i=n.reduce((d,f)=>d+Math.max(0,f),0),a=n.map(d=>{const f=i>0?Math.max(0,d)/i:1/Math.max(1,n.length);return`<a:gridCol w="${Math.max(1,Math.round(Math.max(1,t.width)*f))}"/>`}).join(""),l=t.table?.rowHeights??[],s=l.reduce((d,f)=>d+Math.max(0,f),0),o=r.map((d,f)=>`<a:tr h="${Math.max(1,Math.round(s>0?Math.max(0,l[f]??0)/s*Math.max(1,t.height):t.height/Math.max(1,r.length)))}">${d.map(h=>`<a:tc${h.colSpan>1?` gridSpan="${h.colSpan}"`:""}${h.rowSpan>1?` rowSpan="${h.rowSpan}"`:""}><a:txBody><a:bodyPr anchor="${h.verticalAlign==="top"?"t":h.verticalAlign==="bottom"?"b":"ctr"}"/><a:lstStyle/><a:p><a:pPr algn="${h.textAlign==="center"?"ctr":h.textAlign==="right"?"r":h.textAlign==="justify"?"just":"l"}"/><a:r><a:rPr sz="${Math.round((h.fontSizePt??t.fontSizePt)*100)}"><a:solidFill><a:srgbClr val="${(h.textColor??t.textColor).replace("#","").slice(-6)}"/></a:solidFill></a:rPr><a:t>${pt(h.text)}</a:t></a:r></a:p></a:txBody>${Sr(h,t)}</a:tc>`).join("")}</a:tr>`).join(""),c=`<p:xfrm${Ht(t)}><a:off x="${Math.round(t.x)}" y="${Math.round(t.y)}"/><a:ext cx="${Math.round(t.width)}" cy="${Math.round(t.height)}"/></p:xfrm>`;return`<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="${e}" name="${pt(t.name||e)}"/><p:cNvGraphicFramePr/><p:nvPr/></p:nvGraphicFramePr>${c}<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr${t.table?.rtl?' rtl="1"':""}/><a:tblGrid>${a}</a:tblGrid>${o}</a:tbl></a:graphicData></a:graphic></p:graphicFrame>`}function Sr(t,e){const n=(a,l,s)=>{const o=l??t.borderColor??e.stroke,c=s??t.borderWidth??e.strokeWidth;return o&&c?`<a:ln${a} w="${Math.max(1,Math.round(c*an))}"><a:solidFill><a:srgbClr val="${o.replace("#","").slice(-6)}"/></a:solidFill></a:ln${a}>`:`<a:ln${a}><a:noFill/></a:ln${a}>`},r=t.margin;return`<a:tcPr${r?` marL="${Math.max(0,Math.round(r.left))}" marR="${Math.max(0,Math.round(r.right))}" marT="${Math.max(0,Math.round(r.top))}" marB="${Math.max(0,Math.round(r.bottom))}"`:""}>${n("L",t.borderLeftColor,t.borderLeftWidth)}${n("T",t.borderTopColor,t.borderTopWidth)}${n("R",t.borderRightColor,t.borderRightWidth)}${n("B",t.borderBottomColor,t.borderBottomWidth)}</a:tcPr>`}function Pe(t){if(!t.stroke)return"<a:ln><a:noFill/></a:ln>";const e=t.lineDash?`<a:prstDash val="${pt(t.lineDash)}"/>`:"",n=t.kind==="line"?`${t.lineHeadEnd&&t.lineHeadEnd!=="none"?`<a:headEnd type="${t.lineHeadEnd}"/>`:""}${t.lineTailEnd&&t.lineTailEnd!=="none"?`<a:tailEnd type="${t.lineTailEnd}"/>`:""}`:"";return`<a:ln w="${Math.max(1,Math.round(t.strokeWidth*an))}"><a:solidFill><a:srgbClr val="${t.stroke.replace("#","").slice(-6)}"/></a:solidFill>${e}${n}</a:ln>`}function Ht(t){return[t.rotation?` rot="${Math.round(t.rotation*6e4)}"`:"",t.flipH?' flipH="1"':"",t.flipV?' flipV="1"':""].join("")}function Cr(t,e){return t.replace(/(<p:txBody\b[^>]*>)([\s\S]*?)(<\/p:txBody>)/i,(n,r,i,a)=>{const l=i.replace(/<a:p\b[^>]*(?:\/>|>[\s\S]*?<\/a:p>)/gi,"");return`${r}${l}${ln(e)}${a}`})}function ln(t){const e=t.paragraphs.map(r=>r.text).join(`
|
|
4
4
|
`);return(t.paragraphs.length&&e===t.text?t.paragraphs:kr(t)).map(r=>{const i=r.align==="center"?"ctr":r.align==="right"?"r":r.align==="justify"?"just":"l",a=r.runs.length?r.runs:[cn(t,r.text)];return`<a:p><a:pPr algn="${i}" lvl="${Math.max(0,r.level)}"/>${a.map(jr).join("")}<a:endParaRPr sz="${Math.max(1,Math.round(t.fontSizePt*100))}"/></a:p>`}).join("")}function kr(t){return t.text.split(/\n/).map(e=>({text:e,runs:[cn(t,e)],align:t.textAlign,level:0}))}function cn(t,e){return{text:e,fontSizePt:t.fontSizePt,fontFamily:t.fontFamily,color:t.textColor,bold:t.bold,italic:t.italic,underline:t.underline,strike:t.strike,superscript:t.superscript,subscript:t.subscript}}function jr(t){const e=t.superscript?' baseline="30000"':t.subscript?' baseline="-25000"':"",n=t.fontFamily?`<a:latin typeface="${pt(t.fontFamily)}"/>`:"";return`<a:r><a:rPr sz="${Math.max(1,Math.round(t.fontSizePt*100))}"${t.bold?' b="1"':""}${t.italic?' i="1"':""}${t.underline?' u="sng"':""}${t.strike?' strike="sngStrike"':""}${e}><a:solidFill><a:srgbClr val="${t.color.replace("#","").slice(-6)}"/></a:solidFill>${n}</a:rPr><a:t>${pt(t.text)}</a:t></a:r>`}function Nr(t,e){const n=t.search(/<p:txBody\b/i),r=t.search(/<\/p:txBody>/i);if(n<0||r<n)return t;const i=t.slice(0,n),a=t.slice(n,r),l=t.slice(r),s=e.textColor.replace("#","").slice(-6);let o=a.replace(/<a:rPr\b([^>]*)\/>/gi,(c,d)=>`<a:rPr${Le(d,e)}>${Re("",e,s)}</a:rPr>`);return o=o.replace(/<a:rPr\b([^>]*)>([\s\S]*?)<\/a:rPr>/gi,(c,d,f)=>`<a:rPr${Le(d,e)}>${Re(f,e,s)}</a:rPr>`),o=o.replace(/<a:pPr\b([^>]*)>/gi,(c,d)=>{const f=e.textAlign==="center"?"ctr":e.textAlign==="right"?"r":e.textAlign==="justify"?"just":"l";return`<a:pPr${At(d,"algn",f)}>`}),o=o.replace(/<a:bodyPr\b([^>]*?)(\/?)>/i,(c,d,f)=>{const h=e.verticalAlign==="middle"?"ctr":e.verticalAlign==="bottom"?"b":"t";return`<a:bodyPr${At(At(d,"anchor",h),"wrap",e.wrap?"square":"none")}${f}>`}),i+o+l}function Le(t,e){let n=At(t,"sz",String(Math.max(1,Math.round(e.fontSizePt*100))));return n=Ie(n,"b",e.bold),n=Ie(n,"i",e.italic),n=At(n,"u",e.underline?"sng":"none"),n=At(n,"strike",e.strike?"sngStrike":"noStrike"),At(n,"baseline",e.superscript?"30000":e.subscript?"-25000":"0")}function Re(t,e,n){const r=`<a:solidFill><a:srgbClr val="${n}"/></a:solidFill>`;let i=/<a:solidFill\b[^>]*>[\s\S]*?<\/a:solidFill>/i.test(t)?t.replace(/<a:solidFill\b[^>]*>[\s\S]*?<\/a:solidFill>/i,r):r+t;if(e.fontFamily){const a=`<a:latin typeface="${pt(e.fontFamily)}"/>`;i=/<a:latin\b[^>]*\/>/i.test(i)?i.replace(/<a:latin\b[^>]*\/>/i,a):i+a}return i}function At(t,e,n){const r=new RegExp(`\\s${e}="[^"]*"`,"i");return r.test(t)?t.replace(r,` ${e}="${pt(n)}"`):`${t} ${e}="${pt(n)}"`}function Ie(t,e,n){return At(t,e,n?"1":"0")}function Ar(t){const e=new DOMParser().parseFromString(t,"application/xml");if(e.getElementsByTagName("parsererror").length)throw new Error("Invalid Office XML.");return e.documentElement}function ze(t,e){return dn(t).find(n=>Se(n)===e)??null}function dn(t){return t?Array.from(t.children):[]}function Se(t){return t.localName||t.tagName.split(":").pop()||""}function Fr(t){return Array.from(t.getElementsByTagName("*")).find(e=>Se(e)==="cNvPr")?.getAttribute("id")??null}function pt(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ge=9525,ne=18,Bt=Q(31,41,55),Tr={dk1:Q(0,0,0),lt1:Q(255,255,255),dk2:Q(31,41,55),lt2:Q(243,244,246),accent1:Q(68,114,196),accent2:Q(237,125,49),accent3:Q(165,165,165),accent4:Q(255,192,0),accent5:Q(91,155,213),accent6:Q(112,173,71),hlink:Q(5,99,193),folHlink:Q(149,79,114)};function Q(t,e,n){return`#${[t,e,n].map(r=>Math.max(0,Math.min(255,r)).toString(16).padStart(2,"0")).join("")}`}function Er(t,e,n){if(u(t,"noFill"))return null;const r=st(u(t,"solidFill"),n);if(r)return r;const i=u(t,"gradFill"),a=it(u(i,"gsLst"),"gs").map(c=>st(c,n)).find(c=>!!c);if(a)return a;const l=u(t,"pattFill"),s=st(u(l,"fgClr"),n);if(s)return s;const o=u(u(e,"style"),"fillRef");return Number(k(o,"idx")??0)>0?st(o,n):null}function un(t,e,n){if(u(t,"noFill"))return;const r=u(t,"solidFill"),i=st(r,n);if(i){const c=Be(r);return c<1?_e(i,c):i}const a=u(t,"gradFill");if(a){const c=it(u(a,"gsLst"),"gs").map(d=>{const f=st(d,n);if(!f)return null;const h=Math.max(0,Math.min(100,E(d,"pos",0)/1e3)),y=Be(d);return`${y<1?_e(f,y):f} ${h}%`}).filter(d=>!!d);if(c.length>=2){const d=u(a,"lin");return`linear-gradient(${(((d?E(d,"ang",0)/6e4:90)+90)%360+360)%360}deg, ${c.join(", ")})`}}const l=u(t,"pattFill");if(l){const c=st(u(l,"fgClr"),n),d=st(u(l,"bgClr"),n);if(c&&d)return Dr(k(l,"prst")||"pct50",c,d)}const s=u(u(e,"style"),"fillRef");return(Number(k(s,"idx")??0)>0?st(s,n):null)??void 0}function Be(t){const e=t?it(t).find(a=>["srgbClr","schemeClr","sysClr","prstClr"].includes(lt(a))):null,n=e?u(e,"alpha"):null,r=e?u(e,"alphaModFix"):null,i=n?E(n,"val",1e5):r?E(r,"amt",1e5):1e5;return Math.max(0,Math.min(1,i/1e5))}function _e(t,e){const n=t.slice(-6),r=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);return`rgba(${r}, ${i}, ${a}, ${Math.round(e*1e3)/1e3})`}function Dr(t,e,n){const a=`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8" shape-rendering="crispEdges">${Lr(t).map((l,s)=>l.map((o,c)=>`<rect x="${c}" y="${s}" width="1" height="1" fill="${Oe(o?e:n)}"/>`).join("")).join("")}</svg>`;return`url("data:image/svg+xml,${encodeURIComponent(a)}")`}function Lr(t){const e=[[0,32,8,40,2,34,10,42],[48,16,56,24,50,18,58,26],[12,44,4,36,14,46,6,38],[60,28,52,20,62,30,54,22],[3,35,11,43,1,33,9,41],[51,19,59,27,49,17,57,25],[15,47,7,39,13,45,5,37],[63,31,55,23,61,29,53,21]],r={pct5:5,pct10:10,pct20:20,pct25:25,pct30:30,pct40:40,pct50:50,pct60:60,pct70:70,pct75:75,pct80:80,pct90:90}[t];if(r!=null){const l=r/100*64;return e.map(s=>s.map(o=>o<l))}const i={horz:[255,0,0,0,255,0,0,0],vert:[136,136,136,136,136,136,136,136],ltHorz:[255,0,0,0,0,0,0,0],ltVert:[128,128,128,128,128,128,128,128],dkHorz:[255,255,0,0,255,255,0,0],dkVert:[204,204,204,204,204,204,204,204],narHorz:[255,0,255,0,255,0,255,0],narVert:[170,170,170,170,170,170,170,170],dashHorz:[240,0,0,0,15,0,0,0],dashVert:[128,128,128,128,8,8,8,8],cross:[255,128,128,128,128,128,128,128],dnDiag:[136,68,34,17,136,68,34,17],upDiag:[17,34,68,136,17,34,68,136],ltDnDiag:[128,64,32,16,8,4,2,1],ltUpDiag:[1,2,4,8,16,32,64,128],dkDnDiag:[204,102,51,153,204,102,51,153],dkUpDiag:[51,102,204,153,51,102,204,153],wdDnDiag:[225,240,120,60,30,15,135,195],wdUpDiag:[135,15,30,60,120,240,225,195],dashDnDiag:[128,64,32,16,0,0,0,0],dashUpDiag:[1,2,4,8,0,0,0,0],diagCross:[153,102,102,153,153,102,102,153],smCheck:[204,204,51,51,204,204,51,51],lgCheck:[240,240,240,240,15,15,15,15],smGrid:[255,136,136,136,255,136,136,136],lgGrid:[255,128,128,128,128,128,128,128],dotGrid:[170,0,128,0,128,0,128,0],smConfetti:[1,16,2,64,8,128,4,32],lgConfetti:[140,49,3,198,24,99,48,196],horzBrick:[255,128,128,128,255,8,8,8],diagBrick:[128,64,32,16,8,20,34,65],solidDmnd:[16,56,124,254,124,56,16,0],openDmnd:[16,40,68,130,68,40,16,0],dotDmnd:[16,0,68,0,16,0,0,0],plaid:[170,85,170,85,240,240,240,240],sphere:[56,68,146,170,146,68,56,0],weave:[136,84,34,69,136,21,34,81],divot:[8,20,0,0,128,65,0,0],shingle:[128,64,32,224,2,4,8,7],wave:[0,96,153,6,0,96,153,6],trellis:[255,85,255,85,255,85,255,85],zigZag:[17,34,68,136,136,68,34,17]};return(i[t]??i.cross).map(l=>Array.from({length:8},(s,o)=>!!(l&1<<7-o)))}function Oe(t){return t.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Rr(t,e){return st(u(u(t,"ln"),"solidFill"),e)}function Ir(t){return k(u(t,"prstGeom"),"prst")||"rect"}function zr(t){const e=u(u(t,"prstGeom"),"avLst"),n={};for(const r of it(e,"gd")){const i=k(r,"name"),l=k(r,"fmla")?.match(/(?:^|\s)val\s+(-?\d+(?:\.\d+)?)/i);i&&l&&(n[i]=Number(l[1]))}return Object.keys(n).length?n:void 0}function Xe(t){const e=k(t,"type");if(!e||e==="none")return e==="none"?"none":void 0;if(e==="triangle"||e==="stealth"||e==="diamond"||e==="oval"||e==="open")return e}function Ue(t){const e=u(t,"srcRect");return e?{left:Number(k(e,"l")??0)/1e5,top:Number(k(e,"t")??0)/1e5,right:Number(k(e,"r")??0)/1e5,bottom:Number(k(e,"b")??0)/1e5}:null}function Br(t){const e=u(t,"off"),n=u(t,"ext");return{x:E(e,"x",0),y:E(e,"y",0),width:E(n,"cx",0),height:E(n,"cy",0),rotation:Number(k(t,"rot")??0)/6e4,flipH:k(t,"flipH")==="1",flipV:k(t,"flipV")==="1"}}function _r(t){const e=u(t,"off"),n=u(t,"ext"),r=u(t,"chOff"),i=u(t,"chExt"),a=Math.max(1,E(i,"cx",1)),l=Math.max(1,E(i,"cy",1));return{x:E(e,"x",0),y:E(e,"y",0),childX:E(r,"x",0),childY:E(r,"y",0),scaleX:E(n,"cx",a)/a,scaleY:E(n,"cy",l)/l}}function Or(t,e){return{...t,x:e.x+t.x*e.scaleX,y:e.y+t.y*e.scaleY,width:t.width*e.scaleX,height:t.height*e.scaleY}}function qt(t,e){const n=new Map,r=It(t);for(const i of it(r)){const a=k(i,"Id"),l=k(i,"Target");a&&l&&k(i,"TargetMode")!=="External"&&n.set(a,Yr(e,l))}return n}function Ve(t,e){const n=e==="slideLayout"?"slideLayouts":e==="slideMaster"?"slideMasters":e;for(const r of t.values())if(r.includes(`/${n}/`))return r;return null}async function Ge(t,e,n=Tr){const r=[...e.values()].find(l=>l.includes("/theme/"));if(!r||!t.file(r))return n;const i=Ft(It(await St(t,r)),"clrScheme"),a={...n};for(const l of it(i)){const s=st(l,n);s&&(a[lt(l)]=s)}return a}async function We(t,e,n){const r=n.get(e);if(r)return r;const i=t.file(e);if(!i)return null;const a=await i.async("base64"),l=e.split(".").pop()?.toLowerCase()??"png",o=`data:${l==="jpg"||l==="jpeg"?"image/jpeg":l==="svg"?"image/svg+xml":`image/${l}`};base64,${a}`;return n.set(e,o),o}function Ye(t){const e=k(t,"r:embed");if(e)return e;const n=u(t,"extLst");for(const r of it(n,"ext"))for(const i of it(r))if(lt(i).endsWith("svgBlip")){const a=k(i,"r:embed");if(a)return a}return null}function He(t){const e=u(t,"alphaModFix");if(e)return Math.max(0,Math.min(1,E(e,"amt",1e5)/1e5))}function st(t,e){if(!t)return null;const n=it(t).find(a=>["srgbClr","schemeClr","sysClr","prstClr"].includes(lt(a)));if(!n)return null;const r=lt(n)==="srgbClr"||lt(n)==="sysClr"?k(n,"lastClr")??k(n,"val"):lt(n)==="schemeClr"?e[k(n,"val")??""]:Ur(k(n,"val")),i=r?Vr(r):null;return i?Xr(i,n):null}function Xr(t,e){const n=t.slice(-6);let r=parseInt(n.slice(0,2),16),i=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);const l=f=>{const h=u(e,f);return h?Math.max(0,Math.min(1e5,E(h,"val",1e5)))/1e5:null},s=l("tint"),o=l("shade"),c=l("lumMod"),d=l("lumOff");if(s!=null&&(r+=(255-r)*s,i+=(255-i)*s,a+=(255-a)*s),o!=null&&(r*=o,i*=o,a*=o),c!=null||d!=null){const f=c??1,h=d??0;r=r*f+255*h,i=i*f+255*h,a=a*f+255*h}return Q(Math.round(r),Math.round(i),Math.round(a))}function Ur(t){const e={black:Q(0,0,0),white:Q(255,255,255),red:Q(255,0,0),green:Q(0,128,0),blue:Q(0,0,255),yellow:Q(255,255,0),cyan:Q(0,255,255),magenta:Q(255,0,255),gray:Q(128,128,128),orange:Q(255,165,0),purple:Q(128,0,128),transparent:Q(255,255,255)};return t?e[t]??null:null}function Vr(t){const e=t.replace("#","").slice(-6);return/^[0-9a-f]{6}$/i.test(e)?`#${e}`:Bt}function It(t){const e=new DOMParser().parseFromString(t,"application/xml");if(e.getElementsByTagName("parsererror").length)throw new Error("Invalid Office XML.");return e.documentElement}function u(t,e){return e?it(t).find(n=>lt(n)===e)??null:null}function it(t,e){return t?Array.from(t.children).filter(n=>!e||lt(n)===e):[]}function xe(t){const e=[];for(const n of it(t)){if(lt(n)!=="AlternateContent"){e.push(n);continue}const r=u(n,"Choice")??u(n,"Fallback");e.push(...it(r))}return e}function Ft(t,e){return t?lt(t)===e?t:Array.from(t.getElementsByTagName("*")).find(n=>lt(n)===e)??null:null}function Gr(t){return t?.textContent??""}function lt(t){return t?.localName||t?.tagName?.split(":").pop()||""}function k(t,e){return t?.getAttribute(e)??null}function E(t,e,n){const r=k(t,e);if(r==null||r==="")return n;const i=Number(r);return Number.isFinite(i)?i:n}function qe(t,e,n,r){const i=Array.from(t.getElementsByTagName("*")).find(a=>lt(a)===e);return E(i,n,r)}function Wr(t){return k(u(u(t,"nvSpPr"),"cNvPr"),"id")??k(u(u(t,"nvCxnSpPr"),"cNvPr"),"id")??k(u(u(t,"nvPicPr"),"cNvPr"),"id")??k(u(u(t,"nvGraphicFramePr"),"cNvPr"),"id")}function Yr(t,e){if(e.startsWith("/"))return e.replace(/^\/+/,"").split("/").filter(Boolean).join("/");const n=t.split("/");n.pop();for(const r of e.split("/"))!r||r==="."||(r===".."?n.pop():n.push(r));return n.join("/")}async function St(t,e){const n=t.file(e);if(!n)throw new Error(`Presentation package is missing ${e}.`);return n.async("text")}function pn(t,e,n,r){const i=u(t,"bodyPr")??(n?u(n,"bodyPr"):null),a=Ft(u(t,"lstStyle"),"defRPr"),l=Ft(n,"defRPr"),s=[];for(const y of it(t,"p")){const w=u(y,"pPr"),v=Number(k(w,"lvl")??0),b=Hr(t,n,v),P=u(w,"defRPr")??u(b,"defRPr")??a??l,$=[];for(const D of it(y)){if(lt(D)==="br"){$.push(ie(`
|
|
5
5
|
`,u(D,"rPr"),P,e,r));continue}if(lt(D)==="tab"){$.push(ie(" ",u(D,"rPr"),P,e,r));continue}if(!["r","fld"].includes(lt(D)))continue;const U=Gr(u(D,"t"));U&&$.push(ie(U,u(D,"rPr"),P,e,r))}const C=u(w,"lnSpc")??u(b,"lnSpc"),M=u(w,"spcBef")??u(b,"spcBef"),m=u(w,"spcAft")??u(b,"spcAft"),S=E(u(C,"spcPct"),"val",0),F=E(u(C,"spcPts"),"val",0)/100,B=!!u(w,"buNone"),Y=u(w,"buChar")??u(b,"buChar"),H=B?void 0:k(Y,"char")??(u(w,"buAutoNum")||u(b,"buAutoNum")?"•":void 0);s.push({text:$.map(D=>D.text).join(""),runs:$,align:Zr(k(w,"algn")??k(b,"algn")),level:v,lineHeight:S>0?S/1e5:void 0,lineSpacingPt:F>0?F:void 0,spaceBeforePt:E(u(M,"spcPts"),"val",0)/100,spaceAfterPt:E(u(m,"spcPts"),"val",0)/100,marginLeftPt:E(w,"marL",E(b,"marL",0))/12700,indentPt:E(w,"indent",E(b,"indent",0))/12700,bullet:H})}const o=s.flatMap(y=>y.runs)[0],c=k(i,"anchor"),d=u(i,"normAutofit"),f=d?"shrink":u(i,"spAutoFit")?"resize":"none",h=Math.min(1,Math.max(.1,E(d,"fontScale",1e5)/1e5));return{text:s.map(y=>y.text).join(`
|
|
6
6
|
`),paragraphs:s,textColor:o?.color??r,fontSizePt:o?.fontSizePt??ne,fontScale:h,fontFamily:o?.fontFamily??null,bold:o?.bold??!1,italic:o?.italic??!1,underline:o?.underline??!1,strike:o?.strike??!1,superscript:o?.superscript??!1,subscript:o?.subscript??!1,textAlign:s[0]?.align??"left",verticalAlign:c==="ctr"?"middle":c==="b"?"bottom":"top",wrap:k(i,"wrap")!=="none",autoFit:f,margin:{left:E(i,"lIns",91440),right:E(i,"rIns",91440),top:E(i,"tIns",45720),bottom:E(i,"bIns",45720)},sourceText:s.map(y=>y.text).join(`
|
|
7
|
-
`)}}function Hr(t,e,n){const r=`lvl${Math.min(9,Math.max(1,n+1))}pPr`,i=a=>u(u(a,"lstStyle"),r);return i(t)??i(e)}function ie(t,e,n,r,i){const a=u(e,"latin")??u(e,"ea")??u(e,"cs")??u(n,"latin")??u(n,"ea")??u(n,"cs");return{text:t,fontSizePt:E(e,"sz",E(n,"sz",ne*100))/100,fontFamily:k(a,"typeface")||null,color:st(u(e,"solidFill"),r)??st(u(n,"solidFill"),r)??i,bold:oe(e,n,"b"),italic:oe(e,n,"i"),underline:(k(e,"u")??k(n,"u")??"none")!=="none",strike:oe(e,n,"strike"),superscript:Number(k(e,"baseline")??k(n,"baseline")??0)>0,subscript:Number(k(e,"baseline")??k(n,"baseline")??0)<0}}function oe(t,e,n){const r=k(t,n)??k(e,n);return r==="1"||r==="true"}function qr(t,e){const n=u(t,"tbl");if(!n)return null;const r=it(u(n,"tblGrid"),"gridCol").map(o=>E(o,"w",0)),i=it(n,"tr"),a=[];for(const o of i)a.push(it(o,"tc").map(c=>{const d=u(c,"txBody"),f=d?pn(d,e,null,Bt):null,h=u(c,"tcPr"),y=k(h,"anchor"),w=$=>u(h,`ln${$}`),v=w("T")??w("B"),b=$=>st(u(w($),"solidFill"),e),P=$=>E(w($),"w",0)/ge;return{text:f?.text??"",colSpan:Number(k(c,"gridSpan")??1),rowSpan:Number(k(c,"rowSpan")??1),merged:k(c,"hMerge")==="1"||k(c,"vMerge")==="1",fill:st(u(h,"solidFill"),e),textColor:f?.textColor??Bt,fontSizePt:f?.fontSizePt??ne,fontFamily:f?.fontFamily??null,bold:f?.bold??!1,italic:f?.italic??!1,textAlign:f?.textAlign??"left",verticalAlign:y==="ctr"?"middle":y==="b"?"bottom":y==="t"?"top":f?.verticalAlign??"middle",borderColor:st(u(v,"solidFill"),e),borderWidth:E(v,"w",0)/ge,borderTopColor:b("T"),borderTopWidth:P("T"),borderRightColor:b("R"),borderRightWidth:P("R"),borderBottomColor:b("B"),borderBottomWidth:P("B"),borderLeftColor:b("L"),borderLeftWidth:P("L"),margin:{left:E(h,"marL",91440),right:E(h,"marR",91440),top:E(h,"marT",45720),bottom:E(h,"marB",45720)}}}));const l=i.some(o=>it(o,"tc").some(c=>{const d=u(c,"tcPr");return["T","R","B","L"].some(f=>!!u(d,`ln${f}`))})),s=a.some(o=>o.some(c=>[c.borderTopWidth,c.borderRightWidth,c.borderBottomWidth,c.borderLeftWidth].some(d=>(d??0)>0)));if(!l&&!s){const o=e.dk2??e.tx1??Bt;for(const c of a)for(const d of c)d.borderColor??=o,d.borderWidth??=1,d.borderTopColor??=o,d.borderRightColor??=o,d.borderBottomColor??=o,d.borderLeftColor??=o,d.borderTopWidth??=1,d.borderRightWidth??=1,d.borderBottomWidth??=1,d.borderLeftWidth??=1}return{columns:r,rows:a,rowHeights:i.map(o=>E(o,"h",0)),rtl:k(u(n,"tblPr"),"rtl")==="1"||k(u(n,"tblPr"),"rtl")==="true"}}function Zr(t){return t==="ctr"?"center":t==="r"?"right":t==="just"?"justify":"left"}const Kr="application/vnd.openxmlformats-officedocument.presentationml.presentation";function Jr(t,e,n=Kr){return new File([t],e||"presentation.pptx",{type:n})}const Qr=12192e3,ti=6858e3;async function ei(t){const n=await(await Qe(async()=>{const{default:f}=await import("./jszip.min-DSgmDoy9.js").then(h=>h.j);return{default:f}},__vite__mapDeps([0,1,2,3]))).default.loadAsync(t),r=await St(n,"ppt/presentation.xml"),i=It(r),a=qt(await St(n,"ppt/_rels/presentation.xml.rels"),"ppt/presentation.xml"),l=await Ge(n,a),s=qe(i,"sldSz","cx",Qr),o=qe(i,"sldSz","cy",ti),c=[],d=new Map;for(const f of it(u(i,"sldIdLst"),"sldId")){const h=k(f,"r:id"),y=h?a.get(h):null;if(!y||!n.file(y))continue;const w=await St(n,y),v=It(w),b=Gn(w),P=`${y.split("/").slice(0,-1).join("/")}/_rels/${y.split("/").pop()}.rels`,$=n.file(P)?qt(await St(n,P),y):new Map,C=Ve($,"slideLayout"),M=C&&n.file(C)?await St(n,C):null,m=M?It(M):null,S=C?`${C.split("/").slice(0,-1).join("/")}/_rels/${C.split("/").pop()}.rels`:null,F=S&&n.file(S)?qt(await St(n,S),C):new Map,B=m?Ve(F,"slideMaster"):null,Y=B&&n.file(B)?await St(n,B):null,H=Y?It(Y):null,D=B?`${B.split("/").slice(0,-1).join("/")}/_rels/${B.split("/").pop()}.rels`:null,U=D&&n.file(D)?qt(await St(n,D),B):new Map,I=H?await Ge(n,U,l):l,V=ai(m,H),_=u(u(v,"cSld"),"spTree"),O=[];for(const N of[H,m]){const X=u(u(N,"cSld"),"spTree");for(const R of xe(X))$e(R)||O.push(...await te(R,{zip:n,theme:I,relationships:N===H?U:F,imageCache:d,fallback:null,editable:!1}))}for(const N of xe(_)){const X=$e(N),R=X?V.get(fn(X))??V.get(`type:${X.type}`):null;O.push(...await te(N,{zip:n,theme:I,relationships:$,imageCache:d,fallback:R??null,editable:!0}))}if(!O.length)throw new Error("This presentation does not contain any renderable slides.");const q=new Set;for(const N of O){const X=N.sourceId??N.id;let R=X,ft=2;for(;q.has(R);)R=`${X}-${ft++}`;N.sourceId=X,N.id=R,N.editable&&(N.animation=b.get(X)??null),q.add(R)}c.push({path:y,xml:w,shapes:O.filter(N=>N.kind==="line"?N.width>0||N.height>0:N.width>0&&N.height>0),background:ae(v,I)??ae(m,I)??ae(H,I),backgroundCss:se(v,I)??se(m,I)??se(H,I),transition:si(v),hidden:k(v,"show")==="0"})}if(!c.length)throw new Error("This presentation does not contain any slides.");return{width:s,height:o,slides:c}}async function ni(t,e){const r=await(await Qe(async()=>{const{default:i}=await import("./jszip.min-DSgmDoy9.js").then(a=>a.j);return{default:i}},__vite__mapDeps([0,1,2,3]))).default.loadAsync(e);for(const i of t.slides){if(i.created&&await ii(r,i.sourcePath,i.path,t.slides),await ri(r,i),!i.created){r.file(i.path,De(i.xml,i.shapes,i.transition,i.transitionDirty,i.background,i.backgroundDirty,i.hidden,i.hiddenDirty,i.animationDirty));continue}const a=i.sourcePath?await r.file(i.sourcePath)?.async("text"):null;r.file(i.path,De(a??fr(),i.shapes,i.transition,i.transitionDirty,i.background,i.backgroundDirty,i.hidden,i.hiddenDirty,i.animationDirty))}return await cr(r,t.slides,t.width,t.height),r.generateAsync({type:"arraybuffer",compression:"DEFLATE"})}async function ri(t,e){const n=e.shapes.filter(s=>s.created&&!s.deleted&&s.kind==="image"&&s.imageSrc?.startsWith("data:"));if(!n.length)return;const r=Qt(e.path);let i=t.file(r)?await t.file(r).async("text"):'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>',a=Math.max(0,...[...i.matchAll(/Id="rId(\d+)"/gi)].map(s=>Number(s[1])))+1;for(const s of n){const o=s.imageSrc.match(/^data:([^;,]+);base64,(.+)$/);if(!o)continue;const c=o[1].includes("svg")?"svg":o[1].includes("webp")?"webp":o[1].includes("jpeg")||o[1].includes("jpg")?"jpg":"png",d=`ppt/media/editor-${Et(s.id)}.${c}`,f=`rId${a++}`;t.file(d,o[2],{base64:!0}),s.imagePath=d,s.imageRelId=f,i=i.replace(/<\/Relationships>/i,`<Relationship Id="${f}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/editor-${Et(s.id)}.${c}"/></Relationships>`)}t.file(r,i);const l=t.file("[Content_Types].xml");if(l){let s=await l.async("text");/<Default[^>]+Extension="png"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="png" ContentType="image/png"/></Types>')),/<Default[^>]+Extension="jpg"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="jpg" ContentType="image/jpeg"/></Types>')),/<Default[^>]+Extension="svg"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="svg" ContentType="image/svg+xml"/></Types>')),/<Default[^>]+Extension="webp"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="webp" ContentType="image/webp"/></Types>')),t.file("[Content_Types].xml",s)}}async function ii(t,e,n,r){const i=e??r.find(o=>!o.created)?.path;if(!i)return;const a=Qt(i),l=Qt(n),s=t.file(a);s&&t.file(l,await s.async("text"))}async function te(t,e,n={x:0,y:0,scaleX:1,scaleY:1}){const r=lt(t);if(r==="AlternateContent"){const v=u(t,"Choice")??u(t,"Fallback"),b=[];for(const P of it(v))b.push(...await te(P,e,n));return b}if(r==="grpSp"){const v=_r(u(u(t,"grpSpPr"),"xfrm")),b={x:n.x+(v.x-v.childX)*n.scaleX,y:n.y+(v.y-v.childY)*n.scaleY,scaleX:n.scaleX*v.scaleX,scaleY:n.scaleY*v.scaleY},P=[];for(const $ of xe(t))["nvGrpSpPr","grpSpPr"].includes(lt($))||P.push(...await te($,e,b));return P}if(!["sp","pic","cxnSp","graphicFrame"].includes(r))return[];const i=e.fallback?.node??null,a=u(u(t,r==="pic"?"spPr":r==="graphicFrame"?null:"spPr"),"xfrm")??(r==="graphicFrame"?u(t,"xfrm"):null)??(i?u(u(i,"spPr"),"xfrm"):null),l=Or(Br(a),n),s=Wr(t)??`shape-${it(t).length}`,o=u(u(t,r==="pic"?"nvPicPr":r==="graphicFrame"?"nvGraphicFramePr":r==="cxnSp"?"nvCxnSpPr":"nvSpPr"),"cNvPr"),c=k(o,"name")??"",d=oi(s,c,l,e.editable);if(k(o,"descr")==="xpert:ink"&&(d.editorKind="ink"),r==="graphicFrame"){const v=qr(u(u(t,"graphic"),"graphicData"),e.theme);if(v){const M=v.columns.reduce((S,F)=>S+Math.max(0,F),0)*n.scaleX,m=(v.rowHeights??[]).reduce((S,F)=>S+Math.max(0,F),0)*n.scaleY;return[{...d,kind:"table",table:v,geometry:"none",width:M>0?M:d.width,height:m>0?m:d.height}]}const b=Ft(t,"chart"),P=k(b,"r:id"),$=P?e.relationships.get(P):null,C=$?await ar(e.zip,$,e.theme):null;return C?[{...d,kind:"image",imageSrc:C,imageCrop:null,fill:null,stroke:null,paragraphs:[],text:""}]:[]}const f=u(t,"spPr")??(i?u(i,"spPr"):null),h=u(t,"style")??(i?u(i,"style"):null);d.kind=r==="pic"?"image":r==="cxnSp"?"line":"shape";const y=Ir(f);if(d.geometry=r==="cxnSp"&&y==="rect"?"line":y,d.geometryAdjust=zr(f),d.fill=Er(f,t,e.theme),d.fillCss=un(f,t,e.theme),d.stroke=Rr(f,e.theme),d.strokeWidth=Math.min(24,E(u(f,"ln"),"w",0)/ge),d.kind==="line"){const v=u(f,"ln");d.lineHeadEnd=Xe(u(v,"headEnd")),d.lineTailEnd=Xe(u(v,"tailEnd")),d.lineDash=k(u(v,"prstDash"),"val")??void 0}if(r==="pic"){const v=u(t,"blipFill"),b=u(v,"blip"),P=Ye(b),$=P?e.relationships.get(P):null;d.imageSrc=$?await We(e.zip,$,e.imageCache):null,d.imageCrop=Ue(v),d.opacity=He(b)}else{const v=u(f,"blipFill"),b=u(v,"blip"),P=Ye(b),$=P?e.relationships.get(P):null;$&&(d.kind="image",d.imageSrc=await We(e.zip,$,e.imageCache),d.imageCrop=Ue(v),d.opacity=He(b))}const w=u(t,"txBody");return w&&Object.assign(d,pn(w,e.theme,i?u(i,"txBody"):null,st(u(h,"fontRef"),e.theme)??Bt)),[d]}function oi(t,e,n,r){return{id:t,sourceId:t,name:e,kind:"shape",text:"",paragraphs:[],x:n.x,y:n.y,width:n.width,height:n.height,rotation:n.rotation,flipH:n.flipH,flipV:n.flipV,fill:null,stroke:null,strokeWidth:0,geometry:"rect",imageSrc:null,imageCrop:null,textColor:Bt,fontSizePt:ne,fontScale:1,fontFamily:null,bold:!1,italic:!1,underline:!1,strike:!1,superscript:!1,subscript:!1,textAlign:"left",verticalAlign:"top",wrap:!0,autoFit:"none",margin:{left:91440,right:91440,top:45720,bottom:45720},editable:r,table:null,sourceText:"",formatDirty:!1}}function ai(t,e){const n=new Map;for(const r of[e,t]){const i=u(u(r,"cSld"),"spTree");for(const a of it(i)){const l=$e(a);if(!l)continue;const s={...l,node:a};n.set(fn(l),s),n.has(`type:${l.type}`)||n.set(`type:${l.type}`,s)}}return n}function $e(t){const e=Ft(u(t,"nvPr"),"ph")??Ft(t,"ph");return e?{type:k(e,"type")??"body",idx:k(e,"idx")??"0"}:null}function fn(t){return`${t.type}:${t.idx}`}function ae(t,e){const n=u(t,"cSld");return st(u(u(u(n,"bg"),"bgPr"),"solidFill"),e)}function se(t,e){const n=u(t,"cSld"),r=u(n,"bg"),i=u(r,"bgPr");return i?un(i,t??i,e):st(u(r,"bgRef"),e)??void 0}function si(t){const e=Ft(t,"transition");return e?Ft(e,"morph")?"morph":["fade","push","wipe","split","circle","cover","pull","dissolve","zoom","random"].find(r=>u(e,r))??"none":"none"}const le=12700;Nt("office","Office",G(255,255,255),G(31,41,55),G(68,114,196),"Aptos"),Nt("ember","红韵",G(255,247,247),G(69,10,10),G(185,28,28),"Aptos"),Nt("indigo","靛蓝",G(248,250,252),G(30,27,75),G(67,56,202),"Aptos"),Nt("forest","森绿",G(247,254,231),G(20,83,45),G(22,101,52),"Aptos"),Nt("cream","米黄",G(255,251,235),G(69,26,3),G(180,83,9),"Georgia"),Nt("rose","蔷薇",G(255,241,242),G(76,5,25),G(190,24,93),"Aptos"),Nt("graphite","石墨",G(245,245,245),G(23,23,23),G(82,82,82),"Arial"),Nt("midnight","午夜",G(15,23,42),G(248,250,252),G(56,189,248),"Aptos");function _t(t){return structuredClone(t)}function Ce(t,e){const n=e.text??"",r=e.fontSizePt??24,i=e.textAlign??"left",a={text:n,fontSizePt:r,fontFamily:"Arial",color:G(31,41,55),bold:!1,italic:!1,underline:!1,strike:!1,superscript:!1,subscript:!1};return{id:t,name:t,kind:"shape",text:n,paragraphs:n?[{text:n,runs:[a],align:i,level:0}]:[],x:e.x??1e6,y:e.y??1e6,width:e.width??4e6,height:e.height??1e6,rotation:0,flipH:!1,flipV:!1,fill:e.fill??null,stroke:e.stroke??null,strokeWidth:e.stroke?1:0,geometry:e.geometry??"rect",imageSrc:null,imageCrop:null,textColor:G(31,41,55),fontSizePt:r,fontScale:1,fontFamily:"Arial",bold:!1,italic:!1,underline:!1,strike:!1,superscript:!1,subscript:!1,textAlign:i,verticalAlign:"middle",wrap:!0,autoFit:"shrink",margin:{left:91440,right:91440,top:45720,bottom:45720},editable:!0,table:null,sourceText:"",formatDirty:!0,created:!0}}function Ze(t){return Ce(`textbox-${Date.now()}`,{x:Math.round(t.width*.12),y:Math.round(t.height*.18),width:Math.round(t.width*.55),height:Math.round(t.height*.16),text:"输入文本",fontSizePt:24,textAlign:"left"})}function li(t,e){return Ce(`shape-${Date.now()}`,{x:Math.round(t.width*.2),y:Math.round(t.height*.28),width:Math.round(t.width*.28),height:Math.round(t.height*.2),geometry:e,fill:G(219,234,254),stroke:G(37,99,235),text:""})}function ci(t,e,n){const r=G(148,163,184),i=1,a=Array.from({length:e},(s,o)=>Array.from({length:n},(c,d)=>({text:o===0?`列 ${d+1}`:`单元格 ${o+1},${d+1}`,colSpan:1,rowSpan:1,borderColor:r,borderWidth:i,borderTopColor:r,borderTopWidth:i,borderRightColor:r,borderRightWidth:i,borderBottomColor:r,borderBottomWidth:i,borderLeftColor:r,borderLeftWidth:i}))),l=Ce(`table-${Date.now()}`,{x:Math.round(t.width*.16),y:Math.round(t.height*.24),width:Math.round(t.width*.62),height:Math.round(t.height*.3),fill:G(255,255,255),stroke:G(148,163,184)});return l.kind="table",l.table={columns:Array.from({length:n},()=>1),rows:a},l}function di(t,e){const n=structuredClone(t);return n.id=`${t.id}-copy-${Date.now()}`,n.sourceId=void 0,n.created=!0,n.deleted=!1,n.editable=!0,n.x=Math.min(e.width-n.width,n.x+Math.round(e.width*.03)),n.y=Math.min(e.height-n.height,n.y+Math.round(e.height*.03)),n}function ui(t,e,n){const r=t.indexOf(e);if(r<0)return!1;t.splice(r,1);const i=n==="front"?t.length:n==="back"?0:n==="forward"?Math.min(t.length,r+1):Math.max(0,r-1);return t.splice(i,0,e),!0}function pi(t,e,n){const r=_t({width:t.width,height:t.height,slides:[e]}).slides[0];return r.path=`ppt/slides/editor-slide-${Date.now()}.xml`,r.sourcePath=e.sourcePath??e.path,r.created=!0,r.shapes=r.shapes.map(i=>({...i,deleted:n,created:i.created})),n&&(r.background=G(255,255,255),delete r.backgroundCss,r.backgroundDirty=!0),r}function be(t,e){return e.split(/\n/).map(n=>({text:n,level:0,align:t.textAlign,runs:[{text:n,fontSizePt:t.fontSizePt,fontFamily:t.fontFamily,color:t.textColor,bold:t.bold,italic:t.italic,underline:t.underline,strike:t.strike,superscript:t.superscript,subscript:t.subscript}]}))}function hn(t){if(!t.text||t.width<=0||t.height<=0)return 1;const e=Math.max(1,t.width-t.margin.left-t.margin.right),n=Math.max(1,t.height-t.margin.top-t.margin.bottom),r=t.paragraphs.length?t.paragraphs:t.text.split(`
|
|
7
|
+
`)}}function Hr(t,e,n){const r=`lvl${Math.min(9,Math.max(1,n+1))}pPr`,i=a=>u(u(a,"lstStyle"),r);return i(t)??i(e)}function ie(t,e,n,r,i){const a=u(e,"latin")??u(e,"ea")??u(e,"cs")??u(n,"latin")??u(n,"ea")??u(n,"cs");return{text:t,fontSizePt:E(e,"sz",E(n,"sz",ne*100))/100,fontFamily:k(a,"typeface")||null,color:st(u(e,"solidFill"),r)??st(u(n,"solidFill"),r)??i,bold:oe(e,n,"b"),italic:oe(e,n,"i"),underline:(k(e,"u")??k(n,"u")??"none")!=="none",strike:oe(e,n,"strike"),superscript:Number(k(e,"baseline")??k(n,"baseline")??0)>0,subscript:Number(k(e,"baseline")??k(n,"baseline")??0)<0}}function oe(t,e,n){const r=k(t,n)??k(e,n);return r==="1"||r==="true"}function qr(t,e){const n=u(t,"tbl");if(!n)return null;const r=it(u(n,"tblGrid"),"gridCol").map(o=>E(o,"w",0)),i=it(n,"tr"),a=[];for(const o of i)a.push(it(o,"tc").map(c=>{const d=u(c,"txBody"),f=d?pn(d,e,null,Bt):null,h=u(c,"tcPr"),y=k(h,"anchor"),w=$=>u(h,`ln${$}`),v=w("T")??w("B"),b=$=>st(u(w($),"solidFill"),e),P=$=>E(w($),"w",0)/ge;return{text:f?.text??"",colSpan:Number(k(c,"gridSpan")??1),rowSpan:Number(k(c,"rowSpan")??1),merged:k(c,"hMerge")==="1"||k(c,"vMerge")==="1",fill:st(u(h,"solidFill"),e),textColor:f?.textColor??Bt,fontSizePt:f?.fontSizePt??ne,fontFamily:f?.fontFamily??null,bold:f?.bold??!1,italic:f?.italic??!1,textAlign:f?.textAlign??"left",verticalAlign:y==="ctr"?"middle":y==="b"?"bottom":y==="t"?"top":f?.verticalAlign??"middle",borderColor:st(u(v,"solidFill"),e),borderWidth:E(v,"w",0)/ge,borderTopColor:b("T"),borderTopWidth:P("T"),borderRightColor:b("R"),borderRightWidth:P("R"),borderBottomColor:b("B"),borderBottomWidth:P("B"),borderLeftColor:b("L"),borderLeftWidth:P("L"),margin:{left:E(h,"marL",91440),right:E(h,"marR",91440),top:E(h,"marT",45720),bottom:E(h,"marB",45720)}}}));const l=i.some(o=>it(o,"tc").some(c=>{const d=u(c,"tcPr");return["T","R","B","L"].some(f=>!!u(d,`ln${f}`))})),s=a.some(o=>o.some(c=>[c.borderTopWidth,c.borderRightWidth,c.borderBottomWidth,c.borderLeftWidth].some(d=>(d??0)>0)));if(!l&&!s){const o=e.dk2??e.tx1??Bt;for(const c of a)for(const d of c)d.borderColor??=o,d.borderWidth??=1,d.borderTopColor??=o,d.borderRightColor??=o,d.borderBottomColor??=o,d.borderLeftColor??=o,d.borderTopWidth??=1,d.borderRightWidth??=1,d.borderBottomWidth??=1,d.borderLeftWidth??=1}return{columns:r,rows:a,rowHeights:i.map(o=>E(o,"h",0)),rtl:k(u(n,"tblPr"),"rtl")==="1"||k(u(n,"tblPr"),"rtl")==="true"}}function Zr(t){return t==="ctr"?"center":t==="r"?"right":t==="just"?"justify":"left"}const Kr="application/vnd.openxmlformats-officedocument.presentationml.presentation";function Jr(t,e,n=Kr){return new File([t],e||"presentation.pptx",{type:n})}const Qr=12192e3,ti=6858e3;async function ei(t){const n=await(await Qe(async()=>{const{default:f}=await import("./jszip.min-Dt-AHYC0.js").then(h=>h.j);return{default:f}},__vite__mapDeps([0,1,2,3]))).default.loadAsync(t),r=await St(n,"ppt/presentation.xml"),i=It(r),a=qt(await St(n,"ppt/_rels/presentation.xml.rels"),"ppt/presentation.xml"),l=await Ge(n,a),s=qe(i,"sldSz","cx",Qr),o=qe(i,"sldSz","cy",ti),c=[],d=new Map;for(const f of it(u(i,"sldIdLst"),"sldId")){const h=k(f,"r:id"),y=h?a.get(h):null;if(!y||!n.file(y))continue;const w=await St(n,y),v=It(w),b=Gn(w),P=`${y.split("/").slice(0,-1).join("/")}/_rels/${y.split("/").pop()}.rels`,$=n.file(P)?qt(await St(n,P),y):new Map,C=Ve($,"slideLayout"),M=C&&n.file(C)?await St(n,C):null,m=M?It(M):null,S=C?`${C.split("/").slice(0,-1).join("/")}/_rels/${C.split("/").pop()}.rels`:null,F=S&&n.file(S)?qt(await St(n,S),C):new Map,B=m?Ve(F,"slideMaster"):null,Y=B&&n.file(B)?await St(n,B):null,H=Y?It(Y):null,D=B?`${B.split("/").slice(0,-1).join("/")}/_rels/${B.split("/").pop()}.rels`:null,U=D&&n.file(D)?qt(await St(n,D),B):new Map,I=H?await Ge(n,U,l):l,V=ai(m,H),_=u(u(v,"cSld"),"spTree"),O=[];for(const N of[H,m]){const X=u(u(N,"cSld"),"spTree");for(const R of xe(X))$e(R)||O.push(...await te(R,{zip:n,theme:I,relationships:N===H?U:F,imageCache:d,fallback:null,editable:!1}))}for(const N of xe(_)){const X=$e(N),R=X?V.get(fn(X))??V.get(`type:${X.type}`):null;O.push(...await te(N,{zip:n,theme:I,relationships:$,imageCache:d,fallback:R??null,editable:!0}))}if(!O.length)throw new Error("This presentation does not contain any renderable slides.");const q=new Set;for(const N of O){const X=N.sourceId??N.id;let R=X,ft=2;for(;q.has(R);)R=`${X}-${ft++}`;N.sourceId=X,N.id=R,N.editable&&(N.animation=b.get(X)??null),q.add(R)}c.push({path:y,xml:w,shapes:O.filter(N=>N.kind==="line"?N.width>0||N.height>0:N.width>0&&N.height>0),background:ae(v,I)??ae(m,I)??ae(H,I),backgroundCss:se(v,I)??se(m,I)??se(H,I),transition:si(v),hidden:k(v,"show")==="0"})}if(!c.length)throw new Error("This presentation does not contain any slides.");return{width:s,height:o,slides:c}}async function ni(t,e){const r=await(await Qe(async()=>{const{default:i}=await import("./jszip.min-Dt-AHYC0.js").then(a=>a.j);return{default:i}},__vite__mapDeps([0,1,2,3]))).default.loadAsync(e);for(const i of t.slides){if(i.created&&await ii(r,i.sourcePath,i.path,t.slides),await ri(r,i),!i.created){r.file(i.path,De(i.xml,i.shapes,i.transition,i.transitionDirty,i.background,i.backgroundDirty,i.hidden,i.hiddenDirty,i.animationDirty));continue}const a=i.sourcePath?await r.file(i.sourcePath)?.async("text"):null;r.file(i.path,De(a??fr(),i.shapes,i.transition,i.transitionDirty,i.background,i.backgroundDirty,i.hidden,i.hiddenDirty,i.animationDirty))}return await cr(r,t.slides,t.width,t.height),r.generateAsync({type:"arraybuffer",compression:"DEFLATE"})}async function ri(t,e){const n=e.shapes.filter(s=>s.created&&!s.deleted&&s.kind==="image"&&s.imageSrc?.startsWith("data:"));if(!n.length)return;const r=Qt(e.path);let i=t.file(r)?await t.file(r).async("text"):'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>',a=Math.max(0,...[...i.matchAll(/Id="rId(\d+)"/gi)].map(s=>Number(s[1])))+1;for(const s of n){const o=s.imageSrc.match(/^data:([^;,]+);base64,(.+)$/);if(!o)continue;const c=o[1].includes("svg")?"svg":o[1].includes("webp")?"webp":o[1].includes("jpeg")||o[1].includes("jpg")?"jpg":"png",d=`ppt/media/editor-${Et(s.id)}.${c}`,f=`rId${a++}`;t.file(d,o[2],{base64:!0}),s.imagePath=d,s.imageRelId=f,i=i.replace(/<\/Relationships>/i,`<Relationship Id="${f}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/editor-${Et(s.id)}.${c}"/></Relationships>`)}t.file(r,i);const l=t.file("[Content_Types].xml");if(l){let s=await l.async("text");/<Default[^>]+Extension="png"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="png" ContentType="image/png"/></Types>')),/<Default[^>]+Extension="jpg"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="jpg" ContentType="image/jpeg"/></Types>')),/<Default[^>]+Extension="svg"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="svg" ContentType="image/svg+xml"/></Types>')),/<Default[^>]+Extension="webp"/i.test(s)||(s=s.replace(/<\/Types>/i,'<Default Extension="webp" ContentType="image/webp"/></Types>')),t.file("[Content_Types].xml",s)}}async function ii(t,e,n,r){const i=e??r.find(o=>!o.created)?.path;if(!i)return;const a=Qt(i),l=Qt(n),s=t.file(a);s&&t.file(l,await s.async("text"))}async function te(t,e,n={x:0,y:0,scaleX:1,scaleY:1}){const r=lt(t);if(r==="AlternateContent"){const v=u(t,"Choice")??u(t,"Fallback"),b=[];for(const P of it(v))b.push(...await te(P,e,n));return b}if(r==="grpSp"){const v=_r(u(u(t,"grpSpPr"),"xfrm")),b={x:n.x+(v.x-v.childX)*n.scaleX,y:n.y+(v.y-v.childY)*n.scaleY,scaleX:n.scaleX*v.scaleX,scaleY:n.scaleY*v.scaleY},P=[];for(const $ of xe(t))["nvGrpSpPr","grpSpPr"].includes(lt($))||P.push(...await te($,e,b));return P}if(!["sp","pic","cxnSp","graphicFrame"].includes(r))return[];const i=e.fallback?.node??null,a=u(u(t,r==="pic"?"spPr":r==="graphicFrame"?null:"spPr"),"xfrm")??(r==="graphicFrame"?u(t,"xfrm"):null)??(i?u(u(i,"spPr"),"xfrm"):null),l=Or(Br(a),n),s=Wr(t)??`shape-${it(t).length}`,o=u(u(t,r==="pic"?"nvPicPr":r==="graphicFrame"?"nvGraphicFramePr":r==="cxnSp"?"nvCxnSpPr":"nvSpPr"),"cNvPr"),c=k(o,"name")??"",d=oi(s,c,l,e.editable);if(k(o,"descr")==="xpert:ink"&&(d.editorKind="ink"),r==="graphicFrame"){const v=qr(u(u(t,"graphic"),"graphicData"),e.theme);if(v){const M=v.columns.reduce((S,F)=>S+Math.max(0,F),0)*n.scaleX,m=(v.rowHeights??[]).reduce((S,F)=>S+Math.max(0,F),0)*n.scaleY;return[{...d,kind:"table",table:v,geometry:"none",width:M>0?M:d.width,height:m>0?m:d.height}]}const b=Ft(t,"chart"),P=k(b,"r:id"),$=P?e.relationships.get(P):null,C=$?await ar(e.zip,$,e.theme):null;return C?[{...d,kind:"image",imageSrc:C,imageCrop:null,fill:null,stroke:null,paragraphs:[],text:""}]:[]}const f=u(t,"spPr")??(i?u(i,"spPr"):null),h=u(t,"style")??(i?u(i,"style"):null);d.kind=r==="pic"?"image":r==="cxnSp"?"line":"shape";const y=Ir(f);if(d.geometry=r==="cxnSp"&&y==="rect"?"line":y,d.geometryAdjust=zr(f),d.fill=Er(f,t,e.theme),d.fillCss=un(f,t,e.theme),d.stroke=Rr(f,e.theme),d.strokeWidth=Math.min(24,E(u(f,"ln"),"w",0)/ge),d.kind==="line"){const v=u(f,"ln");d.lineHeadEnd=Xe(u(v,"headEnd")),d.lineTailEnd=Xe(u(v,"tailEnd")),d.lineDash=k(u(v,"prstDash"),"val")??void 0}if(r==="pic"){const v=u(t,"blipFill"),b=u(v,"blip"),P=Ye(b),$=P?e.relationships.get(P):null;d.imageSrc=$?await We(e.zip,$,e.imageCache):null,d.imageCrop=Ue(v),d.opacity=He(b)}else{const v=u(f,"blipFill"),b=u(v,"blip"),P=Ye(b),$=P?e.relationships.get(P):null;$&&(d.kind="image",d.imageSrc=await We(e.zip,$,e.imageCache),d.imageCrop=Ue(v),d.opacity=He(b))}const w=u(t,"txBody");return w&&Object.assign(d,pn(w,e.theme,i?u(i,"txBody"):null,st(u(h,"fontRef"),e.theme)??Bt)),[d]}function oi(t,e,n,r){return{id:t,sourceId:t,name:e,kind:"shape",text:"",paragraphs:[],x:n.x,y:n.y,width:n.width,height:n.height,rotation:n.rotation,flipH:n.flipH,flipV:n.flipV,fill:null,stroke:null,strokeWidth:0,geometry:"rect",imageSrc:null,imageCrop:null,textColor:Bt,fontSizePt:ne,fontScale:1,fontFamily:null,bold:!1,italic:!1,underline:!1,strike:!1,superscript:!1,subscript:!1,textAlign:"left",verticalAlign:"top",wrap:!0,autoFit:"none",margin:{left:91440,right:91440,top:45720,bottom:45720},editable:r,table:null,sourceText:"",formatDirty:!1}}function ai(t,e){const n=new Map;for(const r of[e,t]){const i=u(u(r,"cSld"),"spTree");for(const a of it(i)){const l=$e(a);if(!l)continue;const s={...l,node:a};n.set(fn(l),s),n.has(`type:${l.type}`)||n.set(`type:${l.type}`,s)}}return n}function $e(t){const e=Ft(u(t,"nvPr"),"ph")??Ft(t,"ph");return e?{type:k(e,"type")??"body",idx:k(e,"idx")??"0"}:null}function fn(t){return`${t.type}:${t.idx}`}function ae(t,e){const n=u(t,"cSld");return st(u(u(u(n,"bg"),"bgPr"),"solidFill"),e)}function se(t,e){const n=u(t,"cSld"),r=u(n,"bg"),i=u(r,"bgPr");return i?un(i,t??i,e):st(u(r,"bgRef"),e)??void 0}function si(t){const e=Ft(t,"transition");return e?Ft(e,"morph")?"morph":["fade","push","wipe","split","circle","cover","pull","dissolve","zoom","random"].find(r=>u(e,r))??"none":"none"}const le=12700;Nt("office","Office",G(255,255,255),G(31,41,55),G(68,114,196),"Aptos"),Nt("ember","红韵",G(255,247,247),G(69,10,10),G(185,28,28),"Aptos"),Nt("indigo","靛蓝",G(248,250,252),G(30,27,75),G(67,56,202),"Aptos"),Nt("forest","森绿",G(247,254,231),G(20,83,45),G(22,101,52),"Aptos"),Nt("cream","米黄",G(255,251,235),G(69,26,3),G(180,83,9),"Georgia"),Nt("rose","蔷薇",G(255,241,242),G(76,5,25),G(190,24,93),"Aptos"),Nt("graphite","石墨",G(245,245,245),G(23,23,23),G(82,82,82),"Arial"),Nt("midnight","午夜",G(15,23,42),G(248,250,252),G(56,189,248),"Aptos");function _t(t){return structuredClone(t)}function Ce(t,e){const n=e.text??"",r=e.fontSizePt??24,i=e.textAlign??"left",a={text:n,fontSizePt:r,fontFamily:"Arial",color:G(31,41,55),bold:!1,italic:!1,underline:!1,strike:!1,superscript:!1,subscript:!1};return{id:t,name:t,kind:"shape",text:n,paragraphs:n?[{text:n,runs:[a],align:i,level:0}]:[],x:e.x??1e6,y:e.y??1e6,width:e.width??4e6,height:e.height??1e6,rotation:0,flipH:!1,flipV:!1,fill:e.fill??null,stroke:e.stroke??null,strokeWidth:e.stroke?1:0,geometry:e.geometry??"rect",imageSrc:null,imageCrop:null,textColor:G(31,41,55),fontSizePt:r,fontScale:1,fontFamily:"Arial",bold:!1,italic:!1,underline:!1,strike:!1,superscript:!1,subscript:!1,textAlign:i,verticalAlign:"middle",wrap:!0,autoFit:"shrink",margin:{left:91440,right:91440,top:45720,bottom:45720},editable:!0,table:null,sourceText:"",formatDirty:!0,created:!0}}function Ze(t){return Ce(`textbox-${Date.now()}`,{x:Math.round(t.width*.12),y:Math.round(t.height*.18),width:Math.round(t.width*.55),height:Math.round(t.height*.16),text:"输入文本",fontSizePt:24,textAlign:"left"})}function li(t,e){return Ce(`shape-${Date.now()}`,{x:Math.round(t.width*.2),y:Math.round(t.height*.28),width:Math.round(t.width*.28),height:Math.round(t.height*.2),geometry:e,fill:G(219,234,254),stroke:G(37,99,235),text:""})}function ci(t,e,n){const r=G(148,163,184),i=1,a=Array.from({length:e},(s,o)=>Array.from({length:n},(c,d)=>({text:o===0?`列 ${d+1}`:`单元格 ${o+1},${d+1}`,colSpan:1,rowSpan:1,borderColor:r,borderWidth:i,borderTopColor:r,borderTopWidth:i,borderRightColor:r,borderRightWidth:i,borderBottomColor:r,borderBottomWidth:i,borderLeftColor:r,borderLeftWidth:i}))),l=Ce(`table-${Date.now()}`,{x:Math.round(t.width*.16),y:Math.round(t.height*.24),width:Math.round(t.width*.62),height:Math.round(t.height*.3),fill:G(255,255,255),stroke:G(148,163,184)});return l.kind="table",l.table={columns:Array.from({length:n},()=>1),rows:a},l}function di(t,e){const n=structuredClone(t);return n.id=`${t.id}-copy-${Date.now()}`,n.sourceId=void 0,n.created=!0,n.deleted=!1,n.editable=!0,n.x=Math.min(e.width-n.width,n.x+Math.round(e.width*.03)),n.y=Math.min(e.height-n.height,n.y+Math.round(e.height*.03)),n}function ui(t,e,n){const r=t.indexOf(e);if(r<0)return!1;t.splice(r,1);const i=n==="front"?t.length:n==="back"?0:n==="forward"?Math.min(t.length,r+1):Math.max(0,r-1);return t.splice(i,0,e),!0}function pi(t,e,n){const r=_t({width:t.width,height:t.height,slides:[e]}).slides[0];return r.path=`ppt/slides/editor-slide-${Date.now()}.xml`,r.sourcePath=e.sourcePath??e.path,r.created=!0,r.shapes=r.shapes.map(i=>({...i,deleted:n,created:i.created})),n&&(r.background=G(255,255,255),delete r.backgroundCss,r.backgroundDirty=!0),r}function be(t,e){return e.split(/\n/).map(n=>({text:n,level:0,align:t.textAlign,runs:[{text:n,fontSizePt:t.fontSizePt,fontFamily:t.fontFamily,color:t.textColor,bold:t.bold,italic:t.italic,underline:t.underline,strike:t.strike,superscript:t.superscript,subscript:t.subscript}]}))}function hn(t){if(!t.text||t.width<=0||t.height<=0)return 1;const e=Math.max(1,t.width-t.margin.left-t.margin.right),n=Math.max(1,t.height-t.margin.top-t.margin.bottom),r=t.paragraphs.length?t.paragraphs:t.text.split(`
|
|
8
8
|
`).map(o=>({text:o,runs:[],align:t.textAlign,level:0}));let i=0,a=0;for(const o of r){const c=o.runs.length?o.runs:[{text:o.text,fontSizePt:t.fontSizePt}];let d=0,f=t.fontSizePt*t.fontScale*le*1.2,h=!1;const y=()=>{a=Math.max(a,d),i+=f,d=0,f=t.fontSizePt*t.fontScale*le*1.2,h=!1};for(const w of c){const v=w.fontSizePt*t.fontScale*le;for(const b of w.text){if(b===`
|
|
9
9
|
`){y();continue}const P=v*fi(b);t.wrap&&h&&d+P>e&&y(),d+=P,f=Math.max(f,v*1.2),h=!0}}y()}const l=n/Math.max(1,i),s=t.wrap?1:e/Math.max(1,a);return Math.max(.35,Math.min(1,l,s))}function G(t,e,n){return`#${[t,e,n].map(r=>Math.max(0,Math.min(255,r)).toString(16).padStart(2,"0")).join("")}`}function Nt(t,e,n,r,i,a){return{id:t,name:e,background:n,text:r,accent:i,fontFamily:a}}function fi(t){const e=t.codePointAt(0)??0;return e>=11904&&e<=40959||e>=44032&&e<=55215||e>=63744&&e<=64255||e>65535?1:/\s/.test(t)?.32:/[A-Z0-9]/.test(t)?.62:/[.,:;!?'"`|ijlI]/.test(t)?.32:.52}class hi{#e=[];#n=[];#t=0;#r=0;#i=1;get canUndo(){return this.#e.length>0}get canRedo(){return this.#n.length>0}get dirty(){return this.#t!==this.#r}push(e){this.#e.push({deck:_t(e),revision:this.#t}),this.#e.length>50&&this.#e.shift(),this.#n=[],this.#t=this.#i++}undo(e){const n=this.#e.pop();return n?(this.#n.push({deck:_t(e),revision:this.#t}),this.#t=n.revision,n.deck):null}redo(e){const n=this.#n.pop();return n?(this.#e.push({deck:_t(e),revision:this.#t}),this.#t=n.revision,n.deck):null}markSaved(){this.#r=this.#t}reset(){this.#e=[],this.#n=[],this.#t=0,this.#r=0,this.#i=1}}function mi(t,e){const n=vi(t.geometry),r=`${t.fontSizePt*t.fontScale*hn(t)*12700*100/e.width}cqw`,i=[t.rotation?`rotate(${t.rotation}deg)`:"",t.flipH?"scaleX(-1)":"",t.flipV?"scaleY(-1)":""].filter(Boolean).join(" ");return{left:`${t.x/e.width*100}%`,top:`${t.y/e.height*100}%`,width:t.kind==="line"&&t.width<=0?"1px":`${t.width/e.width*100}%`,height:t.kind==="line"&&t.height<=0?"1px":`${t.height/e.height*100}%`,background:t.fillCss||t.fill||"transparent",borderColor:t.stroke||"transparent",borderWidth:n||t.kind==="line"?"0":t.stroke?`${Math.max(1,t.strokeWidth)}px`:"0",color:t.textColor,opacity:t.kind==="image"?t.opacity??1:1,borderRadius:Ci(t),fontSize:r,fontFamily:t.fontFamily||"Arial, sans-serif",fontWeight:t.bold?"700":"400",fontStyle:t.italic?"italic":"normal",textDecoration:[t.underline?"underline":"",t.strike?"line-through":""].filter(Boolean).join(" ")||"none",textAlign:t.textAlign,whiteSpace:t.wrap?"pre-wrap":"pre",overflow:"hidden",clipPath:n?`polygon(${Pi(t.geometry,t.geometryAdjust,t.width,t.height)})`:"none",transform:i||"none"}}function gi(t){return t.backgroundCss||t.background||"Canvas"}function xi(t){const e=t.geometry||"line",n=wi(t);if(n.length<4)return"M 0 0 L 100 100";const r=[`M ${n[0]} ${n[1]}`];if(/^curvedConnector/.test(e)&&n.length>=6)for(let i=2;i<n.length;i+=2){const a=n[i-2]??0,l=n[i-1]??0,s=n[i]??0,o=n[i+1]??0,c=n[i-4]??a,d=n[i-3]??l,f=n[i+2]??s,h=n[i+3]??o;r.push(`C ${a+(s-c)/6} ${l+(o-d)/6}, ${s-(f-a)/6} ${o-(h-l)/6}, ${s} ${o}`)}else for(let i=2;i<n.length;i+=2)r.push(`L ${n[i]} ${n[i+1]}`);return r.join(" ")}function $i(t,e){switch(yi(t,e)){case"diamond":return"M 0 3 L 3 0 L 6 3 L 3 6 Z";case"oval":return"M 6 3 A 3 3 0 1 1 0 3 A 3 3 0 1 1 6 3 Z";case"open":return"M 6 0 L 0 3 L 6 6";case"stealth":return"M 6 3 L 0 0 L 1.5 3 L 0 6 Z";default:return"M 6 3 L 0 0 L 0 6 Z"}}function bi(t){switch(t.lineDash){case"dash":case"dashStyle":return"8 5";case"dot":return"2 4";case"dashDot":return"8 4 2 4";case"lgDash":return"14 6";case"lgDashDot":return"14 5 2 5";case"lgDashDotDot":return"14 5 2 5 2 5";case"sysDash":return"8 4";case"sysDot":return"2 3";case"sysDashDot":return"8 4 2 4";case"sysDashDotDot":return"8 4 2 4 2 4";default:return null}}function yi(t,e){return(e==="start"?t.lineHeadEnd:t.lineTailEnd)??"none"}function wi(t){const e=t.geometry||"line",n=t.width>0?100:0,r=t.height>0?100:0,i=(l,s=0,o=1)=>Math.min(o,Math.max(s,l)),a=(l,s)=>i((t.geometryAdjust?.[l]??s)/1e5);if(/^bentConnector|^curvedConnector/.test(e)){const l=Number(e.slice(-1))||2;if(l<=2)return[0,0,n,0,n,r];if(l===3){const d=n*a("adj1",5e4);return[0,0,d,0,d,r,n,r]}if(l===4){const d=n*a("adj1",5e4),f=r*a("adj2",5e4);return[0,0,d,0,d,f,n,f,n,r]}const s=n*a("adj1",33300),o=r*a("adj2",5e4),c=n*a("adj3",66700);return[0,0,s,0,s,o,c,o,c,r,n,r]}return[0,0,n,r]}function Ke(t,e){return{left:`${t.x/e.width*100}%`,top:`${t.y/e.height*100}%`,width:`${t.width/e.width*100}%`,height:`${t.height/e.height*100}%`,transform:t.rotation?`rotate(${t.rotation}deg)`:"none"}}function vi(t){return new Set(["diamond","flowChartDecision","triangle","rtTriangle","hexagon","parallelogram","trapezoid","pentagon","octagon","plus","cross","star5","star6","star8","rightArrow","leftArrow","upArrow","downArrow","notchedRightArrow","leftRightArrow","upDownArrow","upArrowCallout","downArrowCallout","leftArrowCallout","rightArrowCallout","chevron","homePlate","heart","teardrop","cloud","snip1Rect","snip2SameRect","snip2DiagRect","halfFrame","corner","diagStripe","lightningBolt","flowChartPreparation","flowChartManualInput","flowChartManualOperation","flowChartOffpageConnector","flowChartExtract","flowChartMerge","flowChartCollate","gear6","gear9","quadArrow","bentArrow"]).has(t)}function Mi(t,e,n=100,r=100){const i=Math.min(n,r),a=(s,o)=>Math.min(1,Math.max(0,(e?.[s]??o)/1e5)),l=s=>{const o=[];for(let c=0;c<s.length;c+=2)o.push(`${Math.round((s[c]??0)/Math.max(1,n)*1e4)/100},${Math.round((s[c+1]??0)/Math.max(1,r)*1e4)/100}`);return o.join(" ")};switch(t){case"diamond":case"flowChartDecision":return"50,1 99,50 50,99 1,50";case"triangle":return`${Math.round(a("adj",5e4)*100)},1 99,99 1,99`;case"rtTriangle":return"1,1 99,99 1,99";case"hexagon":{const s=Math.round(i*a("adj",25e3)/Math.max(1,n)*1e4)/100;return`${s},0 ${100-s},0 100,50 ${100-s},100 ${s},100 0,50`}case"parallelogram":{const s=Math.round(i*a("adj",25e3)/Math.max(1,n)*1e4)/100;return`${s},0 100,0 ${100-s},100 0,100`}case"trapezoid":{const s=Math.round(i*a("adj",25e3)/Math.max(1,n)*1e4)/100;return`${s},0 ${100-s},0 100,100 0,100`}case"pentagon":return"50,1 99,38 81,99 19,99 1,38";case"octagon":return"29,1 71,1 99,29 99,71 71,99 29,99 1,71 1,29";case"plus":{const s=Math.round(i*a("adj",25e3)/Math.max(1,n)*100),o=Math.round(i*a("adj",25e3)/Math.max(1,r)*100);return`${s},0 ${100-s},0 ${100-s},${o} 100,${o} 100,${100-o} ${100-s},${100-o} ${100-s},100 ${s},100 ${s},${100-o} 0,${100-o} 0,${o} ${s},${o}`}case"cross":return"35,0 65,0 65,35 100,35 100,65 65,65 65,100 35,100 35,65 0,65 0,35 35,35";case"star5":return ce(5,50,50,48,20,-90);case"star6":return ce(6,50,50,48,24,-90);case"star8":return ce(8,50,50,48,28,-90);case"rightArrow":{const s=r*a("adj1",5e4),o=i*a("adj2",5e4);return l([0,(r-s)/2,n-o,(r-s)/2,n-o,0,n,r/2,n-o,r,n-o,(r+s)/2,0,(r+s)/2])}case"notchedRightArrow":{const s=r*a("adj1",5e4),o=Math.min(n,i*a("adj2",5e4)),c=(r-s)/2,d=(r+s)/2,f=n-o,h=o*s/Math.max(1,r);return l([0,c,f,c,f,0,n,r/2,f,r,f,d,0,d,h,r/2])}case"leftArrow":{const s=r*a("adj1",5e4),o=Math.min(n,i*a("adj2",5e4)),c=(r-s)/2,d=(r+s)/2;return l([n,c,o,c,o,0,0,r/2,o,r,o,d,n,d])}case"upArrow":{const s=n*a("adj1",5e4),o=Math.min(r,i*a("adj2",5e4)),c=(n-s)/2,d=(n+s)/2;return l([c,r,c,o,0,o,n/2,0,n,o,d,o,d,r])}case"downArrow":{const s=n*a("adj1",5e4),o=Math.min(r,i*a("adj2",5e4)),c=(n-s)/2,d=(n+s)/2,f=r-o;return l([c,0,c,f,0,f,n/2,r,n,f,d,f,d,0])}case"leftRightArrow":{const s=r*a("adj1",5e4),o=Math.min(n/2,i*a("adj2",5e4)),c=(r-s)/2,d=(r+s)/2;return l([0,r/2,o,0,o,c,n-o,c,n-o,0,n,r/2,n-o,r,n-o,d,o,d,o,r])}case"upDownArrow":{const s=n*a("adj1",5e4),o=Math.min(r/2,i*a("adj2",5e4)),c=(n-s)/2,d=(n+s)/2;return l([n/2,0,n,o,d,o,d,r-o,n,r-o,n/2,r,0,r-o,c,r-o,c,o,0,o])}case"upArrowCallout":return"0,65 38,65 38,28 27,28 50,1 73,28 62,28 62,65 100,65 100,100 0,100";case"downArrowCallout":return"0,0 38,0 38,35 27,35 50,99 73,35 62,35 62,0 100,0 100,100 0,100";case"leftArrowCallout":return"35,0 100,0 100,38 72,38 72,27 1,50 72,73 72,62 100,62 100,100 35,100";case"rightArrowCallout":return"0,0 65,0 65,38 28,38 28,27 99,50 28,73 28,62 0,62 0,100 0,100";case"chevron":{const s=Math.round(i*a("adj",5e4)/Math.max(1,n)*1e4)/100;return`0,0 ${100-s},0 100,50 ${100-s},100 0,100 ${s},50`}case"homePlate":return l([0,0,n-i*a("adj",5e4),0,n,r/2,n-i*a("adj",5e4),r,0,r]);case"heart":return"50,97 7,55 3,38 10,20 25,8 42,9 50,20 58,9 75,8 90,20 97,38 93,55";case"teardrop":return"50,1 86,42 91,65 79,86 50,99 21,86 9,65 14,42";case"cloud":return"16,71 8,61 9,47 20,39 20,27 31,17 45,18 54,8 68,10 77,22 90,25 96,37 91,49 97,61 88,73 73,76 64,88 46,87 37,97 23,91";case"snip1Rect":return"0,0 82,0 99,18 99,99 0,99";case"snip2SameRect":return"17,0 83,0 99,17 99,83 83,99 17,99 0,83 0,17";case"snip2DiagRect":return"0,0 83,0 99,17 99,99 17,99 0,83";case"halfFrame":return"0,0 99,0 66,33 33,33 33,99 0,99";case"corner":return"0,0 50,0 50,50 99,50 99,99 0,99";case"diagStripe":return"0,50 50,0 99,0 0,99";case"lightningBolt":return"39,0 60,31 51,31 77,56 69,56 100,100 50,67 57,67 25,31 36,31";case"flowChartPreparation":return"20,1 80,1 99,50 80,99 20,99 1,50";case"flowChartManualInput":return"1,20 99,1 99,99 1,99";case"flowChartManualOperation":return"1,1 99,1 80,99 20,99";case"flowChartOffpageConnector":return"1,1 99,1 99,80 50,99 1,80";case"flowChartExtract":return"50,1 99,99 1,99";case"flowChartMerge":return"1,1 99,1 50,99";case"flowChartCollate":return"1,1 99,1 50,50 99,99 1,99 50,50";case"gear6":return Je(6);case"gear9":return Je(9);case"quadArrow":return"50,1 61,22 78,22 78,39 99,50 78,61 78,78 61,78 50,99 39,78 22,78 22,61 1,50 22,39 22,22 39,22";case"bentArrow":return"1,99 1,18 78,18 78,1 99,50 78,99 78,81 18,81 18,99";default:return""}}function Je(t){const e=[];for(let i=0;i<t*2;i++){const a=i%2===0?50:37,l=(-90+i*180/t)*(Math.PI/180);e.push(`${Math.round(50+Math.cos(l)*a)},${Math.round(50+Math.sin(l)*a)}`)}return e.join(" ")}function ce(t,e,n,r,i,a){const l=[];for(let s=0;s<t*2;s++){const o=s%2===0?r:i,c=(a+s*180/t)*Math.PI/180;l.push(`${Math.round((e+Math.cos(c)*o)*100)/100}`,`${Math.round((n+Math.sin(c)*o)*100)/100}`)}return l.join(" ")}function Pi(t,e,n,r){return Mi(t,e,n,r).split(" ").map(i=>i.split(",").map(a=>`${a}%`).join(" ")).join(", ")}function Si(t){const e=Math.min(.5,Math.max(0,(t.geometryAdjust?.adj??16667)/1e5)),n=Math.min(t.width,t.height)*e,r=n/Math.max(1,t.width)*100,i=n/Math.max(1,t.height)*100;return`${r}% / ${i}%`}function Ci(t){return t.geometry==="ellipse"||t.geometry==="flowChartTerminator"||t.geometry==="flowChartAlternateProcess"?"50%":t.geometry==="roundRect"?Si(t):void 0}function ki(t,e){const n=r=>`${r*100/e.width}cqw`;return`${n(t.margin.top)} ${n(t.margin.right)} ${n(t.margin.bottom)} ${n(t.margin.left)}`}function ji(t,e,n){return`${t.fontSizePt*e.fontScale*hn(e)*12700*100/n.width}cqw`}function Ni(t){return[t.underline?"underline":"",t.strike?"line-through":""].filter(Boolean).join(" ")||"none"}function Gt(t,e){return`${t*12700*100/e.width}cqw`}function Ai(t,e,n){return t.lineHeight?String(t.lineHeight):t.lineSpacingPt?Gt(t.lineSpacingPt,n):`${Math.max(1,e.fontSizePt*1.15*12700*100)/n.width}cqw`}function Fi(t){const e=t.imageCrop;if(!e)return{left:"0%",top:"0%",width:"100%",height:"100%"};const n=Math.max(.01,1-e.left-e.right),r=Math.max(.01,1-e.top-e.bottom);return{left:`${-e.left/n*100}%`,top:`${-e.top/r*100}%`,width:`${1/n*100}%`,height:`${1/r*100}%`}}function Ti({shape:t,deck:e}){const n=J.useId().replace(/:/g,"");return t.kind==="image"&&t.imageSrc?p.jsx("img",{src:t.imageSrc,alt:t.name,draggable:!1,className:"absolute max-w-none",style:Fi(t)}):t.kind==="line"?p.jsxs("svg",{viewBox:"0 0 100 100",preserveAspectRatio:"none",className:"h-full w-full overflow-visible",children:[p.jsx("defs",{children:["start","end"].map(r=>p.jsx("marker",{id:`${n}-${r}`,markerWidth:"6",markerHeight:"6",refX:r==="start"?0:6,refY:"3",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:p.jsx("path",{d:$i(t,r),fill:t.stroke??"currentColor"})},r))}),p.jsx("path",{markerStart:t.lineHeadEnd&&t.lineHeadEnd!=="none"?`url(#${n}-start)`:void 0,markerEnd:t.lineTailEnd&&t.lineTailEnd!=="none"?`url(#${n}-end)`:void 0,strokeDasharray:bi(t)??void 0,d:xi(t),fill:"none",stroke:t.stroke??"currentColor",strokeWidth:Math.max(1,t.strokeWidth),vectorEffect:"non-scaling-stroke"})]}):t.kind==="table"&&t.table?p.jsx("table",{className:"h-full w-full table-fixed border-collapse",children:p.jsx("tbody",{children:t.table.rows.map((r,i)=>p.jsx("tr",{children:r.map((a,l)=>a.merged?null:p.jsx("td",{rowSpan:a.rowSpan,colSpan:a.colSpan,style:{background:a.fill??void 0,color:a.textColor,fontSize:`${(a.fontSizePt??t.fontSizePt)*12700*100/e.width}cqw`,fontFamily:a.fontFamily??void 0,fontWeight:a.bold?"bold":void 0,textAlign:a.textAlign,border:`${a.borderWidth??1}px solid ${a.borderColor??"currentColor"}`},children:a.text},l))},i))})}):p.jsx("div",{className:"flex h-full flex-col",style:{padding:ki(t,e),justifyContent:t.verticalAlign==="middle"?"center":t.verticalAlign==="bottom"?"flex-end":"flex-start"},children:t.paragraphs.length?t.paragraphs.map((r,i)=>p.jsxs("p",{style:{margin:0,marginTop:Gt(r.spaceBeforePt??0,e),marginBottom:Gt(r.spaceAfterPt??0,e),marginLeft:Gt(r.marginLeftPt??0,e),textIndent:Gt(r.indentPt??0,e),minHeight:"1em",textAlign:r.align,lineHeight:Ai(r,t,e)},children:[r.bullet&&p.jsxs("span",{children:[r.bullet," "]}),r.runs.map((a,l)=>p.jsx("span",{style:{fontSize:ji(a,t,e),color:a.color,fontFamily:a.fontFamily??void 0,fontWeight:a.bold?"bold":"normal",fontStyle:a.italic?"italic":"normal",textDecoration:Ni(a)},children:a.text},l))]},i)):t.text})}function Ei(t,e,n,r){const i=t.rotation*Math.PI/180,a=Math.cos(i),l=Math.sin(i),s=n*a+r*l,o=-n*l+r*a,c=e.endsWith("e")?1:-1,d=e.startsWith("s")?1:-1,f=Math.max(91440,t.width+c*s),h=Math.max(91440,t.height+d*o),y=c*(f-t.width)/2,w=d*(h-t.height)/2;return{x:Math.round(t.x+(t.width-f)/2+y*a-w*l),y:Math.round(t.y+(t.height-h)/2+y*l+w*a),width:Math.round(f),height:Math.round(h)}}function ye({deck:t,slide:e,selected:n,onSelect:r,onTransform:i,onText:a,onTextEnd:l}){const{t:s}=ee(),o=J.useRef(null),c=J.useRef(null),[d,f]=J.useState(null),[h,y]=J.useState(null),w=J.useRef(null);J.useEffect(()=>{h&&w.current?.focus()},[h?.id]),J.useEffect(()=>{y(null),f(null),c.current=null},[e.path]);function v(){y(null),l?.()}function b(M){const m=c.current;if(!m)return null;const S=(M.clientX-m.startX)*m.scaleX,F=(M.clientY-m.startY)*m.scaleY;return m.corner?Ei(m.shape,m.corner,S,F):{x:Math.round(m.shape.x+S),y:Math.round(m.shape.y+F),width:m.shape.width,height:m.shape.height}}function P(M,m,S){if(M.button!==0||!m.editable||!r||(M.stopPropagation(),r(m.id),!i||!o.current))return;const F=o.current.getBoundingClientRect();c.current={shape:m,corner:S,startX:M.clientX,startY:M.clientY,scaleX:t.width/F.width,scaleY:t.height/F.height},M.currentTarget.setPointerCapture(M.pointerId)}const $=e.shapes.find(M=>M.id===n&&M.editable&&!M.deleted),C=$&&d?.id===$.id?{...$,...d}:$;return p.jsxs("div",{ref:o,className:"relative w-full shadow-sm",style:{aspectRatio:`${t.width} / ${t.height}`,containerType:"inline-size",background:gi(e)},onPointerDown:()=>r?.(null),onPointerMove:M=>{const m=b(M);m&&c.current&&f({...m,id:c.current.shape.id})},onPointerUp:M=>{const m=b(M),S=c.current;m&&S&&Object.entries(m).some(([F,B])=>B!==S.shape[F])&&i?.(S.shape.id,m),c.current=null,f(null)},onPointerCancel:()=>{c.current=null,f(null)},children:[p.jsx("div",{className:"absolute inset-0 overflow-hidden",children:e.shapes.filter(M=>!M.deleted).map(M=>{const m=d?.id===M.id?{...M,...d}:M;return p.jsx("div",{role:r&&m.editable?"button":void 0,tabIndex:r&&m.editable?0:void 0,"aria-label":m.name,"aria-pressed":r&&m.editable?n===m.id:void 0,className:"absolute border-solid",style:{...mi(m,t),whiteSpace:m.wrap?"pre-wrap":"pre",cursor:r&&m.editable?"move":void 0,touchAction:r?"none":void 0},onPointerDown:S=>P(S,m),onDoubleClick:S=>{m.editable&&m.kind==="shape"&&a&&(S.stopPropagation(),r?.(m.id),y({id:m.id,text:m.text}))},onKeyDown:S=>{S.key==="Enter"&&m.editable&&a&&m.kind==="shape"?(S.preventDefault(),r?.(m.id),y({id:m.id,text:m.text})):S.key===" "&&(S.preventDefault(),r?.(m.id))},children:p.jsx(Ti,{shape:m,deck:t})},m.id)})}),C&&i&&!h&&p.jsx("div",{className:"pointer-events-none absolute border-2 border-ring",style:Ke(C,t),children:["nw","ne","sw","se"].map(M=>p.jsx("button",{type:"button","aria-label":`${s("workbench.office.resize")} ${M}`,className:"pointer-events-auto absolute h-3 w-3 rounded-[var(--chat-item-radius)] border border-ring bg-background",style:{left:M.endsWith("w")?0:"100%",top:M.startsWith("n")?0:"100%",transform:"translate(-50%, -50%)",cursor:`${M}-resize`,touchAction:"none"},onPointerDown:m=>P(m,$,M)},M))}),h&&$&&p.jsx("textarea",{ref:w,"aria-label":s("workbench.files.text"),value:h.text,className:"absolute resize-none border-2 border-ring bg-white text-black outline-none",style:{...Ke($,t),fontFamily:$.fontFamily??void 0,fontSize:`${$.fontSizePt*12700*100/t.width}cqw`},onPointerDown:M=>M.stopPropagation(),onChange:M=>{y({...h,text:M.target.value}),a?.(h.id,M.target.value)},onBlur:v,onKeyDown:M=>{M.stopPropagation(),M.key==="Escape"&&v(),M.key==="Enter"&&(M.metaKey||M.ctrlKey)&&v()}})]})}const Lt="w-full min-w-0 rounded-[var(--chat-item-radius)] border bg-background px-2 py-1 text-xs",Rt="rounded-[var(--chat-item-radius)] border px-2 py-1 text-xs hover:bg-muted";function de(t){if(/^#[0-9a-f]{6}$/i.test(t??""))return t;const e=t?.match(/\d+/g)?.slice(0,3);return e?.length===3?"#"+e.map(n=>Number(n).toString(16).padStart(2,"0")).join(""):"#000000"}function Di({shape:t,change:e,layer:n,duplicate:r,remove:i}){const{t:a}=ee(),l=o=>a(`workbench.office.${o}`);function s(o){e(c=>{o(c),c.formatDirty=!0,c.paragraphs=be(c,c.text)})}return p.jsxs("aside",{"aria-label":l("properties"),className:"w-56 shrink-0 space-y-4 overflow-y-auto border-l bg-background p-3",children:[p.jsx("div",{className:"text-sm font-medium",children:l("properties")}),p.jsx("p",{className:"truncate text-xs text-muted-foreground",title:t.name,children:t.name}),p.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[["x","y","width","height"].map(o=>p.jsxs("label",{className:"text-xs text-muted-foreground",children:[l(o)," (cm)",p.jsx("input",{type:"number",className:Lt,step:"0.1",min:o==="width"||o==="height"?.1:void 0,value:Number((t[o]/36e4).toFixed(2)),onChange:c=>{const d=c.target.valueAsNumber;Number.isFinite(d)&&e(f=>{f[o]=Math.round(Math.max(o==="width"||o==="height"?.1:-1e3,d)*36e4)})}})]},o)),p.jsxs("label",{className:"text-xs text-muted-foreground",children:[l("rotation"),p.jsx("input",{type:"number",className:Lt,value:t.rotation,onChange:o=>{Number.isFinite(o.target.valueAsNumber)&&e(c=>{c.rotation=o.target.valueAsNumber})}})]})]}),t.kind==="shape"&&p.jsxs(p.Fragment,{children:[p.jsx("p",{className:"text-xs text-muted-foreground",children:l("inlineHint")}),p.jsxs("label",{className:"block text-xs",children:[l("font"),p.jsx("input",{className:Lt,value:t.fontFamily??"",onChange:o=>s(c=>{c.fontFamily=o.target.value})})]}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",className:Lt,"aria-label":a("workbench.files.fontSize"),min:1,max:200,value:t.fontSizePt,onChange:o=>{o.target.valueAsNumber>0&&s(c=>{c.fontSizePt=Math.min(200,o.target.valueAsNumber)})}}),["bold","italic","underline"].map((o,c)=>p.jsx("button",{className:Rt,"aria-label":a(`workbench.files.${o}`),"aria-pressed":t[o],onClick:()=>s(d=>{d[o]=!d[o]}),children:["B","I","U"][c]},o))]}),p.jsxs("label",{className:"block text-xs",children:[l("textAlign"),p.jsx("select",{className:Lt,value:t.textAlign,onChange:o=>s(c=>{c.textAlign=o.target.value}),children:["left","center","right","justify"].map(o=>p.jsx("option",{value:o,children:l(o)},o))})]}),p.jsxs("label",{className:"block text-xs",children:[l("textColor"),p.jsx("input",{type:"color",className:"ml-2 h-6 w-8 align-middle",value:de(t.textColor),onChange:o=>s(c=>{c.textColor=o.target.value})})]})]}),(t.kind==="shape"||t.kind==="line")&&p.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs",children:[p.jsxs("label",{children:[l("fill")," ",p.jsx("input",{type:"color",className:"h-6 w-8 align-middle",value:de(t.fill),onChange:o=>e(c=>{c.fill=o.target.value,delete c.fillCss,c.shapeStyleDirty=!0})})]}),p.jsx("button",{className:Rt,onClick:()=>e(o=>{o.fill=null,delete o.fillCss,o.shapeStyleDirty=!0}),children:l("transparent")}),p.jsxs("label",{children:[l("stroke")," ",p.jsx("input",{type:"color",className:"h-6 w-8 align-middle",value:de(t.stroke),onChange:o=>e(c=>{c.stroke=o.target.value,c.strokeWidth=Math.max(1,c.strokeWidth),c.shapeStyleDirty=!0})})]})]}),t.table&&p.jsx("div",{className:"overflow-auto",children:p.jsx("table",{className:"w-full",children:p.jsx("tbody",{children:t.table.rows.map((o,c)=>p.jsx("tr",{children:o.map((d,f)=>d.merged?null:p.jsx("td",{colSpan:d.colSpan,rowSpan:d.rowSpan,children:p.jsx("input",{className:Lt,"aria-label":`${l("cell")} ${c+1}, ${f+1}`,value:d.text,onChange:h=>e(y=>{y.table&&(y.table.rows[c][f].text=h.target.value,y.tableDirty=!0)})})},f))},c))})})}),p.jsxs("div",{className:"flex flex-wrap gap-2",children:[p.jsx("button",{className:Rt,onClick:()=>n("front"),children:l("front")}),p.jsx("button",{className:Rt,onClick:()=>n("back"),children:l("back")}),p.jsx("button",{className:Rt,onClick:r,children:l("duplicate")}),p.jsx("button",{className:Rt,onClick:i,children:a("workbench.files.delete")})]})]})}function Li({deck:t,initialIndex:e,onClose:n}){const{t:r}=ee(),i=t.slides.filter(o=>!o.hidden),[a,l]=J.useState(Math.max(0,i.indexOf(t.slides[e]))),s=o=>l(c=>Math.max(0,Math.min(i.length-1,c+o)));return p.jsx(xn,{open:!0,onOpenChange:o=>{o||n()},children:p.jsxs($n,{children:[p.jsx(bn,{className:"fixed inset-0 z-50 bg-black/80"}),p.jsxs(yn,{"aria-describedby":void 0,className:"fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2 rounded-[var(--chat-panel-radius)] flex h-[90vh] w-[95vw] max-w-none flex-col bg-black p-4 text-white sm:max-w-none",onKeyDown:o=>{o.stopPropagation(),["ArrowRight","ArrowDown"," "].includes(o.key)&&(o.preventDefault(),s(1)),["ArrowLeft","ArrowUp"].includes(o.key)&&(o.preventDefault(),s(-1)),o.key==="Home"&&l(0),o.key==="End"&&l(Math.max(0,i.length-1))},children:[p.jsx(wn,{className:"sr-only",children:r("workbench.office.present")}),p.jsx("div",{className:"flex min-h-0 flex-1 items-center justify-center",children:i[a]&&p.jsx("div",{style:{width:`min(100%, calc(75vh * ${t.width/t.height}))`},children:p.jsx(ye,{deck:t,slide:i[a]})})}),p.jsxs("div",{className:"flex items-center justify-center gap-4 text-sm",children:[p.jsx("button",{disabled:a===0,onClick:()=>s(-1),children:r("workbench.office.previous")}),p.jsxs("span",{children:[i.length?a+1:0," / ",i.length]}),p.jsx("button",{disabled:a>=i.length-1,onClick:()=>s(1),children:r("workbench.office.next")})]}),p.jsx(vn,{className:"absolute right-3 top-3 p-2","aria-label":r("workbench.files.close",{name:r("workbench.office.present")}),children:p.jsx(Mn,{size:18})})]})]})})}const dt="inline-flex items-center gap-1.5 rounded-[var(--chat-item-radius)] px-2 py-1.5 text-xs hover:bg-muted disabled:opacity-40",Ii=J.forwardRef(function({blob:e,name:n,onDirty:r},i){const{t:a}=ee(),l=g=>a(`workbench.office.${g}`),[s,o]=J.useState(null),[c,d]=J.useState(0),[f,h]=J.useState(null),[y,w]=J.useState(""),[v,b]=J.useState(100),[P,$]=J.useState(!0),[C,M]=J.useState(!1),[m,S]=J.useState(3),[F,B]=J.useState(3),Y=J.useRef(null),H=J.useRef(null),D=J.useRef(new hi),U=J.useRef(void 0),I=J.useRef(s);I.current=s,J.useEffect(()=>{let g=!1;return o(null),w(""),D.current.reset(),U.current=void 0,e.arrayBuffer().then(async j=>{const A=await ei(j);g||(H.current=j,o(A),d(0),h(null))}).catch(j=>{g||w(j instanceof Error?j.message:a("workbench.files.failed"))}),()=>{g=!0}},[e,a]),J.useImperativeHandle(i,()=>({exportFile:async()=>{if(!I.current||!H.current)throw new Error(a("workbench.files.loading"));return Jr(await ni(_t(I.current),H.current),n)},markSaved:()=>{D.current.markSaved(),U.current=void 0}}),[n,a]);function V(g,j){const A=I.current;if(!A)return;const z=_t(A);g(z),(!j||j!==U.current)&&D.current.push(A),U.current=j,I.current=z,o(z),r(D.current.dirty)}function _(g){V(j=>{const A=j.slides[c]?.shapes.find(z=>z.id===f);A?.editable&&g(A)})}function O(g){if(!I.current)return;const j=D.current[g](I.current);j&&(I.current=j,o(j),d(A=>Math.min(A,j.slides.length-1)),h(null),U.current=void 0,r(D.current.dirty))}const q=s?.slides[c],N=q?.shapes.find(g=>g.id===f&&g.editable&&!g.deleted);function X(g){g.id=`editor-${crypto.randomUUID()}`,V(j=>j.slides[c].shapes.push(g)),h(g.id)}function R(g){if(!s||!q)return;const j=pi(s,q,g);j.path=`ppt/slides/editor-${crypto.randomUUID()}.xml`,V(A=>A.slides.splice(c+1,0,j)),d(c+1),h(null)}function ft(){_(g=>{g.deleted=!0}),h(null)}function tt(){N&&s&&X(di(N,s))}function mt(g){!s||c+g<0||c+g>=s.slides.length||(V(j=>{const[A]=j.slides.splice(c,1);j.slides.splice(c+g,0,A)}),d(c+g))}async function ot(g){if(!s)return;const j=q?.path;try{if(!["image/png","image/jpeg","image/webp"].includes(g.type)||g.size>10*1024*1024)throw new Error(l("imageLimit"));const A=await new Promise((Mt,L)=>{const W=new FileReader;W.onload=()=>typeof W.result=="string"?Mt(W.result):L(new Error(l("imageLimit"))),W.onerror=()=>L(W.error),W.readAsDataURL(g)}),z=new Image;z.src=A,await z.decode();const rt=Ze(s);rt.id=`image-${crypto.randomUUID()}`,rt.name=g.name,rt.kind="image",rt.text="",rt.paragraphs=[],rt.width=Math.round(Math.min(s.width*.6,s.height*.6*z.width/z.height)),rt.height=Math.round(rt.width*z.height/z.width),rt.imageSrc=A,V(Mt=>Mt.slides.find(L=>L.path===j)?.shapes.push(rt)),h(rt.id),w("")}catch(A){w(A instanceof Error?A.message:a("workbench.files.failed"))}}return!s||!q?p.jsx("p",{role:y?"alert":"status",className:"p-4 text-sm",children:y||a("workbench.files.loading")}):p.jsxs("div",{className:"flex h-full min-h-0 flex-col",onKeyDown:g=>{const j=g.target;if(!(j instanceof HTMLElement&&(j.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(j.tagName)))){if((g.ctrlKey||g.metaKey)&&g.key.toLowerCase()==="z")g.preventDefault(),O(g.shiftKey?"redo":"undo");else if((g.ctrlKey||g.metaKey)&&g.key.toLowerCase()==="d")g.preventDefault(),N?tt():R(!1);else if((g.key==="Delete"||g.key==="Backspace")&&N)g.preventDefault(),ft();else if(N&&["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(g.key)){g.preventDefault();const A=g.shiftKey?95250:9525;_(z=>{g.key==="ArrowUp"&&(z.y-=A),g.key==="ArrowDown"&&(z.y+=A),g.key==="ArrowLeft"&&(z.x-=A),g.key==="ArrowRight"&&(z.x+=A)})}}},children:[p.jsxs("div",{role:"toolbar","aria-label":l("slideTools"),className:"flex shrink-0 flex-wrap items-center gap-1 border-b px-2 py-1.5",children:[p.jsx("button",{className:dt,"aria-label":a("workbench.files.undo"),disabled:!D.current.canUndo,onClick:()=>O("undo"),children:p.jsx(Xn,{size:16})}),p.jsx("button",{className:dt,"aria-label":a("workbench.files.redo"),disabled:!D.current.canRedo,onClick:()=>O("redo"),children:p.jsx(Dn,{size:16})}),p.jsx("span",{className:"mx-1 h-5 border-l"}),p.jsxs("button",{className:dt,onClick:()=>R(!0),children:[p.jsx(Pn,{size:15}),a("workbench.files.addSlide")]}),p.jsx("button",{className:dt,"aria-label":l("duplicateSlide"),onClick:()=>R(!1),children:p.jsx(Sn,{size:15})}),p.jsx("button",{className:dt,"aria-label":a("workbench.files.deleteSlide"),disabled:s.slides.length<2,onClick:()=>{V(g=>g.slides.splice(c,1)),d(Math.max(0,c-1)),h(null)},children:p.jsx(Cn,{size:15})}),p.jsx("span",{className:"mx-1 h-5 border-l"}),p.jsxs("button",{className:dt,onClick:()=>{const g=Ze(s);g.text=l("newText"),g.paragraphs=be(g,g.text),X(g)},children:[p.jsx(_n,{size:15}),a("workbench.files.addText")]}),p.jsxs("button",{className:dt,onClick:()=>Y.current?.click(),children:[p.jsx(Tn,{size:15}),l("image")]}),p.jsx("input",{ref:Y,type:"file",accept:"image/png,image/jpeg,image/webp",hidden:!0,onChange:g=>{const j=g.target.files?.[0];j&&ot(j),g.target.value=""}}),p.jsxs("label",{className:dt,children:[p.jsx(Rn,{size:15}),p.jsxs("select",{"aria-label":l("shape"),className:"max-w-24 bg-transparent",value:"",onChange:g=>{g.target.value&&X(li(s,g.target.value))},children:[p.jsx("option",{value:"",children:l("shape")}),["rect","roundRect","ellipse","triangle","diamond"].map(g=>p.jsx("option",{value:g,children:l(g)},g))]})]}),p.jsxs("details",{className:"relative",children:[p.jsxs("summary",{className:`${dt} cursor-pointer list-none`,children:[p.jsx(zn,{size:15}),l("table")]}),p.jsxs("div",{className:"absolute left-0 z-20 w-44 space-y-2 rounded-[var(--chat-panel-radius)] border bg-background p-3 shadow-lg",children:[p.jsxs("label",{className:"block text-xs",children:[l("rows"),p.jsx("input",{className:"ml-2 w-16 rounded-[var(--chat-item-radius)] border",type:"number",min:1,max:20,value:m,onChange:g=>S(Math.max(1,Math.min(20,g.target.valueAsNumber||1)))})]}),p.jsxs("label",{className:"block text-xs",children:[l("columns"),p.jsx("input",{className:"ml-2 w-16 rounded-[var(--chat-item-radius)] border",type:"number",min:1,max:10,value:F,onChange:g=>B(Math.max(1,Math.min(10,g.target.valueAsNumber||1)))})]}),p.jsx("button",{className:dt,onClick:g=>{const j=ci(s,m,F);j.table?.rows.forEach(A=>A.forEach(z=>{z.text=""})),X(j),g.currentTarget.closest("details")?.removeAttribute("open")},children:l("insert")})]})]}),p.jsx("div",{className:"flex-1"}),p.jsxs("button",{className:dt,onClick:()=>M(!0),children:[p.jsx(kn,{size:15}),l("present")]}),p.jsx("button",{className:dt,"aria-label":l("properties"),"aria-pressed":P,onClick:()=>$(!P),children:p.jsx(jn,{size:15})})]}),y&&p.jsx("p",{role:"alert",className:"px-3 py-1 text-xs text-destructive",children:y}),p.jsxs("div",{className:"flex min-h-0 flex-1",children:[p.jsxs("div",{className:"flex w-24 shrink-0 flex-col border-r sm:w-32",children:[p.jsxs("div",{className:"flex justify-center border-b p-1",children:[p.jsx("button",{className:dt,"aria-label":l("moveUp"),disabled:c===0,onClick:()=>mt(-1),children:p.jsx(Nn,{size:14})}),p.jsx("button",{className:dt,"aria-label":l("moveDown"),disabled:c===s.slides.length-1,onClick:()=>mt(1),children:p.jsx(An,{size:14})})]}),p.jsx("div",{className:"min-h-0 space-y-3 overflow-y-auto p-2",children:s.slides.map((g,j)=>p.jsxs("button",{"aria-label":`${a("workbench.files.slide")} ${j+1}`,"aria-current":c===j?"page":void 0,className:`w-full rounded-[var(--chat-item-radius)] p-1 text-left text-xs ${j===c?"bg-muted ring-1 ring-ring":"hover:bg-muted"}`,onClick:()=>{d(j),h(null),U.current=void 0},children:[p.jsx(ye,{deck:s,slide:g}),p.jsx("span",{className:"mt-1 block",children:j+1})]},g.path))})]}),p.jsx("div",{className:"min-w-0 flex-1 overflow-auto bg-muted/30 p-4",tabIndex:0,"aria-label":l("canvas"),children:p.jsx("div",{style:{width:`${v}%`,minWidth:180},className:"mx-auto",children:p.jsx(ye,{deck:s,slide:q,selected:f,onSelect:h,onTransform:(g,j)=>V(A=>{const z=A.slides[c].shapes.find(rt=>rt.id===g);z?.editable&&Object.assign(z,j)}),onText:(g,j)=>V(A=>{const z=A.slides[c].shapes.find(rt=>rt.id===g);z?.editable&&z.text!==j&&(z.text=j,z.paragraphs=be(z,j))},`text:${q.path}:${g}`),onTextEnd:()=>{U.current=void 0}})})}),N&&P&&p.jsx(Di,{shape:N,change:_,layer:g=>V(j=>{const A=j.slides[c].shapes,z=A.find(rt=>rt.id===f);z&&ui(A,z,g)}),duplicate:tt,remove:ft})]}),p.jsxs("div",{className:"flex shrink-0 items-center gap-3 border-t px-3 py-1.5 text-xs text-muted-foreground",children:[p.jsxs("span",{children:[c+1," / ",s.slides.length]}),p.jsx("span",{className:"flex-1 truncate",children:N?.name??l("inlineHint")}),p.jsxs("label",{className:"flex items-center gap-2",children:[l("zoom"),p.jsx("input",{"aria-label":l("zoom"),type:"range",min:50,max:200,step:10,value:v,onChange:g=>b(Number(g.target.value)),className:"w-20"}),v,"%"]}),p.jsx("button",{className:dt,onClick:()=>b(100),children:l("fit")})]}),C&&p.jsx(Li,{deck:s,initialIndex:c,onClose:()=>M(!1)})]})});export{Ii as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cO as goe,aI as voe,cP as boe,cQ as Coe,cR as _oe,at as MC,cS as D3,cT as gl,cU as ka,cV as Kl,cW as yoe,cX as aj,cY as tS,cZ as Soe,c_ as Eoe,c$ as o5,cd as po,aw as hn,d0 as Aoe,d1 as Roe,d2 as Z7,d3 as woe,d4 as Ioe,aU as N,aV as w,b$ as $t,d5 as Ng,d6 as xoe,bR as lj,bS as Toe,d7 as Moe,c0 as x0,d8 as Poe,c2 as Noe,bD as Loe,d9 as Ooe,c1 as mx,bE as Doe,bG as uj,bI as koe,bH as cj,da as dj,db as Boe,dc as Voe,dd as Uoe,de as Foe,df as Hoe,dg as joe,dh as Woe,di as zoe,bF as hj,dj as fj,dk as Xoe,dl as qoe,dm as mj,dn as Yoe,dp as Goe,dq as $oe,dr as Zoe,ds as pj,dt as Qoe,du as Koe,dv as Joe,dw as ese,dx as tse,dy as nse,aK as w1,aS as rse,aT as ise}from"./index-D0YKTBe8.js";import{c as I1}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{t as QL}from"./toNumber-BMcN9Ax7.js";var nS=function(){return goe.Date.now()},ose="Expected a function",sse=Math.max,ase=Math.min;function Md(t,e,n){var r,i,o,s,a,l,u=0,c=!1,d=!1,h=!0;if(typeof t!="function")throw new TypeError(ose);e=QL(e)||0,voe(n)&&(c=!!n.leading,d="maxWait"in n,o=d?sse(QL(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function f(S){var E=r,R=i;return r=i=void 0,u=S,s=t.apply(R,E),s}function m(S){return u=S,a=setTimeout(v,e),c?f(S):s}function p(S){var E=S-l,R=S-u,x=e-E;return d?ase(x,o-R):x}function g(S){var E=S-l,R=S-u;return l===void 0||E>=e||E<0||d&&R>=o}function v(){var S=nS();if(g(S))return b(S);a=setTimeout(v,p(S))}function b(S){return a=void 0,h&&r?f(S):(r=i=void 0,s)}function C(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function _(){return a===void 0?s:b(nS())}function y(){var S=nS(),E=g(S);if(r=arguments,i=this,l=S,E){if(a===void 0)return m(l);if(d)return clearTimeout(a),a=setTimeout(v,e),f(l)}return a===void 0&&(a=setTimeout(v,e)),s}return y.cancel=C,y.flush=_,y}var KL=boe(function(t,e,n,r){Coe(t,e,n,r)});function lse(t,e,n){return t==null?t:_oe(t,e,n)}var rS,JL;function use(){if(JL)return rS;JL=1;var t=function(e){if(e=e||{},this.Promise=e.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=e.domainReentrant||!1,this.domainReentrant){if(typeof process>"u"||typeof process.domain>"u")throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=e.timeout||t.DEFAULT_TIMEOUT,this.maxOccupationTime=e.maxOccupationTime||t.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=e.maxExecutionTime||t.DEFAULT_MAX_EXECUTION_TIME,e.maxPending===1/0||Number.isInteger(e.maxPending)&&e.maxPending>=0?this.maxPending=e.maxPending:this.maxPending=t.DEFAULT_MAX_PENDING};return t.DEFAULT_TIMEOUT=0,t.DEFAULT_MAX_OCCUPATION_TIME=0,t.DEFAULT_MAX_EXECUTION_TIME=0,t.DEFAULT_MAX_PENDING=1e3,t.prototype.acquire=function(e,n,r,i){if(Array.isArray(e))return this._acquireBatch(e,n,r,i);if(typeof n!="function")throw new Error("You must pass a function to execute");var o=null,s=null,a=null;typeof r!="function"&&(i=r,r=null,a=new this.Promise(function(C,_){o=C,s=_})),i=i||{};var l=!1,u=null,c=null,d=null,h=this,f=function(C,_,y){c&&(clearTimeout(c),c=null),d&&(clearTimeout(d),d=null),C&&(h.queues[e]&&h.queues[e].length===0&&delete h.queues[e],h.domainReentrant&&delete h.domains[e]),l||(a?_?s(_):o(y):typeof r=="function"&&r(_,y),l=!0),C&&h.queues[e]&&h.queues[e].length>0&&h.queues[e].shift()()},m=function(C){if(l)return f(C);u&&(clearTimeout(u),u=null),h.domainReentrant&&C&&(h.domains[e]=process.domain);var _=i.maxExecutionTime||h.maxExecutionTime;if(_&&(d=setTimeout(function(){h.queues[e]&&f(C,new Error("Maximum execution time is exceeded "+e))},_)),n.length===1){var y=!1;try{n(function(S,E){y||(y=!0,f(C,S,E))})}catch(S){y||(y=!0,f(C,S))}}else h._promiseTry(function(){return n()}).then(function(S){f(C,void 0,S)},function(S){f(C,S)})};h.domainReentrant&&process.domain&&(m=process.domain.bind(m));var p=i.maxPending||h.maxPending;if(!h.queues[e])h.queues[e]=[],m(!0);else if(h.domainReentrant&&process.domain&&process.domain===h.domains[e])m(!1);else if(h.queues[e].length>=p)f(!1,new Error("Too many pending tasks in queue "+e));else{var g=function(){m(!0)};i.skipQueue?h.queues[e].unshift(g):h.queues[e].push(g);var v=i.timeout||h.timeout;v&&(u=setTimeout(function(){u=null,f(!1,new Error("async-lock timed out in queue "+e))},v))}var b=i.maxOccupationTime||h.maxOccupationTime;if(b&&(c=setTimeout(function(){h.queues[e]&&f(!1,new Error("Maximum occupation time is exceeded in queue "+e))},b)),a)return a},t.prototype._acquireBatch=function(e,n,r,i){typeof r!="function"&&(i=r,r=null);var o=this,s=function(l,u){return function(c){o.acquire(l,u,c,i)}},a=e.reduceRight(function(l,u){return s(u,l)},n);if(typeof r=="function")a(r);else return new this.Promise(function(l,u){a.length===1?a(function(c,d){c?u(c):l(d)}):l(a())})},t.prototype.isBusy=function(e){return e?!!this.queues[e]:Object.keys(this.queues).length>0},t.prototype._promiseTry=function(e){try{return this.Promise.resolve(e())}catch(n){return this.Promise.reject(n)}},rS=t,rS}var iS,eO;function cse(){return eO||(eO=1,iS=use()),iS}var dse=cse();const hse=MC(dse),px=Symbol("$$IDENTIFIER_DECORATOR");function fse(t){return t&&t[px]===!0}function gj(t){return typeof t=="function"}function kA(t){return!!(t&&typeof t.useClass<"u")}function tO(t){return!!(t&&typeof t.useFactory<"u")}function nO(t){return!!(t&&typeof t.useValue<"u")}function mse(t){return!!(t&&typeof t.useExisting<"u")}function rO(t){return!!(t&&typeof t.useAsync<"u")}const vj=Symbol("AsyncHook");function oS(t){return!!(t&&t.__symbol===vj)}function Ba(t){return gj(t)&&!t[px]?t.name:t.toString()}var qa=class extends Error{constructor(t){super(`[redi]: ${t}`)}};let bi=(function(t){return t.MANY="many",t.OPTIONAL="optional",t.REQUIRED="required",t})({}),U1=(function(t){return t.SELF="self",t.SKIP_SELF="skipSelf",t})({});const iO=Symbol("$$TARGET"),BA=Symbol("$$DEPENDENCIES");var pse=class extends qa{constructor(t,e){const n=`Could not find dependency registered on the ${t} (indexed) parameter of the constructor of "${Ba(e)}".`;super(n)}},gse=class extends qa{constructor(t,e){const n=`It seems that you forgot to provide a parameter to @Required() on the ${e}th parameter of "${Ba(t)}"`;super(n)}},vse=class extends qa{constructor(t,e){const n=`It seems that you register "undefined" as dependency on the ${e}th parameter of "${Ba(t)}". Please make sure that there is not cyclic dependency among your TypeScript files, or consider using "forwardRef". For more info please visit our website https://redi.wendell.fun/docs/faq#could-not-find-dependency-registered-on`;super(n)}};function bj(t){return t[BA]||[]}function Cj(t,e){const r=bj(t).find(i=>i.paramIndex===e);if(!r)throw new pse(e,t);return r}function _j(t,e,n,r=bi.REQUIRED,i){const o={paramIndex:n,identifier:e,quantity:r,lookUp:i,withNew:!1};if(typeof e>"u")throw new vse(t,n);const s=t;s[iO]===s?s[BA].push(o):(s[BA]=[o],s[iO]=s)}const oO=new Set,sO=new Map;function ln(t){if(oO.has(t))return console.error(`Identifier "${t}" already exists. Returning the cached identifier decorator.`),sO.get(t);const e=function(n,r,i){_j(n,e,i)};return e.decoratorName=t,e.toString=()=>e.decoratorName,e[px]=!0,oO.add(t),sO.set(t,e),e}function bse(t,e,n){const r=Cj(t,e);r.lookUp=n}function yj(t){return function e(){return this instanceof e?this:function(n,r,i){bse(n,i,t)}}}const Cse=yj(U1.SKIP_SELF),_se=yj(U1.SELF);function yse(t){return t===bi.OPTIONAL?"0 or 1":"1"}var s5=class extends qa{constructor(t,e,n){let r=`Expect ${yse(e)} dependency item(s) for id "${Ba(t)}" but get ${n}.`;n===0&&(r+=" Did you forget to register it?"),n>1&&(r+=" You register it more than once."),super(r),this.quantity=e,this.actual=n}};function Sj(t,e,n){if(e===bi.OPTIONAL&&n>1||e===bi.REQUIRED&&n!==1)throw new s5(t,e,n)}function Sse(t,e){return t===bi.MANY?e:e[0]}function Ese(t,e,n){const r=Cj(t,e);r.quantity=n}function gx(t){return function e(n){return this instanceof e?this:function(r,i,o){if(n)_j(r,n,o,t);else{if(t===bi.REQUIRED)throw new gse(r,o);Ese(r,o,t)}}}}const Ase=gx(bi.MANY),Du=gx(bi.OPTIONAL),$=gx(bi.REQUIRED);function Rse(t,e=0){return t?t.map((n,r)=>{if(r+=e,!Array.isArray(n))return{paramIndex:r,identifier:n,quantity:bi.REQUIRED,withNew:!1};const i=n.slice(0,n.length-1),o=n[n.length-1];let s,a=bi.REQUIRED,l=!1;return i.forEach(u=>{u instanceof _se?s=U1.SELF:u instanceof Cse?s=U1.SKIP_SELF:u instanceof Du?a=bi.OPTIONAL:u instanceof Ase?a=bi.MANY:l=!0}),{paramIndex:r,identifier:o,quantity:a,lookUp:s,withNew:l}}):[]}function wse(t){return!!t&&typeof t.unwrap=="function"}function Ise(t){return wse(t)?t.unwrap():t}function xse(t){return!!t&&typeof t.dispose=="function"}function Tse(t){return t.length===1}const PC=[];function aO(t){PC.push(t)}function lO(){PC.pop()}function Mse(){PC.length=0}var uO=class extends qa{constructor(t,e,n){const r=`Cannot find "${Ba(e)}" registered by any injector. It is the ${n}th param of "${fse(t)?Ba(t):t.name}".`;super(r)}},a5=class extends qa{constructor(t){const e=`Cannot find "${Ba(t)}" registered by any injector. The stack of dependencies is: "${PC.map(n=>Ba(n)).join(" -> ")}".`;super(e),Mse()}},Pse=class{dependencyMap=new Map;constructor(t){this.normalizeDependencies(t).map(e=>this.add(e[0],e[1]))}add(t,e){typeof e>"u"&&(e={useClass:t,lazy:!1});let n=this.dependencyMap.get(t);typeof n>"u"&&(n=[],this.dependencyMap.set(t,n)),n.push(e)}delete(t){this.dependencyMap.delete(t)}get(t,e){const n=this.dependencyMap.get(t);return Sj(t,e,n.length),Sse(e,n)}has(t){return this.dependencyMap.has(t)}dispose(){this.dependencyMap.clear()}normalizeDependencies(t){return t.map(e=>{const n=e[0];let r;return Tse(e)?r={useClass:e[0],lazy:!1}:r=e[1],[n,r]})}},Nse=class{resolvedDependencies=new Map;add(t,e){let n=this.resolvedDependencies.get(t);typeof n>"u"&&(n=[],this.resolvedDependencies.set(t,n)),n.push(e)}has(t){return this.resolvedDependencies.has(t)}get(t,e){const n=this.resolvedDependencies.get(t);if(!n)throw new a5(t);return Sj(t,e,n.length),e===bi.MANY?n:n[0]}dispose(){Array.from(this.resolvedDependencies.values()).forEach(t=>{t.forEach(e=>xse(e)?e.dispose():void 0)}),this.resolvedDependencies.clear()}};let VA;(function(){if(typeof requestIdleCallback<"u"&&typeof cancelIdleCallback<"u")VA=(t,e)=>{const n=requestIdleCallback(t,typeof e=="number"?{timeout:e}:void 0);let r=!1;return()=>{r||(r=!0,cancelIdleCallback(n))}};else{const t=Object.freeze({didTimeout:!0,timeRemaining(){return 15}});VA=e=>{const n=setTimeout(()=>e(t));let r=!1;return()=>{r||(r=!0,clearTimeout(n))}}}})();var Lse=class{executor;disposeIdleCallback;didRun=!1;value;error;constructor(t){this.executor=()=>{try{this.value=t()}catch(e){this.error=e}finally{this.didRun=!0}},this.disposeIdleCallback=VA(()=>this.executor())}hasRun(){return this.didRun}dispose(){this.disposeIdleCallback()}getValue(){if(this.didRun||(this.disposeIdleCallback(),this.executor()),this.error)throw this.error;return this.value}};const Ose=300,Q7=Symbol("$$NOT_INSTANTIATED_SYMBOL");var Dse=class extends qa{constructor(t){super(`Detecting cyclic dependency. The last identifier is "${Ba(t)}".`)}},kse=class extends qa{constructor(){super("Injector cannot be accessed after it was disposed.")}},Bse=class extends qa{constructor(t){super(`Async item "${Ba(t)}" returns another async item.`)}},Vse=class extends qa{constructor(t){super(`Cannot get async item "${Ba(t)}" from sync api.`)}},cO=class extends qa{constructor(t){super(`Cannot add dependency "${Ba(t)}" after it is already resolved.`)}},Use=class extends qa{constructor(t){super(`Cannot delete dependency "${Ba(t)}" when it is already resolved.`)}},Yt=class UA{dependencyCollection;resolvedDependencyCollection;children=[];resolutionOngoing=0;disposingCallbacks=new Set;disposed=!1;constructor(e,n=null){this.parent=n,this.dependencyCollection=new Pse(e||[]),this.resolvedDependencyCollection=new Nse,n&&n.children.push(this)}onDispose(e){return this.disposingCallbacks.add(e),{dispose:()=>this.disposingCallbacks.delete(e)}}createChild(e){return this._ensureInjectorNotDisposed(),new UA(e,this)}dispose(){this.children.forEach(e=>e.dispose()),this.children.length=0,this.dependencyCollection.dispose(),this.resolvedDependencyCollection.dispose(),this.deleteSelfFromParent(),this.disposed=!0,this.disposingCallbacks.forEach(e=>e()),this.disposingCallbacks.clear()}deleteSelfFromParent(){if(this.parent){const e=this.parent.children.indexOf(this);this.parent.children.splice(e,1)}}add(e){this._ensureInjectorNotDisposed();const n=e[0],r=e[1];if(this.resolvedDependencyCollection.has(n))throw new cO(n);typeof r>"u"?this.dependencyCollection.add(n):rO(r)||kA(r)||nO(r)||tO(r)?this.dependencyCollection.add(n,r):this.resolvedDependencyCollection.add(n,r)}replace(e){this._ensureInjectorNotDisposed();const n=e[0];if(this.resolvedDependencyCollection.has(n))throw new cO(n);this.dependencyCollection.delete(n),this.dependencyCollection.add(n,e[1])}delete(e){if(this._ensureInjectorNotDisposed(),this.resolvedDependencyCollection.has(e))throw new Use(e);this.dependencyCollection.delete(e)}invoke(e,...n){return this._ensureInjectorNotDisposed(),e({get:(i,o,s)=>this._get(i,o,s),has:i=>this.has(i)},...n)}has(e){return this.dependencyCollection.has(e)||this.parent?.has(e)||!1}get(e,n,r){this._ensureInjectorNotDisposed();const i=this._get(e,n,r);if(Array.isArray(i)&&i.some(o=>oS(o))||oS(i))throw new Vse(e);return i}_get(e,n,r,i){let o=bi.REQUIRED;if(n===bi.REQUIRED||n===bi.OPTIONAL||n===bi.MANY?o=n:r=n,!i){const a=this.getValue(e,o,r);if(a!==Q7)return a}const s=!i;return this.createDependency(e,o,r,s)}getAsync(e){this._ensureInjectorNotDisposed();const n=this.getValue(e,bi.REQUIRED);if(n!==Q7)return Promise.resolve(n);const r=this.createDependency(e,bi.REQUIRED);return oS(r)?r.whenReady():Promise.resolve(r)}createInstance(e,...n){return this._ensureInjectorNotDisposed(),this._resolveClassImpl({useClass:e},...n)}_resolveDependency(e,n,r=!0){let i;aO(e);try{nO(n)?i=this._resolveValueDependency(e,n):tO(n)?i=this._resolveFactory(e,n,r):kA(n)?i=this._resolveClass(e,n,r):mse(n)?i=this._resolveExisting(e,n):i=this._resolveAsync(e,n),lO()}catch(o){throw lO(),o}return i}_resolveExisting(e,n){const r=this.get(n.useExisting);return this.resolvedDependencyCollection.add(e,r),r}_resolveValueDependency(e,n){const r=n.useValue;return this.resolvedDependencyCollection.add(e,r),r}_resolveClass(e,n,r){let i;if(n.lazy){const o=new Lse(()=>(this._ensureInjectorNotDisposed(),this._resolveClassImpl(n)));i=new Proxy(Object.create(null),{get(s,a){if(a in s)return s[a];const l=o.getValue();let u=l[a];return typeof u!="function"||(u=u.bind(l),s[a]=u),u},set(s,a,l){return o.getValue()[a]=l,!0}})}else i=this._resolveClassImpl(n);return e&&r&&this.resolvedDependencyCollection.add(e,i),i}_resolveClassImpl(e,...n){const r=e.useClass;this.markNewResolution(r);const i=bj(r).sort((u,c)=>u.paramIndex-c.paramIndex).map(u=>({...u,identifier:Ise(u.identifier)})),o=[];for(const u of i)try{const c=this._get(u.identifier,u.quantity,u.lookUp,u.withNew);o.push(c)}catch(c){throw c instanceof a5||c instanceof s5&&c.actual===0?new uO(r,u.identifier,u.paramIndex):c}let s=[...n];const a=i.length>0?i[0].paramIndex:s.length;if(s.length!==a){console.warn(`[redi]: Expect ${a} custom parameter(s) of ${Ba(r)} but get ${s.length}.`);const u=a-s.length;u>0?s=[...s,...Array.from({length:u}).fill(void 0)]:s=s.slice(0,a)}const l=new r(...s,...o);return e?.onInstantiation?.(l),this.markResolutionCompleted(),l}_resolveFactory(e,n,r){this.markNewResolution(e);const i=Rse(n.deps),o=[];for(const a of i)try{const l=this._get(a.identifier,a.quantity,a.lookUp,a.withNew);o.push(l)}catch(l){throw l instanceof a5||l instanceof s5&&l.actual===0?new uO(e,a.identifier,a.paramIndex):l}const s=n.useFactory.apply(null,o);return r&&this.resolvedDependencyCollection.add(e,s),this.markResolutionCompleted(),n?.onInstantiation?.(s),s}_resolveAsync(e,n){return{__symbol:vj,whenReady:()=>this._resolveAsyncImpl(e,n)}}_resolveAsyncImpl(e,n){return n.useAsync().then(r=>{const i=this.getValue(e);if(i!==Q7)return i;let o;if(Array.isArray(r)){const s=r[1];if(rO(s))throw new Bse(e);o=this._resolveDependency(e,s)}else gj(r)?o=this._resolveClassImpl({useClass:r,onInstantiation:n.onInstantiation}):o=r;return this.resolvedDependencyCollection.add(e,o),o})}getValue(e,n=bi.REQUIRED,r){const i=()=>this.dependencyCollection.has(e)&&!this.resolvedDependencyCollection.has(e)?Q7:this.resolvedDependencyCollection.get(e,n),o=()=>{if(this.parent)return this.parent.getValue(e,n);if(n===bi.OPTIONAL)return null;if(n===bi.MANY)return[];throw new s5(e,bi.REQUIRED,0)};return r===U1.SKIP_SELF?o():e===UA?this:r===U1.SELF||this.resolvedDependencyCollection.has(e)||this.dependencyCollection.has(e)?i():o()}createDependency(e,n,r,i=!0){const o=()=>{const a=this.dependencyCollection.get(e,n);let l=null;return Array.isArray(a)?l=a.map(u=>this._resolveDependency(e,u,i)):l=this._resolveDependency(e,a,i),l},s=()=>{if(this.parent)return this.parent.createDependency(e,n,void 0,i);if(n===bi.OPTIONAL)return null;if(n===bi.MANY)return[];throw aO(e),new a5(e)};return r===U1.SKIP_SELF?s():this.dependencyCollection.has(e)?o():s()}markNewResolution(e){if(this.resolutionOngoing+=1,this.resolutionOngoing>=Ose)throw new Dse(e)}markResolutionCompleted(){this.resolutionOngoing-=1}_ensureInjectorNotDisposed(){if(this.disposed)throw new kse}};const dO=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global<"u"&&global,hO="REDI_GLOBAL_LOCK",Fse=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;dO[hO]?Fse||console.error(`[redi]: You are loading scripts of redi more than once! This may cause undesired behavior in your application.
|
|
1
|
+
import{cO as goe,aI as voe,cP as boe,cQ as Coe,cR as _oe,at as MC,cS as D3,cT as gl,cU as ka,cV as Kl,cW as yoe,cX as aj,cY as tS,cZ as Soe,c_ as Eoe,c$ as o5,cd as po,aw as hn,d0 as Aoe,d1 as Roe,d2 as Z7,d3 as woe,d4 as Ioe,aU as N,aV as w,b$ as $t,d5 as Ng,d6 as xoe,bR as lj,bS as Toe,d7 as Moe,c0 as x0,d8 as Poe,c2 as Noe,bD as Loe,d9 as Ooe,c1 as mx,bE as Doe,bG as uj,bI as koe,bH as cj,da as dj,db as Boe,dc as Voe,dd as Uoe,de as Foe,df as Hoe,dg as joe,dh as Woe,di as zoe,bF as hj,dj as fj,dk as Xoe,dl as qoe,dm as mj,dn as Yoe,dp as Goe,dq as $oe,dr as Zoe,ds as pj,dt as Qoe,du as Koe,dv as Joe,dw as ese,dx as tse,dy as nse,aK as w1,aS as rse,aT as ise}from"./index-zFXf25RZ.js";import{c as I1}from"./_commonjs-dynamic-modules-TDtrdbi3.js";import{t as QL}from"./toNumber-BHLUnJCk.js";var nS=function(){return goe.Date.now()},ose="Expected a function",sse=Math.max,ase=Math.min;function Md(t,e,n){var r,i,o,s,a,l,u=0,c=!1,d=!1,h=!0;if(typeof t!="function")throw new TypeError(ose);e=QL(e)||0,voe(n)&&(c=!!n.leading,d="maxWait"in n,o=d?sse(QL(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function f(S){var E=r,R=i;return r=i=void 0,u=S,s=t.apply(R,E),s}function m(S){return u=S,a=setTimeout(v,e),c?f(S):s}function p(S){var E=S-l,R=S-u,x=e-E;return d?ase(x,o-R):x}function g(S){var E=S-l,R=S-u;return l===void 0||E>=e||E<0||d&&R>=o}function v(){var S=nS();if(g(S))return b(S);a=setTimeout(v,p(S))}function b(S){return a=void 0,h&&r?f(S):(r=i=void 0,s)}function C(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function _(){return a===void 0?s:b(nS())}function y(){var S=nS(),E=g(S);if(r=arguments,i=this,l=S,E){if(a===void 0)return m(l);if(d)return clearTimeout(a),a=setTimeout(v,e),f(l)}return a===void 0&&(a=setTimeout(v,e)),s}return y.cancel=C,y.flush=_,y}var KL=boe(function(t,e,n,r){Coe(t,e,n,r)});function lse(t,e,n){return t==null?t:_oe(t,e,n)}var rS,JL;function use(){if(JL)return rS;JL=1;var t=function(e){if(e=e||{},this.Promise=e.Promise||Promise,this.queues=Object.create(null),this.domainReentrant=e.domainReentrant||!1,this.domainReentrant){if(typeof process>"u"||typeof process.domain>"u")throw new Error("Domain-reentrant locks require `process.domain` to exist. Please flip `opts.domainReentrant = false`, use a NodeJS version that still implements Domain, or install a browser polyfill.");this.domains=Object.create(null)}this.timeout=e.timeout||t.DEFAULT_TIMEOUT,this.maxOccupationTime=e.maxOccupationTime||t.DEFAULT_MAX_OCCUPATION_TIME,this.maxExecutionTime=e.maxExecutionTime||t.DEFAULT_MAX_EXECUTION_TIME,e.maxPending===1/0||Number.isInteger(e.maxPending)&&e.maxPending>=0?this.maxPending=e.maxPending:this.maxPending=t.DEFAULT_MAX_PENDING};return t.DEFAULT_TIMEOUT=0,t.DEFAULT_MAX_OCCUPATION_TIME=0,t.DEFAULT_MAX_EXECUTION_TIME=0,t.DEFAULT_MAX_PENDING=1e3,t.prototype.acquire=function(e,n,r,i){if(Array.isArray(e))return this._acquireBatch(e,n,r,i);if(typeof n!="function")throw new Error("You must pass a function to execute");var o=null,s=null,a=null;typeof r!="function"&&(i=r,r=null,a=new this.Promise(function(C,_){o=C,s=_})),i=i||{};var l=!1,u=null,c=null,d=null,h=this,f=function(C,_,y){c&&(clearTimeout(c),c=null),d&&(clearTimeout(d),d=null),C&&(h.queues[e]&&h.queues[e].length===0&&delete h.queues[e],h.domainReentrant&&delete h.domains[e]),l||(a?_?s(_):o(y):typeof r=="function"&&r(_,y),l=!0),C&&h.queues[e]&&h.queues[e].length>0&&h.queues[e].shift()()},m=function(C){if(l)return f(C);u&&(clearTimeout(u),u=null),h.domainReentrant&&C&&(h.domains[e]=process.domain);var _=i.maxExecutionTime||h.maxExecutionTime;if(_&&(d=setTimeout(function(){h.queues[e]&&f(C,new Error("Maximum execution time is exceeded "+e))},_)),n.length===1){var y=!1;try{n(function(S,E){y||(y=!0,f(C,S,E))})}catch(S){y||(y=!0,f(C,S))}}else h._promiseTry(function(){return n()}).then(function(S){f(C,void 0,S)},function(S){f(C,S)})};h.domainReentrant&&process.domain&&(m=process.domain.bind(m));var p=i.maxPending||h.maxPending;if(!h.queues[e])h.queues[e]=[],m(!0);else if(h.domainReentrant&&process.domain&&process.domain===h.domains[e])m(!1);else if(h.queues[e].length>=p)f(!1,new Error("Too many pending tasks in queue "+e));else{var g=function(){m(!0)};i.skipQueue?h.queues[e].unshift(g):h.queues[e].push(g);var v=i.timeout||h.timeout;v&&(u=setTimeout(function(){u=null,f(!1,new Error("async-lock timed out in queue "+e))},v))}var b=i.maxOccupationTime||h.maxOccupationTime;if(b&&(c=setTimeout(function(){h.queues[e]&&f(!1,new Error("Maximum occupation time is exceeded in queue "+e))},b)),a)return a},t.prototype._acquireBatch=function(e,n,r,i){typeof r!="function"&&(i=r,r=null);var o=this,s=function(l,u){return function(c){o.acquire(l,u,c,i)}},a=e.reduceRight(function(l,u){return s(u,l)},n);if(typeof r=="function")a(r);else return new this.Promise(function(l,u){a.length===1?a(function(c,d){c?u(c):l(d)}):l(a())})},t.prototype.isBusy=function(e){return e?!!this.queues[e]:Object.keys(this.queues).length>0},t.prototype._promiseTry=function(e){try{return this.Promise.resolve(e())}catch(n){return this.Promise.reject(n)}},rS=t,rS}var iS,eO;function cse(){return eO||(eO=1,iS=use()),iS}var dse=cse();const hse=MC(dse),px=Symbol("$$IDENTIFIER_DECORATOR");function fse(t){return t&&t[px]===!0}function gj(t){return typeof t=="function"}function kA(t){return!!(t&&typeof t.useClass<"u")}function tO(t){return!!(t&&typeof t.useFactory<"u")}function nO(t){return!!(t&&typeof t.useValue<"u")}function mse(t){return!!(t&&typeof t.useExisting<"u")}function rO(t){return!!(t&&typeof t.useAsync<"u")}const vj=Symbol("AsyncHook");function oS(t){return!!(t&&t.__symbol===vj)}function Ba(t){return gj(t)&&!t[px]?t.name:t.toString()}var qa=class extends Error{constructor(t){super(`[redi]: ${t}`)}};let bi=(function(t){return t.MANY="many",t.OPTIONAL="optional",t.REQUIRED="required",t})({}),U1=(function(t){return t.SELF="self",t.SKIP_SELF="skipSelf",t})({});const iO=Symbol("$$TARGET"),BA=Symbol("$$DEPENDENCIES");var pse=class extends qa{constructor(t,e){const n=`Could not find dependency registered on the ${t} (indexed) parameter of the constructor of "${Ba(e)}".`;super(n)}},gse=class extends qa{constructor(t,e){const n=`It seems that you forgot to provide a parameter to @Required() on the ${e}th parameter of "${Ba(t)}"`;super(n)}},vse=class extends qa{constructor(t,e){const n=`It seems that you register "undefined" as dependency on the ${e}th parameter of "${Ba(t)}". Please make sure that there is not cyclic dependency among your TypeScript files, or consider using "forwardRef". For more info please visit our website https://redi.wendell.fun/docs/faq#could-not-find-dependency-registered-on`;super(n)}};function bj(t){return t[BA]||[]}function Cj(t,e){const r=bj(t).find(i=>i.paramIndex===e);if(!r)throw new pse(e,t);return r}function _j(t,e,n,r=bi.REQUIRED,i){const o={paramIndex:n,identifier:e,quantity:r,lookUp:i,withNew:!1};if(typeof e>"u")throw new vse(t,n);const s=t;s[iO]===s?s[BA].push(o):(s[BA]=[o],s[iO]=s)}const oO=new Set,sO=new Map;function ln(t){if(oO.has(t))return console.error(`Identifier "${t}" already exists. Returning the cached identifier decorator.`),sO.get(t);const e=function(n,r,i){_j(n,e,i)};return e.decoratorName=t,e.toString=()=>e.decoratorName,e[px]=!0,oO.add(t),sO.set(t,e),e}function bse(t,e,n){const r=Cj(t,e);r.lookUp=n}function yj(t){return function e(){return this instanceof e?this:function(n,r,i){bse(n,i,t)}}}const Cse=yj(U1.SKIP_SELF),_se=yj(U1.SELF);function yse(t){return t===bi.OPTIONAL?"0 or 1":"1"}var s5=class extends qa{constructor(t,e,n){let r=`Expect ${yse(e)} dependency item(s) for id "${Ba(t)}" but get ${n}.`;n===0&&(r+=" Did you forget to register it?"),n>1&&(r+=" You register it more than once."),super(r),this.quantity=e,this.actual=n}};function Sj(t,e,n){if(e===bi.OPTIONAL&&n>1||e===bi.REQUIRED&&n!==1)throw new s5(t,e,n)}function Sse(t,e){return t===bi.MANY?e:e[0]}function Ese(t,e,n){const r=Cj(t,e);r.quantity=n}function gx(t){return function e(n){return this instanceof e?this:function(r,i,o){if(n)_j(r,n,o,t);else{if(t===bi.REQUIRED)throw new gse(r,o);Ese(r,o,t)}}}}const Ase=gx(bi.MANY),Du=gx(bi.OPTIONAL),$=gx(bi.REQUIRED);function Rse(t,e=0){return t?t.map((n,r)=>{if(r+=e,!Array.isArray(n))return{paramIndex:r,identifier:n,quantity:bi.REQUIRED,withNew:!1};const i=n.slice(0,n.length-1),o=n[n.length-1];let s,a=bi.REQUIRED,l=!1;return i.forEach(u=>{u instanceof _se?s=U1.SELF:u instanceof Cse?s=U1.SKIP_SELF:u instanceof Du?a=bi.OPTIONAL:u instanceof Ase?a=bi.MANY:l=!0}),{paramIndex:r,identifier:o,quantity:a,lookUp:s,withNew:l}}):[]}function wse(t){return!!t&&typeof t.unwrap=="function"}function Ise(t){return wse(t)?t.unwrap():t}function xse(t){return!!t&&typeof t.dispose=="function"}function Tse(t){return t.length===1}const PC=[];function aO(t){PC.push(t)}function lO(){PC.pop()}function Mse(){PC.length=0}var uO=class extends qa{constructor(t,e,n){const r=`Cannot find "${Ba(e)}" registered by any injector. It is the ${n}th param of "${fse(t)?Ba(t):t.name}".`;super(r)}},a5=class extends qa{constructor(t){const e=`Cannot find "${Ba(t)}" registered by any injector. The stack of dependencies is: "${PC.map(n=>Ba(n)).join(" -> ")}".`;super(e),Mse()}},Pse=class{dependencyMap=new Map;constructor(t){this.normalizeDependencies(t).map(e=>this.add(e[0],e[1]))}add(t,e){typeof e>"u"&&(e={useClass:t,lazy:!1});let n=this.dependencyMap.get(t);typeof n>"u"&&(n=[],this.dependencyMap.set(t,n)),n.push(e)}delete(t){this.dependencyMap.delete(t)}get(t,e){const n=this.dependencyMap.get(t);return Sj(t,e,n.length),Sse(e,n)}has(t){return this.dependencyMap.has(t)}dispose(){this.dependencyMap.clear()}normalizeDependencies(t){return t.map(e=>{const n=e[0];let r;return Tse(e)?r={useClass:e[0],lazy:!1}:r=e[1],[n,r]})}},Nse=class{resolvedDependencies=new Map;add(t,e){let n=this.resolvedDependencies.get(t);typeof n>"u"&&(n=[],this.resolvedDependencies.set(t,n)),n.push(e)}has(t){return this.resolvedDependencies.has(t)}get(t,e){const n=this.resolvedDependencies.get(t);if(!n)throw new a5(t);return Sj(t,e,n.length),e===bi.MANY?n:n[0]}dispose(){Array.from(this.resolvedDependencies.values()).forEach(t=>{t.forEach(e=>xse(e)?e.dispose():void 0)}),this.resolvedDependencies.clear()}};let VA;(function(){if(typeof requestIdleCallback<"u"&&typeof cancelIdleCallback<"u")VA=(t,e)=>{const n=requestIdleCallback(t,typeof e=="number"?{timeout:e}:void 0);let r=!1;return()=>{r||(r=!0,cancelIdleCallback(n))}};else{const t=Object.freeze({didTimeout:!0,timeRemaining(){return 15}});VA=e=>{const n=setTimeout(()=>e(t));let r=!1;return()=>{r||(r=!0,clearTimeout(n))}}}})();var Lse=class{executor;disposeIdleCallback;didRun=!1;value;error;constructor(t){this.executor=()=>{try{this.value=t()}catch(e){this.error=e}finally{this.didRun=!0}},this.disposeIdleCallback=VA(()=>this.executor())}hasRun(){return this.didRun}dispose(){this.disposeIdleCallback()}getValue(){if(this.didRun||(this.disposeIdleCallback(),this.executor()),this.error)throw this.error;return this.value}};const Ose=300,Q7=Symbol("$$NOT_INSTANTIATED_SYMBOL");var Dse=class extends qa{constructor(t){super(`Detecting cyclic dependency. The last identifier is "${Ba(t)}".`)}},kse=class extends qa{constructor(){super("Injector cannot be accessed after it was disposed.")}},Bse=class extends qa{constructor(t){super(`Async item "${Ba(t)}" returns another async item.`)}},Vse=class extends qa{constructor(t){super(`Cannot get async item "${Ba(t)}" from sync api.`)}},cO=class extends qa{constructor(t){super(`Cannot add dependency "${Ba(t)}" after it is already resolved.`)}},Use=class extends qa{constructor(t){super(`Cannot delete dependency "${Ba(t)}" when it is already resolved.`)}},Yt=class UA{dependencyCollection;resolvedDependencyCollection;children=[];resolutionOngoing=0;disposingCallbacks=new Set;disposed=!1;constructor(e,n=null){this.parent=n,this.dependencyCollection=new Pse(e||[]),this.resolvedDependencyCollection=new Nse,n&&n.children.push(this)}onDispose(e){return this.disposingCallbacks.add(e),{dispose:()=>this.disposingCallbacks.delete(e)}}createChild(e){return this._ensureInjectorNotDisposed(),new UA(e,this)}dispose(){this.children.forEach(e=>e.dispose()),this.children.length=0,this.dependencyCollection.dispose(),this.resolvedDependencyCollection.dispose(),this.deleteSelfFromParent(),this.disposed=!0,this.disposingCallbacks.forEach(e=>e()),this.disposingCallbacks.clear()}deleteSelfFromParent(){if(this.parent){const e=this.parent.children.indexOf(this);this.parent.children.splice(e,1)}}add(e){this._ensureInjectorNotDisposed();const n=e[0],r=e[1];if(this.resolvedDependencyCollection.has(n))throw new cO(n);typeof r>"u"?this.dependencyCollection.add(n):rO(r)||kA(r)||nO(r)||tO(r)?this.dependencyCollection.add(n,r):this.resolvedDependencyCollection.add(n,r)}replace(e){this._ensureInjectorNotDisposed();const n=e[0];if(this.resolvedDependencyCollection.has(n))throw new cO(n);this.dependencyCollection.delete(n),this.dependencyCollection.add(n,e[1])}delete(e){if(this._ensureInjectorNotDisposed(),this.resolvedDependencyCollection.has(e))throw new Use(e);this.dependencyCollection.delete(e)}invoke(e,...n){return this._ensureInjectorNotDisposed(),e({get:(i,o,s)=>this._get(i,o,s),has:i=>this.has(i)},...n)}has(e){return this.dependencyCollection.has(e)||this.parent?.has(e)||!1}get(e,n,r){this._ensureInjectorNotDisposed();const i=this._get(e,n,r);if(Array.isArray(i)&&i.some(o=>oS(o))||oS(i))throw new Vse(e);return i}_get(e,n,r,i){let o=bi.REQUIRED;if(n===bi.REQUIRED||n===bi.OPTIONAL||n===bi.MANY?o=n:r=n,!i){const a=this.getValue(e,o,r);if(a!==Q7)return a}const s=!i;return this.createDependency(e,o,r,s)}getAsync(e){this._ensureInjectorNotDisposed();const n=this.getValue(e,bi.REQUIRED);if(n!==Q7)return Promise.resolve(n);const r=this.createDependency(e,bi.REQUIRED);return oS(r)?r.whenReady():Promise.resolve(r)}createInstance(e,...n){return this._ensureInjectorNotDisposed(),this._resolveClassImpl({useClass:e},...n)}_resolveDependency(e,n,r=!0){let i;aO(e);try{nO(n)?i=this._resolveValueDependency(e,n):tO(n)?i=this._resolveFactory(e,n,r):kA(n)?i=this._resolveClass(e,n,r):mse(n)?i=this._resolveExisting(e,n):i=this._resolveAsync(e,n),lO()}catch(o){throw lO(),o}return i}_resolveExisting(e,n){const r=this.get(n.useExisting);return this.resolvedDependencyCollection.add(e,r),r}_resolveValueDependency(e,n){const r=n.useValue;return this.resolvedDependencyCollection.add(e,r),r}_resolveClass(e,n,r){let i;if(n.lazy){const o=new Lse(()=>(this._ensureInjectorNotDisposed(),this._resolveClassImpl(n)));i=new Proxy(Object.create(null),{get(s,a){if(a in s)return s[a];const l=o.getValue();let u=l[a];return typeof u!="function"||(u=u.bind(l),s[a]=u),u},set(s,a,l){return o.getValue()[a]=l,!0}})}else i=this._resolveClassImpl(n);return e&&r&&this.resolvedDependencyCollection.add(e,i),i}_resolveClassImpl(e,...n){const r=e.useClass;this.markNewResolution(r);const i=bj(r).sort((u,c)=>u.paramIndex-c.paramIndex).map(u=>({...u,identifier:Ise(u.identifier)})),o=[];for(const u of i)try{const c=this._get(u.identifier,u.quantity,u.lookUp,u.withNew);o.push(c)}catch(c){throw c instanceof a5||c instanceof s5&&c.actual===0?new uO(r,u.identifier,u.paramIndex):c}let s=[...n];const a=i.length>0?i[0].paramIndex:s.length;if(s.length!==a){console.warn(`[redi]: Expect ${a} custom parameter(s) of ${Ba(r)} but get ${s.length}.`);const u=a-s.length;u>0?s=[...s,...Array.from({length:u}).fill(void 0)]:s=s.slice(0,a)}const l=new r(...s,...o);return e?.onInstantiation?.(l),this.markResolutionCompleted(),l}_resolveFactory(e,n,r){this.markNewResolution(e);const i=Rse(n.deps),o=[];for(const a of i)try{const l=this._get(a.identifier,a.quantity,a.lookUp,a.withNew);o.push(l)}catch(l){throw l instanceof a5||l instanceof s5&&l.actual===0?new uO(e,a.identifier,a.paramIndex):l}const s=n.useFactory.apply(null,o);return r&&this.resolvedDependencyCollection.add(e,s),this.markResolutionCompleted(),n?.onInstantiation?.(s),s}_resolveAsync(e,n){return{__symbol:vj,whenReady:()=>this._resolveAsyncImpl(e,n)}}_resolveAsyncImpl(e,n){return n.useAsync().then(r=>{const i=this.getValue(e);if(i!==Q7)return i;let o;if(Array.isArray(r)){const s=r[1];if(rO(s))throw new Bse(e);o=this._resolveDependency(e,s)}else gj(r)?o=this._resolveClassImpl({useClass:r,onInstantiation:n.onInstantiation}):o=r;return this.resolvedDependencyCollection.add(e,o),o})}getValue(e,n=bi.REQUIRED,r){const i=()=>this.dependencyCollection.has(e)&&!this.resolvedDependencyCollection.has(e)?Q7:this.resolvedDependencyCollection.get(e,n),o=()=>{if(this.parent)return this.parent.getValue(e,n);if(n===bi.OPTIONAL)return null;if(n===bi.MANY)return[];throw new s5(e,bi.REQUIRED,0)};return r===U1.SKIP_SELF?o():e===UA?this:r===U1.SELF||this.resolvedDependencyCollection.has(e)||this.dependencyCollection.has(e)?i():o()}createDependency(e,n,r,i=!0){const o=()=>{const a=this.dependencyCollection.get(e,n);let l=null;return Array.isArray(a)?l=a.map(u=>this._resolveDependency(e,u,i)):l=this._resolveDependency(e,a,i),l},s=()=>{if(this.parent)return this.parent.createDependency(e,n,void 0,i);if(n===bi.OPTIONAL)return null;if(n===bi.MANY)return[];throw aO(e),new a5(e)};return r===U1.SKIP_SELF?s():this.dependencyCollection.has(e)?o():s()}markNewResolution(e){if(this.resolutionOngoing+=1,this.resolutionOngoing>=Ose)throw new Dse(e)}markResolutionCompleted(){this.resolutionOngoing-=1}_ensureInjectorNotDisposed(){if(this.disposed)throw new kse}};const dO=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global<"u"&&global,hO="REDI_GLOBAL_LOCK",Fse=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;dO[hO]?Fse||console.error(`[redi]: You are loading scripts of redi more than once! This may cause undesired behavior in your application.
|
|
2
2
|
Maybe your dependencies added redi as its dependency and bundled redi to its dist files. Or you import different versions of redi.
|
|
3
3
|
For more info please visit our website: https://redi.wendell.fun/en-US/docs/faq#import-scripts-of-redi-more-than-once`):dO[hO]=!0;let Q=(function(t){return t[t.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",t[t.UNIVER_DOC=1]="UNIVER_DOC",t[t.UNIVER_SHEET=2]="UNIVER_SHEET",t[t.UNIVER_SLIDE=3]="UNIVER_SLIDE",t[t.UNIVER_PROJECT=4]="UNIVER_PROJECT",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t})({}),De=(function(t){return t[t.View=0]="View",t[t.Edit=1]="Edit",t[t.ManageCollaborator=2]="ManageCollaborator",t[t.Print=3]="Print",t[t.Duplicate=4]="Duplicate",t[t.Comment=5]="Comment",t[t.Copy=6]="Copy",t[t.Share=7]="Share",t[t.Export=8]="Export",t[t.MoveWorksheet=9]="MoveWorksheet",t[t.DeleteWorksheet=10]="DeleteWorksheet",t[t.HideWorksheet=11]="HideWorksheet",t[t.RenameWorksheet=12]="RenameWorksheet",t[t.CreateWorksheet=13]="CreateWorksheet",t[t.SetWorksheetStyle=14]="SetWorksheetStyle",t[t.EditWorksheetCell=15]="EditWorksheetCell",t[t.InsertHyperlink=16]="InsertHyperlink",t[t.Sort=17]="Sort",t[t.Filter=18]="Filter",t[t.PivotTable=19]="PivotTable",t[t.FloatImg=20]="FloatImg",t[t.IHistory=21]="IHistory",t[t.RwHgtClWdt=22]="RwHgtClWdt",t[t.ViemRwHgtClWdt=23]="ViemRwHgtClWdt",t[t.ViewFilter=24]="ViewFilter",t[t.MoveSheet=25]="MoveSheet",t[t.DeleteSheet=26]="DeleteSheet",t[t.HideSheet=27]="HideSheet",t[t.CopySheet=28]="CopySheet",t[t.RenameSheet=29]="RenameSheet",t[t.CreateSheet=30]="CreateSheet",t[t.SelectProtectedCells=31]="SelectProtectedCells",t[t.SelectUnProtectedCells=32]="SelectUnProtectedCells",t[t.SetCellStyle=33]="SetCellStyle",t[t.SetCellValue=34]="SetCellValue",t[t.SetRowStyle=35]="SetRowStyle",t[t.SetColumnStyle=36]="SetColumnStyle",t[t.InsertRow=37]="InsertRow",t[t.InsertColumn=38]="InsertColumn",t[t.DeleteRow=39]="DeleteRow",t[t.DeleteColumn=40]="DeleteColumn",t[t.EditExtraObject=41]="EditExtraObject",t[t.Delete=42]="Delete",t[t.RecoverHistory=43]="RecoverHistory",t[t.ViewHistory=44]="ViewHistory",t[t.CreatePermissionObject=45]="CreatePermissionObject",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t})({}),Pn=(function(t){return t[t.Reader=0]="Reader",t[t.Editor=1]="Editor",t[t.Owner=2]="Owner",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t})({}),Dt=(function(t){return t[t.Unkonwn=0]="Unkonwn",t[t.Workbook=1]="Workbook",t[t.Worksheet=2]="Worksheet",t[t.SelectRange=3]="SelectRange",t[t.Document=4]="Document",t[t.Slide=5]="Slide",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t})({}),fa=(function(t){return t[t.SomeCollaborator=0]="SomeCollaborator",t[t.AllCollaborator=1]="AllCollaborator",t[t.OneSelf=2]="OneSelf",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t})({});function fi(t){return typeof t=="function"}function vx(t){var e=function(r){Error.call(r),r.stack=new Error().stack},n=t(e);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var sS=vx(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription:
|
|
4
4
|
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
|